diff --git a/addons/cclua/box2d/library/b2/AABB.lua b/addons/cclua/box2d/library/b2/AABB.lua index 6dea4e4c..f172ac11 100644 --- a/addons/cclua/box2d/library/b2/AABB.lua +++ b/addons/cclua/box2d/library/b2/AABB.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.AABB ---An axis aligned bounding box. @@ -18,6 +19,8 @@ function AABB:__olua_move() end ---Combine an AABB into this one. ---@param aabb b2.AABB +--- +---Combine two AABBs into this one. ---@overload fun(self: b2.AABB, aabb1: b2.AABB, aabb2: b2.AABB) function AABB:combine(aabb) end diff --git a/addons/cclua/box2d/library/b2/Body.lua b/addons/cclua/box2d/library/b2/Body.lua index 0738ef59..5c93505a 100644 --- a/addons/cclua/box2d/library/b2/Body.lua +++ b/addons/cclua/box2d/library/b2/Body.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.Body ---A rigid body. These are created via b2World::CreateBody. @@ -91,6 +92,14 @@ function Body:applyTorque(torque, wake) end ---\warning This function is locked during callbacks. ---@param def b2.FixtureDef ---@return b2.Fixture +--- +---Creates a fixture from a shape and attach it to this body. +---This is a convenience function. Use b2FixtureDef if you need to set parameters +---like friction, restitution, user data, or filtering. +---If the density is non-zero, this function automatically updates the mass of the body. +---\param shape the shape to be cloned. +---\param density the shape density (set to zero for static bodies). +---\warning This function is locked during callbacks. ---@overload fun(self: b2.Body, shape: b2.Shape, density: number): b2.Fixture function Body:createFixture(def) end diff --git a/addons/cclua/box2d/library/b2/BodyDef.lua b/addons/cclua/box2d/library/b2/BodyDef.lua index a4b3e02f..dbaac0c6 100644 --- a/addons/cclua/box2d/library/b2/BodyDef.lua +++ b/addons/cclua/box2d/library/b2/BodyDef.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.BodyDef ---A body definition holds all the data needed to construct a rigid body. diff --git a/addons/cclua/box2d/library/b2/BodyType.lua b/addons/cclua/box2d/library/b2/BodyType.lua index c02034f0..a98cac4e 100644 --- a/addons/cclua/box2d/library/b2/BodyType.lua +++ b/addons/cclua/box2d/library/b2/BodyType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.BodyType ---@type b2.BodyType diff --git a/addons/cclua/box2d/library/b2/BodyUserData.lua b/addons/cclua/box2d/library/b2/BodyUserData.lua index 084f170c..f0ae9913 100644 --- a/addons/cclua/box2d/library/b2/BodyUserData.lua +++ b/addons/cclua/box2d/library/b2/BodyUserData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.BodyUserData ---You can define this to inject whatever data you want in b2Body diff --git a/addons/cclua/box2d/library/b2/BroadPhase.lua b/addons/cclua/box2d/library/b2/BroadPhase.lua index 6a7eab21..0ea044c7 100644 --- a/addons/cclua/box2d/library/b2/BroadPhase.lua +++ b/addons/cclua/box2d/library/b2/BroadPhase.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.BroadPhase ---The broad-phase is used for computing pairs and performing volume queries and ray casts. diff --git a/addons/cclua/box2d/library/b2/ChainShape.lua b/addons/cclua/box2d/library/b2/ChainShape.lua index 711cdf97..3cf2e222 100644 --- a/addons/cclua/box2d/library/b2/ChainShape.lua +++ b/addons/cclua/box2d/library/b2/ChainShape.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.ChainShape ---A chain shape is a free form sequence of line segments. diff --git a/addons/cclua/box2d/library/b2/CircleShape.lua b/addons/cclua/box2d/library/b2/CircleShape.lua index 1728fd97..2b70b103 100644 --- a/addons/cclua/box2d/library/b2/CircleShape.lua +++ b/addons/cclua/box2d/library/b2/CircleShape.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.CircleShape ---A solid circle shape diff --git a/addons/cclua/box2d/library/b2/Color.lua b/addons/cclua/box2d/library/b2/Color.lua index 8fb750ea..1c04ecf4 100644 --- a/addons/cclua/box2d/library/b2/Color.lua +++ b/addons/cclua/box2d/library/b2/Color.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.Color ---Color for debug drawing. Each value has the range [0,1]. diff --git a/addons/cclua/box2d/library/b2/Contact.lua b/addons/cclua/box2d/library/b2/Contact.lua index 6e1730c8..605f5659 100644 --- a/addons/cclua/box2d/library/b2/Contact.lua +++ b/addons/cclua/box2d/library/b2/Contact.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.Contact ---The class manages contact between two shapes. A contact exists for each overlapping diff --git a/addons/cclua/box2d/library/b2/ContactEdge.lua b/addons/cclua/box2d/library/b2/ContactEdge.lua index 7283ffdc..bc756183 100644 --- a/addons/cclua/box2d/library/b2/ContactEdge.lua +++ b/addons/cclua/box2d/library/b2/ContactEdge.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.ContactEdge ---A contact edge is used to connect bodies and contacts together diff --git a/addons/cclua/box2d/library/b2/ContactFeature.lua b/addons/cclua/box2d/library/b2/ContactFeature.lua index 289ca80d..d329f7d7 100644 --- a/addons/cclua/box2d/library/b2/ContactFeature.lua +++ b/addons/cclua/box2d/library/b2/ContactFeature.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.ContactFeature ---The features that intersect to form the contact point diff --git a/addons/cclua/box2d/library/b2/ContactFilter.lua b/addons/cclua/box2d/library/b2/ContactFilter.lua index 3e040ec8..60e3c3c8 100644 --- a/addons/cclua/box2d/library/b2/ContactFilter.lua +++ b/addons/cclua/box2d/library/b2/ContactFilter.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.ContactFilter --- diff --git a/addons/cclua/box2d/library/b2/ContactID.lua b/addons/cclua/box2d/library/b2/ContactID.lua index 05f2dc63..0989d379 100644 --- a/addons/cclua/box2d/library/b2/ContactID.lua +++ b/addons/cclua/box2d/library/b2/ContactID.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.ContactID ---Contact ids to facilitate warm starting. diff --git a/addons/cclua/box2d/library/b2/ContactImpulse.lua b/addons/cclua/box2d/library/b2/ContactImpulse.lua index f655163b..4e0fdee4 100644 --- a/addons/cclua/box2d/library/b2/ContactImpulse.lua +++ b/addons/cclua/box2d/library/b2/ContactImpulse.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.ContactImpulse ---Contact impulses for reporting. Impulses are used instead of forces because diff --git a/addons/cclua/box2d/library/b2/ContactListener.lua b/addons/cclua/box2d/library/b2/ContactListener.lua index 6fa6a72e..840f80cb 100644 --- a/addons/cclua/box2d/library/b2/ContactListener.lua +++ b/addons/cclua/box2d/library/b2/ContactListener.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.ContactListener --- diff --git a/addons/cclua/box2d/library/b2/ContactManager.lua b/addons/cclua/box2d/library/b2/ContactManager.lua index cfe86531..e3d487a9 100644 --- a/addons/cclua/box2d/library/b2/ContactManager.lua +++ b/addons/cclua/box2d/library/b2/ContactManager.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.ContactManager --- diff --git a/addons/cclua/box2d/library/b2/DebugNode.lua b/addons/cclua/box2d/library/b2/DebugNode.lua index 40505c78..42798b0e 100644 --- a/addons/cclua/box2d/library/b2/DebugNode.lua +++ b/addons/cclua/box2d/library/b2/DebugNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.DebugNode --- diff --git a/addons/cclua/box2d/library/b2/DebugNode/Flags.lua b/addons/cclua/box2d/library/b2/DebugNode/Flags.lua index 724b725f..9b916adc 100644 --- a/addons/cclua/box2d/library/b2/DebugNode/Flags.lua +++ b/addons/cclua/box2d/library/b2/DebugNode/Flags.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.DebugNode.Flags ---@type b2.DebugNode.Flags diff --git a/addons/cclua/box2d/library/b2/DestructionListener.lua b/addons/cclua/box2d/library/b2/DestructionListener.lua index 4bbcca6f..c1599638 100644 --- a/addons/cclua/box2d/library/b2/DestructionListener.lua +++ b/addons/cclua/box2d/library/b2/DestructionListener.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.DestructionListener --- diff --git a/addons/cclua/box2d/library/b2/DistanceJoint.lua b/addons/cclua/box2d/library/b2/DistanceJoint.lua index cd3a99c7..8f2b6b4b 100644 --- a/addons/cclua/box2d/library/b2/DistanceJoint.lua +++ b/addons/cclua/box2d/library/b2/DistanceJoint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.DistanceJoint ---A distance joint constrains two points on two bodies to remain at a fixed diff --git a/addons/cclua/box2d/library/b2/DistanceJointDef.lua b/addons/cclua/box2d/library/b2/DistanceJointDef.lua index 16f5a8e0..5dd6732f 100644 --- a/addons/cclua/box2d/library/b2/DistanceJointDef.lua +++ b/addons/cclua/box2d/library/b2/DistanceJointDef.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.DistanceJointDef ---Distance joint definition. This requires defining an anchor point on both diff --git a/addons/cclua/box2d/library/b2/EdgeShape.lua b/addons/cclua/box2d/library/b2/EdgeShape.lua index 114be294..d839ab43 100644 --- a/addons/cclua/box2d/library/b2/EdgeShape.lua +++ b/addons/cclua/box2d/library/b2/EdgeShape.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.EdgeShape ---A line segment (edge) shape. These can be connected in chains or loops diff --git a/addons/cclua/box2d/library/b2/Filter.lua b/addons/cclua/box2d/library/b2/Filter.lua index 6e9f3684..76257790 100644 --- a/addons/cclua/box2d/library/b2/Filter.lua +++ b/addons/cclua/box2d/library/b2/Filter.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.Filter ---This holds contact filtering data. diff --git a/addons/cclua/box2d/library/b2/Fixture.lua b/addons/cclua/box2d/library/b2/Fixture.lua index 30f829b3..48fdbe82 100644 --- a/addons/cclua/box2d/library/b2/Fixture.lua +++ b/addons/cclua/box2d/library/b2/Fixture.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.Fixture ---A fixture is used to attach a shape to a body for collision detection. A fixture diff --git a/addons/cclua/box2d/library/b2/FixtureDef.lua b/addons/cclua/box2d/library/b2/FixtureDef.lua index 41115d36..0502d70c 100644 --- a/addons/cclua/box2d/library/b2/FixtureDef.lua +++ b/addons/cclua/box2d/library/b2/FixtureDef.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.FixtureDef ---A fixture definition is used to create a fixture. This class defines an diff --git a/addons/cclua/box2d/library/b2/FixtureUserData.lua b/addons/cclua/box2d/library/b2/FixtureUserData.lua index 34714246..2d081194 100644 --- a/addons/cclua/box2d/library/b2/FixtureUserData.lua +++ b/addons/cclua/box2d/library/b2/FixtureUserData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.FixtureUserData ---You can define this to inject whatever data you want in b2Fixture diff --git a/addons/cclua/box2d/library/b2/FrictionJoint.lua b/addons/cclua/box2d/library/b2/FrictionJoint.lua index 5dfb0baf..539cddb7 100644 --- a/addons/cclua/box2d/library/b2/FrictionJoint.lua +++ b/addons/cclua/box2d/library/b2/FrictionJoint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.FrictionJoint ---Friction joint. This is used for top-down friction. diff --git a/addons/cclua/box2d/library/b2/FrictionJointDef.lua b/addons/cclua/box2d/library/b2/FrictionJointDef.lua index 7770431b..87c81de2 100644 --- a/addons/cclua/box2d/library/b2/FrictionJointDef.lua +++ b/addons/cclua/box2d/library/b2/FrictionJointDef.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.FrictionJointDef ---Friction joint definition. diff --git a/addons/cclua/box2d/library/b2/GearJoint.lua b/addons/cclua/box2d/library/b2/GearJoint.lua index 591de1fd..0622214a 100644 --- a/addons/cclua/box2d/library/b2/GearJoint.lua +++ b/addons/cclua/box2d/library/b2/GearJoint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.GearJoint ---A gear joint is used to connect two joints together. Either joint diff --git a/addons/cclua/box2d/library/b2/GearJointDef.lua b/addons/cclua/box2d/library/b2/GearJointDef.lua index e08ba1c4..ed55b5f3 100644 --- a/addons/cclua/box2d/library/b2/GearJointDef.lua +++ b/addons/cclua/box2d/library/b2/GearJointDef.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.GearJointDef ---Gear joint definition. This definition requires two existing diff --git a/addons/cclua/box2d/library/b2/Joint.lua b/addons/cclua/box2d/library/b2/Joint.lua index 199c81b6..4d530108 100644 --- a/addons/cclua/box2d/library/b2/Joint.lua +++ b/addons/cclua/box2d/library/b2/Joint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.Joint ---The base joint class. Joints are used to constraint two bodies together in diff --git a/addons/cclua/box2d/library/b2/JointDef.lua b/addons/cclua/box2d/library/b2/JointDef.lua index 40f18cc4..0cd7c1ab 100644 --- a/addons/cclua/box2d/library/b2/JointDef.lua +++ b/addons/cclua/box2d/library/b2/JointDef.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.JointDef ---Joint definitions are used to construct joints. diff --git a/addons/cclua/box2d/library/b2/JointEdge.lua b/addons/cclua/box2d/library/b2/JointEdge.lua index b8ce0f33..2ac016d1 100644 --- a/addons/cclua/box2d/library/b2/JointEdge.lua +++ b/addons/cclua/box2d/library/b2/JointEdge.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.JointEdge ---A joint edge is used to connect bodies and joints together diff --git a/addons/cclua/box2d/library/b2/JointType.lua b/addons/cclua/box2d/library/b2/JointType.lua index caaaa1e8..349c1ff1 100644 --- a/addons/cclua/box2d/library/b2/JointType.lua +++ b/addons/cclua/box2d/library/b2/JointType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.JointType ---@type b2.JointType diff --git a/addons/cclua/box2d/library/b2/JointUserData.lua b/addons/cclua/box2d/library/b2/JointUserData.lua index ce3af8cb..d55868f8 100644 --- a/addons/cclua/box2d/library/b2/JointUserData.lua +++ b/addons/cclua/box2d/library/b2/JointUserData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.JointUserData ---You can define this to inject whatever data you want in b2Joint diff --git a/addons/cclua/box2d/library/b2/Manifold.lua b/addons/cclua/box2d/library/b2/Manifold.lua index 959a47f9..07c19234 100644 --- a/addons/cclua/box2d/library/b2/Manifold.lua +++ b/addons/cclua/box2d/library/b2/Manifold.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.Manifold ---A manifold for two touching convex shapes. diff --git a/addons/cclua/box2d/library/b2/Manifold/Type.lua b/addons/cclua/box2d/library/b2/Manifold/Type.lua index 4d4955c3..89a0fe9c 100644 --- a/addons/cclua/box2d/library/b2/Manifold/Type.lua +++ b/addons/cclua/box2d/library/b2/Manifold/Type.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.Manifold.Type ---@type b2.Manifold.Type diff --git a/addons/cclua/box2d/library/b2/ManifoldPoint.lua b/addons/cclua/box2d/library/b2/ManifoldPoint.lua index 5a7af96f..43d3333c 100644 --- a/addons/cclua/box2d/library/b2/ManifoldPoint.lua +++ b/addons/cclua/box2d/library/b2/ManifoldPoint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.ManifoldPoint ---A manifold point is a contact point belonging to a contact diff --git a/addons/cclua/box2d/library/b2/MassData.lua b/addons/cclua/box2d/library/b2/MassData.lua index 265d678d..b8f0e9ee 100644 --- a/addons/cclua/box2d/library/b2/MassData.lua +++ b/addons/cclua/box2d/library/b2/MassData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.MassData ---This holds the mass data computed for a shape. diff --git a/addons/cclua/box2d/library/b2/MotorJoint.lua b/addons/cclua/box2d/library/b2/MotorJoint.lua index d65be6a2..a2bc3001 100644 --- a/addons/cclua/box2d/library/b2/MotorJoint.lua +++ b/addons/cclua/box2d/library/b2/MotorJoint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.MotorJoint ---A motor joint is used to control the relative motion diff --git a/addons/cclua/box2d/library/b2/MotorJointDef.lua b/addons/cclua/box2d/library/b2/MotorJointDef.lua index 4ad300c7..288e6d1d 100644 --- a/addons/cclua/box2d/library/b2/MotorJointDef.lua +++ b/addons/cclua/box2d/library/b2/MotorJointDef.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.MotorJointDef ---Motor joint definition. diff --git a/addons/cclua/box2d/library/b2/MouseJoint.lua b/addons/cclua/box2d/library/b2/MouseJoint.lua index 3222a852..7aa761fe 100644 --- a/addons/cclua/box2d/library/b2/MouseJoint.lua +++ b/addons/cclua/box2d/library/b2/MouseJoint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.MouseJoint ---A mouse joint is used to make a point on a body track a diff --git a/addons/cclua/box2d/library/b2/MouseJointDef.lua b/addons/cclua/box2d/library/b2/MouseJointDef.lua index 151ea358..43e28439 100644 --- a/addons/cclua/box2d/library/b2/MouseJointDef.lua +++ b/addons/cclua/box2d/library/b2/MouseJointDef.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.MouseJointDef ---Mouse joint definition. This requires a world target point, diff --git a/addons/cclua/box2d/library/b2/PolygonShape.lua b/addons/cclua/box2d/library/b2/PolygonShape.lua index 87d7e84d..eb29385a 100644 --- a/addons/cclua/box2d/library/b2/PolygonShape.lua +++ b/addons/cclua/box2d/library/b2/PolygonShape.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.PolygonShape ---A solid convex polygon. It is assumed that the interior of the polygon is to @@ -24,6 +25,12 @@ function PolygonShape:set(points, count) end ---\param hy the half-height. ---@param hx number ---@param hy number +--- +---Build vertices to represent an oriented box. +---\param hx the half-width. +---\param hy the half-height. +---\param center the center of the box in local coordinates. +---\param angle the rotation of the box in local coordinates. ---@overload fun(self: b2.PolygonShape, hx: number, hy: number, center: b2.Vec2, angle: number) function PolygonShape:setAsBox(hx, hy) end diff --git a/addons/cclua/box2d/library/b2/PrismaticJoint.lua b/addons/cclua/box2d/library/b2/PrismaticJoint.lua index 120000e0..285a0bed 100644 --- a/addons/cclua/box2d/library/b2/PrismaticJoint.lua +++ b/addons/cclua/box2d/library/b2/PrismaticJoint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.PrismaticJoint ---A prismatic joint. This joint provides one degree of freedom: translation diff --git a/addons/cclua/box2d/library/b2/PrismaticJointDef.lua b/addons/cclua/box2d/library/b2/PrismaticJointDef.lua index d5f140f4..932fad38 100644 --- a/addons/cclua/box2d/library/b2/PrismaticJointDef.lua +++ b/addons/cclua/box2d/library/b2/PrismaticJointDef.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.PrismaticJointDef ---Prismatic joint definition. This requires defining a line of diff --git a/addons/cclua/box2d/library/b2/Profile.lua b/addons/cclua/box2d/library/b2/Profile.lua index e81d9e70..70d5a14f 100644 --- a/addons/cclua/box2d/library/b2/Profile.lua +++ b/addons/cclua/box2d/library/b2/Profile.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.Profile ---Profiling data. Times are in milliseconds. diff --git a/addons/cclua/box2d/library/b2/PulleyJoint.lua b/addons/cclua/box2d/library/b2/PulleyJoint.lua index 7c6cc8d5..87d1306b 100644 --- a/addons/cclua/box2d/library/b2/PulleyJoint.lua +++ b/addons/cclua/box2d/library/b2/PulleyJoint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.PulleyJoint ---The pulley joint is connected to two bodies and two fixed ground points. diff --git a/addons/cclua/box2d/library/b2/PulleyJointDef.lua b/addons/cclua/box2d/library/b2/PulleyJointDef.lua index cc24f817..05e06f6b 100644 --- a/addons/cclua/box2d/library/b2/PulleyJointDef.lua +++ b/addons/cclua/box2d/library/b2/PulleyJointDef.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.PulleyJointDef ---Pulley joint definition. This requires two ground anchors, diff --git a/addons/cclua/box2d/library/b2/QueryCallback.lua b/addons/cclua/box2d/library/b2/QueryCallback.lua index 1bb5edd4..7edb8ca8 100644 --- a/addons/cclua/box2d/library/b2/QueryCallback.lua +++ b/addons/cclua/box2d/library/b2/QueryCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.QueryCallback --- diff --git a/addons/cclua/box2d/library/b2/RayCastCallback.lua b/addons/cclua/box2d/library/b2/RayCastCallback.lua index 323d3b31..42319427 100644 --- a/addons/cclua/box2d/library/b2/RayCastCallback.lua +++ b/addons/cclua/box2d/library/b2/RayCastCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.RayCastCallback --- diff --git a/addons/cclua/box2d/library/b2/RayCastInput.lua b/addons/cclua/box2d/library/b2/RayCastInput.lua index cf45adfa..b936efc7 100644 --- a/addons/cclua/box2d/library/b2/RayCastInput.lua +++ b/addons/cclua/box2d/library/b2/RayCastInput.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.RayCastInput ---Ray-cast input data. The ray extends from p1 to p1 + maxFraction * (p2 - p1). diff --git a/addons/cclua/box2d/library/b2/RayCastOutput.lua b/addons/cclua/box2d/library/b2/RayCastOutput.lua index 3e677cc4..9d7c8cb9 100644 --- a/addons/cclua/box2d/library/b2/RayCastOutput.lua +++ b/addons/cclua/box2d/library/b2/RayCastOutput.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.RayCastOutput ---Ray-cast output data. The ray hits at p1 + fraction * (p2 - p1), where p1 and p2 diff --git a/addons/cclua/box2d/library/b2/RevoluteJoint.lua b/addons/cclua/box2d/library/b2/RevoluteJoint.lua index 432ac9ef..237d6405 100644 --- a/addons/cclua/box2d/library/b2/RevoluteJoint.lua +++ b/addons/cclua/box2d/library/b2/RevoluteJoint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.RevoluteJoint ---A revolute joint constrains two bodies to share a common point while they diff --git a/addons/cclua/box2d/library/b2/RevoluteJointDef.lua b/addons/cclua/box2d/library/b2/RevoluteJointDef.lua index 0af968ee..af962b1d 100644 --- a/addons/cclua/box2d/library/b2/RevoluteJointDef.lua +++ b/addons/cclua/box2d/library/b2/RevoluteJointDef.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.RevoluteJointDef ---Revolute joint definition. This requires defining an anchor point where the diff --git a/addons/cclua/box2d/library/b2/Rot.lua b/addons/cclua/box2d/library/b2/Rot.lua index 59f6dbfe..3e63e5a4 100644 --- a/addons/cclua/box2d/library/b2/Rot.lua +++ b/addons/cclua/box2d/library/b2/Rot.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.Rot ---Rotation @@ -28,6 +29,8 @@ function Rot:getXAxis() end function Rot:getYAxis() end ---@return b2.Rot +--- +---Initialize from an angle in radians ---@overload fun(angle: number): b2.Rot function Rot.new() end diff --git a/addons/cclua/box2d/library/b2/Shape.lua b/addons/cclua/box2d/library/b2/Shape.lua index d58cfc64..7240ba5a 100644 --- a/addons/cclua/box2d/library/b2/Shape.lua +++ b/addons/cclua/box2d/library/b2/Shape.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.Shape ---\file diff --git a/addons/cclua/box2d/library/b2/Shape/Type.lua b/addons/cclua/box2d/library/b2/Shape/Type.lua index 29e3e003..46acc84d 100644 --- a/addons/cclua/box2d/library/b2/Shape/Type.lua +++ b/addons/cclua/box2d/library/b2/Shape/Type.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.Shape.Type ---@type b2.Shape.Type diff --git a/addons/cclua/box2d/library/b2/Transform.lua b/addons/cclua/box2d/library/b2/Transform.lua index 5dc29b2d..861c566f 100644 --- a/addons/cclua/box2d/library/b2/Transform.lua +++ b/addons/cclua/box2d/library/b2/Transform.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.Transform ---A transform contains translation and rotation. It is used to represent @@ -15,6 +16,8 @@ function Transform:__olua_move() end ---The default constructor does nothing. ---@return b2.Transform +--- +---Initialize using a position vector and a rotation. ---@overload fun(position: b2.Vec2, rotation: b2.Rot): b2.Transform function Transform.new() end diff --git a/addons/cclua/box2d/library/b2/Vec2.lua b/addons/cclua/box2d/library/b2/Vec2.lua index defa4efd..c64139d8 100644 --- a/addons/cclua/box2d/library/b2/Vec2.lua +++ b/addons/cclua/box2d/library/b2/Vec2.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.Vec2 ---A 2D column vector. @@ -28,6 +29,8 @@ function Vec2:lengthSquared() end ---Default constructor does nothing (for performance). ---@return b2.Vec2 +--- +---Construct using coordinates. ---@overload fun(xIn: number, yIn: number): b2.Vec2 function Vec2.new() end diff --git a/addons/cclua/box2d/library/b2/Vec2Array.lua b/addons/cclua/box2d/library/b2/Vec2Array.lua index 1e68b52c..c708c8fd 100644 --- a/addons/cclua/box2d/library/b2/Vec2Array.lua +++ b/addons/cclua/box2d/library/b2/Vec2Array.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.Vec2Array --- diff --git a/addons/cclua/box2d/library/b2/Vec3.lua b/addons/cclua/box2d/library/b2/Vec3.lua index b35d76ea..a4e1f965 100644 --- a/addons/cclua/box2d/library/b2/Vec3.lua +++ b/addons/cclua/box2d/library/b2/Vec3.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.Vec3 ---A 2D column vector with 3 elements. @@ -15,6 +16,8 @@ function Vec3:__olua_move() end ---Default constructor does nothing (for performance). ---@return b2.Vec3 +--- +---Construct using coordinates. ---@overload fun(xIn: number, yIn: number, zIn: number): b2.Vec3 function Vec3.new() end diff --git a/addons/cclua/box2d/library/b2/WeldJoint.lua b/addons/cclua/box2d/library/b2/WeldJoint.lua index 5d23e261..30e5476e 100644 --- a/addons/cclua/box2d/library/b2/WeldJoint.lua +++ b/addons/cclua/box2d/library/b2/WeldJoint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.WeldJoint ---A weld joint essentially glues two bodies together. A weld joint may diff --git a/addons/cclua/box2d/library/b2/WeldJointDef.lua b/addons/cclua/box2d/library/b2/WeldJointDef.lua index c7691515..2cc90146 100644 --- a/addons/cclua/box2d/library/b2/WeldJointDef.lua +++ b/addons/cclua/box2d/library/b2/WeldJointDef.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.WeldJointDef ---Weld joint definition. You need to specify local anchor points diff --git a/addons/cclua/box2d/library/b2/WheelJoint.lua b/addons/cclua/box2d/library/b2/WheelJoint.lua index 08747f8f..fc528b72 100644 --- a/addons/cclua/box2d/library/b2/WheelJoint.lua +++ b/addons/cclua/box2d/library/b2/WheelJoint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.WheelJoint ---A wheel joint. This joint provides two degrees of freedom: translation diff --git a/addons/cclua/box2d/library/b2/WheelJointDef.lua b/addons/cclua/box2d/library/b2/WheelJointDef.lua index b47014b4..27c04884 100644 --- a/addons/cclua/box2d/library/b2/WheelJointDef.lua +++ b/addons/cclua/box2d/library/b2/WheelJointDef.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.WheelJointDef ---Wheel joint definition. This requires defining a line of diff --git a/addons/cclua/box2d/library/b2/World.lua b/addons/cclua/box2d/library/b2/World.lua index 50f2115a..f1068e30 100644 --- a/addons/cclua/box2d/library/b2/World.lua +++ b/addons/cclua/box2d/library/b2/World.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.World ---The world class manages all physics entities, dynamic simulation, diff --git a/addons/cclua/box2d/library/b2/WorldManifold.lua b/addons/cclua/box2d/library/b2/WorldManifold.lua index daf0142c..3893f862 100644 --- a/addons/cclua/box2d/library/b2/WorldManifold.lua +++ b/addons/cclua/box2d/library/b2/WorldManifold.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.WorldManifold ---This is used to compute the current state of a contact manifold. diff --git a/addons/cclua/box2d/library/b2/interface/ContactFilter.lua b/addons/cclua/box2d/library/b2/interface/ContactFilter.lua index 98d5078a..21f54ff8 100644 --- a/addons/cclua/box2d/library/b2/interface/ContactFilter.lua +++ b/addons/cclua/box2d/library/b2/interface/ContactFilter.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.interface.ContactFilter ---Implement this class to provide collision filtering. In other words, you can implement diff --git a/addons/cclua/box2d/library/b2/interface/ContactListener.lua b/addons/cclua/box2d/library/b2/interface/ContactListener.lua index db85d907..ede93bdf 100644 --- a/addons/cclua/box2d/library/b2/interface/ContactListener.lua +++ b/addons/cclua/box2d/library/b2/interface/ContactListener.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.interface.ContactListener ---Implement this class to get contact information. You can use these results for diff --git a/addons/cclua/box2d/library/b2/interface/DestructionListener.lua b/addons/cclua/box2d/library/b2/interface/DestructionListener.lua index 72f40243..c04fa527 100644 --- a/addons/cclua/box2d/library/b2/interface/DestructionListener.lua +++ b/addons/cclua/box2d/library/b2/interface/DestructionListener.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.interface.DestructionListener ---Joints and fixtures are destroyed when their associated diff --git a/addons/cclua/box2d/library/b2/interface/Draw.lua b/addons/cclua/box2d/library/b2/interface/Draw.lua index 52251f41..d3dc4118 100644 --- a/addons/cclua/box2d/library/b2/interface/Draw.lua +++ b/addons/cclua/box2d/library/b2/interface/Draw.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.interface.Draw ---Implement and register this class with a b2World to provide debug drawing of physics diff --git a/addons/cclua/box2d/library/b2/interface/QueryCallback.lua b/addons/cclua/box2d/library/b2/interface/QueryCallback.lua index 81f04808..0153a2e2 100644 --- a/addons/cclua/box2d/library/b2/interface/QueryCallback.lua +++ b/addons/cclua/box2d/library/b2/interface/QueryCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.interface.QueryCallback ---Callback class for AABB queries. diff --git a/addons/cclua/box2d/library/b2/interface/RayCastCallback.lua b/addons/cclua/box2d/library/b2/interface/RayCastCallback.lua index 9d1684df..7a863346 100644 --- a/addons/cclua/box2d/library/b2/interface/RayCastCallback.lua +++ b/addons/cclua/box2d/library/b2/interface/RayCastCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta b2.interface.RayCastCallback ---Callback class for ray casts. diff --git a/addons/cclua/cclua/library/cclua/Callback.lua b/addons/cclua/cclua/library/cclua/Callback.lua index 79ad9d0c..3fc7ebe5 100644 --- a/addons/cclua/cclua/library/cclua/Callback.lua +++ b/addons/cclua/cclua/library/cclua/Callback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.Callback --- diff --git a/addons/cclua/cclua/library/cclua/Container.lua b/addons/cclua/cclua/library/cclua/Container.lua index 198fa245..accf14ef 100644 --- a/addons/cclua/cclua/library/cclua/Container.lua +++ b/addons/cclua/cclua/library/cclua/Container.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.Container --- diff --git a/addons/cclua/cclua/library/cclua/MP3Encoder.lua b/addons/cclua/cclua/library/cclua/MP3Encoder.lua index 13194834..d6901d47 100644 --- a/addons/cclua/cclua/library/cclua/MP3Encoder.lua +++ b/addons/cclua/cclua/library/cclua/MP3Encoder.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.MP3Encoder --- diff --git a/addons/cclua/cclua/library/cclua/MP3Encoder/MPEGMode.lua b/addons/cclua/cclua/library/cclua/MP3Encoder/MPEGMode.lua index 46c60178..a6b19b0f 100644 --- a/addons/cclua/cclua/library/cclua/MP3Encoder/MPEGMode.lua +++ b/addons/cclua/cclua/library/cclua/MP3Encoder/MPEGMode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.MP3Encoder.MPEGMode ---@type cclua.MP3Encoder.MPEGMode diff --git a/addons/cclua/cclua/library/cclua/MP3Encoder/VBRMode.lua b/addons/cclua/cclua/library/cclua/MP3Encoder/VBRMode.lua index ec42257e..db22fb6d 100644 --- a/addons/cclua/cclua/library/cclua/MP3Encoder/VBRMode.lua +++ b/addons/cclua/cclua/library/cclua/MP3Encoder/VBRMode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.MP3Encoder.VBRMode ---@type cclua.MP3Encoder.VBRMode diff --git a/addons/cclua/cclua/library/cclua/QRCode.lua b/addons/cclua/cclua/library/cclua/QRCode.lua index 16f6fac1..008f359c 100644 --- a/addons/cclua/cclua/library/cclua/QRCode.lua +++ b/addons/cclua/cclua/library/cclua/QRCode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.QRCode --- diff --git a/addons/cclua/cclua/library/cclua/QRCode/ECLevel.lua b/addons/cclua/cclua/library/cclua/QRCode/ECLevel.lua index c13e48d6..bd0e7888 100644 --- a/addons/cclua/cclua/library/cclua/QRCode/ECLevel.lua +++ b/addons/cclua/cclua/library/cclua/QRCode/ECLevel.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.QRCode.ECLevel ---@type cclua.QRCode.ECLevel diff --git a/addons/cclua/cclua/library/cclua/QRCode/EncodeMode.lua b/addons/cclua/cclua/library/cclua/QRCode/EncodeMode.lua index 2af5d9d2..8da23c6e 100644 --- a/addons/cclua/cclua/library/cclua/QRCode/EncodeMode.lua +++ b/addons/cclua/cclua/library/cclua/QRCode/EncodeMode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.QRCode.EncodeMode ---@type cclua.QRCode.EncodeMode diff --git a/addons/cclua/cclua/library/cclua/SceneNoCamera.lua b/addons/cclua/cclua/library/cclua/SceneNoCamera.lua index 81c2ef11..63f26e79 100644 --- a/addons/cclua/cclua/library/cclua/SceneNoCamera.lua +++ b/addons/cclua/cclua/library/cclua/SceneNoCamera.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.SceneNoCamera --- diff --git a/addons/cclua/cclua/library/cclua/XMLHttpRequest.lua b/addons/cclua/cclua/library/cclua/XMLHttpRequest.lua index dc3d3624..3a2d570a 100644 --- a/addons/cclua/cclua/library/cclua/XMLHttpRequest.lua +++ b/addons/cclua/cclua/library/cclua/XMLHttpRequest.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.XMLHttpRequest --- diff --git a/addons/cclua/cclua/library/cclua/XMLHttpRequest/ResponseType.lua b/addons/cclua/cclua/library/cclua/XMLHttpRequest/ResponseType.lua index 9ef92ac9..b224ee9b 100644 --- a/addons/cclua/cclua/library/cclua/XMLHttpRequest/ResponseType.lua +++ b/addons/cclua/cclua/library/cclua/XMLHttpRequest/ResponseType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.XMLHttpRequest.ResponseType ---@type cclua.XMLHttpRequest.ResponseType diff --git a/addons/cclua/cclua/library/cclua/downloader.lua b/addons/cclua/cclua/library/cclua/downloader.lua index 12583f21..62f9477b 100644 --- a/addons/cclua/cclua/library/cclua/downloader.lua +++ b/addons/cclua/cclua/library/cclua/downloader.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.downloader --- diff --git a/addons/cclua/cclua/library/cclua/filesystem.lua b/addons/cclua/cclua/library/cclua/filesystem.lua index 2cdf37c8..0472b8e0 100644 --- a/addons/cclua/cclua/library/cclua/filesystem.lua +++ b/addons/cclua/cclua/library/cclua/filesystem.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.filesystem --- diff --git a/addons/cclua/cclua/library/cclua/microphone.lua b/addons/cclua/cclua/library/cclua/microphone.lua index 7ce9787d..de9e4abf 100644 --- a/addons/cclua/cclua/library/cclua/microphone.lua +++ b/addons/cclua/cclua/library/cclua/microphone.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.microphone --- diff --git a/addons/cclua/cclua/library/cclua/permission.lua b/addons/cclua/cclua/library/cclua/permission.lua index c1bbd5a1..8cd1f893 100644 --- a/addons/cclua/cclua/library/cclua/permission.lua +++ b/addons/cclua/cclua/library/cclua/permission.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.permission --- diff --git a/addons/cclua/cclua/library/cclua/permission/android.lua b/addons/cclua/cclua/library/cclua/permission/android.lua index 295c04a5..d16cefa7 100644 --- a/addons/cclua/cclua/library/cclua/permission/android.lua +++ b/addons/cclua/cclua/library/cclua/permission/android.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.permission.android --- diff --git a/addons/cclua/cclua/library/cclua/permission/status.lua b/addons/cclua/cclua/library/cclua/permission/status.lua index 6f539d10..79173f23 100644 --- a/addons/cclua/cclua/library/cclua/permission/status.lua +++ b/addons/cclua/cclua/library/cclua/permission/status.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.permission.status --- diff --git a/addons/cclua/cclua/library/cclua/photo.lua b/addons/cclua/cclua/library/cclua/photo.lua index 8d0d5f42..73e78fe5 100644 --- a/addons/cclua/cclua/library/cclua/photo.lua +++ b/addons/cclua/cclua/library/cclua/photo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.photo --- diff --git a/addons/cclua/cclua/library/cclua/preferences.lua b/addons/cclua/cclua/library/cclua/preferences.lua index 400a3d82..10b24630 100644 --- a/addons/cclua/cclua/library/cclua/preferences.lua +++ b/addons/cclua/cclua/library/cclua/preferences.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.preferences --- diff --git a/addons/cclua/cclua/library/cclua/runtime.lua b/addons/cclua/cclua/library/cclua/runtime.lua index 0c527ed3..24df40e5 100644 --- a/addons/cclua/cclua/library/cclua/runtime.lua +++ b/addons/cclua/cclua/library/cclua/runtime.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.runtime --- @@ -9,17 +10,17 @@ ---@field args string[] ---@field audioSessionCatalog string ---@field channel string ----@field cocosVersion any +---@field cocosVersion integer ---@field debug boolean ---@field deviceInfo string ---@field displayStats boolean ---@field eventDispatcher cc.EventDispatcher ---@field fileUtils cc.FileUtils ----@field frameRate any +---@field frameRate integer ---@field language string ---@field logPath string ---@field manifestVersion string ----@field maxFrameRate any +---@field maxFrameRate integer ---@field networkStatus string ---@field os string ---@field packageName string @@ -93,7 +94,7 @@ function runtime.getAudioSessionCatalog() end ---@return string function runtime.getChannel() end ----@return any +---@return integer function runtime.getCocosVersion() end ---@return string @@ -109,7 +110,7 @@ function runtime.getEventDispatcher() end ---@return cc.FileUtils function runtime.getFileUtils() end ----@return any +---@return integer function runtime.getFrameRate() end ---@return string @@ -121,7 +122,7 @@ function runtime.getLogPath() end ---@return string function runtime.getManifestVersion() end ----@return any +---@return integer function runtime.getMaxFrameRate() end ---@return string @@ -230,7 +231,7 @@ function runtime.setDisplayStats(displayStats) end ---@overload fun(key: string, value: string) function runtime.setEnv(key, value, save) end ----@param frameRate any +---@param frameRate integer function runtime.setFrameRate(frameRate) end ---@param path string diff --git a/addons/cclua/cclua/library/cclua/timer.lua b/addons/cclua/cclua/library/cclua/timer.lua index ec08e366..7b453dff 100644 --- a/addons/cclua/cclua/library/cclua/timer.lua +++ b/addons/cclua/cclua/library/cclua/timer.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.timer --- diff --git a/addons/cclua/cclua/library/cclua/window.lua b/addons/cclua/cclua/library/cclua/window.lua index 83a54215..39161357 100644 --- a/addons/cclua/cclua/library/cclua/window.lua +++ b/addons/cclua/cclua/library/cclua/window.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.window --- diff --git a/addons/cclua/cocos2d/library/cc/AccelAmplitude.lua b/addons/cclua/cocos2d/library/cc/AccelAmplitude.lua index 251b58fe..7740e3db 100644 --- a/addons/cclua/cocos2d/library/cc/AccelAmplitude.lua +++ b/addons/cclua/cocos2d/library/cc/AccelAmplitude.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.AccelAmplitude ---\brief AccelAmplitude action. diff --git a/addons/cclua/cocos2d/library/cc/AccelDeccelAmplitude.lua b/addons/cclua/cocos2d/library/cc/AccelDeccelAmplitude.lua index 6cca2115..5755dce4 100644 --- a/addons/cclua/cocos2d/library/cc/AccelDeccelAmplitude.lua +++ b/addons/cclua/cocos2d/library/cc/AccelDeccelAmplitude.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.AccelDeccelAmplitude ---\brief AccelDeccelAmplitude action. diff --git a/addons/cclua/cocos2d/library/cc/Acceleration.lua b/addons/cclua/cocos2d/library/cc/Acceleration.lua index f025ce0d..95715e6c 100644 --- a/addons/cclua/cocos2d/library/cc/Acceleration.lua +++ b/addons/cclua/cocos2d/library/cc/Acceleration.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Acceleration ---\struct Acceleration diff --git a/addons/cclua/cocos2d/library/cc/Action.lua b/addons/cclua/cocos2d/library/cc/Action.lua index d3788a9a..185c75ba 100644 --- a/addons/cclua/cocos2d/library/cc/Action.lua +++ b/addons/cclua/cocos2d/library/cc/Action.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Action ---\brief Base class for Action objects. diff --git a/addons/cclua/cocos2d/library/cc/ActionCamera.lua b/addons/cclua/cocos2d/library/cc/ActionCamera.lua index 3d3b891f..9626bcfd 100644 --- a/addons/cclua/cocos2d/library/cc/ActionCamera.lua +++ b/addons/cclua/cocos2d/library/cc/ActionCamera.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ActionCamera ---\brief Base class for Camera actions. diff --git a/addons/cclua/cocos2d/library/cc/ActionEase.lua b/addons/cclua/cocos2d/library/cc/ActionEase.lua index 20d337de..5dc03e76 100644 --- a/addons/cclua/cocos2d/library/cc/ActionEase.lua +++ b/addons/cclua/cocos2d/library/cc/ActionEase.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ActionEase ---\class ActionEase diff --git a/addons/cclua/cocos2d/library/cc/ActionFloat.lua b/addons/cclua/cocos2d/library/cc/ActionFloat.lua index a7b589e7..9c1f0b3e 100644 --- a/addons/cclua/cocos2d/library/cc/ActionFloat.lua +++ b/addons/cclua/cocos2d/library/cc/ActionFloat.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ActionFloat ---\class ActionFloat diff --git a/addons/cclua/cocos2d/library/cc/ActionFloat/ActionFloatCallback.lua b/addons/cclua/cocos2d/library/cc/ActionFloat/ActionFloatCallback.lua index 7f11633d..7bc6a4ae 100644 --- a/addons/cclua/cocos2d/library/cc/ActionFloat/ActionFloatCallback.lua +++ b/addons/cclua/cocos2d/library/cc/ActionFloat/ActionFloatCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ActionFloat.ActionFloatCallback --- diff --git a/addons/cclua/cocos2d/library/cc/ActionInstant.lua b/addons/cclua/cocos2d/library/cc/ActionInstant.lua index 38bd10c2..95d7f646 100644 --- a/addons/cclua/cocos2d/library/cc/ActionInstant.lua +++ b/addons/cclua/cocos2d/library/cc/ActionInstant.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ActionInstant ---\class ActionInstant diff --git a/addons/cclua/cocos2d/library/cc/ActionInterval.lua b/addons/cclua/cocos2d/library/cc/ActionInterval.lua index 836db686..7934e352 100644 --- a/addons/cclua/cocos2d/library/cc/ActionInterval.lua +++ b/addons/cclua/cocos2d/library/cc/ActionInterval.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ActionInterval ---\addtogroup _2d diff --git a/addons/cclua/cocos2d/library/cc/ActionManager.lua b/addons/cclua/cocos2d/library/cc/ActionManager.lua index 6df0608b..cbd3a98a 100644 --- a/addons/cclua/cocos2d/library/cc/ActionManager.lua +++ b/addons/cclua/cocos2d/library/cc/ActionManager.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ActionManager ---\class ActionManager diff --git a/addons/cclua/cocos2d/library/cc/ActionTween.lua b/addons/cclua/cocos2d/library/cc/ActionTween.lua index 0d9bd64a..a0e4506f 100644 --- a/addons/cclua/cocos2d/library/cc/ActionTween.lua +++ b/addons/cclua/cocos2d/library/cc/ActionTween.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ActionTween ---ActionTween diff --git a/addons/cclua/cocos2d/library/cc/ActionTweenDelegate.lua b/addons/cclua/cocos2d/library/cc/ActionTweenDelegate.lua index 1ba67f8e..c74d305d 100644 --- a/addons/cclua/cocos2d/library/cc/ActionTweenDelegate.lua +++ b/addons/cclua/cocos2d/library/cc/ActionTweenDelegate.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ActionTweenDelegate ---\brief The delegate class for ActionTween. diff --git a/addons/cclua/cocos2d/library/cc/AffineTransform.lua b/addons/cclua/cocos2d/library/cc/AffineTransform.lua index f84bb18b..ca3fe24c 100644 --- a/addons/cclua/cocos2d/library/cc/AffineTransform.lua +++ b/addons/cclua/cocos2d/library/cc/AffineTransform.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.AffineTransform ---\{ diff --git a/addons/cclua/cocos2d/library/cc/AmbientLight.lua b/addons/cclua/cocos2d/library/cc/AmbientLight.lua index f251e96e..79c592dc 100644 --- a/addons/cclua/cocos2d/library/cc/AmbientLight.lua +++ b/addons/cclua/cocos2d/library/cc/AmbientLight.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.AmbientLight ---\js NA diff --git a/addons/cclua/cocos2d/library/cc/Animate.lua b/addons/cclua/cocos2d/library/cc/Animate.lua index 2f3c2a50..5726ee2e 100644 --- a/addons/cclua/cocos2d/library/cc/Animate.lua +++ b/addons/cclua/cocos2d/library/cc/Animate.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Animate ---\class Animate diff --git a/addons/cclua/cocos2d/library/cc/Animation.lua b/addons/cclua/cocos2d/library/cc/Animation.lua index ae1899cb..10a5f350 100644 --- a/addons/cclua/cocos2d/library/cc/Animation.lua +++ b/addons/cclua/cocos2d/library/cc/Animation.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Animation ---\class Animation @@ -114,7 +115,13 @@ function Animation:initWithAnimationFrames(arrayOfAnimationFrameNames, delayPerU ---@param delay number ---@param loops integer ---@return boolean +--- +---Initializes a Animation with frames and a delay between frames. +---\since v0.99.5 ---@overload fun(self: cc.Animation, arrayOfSpriteFrameNames: any): boolean +--- +---Initializes a Animation with frames and a delay between frames. +---\since v0.99.5 ---@overload fun(self: cc.Animation, arrayOfSpriteFrameNames: any, delay: number): boolean function Animation:initWithSpriteFrames(arrayOfSpriteFrameNames, delay, loops) end diff --git a/addons/cclua/cocos2d/library/cc/AnimationCache.lua b/addons/cclua/cocos2d/library/cc/AnimationCache.lua index f54a0995..f5d0f03c 100644 --- a/addons/cclua/cocos2d/library/cc/AnimationCache.lua +++ b/addons/cclua/cocos2d/library/cc/AnimationCache.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.AnimationCache ---Singleton that manages the Animations. diff --git a/addons/cclua/cocos2d/library/cc/AnimationFrame.lua b/addons/cclua/cocos2d/library/cc/AnimationFrame.lua index ebedcbfd..a5b79212 100644 --- a/addons/cclua/cocos2d/library/cc/AnimationFrame.lua +++ b/addons/cclua/cocos2d/library/cc/AnimationFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.AnimationFrame ---\class AnimationFrame diff --git a/addons/cclua/cocos2d/library/cc/Application.lua b/addons/cclua/cocos2d/library/cc/Application.lua index 4c575002..85e38555 100644 --- a/addons/cclua/cocos2d/library/cc/Application.lua +++ b/addons/cclua/cocos2d/library/cc/Application.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Application --- diff --git a/addons/cclua/cocos2d/library/cc/ApplicationProtocol.lua b/addons/cclua/cocos2d/library/cc/ApplicationProtocol.lua index a71399ab..08ccce33 100644 --- a/addons/cclua/cocos2d/library/cc/ApplicationProtocol.lua +++ b/addons/cclua/cocos2d/library/cc/ApplicationProtocol.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ApplicationProtocol ---\addtogroup platform diff --git a/addons/cclua/cocos2d/library/cc/ApplicationProtocol/Platform.lua b/addons/cclua/cocos2d/library/cc/ApplicationProtocol/Platform.lua index cc355e36..233db82d 100644 --- a/addons/cclua/cocos2d/library/cc/ApplicationProtocol/Platform.lua +++ b/addons/cclua/cocos2d/library/cc/ApplicationProtocol/Platform.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ApplicationProtocol.Platform ---@type cc.ApplicationProtocol.Platform diff --git a/addons/cclua/cocos2d/library/cc/AtlasNode.lua b/addons/cclua/cocos2d/library/cc/AtlasNode.lua index 4d88d75a..63e22386 100644 --- a/addons/cclua/cocos2d/library/cc/AtlasNode.lua +++ b/addons/cclua/cocos2d/library/cc/AtlasNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.AtlasNode ---\brief AtlasNode is a subclass of Node that implements the RGBAProtocol and TextureProtocol protocol. diff --git a/addons/cclua/cocos2d/library/cc/AttachNode.lua b/addons/cclua/cocos2d/library/cc/AttachNode.lua index 804a86cc..52aefcc9 100644 --- a/addons/cclua/cocos2d/library/cc/AttachNode.lua +++ b/addons/cclua/cocos2d/library/cc/AttachNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.AttachNode ---\brief attach a node to a bone diff --git a/addons/cclua/cocos2d/library/cc/AudioEngine.lua b/addons/cclua/cocos2d/library/cc/AudioEngine.lua index 802768f7..9896540e 100644 --- a/addons/cclua/cocos2d/library/cc/AudioEngine.lua +++ b/addons/cclua/cocos2d/library/cc/AudioEngine.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.AudioEngine ---\class AudioEngine @@ -63,6 +64,11 @@ function AudioEngine.getPlayingAudioCount() end ---\return The audio profile. ---@param audioID integer ---@return cc.AudioProfile +--- +---Gets an audio profile by name. +--- +---\param profileName A name of audio profile. +---\return The audio profile. ---@overload fun(profileName: string): cc.AudioProfile function AudioEngine.getProfile(audioID) end @@ -122,15 +128,63 @@ function AudioEngine.pauseAll() end ---@param position number ---@param profile cc.AudioProfile ---@return integer +--- +---Play 2d sound. +--- +---\param filePath The path of an audio file. +---\param loop Whether audio instance loop or not. +---\param volume Volume value (range from 0.0 to 1.0). +---\param position The offset in seconds from the start. +---\param profile A profile for audio instance. When profile is not specified, default profile will be used. +---\return An audio ID. It allows you to dynamically change the behavior of an audio instance on the fly. +--- +---\see `AudioProfile` ---@overload fun(filePath: string): integer +--- +---Play 2d sound. +--- +---\param filePath The path of an audio file. +---\param loop Whether audio instance loop or not. +---\param volume Volume value (range from 0.0 to 1.0). +---\param position The offset in seconds from the start. +---\param profile A profile for audio instance. When profile is not specified, default profile will be used. +---\return An audio ID. It allows you to dynamically change the behavior of an audio instance on the fly. +--- +---\see `AudioProfile` ---@overload fun(filePath: string, loop: boolean): integer +--- +---Play 2d sound. +--- +---\param filePath The path of an audio file. +---\param loop Whether audio instance loop or not. +---\param volume Volume value (range from 0.0 to 1.0). +---\param position The offset in seconds from the start. +---\param profile A profile for audio instance. When profile is not specified, default profile will be used. +---\return An audio ID. It allows you to dynamically change the behavior of an audio instance on the fly. +--- +---\see `AudioProfile` ---@overload fun(filePath: string, loop: boolean, volume: number): integer +--- +---Play 2d sound. +--- +---\param filePath The path of an audio file. +---\param loop Whether audio instance loop or not. +---\param volume Volume value (range from 0.0 to 1.0). +---\param position The offset in seconds from the start. +---\param profile A profile for audio instance. When profile is not specified, default profile will be used. +---\return An audio ID. It allows you to dynamically change the behavior of an audio instance on the fly. +--- +---\see `AudioProfile` ---@overload fun(filePath: string, loop: boolean, volume: number, position: number): integer function AudioEngine.play2d(filePath, loop, volume, position, profile) end ---Preload audio file. ---\param filePath The file path of an audio. ---@param filePath string +--- +---Preload audio file. +---\param filePath The file path of an audio. +---\param callback A callback which will be called after loading is finished. ---@overload fun(filePath: string, callback: fun(arg1: boolean)) function AudioEngine.preload(filePath) end diff --git a/addons/cclua/cocos2d/library/cc/AudioEngine/AudioState.lua b/addons/cclua/cocos2d/library/cc/AudioEngine/AudioState.lua index d3e020b2..a9eac850 100644 --- a/addons/cclua/cocos2d/library/cc/AudioEngine/AudioState.lua +++ b/addons/cclua/cocos2d/library/cc/AudioEngine/AudioState.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.AudioEngine.AudioState ---@type cc.AudioEngine.AudioState diff --git a/addons/cclua/cocos2d/library/cc/AudioProfile.lua b/addons/cclua/cocos2d/library/cc/AudioProfile.lua index 1878acff..c1c6013b 100644 --- a/addons/cclua/cocos2d/library/cc/AudioProfile.lua +++ b/addons/cclua/cocos2d/library/cc/AudioProfile.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.AudioProfile ---\class AudioProfile diff --git a/addons/cclua/cocos2d/library/cc/BaseLight.lua b/addons/cclua/cocos2d/library/cc/BaseLight.lua index 3c3ff81f..637412e7 100644 --- a/addons/cclua/cocos2d/library/cc/BaseLight.lua +++ b/addons/cclua/cocos2d/library/cc/BaseLight.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.BaseLight ---\js NA diff --git a/addons/cclua/cocos2d/library/cc/BezierBy.lua b/addons/cclua/cocos2d/library/cc/BezierBy.lua index 937816c7..5caf6146 100644 --- a/addons/cclua/cocos2d/library/cc/BezierBy.lua +++ b/addons/cclua/cocos2d/library/cc/BezierBy.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.BezierBy ---\class BezierBy @@ -17,6 +18,16 @@ local BezierBy = {} ---@param t number ---@param c cc.ccBezierConfig ---@return cc.BezierBy +--- +---Creates the action with a duration and a bezier configuration. +---\param t Duration time, in seconds. +---\param c Bezier config. +---\return An autoreleased BezierBy object. +---\code +---When this function bound to js or lua,the input params are changed. +---in js: var create(var t,var table) +---in lua: local create(local t, local table) +---\endcode ---@overload fun(t: number, c: cc.ccBezierConfig): cc.BezierBy function BezierBy.create(t, c) end diff --git a/addons/cclua/cocos2d/library/cc/BezierTo.lua b/addons/cclua/cocos2d/library/cc/BezierTo.lua index d91ef03f..fdaa8847 100644 --- a/addons/cclua/cocos2d/library/cc/BezierTo.lua +++ b/addons/cclua/cocos2d/library/cc/BezierTo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.BezierTo ---\class BezierTo @@ -18,6 +19,16 @@ local BezierTo = {} ---@param t number ---@param c cc.ccBezierConfig ---@return cc.BezierTo +--- +---Creates the action with a duration and a bezier configuration. +---\param t Duration time, in seconds. +---\param c Bezier config. +---\return An autoreleased BezierTo object. +---\code +---when this function bound to js or lua,the input params are changed +---in js: var create(var t,var table) +---in lua: local create(local t, local table) +---\endcode ---@overload fun(t: number, c: cc.ccBezierConfig): cc.BezierTo function BezierTo.create(t, c) end diff --git a/addons/cclua/cocos2d/library/cc/BillBoard.lua b/addons/cclua/cocos2d/library/cc/BillBoard.lua index 56b88fd5..09d4e976 100644 --- a/addons/cclua/cocos2d/library/cc/BillBoard.lua +++ b/addons/cclua/cocos2d/library/cc/BillBoard.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.BillBoard ---\brief Inherit from Sprite, achieve BillBoard. @@ -10,10 +11,42 @@ local BillBoard = {} ---\return An autoreleased BillBoard object. ---@param mode cc.BillBoard.Mode ---@return cc.BillBoard +--- +---Creates an empty BillBoard without texture. You can call setTexture method subsequently. +--- +---\return An autoreleased BillBoard object. ---@overload fun(): cc.BillBoard +--- +---Creates a BillBoard with an image filename. +--- +---After creation, the rect of BillBoard will be the size of the image, +---and the offset will be (0,0). +--- +---\param filename A path to image file, e.g., "scene1/monster.png" +---\return An autoreleased BillBoard object. ---@overload fun(filename: string, mode: cc.BillBoard.Mode): cc.BillBoard +--- +---Creates a BillBoard with an image filename. +--- +---After creation, the rect of BillBoard will be the size of the image, +---and the offset will be (0,0). +--- +---\param filename A path to image file, e.g., "scene1/monster.png" +---\return An autoreleased BillBoard object. ---@overload fun(filename: string): cc.BillBoard +--- +---Creates a BillBoard with an image filename and a rect. +--- +---\param filename A path to image file, e.g., "scene1/monster.png" +---\param rect A subrect of the image file +---\return An autoreleased BillBoard object ---@overload fun(filename: string, rect: cc.Rect, mode: cc.BillBoard.Mode): cc.BillBoard +--- +---Creates a BillBoard with an image filename and a rect. +--- +---\param filename A path to image file, e.g., "scene1/monster.png" +---\param rect A subrect of the image file +---\return An autoreleased BillBoard object ---@overload fun(filename: string, rect: cc.Rect): cc.BillBoard function BillBoard.create(mode) end @@ -26,6 +59,13 @@ function BillBoard.create(mode) end ---@param texture cc.Texture2D ---@param mode cc.BillBoard.Mode ---@return cc.BillBoard +--- +---Creates a BillBoard with a Texture2D object. +--- +---After creation, the rect will be the size of the texture, and the offset will be (0,0). +--- +---\param texture A pointer to a Texture2D object. +---\return An autoreleased BillBoard object ---@overload fun(texture: cc.Texture2D): cc.BillBoard function BillBoard.createWithTexture(texture, mode) end diff --git a/addons/cclua/cocos2d/library/cc/BillBoard/Mode.lua b/addons/cclua/cocos2d/library/cc/BillBoard/Mode.lua index 9af47f60..4f70c223 100644 --- a/addons/cclua/cocos2d/library/cc/BillBoard/Mode.lua +++ b/addons/cclua/cocos2d/library/cc/BillBoard/Mode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.BillBoard.Mode ---@type cc.BillBoard.Mode diff --git a/addons/cclua/cocos2d/library/cc/BlendFunc.lua b/addons/cclua/cocos2d/library/cc/BlendFunc.lua index acf93d75..92a9224e 100644 --- a/addons/cclua/cocos2d/library/cc/BlendFunc.lua +++ b/addons/cclua/cocos2d/library/cc/BlendFunc.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.BlendFunc ---\struct BlendFunc diff --git a/addons/cclua/cocos2d/library/cc/BlendProtocol.lua b/addons/cclua/cocos2d/library/cc/BlendProtocol.lua index b18e871b..f039f71d 100644 --- a/addons/cclua/cocos2d/library/cc/BlendProtocol.lua +++ b/addons/cclua/cocos2d/library/cc/BlendProtocol.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.BlendProtocol ---Specify the blending function according glBlendFunc diff --git a/addons/cclua/cocos2d/library/cc/Blink.lua b/addons/cclua/cocos2d/library/cc/Blink.lua index d43a3de8..32fee970 100644 --- a/addons/cclua/cocos2d/library/cc/Blink.lua +++ b/addons/cclua/cocos2d/library/cc/Blink.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Blink ---\class Blink diff --git a/addons/cclua/cocos2d/library/cc/Bone3D.lua b/addons/cclua/cocos2d/library/cc/Bone3D.lua index 341a29bc..2790e65f 100644 --- a/addons/cclua/cocos2d/library/cc/Bone3D.lua +++ b/addons/cclua/cocos2d/library/cc/Bone3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Bone3D ---\brief Defines a basic hierarchical structure of transformation spaces. @@ -74,7 +75,21 @@ function Bone3D:resetPose() end ---@param scale olua.float ---@param tag any ---@param weight number +--- +---set animation value +---\param trans translate vec3 +---\param rot rotation quaternion +---\param scale scale vec3 +---\param tag unique tag, only blend animation between different tags +---\param weight blend weight ---@overload fun(self: cc.Bone3D, trans: olua.float, rot: olua.float, scale: olua.float) +--- +---set animation value +---\param trans translate vec3 +---\param rot rotation quaternion +---\param scale scale vec3 +---\param tag unique tag, only blend animation between different tags +---\param weight blend weight ---@overload fun(self: cc.Bone3D, trans: olua.float, rot: olua.float, scale: olua.float, tag: any) function Bone3D:setAnimationValue(trans, rot, scale, tag, weight) end diff --git a/addons/cclua/cocos2d/library/cc/Bounds.lua b/addons/cclua/cocos2d/library/cc/Bounds.lua index 18d7db65..51cdf367 100644 --- a/addons/cclua/cocos2d/library/cc/Bounds.lua +++ b/addons/cclua/cocos2d/library/cc/Bounds.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Bounds --- diff --git a/addons/cclua/cocos2d/library/cc/CSLoader.lua b/addons/cclua/cocos2d/library/cc/CSLoader.lua index 9f6ba6b0..f0a73753 100644 --- a/addons/cclua/cocos2d/library/cc/CSLoader.lua +++ b/addons/cclua/cocos2d/library/cc/CSLoader.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.CSLoader --- diff --git a/addons/cclua/cocos2d/library/cc/CallFunc.lua b/addons/cclua/cocos2d/library/cc/CallFunc.lua index 0f241664..a37b705e 100644 --- a/addons/cclua/cocos2d/library/cc/CallFunc.lua +++ b/addons/cclua/cocos2d/library/cc/CallFunc.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.CallFunc ---\class CallFunc diff --git a/addons/cclua/cocos2d/library/cc/Camera.lua b/addons/cclua/cocos2d/library/cc/Camera.lua index 90ae2ce1..35b1e8bd 100644 --- a/addons/cclua/cocos2d/library/cc/Camera.lua +++ b/addons/cclua/cocos2d/library/cc/Camera.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Camera ---Defines a camera . @@ -7,7 +8,7 @@ ---@field cameraFlag cc.CameraFlag get & set Camera flag ---@field defaultCamera cc.Camera Get the default camera of the current running scene. ---@field defaultViewport cc.Viewport ----@field depth any get depth, camera with larger depth is drawn on top of camera with smaller depth, the depth of camera with CameraFlag::DEFAULT is 0, user defined camera is -1 by default +---@field depth integer get depth, camera with larger depth is drawn on top of camera with smaller depth, the depth of camera with CameraFlag::DEFAULT is 0, user defined camera is -1 by default ---@field farPlane number Get the frustum's far plane. ---@field nearPlane number Get the frustum's near plane. ---@field projectionMatrix cc.Mat4 Gets the camera's projection matrix.

\return The camera projection matrix. @@ -73,7 +74,7 @@ function Camera.getDefaultCamera() end function Camera.getDefaultViewport() end ---get depth, camera with larger depth is drawn on top of camera with smaller depth, the depth of camera with CameraFlag::DEFAULT is 0, user defined camera is -1 by default ----@return any +---@return integer function Camera:getDepth() end ---Get object depth towards camera @@ -151,6 +152,11 @@ function Camera:isViewProjectionUpdated() end ---\param up The up vector, usually it's Y axis ---@param target cc.Vec3 ---@param up cc.Vec3 +--- +---Make Camera looks at target +--- +---\param target The target camera is point at +---\param up The up vector, usually it's Y axis ---@overload fun(self: cc.Camera, target: cc.Vec3) function Camera:lookAt(target, up) end @@ -181,7 +187,7 @@ function Camera:setCameraFlag(flag) end function Camera.setDefaultViewport(vp) end ---set depth, camera with larger depth is drawn on top of camera with smaller depth, the depth of camera with CameraFlag::DEFAULT is 0, user defined camera is -1 by default ----@param depth any +---@param depth integer function Camera:setDepth(depth) end ---Set the scene,this method shall not be invoke manually @@ -195,6 +201,13 @@ function Camera:setScene(scene) end ---\return The 3D world-space position. ---@param src cc.Vec3 ---@return cc.Vec3 +--- +---Convert the specified point of screen-space coordinate into the 3D world-space coordinate. +--- +---Origin point at left top corner in screen-space. +---\param size The window size to use. +---\param src The screen-space position. +---\param dst The 3D world-space position. ---@overload fun(self: cc.Camera, size: cc.Size, src: cc.Vec3, dst: cc.Vec3) function Camera:unproject(src) end @@ -205,6 +218,13 @@ function Camera:unproject(src) end ---\return The 3D world-space position. ---@param src cc.Vec3 ---@return cc.Vec3 +--- +---Convert the specified point of GL-screen-space coordinate into the 3D world-space coordinate. +--- +---Origin point at left bottom corner in GL-screen-space. +---\param size The window size to use. +---\param src The GL-screen-space position. +---\param dst The 3D world-space position. ---@overload fun(self: cc.Camera, size: cc.Size, src: cc.Vec3, dst: cc.Vec3) function Camera:unprojectGL(src) end diff --git a/addons/cclua/cocos2d/library/cc/Camera/Type.lua b/addons/cclua/cocos2d/library/cc/Camera/Type.lua index 453c7e49..a84e571d 100644 --- a/addons/cclua/cocos2d/library/cc/Camera/Type.lua +++ b/addons/cclua/cocos2d/library/cc/Camera/Type.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Camera.Type ---@type cc.Camera.Type diff --git a/addons/cclua/cocos2d/library/cc/CameraBackgroundBrush.lua b/addons/cclua/cocos2d/library/cc/CameraBackgroundBrush.lua index 5e6f2506..a146c2af 100644 --- a/addons/cclua/cocos2d/library/cc/CameraBackgroundBrush.lua +++ b/addons/cclua/cocos2d/library/cc/CameraBackgroundBrush.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.CameraBackgroundBrush ---Defines a brush to clear the background of camera. @@ -21,6 +22,10 @@ function CameraBackgroundBrush.createColorBrush(color, depth) end ---\return Created brush ---@param depth number ---@return cc.CameraBackgroundDepthBrush +--- +---Creates a depth brush, which clears depth buffer with a given depth. +---\param depth Depth used to clear depth buffer +---\return Created brush ---@overload fun(): cc.CameraBackgroundDepthBrush function CameraBackgroundBrush.createDepthBrush(depth) end diff --git a/addons/cclua/cocos2d/library/cc/CameraBackgroundBrush/BrushType.lua b/addons/cclua/cocos2d/library/cc/CameraBackgroundBrush/BrushType.lua index 1fc288eb..e1431592 100644 --- a/addons/cclua/cocos2d/library/cc/CameraBackgroundBrush/BrushType.lua +++ b/addons/cclua/cocos2d/library/cc/CameraBackgroundBrush/BrushType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.CameraBackgroundBrush.BrushType ---@type cc.CameraBackgroundBrush.BrushType diff --git a/addons/cclua/cocos2d/library/cc/CameraBackgroundColorBrush.lua b/addons/cclua/cocos2d/library/cc/CameraBackgroundColorBrush.lua index d723c373..880fa003 100644 --- a/addons/cclua/cocos2d/library/cc/CameraBackgroundColorBrush.lua +++ b/addons/cclua/cocos2d/library/cc/CameraBackgroundColorBrush.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.CameraBackgroundColorBrush ---Color brush clear buffer with given depth and color diff --git a/addons/cclua/cocos2d/library/cc/CameraBackgroundDepthBrush.lua b/addons/cclua/cocos2d/library/cc/CameraBackgroundDepthBrush.lua index 69b2ffd1..3cfdfb7d 100644 --- a/addons/cclua/cocos2d/library/cc/CameraBackgroundDepthBrush.lua +++ b/addons/cclua/cocos2d/library/cc/CameraBackgroundDepthBrush.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.CameraBackgroundDepthBrush ---Depth brush clear depth buffer with given depth diff --git a/addons/cclua/cocos2d/library/cc/CameraBackgroundSkyBoxBrush.lua b/addons/cclua/cocos2d/library/cc/CameraBackgroundSkyBoxBrush.lua index 915df551..b4bb659e 100644 --- a/addons/cclua/cocos2d/library/cc/CameraBackgroundSkyBoxBrush.lua +++ b/addons/cclua/cocos2d/library/cc/CameraBackgroundSkyBoxBrush.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.CameraBackgroundSkyBoxBrush ---Skybox brush clear buffer with a skybox @@ -20,6 +21,8 @@ local CameraBackgroundSkyBoxBrush = {} ---@param positive_z string ---@param negative_z string ---@return cc.CameraBackgroundSkyBoxBrush +--- +---Creates a Skybox brush with 6 textures. ---@overload fun(): cc.CameraBackgroundSkyBoxBrush function CameraBackgroundSkyBoxBrush.create(positive_x, negative_x, positive_y, negative_y, positive_z, negative_z) end diff --git a/addons/cclua/cocos2d/library/cc/CameraFlag.lua b/addons/cclua/cocos2d/library/cc/CameraFlag.lua index 34985567..c1988617 100644 --- a/addons/cclua/cocos2d/library/cc/CameraFlag.lua +++ b/addons/cclua/cocos2d/library/cc/CameraFlag.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.CameraFlag ---@type cc.CameraFlag diff --git a/addons/cclua/cocos2d/library/cc/CardinalSplineBy.lua b/addons/cclua/cocos2d/library/cc/CardinalSplineBy.lua index 16a70666..da082222 100644 --- a/addons/cclua/cocos2d/library/cc/CardinalSplineBy.lua +++ b/addons/cclua/cocos2d/library/cc/CardinalSplineBy.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.CardinalSplineBy ---\class CardinalSplineBy diff --git a/addons/cclua/cocos2d/library/cc/CardinalSplineTo.lua b/addons/cclua/cocos2d/library/cc/CardinalSplineTo.lua index 1b4ed535..bdc256e4 100644 --- a/addons/cclua/cocos2d/library/cc/CardinalSplineTo.lua +++ b/addons/cclua/cocos2d/library/cc/CardinalSplineTo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.CardinalSplineTo ---\class CardinalSplineTo diff --git a/addons/cclua/cocos2d/library/cc/CatmullRomBy.lua b/addons/cclua/cocos2d/library/cc/CatmullRomBy.lua index ef080269..f387dd1d 100644 --- a/addons/cclua/cocos2d/library/cc/CatmullRomBy.lua +++ b/addons/cclua/cocos2d/library/cc/CatmullRomBy.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.CatmullRomBy ---\class CatmullRomBy diff --git a/addons/cclua/cocos2d/library/cc/CatmullRomTo.lua b/addons/cclua/cocos2d/library/cc/CatmullRomTo.lua index 7e1d6341..96d95462 100644 --- a/addons/cclua/cocos2d/library/cc/CatmullRomTo.lua +++ b/addons/cclua/cocos2d/library/cc/CatmullRomTo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.CatmullRomTo ---\class CatmullRomTo diff --git a/addons/cclua/cocos2d/library/cc/ClearFlag.lua b/addons/cclua/cocos2d/library/cc/ClearFlag.lua index af5da731..51dd6ab0 100644 --- a/addons/cclua/cocos2d/library/cc/ClearFlag.lua +++ b/addons/cclua/cocos2d/library/cc/ClearFlag.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ClearFlag ---@type cc.ClearFlag diff --git a/addons/cclua/cocos2d/library/cc/ClippingNode.lua b/addons/cclua/cocos2d/library/cc/ClippingNode.lua index eaca649f..b5a7cb85 100644 --- a/addons/cclua/cocos2d/library/cc/ClippingNode.lua +++ b/addons/cclua/cocos2d/library/cc/ClippingNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ClippingNode ---\addtogroup _2d @@ -17,6 +18,10 @@ local ClippingNode = {} --- ---\return An autorelease ClippingNode. ---@return cc.ClippingNode +--- +---Creates and initializes a clipping node with an other node as its stencil. +---The stencil node will be retained. +---\param stencil The stencil node. ---@overload fun(stencil: cc.Node): cc.ClippingNode function ClippingNode.create() end @@ -51,6 +56,9 @@ function ClippingNode:hasContent() end ---Initializes a clipping node without a stencil. ---@return boolean +--- +---Initializes a clipping node with an other node as its stencil. +---The stencil node will be retained, and its parent will be set to this clipping node. ---@overload fun(self: cc.ClippingNode, stencil: cc.Node): boolean function ClippingNode:init() end diff --git a/addons/cclua/cocos2d/library/cc/ClippingRectangleNode.lua b/addons/cclua/cocos2d/library/cc/ClippingRectangleNode.lua index 0a813fd3..86db1893 100644 --- a/addons/cclua/cocos2d/library/cc/ClippingRectangleNode.lua +++ b/addons/cclua/cocos2d/library/cc/ClippingRectangleNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ClippingRectangleNode ---\brief Clipping Rectangle Node. @@ -14,6 +15,9 @@ local ClippingRectangleNode = {} ---\return If the creation success, return a pointer of ClippingRectangleNode; otherwise return nil. ---@param clippingRegion cc.Rect ---@return cc.ClippingRectangleNode +--- +---\brief Create a clipping rectangle node. +---\return If the creation success, return a pointer of ClippingRectangleNode; otherwise return nil. ---@overload fun(): cc.ClippingRectangleNode function ClippingRectangleNode.create(clippingRegion) end diff --git a/addons/cclua/cocos2d/library/cc/Clonable.lua b/addons/cclua/cocos2d/library/cc/Clonable.lua index 4f1e922c..97b31cb4 100644 --- a/addons/cclua/cocos2d/library/cc/Clonable.lua +++ b/addons/cclua/cocos2d/library/cc/Clonable.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Clonable ---Interface that defines how to clone an Ref. diff --git a/addons/cclua/cocos2d/library/cc/Component.lua b/addons/cclua/cocos2d/library/cc/Component.lua index dff46e24..6e14ff1d 100644 --- a/addons/cclua/cocos2d/library/cc/Component.lua +++ b/addons/cclua/cocos2d/library/cc/Component.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Component --- diff --git a/addons/cclua/cocos2d/library/cc/Console.lua b/addons/cclua/cocos2d/library/cc/Console.lua index 5a4ced78..62fc54df 100644 --- a/addons/cclua/cocos2d/library/cc/Console.lua +++ b/addons/cclua/cocos2d/library/cc/Console.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Console ---Console is helper class that lets the developer control the game from TCP connection. diff --git a/addons/cclua/cocos2d/library/cc/Controller.lua b/addons/cclua/cocos2d/library/cc/Controller.lua index 28f846c0..73e4a360 100644 --- a/addons/cclua/cocos2d/library/cc/Controller.lua +++ b/addons/cclua/cocos2d/library/cc/Controller.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Controller ---\class Controller diff --git a/addons/cclua/cocos2d/library/cc/Controller/Key.lua b/addons/cclua/cocos2d/library/cc/Controller/Key.lua index 7aa19e90..fd842e22 100644 --- a/addons/cclua/cocos2d/library/cc/Controller/Key.lua +++ b/addons/cclua/cocos2d/library/cc/Controller/Key.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Controller.Key ---@type cc.Controller.Key diff --git a/addons/cclua/cocos2d/library/cc/Controller/KeyStatus.lua b/addons/cclua/cocos2d/library/cc/Controller/KeyStatus.lua index 91dfe374..37b0c9fd 100644 --- a/addons/cclua/cocos2d/library/cc/Controller/KeyStatus.lua +++ b/addons/cclua/cocos2d/library/cc/Controller/KeyStatus.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Controller.KeyStatus ---\struct KeyStatus diff --git a/addons/cclua/cocos2d/library/cc/CustomCommand.lua b/addons/cclua/cocos2d/library/cc/CustomCommand.lua index 0f0ebdbb..da54b16f 100644 --- a/addons/cclua/cocos2d/library/cc/CustomCommand.lua +++ b/addons/cclua/cocos2d/library/cc/CustomCommand.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.CustomCommand ---Custom command is used to draw all things except triangle commands. You can use @@ -98,7 +99,14 @@ function CustomCommand:getVertexDrawStart() end ---@param globalZOrder number ---@param modelViewTransform cc.Mat4 ---@param flags integer +--- +---Init function. The render command will be in 2D mode. +---\param globalZOrder GlobalZOrder of the render command. ---@overload fun(self: cc.CustomCommand, globalZOrder: number) +--- +---Init function. The render command will be in 2D mode. +---\param globalZOrder GlobalZOrder of the render command. +---\param blendFunc blend function of the render command. ---@overload fun(self: cc.CustomCommand, globalZOrder: number, blendFunc: cc.BlendFunc) function CustomCommand:init(globalZOrder, modelViewTransform, flags) end @@ -151,6 +159,11 @@ function CustomCommand:setVertexDrawInfo(start, count) end ---\param length Specifies the size in bytes of the data store region being replaced. ---@param data any ---@param length any +--- +---Update some or call contents of index buffer +---\param data Specifies a pointer to the new data that will be copied into the data store. +---\param offset specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. +---\param length Specifies the size in bytes of the data store region being replaced. ---@overload fun(self: cc.CustomCommand, data: any, offset: any, length: any) function CustomCommand:updateIndexBuffer(data, length) end @@ -159,6 +172,11 @@ function CustomCommand:updateIndexBuffer(data, length) end ---\param length Specifies the length in bytes of the data store region being replaced. ---@param data any ---@param length any +--- +---Update some or all contents of vertex buffer. +---\param data Specifies a pointer to the new data that will be copied into the data store. +---\param offset Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. +---\param length Specifies the size in bytes of the data store region being replaced. ---@overload fun(self: cc.CustomCommand, data: any, offset: any, length: any) function CustomCommand:updateVertexBuffer(data, length) end diff --git a/addons/cclua/cocos2d/library/cc/CustomCommand/DrawType.lua b/addons/cclua/cocos2d/library/cc/CustomCommand/DrawType.lua index 26cd08fc..6ea6706b 100644 --- a/addons/cclua/cocos2d/library/cc/CustomCommand/DrawType.lua +++ b/addons/cclua/cocos2d/library/cc/CustomCommand/DrawType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.CustomCommand.DrawType ---@type cc.CustomCommand.DrawType diff --git a/addons/cclua/cocos2d/library/cc/DeccelAmplitude.lua b/addons/cclua/cocos2d/library/cc/DeccelAmplitude.lua index c944bb59..6c5b6789 100644 --- a/addons/cclua/cocos2d/library/cc/DeccelAmplitude.lua +++ b/addons/cclua/cocos2d/library/cc/DeccelAmplitude.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.DeccelAmplitude ---\brief DeccelAmplitude action. diff --git a/addons/cclua/cocos2d/library/cc/DelayTime.lua b/addons/cclua/cocos2d/library/cc/DelayTime.lua index 662e7a34..231c64f7 100644 --- a/addons/cclua/cocos2d/library/cc/DelayTime.lua +++ b/addons/cclua/cocos2d/library/cc/DelayTime.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.DelayTime ---\class DelayTime diff --git a/addons/cclua/cocos2d/library/cc/Device.lua b/addons/cclua/cocos2d/library/cc/Device.lua index 58f3b577..9ff8e97a 100644 --- a/addons/cclua/cocos2d/library/cc/Device.lua +++ b/addons/cclua/cocos2d/library/cc/Device.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Device ---\class Device diff --git a/addons/cclua/cocos2d/library/cc/DirectionLight.lua b/addons/cclua/cocos2d/library/cc/DirectionLight.lua index 4cefa0d6..79fddd9f 100644 --- a/addons/cclua/cocos2d/library/cc/DirectionLight.lua +++ b/addons/cclua/cocos2d/library/cc/DirectionLight.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.DirectionLight ---\js NA diff --git a/addons/cclua/cocos2d/library/cc/Director.lua b/addons/cclua/cocos2d/library/cc/Director.lua index 83e0bc33..e5501a3e 100644 --- a/addons/cclua/cocos2d/library/cc/Director.lua +++ b/addons/cclua/cocos2d/library/cc/Director.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Director ---\brief Class that creates and handles the main Window and manages how @@ -54,6 +55,9 @@ local Director = {} ---Useful to convert (multi) touch coordinates to the current layout (portrait or landscape). ---@param point cc.Vec2 ---@return cc.Vec2 +--- +---Converts a screen coordinate to an OpenGL coordinate. +---Useful to convert (multi) touch coordinates to the current layout (portrait or landscape). ---@overload fun(self: cc.Director, point: cc.Vec2): cc.Vec2 function Director:convertToGL(point) end @@ -61,6 +65,9 @@ function Director:convertToGL(point) end ---Useful to convert node points to window points for calls such as glScissor. ---@param point cc.Vec2 ---@return cc.Vec2 +--- +---Converts an OpenGL coordinate to a screen coordinate. +---Useful to convert node points to window points for calls such as glScissor. ---@overload fun(self: cc.Director, point: cc.Vec2): cc.Vec2 function Director:convertToUI(point) end @@ -226,6 +233,10 @@ function Director:loadIdentityMatrix(type) end ---@param mat cc.Mat4 function Director:loadMatrix(type, mat) end +--- +---Invoke main loop with delta time. Then `calculateDeltaTime` can just use the delta time directly. +---The delta time paseed may include vsync time. See issue #17806 +---\since 3.16 ---@overload fun(self: cc.Director, dt: number) function Director:mainLoop() end diff --git a/addons/cclua/cocos2d/library/cc/Director/Projection.lua b/addons/cclua/cocos2d/library/cc/Director/Projection.lua index 884d8deb..5205ed48 100644 --- a/addons/cclua/cocos2d/library/cc/Director/Projection.lua +++ b/addons/cclua/cocos2d/library/cc/Director/Projection.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Director.Projection ---@type cc.Director.Projection diff --git a/addons/cclua/cocos2d/library/cc/DrawNode.lua b/addons/cclua/cocos2d/library/cc/DrawNode.lua index 7716b724..886d4ee7 100644 --- a/addons/cclua/cocos2d/library/cc/DrawNode.lua +++ b/addons/cclua/cocos2d/library/cc/DrawNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.DrawNode ---\class DrawNode @@ -18,6 +19,10 @@ function DrawNode:clear() end ---\return Return an autorelease object. ---@param defaultLineWidth number ---@return cc.DrawNode +--- +---creates and initialize a DrawNode node. +--- +---\return Return an autorelease object. ---@overload fun(): cc.DrawNode function DrawNode.create(defaultLineWidth) end @@ -61,6 +66,15 @@ function DrawNode:drawCatmullRom(points, segments, color) end ---@param scaleX number ---@param scaleY number ---@param color any +--- +---Draws a circle given the center, radius and number of segments. +--- +---\param center The circle center point. +---\param radius The circle rotate of radius. +---\param angle The circle angle. +---\param segments The number of segments. +---\param drawLineToCenter Whether or not draw the line from the origin to center. +---\param color Set the circle color. ---@overload fun(self: cc.DrawNode, center: cc.Vec2, radius: number, angle: number, segments: integer, drawLineToCenter: boolean, color: any) function DrawNode:drawCircle(center, radius, angle, segments, drawLineToCenter, scaleX, scaleY, color) end @@ -121,6 +135,14 @@ function DrawNode:drawPoint(point, pointSize, color) end ---@param position cc.Vec2 ---@param numberOfPoints integer ---@param color any +--- +---Draw a group point. +--- +---\param position A Vec2 pointer. +---\param numberOfPoints The number of points. +---\param pointSize The point size. +---\param color The point color. +---\js NA ---@overload fun(self: cc.DrawNode, position: cc.Vec2, numberOfPoints: integer, pointSize: number, color: any) function DrawNode:drawPoints(position, numberOfPoints, color) end @@ -179,6 +201,14 @@ function DrawNode:drawQuadBezier(origin, control, destination, segments, color) ---@param origin cc.Vec2 ---@param destination cc.Vec2 ---@param color any +--- +---Draws a rectangle with 4 points. +--- +---\param p1 The rectangle vertex point. +---\param p2 The rectangle vertex point. +---\param p3 The rectangle vertex point. +---\param p4 The rectangle vertex point. +---\param color The rectangle color. ---@overload fun(self: cc.DrawNode, p1: cc.Vec2, p2: cc.Vec2, p3: cc.Vec2, p4: cc.Vec2, color: any) function DrawNode:drawRect(origin, destination, color) end @@ -210,6 +240,14 @@ function DrawNode:drawSegment(from, to, radius, color) end ---@param scaleX number ---@param scaleY number ---@param color any +--- +---Draws a solid circle given the center, radius and number of segments. +---\param center The circle center point. +---\param radius The circle rotate of radius. +---\param angle The circle angle. +---\param segments The number of segments. +---\param color The solid circle color. +---\js NA ---@overload fun(self: cc.DrawNode, center: cc.Vec2, radius: number, angle: number, segments: integer, color: any) function DrawNode:drawSolidCircle(center, radius, angle, segments, scaleX, scaleY, color) end diff --git a/addons/cclua/cocos2d/library/cc/EaseBackIn.lua b/addons/cclua/cocos2d/library/cc/EaseBackIn.lua index 7017f1d2..d14d5ee1 100644 --- a/addons/cclua/cocos2d/library/cc/EaseBackIn.lua +++ b/addons/cclua/cocos2d/library/cc/EaseBackIn.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseBackIn --- diff --git a/addons/cclua/cocos2d/library/cc/EaseBackInOut.lua b/addons/cclua/cocos2d/library/cc/EaseBackInOut.lua index c5695f12..f4b88053 100644 --- a/addons/cclua/cocos2d/library/cc/EaseBackInOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseBackInOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseBackInOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseBackOut.lua b/addons/cclua/cocos2d/library/cc/EaseBackOut.lua index efa5322f..ed70e50d 100644 --- a/addons/cclua/cocos2d/library/cc/EaseBackOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseBackOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseBackOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseBezierAction.lua b/addons/cclua/cocos2d/library/cc/EaseBezierAction.lua index 2d4715c6..7c45d06b 100644 --- a/addons/cclua/cocos2d/library/cc/EaseBezierAction.lua +++ b/addons/cclua/cocos2d/library/cc/EaseBezierAction.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseBezierAction ---\class EaseBezierAction diff --git a/addons/cclua/cocos2d/library/cc/EaseBounceIn.lua b/addons/cclua/cocos2d/library/cc/EaseBounceIn.lua index 18b339df..5a4de4aa 100644 --- a/addons/cclua/cocos2d/library/cc/EaseBounceIn.lua +++ b/addons/cclua/cocos2d/library/cc/EaseBounceIn.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseBounceIn --- diff --git a/addons/cclua/cocos2d/library/cc/EaseBounceInOut.lua b/addons/cclua/cocos2d/library/cc/EaseBounceInOut.lua index 9bc484df..6333cc40 100644 --- a/addons/cclua/cocos2d/library/cc/EaseBounceInOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseBounceInOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseBounceInOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseBounceOut.lua b/addons/cclua/cocos2d/library/cc/EaseBounceOut.lua index d3390395..af12383e 100644 --- a/addons/cclua/cocos2d/library/cc/EaseBounceOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseBounceOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseBounceOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseCircleActionIn.lua b/addons/cclua/cocos2d/library/cc/EaseCircleActionIn.lua index c86fc621..16837abe 100644 --- a/addons/cclua/cocos2d/library/cc/EaseCircleActionIn.lua +++ b/addons/cclua/cocos2d/library/cc/EaseCircleActionIn.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseCircleActionIn --- diff --git a/addons/cclua/cocos2d/library/cc/EaseCircleActionInOut.lua b/addons/cclua/cocos2d/library/cc/EaseCircleActionInOut.lua index 42c2cc4d..6007d5bb 100644 --- a/addons/cclua/cocos2d/library/cc/EaseCircleActionInOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseCircleActionInOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseCircleActionInOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseCircleActionOut.lua b/addons/cclua/cocos2d/library/cc/EaseCircleActionOut.lua index 2501d302..99ec7e34 100644 --- a/addons/cclua/cocos2d/library/cc/EaseCircleActionOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseCircleActionOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseCircleActionOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseCubicActionIn.lua b/addons/cclua/cocos2d/library/cc/EaseCubicActionIn.lua index ae8eb03a..6eb6a3bc 100644 --- a/addons/cclua/cocos2d/library/cc/EaseCubicActionIn.lua +++ b/addons/cclua/cocos2d/library/cc/EaseCubicActionIn.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseCubicActionIn --- diff --git a/addons/cclua/cocos2d/library/cc/EaseCubicActionInOut.lua b/addons/cclua/cocos2d/library/cc/EaseCubicActionInOut.lua index 808e25b1..da110c2a 100644 --- a/addons/cclua/cocos2d/library/cc/EaseCubicActionInOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseCubicActionInOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseCubicActionInOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseCubicActionOut.lua b/addons/cclua/cocos2d/library/cc/EaseCubicActionOut.lua index f08f46ab..77480e87 100644 --- a/addons/cclua/cocos2d/library/cc/EaseCubicActionOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseCubicActionOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseCubicActionOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseElastic.lua b/addons/cclua/cocos2d/library/cc/EaseElastic.lua index 1d5e012c..2a3bfece 100644 --- a/addons/cclua/cocos2d/library/cc/EaseElastic.lua +++ b/addons/cclua/cocos2d/library/cc/EaseElastic.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseElastic ---\class EaseElastic diff --git a/addons/cclua/cocos2d/library/cc/EaseElasticIn.lua b/addons/cclua/cocos2d/library/cc/EaseElasticIn.lua index 6240562e..90fd924b 100644 --- a/addons/cclua/cocos2d/library/cc/EaseElasticIn.lua +++ b/addons/cclua/cocos2d/library/cc/EaseElasticIn.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseElasticIn --- diff --git a/addons/cclua/cocos2d/library/cc/EaseElasticInOut.lua b/addons/cclua/cocos2d/library/cc/EaseElasticInOut.lua index 93035764..642a2d7a 100644 --- a/addons/cclua/cocos2d/library/cc/EaseElasticInOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseElasticInOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseElasticInOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseElasticOut.lua b/addons/cclua/cocos2d/library/cc/EaseElasticOut.lua index 9703e78c..f611a9a6 100644 --- a/addons/cclua/cocos2d/library/cc/EaseElasticOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseElasticOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseElasticOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseExponentialIn.lua b/addons/cclua/cocos2d/library/cc/EaseExponentialIn.lua index af21dd00..ecd356ef 100644 --- a/addons/cclua/cocos2d/library/cc/EaseExponentialIn.lua +++ b/addons/cclua/cocos2d/library/cc/EaseExponentialIn.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseExponentialIn --- diff --git a/addons/cclua/cocos2d/library/cc/EaseExponentialInOut.lua b/addons/cclua/cocos2d/library/cc/EaseExponentialInOut.lua index fdfb42fe..470ecb59 100644 --- a/addons/cclua/cocos2d/library/cc/EaseExponentialInOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseExponentialInOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseExponentialInOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseExponentialOut.lua b/addons/cclua/cocos2d/library/cc/EaseExponentialOut.lua index 50645400..50afc4ee 100644 --- a/addons/cclua/cocos2d/library/cc/EaseExponentialOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseExponentialOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseExponentialOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseIn.lua b/addons/cclua/cocos2d/library/cc/EaseIn.lua index 2bb37357..ba6962d7 100644 --- a/addons/cclua/cocos2d/library/cc/EaseIn.lua +++ b/addons/cclua/cocos2d/library/cc/EaseIn.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseIn --- diff --git a/addons/cclua/cocos2d/library/cc/EaseInOut.lua b/addons/cclua/cocos2d/library/cc/EaseInOut.lua index 5bdcadf8..55682f47 100644 --- a/addons/cclua/cocos2d/library/cc/EaseInOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseInOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseInOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseOut.lua b/addons/cclua/cocos2d/library/cc/EaseOut.lua index 615f96bb..2b61f81b 100644 --- a/addons/cclua/cocos2d/library/cc/EaseOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseQuadraticActionIn.lua b/addons/cclua/cocos2d/library/cc/EaseQuadraticActionIn.lua index 067ed213..491ca5e4 100644 --- a/addons/cclua/cocos2d/library/cc/EaseQuadraticActionIn.lua +++ b/addons/cclua/cocos2d/library/cc/EaseQuadraticActionIn.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseQuadraticActionIn --- diff --git a/addons/cclua/cocos2d/library/cc/EaseQuadraticActionInOut.lua b/addons/cclua/cocos2d/library/cc/EaseQuadraticActionInOut.lua index c91cc06e..f793fa86 100644 --- a/addons/cclua/cocos2d/library/cc/EaseQuadraticActionInOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseQuadraticActionInOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseQuadraticActionInOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseQuadraticActionOut.lua b/addons/cclua/cocos2d/library/cc/EaseQuadraticActionOut.lua index 3a118656..a8901cfb 100644 --- a/addons/cclua/cocos2d/library/cc/EaseQuadraticActionOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseQuadraticActionOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseQuadraticActionOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseQuarticActionIn.lua b/addons/cclua/cocos2d/library/cc/EaseQuarticActionIn.lua index 9b7598f9..f77d6241 100644 --- a/addons/cclua/cocos2d/library/cc/EaseQuarticActionIn.lua +++ b/addons/cclua/cocos2d/library/cc/EaseQuarticActionIn.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseQuarticActionIn --- diff --git a/addons/cclua/cocos2d/library/cc/EaseQuarticActionInOut.lua b/addons/cclua/cocos2d/library/cc/EaseQuarticActionInOut.lua index a7ed7cf4..199d5288 100644 --- a/addons/cclua/cocos2d/library/cc/EaseQuarticActionInOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseQuarticActionInOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseQuarticActionInOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseQuarticActionOut.lua b/addons/cclua/cocos2d/library/cc/EaseQuarticActionOut.lua index d0a83996..d4148a79 100644 --- a/addons/cclua/cocos2d/library/cc/EaseQuarticActionOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseQuarticActionOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseQuarticActionOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseQuinticActionIn.lua b/addons/cclua/cocos2d/library/cc/EaseQuinticActionIn.lua index 91e82b6d..fb80d340 100644 --- a/addons/cclua/cocos2d/library/cc/EaseQuinticActionIn.lua +++ b/addons/cclua/cocos2d/library/cc/EaseQuinticActionIn.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseQuinticActionIn --- diff --git a/addons/cclua/cocos2d/library/cc/EaseQuinticActionInOut.lua b/addons/cclua/cocos2d/library/cc/EaseQuinticActionInOut.lua index 9ddcaafc..e3016539 100644 --- a/addons/cclua/cocos2d/library/cc/EaseQuinticActionInOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseQuinticActionInOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseQuinticActionInOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseQuinticActionOut.lua b/addons/cclua/cocos2d/library/cc/EaseQuinticActionOut.lua index ec50d1fd..024b837f 100644 --- a/addons/cclua/cocos2d/library/cc/EaseQuinticActionOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseQuinticActionOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseQuinticActionOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseRateAction.lua b/addons/cclua/cocos2d/library/cc/EaseRateAction.lua index bade5ab4..118c0e5b 100644 --- a/addons/cclua/cocos2d/library/cc/EaseRateAction.lua +++ b/addons/cclua/cocos2d/library/cc/EaseRateAction.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseRateAction ---\class EaseRateAction diff --git a/addons/cclua/cocos2d/library/cc/EaseSineIn.lua b/addons/cclua/cocos2d/library/cc/EaseSineIn.lua index ed70d799..b3949564 100644 --- a/addons/cclua/cocos2d/library/cc/EaseSineIn.lua +++ b/addons/cclua/cocos2d/library/cc/EaseSineIn.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseSineIn --- diff --git a/addons/cclua/cocos2d/library/cc/EaseSineInOut.lua b/addons/cclua/cocos2d/library/cc/EaseSineInOut.lua index a39bfa82..7bae664b 100644 --- a/addons/cclua/cocos2d/library/cc/EaseSineInOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseSineInOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseSineInOut --- diff --git a/addons/cclua/cocos2d/library/cc/EaseSineOut.lua b/addons/cclua/cocos2d/library/cc/EaseSineOut.lua index a7880598..c9115afa 100644 --- a/addons/cclua/cocos2d/library/cc/EaseSineOut.lua +++ b/addons/cclua/cocos2d/library/cc/EaseSineOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EaseSineOut --- diff --git a/addons/cclua/cocos2d/library/cc/Event.lua b/addons/cclua/cocos2d/library/cc/Event.lua index 49ddba95..67cb30ff 100644 --- a/addons/cclua/cocos2d/library/cc/Event.lua +++ b/addons/cclua/cocos2d/library/cc/Event.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Event ---\addtogroup base diff --git a/addons/cclua/cocos2d/library/cc/Event/Type.lua b/addons/cclua/cocos2d/library/cc/Event/Type.lua index 9e5ad53e..c2fe04e8 100644 --- a/addons/cclua/cocos2d/library/cc/Event/Type.lua +++ b/addons/cclua/cocos2d/library/cc/Event/Type.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Event.Type ---@type cc.Event.Type diff --git a/addons/cclua/cocos2d/library/cc/EventAcceleration.lua b/addons/cclua/cocos2d/library/cc/EventAcceleration.lua index bca61086..f9df722d 100644 --- a/addons/cclua/cocos2d/library/cc/EventAcceleration.lua +++ b/addons/cclua/cocos2d/library/cc/EventAcceleration.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventAcceleration ---\class EventAcceleration diff --git a/addons/cclua/cocos2d/library/cc/EventController.lua b/addons/cclua/cocos2d/library/cc/EventController.lua index bef76709..a18ea5a9 100644 --- a/addons/cclua/cocos2d/library/cc/EventController.lua +++ b/addons/cclua/cocos2d/library/cc/EventController.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventController ---\class EventController @@ -40,6 +41,13 @@ function EventController:isConnected() end ---@param controller cc.Controller ---@param keyCode integer ---@return cc.EventController +--- +---Create a EventController with controller event type, controller and whether or not is connected. +--- +---\param type A given controller event type. +---\param controller A given controller pointer. +---\param isConnected True if it is connected. +---\return An autoreleased EventController object. ---@overload fun(type: cc.EventController.ControllerEventType, controller: cc.Controller, isConnected: boolean): cc.EventController function EventController.new(type, controller, keyCode) end diff --git a/addons/cclua/cocos2d/library/cc/EventController/ControllerEventType.lua b/addons/cclua/cocos2d/library/cc/EventController/ControllerEventType.lua index dd79fa99..caf244bd 100644 --- a/addons/cclua/cocos2d/library/cc/EventController/ControllerEventType.lua +++ b/addons/cclua/cocos2d/library/cc/EventController/ControllerEventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventController.ControllerEventType ---@type cc.EventController.ControllerEventType diff --git a/addons/cclua/cocos2d/library/cc/EventCustom.lua b/addons/cclua/cocos2d/library/cc/EventCustom.lua index 52cf39a9..5c9c14d3 100644 --- a/addons/cclua/cocos2d/library/cc/EventCustom.lua +++ b/addons/cclua/cocos2d/library/cc/EventCustom.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventCustom ---\addtogroup base diff --git a/addons/cclua/cocos2d/library/cc/EventDispatcher.lua b/addons/cclua/cocos2d/library/cc/EventDispatcher.lua index 6ad46b27..8a1e9095 100644 --- a/addons/cclua/cocos2d/library/cc/EventDispatcher.lua +++ b/addons/cclua/cocos2d/library/cc/EventDispatcher.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventDispatcher ---\class EventDispatcher @@ -50,6 +51,11 @@ function EventDispatcher:addEventListenerWithSceneGraphPriority(listener, node) ---\param optionalUserData The optional user data, it's a void*, the default value is nullptr. ---@param eventName string ---@param optionalUserData any +--- +---Dispatches a Custom Event with a event name an optional user data. +--- +---\param eventName The name of the event which needs to be dispatched. +---\param optionalUserData The optional user data, it's a void*, the default value is nullptr. ---@overload fun(self: cc.EventDispatcher, eventName: string) function EventDispatcher:dispatchCustomEvent(eventName, optionalUserData) end @@ -86,6 +92,11 @@ function EventDispatcher.new() end ---\param recursive True if pause recursively, the default value is false. ---@param target cc.Node ---@param recursive boolean +--- +---Pauses all listeners which are associated the specified target. +--- +---\param target A given target node. +---\param recursive True if pause recursively, the default value is false. ---@overload fun(self: cc.EventDispatcher, target: cc.Node) function EventDispatcher:pauseEventListenersForTarget(target, recursive) end @@ -110,6 +121,11 @@ function EventDispatcher:removeEventListener(listener) end ---\param recursive True if remove recursively, the default value is false. ---@param target cc.Node ---@param recursive boolean +--- +---Removes all listeners which are associated with the specified target. +--- +---\param target A given target node. +---\param recursive True if remove recursively, the default value is false. ---@overload fun(self: cc.EventDispatcher, target: cc.Node) function EventDispatcher:removeEventListenersForTarget(target, recursive) end @@ -125,6 +141,11 @@ function EventDispatcher:removeEventListenersForType(listenerType) end ---\param recursive True if resume recursively, the default value is false. ---@param target cc.Node ---@param recursive boolean +--- +---Resumes all listeners which are associated the specified target. +--- +---\param target A given target node. +---\param recursive True if resume recursively, the default value is false. ---@overload fun(self: cc.EventDispatcher, target: cc.Node) function EventDispatcher:resumeEventListenersForTarget(target, recursive) end diff --git a/addons/cclua/cocos2d/library/cc/EventFocus.lua b/addons/cclua/cocos2d/library/cc/EventFocus.lua index 6abec0c9..12a11894 100644 --- a/addons/cclua/cocos2d/library/cc/EventFocus.lua +++ b/addons/cclua/cocos2d/library/cc/EventFocus.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventFocus ---\class EventFocus diff --git a/addons/cclua/cocos2d/library/cc/EventKeyboard.lua b/addons/cclua/cocos2d/library/cc/EventKeyboard.lua index 160f13ae..2011ef51 100644 --- a/addons/cclua/cocos2d/library/cc/EventKeyboard.lua +++ b/addons/cclua/cocos2d/library/cc/EventKeyboard.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventKeyboard ---\class EventKeyboard diff --git a/addons/cclua/cocos2d/library/cc/EventKeyboard/KeyCode.lua b/addons/cclua/cocos2d/library/cc/EventKeyboard/KeyCode.lua index 30b5f8be..0dfbc8cd 100644 --- a/addons/cclua/cocos2d/library/cc/EventKeyboard/KeyCode.lua +++ b/addons/cclua/cocos2d/library/cc/EventKeyboard/KeyCode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventKeyboard.KeyCode ---@type cc.EventKeyboard.KeyCode diff --git a/addons/cclua/cocos2d/library/cc/EventListener.lua b/addons/cclua/cocos2d/library/cc/EventListener.lua index c38635b9..dedb8470 100644 --- a/addons/cclua/cocos2d/library/cc/EventListener.lua +++ b/addons/cclua/cocos2d/library/cc/EventListener.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListener ---\class EventListener diff --git a/addons/cclua/cocos2d/library/cc/EventListener/Type.lua b/addons/cclua/cocos2d/library/cc/EventListener/Type.lua index e52175ac..2276b406 100644 --- a/addons/cclua/cocos2d/library/cc/EventListener/Type.lua +++ b/addons/cclua/cocos2d/library/cc/EventListener/Type.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListener.Type ---@type cc.EventListener.Type diff --git a/addons/cclua/cocos2d/library/cc/EventListenerAcceleration.lua b/addons/cclua/cocos2d/library/cc/EventListenerAcceleration.lua index 3624e902..c84d33b7 100644 --- a/addons/cclua/cocos2d/library/cc/EventListenerAcceleration.lua +++ b/addons/cclua/cocos2d/library/cc/EventListenerAcceleration.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListenerAcceleration ---\class EventListenerAcceleration diff --git a/addons/cclua/cocos2d/library/cc/EventListenerController.lua b/addons/cclua/cocos2d/library/cc/EventListenerController.lua index 86d94c3a..ab45402b 100644 --- a/addons/cclua/cocos2d/library/cc/EventListenerController.lua +++ b/addons/cclua/cocos2d/library/cc/EventListenerController.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListenerController ---\class EventListenerController diff --git a/addons/cclua/cocos2d/library/cc/EventListenerCustom.lua b/addons/cclua/cocos2d/library/cc/EventListenerCustom.lua index 199c5668..e1a51f73 100644 --- a/addons/cclua/cocos2d/library/cc/EventListenerCustom.lua +++ b/addons/cclua/cocos2d/library/cc/EventListenerCustom.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListenerCustom ---\class EventListenerCustom diff --git a/addons/cclua/cocos2d/library/cc/EventListenerFocus.lua b/addons/cclua/cocos2d/library/cc/EventListenerFocus.lua index 58ac97b0..80836f08 100644 --- a/addons/cclua/cocos2d/library/cc/EventListenerFocus.lua +++ b/addons/cclua/cocos2d/library/cc/EventListenerFocus.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListenerFocus ---\class EventListenerFocus diff --git a/addons/cclua/cocos2d/library/cc/EventListenerKeyboard.lua b/addons/cclua/cocos2d/library/cc/EventListenerKeyboard.lua index 136e7d46..f2854c9d 100644 --- a/addons/cclua/cocos2d/library/cc/EventListenerKeyboard.lua +++ b/addons/cclua/cocos2d/library/cc/EventListenerKeyboard.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListenerKeyboard ---\class EventListenerKeyboard diff --git a/addons/cclua/cocos2d/library/cc/EventListenerMouse.lua b/addons/cclua/cocos2d/library/cc/EventListenerMouse.lua index 8f4b8c45..280347c6 100644 --- a/addons/cclua/cocos2d/library/cc/EventListenerMouse.lua +++ b/addons/cclua/cocos2d/library/cc/EventListenerMouse.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListenerMouse ---\class EventListenerMouse diff --git a/addons/cclua/cocos2d/library/cc/EventListenerPhysicsContact.lua b/addons/cclua/cocos2d/library/cc/EventListenerPhysicsContact.lua index 58c22109..ea678d18 100644 --- a/addons/cclua/cocos2d/library/cc/EventListenerPhysicsContact.lua +++ b/addons/cclua/cocos2d/library/cc/EventListenerPhysicsContact.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListenerPhysicsContact ---Contact listener. It will receive all the contact callbacks. diff --git a/addons/cclua/cocos2d/library/cc/EventListenerPhysicsContactWithBodies.lua b/addons/cclua/cocos2d/library/cc/EventListenerPhysicsContactWithBodies.lua index 3b494910..959d9d0d 100644 --- a/addons/cclua/cocos2d/library/cc/EventListenerPhysicsContactWithBodies.lua +++ b/addons/cclua/cocos2d/library/cc/EventListenerPhysicsContactWithBodies.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListenerPhysicsContactWithBodies ---This event listener only be called when bodyA and bodyB have contacts. diff --git a/addons/cclua/cocos2d/library/cc/EventListenerPhysicsContactWithGroup.lua b/addons/cclua/cocos2d/library/cc/EventListenerPhysicsContactWithGroup.lua index 224e68c2..740fee28 100644 --- a/addons/cclua/cocos2d/library/cc/EventListenerPhysicsContactWithGroup.lua +++ b/addons/cclua/cocos2d/library/cc/EventListenerPhysicsContactWithGroup.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListenerPhysicsContactWithGroup ---This event listener only be called when shapeA or shapeB is in the group your specified diff --git a/addons/cclua/cocos2d/library/cc/EventListenerPhysicsContactWithShapes.lua b/addons/cclua/cocos2d/library/cc/EventListenerPhysicsContactWithShapes.lua index e013946f..93034ad3 100644 --- a/addons/cclua/cocos2d/library/cc/EventListenerPhysicsContactWithShapes.lua +++ b/addons/cclua/cocos2d/library/cc/EventListenerPhysicsContactWithShapes.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListenerPhysicsContactWithShapes ---This event listener only be called when shapeA and shapeB have contacts. diff --git a/addons/cclua/cocos2d/library/cc/EventListenerTouchAllAtOnce.lua b/addons/cclua/cocos2d/library/cc/EventListenerTouchAllAtOnce.lua index 01ddaf9b..858dffc7 100644 --- a/addons/cclua/cocos2d/library/cc/EventListenerTouchAllAtOnce.lua +++ b/addons/cclua/cocos2d/library/cc/EventListenerTouchAllAtOnce.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListenerTouchAllAtOnce ---\class EventListenerTouchAllAtOnce diff --git a/addons/cclua/cocos2d/library/cc/EventListenerTouchAllAtOnce/ccTouchesCallback.lua b/addons/cclua/cocos2d/library/cc/EventListenerTouchAllAtOnce/ccTouchesCallback.lua index 5c07bb34..fa760a47 100644 --- a/addons/cclua/cocos2d/library/cc/EventListenerTouchAllAtOnce/ccTouchesCallback.lua +++ b/addons/cclua/cocos2d/library/cc/EventListenerTouchAllAtOnce/ccTouchesCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListenerTouchAllAtOnce.ccTouchesCallback --- diff --git a/addons/cclua/cocos2d/library/cc/EventListenerTouchOneByOne.lua b/addons/cclua/cocos2d/library/cc/EventListenerTouchOneByOne.lua index 704ec776..f55ef044 100644 --- a/addons/cclua/cocos2d/library/cc/EventListenerTouchOneByOne.lua +++ b/addons/cclua/cocos2d/library/cc/EventListenerTouchOneByOne.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListenerTouchOneByOne ---\class EventListenerTouchOneByOne diff --git a/addons/cclua/cocos2d/library/cc/EventListenerTouchOneByOne/ccTouchBeganCallback.lua b/addons/cclua/cocos2d/library/cc/EventListenerTouchOneByOne/ccTouchBeganCallback.lua index fc417e42..df5522a5 100644 --- a/addons/cclua/cocos2d/library/cc/EventListenerTouchOneByOne/ccTouchBeganCallback.lua +++ b/addons/cclua/cocos2d/library/cc/EventListenerTouchOneByOne/ccTouchBeganCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListenerTouchOneByOne.ccTouchBeganCallback --- diff --git a/addons/cclua/cocos2d/library/cc/EventListenerTouchOneByOne/ccTouchCallback.lua b/addons/cclua/cocos2d/library/cc/EventListenerTouchOneByOne/ccTouchCallback.lua index 742553bf..4b324e08 100644 --- a/addons/cclua/cocos2d/library/cc/EventListenerTouchOneByOne/ccTouchCallback.lua +++ b/addons/cclua/cocos2d/library/cc/EventListenerTouchOneByOne/ccTouchCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventListenerTouchOneByOne.ccTouchCallback --- diff --git a/addons/cclua/cocos2d/library/cc/EventMouse.lua b/addons/cclua/cocos2d/library/cc/EventMouse.lua index 474c6347..b932aacf 100644 --- a/addons/cclua/cocos2d/library/cc/EventMouse.lua +++ b/addons/cclua/cocos2d/library/cc/EventMouse.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventMouse ---\class EventMouse diff --git a/addons/cclua/cocos2d/library/cc/EventMouse/MouseButton.lua b/addons/cclua/cocos2d/library/cc/EventMouse/MouseButton.lua index 348b42ed..1d1dcba6 100644 --- a/addons/cclua/cocos2d/library/cc/EventMouse/MouseButton.lua +++ b/addons/cclua/cocos2d/library/cc/EventMouse/MouseButton.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventMouse.MouseButton ---@type cc.EventMouse.MouseButton diff --git a/addons/cclua/cocos2d/library/cc/EventMouse/MouseEventType.lua b/addons/cclua/cocos2d/library/cc/EventMouse/MouseEventType.lua index fbefb239..71c82049 100644 --- a/addons/cclua/cocos2d/library/cc/EventMouse/MouseEventType.lua +++ b/addons/cclua/cocos2d/library/cc/EventMouse/MouseEventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventMouse.MouseEventType ---@type cc.EventMouse.MouseEventType diff --git a/addons/cclua/cocos2d/library/cc/EventTouch.lua b/addons/cclua/cocos2d/library/cc/EventTouch.lua index c30359de..8a44e733 100644 --- a/addons/cclua/cocos2d/library/cc/EventTouch.lua +++ b/addons/cclua/cocos2d/library/cc/EventTouch.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventTouch ---\class EventTouch diff --git a/addons/cclua/cocos2d/library/cc/EventTouch/EventCode.lua b/addons/cclua/cocos2d/library/cc/EventTouch/EventCode.lua index 5600023e..0152763e 100644 --- a/addons/cclua/cocos2d/library/cc/EventTouch/EventCode.lua +++ b/addons/cclua/cocos2d/library/cc/EventTouch/EventCode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.EventTouch.EventCode ---@type cc.EventTouch.EventCode diff --git a/addons/cclua/cocos2d/library/cc/FadeFrom.lua b/addons/cclua/cocos2d/library/cc/FadeFrom.lua index f2bc3626..691c444d 100644 --- a/addons/cclua/cocos2d/library/cc/FadeFrom.lua +++ b/addons/cclua/cocos2d/library/cc/FadeFrom.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FadeFrom --- @@ -5,7 +6,7 @@ local FadeFrom = {} ---@param d number ----@param opacity any +---@param opacity integer ---@return cc.FadeFrom function FadeFrom.create(d, opacity) end diff --git a/addons/cclua/cocos2d/library/cc/FadeIn.lua b/addons/cclua/cocos2d/library/cc/FadeIn.lua index 6d3a391c..7ea46cb7 100644 --- a/addons/cclua/cocos2d/library/cc/FadeIn.lua +++ b/addons/cclua/cocos2d/library/cc/FadeIn.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FadeIn ---\class FadeIn diff --git a/addons/cclua/cocos2d/library/cc/FadeOut.lua b/addons/cclua/cocos2d/library/cc/FadeOut.lua index 657cf69f..55265957 100644 --- a/addons/cclua/cocos2d/library/cc/FadeOut.lua +++ b/addons/cclua/cocos2d/library/cc/FadeOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FadeOut ---\class FadeOut diff --git a/addons/cclua/cocos2d/library/cc/FadeOutBLTiles.lua b/addons/cclua/cocos2d/library/cc/FadeOutBLTiles.lua index ec17f1f3..a3bdfc07 100644 --- a/addons/cclua/cocos2d/library/cc/FadeOutBLTiles.lua +++ b/addons/cclua/cocos2d/library/cc/FadeOutBLTiles.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FadeOutBLTiles ---\brief FadeOutBLTiles action. diff --git a/addons/cclua/cocos2d/library/cc/FadeOutDownTiles.lua b/addons/cclua/cocos2d/library/cc/FadeOutDownTiles.lua index afebbada..3a37c90b 100644 --- a/addons/cclua/cocos2d/library/cc/FadeOutDownTiles.lua +++ b/addons/cclua/cocos2d/library/cc/FadeOutDownTiles.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FadeOutDownTiles ---\brief FadeOutDownTiles action. diff --git a/addons/cclua/cocos2d/library/cc/FadeOutTRTiles.lua b/addons/cclua/cocos2d/library/cc/FadeOutTRTiles.lua index eae242c8..9f8e533c 100644 --- a/addons/cclua/cocos2d/library/cc/FadeOutTRTiles.lua +++ b/addons/cclua/cocos2d/library/cc/FadeOutTRTiles.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FadeOutTRTiles ---\brief FadeOutTRTiles action. diff --git a/addons/cclua/cocos2d/library/cc/FadeOutUpTiles.lua b/addons/cclua/cocos2d/library/cc/FadeOutUpTiles.lua index 7d5f1d2e..9f5b6baf 100644 --- a/addons/cclua/cocos2d/library/cc/FadeOutUpTiles.lua +++ b/addons/cclua/cocos2d/library/cc/FadeOutUpTiles.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FadeOutUpTiles ---\brief FadeOutUpTiles action. diff --git a/addons/cclua/cocos2d/library/cc/FadeTo.lua b/addons/cclua/cocos2d/library/cc/FadeTo.lua index 29d6056c..fbd343d6 100644 --- a/addons/cclua/cocos2d/library/cc/FadeTo.lua +++ b/addons/cclua/cocos2d/library/cc/FadeTo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FadeTo ---\class FadeTo @@ -11,7 +12,7 @@ local FadeTo = {} ---\param opacity A certain opacity, the range is from 0 to 255. ---\return An autoreleased FadeTo object. ---@param duration number ----@param opacity any +---@param opacity integer ---@return cc.FadeTo function FadeTo.create(duration, opacity) end diff --git a/addons/cclua/cocos2d/library/cc/FastTMXLayer.lua b/addons/cclua/cocos2d/library/cc/FastTMXLayer.lua index 076143d7..41db0231 100644 --- a/addons/cclua/cocos2d/library/cc/FastTMXLayer.lua +++ b/addons/cclua/cocos2d/library/cc/FastTMXLayer.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FastTMXLayer ---\brief FastTMXLayer represents the TMX layer. @@ -109,6 +110,12 @@ function FastTMXLayer:getTileAt(tileCoordinate) end ---@param tileCoordinate cc.Vec2 ---@param flags cc.TMXTileFlags ---@return integer +--- +---Returns the tile gid at a given tile coordinate. It also returns the tile flags. +--- +---\param tileCoordinate The tile coordinate. +---\param flags A TMXTileFlags. +---\return The tile gid at a given tile coordinate. It also returns the tile flags. ---@overload fun(self: cc.FastTMXLayer, tileCoordinate: cc.Vec2): integer function FastTMXLayer:getTileGIDAt(tileCoordinate, flags) end @@ -172,6 +179,15 @@ function FastTMXLayer:setProperties(properties) end ---\param tileCoordinate The tile coordinate. ---@param gid integer ---@param tileCoordinate cc.Vec2 +--- +---Sets the tile gid (gid = tile global id) at a given tile coordinate. +---The Tile GID can be obtained by using the method "tileGIDAt" or by using the TMX editor -> Tileset Mgr +1. +---If a tile is already placed at that position, then it will be removed. +---Use withFlags if the tile flags need to be changed as well. +--- +---\param gid A integer value,it will be sets the tile gid. +---\param tileCoordinate The tile coordinate. +---\param flags A TMXTileFlags. ---@overload fun(self: cc.FastTMXLayer, gid: integer, tileCoordinate: cc.Vec2, flags: cc.TMXTileFlags) function FastTMXLayer:setTileGID(gid, tileCoordinate) end @@ -194,7 +210,7 @@ function FastTMXLayer:setTiles(tiles) end ---\param gid The tile gid. ---@param sprite cc.Sprite ---@param pos cc.Vec2 ----@param gid any +---@param gid integer function FastTMXLayer:setupTileSprite(sprite, pos, gid) end ---Creates the tiles. diff --git a/addons/cclua/cocos2d/library/cc/FastTMXTiledMap.lua b/addons/cclua/cocos2d/library/cc/FastTMXTiledMap.lua index dadff36c..2db5bdc0 100644 --- a/addons/cclua/cocos2d/library/cc/FastTMXTiledMap.lua +++ b/addons/cclua/cocos2d/library/cc/FastTMXTiledMap.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FastTMXTiledMap ---\brief FastTMXTiledMap knows how to parse and render a TMX map. diff --git a/addons/cclua/cocos2d/library/cc/FileUtils.lua b/addons/cclua/cocos2d/library/cc/FileUtils.lua index fb8aafaa..1b67291b 100644 --- a/addons/cclua/cocos2d/library/cc/FileUtils.lua +++ b/addons/cclua/cocos2d/library/cc/FileUtils.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FileUtils ---Helper class to handle file operations. @@ -23,6 +24,10 @@ function FileUtils:__olua_move() end ---\since v2.1 ---@param path string ---@param front boolean +--- +---Add search path. +--- +---\since v2.1 ---@overload fun(self: cc.FileUtils, path: string) function FileUtils:addSearchPath(path, front) end @@ -32,6 +37,11 @@ function FileUtils:addSearchPath(path, front) end ---\since v2.1 ---@param order string ---@param front boolean +--- +---Append search order of the resources. +--- +---\see setSearchResolutionsOrder(), fullPathForFilename(). +---\since v2.1 ---@overload fun(self: cc.FileUtils, order: string) function FileUtils:addSearchResolutionsOrder(order, front) end @@ -41,6 +51,12 @@ function FileUtils:addSearchResolutionsOrder(order, front) end ---\return True if the directory have been created successfully, false if not. ---@param dirPath string ---@return boolean +--- +---Create a directory, async off the main cocos thread. +--- +---\param dirPath the path of the directory, it must be an absolute path +---\param callback The function that will be called when the operation is complete. Will have one boolean +---argument, true if the directory was successfully, false otherwise. ---@overload fun(self: cc.FileUtils, dirPath: string, callback: fun(arg1: boolean)) function FileUtils:createDirectory(dirPath) end @@ -105,6 +121,12 @@ function FileUtils:getContents(filename, buffer) end ---\return A data object. ---@param filename string ---@return any +--- +---Gets a binary data object from a file, async off the main cocos thread. +--- +---\param filename filepath for the data to be read. Can be relative or absolute path +---\param callback Function that will be called when file is read. Will be called +---on the main cocos thread. ---@overload fun(self: cc.FileUtils, filename: string, callback: fun(arg1: any)) function FileUtils:getDataFromFile(filename) end @@ -140,6 +162,13 @@ function FileUtils:getFileExtension(filePath) end ---\return The file size. ---@param filepath string ---@return integer +--- +---Retrieve the file size, async off the main cocos thread. +--- +---\note If a relative path was passed in, it will be inserted a default root path at the beginning. +---\param filepath The path of the file, it could be a relative or absolute path. +---\param callback The function that will be called when the operation is complete. Will have one long +---argument, the file size. ---@overload fun(self: cc.FileUtils, filepath: string, callback: fun(arg1: integer)) function FileUtils:getFileSize(filepath) end @@ -187,6 +216,12 @@ function FileUtils:getSearchResolutionsOrder() end ---Gets string from a file. ---@param filename string ---@return string +--- +---Gets string from a file, async off the main cocos thread +--- +---\param path filepath for the string to be read. Can be relative or absolute path +---\param callback Function that will be called when file is read. Will be called +---on the main cocos thread. ---@overload fun(self: cc.FileUtils, path: string, callback: fun(arg1: string)) function FileUtils:getStringFromFile(filename) end @@ -240,6 +275,12 @@ function FileUtils:isAbsolutePath(path) end ---\return True if the directory exists, false if not. ---@param dirPath string ---@return boolean +--- +---Checks whether the absoulate path is a directory, async off of the main cocos thread. +--- +---\param dirPath The path of the directory, it must be an absolute path +---\param callback that will accept a boolean, true if the file exists, false otherwise. +---Callback will happen on the main cocos thread. ---@overload fun(self: cc.FileUtils, fullPath: string, callback: fun(arg1: boolean)) function FileUtils:isDirectoryExist(dirPath) end @@ -250,6 +291,15 @@ function FileUtils:isDirectoryExist(dirPath) end ---\return True if the file exists, false if not. ---@param filename string ---@return boolean +--- +---Checks if a file exists, done async off the main cocos thread. +--- +---Use this function if you need to check if a file exists while not blocking the main cocos thread. +--- +---\note If a relative path was passed in, it will be inserted a default root path at the beginning. +---\param filename The path of the file, it could be a relative or absolute path. +---\param callback The function that will be called when the operation is complete. Will have one boolean +---argument, true if the file exists, false otherwise. ---@overload fun(self: cc.FileUtils, filename: string, callback: fun(arg1: boolean)) function FileUtils:isFileExist(filename) end @@ -338,6 +388,12 @@ function FileUtils:purgeCachedEntries() end ---\return True if the directory have been removed successfully, false if not. ---@param dirPath string ---@return boolean +--- +---Removes a directory, async off the main cocos thread. +--- +---\param dirPath the path of the directory, it must be an absolute path +---\param callback The function that will be called when the operation is complete. Will have one boolean +---argument, true if the directory was successfully removed, false otherwise. ---@overload fun(self: cc.FileUtils, dirPath: string, callback: fun(arg1: boolean)) function FileUtils:removeDirectory(dirPath) end @@ -347,6 +403,12 @@ function FileUtils:removeDirectory(dirPath) end ---\return True if the file have been removed successfully, false if not. ---@param filepath string ---@return boolean +--- +---Removes a file, async off the main cocos thread. +--- +---\param filepath the path of the file to remove, it must be an absolute path +---\param callback The function that will be called when the operation is complete. Will have one boolean +---argument, true if the file was successfully removed, false otherwise. ---@overload fun(self: cc.FileUtils, filepath: string, callback: fun(arg1: boolean)) function FileUtils:removeFile(filepath) end @@ -360,8 +422,29 @@ function FileUtils:removeFile(filepath) end ---@param oldname string ---@param name string ---@return boolean +--- +---Renames a file under the given directory, async off the main cocos thread. +--- +---\param path The parent directory path of the file, it must be an absolute path. +---\param oldname The current name of the file. +---\param name The new name of the file. +---\param callback The function that will be called when the operation is complete. Will have one boolean +---argument, true if the file was successfully renamed, false otherwise. ---@overload fun(self: cc.FileUtils, path: string, oldname: string, name: string, callback: fun(arg1: boolean)) +--- +---Renames a file under the given directory. +--- +---\param oldfullpath The current fullpath of the file. Includes path and name. +---\param newfullpath The new fullpath of the file. Includes path and name. +---\return True if the file have been renamed successfully, false if not. ---@overload fun(self: cc.FileUtils, oldfullpath: string, newfullpath: string): boolean +--- +---Renames a file under the given directory, async off the main cocos thread. +--- +---\param oldfullpath The current fullpath of the file. Includes path and name. +---\param newfullpath The new fullpath of the file. Includes path and name. +---\param callback The function that will be called when the operation is complete. Will have one boolean +---argument, true if the file was successfully renamed, false otherwise. ---@overload fun(self: cc.FileUtils, oldfullpath: string, newfullpath: string, callback: fun(arg1: boolean)) function FileUtils:renameFile(path, oldname, name) end @@ -436,6 +519,19 @@ function FileUtils:setWritablePath(writablePath) end ---@param data any ---@param fullPath string ---@return boolean +--- +---Write Data into a file, done async off the main cocos thread. +--- +---Use this function if you need to write Data while not blocking the main cocos thread. +--- +---This function takes Data by value on purpose, to leverage move sematics. +---If you want to avoid a copy of your data, use std::move/std::forward if appropriate +--- +---\param data The data that will be written to disk +---\param fullPath The absolute file path that the data will be written to +---\param callback The function that will be called when data is written to disk. This +---function will be executed on the main cocos thread. It will have on boolean argument +---signifying if the write was successful. ---@overload fun(self: cc.FileUtils, data: any, fullPath: string, callback: fun(arg1: boolean)) function FileUtils:writeDataToFile(data, fullPath) end @@ -447,6 +543,18 @@ function FileUtils:writeDataToFile(data, fullPath) end ---@param dataStr string ---@param fullPath string ---@return boolean +--- +---Write a string to a file, done async off the main cocos thread +---Use this function if you need file access without blocking the main thread. +--- +---This function takes a std::string by value on purpose, to leverage move sematics. +---If you want to avoid a copy of your datastr, use std::move/std::forward if appropriate +--- +---\param dataStr the string want to save +---\param fullPath The full path to the file you want to save a string +---\param callback The function called once the string has been written to a file. This +---function will be executed on the main cocos thread. It will have on boolean argument +---signifying if the write was successful. ---@overload fun(self: cc.FileUtils, dataStr: string, fullPath: string, callback: fun(arg1: boolean)) function FileUtils:writeStringToFile(dataStr, fullPath) end @@ -468,6 +576,19 @@ function FileUtils:writeToFile(dict, fullPath) end ---@param dict any ---@param fullPath string ---@return boolean +--- +---Write a ValueMap into a file, done async off the main cocos thread. +--- +---Use this function if you need to write a ValueMap while not blocking the main cocos thread. +--- +---This function takes ValueMap by value on purpose, to leverage move sematics. +---If you want to avoid a copy of your dict, use std::move/std::forward if appropriate +--- +---\param dict The ValueMap that will be written to disk +---\param fullPath The absolute file path that the data will be written to +---\param callback The function that will be called when dict is written to disk. This +---function will be executed on the main cocos thread. It will have on boolean argument +---signifying if the write was successful. ---@overload fun(self: cc.FileUtils, dict: any, fullPath: string, callback: fun(arg1: boolean)) function FileUtils:writeValueMapToFile(dict, fullPath) end @@ -479,6 +600,19 @@ function FileUtils:writeValueMapToFile(dict, fullPath) end ---@param vecData any ---@param fullPath string ---@return boolean +--- +---Write a ValueVector into a file, done async off the main cocos thread. +--- +---Use this function if you need to write a ValueVector while not blocking the main cocos thread. +--- +---This function takes ValueVector by value on purpose, to leverage move sematics. +---If you want to avoid a copy of your dict, use std::move/std::forward if appropriate +--- +---\param vecData The ValueVector that will be written to disk +---\param fullPath The absolute file path that the data will be written to +---\param callback The function that will be called when vecData is written to disk. This +---function will be executed on the main cocos thread. It will have on boolean argument +---signifying if the write was successful. ---@overload fun(self: cc.FileUtils, vecData: any, fullPath: string, callback: fun(arg1: boolean)) function FileUtils:writeValueVectorToFile(vecData, fullPath) end diff --git a/addons/cclua/cocos2d/library/cc/FileUtils/Status.lua b/addons/cclua/cocos2d/library/cc/FileUtils/Status.lua index e7509288..1e917dfd 100644 --- a/addons/cclua/cocos2d/library/cc/FileUtils/Status.lua +++ b/addons/cclua/cocos2d/library/cc/FileUtils/Status.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FileUtils.Status ---@type cc.FileUtils.Status diff --git a/addons/cclua/cocos2d/library/cc/FiniteTimeAction.lua b/addons/cclua/cocos2d/library/cc/FiniteTimeAction.lua index 977901fb..60728550 100644 --- a/addons/cclua/cocos2d/library/cc/FiniteTimeAction.lua +++ b/addons/cclua/cocos2d/library/cc/FiniteTimeAction.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FiniteTimeAction ---\class FiniteTimeAction diff --git a/addons/cclua/cocos2d/library/cc/FlipX.lua b/addons/cclua/cocos2d/library/cc/FlipX.lua index fea8a0b7..2f67cd31 100644 --- a/addons/cclua/cocos2d/library/cc/FlipX.lua +++ b/addons/cclua/cocos2d/library/cc/FlipX.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FlipX ---\class FlipX diff --git a/addons/cclua/cocos2d/library/cc/FlipX3D.lua b/addons/cclua/cocos2d/library/cc/FlipX3D.lua index 513b6e2b..a268b122 100644 --- a/addons/cclua/cocos2d/library/cc/FlipX3D.lua +++ b/addons/cclua/cocos2d/library/cc/FlipX3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FlipX3D ---\brief FlipX3D action. diff --git a/addons/cclua/cocos2d/library/cc/FlipY.lua b/addons/cclua/cocos2d/library/cc/FlipY.lua index 04cbf995..a9f5880c 100644 --- a/addons/cclua/cocos2d/library/cc/FlipY.lua +++ b/addons/cclua/cocos2d/library/cc/FlipY.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FlipY ---\class FlipY diff --git a/addons/cclua/cocos2d/library/cc/FlipY3D.lua b/addons/cclua/cocos2d/library/cc/FlipY3D.lua index 3b961b1e..7ee52b0c 100644 --- a/addons/cclua/cocos2d/library/cc/FlipY3D.lua +++ b/addons/cclua/cocos2d/library/cc/FlipY3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FlipY3D ---\brief FlipY3D action. diff --git a/addons/cclua/cocos2d/library/cc/Follow.lua b/addons/cclua/cocos2d/library/cc/Follow.lua index 3f51cf07..d9861433 100644 --- a/addons/cclua/cocos2d/library/cc/Follow.lua +++ b/addons/cclua/cocos2d/library/cc/Follow.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Follow ---\class Follow @@ -20,6 +21,12 @@ local Follow = {} ---@param followedNode cc.Node ---@param rect cc.Rect ---@return cc.Follow +--- +---Creates the action with a set boundary or with no boundary. +--- +---\param followedNode The node to be followed. +---\param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work +---with no boundary. ---@overload fun(followedNode: cc.Node): cc.Follow function Follow.create(followedNode, rect) end @@ -40,6 +47,19 @@ function Follow.create(followedNode, rect) end ---@param yOffset number ---@param rect cc.Rect ---@return cc.Follow +--- +---Creates the action with a set boundary or with no boundary with offsets. +--- +---\param followedNode The node to be followed. +---\param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work +---with no boundary. +---\param xOffset The horizontal offset from the center of the screen from which the +---node is to be followed.It can be positive,negative or zero.If +---set to zero the node will be horizontally centered followed. +---\param yOffset The vertical offset from the center of the screen from which the +---node is to be followed.It can be positive,negative or zero. +---If set to zero the node will be vertically centered followed. +---If both xOffset and yOffset are set to zero,then the node will be horizontally and vertically centered followed. ---@overload fun(followedNode: cc.Node, xOffset: number, yOffset: number): cc.Follow function Follow.createWithOffset(followedNode, xOffset, yOffset, rect) end @@ -51,6 +71,12 @@ function Follow.createWithOffset(followedNode, xOffset, yOffset, rect) end ---@param followedNode cc.Node ---@param rect cc.Rect ---@return boolean +--- +---Initializes the action with a set boundary or with no boundary. +--- +---\param followedNode The node to be followed. +---\param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work +---with no boundary. ---@overload fun(self: cc.Follow, followedNode: cc.Node): boolean function Follow:initWithTarget(followedNode, rect) end @@ -71,6 +97,19 @@ function Follow:initWithTarget(followedNode, rect) end ---@param yOffset number ---@param rect cc.Rect ---@return boolean +--- +---Initializes the action with a set boundary or with no boundary with offsets. +--- +---\param followedNode The node to be followed. +---\param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work +---with no boundary. +---\param xOffset The horizontal offset from the center of the screen from which the +---node is to be followed.It can be positive,negative or zero.If +---set to zero the node will be horizontally centered followed. +---\param yOffset The vertical offset from the center of the screen from which the +---node is to be followed.It can be positive,negative or zero. +---If set to zero the node will be vertically centered followed. +---If both xOffset and yOffset are set to zero,then the node will be horizontally and vertically centered followed. ---@overload fun(self: cc.Follow, followedNode: cc.Node, xOffset: number, yOffset: number): boolean function Follow:initWithTargetAndOffset(followedNode, xOffset, yOffset, rect) end diff --git a/addons/cclua/cocos2d/library/cc/FontAtlas.lua b/addons/cclua/cocos2d/library/cc/FontAtlas.lua index ec69a37b..dc59673c 100644 --- a/addons/cclua/cocos2d/library/cc/FontAtlas.lua +++ b/addons/cclua/cocos2d/library/cc/FontAtlas.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.FontAtlas --- diff --git a/addons/cclua/cocos2d/library/cc/GLContextAttrs.lua b/addons/cclua/cocos2d/library/cc/GLContextAttrs.lua index cb5b5ae3..ee2a3cba 100644 --- a/addons/cclua/cocos2d/library/cc/GLContextAttrs.lua +++ b/addons/cclua/cocos2d/library/cc/GLContextAttrs.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.GLContextAttrs ---\struct GLContextAttrs diff --git a/addons/cclua/cocos2d/library/cc/GLView.lua b/addons/cclua/cocos2d/library/cc/GLView.lua index b15e3987..0017995a 100644 --- a/addons/cclua/cocos2d/library/cc/GLView.lua +++ b/addons/cclua/cocos2d/library/cc/GLView.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.GLView ---\addtogroup platform @@ -216,6 +217,11 @@ function GLView:setIMEKeyboardState(open) end --- ---\param filename A path to image file, e.g., "icons/cusom.png". ---@param filename string +--- +---Set window icon (implemented for windows and linux). +---Best icon (based on size) will be auto selected. +--- +---\param filelist The array contains icons. ---@overload fun(self: cc.GLView, filelist: string[]) function GLView:setIcon(filename) end diff --git a/addons/cclua/cocos2d/library/cc/GLViewImpl.lua b/addons/cclua/cocos2d/library/cc/GLViewImpl.lua index c3009ad3..ae69b15d 100644 --- a/addons/cclua/cocos2d/library/cc/GLViewImpl.lua +++ b/addons/cclua/cocos2d/library/cc/GLViewImpl.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.GLViewImpl --- diff --git a/addons/cclua/cocos2d/library/cc/GlyphCollection.lua b/addons/cclua/cocos2d/library/cc/GlyphCollection.lua index 7d31ba37..b62f8040 100644 --- a/addons/cclua/cocos2d/library/cc/GlyphCollection.lua +++ b/addons/cclua/cocos2d/library/cc/GlyphCollection.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.GlyphCollection ---@type cc.GlyphCollection diff --git a/addons/cclua/cocos2d/library/cc/Grid3D.lua b/addons/cclua/cocos2d/library/cc/Grid3D.lua index e3dc7f83..556c3f6f 100644 --- a/addons/cclua/cocos2d/library/cc/Grid3D.lua +++ b/addons/cclua/cocos2d/library/cc/Grid3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Grid3D ---Grid3D is a 3D grid implementation. Each vertex has 3 dimensions: x,y,z @@ -8,8 +9,14 @@ local Grid3D = {} ---create one Grid. ---@param gridSize cc.Size ---@return cc.Grid3D +--- +---create one Grid. ---@overload fun(gridSize: cc.Size, rect: cc.Rect): cc.Grid3D +--- +---create one Grid. ---@overload fun(gridSize: cc.Size, texture: cc.Texture2D, flipped: boolean): cc.Grid3D +--- +---create one Grid. ---@overload fun(gridSize: cc.Size, texture: cc.Texture2D, flipped: boolean, rect: cc.Rect): cc.Grid3D function Grid3D.create(gridSize) end diff --git a/addons/cclua/cocos2d/library/cc/Grid3DAction.lua b/addons/cclua/cocos2d/library/cc/Grid3DAction.lua index 91be75de..a431372d 100644 --- a/addons/cclua/cocos2d/library/cc/Grid3DAction.lua +++ b/addons/cclua/cocos2d/library/cc/Grid3DAction.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Grid3DAction ---\brief Base class for Grid3D actions. diff --git a/addons/cclua/cocos2d/library/cc/GridAction.lua b/addons/cclua/cocos2d/library/cc/GridAction.lua index 5e5f7a82..4628fcd6 100644 --- a/addons/cclua/cocos2d/library/cc/GridAction.lua +++ b/addons/cclua/cocos2d/library/cc/GridAction.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.GridAction ---\class GridAction diff --git a/addons/cclua/cocos2d/library/cc/GridBase.lua b/addons/cclua/cocos2d/library/cc/GridBase.lua index 13660e84..907913e2 100644 --- a/addons/cclua/cocos2d/library/cc/GridBase.lua +++ b/addons/cclua/cocos2d/library/cc/GridBase.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.GridBase ---Base class for Other grid. diff --git a/addons/cclua/cocos2d/library/cc/Hide.lua b/addons/cclua/cocos2d/library/cc/Hide.lua index 1359f1c0..8ef6a41a 100644 --- a/addons/cclua/cocos2d/library/cc/Hide.lua +++ b/addons/cclua/cocos2d/library/cc/Hide.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Hide ---\class Hide diff --git a/addons/cclua/cocos2d/library/cc/IMEDelegate.lua b/addons/cclua/cocos2d/library/cc/IMEDelegate.lua index 7d9f01e7..fc6db2e8 100644 --- a/addons/cclua/cocos2d/library/cc/IMEDelegate.lua +++ b/addons/cclua/cocos2d/library/cc/IMEDelegate.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.IMEDelegate ---\brief Input method editor delegate. diff --git a/addons/cclua/cocos2d/library/cc/Image.lua b/addons/cclua/cocos2d/library/cc/Image.lua index 0944b3f0..982784d0 100644 --- a/addons/cclua/cocos2d/library/cc/Image.lua +++ b/addons/cclua/cocos2d/library/cc/Image.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Image --- @@ -96,6 +97,10 @@ function Image:reversePremultipliedAlpha() end ---@param filename string ---@param isToRGB boolean ---@return boolean +--- +---\brief Save Image data to the specified file, with specified format. +---\param filePath the file's absolute path, including file suffix. +---\param isToRGB whether the image is saved as RGB format. ---@overload fun(self: cc.Image, filename: string): boolean function Image:saveToFile(filename, isToRGB) end diff --git a/addons/cclua/cocos2d/library/cc/Image/Format.lua b/addons/cclua/cocos2d/library/cc/Image/Format.lua index 87e90cb5..1140c7fd 100644 --- a/addons/cclua/cocos2d/library/cc/Image/Format.lua +++ b/addons/cclua/cocos2d/library/cc/Image/Format.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Image.Format ---@type cc.Image.Format diff --git a/addons/cclua/cocos2d/library/cc/JumpBy.lua b/addons/cclua/cocos2d/library/cc/JumpBy.lua index db96fdb3..7f61b163 100644 --- a/addons/cclua/cocos2d/library/cc/JumpBy.lua +++ b/addons/cclua/cocos2d/library/cc/JumpBy.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.JumpBy ---\class JumpBy @@ -16,6 +17,13 @@ local JumpBy = {} ---@param height number ---@param jumps integer ---@return cc.JumpBy +--- +---Creates the action. +---\param duration Duration time, in seconds. +---\param position The jumping distance. +---\param height The jumping height. +---\param jumps The jumping times. +---\return An autoreleased JumpBy object. ---@overload fun(duration: number, position: cc.Vec2, height: number, jumps: integer): cc.JumpBy function JumpBy.create(duration, position, height, jumps) end diff --git a/addons/cclua/cocos2d/library/cc/JumpTiles3D.lua b/addons/cclua/cocos2d/library/cc/JumpTiles3D.lua index 9b25ca8d..64fe0679 100644 --- a/addons/cclua/cocos2d/library/cc/JumpTiles3D.lua +++ b/addons/cclua/cocos2d/library/cc/JumpTiles3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.JumpTiles3D ---\brief JumpTiles3D action. diff --git a/addons/cclua/cocos2d/library/cc/JumpTo.lua b/addons/cclua/cocos2d/library/cc/JumpTo.lua index a32652f7..47e123db 100644 --- a/addons/cclua/cocos2d/library/cc/JumpTo.lua +++ b/addons/cclua/cocos2d/library/cc/JumpTo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.JumpTo ---\class JumpTo @@ -16,6 +17,13 @@ local JumpTo = {} ---@param height number ---@param jumps integer ---@return cc.JumpTo +--- +---Creates the action. +---\param duration Duration time, in seconds. +---\param position The jumping destination position. +---\param height The jumping height. +---\param jumps The jumping times. +---\return An autoreleased JumpTo object. ---@overload fun(duration: number, position: cc.Vec2, height: number, jumps: integer): cc.JumpTo function JumpTo.create(duration, position, height, jumps) end diff --git a/addons/cclua/cocos2d/library/cc/Label.lua b/addons/cclua/cocos2d/library/cc/Label.lua index e0f0b397..02b8770a 100644 --- a/addons/cclua/cocos2d/library/cc/Label.lua +++ b/addons/cclua/cocos2d/library/cc/Label.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Label ---\brief Label is a subclass of Node that knows how to render text labels. @@ -73,9 +74,52 @@ function Label.create() end ---@param hAlignment cc.TextHAlignment ---@param maxLineWidth integer ---@return cc.Label +--- +---Allocates and initializes a Label, with a bitmap font file. +--- +---\param bmfontPath A bitmap font file, it's a FNT format. +---\param text The initial text. +---\param hAlignment Text horizontal alignment. +---\param maxLineWidth The max line width. +--- +---\return An automatically released Label object. +---\see setBMFontFilePath setMaxLineWidth ---@overload fun(bmfontPath: string, text: string): cc.Label +--- +---Allocates and initializes a Label, with a bitmap font file. +--- +---\param bmfontPath A bitmap font file, it's a FNT format. +---\param text The initial text. +---\param hAlignment Text horizontal alignment. +---\param maxLineWidth The max line width. +--- +---\return An automatically released Label object. +---\see setBMFontFilePath setMaxLineWidth ---@overload fun(bmfontPath: string, text: string, hAlignment: cc.TextHAlignment): cc.Label +--- +---Allocates and initializes a Label, with a bitmap font file. +--- +---\param bmfontPath A bitmap font file, it's a FNT format. +---\param text The initial text. +---\param hAlignment Text horizontal alignment. +---\param maxLineWidth The max line width. +---\param imageRect +---\param imageRotated +--- +---\return An automatically released Label object. +---\see setBMFontFilePath setMaxLineWidth ---@overload fun(bmfontPath: string, text: string, hAlignment: cc.TextHAlignment, maxLineWidth: integer, imageRect: cc.Rect, imageRotated: boolean): cc.Label +--- +---Allocates and initializes a Label, with a bitmap font file. +--- +---\param bmfontPath A bitmap font file, it's a FNT format. +---\param text The initial text. +---\param hAlignment Text horizontal alignment. +---\param maxLineWidth The max line width. +---\param subTextureKey Name of entry in PLIST texture atlas/sprite sheet +--- +---\return An automatically released Label object. +---\see setBMFontFilePath setMaxLineWidth ---@overload fun(bmfontPath: string, text: string, hAlignment: cc.TextHAlignment, maxLineWidth: integer, subTextureKey: string): cc.Label function Label.createWithBMFont(bmfontPath, text, hAlignment, maxLineWidth) end @@ -92,7 +136,22 @@ function Label.createWithBMFont(bmfontPath, text, hAlignment, maxLineWidth) end ---@param itemHeight integer ---@param startCharMap integer ---@return cc.Label +--- +---Allocates and initializes a Label, with char map configuration. +--- +---\param texture A pointer to an existing Texture2D object. +---\param itemWidth The width in points of each element. +---\param itemHeight The height in points of each element. +---\param startCharMap The starting char of the char map. +--- +---\return An automatically released Label object. ---@overload fun(texture: cc.Texture2D, itemWidth: integer, itemHeight: integer, startCharMap: integer): cc.Label +--- +---Allocates and initializes a Label, with char map configuration. +--- +---\param plistFile A configuration file of char map. +--- +---\return An automatically released Label object. ---@overload fun(plistFile: string): cc.Label function Label.createWithCharMap(charMapFile, itemWidth, itemHeight, startCharMap) end @@ -115,8 +174,47 @@ function Label.createWithCharMap(charMapFile, itemWidth, itemHeight, startCharMa ---@param hAlignment cc.TextHAlignment ---@param vAlignment cc.TextVAlignment ---@return cc.Label +--- +---Allocates and initializes a Label, base on platform-dependent API. +--- +---\param text The initial text. +---\param font A font file or a font family name. +---\param fontSize The font size. This value must be > 0. +---\param dimensions +---\param hAlignment The text horizontal alignment. +---\param vAlignment The text vertical alignment. +--- +---\warning It will generate texture by the platform-dependent code. +--- +---\return An automatically released Label object. ---@overload fun(text: string, font: string, fontSize: number): cc.Label +--- +---Allocates and initializes a Label, base on platform-dependent API. +--- +---\param text The initial text. +---\param font A font file or a font family name. +---\param fontSize The font size. This value must be > 0. +---\param dimensions +---\param hAlignment The text horizontal alignment. +---\param vAlignment The text vertical alignment. +--- +---\warning It will generate texture by the platform-dependent code. +--- +---\return An automatically released Label object. ---@overload fun(text: string, font: string, fontSize: number, dimensions: cc.Size): cc.Label +--- +---Allocates and initializes a Label, base on platform-dependent API. +--- +---\param text The initial text. +---\param font A font file or a font family name. +---\param fontSize The font size. This value must be > 0. +---\param dimensions +---\param hAlignment The text horizontal alignment. +---\param vAlignment The text vertical alignment. +--- +---\warning It will generate texture by the platform-dependent code. +--- +---\return An automatically released Label object. ---@overload fun(text: string, font: string, fontSize: number, dimensions: cc.Size, hAlignment: cc.TextHAlignment): cc.Label function Label.createWithSystemFont(text, font, fontSize, dimensions, hAlignment, vAlignment) end @@ -137,16 +235,83 @@ function Label.createWithSystemFont(text, font, fontSize, dimensions, hAlignment ---@param hAlignment cc.TextHAlignment ---@param vAlignment cc.TextVAlignment ---@return cc.Label +--- +---Allocates and initializes a Label, base on FreeType2. +--- +---\param text The initial text. +---\param fontFilePath A font file. +---\param fontSize The font size. This value must be > 0. +---\param dimensions +---\param hAlignment The text horizontal alignment. +---\param vAlignment The text vertical alignment. +--- +---\return An automatically released Label object. ---@overload fun(text: string, fontFilePath: string, fontSize: number): cc.Label +--- +---Allocates and initializes a Label, base on FreeType2. +--- +---\param text The initial text. +---\param fontFilePath A font file. +---\param fontSize The font size. This value must be > 0. +---\param dimensions +---\param hAlignment The text horizontal alignment. +---\param vAlignment The text vertical alignment. +--- +---\return An automatically released Label object. ---@overload fun(text: string, fontFilePath: string, fontSize: number, dimensions: cc.Size): cc.Label +--- +---Allocates and initializes a Label, base on FreeType2. +--- +---\param text The initial text. +---\param fontFilePath A font file. +---\param fontSize The font size. This value must be > 0. +---\param dimensions +---\param hAlignment The text horizontal alignment. +---\param vAlignment The text vertical alignment. +--- +---\return An automatically released Label object. ---@overload fun(text: string, fontFilePath: string, fontSize: number, dimensions: cc.Size, hAlignment: cc.TextHAlignment): cc.Label +--- +---Allocates and initializes a Label, base on FreeType2. +--- +---\param ttfConfig A pointer to a TTFConfig object. +---\param text The initial text. +---\param hAlignment The text horizontal alignment. +---\param maxLineWidth The max line width. +--- +---\return An automatically released Label object. +---\see TTFConfig setTTFConfig setMaxLineWidth ---@overload fun(ttfConfig: cc.TTFConfig, text: string, hAlignment: cc.TextHAlignment, maxLineWidth: integer): cc.Label +--- +---Allocates and initializes a Label, base on FreeType2. +--- +---\param ttfConfig A pointer to a TTFConfig object. +---\param text The initial text. +---\param hAlignment The text horizontal alignment. +---\param maxLineWidth The max line width. +--- +---\return An automatically released Label object. +---\see TTFConfig setTTFConfig setMaxLineWidth ---@overload fun(ttfConfig: cc.TTFConfig, text: string): cc.Label +--- +---Allocates and initializes a Label, base on FreeType2. +--- +---\param ttfConfig A pointer to a TTFConfig object. +---\param text The initial text. +---\param hAlignment The text horizontal alignment. +---\param maxLineWidth The max line width. +--- +---\return An automatically released Label object. +---\see TTFConfig setTTFConfig setMaxLineWidth ---@overload fun(ttfConfig: cc.TTFConfig, text: string, hAlignment: cc.TextHAlignment): cc.Label function Label.createWithTTF(text, fontFilePath, fontSize, dimensions, hAlignment, vAlignment) end ---Disable all effect applied to Label. ---\warning Please use disableEffect(LabelEffect::ALL) instead of this API. +--- +---Disable effect to Label. +--- +---\see `LabelEffect` ---@overload fun(self: cc.Label, effect: cc.LabelEffect) function Label:disableEffect() end @@ -165,6 +330,9 @@ function Label:enableItalics() end ---\warning Limiting use to only when the Label created with true type font or system font. ---@param outlineColor any ---@param outlineSize integer +--- +---Enable outline effect to Label. +---\warning Limiting use to only when the Label created with true type font or system font. ---@overload fun(self: cc.Label, outlineColor: any) function Label:enableOutline(outlineColor, outlineSize) end @@ -174,8 +342,20 @@ function Label:enableOutline(outlineColor, outlineSize) end ---@param shadowColor any ---@param offset cc.Size ---@param blurRadius integer +--- +---Enable shadow effect to Label. +--- +---\todo Support blur for shadow effect. ---@overload fun(self: cc.Label) +--- +---Enable shadow effect to Label. +--- +---\todo Support blur for shadow effect. ---@overload fun(self: cc.Label, shadowColor: any) +--- +---Enable shadow effect to Label. +--- +---\todo Support blur for shadow effect. ---@overload fun(self: cc.Label, shadowColor: any, offset: cc.Size) function Label:enableShadow(shadowColor, offset, blurRadius) end @@ -359,7 +539,13 @@ function Label:isWrapEnabled() end ---@param hAlignment cc.TextHAlignment ---@param vAlignment cc.TextVAlignment ---@return cc.Label +--- +---Constructor of Label. +---\js NA ---@overload fun(): cc.Label +--- +---Constructor of Label. +---\js NA ---@overload fun(hAlignment: cc.TextHAlignment): cc.Label function Label.new(hAlignment, vAlignment) end @@ -375,6 +561,8 @@ function Label:setAdditionalKerning(space) end ---Sets the Label's text horizontal alignment. ---@param hAlignment cc.TextHAlignment +--- +---Sets the Label's text alignment. ---@overload fun(self: cc.Label, hAlignment: cc.TextHAlignment, vAlignment: cc.TextVAlignment) function Label:setAlignment(hAlignment) end @@ -382,10 +570,20 @@ function Label:setAlignment(hAlignment) end ---@param bmfontFilePath string ---@param fontSize number ---@return boolean +--- +---Sets a new bitmap font to Label ---@overload fun(self: cc.Label, bmfontFilePath: string): boolean +--- +---Sets a new bitmap font to Label ---@overload fun(self: cc.Label, bmfontFilePath: string, imageRect: cc.Rect, imageRotated: boolean, fontSize: number): boolean +--- +---Sets a new bitmap font to Label ---@overload fun(self: cc.Label, bmfontFilePath: string, imageRect: cc.Rect, imageRotated: boolean): boolean +--- +---Sets a new bitmap font to Label ---@overload fun(self: cc.Label, bmfontFilePath: string, subTextureKey: string, fontSize: number): boolean +--- +---Sets a new bitmap font to Label ---@overload fun(self: cc.Label, bmfontFilePath: string, subTextureKey: string): boolean function Label:setBMFontFilePath(bmfontFilePath, fontSize) end @@ -407,7 +605,15 @@ function Label:setBlendFunc(blendFunc) end ---@param itemHeight integer ---@param startCharMap integer ---@return boolean +--- +---Sets a new char map configuration to Label. +--- +---\see `createWithCharMap(Texture2D*,int,int,int)` ---@overload fun(self: cc.Label, texture: cc.Texture2D, itemWidth: integer, itemHeight: integer, startCharMap: integer): boolean +--- +---Sets a new char map configuration to Label. +--- +---\see `createWithCharMap(const std::string&)` ---@overload fun(self: cc.Label, plistFile: string): boolean function Label:setCharMap(charMapFile, itemWidth, itemHeight, startCharMap) end diff --git a/addons/cclua/cocos2d/library/cc/Label/LabelType.lua b/addons/cclua/cocos2d/library/cc/Label/LabelType.lua index f733fe28..1caf415c 100644 --- a/addons/cclua/cocos2d/library/cc/Label/LabelType.lua +++ b/addons/cclua/cocos2d/library/cc/Label/LabelType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Label.LabelType ---@type cc.Label.LabelType diff --git a/addons/cclua/cocos2d/library/cc/Label/Overflow.lua b/addons/cclua/cocos2d/library/cc/Label/Overflow.lua index 906ad6eb..41c6d445 100644 --- a/addons/cclua/cocos2d/library/cc/Label/Overflow.lua +++ b/addons/cclua/cocos2d/library/cc/Label/Overflow.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Label.Overflow ---@type cc.Label.Overflow diff --git a/addons/cclua/cocos2d/library/cc/LabelAtlas.lua b/addons/cclua/cocos2d/library/cc/LabelAtlas.lua index 09fed538..8e06480f 100644 --- a/addons/cclua/cocos2d/library/cc/LabelAtlas.lua +++ b/addons/cclua/cocos2d/library/cc/LabelAtlas.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.LabelAtlas ---\addtogroup base @@ -13,7 +14,12 @@ function LabelAtlas:as(cls) end ---Creates an empty LabelAtlas. ---User need to call initWithString(...) later to make this object work properly. ---@return cc.LabelAtlas +--- +---Creates the LabelAtlas with a string, a char map file(the atlas), the width and height of each element and the starting char of the atlas. ---@overload fun(string: string, charMapFile: string, itemWidth: integer, itemHeight: integer, startCharMap: integer): cc.LabelAtlas +--- +---Creates the LabelAtlas with a string and a configuration file. +---\since v2.0 ---@overload fun(string: string, fntFile: string): cc.LabelAtlas function LabelAtlas.create() end @@ -27,7 +33,12 @@ function LabelAtlas:getString() end ---@param itemHeight integer ---@param startCharMap integer ---@return boolean +--- +---Initializes the LabelAtlas with a string and a configuration file. +---\since v2.0 ---@overload fun(self: cc.LabelAtlas, string: string, fntFile: string): boolean +--- +---Initializes the LabelAtlas with a string, a texture, the width and height in points of each element and the starting char of the atlas ---@overload fun(self: cc.LabelAtlas, string: string, texture: cc.Texture2D, itemWidth: integer, itemHeight: integer, startCharMap: integer): boolean function LabelAtlas:initWithString(string, charMapFile, itemWidth, itemHeight, startCharMap) end diff --git a/addons/cclua/cocos2d/library/cc/LabelEffect.lua b/addons/cclua/cocos2d/library/cc/LabelEffect.lua index 43a47edc..2800d4bb 100644 --- a/addons/cclua/cocos2d/library/cc/LabelEffect.lua +++ b/addons/cclua/cocos2d/library/cc/LabelEffect.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.LabelEffect ---@type cc.LabelEffect diff --git a/addons/cclua/cocos2d/library/cc/LabelProtocol.lua b/addons/cclua/cocos2d/library/cc/LabelProtocol.lua index f7bc3418..4c71a552 100644 --- a/addons/cclua/cocos2d/library/cc/LabelProtocol.lua +++ b/addons/cclua/cocos2d/library/cc/LabelProtocol.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.LabelProtocol ---Common interface for Labels diff --git a/addons/cclua/cocos2d/library/cc/LanguageType.lua b/addons/cclua/cocos2d/library/cc/LanguageType.lua index 3a1c207b..288b28d9 100644 --- a/addons/cclua/cocos2d/library/cc/LanguageType.lua +++ b/addons/cclua/cocos2d/library/cc/LanguageType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.LanguageType ---@type cc.LanguageType diff --git a/addons/cclua/cocos2d/library/cc/Layer.lua b/addons/cclua/cocos2d/library/cc/Layer.lua index f433c8fb..97a12e03 100644 --- a/addons/cclua/cocos2d/library/cc/Layer.lua +++ b/addons/cclua/cocos2d/library/cc/Layer.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Layer ---\class Layer diff --git a/addons/cclua/cocos2d/library/cc/LayerColor.lua b/addons/cclua/cocos2d/library/cc/LayerColor.lua index 4fadadca..4db55c0d 100644 --- a/addons/cclua/cocos2d/library/cc/LayerColor.lua +++ b/addons/cclua/cocos2d/library/cc/LayerColor.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.LayerColor ---\class LayerColor @@ -39,7 +40,19 @@ function LayerColor:changeWidthAndHeight(w, h) end --- ---\return An autoreleased LayerColor object. ---@return cc.LayerColor +--- +---Creates a Layer with color, width and height in Points. +--- +---\param color The color of layer. +---\param width The width of layer. +---\param height The height of layer. +---\return An autoreleased LayerColor object. ---@overload fun(color: any, width: number, height: number): cc.LayerColor +--- +---Creates a Layer with color. Width and height are the window size. +--- +---\param color The color of layer. +---\return An autoreleased LayerColor object. ---@overload fun(color: any): cc.LayerColor function LayerColor.create() end diff --git a/addons/cclua/cocos2d/library/cc/LayerGradient.lua b/addons/cclua/cocos2d/library/cc/LayerGradient.lua index 0a8d6698..b702b152 100644 --- a/addons/cclua/cocos2d/library/cc/LayerGradient.lua +++ b/addons/cclua/cocos2d/library/cc/LayerGradient.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.LayerGradient ---\class LayerGradient @@ -22,9 +23,9 @@ ---@class cc.LayerGradient : cc.LayerColor ---@field compressedInterpolation boolean Get the compressedInterpolation

\return The interpolation will be compressed if true. ---@field endColor any Returns the end color of the gradient.

\return The end color. ----@field endOpacity any Returns the end opacity of the gradient.

\return The end opacity. +---@field endOpacity integer Returns the end opacity of the gradient.

\return The end opacity. ---@field startColor any Returns the start color of the gradient.

\return The start color. ----@field startOpacity any Returns the start opacity of the gradient.

\return The start opacity. +---@field startOpacity integer Returns the start opacity of the gradient.

\return The start opacity. ---@field vector cc.Vec2 Returns the directional vector used for the gradient.

\return The direction of gradient. local LayerGradient = {} @@ -32,7 +33,20 @@ local LayerGradient = {} --- ---\return An autoreleased LayerGradient object. ---@return cc.LayerGradient +--- +---Creates a full-screen Layer with a gradient between start and end. +--- +---\param start The start color. +---\param end The end color. +---\return An autoreleased LayerGradient object. ---@overload fun(start: any, end_: any): cc.LayerGradient +--- +---Creates a full-screen Layer with a gradient between start and end in the direction of v. +--- +---\param start The start color. +---\param end The end color. +---\param v The direction of gradient color. +---\return An autoreleased LayerGradient object. ---@overload fun(start: any, end_: any, v: cc.Vec2): cc.LayerGradient function LayerGradient.create() end @@ -45,7 +59,7 @@ function LayerGradient:getEndColor() end ---Returns the end opacity of the gradient. --- ---\return The end opacity. ----@return any +---@return integer function LayerGradient:getEndOpacity() end ---Returns the start color of the gradient. @@ -57,7 +71,7 @@ function LayerGradient:getStartColor() end ---Returns the start opacity of the gradient. --- ---\return The start opacity. ----@return any +---@return integer function LayerGradient:getStartOpacity() end ---Returns the directional vector used for the gradient. @@ -72,6 +86,10 @@ function LayerGradient:getVector() end ---@param start any ---@param end_ any ---@return boolean +--- +---Initializes the Layer with a gradient between start and end in the direction of v. +---\js init +---\lua init ---@overload fun(self: cc.LayerGradient, start: any, end_: any, v: cc.Vec2): boolean function LayerGradient:initWithColor(start, end_) end @@ -100,7 +118,7 @@ function LayerGradient:setEndColor(endColor) end ---Returns the end opacity of the gradient. --- ---\param endOpacity The end opacity, from 0 to 255. ----@param endOpacity any +---@param endOpacity integer function LayerGradient:setEndOpacity(endOpacity) end ---Sets the start color of the gradient. @@ -112,7 +130,7 @@ function LayerGradient:setStartColor(startColor) end ---Returns the start opacity of the gradient. --- ---\param startOpacity The start opacity, from 0 to 255. ----@param startOpacity any +---@param startOpacity integer function LayerGradient:setStartOpacity(startOpacity) end ---Sets the directional vector that will be used for the gradient. diff --git a/addons/cclua/cocos2d/library/cc/LayerMultiplex.lua b/addons/cclua/cocos2d/library/cc/LayerMultiplex.lua index f999d8f5..b8aacf85 100644 --- a/addons/cclua/cocos2d/library/cc/LayerMultiplex.lua +++ b/addons/cclua/cocos2d/library/cc/LayerMultiplex.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.LayerMultiplex ---\class LayerMultiplex @@ -19,22 +20,141 @@ function LayerMultiplex:addLayer(layer) end --- ---\return An autoreleased LayerMultiplex object. ---@return cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer): cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer, layer_1: cc.Layer): cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer, layer_1: cc.Layer, layer_2: cc.Layer): cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer, layer_1: cc.Layer, layer_2: cc.Layer, layer_3: cc.Layer): cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer, layer_1: cc.Layer, layer_2: cc.Layer, layer_3: cc.Layer, layer_4: cc.Layer): cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer, layer_1: cc.Layer, layer_2: cc.Layer, layer_3: cc.Layer, layer_4: cc.Layer, layer_5: cc.Layer): cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer, layer_1: cc.Layer, layer_2: cc.Layer, layer_3: cc.Layer, layer_4: cc.Layer, layer_5: cc.Layer, layer_6: cc.Layer): cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer, layer_1: cc.Layer, layer_2: cc.Layer, layer_3: cc.Layer, layer_4: cc.Layer, layer_5: cc.Layer, layer_6: cc.Layer, layer_7: cc.Layer): cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer, layer_1: cc.Layer, layer_2: cc.Layer, layer_3: cc.Layer, layer_4: cc.Layer, layer_5: cc.Layer, layer_6: cc.Layer, layer_7: cc.Layer, layer_8: cc.Layer): cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer, layer_1: cc.Layer, layer_2: cc.Layer, layer_3: cc.Layer, layer_4: cc.Layer, layer_5: cc.Layer, layer_6: cc.Layer, layer_7: cc.Layer, layer_8: cc.Layer, layer_9: cc.Layer): cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer, layer_1: cc.Layer, layer_2: cc.Layer, layer_3: cc.Layer, layer_4: cc.Layer, layer_5: cc.Layer, layer_6: cc.Layer, layer_7: cc.Layer, layer_8: cc.Layer, layer_9: cc.Layer, layer_10: cc.Layer): cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer, layer_1: cc.Layer, layer_2: cc.Layer, layer_3: cc.Layer, layer_4: cc.Layer, layer_5: cc.Layer, layer_6: cc.Layer, layer_7: cc.Layer, layer_8: cc.Layer, layer_9: cc.Layer, layer_10: cc.Layer, layer_11: cc.Layer): cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer, layer_1: cc.Layer, layer_2: cc.Layer, layer_3: cc.Layer, layer_4: cc.Layer, layer_5: cc.Layer, layer_6: cc.Layer, layer_7: cc.Layer, layer_8: cc.Layer, layer_9: cc.Layer, layer_10: cc.Layer, layer_11: cc.Layer, layer_12: cc.Layer): cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer, layer_1: cc.Layer, layer_2: cc.Layer, layer_3: cc.Layer, layer_4: cc.Layer, layer_5: cc.Layer, layer_6: cc.Layer, layer_7: cc.Layer, layer_8: cc.Layer, layer_9: cc.Layer, layer_10: cc.Layer, layer_11: cc.Layer, layer_12: cc.Layer, layer_13: cc.Layer): cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer, layer_1: cc.Layer, layer_2: cc.Layer, layer_3: cc.Layer, layer_4: cc.Layer, layer_5: cc.Layer, layer_6: cc.Layer, layer_7: cc.Layer, layer_8: cc.Layer, layer_9: cc.Layer, layer_10: cc.Layer, layer_11: cc.Layer, layer_12: cc.Layer, layer_13: cc.Layer, layer_14: cc.Layer): cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer, layer_1: cc.Layer, layer_2: cc.Layer, layer_3: cc.Layer, layer_4: cc.Layer, layer_5: cc.Layer, layer_6: cc.Layer, layer_7: cc.Layer, layer_8: cc.Layer, layer_9: cc.Layer, layer_10: cc.Layer, layer_11: cc.Layer, layer_12: cc.Layer, layer_13: cc.Layer, layer_14: cc.Layer, layer_15: cc.Layer): cc.LayerMultiplex +--- +---Creates a LayerMultiplex with one or more layers using a variable argument list. +---\code +---When this function bound to lua or js,the input params are changed. +---In js:var create(...) +---In lua:local create(...) +---\endcode ---@overload fun(layer: cc.Layer, layer_1: cc.Layer, layer_2: cc.Layer, layer_3: cc.Layer, layer_4: cc.Layer, layer_5: cc.Layer, layer_6: cc.Layer, layer_7: cc.Layer, layer_8: cc.Layer, layer_9: cc.Layer, layer_10: cc.Layer, layer_11: cc.Layer, layer_12: cc.Layer, layer_13: cc.Layer, layer_14: cc.Layer, layer_15: cc.Layer, layer_16: cc.Layer): cc.LayerMultiplex function LayerMultiplex.create() end @@ -75,6 +195,8 @@ function LayerMultiplex.new() end --- ---\param n The layer indexed by n will display. ---@param n integer +--- +---The same as switchTo(int), but has a parameter to set if need to clean up child. ---@overload fun(self: cc.LayerMultiplex, n: integer, cleanup: boolean) function LayerMultiplex:switchTo(n) end diff --git a/addons/cclua/cocos2d/library/cc/LayerRadialGradient.lua b/addons/cclua/cocos2d/library/cc/LayerRadialGradient.lua index 3c87752b..edcefc5f 100644 --- a/addons/cclua/cocos2d/library/cc/LayerRadialGradient.lua +++ b/addons/cclua/cocos2d/library/cc/LayerRadialGradient.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.LayerRadialGradient ---\class LayerRadialGradient @@ -8,12 +9,12 @@ ---@field center cc.Vec2 ---@field endColor any ---@field endColor3B any ----@field endOpacity any +---@field endOpacity integer ---@field expand number ---@field radius number ---@field startColor any ---@field startColor3B any ----@field startOpacity any +---@field startOpacity integer local LayerRadialGradient = {} ---Create a LayerRadialGradient @@ -44,7 +45,7 @@ function LayerRadialGradient:getEndColor() end ---@return any function LayerRadialGradient:getEndColor3B() end ----@return any +---@return integer function LayerRadialGradient:getEndOpacity() end ---@return number @@ -59,7 +60,7 @@ function LayerRadialGradient:getStartColor() end ---@return any function LayerRadialGradient:getStartColor3B() end ----@return any +---@return integer function LayerRadialGradient:getStartOpacity() end ---@param startColor any @@ -83,7 +84,7 @@ function LayerRadialGradient:setCenter(center) end ---@overload fun(self: cc.LayerRadialGradient, color: any) function LayerRadialGradient:setEndColor(color) end ----@param opacity any +---@param opacity integer function LayerRadialGradient:setEndOpacity(opacity) end ---@param expand number @@ -96,7 +97,7 @@ function LayerRadialGradient:setRadius(radius) end ---@overload fun(self: cc.LayerRadialGradient, color: any) function LayerRadialGradient:setStartColor(color) end ----@param opacity any +---@param opacity integer function LayerRadialGradient:setStartOpacity(opacity) end return LayerRadialGradient \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/cc/Lens3D.lua b/addons/cclua/cocos2d/library/cc/Lens3D.lua index 6d3551f7..aed6a357 100644 --- a/addons/cclua/cocos2d/library/cc/Lens3D.lua +++ b/addons/cclua/cocos2d/library/cc/Lens3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Lens3D ---\brief Lens3D action. diff --git a/addons/cclua/cocos2d/library/cc/LightFlag.lua b/addons/cclua/cocos2d/library/cc/LightFlag.lua index 78dab516..37bf495f 100644 --- a/addons/cclua/cocos2d/library/cc/LightFlag.lua +++ b/addons/cclua/cocos2d/library/cc/LightFlag.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.LightFlag ---@type cc.LightFlag diff --git a/addons/cclua/cocos2d/library/cc/LightType.lua b/addons/cclua/cocos2d/library/cc/LightType.lua index 6658495a..3afd389a 100644 --- a/addons/cclua/cocos2d/library/cc/LightType.lua +++ b/addons/cclua/cocos2d/library/cc/LightType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.LightType ---@type cc.LightType diff --git a/addons/cclua/cocos2d/library/cc/Liquid.lua b/addons/cclua/cocos2d/library/cc/Liquid.lua index b8d1de72..0bc3d20e 100644 --- a/addons/cclua/cocos2d/library/cc/Liquid.lua +++ b/addons/cclua/cocos2d/library/cc/Liquid.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Liquid ---\brief Liquid action. diff --git a/addons/cclua/cocos2d/library/cc/LuaComponent.lua b/addons/cclua/cocos2d/library/cc/LuaComponent.lua index d76c2b85..8bc6e37f 100644 --- a/addons/cclua/cocos2d/library/cc/LuaComponent.lua +++ b/addons/cclua/cocos2d/library/cc/LuaComponent.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.LuaComponent --- diff --git a/addons/cclua/cocos2d/library/cc/LuaTweenNode.lua b/addons/cclua/cocos2d/library/cc/LuaTweenNode.lua index 2e80c3a0..245fad9e 100644 --- a/addons/cclua/cocos2d/library/cc/LuaTweenNode.lua +++ b/addons/cclua/cocos2d/library/cc/LuaTweenNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.LuaTweenNode --- diff --git a/addons/cclua/cocos2d/library/cc/LuaWebSocketDelegate.lua b/addons/cclua/cocos2d/library/cc/LuaWebSocketDelegate.lua index 62dc7d86..1b0406e2 100644 --- a/addons/cclua/cocos2d/library/cc/LuaWebSocketDelegate.lua +++ b/addons/cclua/cocos2d/library/cc/LuaWebSocketDelegate.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.LuaWebSocketDelegate --- diff --git a/addons/cclua/cocos2d/library/cc/MATRIX_STACK_TYPE.lua b/addons/cclua/cocos2d/library/cc/MATRIX_STACK_TYPE.lua index 737cbb1e..2ada224a 100644 --- a/addons/cclua/cocos2d/library/cc/MATRIX_STACK_TYPE.lua +++ b/addons/cclua/cocos2d/library/cc/MATRIX_STACK_TYPE.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.MATRIX_STACK_TYPE ---@type cc.MATRIX_STACK_TYPE diff --git a/addons/cclua/cocos2d/library/cc/Mat4.lua b/addons/cclua/cocos2d/library/cc/Mat4.lua index 0c30864d..3a8edfcb 100644 --- a/addons/cclua/cocos2d/library/cc/Mat4.lua +++ b/addons/cclua/cocos2d/library/cc/Mat4.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Mat4 ---\addtogroup base @@ -36,8 +37,23 @@ function Mat4.__sub(mat1, mat2) end --- ---\param scalar The scalar to add. ---@param scalar number +--- +---Adds a scalar value to each component of this matrix and stores the result in dst. +--- +---\param scalar The scalar value to add. +---\param dst A matrix to store the result in. ---@overload fun(self: cc.Mat4, scalar: number, dst: cc.Mat4) +--- +---Adds the specified matrix to this matrix. +--- +---\param mat The matrix to add. ---@overload fun(self: cc.Mat4, mat: cc.Mat4) +--- +---Adds the specified matrices and stores the result in dst. +--- +---\param m1 The first matrix. +---\param m2 The second matrix. +---\param dst The destination matrix to add to. ---@overload fun(m1: cc.Mat4, m2: cc.Mat4, dst: cc.Mat4) function Mat4:add(scalar) end @@ -57,6 +73,21 @@ function Mat4:add(scalar) end ---@param cameraPosition cc.Vec3 ---@param cameraUpVector cc.Vec3 ---@param dst cc.Mat4 +--- +---Creates a spherical billboard that rotates around a specified object position with +---provision for a safe default orientation. +--- +---This method computes the facing direction of the billboard from the object position +---and camera position. When the object and camera positions are too close, the matrix +---will not be accurate. To avoid this problem, this method uses the specified camera +---forward vector if the positions are too close. (See the other overload of createBillboard +---for an alternative approach). +--- +---\param objectPosition The position of the object the billboard will rotate around. +---\param cameraPosition The position of the camera. +---\param cameraUpVector The up vector of the camera. +---\param cameraForwardVector The forward vector of the camera, used if the positions are too close. +---\param dst A matrix to store the result in. ---@overload fun(objectPosition: cc.Vec3, cameraPosition: cc.Vec3, cameraUpVector: cc.Vec3, cameraForwardVector: cc.Vec3, dst: cc.Mat4) function Mat4.createBillboard(objectPosition, cameraPosition, cameraUpVector, dst) end @@ -70,6 +101,19 @@ function Mat4.createBillboard(objectPosition, cameraPosition, cameraUpVector, ds ---@param targetPosition cc.Vec3 ---@param up cc.Vec3 ---@param dst cc.Mat4 +--- +---Creates a view matrix based on the specified input parameters. +--- +---\param eyePositionX The eye x-coordinate position. +---\param eyePositionY The eye y-coordinate position. +---\param eyePositionZ The eye z-coordinate position. +---\param targetCenterX The target's center x-coordinate position. +---\param targetCenterY The target's center y-coordinate position. +---\param targetCenterZ The target's center z-coordinate position. +---\param upX The up vector x-coordinate value. +---\param upY The up vector y-coordinate value. +---\param upZ The up vector z-coordinate value. +---\param dst A matrix to store the result in. ---@overload fun(eyePositionX: number, eyePositionY: number, eyePositionZ: number, targetCenterX: number, targetCenterY: number, targetCenterZ: number, upX: number, upY: number, upZ: number, dst: cc.Mat4) function Mat4.createLookAt(eyePosition, targetPosition, up, dst) end @@ -147,6 +191,12 @@ function Mat4.createPerspective(fieldOfView, aspectRatio, zNearPlane, zFarPlane, ---\param dst A matrix to store the result in. ---@param quat cc.Quaternion ---@param dst cc.Mat4 +--- +---Creates a rotation matrix from the specified axis and angle. +--- +---\param axis A vector describing the axis to rotate about. +---\param angle The angle (in radians). +---\param dst A matrix to store the result in. ---@overload fun(axis: cc.Vec3, angle: number, dst: cc.Mat4) function Mat4.createRotation(quat, dst) end @@ -180,6 +230,13 @@ function Mat4.createRotationZ(angle, dst) end ---\param dst A matrix to store the result in. ---@param scale cc.Vec3 ---@param dst cc.Mat4 +--- +---Creates a scale matrix. +--- +---\param xScale The amount to scale along the x-axis. +---\param yScale The amount to scale along the y-axis. +---\param zScale The amount to scale along the z-axis. +---\param dst A matrix to store the result in. ---@overload fun(xScale: number, yScale: number, zScale: number, dst: cc.Mat4) function Mat4.createScale(scale, dst) end @@ -189,6 +246,13 @@ function Mat4.createScale(scale, dst) end ---\param dst A matrix to store the result in. ---@param translation cc.Vec3 ---@param dst cc.Mat4 +--- +---Creates a translation matrix. +--- +---\param xTranslation The translation on the x-axis. +---\param yTranslation The translation on the y-axis. +---\param zTranslation The translation on the z-axis. +---\param dst A matrix to store the result in. ---@overload fun(xTranslation: number, yTranslation: number, zTranslation: number, dst: cc.Mat4) function Mat4.createTranslation(translation, dst) end @@ -299,9 +363,30 @@ function Mat4:isIdentity() end --- ---\param scalar The scalar value. ---@param scalar number +--- +---Multiplies the components of this matrix by a scalar and stores the result in dst. +--- +---\param scalar The scalar value. +---\param dst A matrix to store the result in. ---@overload fun(self: cc.Mat4, scalar: number, dst: cc.Mat4) +--- +---Multiplies the components of the specified matrix by a scalar and stores the result in dst. +--- +---\param mat The matrix. +---\param scalar The scalar value. +---\param dst A matrix to store the result in. ---@overload fun(mat: cc.Mat4, scalar: number, dst: cc.Mat4) +--- +---Multiplies this matrix by the specified one. +--- +---\param mat The matrix to multiply. ---@overload fun(self: cc.Mat4, mat: cc.Mat4) +--- +---Multiplies m1 by m2 and stores the result in dst. +--- +---\param m1 The first matrix to multiply. +---\param m2 The second matrix to multiply. +---\param dst A matrix to store the result in. ---@overload fun(m1: cc.Mat4, m2: cc.Mat4, dst: cc.Mat4) function Mat4:multiply(scalar) end @@ -316,7 +401,37 @@ function Mat4:negate() end ---0 0 1 0 ---0 0 0 1 ---@return cc.Mat4 +--- +---Constructs a matrix initialized to the specified value. +--- +---\param m11 The first element of the first row. +---\param m12 The second element of the first row. +---\param m13 The third element of the first row. +---\param m14 The fourth element of the first row. +---\param m21 The first element of the second row. +---\param m22 The second element of the second row. +---\param m23 The third element of the second row. +---\param m24 The fourth element of the second row. +---\param m31 The first element of the third row. +---\param m32 The second element of the third row. +---\param m33 The third element of the third row. +---\param m34 The fourth element of the third row. +---\param m41 The first element of the fourth row. +---\param m42 The second element of the fourth row. +---\param m43 The third element of the fourth row. +---\param m44 The fourth element of the fourth row. ---@overload fun(m11: number, m12: number, m13: number, m14: number, m21: number, m22: number, m23: number, m24: number, m31: number, m32: number, m33: number, m34: number, m41: number, m42: number, m43: number, m44: number): cc.Mat4 +--- +---Creates a matrix initialized to the specified column-major array. +--- +---The passed-in array is in column-major order, so the memory layout of the array is as follows: +--- +---0 4 8 12 +---1 5 9 13 +---2 6 10 14 +---3 7 11 15 +--- +---\param mat An array containing 16 elements in column-major order. ---@overload fun(mat: olua.float): cc.Mat4 function Mat4.new() end @@ -325,8 +440,27 @@ function Mat4.new() end --- ---\param q The quaternion to rotate by. ---@param q cc.Quaternion +--- +---Post-multiplies this matrix by the matrix corresponding to the +---specified quaternion rotation and stores the result in dst. +--- +---\param q The quaternion to rotate by. +---\param dst A matrix to store the result in. ---@overload fun(self: cc.Mat4, q: cc.Quaternion, dst: cc.Mat4) +--- +---Post-multiplies this matrix by the matrix corresponding to the +---specified rotation about the specified axis. +--- +---\param axis The axis to rotate about. +---\param angle The angle (in radians). ---@overload fun(self: cc.Mat4, axis: cc.Vec3, angle: number) +--- +---Post-multiplies this matrix by the matrix corresponding to the specified +---rotation about the specified axis and stores the result in dst. +--- +---\param axis The axis to rotate about. +---\param angle The angle (in radians). +---\param dst A matrix to store the result in. ---@overload fun(self: cc.Mat4, axis: cc.Vec3, angle: number, dst: cc.Mat4) function Mat4:rotate(q) end @@ -335,6 +469,12 @@ function Mat4:rotate(q) end --- ---\param angle The angle (in radians). ---@param angle number +--- +---Post-multiplies this matrix by the matrix corresponding to the +---specified rotation around the x-axis and stores the result in dst. +--- +---\param angle The angle (in radians). +---\param dst A matrix to store the result in. ---@overload fun(self: cc.Mat4, angle: number, dst: cc.Mat4) function Mat4:rotateX(angle) end @@ -343,6 +483,12 @@ function Mat4:rotateX(angle) end --- ---\param angle The angle (in radians). ---@param angle number +--- +---Post-multiplies this matrix by the matrix corresponding to the +---specified rotation around the y-axis and stores the result in dst. +--- +---\param angle The angle (in radians). +---\param dst A matrix to store the result in. ---@overload fun(self: cc.Mat4, angle: number, dst: cc.Mat4) function Mat4:rotateY(angle) end @@ -351,6 +497,12 @@ function Mat4:rotateY(angle) end --- ---\param angle The angle (in radians). ---@param angle number +--- +---Post-multiplies this matrix by the matrix corresponding to the +---specified rotation around the z-axis and stores the result in dst. +--- +---\param angle The angle (in radians). +---\param dst A matrix to store the result in. ---@overload fun(self: cc.Mat4, angle: number, dst: cc.Mat4) function Mat4:rotateZ(angle) end @@ -359,10 +511,42 @@ function Mat4:rotateZ(angle) end --- ---\param value The amount to scale along all axes. ---@param value number +--- +---Post-multiplies this matrix by the matrix corresponding to the +---specified scale transformation and stores the result in dst. +--- +---\param value The amount to scale along all axes. +---\param dst A matrix to store the result in. ---@overload fun(self: cc.Mat4, value: number, dst: cc.Mat4) +--- +---Post-multiplies this matrix by the matrix corresponding to the +---specified scale transformation. +--- +---\param xScale The amount to scale along the x-axis. +---\param yScale The amount to scale along the y-axis. +---\param zScale The amount to scale along the z-axis. ---@overload fun(self: cc.Mat4, xScale: number, yScale: number, zScale: number) +--- +---Post-multiplies this matrix by the matrix corresponding to the +---specified scale transformation and stores the result in dst. +--- +---\param xScale The amount to scale along the x-axis. +---\param yScale The amount to scale along the y-axis. +---\param zScale The amount to scale along the z-axis. +---\param dst A matrix to store the result in. ---@overload fun(self: cc.Mat4, xScale: number, yScale: number, zScale: number, dst: cc.Mat4) +--- +---Post-multiplies this matrix by the matrix corresponding to the +---specified scale transformation. +--- +---\param s The scale values along the x, y and z axes. ---@overload fun(self: cc.Mat4, s: cc.Vec3) +--- +---Post-multiplies this matrix by the matrix corresponding to the +---specified scale transformation and stores the result in dst. +--- +---\param s The scale values along the x, y and z axes. +---\param dst A matrix to store the result in. ---@overload fun(self: cc.Mat4, s: cc.Vec3, dst: cc.Mat4) function Mat4:scale(value) end @@ -400,7 +584,15 @@ function Mat4:scale(value) end ---@param m42 number ---@param m43 number ---@param m44 number +--- +---Sets the values of this matrix to those in the specified column-major array. +--- +---\param mat An array containing 16 elements in column-major format. ---@overload fun(self: cc.Mat4, mat: olua.float) +--- +---Sets the values of this matrix to those of the specified matrix. +--- +---\param mat The source matrix. ---@overload fun(self: cc.Mat4, mat: cc.Mat4) function Mat4:set(m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44) end @@ -414,6 +606,12 @@ function Mat4:setZero() end --- ---\param mat The matrix to subtract. ---@param mat cc.Mat4 +--- +---Subtracts the specified matrix from the current matrix. +--- +---\param m1 The first matrix. +---\param m2 The second matrix. +---\param dst A matrix to store the result in. ---@overload fun(m1: cc.Mat4, m2: cc.Mat4, dst: cc.Mat4) function Mat4:subtract(mat) end @@ -433,6 +631,12 @@ function Mat4.transform(mat, p) end --- ---\param point The point to transform and also a vector to hold the result in. ---@param point cc.Vec3 +--- +---Transforms the specified point by this matrix, and stores +---the result in dst. +--- +---\param point The point to transform. +---\param dst A vector to store the transformed point in. ---@overload fun(self: cc.Mat4, point: cc.Vec3, dst: cc.Vec3) function Mat4:transformPoint(point) end @@ -443,9 +647,35 @@ function Mat4:transformPoint(point) end --- ---\param vector The vector to transform and also a vector to hold the result in. ---@param vector cc.Vec3 +--- +---Transforms the specified vector by this matrix by +---treating the fourth (w) coordinate as zero, and stores the +---result in dst. +--- +---\param vector The vector to transform. +---\param dst A vector to store the transformed vector in. ---@overload fun(self: cc.Mat4, vector: cc.Vec3, dst: cc.Vec3) +--- +---Transforms the specified vector by this matrix. +--- +---\param x The vector x-coordinate to transform by. +---\param y The vector y-coordinate to transform by. +---\param z The vector z-coordinate to transform by. +---\param w The vector w-coordinate to transform by. +---\param dst A vector to store the transformed point in. ---@overload fun(self: cc.Mat4, x: number, y: number, z: number, w: number, dst: cc.Vec3) +--- +---Transforms the specified vector by this matrix. +--- +---The result of the transformation is stored directly into vector. +--- +---\param vector The vector to transform. ---@overload fun(self: cc.Mat4, vector: cc.Vec4) +--- +---Transforms the specified vector by this matrix. +--- +---\param vector The vector to transform. +---\param dst A vector to store the transformed point in. ---@overload fun(self: cc.Mat4, vector: cc.Vec4, dst: cc.Vec4) function Mat4:transformVector(vector) end @@ -458,8 +688,27 @@ function Mat4:transformVector(vector) end ---@param x number ---@param y number ---@param z number +--- +---Post-multiplies this matrix by the matrix corresponding to the +---specified translation and stores the result in dst. +--- +---\param x The amount to translate along the x-axis. +---\param y The amount to translate along the y-axis. +---\param z The amount to translate along the z-axis. +---\param dst A matrix to store the result in. ---@overload fun(self: cc.Mat4, x: number, y: number, z: number, dst: cc.Mat4) +--- +---Post-multiplies this matrix by the matrix corresponding to the +---specified translation. +--- +---\param t The translation values along the x, y and z axes. ---@overload fun(self: cc.Mat4, t: cc.Vec3) +--- +---Post-multiplies this matrix by the matrix corresponding to the +---specified translation and stores the result in dst. +--- +---\param t The translation values along the x, y and z axes. +---\param dst A matrix to store the result in. ---@overload fun(self: cc.Mat4, t: cc.Vec3, dst: cc.Mat4) function Mat4:translate(x, y, z) end diff --git a/addons/cclua/cocos2d/library/cc/Material.lua b/addons/cclua/cocos2d/library/cc/Material.lua index 134a0098..4d93fca5 100644 --- a/addons/cclua/cocos2d/library/cc/Material.lua +++ b/addons/cclua/cocos2d/library/cc/Material.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Material ---Material diff --git a/addons/cclua/cocos2d/library/cc/Mesh.lua b/addons/cclua/cocos2d/library/cc/Mesh.lua index c8ae1f0e..95a9c254 100644 --- a/addons/cclua/cocos2d/library/cc/Mesh.lua +++ b/addons/cclua/cocos2d/library/cc/Mesh.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Mesh ---\brief Mesh: contains ref to index buffer, GLProgramState, texture, skin, blend function, aabb and so on @@ -28,13 +29,15 @@ function Mesh:calculateAABB() end ---@param texs number[] ---@param indices integer[] ---@return cc.Mesh +--- +---\lua NA ---@overload fun(vertices: number[], perVertexSizeInFloat: integer, indices: integer[], attribs: cc.MeshVertexAttrib[]): cc.Mesh function Mesh.create(positions, normals, texs, indices) end ---@param renderer cc.Renderer ---@param globalZ number ---@param transform cc.Mat4 ----@param flags any +---@param flags integer ---@param lightMask integer ---@param color cc.Vec4 ---@param forceDepthWrite boolean @@ -99,6 +102,10 @@ function Mesh:getSkin() end ---Get texture (diffuse), which is responsible for the main appearance. It is also means main texture, you can also call getTexture(NTextureData::Usage::Diffuse) ---\return Texture used, return the texture of first mesh if multiple meshes exist ---@return cc.Texture2D +--- +---Get texture +---\param usage Usage of returned texture +---\return The texture of this usage, return the texture of first mesh if multiple meshes exist ---@overload fun(self: cc.Mesh, usage: cc.NTextureData.Usage): cc.Texture2D function Mesh:getTexture() end @@ -155,9 +162,26 @@ function Mesh:setSkin(skin) end ---set texture (diffuse), which is responsible for the main appearance. It is also means main texture, you can also call setTexture(texPath, NTextureData::Usage::Diffuse) ---\param texPath texture path ---@param texPath string +--- +---set texture (diffuse), which is responsible for the main appearance. It is also means main texture, you can also call setTexture(texPath, NTextureData::Usage::Diffuse) +---\param tex texture to be set ---@overload fun(self: cc.Mesh, tex: cc.Texture2D) +--- +---set texture +---\param tex texture to be set +---\param usage Usage of this texture +---\param whether refresh the cache file name ---@overload fun(self: cc.Mesh, tex: cc.Texture2D, usage: cc.NTextureData.Usage, cacheFileName: boolean) +--- +---set texture +---\param tex texture to be set +---\param usage Usage of this texture +---\param whether refresh the cache file name ---@overload fun(self: cc.Mesh, tex: cc.Texture2D, usage: cc.NTextureData.Usage) +--- +---set texture +---\param texPath texture path +---\param usage Usage of this texture ---@overload fun(self: cc.Mesh, texPath: string, usage: cc.NTextureData.Usage) function Mesh:setTexture(texPath) end diff --git a/addons/cclua/cocos2d/library/cc/MeshCommand.lua b/addons/cclua/cocos2d/library/cc/MeshCommand.lua index da8bbb87..e6fa2d3c 100644 --- a/addons/cclua/cocos2d/library/cc/MeshCommand.lua +++ b/addons/cclua/cocos2d/library/cc/MeshCommand.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.MeshCommand --- diff --git a/addons/cclua/cocos2d/library/cc/MeshSkin.lua b/addons/cclua/cocos2d/library/cc/MeshSkin.lua index 8c523e51..ae338bc1 100644 --- a/addons/cclua/cocos2d/library/cc/MeshSkin.lua +++ b/addons/cclua/cocos2d/library/cc/MeshSkin.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.MeshSkin ---\brief MeshSkin, A class maintain a collection of bones that affect Mesh vertex. diff --git a/addons/cclua/cocos2d/library/cc/MeshVertexAttrib.lua b/addons/cclua/cocos2d/library/cc/MeshVertexAttrib.lua index 63625f97..7aac52bc 100644 --- a/addons/cclua/cocos2d/library/cc/MeshVertexAttrib.lua +++ b/addons/cclua/cocos2d/library/cc/MeshVertexAttrib.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.MeshVertexAttrib ---mesh vertex attribute diff --git a/addons/cclua/cocos2d/library/cc/MotionStreak.lua b/addons/cclua/cocos2d/library/cc/MotionStreak.lua index 782aa354..4cad1492 100644 --- a/addons/cclua/cocos2d/library/cc/MotionStreak.lua +++ b/addons/cclua/cocos2d/library/cc/MotionStreak.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.MotionStreak ---\class MotionStreak. @@ -28,6 +29,15 @@ function MotionStreak:as(cls) end ---@param strokeColor any ---@param imagePath string ---@return cc.MotionStreak +--- +---Creates and initializes a motion streak with fade in seconds, minimum segments, stroke's width, color, texture. +--- +---\param timeToFade The fade time, in seconds. +---\param minSeg The minimum segments. +---\param strokeWidth The width of stroke. +---\param strokeColor The color of stroke. +---\param texture The texture name of stoke. +---\return An autoreleased MotionStreak object. ---@overload fun(timeToFade: number, minSeg: number, strokeWidth: number, strokeColor: any, texture: cc.Texture2D): cc.MotionStreak function MotionStreak.create(timeToFade, minSeg, strokeWidth, strokeColor, imagePath) end @@ -52,6 +62,8 @@ function MotionStreak:getTexture() end ---@param color any ---@param path string ---@return boolean +--- +---initializes a motion streak with fade in seconds, minimum segments, stroke's width, color and texture ---@overload fun(self: cc.MotionStreak, fade: number, minSeg: number, stroke: number, color: any, texture: cc.Texture2D): boolean function MotionStreak:initWithFade(fade, minSeg, stroke, color, path) end diff --git a/addons/cclua/cocos2d/library/cc/MoveBy.lua b/addons/cclua/cocos2d/library/cc/MoveBy.lua index 7f25d8e2..b4351195 100644 --- a/addons/cclua/cocos2d/library/cc/MoveBy.lua +++ b/addons/cclua/cocos2d/library/cc/MoveBy.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.MoveBy ---\class MoveBy @@ -17,8 +18,26 @@ local MoveBy = {} ---@param duration number ---@param deltaPosition cc.Vec2 ---@return cc.MoveBy +--- +---Creates the action. +--- +---\param duration Duration time, in seconds. +---\param deltaPosition The delta distance in 3d, it's a Vec3 type. +---\return An autoreleased MoveBy object. ---@overload fun(duration: number, deltaPosition: cc.Vec3): cc.MoveBy +--- +---Creates the action. +--- +---\param duration Duration time, in seconds. +---\param deltaPosition The delta distance in 2d, it's a Vec2 type. +---\return An autoreleased MoveBy object. ---@overload fun(duration: number, deltaPosition: cc.Vec2): cc.MoveBy +--- +---Creates the action. +--- +---\param duration Duration time, in seconds. +---\param deltaPosition The delta distance in 3d, it's a Vec3 type. +---\return An autoreleased MoveBy object. ---@overload fun(duration: number, deltaPosition: cc.Vec3): cc.MoveBy function MoveBy.create(duration, deltaPosition) end diff --git a/addons/cclua/cocos2d/library/cc/MoveFrom.lua b/addons/cclua/cocos2d/library/cc/MoveFrom.lua index 3c254b0e..c3c1a553 100644 --- a/addons/cclua/cocos2d/library/cc/MoveFrom.lua +++ b/addons/cclua/cocos2d/library/cc/MoveFrom.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.MoveFrom --- diff --git a/addons/cclua/cocos2d/library/cc/MoveTo.lua b/addons/cclua/cocos2d/library/cc/MoveTo.lua index 6e2c0ecd..c821c4a6 100644 --- a/addons/cclua/cocos2d/library/cc/MoveTo.lua +++ b/addons/cclua/cocos2d/library/cc/MoveTo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.MoveTo ---\class MoveTo @@ -15,8 +16,23 @@ local MoveTo = {} ---@param duration number ---@param position cc.Vec2 ---@return cc.MoveTo +--- +---Creates the action. +---\param duration Duration time, in seconds. +---\param position The destination position in 3d. +---\return An autoreleased MoveTo object. ---@overload fun(duration: number, position: cc.Vec3): cc.MoveTo +--- +---Creates the action. +---\param duration Duration time, in seconds. +---\param position The destination position in 2d. +---\return An autoreleased MoveTo object. ---@overload fun(duration: number, position: cc.Vec2): cc.MoveTo +--- +---Creates the action. +---\param duration Duration time, in seconds. +---\param position The destination position in 3d. +---\return An autoreleased MoveTo object. ---@overload fun(duration: number, position: cc.Vec3): cc.MoveTo function MoveTo.create(duration, position) end diff --git a/addons/cclua/cocos2d/library/cc/NTextureData.lua b/addons/cclua/cocos2d/library/cc/NTextureData.lua index ea36e6f5..980034ed 100644 --- a/addons/cclua/cocos2d/library/cc/NTextureData.lua +++ b/addons/cclua/cocos2d/library/cc/NTextureData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.NTextureData ---new material, since 3.3 diff --git a/addons/cclua/cocos2d/library/cc/NTextureData/Usage.lua b/addons/cclua/cocos2d/library/cc/NTextureData/Usage.lua index f4e92fde..a00c22b0 100644 --- a/addons/cclua/cocos2d/library/cc/NTextureData/Usage.lua +++ b/addons/cclua/cocos2d/library/cc/NTextureData/Usage.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.NTextureData.Usage ---@type cc.NTextureData.Usage diff --git a/addons/cclua/cocos2d/library/cc/NavMesh.lua b/addons/cclua/cocos2d/library/cc/NavMesh.lua index c87458f3..b457e4f6 100644 --- a/addons/cclua/cocos2d/library/cc/NavMesh.lua +++ b/addons/cclua/cocos2d/library/cc/NavMesh.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.NavMesh ---\brief NavMesh: The NavMesh information container, include mesh, tileCache, and so on. diff --git a/addons/cclua/cocos2d/library/cc/NavMeshAgent.lua b/addons/cclua/cocos2d/library/cc/NavMeshAgent.lua index db2de094..a304efa4 100644 --- a/addons/cclua/cocos2d/library/cc/NavMeshAgent.lua +++ b/addons/cclua/cocos2d/library/cc/NavMeshAgent.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.NavMeshAgent ---\brief NavMeshAgent: The code wrapping of dtCrowdAgent, use component mode. @@ -80,6 +81,10 @@ function NavMeshAgent:isOnOffMeshLink() end ---\param callback Use this function can catch movement state. ---@param destination cc.Vec3 ---@param callback fun(arg1: cc.NavMeshAgent, arg2: number) +--- +---Move agent to a destination +---\param destination The position in world coordinate system. +---\param callback Use this function can catch movement state. ---@overload fun(self: cc.NavMeshAgent, destination: cc.Vec3) function NavMeshAgent:move(destination, callback) end diff --git a/addons/cclua/cocos2d/library/cc/NavMeshAgent/NavMeshAgentSyncFlag.lua b/addons/cclua/cocos2d/library/cc/NavMeshAgent/NavMeshAgentSyncFlag.lua index ff9bd453..a46f8bbb 100644 --- a/addons/cclua/cocos2d/library/cc/NavMeshAgent/NavMeshAgentSyncFlag.lua +++ b/addons/cclua/cocos2d/library/cc/NavMeshAgent/NavMeshAgentSyncFlag.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.NavMeshAgent.NavMeshAgentSyncFlag ---@type cc.NavMeshAgent.NavMeshAgentSyncFlag diff --git a/addons/cclua/cocos2d/library/cc/NavMeshAgentParam.lua b/addons/cclua/cocos2d/library/cc/NavMeshAgentParam.lua index 5911a889..8408aae2 100644 --- a/addons/cclua/cocos2d/library/cc/NavMeshAgentParam.lua +++ b/addons/cclua/cocos2d/library/cc/NavMeshAgentParam.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.NavMeshAgentParam ---\addtogroup 3d diff --git a/addons/cclua/cocos2d/library/cc/NavMeshObstacle.lua b/addons/cclua/cocos2d/library/cc/NavMeshObstacle.lua index 496ced50..f66f8efc 100644 --- a/addons/cclua/cocos2d/library/cc/NavMeshObstacle.lua +++ b/addons/cclua/cocos2d/library/cc/NavMeshObstacle.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.NavMeshObstacle ---\brief NavMeshObstacle: The code wrapping of dtTileCacheObstacle, use component mode. diff --git a/addons/cclua/cocos2d/library/cc/NavMeshObstacle/NavMeshObstacleSyncFlag.lua b/addons/cclua/cocos2d/library/cc/NavMeshObstacle/NavMeshObstacleSyncFlag.lua index 4d20ae93..b7b84ed2 100644 --- a/addons/cclua/cocos2d/library/cc/NavMeshObstacle/NavMeshObstacleSyncFlag.lua +++ b/addons/cclua/cocos2d/library/cc/NavMeshObstacle/NavMeshObstacleSyncFlag.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.NavMeshObstacle.NavMeshObstacleSyncFlag ---@type cc.NavMeshObstacle.NavMeshObstacleSyncFlag diff --git a/addons/cclua/cocos2d/library/cc/Node.lua b/addons/cclua/cocos2d/library/cc/Node.lua index 828268de..3d161f1f 100644 --- a/addons/cclua/cocos2d/library/cc/Node.lua +++ b/addons/cclua/cocos2d/library/cc/Node.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Node ---\class Node @@ -38,7 +39,7 @@ ---@field contentSize cc.Size Returns the untransformed size of the node.

\see `setContentSize(const Size&)`

\return The untransformed size of the node. ---@field description string Gets the description string. It makes debugging easier. \return A string \js NA \lua NA ---@field displayedColor any Query node's displayed color. \return A Color3B color value. ----@field displayedOpacity any Return the node's display opacity. The difference between opacity and displayedOpacity is: The displayedOpacity is what's the final rendering opacity of node. \return A GLubyte value. +---@field displayedOpacity integer Return the node's display opacity. The difference between opacity and displayedOpacity is: The displayedOpacity is what's the final rendering opacity of node. \return A GLubyte value. ---@field eventDispatcher cc.EventDispatcher Get the event dispatcher of scene.

\return The event dispatcher of scene. ---@field globalZOrder number Returns the Node's Global Z Order.

\see `setGlobalZOrder(int)`

\return The node's global Z order ---@field height number @@ -53,7 +54,7 @@ ---@field onEnterTransitionDidFinishCallback fun() Get the callback of event EnterTransitionDidFinish. \return std::function ---@field onExitCallback fun() Get the callback of event onExit. \return A std::function. ---@field onExitTransitionDidStartCallback fun() Get the callback of event ExitTransitionDidStart. \return std::function ----@field opacity any Return the node's opacity. \return A GLubyte value. +---@field opacity integer Return the node's opacity. \return A GLubyte value. ---@field opacityModifyRGB boolean If node opacity will modify the RGB color value, then you should override this method and return true. \return A boolean value, true indicates that opacity will modify color; false otherwise. ---@field parent cc.Node Returns a pointer to the parent node.

\see `setParent(Node*)`

\returns A pointer to the parent node. ---@field parentToNodeAffineTransform cc.AffineTransform @@ -102,8 +103,33 @@ function Node.__index() end --- ---\param child A child node. ---@param child cc.Node +--- +---Adds a child to the container with a local z-order. +--- +---If the child is added to a 'running' node, then 'onEnter' and 'onEnterTransitionDidFinish' will be called immediately. +--- +---\param child A child node. +---\param localZOrder Z order for drawing priority. Please refer to `setLocalZOrder(int)`. ---@overload fun(self: cc.Node, child: cc.Node, localZOrder: integer) +--- +---Adds a child to the container with z order and tag. +--- +---If the child is added to a 'running' node, then 'onEnter' and 'onEnterTransitionDidFinish' will be called immediately. +--- +---\param child A child node. +---\param localZOrder Z order for drawing priority. Please refer to `setLocalZOrder(int)`. +---\param tag An integer to identify the node easily. Please refer to `setTag(int)`. +--- +---Please use `addChild(Node* child, int localZOrder, const std::string &name)` instead. ---@overload fun(self: cc.Node, child: cc.Node, localZOrder: integer, tag: integer) +--- +---Adds a child to the container with z order and tag +--- +---If the child is added to a 'running' node, then 'onEnter' and 'onEnterTransitionDidFinish' will be called immediately. +--- +---\param child A child node. +---\param localZOrder Z order for drawing priority. Please refer to `setLocalZOrder(int)`. +---\param name A string to identify the node easily. Please refer to `setName(int)`. ---@overload fun(self: cc.Node, child: cc.Node, localZOrder: integer, name: string) function Node:addChild(child) end @@ -124,6 +150,11 @@ function Node:cleanup() end ---\return A point in node (local) space coordinates. ---@param worldPoint cc.Vec2 ---@return cc.Vec2 +--- +---Converts a Vec2 to node (local) space coordinates. The result is in Points. +--- +---\param worldPoint A given coordinate. +---\return A point in node (local) space coordinates. ---@overload fun(self: cc.Node, worldPoint: cc.Vec2): cc.Vec2 function Node:convertToNodeSpace(worldPoint) end @@ -134,6 +165,12 @@ function Node:convertToNodeSpace(worldPoint) end ---\return A point in node (local) space coordinates, anchor relative. ---@param worldPoint cc.Vec2 ---@return cc.Vec2 +--- +---Converts a Vec2 to node (local) space coordinates. The result is in Points. +---treating the returned/received node point as anchor relative. +--- +---\param worldPoint A given coordinate. +---\return A point in node (local) space coordinates, anchor relative. ---@overload fun(self: cc.Node, worldPoint: cc.Vec2): cc.Vec2 function Node:convertToNodeSpaceAR(worldPoint) end @@ -143,6 +180,11 @@ function Node:convertToNodeSpaceAR(worldPoint) end ---\return A point in world space coordinates. ---@param nodePoint cc.Vec2 ---@return cc.Vec2 +--- +---Converts a Vec2 to world space coordinates. The result is in Points. +--- +---\param nodePoint A given coordinate. +---\return A point in world space coordinates. ---@overload fun(self: cc.Node, nodePoint: cc.Vec2): cc.Vec2 function Node:convertToWorldSpace(nodePoint) end @@ -153,6 +195,12 @@ function Node:convertToWorldSpace(nodePoint) end ---\return A point in world space coordinates, anchor relative. ---@param nodePoint cc.Vec2 ---@return cc.Vec2 +--- +---Converts a local Vec2 to world space coordinates.The result is in Points. +---treating the returned/received node point as anchor relative. +--- +---\param nodePoint A given coordinate. +---\return A point in world space coordinates, anchor relative. ---@overload fun(self: cc.Node, nodePoint: cc.Vec2): cc.Vec2 function Node:convertToWorldSpaceAR(nodePoint) end @@ -191,7 +239,7 @@ function Node.create() end ---\param flags Renderer flag. ---@param renderer cc.Renderer ---@param transform cc.Mat4 ----@param flags any +---@param flags integer ---@overload fun(self: cc.Node) function Node:draw(renderer, transform, flags) end @@ -366,7 +414,7 @@ function Node:getDisplayedColor() end ---The difference between opacity and displayedOpacity is: ---The displayedOpacity is what's the final rendering opacity of node. ---\return A GLubyte value. ----@return any +---@return integer function Node:getDisplayedOpacity() end ---Get the event dispatcher of scene. @@ -403,6 +451,15 @@ function Node:getLocalZOrder() end function Node:getName() end ---@return cc.AffineTransform +--- +---Returns the affine transform matrix that transform the node's (local) space coordinates into the parent's space coordinates. +---The matrix is in Pixels. +--- +---Note: If ancestor is not a valid ancestor of the node, the API would return the same value as @see getNodeToWorldAffineTransform +--- +---\param ancestor The parent's node pointer. +---\since v3.7 +---\return The affine transformation matrix. ---@overload fun(self: cc.Node, ancestor: cc.Node): cc.AffineTransform function Node:getNodeToParentAffineTransform() end @@ -411,6 +468,14 @@ function Node:getNodeToParentAffineTransform() end --- ---\return The transformation matrix. ---@return cc.Mat4 +--- +---Returns the matrix that transform the node's (local) space coordinates into the parent's space coordinates. +---The matrix is in Pixels. +---Note: If ancestor is not a valid ancestor of the node, the API would return the same value as @see getNodeToWorldTransform +--- +---\param ancestor The parent's node pointer. +---\since v3.7 +---\return The transformation matrix. ---@overload fun(self: cc.Node, ancestor: cc.Node): cc.Mat4 function Node:getNodeToParentTransform() end @@ -474,7 +539,7 @@ function Node:getOnExitTransitionDidStartCallback() end ---Return the node's opacity. ---\return A GLubyte value. ----@return any +---@return integer function Node:getOpacity() end ---Returns a pointer to the parent node. @@ -507,6 +572,14 @@ function Node:getPhysicsBody() end ---In js and lua return value is table which contains x,y. ---\endcode ---@return cc.Vec2 +--- +---Gets position in a more efficient way, returns two number instead of a Vec2 object. +--- +---\see `setPosition(float, float)` +---In js,out value not return. +--- +---\param x To receive x coordinate for position. +---\param y To receive y coordinate for position. ---@overload fun(self: cc.Node, x: olua.float, y: olua.float) function Node:getPosition() end @@ -797,6 +870,11 @@ function Node:removeAllComponents() end ---\param cleanup True if all running actions and callbacks on the child node will be cleanup, false otherwise. ---@param child cc.Node ---@param cleanup boolean +--- +---Removes a child from the container. It will also cleanup all running actions depending on the cleanup parameter. +--- +---\param child The child node which will be removed. +---\param cleanup True if all running actions and callbacks on the child node will be cleanup, false otherwise. ---@overload fun(self: cc.Node, child: cc.Node) function Node:removeChild(child, cleanup) end @@ -806,6 +884,11 @@ function Node:removeChild(child, cleanup) end ---\param cleanup True if all running actions and callbacks on the child node will be cleanup, false otherwise. ---@param name string ---@param cleanup boolean +--- +---Removes a child from the container by tag value. It will also cleanup all running actions depending on the cleanup parameter. +--- +---\param name A string that identifies a child node. +---\param cleanup True if all running actions and callbacks on the child node will be cleanup, false otherwise. ---@overload fun(self: cc.Node, name: string) function Node:removeChildByName(name, cleanup) end @@ -817,6 +900,13 @@ function Node:removeChildByName(name, cleanup) end ---Please use `removeChildByName` instead. ---@param tag integer ---@param cleanup boolean +--- +---Removes a child from the container by tag value. It will also cleanup all running actions depending on the cleanup parameter. +--- +---\param tag An integer number that identifies a child node. +---\param cleanup True if all running actions and callbacks on the child node will be cleanup, false otherwise. +--- +---Please use `removeChildByName` instead. ---@overload fun(self: cc.Node, tag: integer) function Node:removeChildByTag(tag, cleanup) end @@ -826,6 +916,11 @@ function Node:removeChildByTag(tag, cleanup) end ---\return True if removed success. ---@param name string ---@return boolean +--- +---Removes a component by its pointer. +--- +---\param component A given component. +---\return True if removed success. ---@overload fun(self: cc.Node, component: cc.Component): boolean function Node:removeComponent(name) end @@ -871,7 +966,23 @@ function Node:runAction(action) end ---\lua NA ---@param callback fun(arg1: number) ---@param key string +--- +---Schedules a lambda function. The scheduled lambda function will be called every "interval" seconds +--- +---\param callback The lambda function to be scheduled +---\param interval Callback interval time in seconds. 0 means every frame, +---\param key The key of the lambda function. To be used if you want to unschedule it +---\lua NA ---@overload fun(self: cc.Node, callback: fun(arg1: number), interval: number, key: string) +--- +---Schedules a lambda function. +--- +---\param callback The lambda function to be schedule. +---\param interval Tick interval in seconds. 0 means tick every frame. +---\param repeat The selector will be executed (repeat + 1) times, you can use CC_REPEAT_FOREVER for tick infinitely. +---\param delay The amount of time that the first tick will wait before execution. +---\param key The key of the lambda function. To be used if you want to unschedule it. +---\lua NA ---@overload fun(self: cc.Node, callback: fun(arg1: number), interval: number, repeat_: integer, delay: number, key: string) function Node:schedule(callback, key) end @@ -957,6 +1068,11 @@ function Node.setAnchorY(obj, value) end ---\param applyChildren A boolean value to determine whether the mask bit should apply to its children or not. ---@param mask integer ---@param applyChildren boolean +--- +---Modify the camera mask for current node. +---If applyChildren is true, then it will modify the camera mask of its children recursively. +---\param mask A unsigned short bit for mask. +---\param applyChildren A boolean value to determine whether the mask bit should apply to its children or not. ---@overload fun(self: cc.Node, mask: integer) function Node:setCameraMask(mask, applyChildren) end @@ -1077,7 +1193,7 @@ function Node:setOnExitTransitionDidStartCallback(callback) end ---Change node opacity. ---\param opacity A GLubyte opacity value. ----@param opacity any +---@param opacity integer function Node:setOpacity(opacity) end ---If you want the opacity affect the color property, then set to true. @@ -1105,6 +1221,21 @@ function Node:setPhysicsBody(physicsBody) end --- ---\param position The position (x,y) of the node in OpenGL coordinates. ---@param position cc.Vec2 +--- +---Sets the position (x,y) of the node in its parent's coordinate system. +--- +---Passing two numbers (x,y) is much efficient than passing Vec2 object. +---This method is bound to Lua and JavaScript. +---Passing a number is 10 times faster than passing a object from Lua to c++. +--- +---\code +---sample code in Lua +---local pos = node::getPosition() -- returns Vec2 object from C++. +---node:setPosition(x, y) -- pass x, y coordinate to C++. +---\endcode +--- +---\param x X coordinate for position. +---\param y Y coordinate for position. ---@overload fun(self: cc.Node, x: number, y: number) function Node:setPosition(position) end @@ -1225,6 +1356,15 @@ function Node:setRotationSkewY(rotationY) end --- ---\warning The physics body doesn't support this. ---@param scale number +--- +---Sets the scale (x,y) of the node. +--- +---It is a scaling factor that multiplies the width and height of the node and its children. +--- +---\param scaleX The scale factor on X axis. +---\param scaleY The scale factor on Y axis. +--- +---\warning The physics body doesn't support this. ---@overload fun(self: cc.Node, scaleX: number, scaleY: number) function Node:setScale(scale) end @@ -1397,7 +1537,7 @@ function Node:updateDisplayedColor(parentColor) end ---Update the displayed opacity of node with it's parent opacity; ---\param parentOpacity The opacity of parent node. ----@param parentOpacity any +---@param parentOpacity integer function Node:updateDisplayedOpacity(parentOpacity) end ---!!! ONLY FOR INTERNAL USE @@ -1425,7 +1565,7 @@ function Node:updateTransform() end ---\param parentFlags Renderer flag. ---@param renderer cc.Renderer ---@param parentTransform cc.Mat4 ----@param parentFlags any +---@param parentFlags integer ---@overload fun(self: cc.Node) function Node:visit(renderer, parentTransform, parentFlags) end diff --git a/addons/cclua/cocos2d/library/cc/NodeGrid.lua b/addons/cclua/cocos2d/library/cc/NodeGrid.lua index 8255a477..f3fd2986 100644 --- a/addons/cclua/cocos2d/library/cc/NodeGrid.lua +++ b/addons/cclua/cocos2d/library/cc/NodeGrid.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.NodeGrid ---\brief Base class for Grid Node. diff --git a/addons/cclua/cocos2d/library/cc/OffMeshLinkData.lua b/addons/cclua/cocos2d/library/cc/OffMeshLinkData.lua index 7c849dca..b7ffcf78 100644 --- a/addons/cclua/cocos2d/library/cc/OffMeshLinkData.lua +++ b/addons/cclua/cocos2d/library/cc/OffMeshLinkData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.OffMeshLinkData --- diff --git a/addons/cclua/cocos2d/library/cc/OrbitCamera.lua b/addons/cclua/cocos2d/library/cc/OrbitCamera.lua index 7a70231e..17ef0887 100644 --- a/addons/cclua/cocos2d/library/cc/OrbitCamera.lua +++ b/addons/cclua/cocos2d/library/cc/OrbitCamera.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.OrbitCamera ---\class OrbitCamera diff --git a/addons/cclua/cocos2d/library/cc/PageTurn3D.lua b/addons/cclua/cocos2d/library/cc/PageTurn3D.lua index 440be40e..7e3ed4f4 100644 --- a/addons/cclua/cocos2d/library/cc/PageTurn3D.lua +++ b/addons/cclua/cocos2d/library/cc/PageTurn3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PageTurn3D ---\brief This action simulates a page turn from the bottom right hand corner of the screen. diff --git a/addons/cclua/cocos2d/library/cc/ParallaxNode.lua b/addons/cclua/cocos2d/library/cc/ParallaxNode.lua index 74e634e9..d9e2be21 100644 --- a/addons/cclua/cocos2d/library/cc/ParallaxNode.lua +++ b/addons/cclua/cocos2d/library/cc/ParallaxNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParallaxNode ---\class ParallaxNode @@ -19,7 +20,20 @@ local ParallaxNode = {} ---@param positionOffset cc.Vec2 ---@overload fun(self: cc.ParallaxNode, child: cc.Node, zOrder: integer, tag: integer) ---@overload fun(self: cc.ParallaxNode, child: cc.Node, zOrder: integer, name: string) +--- +---Adds a child to the container with z-order as 0. +--- +---If the child is added to a 'running' node, then 'onEnter' and 'onEnterTransitionDidFinish' will be called immediately. +--- +---\param child A child node. ---@overload fun(self: cc.ParallaxNode, child: cc.Node) +--- +---Adds a child to the container with a local z-order. +--- +---If the child is added to a 'running' node, then 'onEnter' and 'onEnterTransitionDidFinish' will be called immediately. +--- +---\param child A child node. +---\param localZOrder Z order for drawing priority. Please refer to `setLocalZOrder(int)`. ---@overload fun(self: cc.ParallaxNode, child: cc.Node, localZOrder: integer) function ParallaxNode:addChild(child, z, parallaxRatio, positionOffset) end diff --git a/addons/cclua/cocos2d/library/cc/ParticleBatchNode.lua b/addons/cclua/cocos2d/library/cc/ParticleBatchNode.lua index bb7de440..aac28664 100644 --- a/addons/cclua/cocos2d/library/cc/ParticleBatchNode.lua +++ b/addons/cclua/cocos2d/library/cc/ParticleBatchNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParticleBatchNode ---\class ParticleBatchNode @@ -36,6 +37,12 @@ function ParticleBatchNode:as(cls) end ---@param fileImage string ---@param capacity integer ---@return cc.ParticleBatchNode +--- +---Create the particle system with the name of a file on disk (for a list of supported formats look at the Texture2D class), a capacity of particles. +--- +---\param fileImage A given file name. +---\param capacity A capacity of particles. +---\return An autoreleased ParticleBatchNode object. ---@overload fun(fileImage: string): cc.ParticleBatchNode function ParticleBatchNode.create(fileImage, capacity) end @@ -48,6 +55,13 @@ function ParticleBatchNode.create(fileImage, capacity) end ---@param tex cc.Texture2D ---@param capacity integer ---@return cc.ParticleBatchNode +--- +---Create the particle system with Texture2D, a capacity of particles, which particle system to use. +--- +---\param tex A given texture. +---\param capacity A capacity of particles. +---\return An autoreleased ParticleBatchNode object. +---\js NA ---@overload fun(tex: cc.Texture2D): cc.ParticleBatchNode function ParticleBatchNode.createWithTexture(tex, capacity) end diff --git a/addons/cclua/cocos2d/library/cc/ParticleExplosion.lua b/addons/cclua/cocos2d/library/cc/ParticleExplosion.lua index ccdb2b8e..5b6766da 100644 --- a/addons/cclua/cocos2d/library/cc/ParticleExplosion.lua +++ b/addons/cclua/cocos2d/library/cc/ParticleExplosion.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParticleExplosion ---\class ParticleExplosion diff --git a/addons/cclua/cocos2d/library/cc/ParticleFire.lua b/addons/cclua/cocos2d/library/cc/ParticleFire.lua index f6664e3c..63d1fa04 100644 --- a/addons/cclua/cocos2d/library/cc/ParticleFire.lua +++ b/addons/cclua/cocos2d/library/cc/ParticleFire.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParticleFire ---\class ParticleFire diff --git a/addons/cclua/cocos2d/library/cc/ParticleFireworks.lua b/addons/cclua/cocos2d/library/cc/ParticleFireworks.lua index b48da308..d83e1c77 100644 --- a/addons/cclua/cocos2d/library/cc/ParticleFireworks.lua +++ b/addons/cclua/cocos2d/library/cc/ParticleFireworks.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParticleFireworks ---\class ParticleFireworks diff --git a/addons/cclua/cocos2d/library/cc/ParticleFlower.lua b/addons/cclua/cocos2d/library/cc/ParticleFlower.lua index b6400961..a0c7eb4a 100644 --- a/addons/cclua/cocos2d/library/cc/ParticleFlower.lua +++ b/addons/cclua/cocos2d/library/cc/ParticleFlower.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParticleFlower ---\class ParticleFlower diff --git a/addons/cclua/cocos2d/library/cc/ParticleGalaxy.lua b/addons/cclua/cocos2d/library/cc/ParticleGalaxy.lua index 1c064c6e..adca30cd 100644 --- a/addons/cclua/cocos2d/library/cc/ParticleGalaxy.lua +++ b/addons/cclua/cocos2d/library/cc/ParticleGalaxy.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParticleGalaxy ---\class ParticleGalaxy diff --git a/addons/cclua/cocos2d/library/cc/ParticleMeteor.lua b/addons/cclua/cocos2d/library/cc/ParticleMeteor.lua index d41b296e..52091ac8 100644 --- a/addons/cclua/cocos2d/library/cc/ParticleMeteor.lua +++ b/addons/cclua/cocos2d/library/cc/ParticleMeteor.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParticleMeteor ---\class ParticleMeteor diff --git a/addons/cclua/cocos2d/library/cc/ParticleRain.lua b/addons/cclua/cocos2d/library/cc/ParticleRain.lua index 108b25b3..bf262e7d 100644 --- a/addons/cclua/cocos2d/library/cc/ParticleRain.lua +++ b/addons/cclua/cocos2d/library/cc/ParticleRain.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParticleRain ---\class ParticleRain diff --git a/addons/cclua/cocos2d/library/cc/ParticleSmoke.lua b/addons/cclua/cocos2d/library/cc/ParticleSmoke.lua index 2e2ee3fd..314e9d61 100644 --- a/addons/cclua/cocos2d/library/cc/ParticleSmoke.lua +++ b/addons/cclua/cocos2d/library/cc/ParticleSmoke.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParticleSmoke ---\class ParticleSmoke diff --git a/addons/cclua/cocos2d/library/cc/ParticleSnow.lua b/addons/cclua/cocos2d/library/cc/ParticleSnow.lua index 60d661e2..c9fe2072 100644 --- a/addons/cclua/cocos2d/library/cc/ParticleSnow.lua +++ b/addons/cclua/cocos2d/library/cc/ParticleSnow.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParticleSnow ---\class ParticleSnow diff --git a/addons/cclua/cocos2d/library/cc/ParticleSpiral.lua b/addons/cclua/cocos2d/library/cc/ParticleSpiral.lua index 0c999f26..58865dc4 100644 --- a/addons/cclua/cocos2d/library/cc/ParticleSpiral.lua +++ b/addons/cclua/cocos2d/library/cc/ParticleSpiral.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParticleSpiral ---\class ParticleSpiral diff --git a/addons/cclua/cocos2d/library/cc/ParticleSun.lua b/addons/cclua/cocos2d/library/cc/ParticleSun.lua index 989569d4..b887f306 100644 --- a/addons/cclua/cocos2d/library/cc/ParticleSun.lua +++ b/addons/cclua/cocos2d/library/cc/ParticleSun.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParticleSun ---\class ParticleSun diff --git a/addons/cclua/cocos2d/library/cc/ParticleSystem.lua b/addons/cclua/cocos2d/library/cc/ParticleSystem.lua index 146bd067..af99af8f 100644 --- a/addons/cclua/cocos2d/library/cc/ParticleSystem.lua +++ b/addons/cclua/cocos2d/library/cc/ParticleSystem.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParticleSystem ---\class ParticleSystem @@ -384,6 +385,9 @@ function ParticleSystem:getTotalParticles() end ---\since v0.99.3 ---@param dictionary cc.ValueMap ---@return boolean +--- +---initializes a particle system from a NSDictionary and the path from where to load the png +---\since v2.1 ---@overload fun(self: cc.ParticleSystem, dictionary: cc.ValueMap, dirname: string): boolean function ParticleSystem:initWithDictionary(dictionary) end diff --git a/addons/cclua/cocos2d/library/cc/ParticleSystem/Mode.lua b/addons/cclua/cocos2d/library/cc/ParticleSystem/Mode.lua index 7641d948..936b5007 100644 --- a/addons/cclua/cocos2d/library/cc/ParticleSystem/Mode.lua +++ b/addons/cclua/cocos2d/library/cc/ParticleSystem/Mode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParticleSystem.Mode ---@type cc.ParticleSystem.Mode diff --git a/addons/cclua/cocos2d/library/cc/ParticleSystem/PositionType.lua b/addons/cclua/cocos2d/library/cc/ParticleSystem/PositionType.lua index 113228e0..6d5aa1f4 100644 --- a/addons/cclua/cocos2d/library/cc/ParticleSystem/PositionType.lua +++ b/addons/cclua/cocos2d/library/cc/ParticleSystem/PositionType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParticleSystem.PositionType ---@type cc.ParticleSystem.PositionType diff --git a/addons/cclua/cocos2d/library/cc/ParticleSystemQuad.lua b/addons/cclua/cocos2d/library/cc/ParticleSystemQuad.lua index 5ba51832..723c9952 100644 --- a/addons/cclua/cocos2d/library/cc/ParticleSystemQuad.lua +++ b/addons/cclua/cocos2d/library/cc/ParticleSystemQuad.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ParticleSystemQuad ---\class ParticleSystemQuad @@ -20,7 +21,18 @@ local ParticleSystemQuad = {} --- ---\return An autoreleased ParticleSystemQuad object. ---@return cc.ParticleSystemQuad +--- +---Creates an initializes a ParticleSystemQuad from a plist file. +---This plist files can be created manually or with Particle Designer. +--- +---\param filename Particle plist file name. +---\return An autoreleased ParticleSystemQuad object. ---@overload fun(filename: string): cc.ParticleSystemQuad +--- +---Creates a Particle Emitter with a dictionary. +--- +---\param dictionary Particle dictionary. +---\return An autoreleased ParticleSystemQuad object. ---@overload fun(dictionary: cc.ValueMap): cc.ParticleSystemQuad function ParticleSystemQuad.create() end diff --git a/addons/cclua/cocos2d/library/cc/Pass.lua b/addons/cclua/cocos2d/library/cc/Pass.lua index fdcf037d..42fb6ae5 100644 --- a/addons/cclua/cocos2d/library/cc/Pass.lua +++ b/addons/cclua/cocos2d/library/cc/Pass.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Pass --- diff --git a/addons/cclua/cocos2d/library/cc/PhysicsBody.lua b/addons/cclua/cocos2d/library/cc/PhysicsBody.lua index c33c28e6..fbc1779d 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsBody.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsBody.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsBody ---A body affect by physics. @@ -63,6 +64,11 @@ function PhysicsBody:addMoment(moment) end ---@param shape cc.PhysicsShape ---@param addMassAndMoment boolean ---@return cc.PhysicsShape +--- +---\brief Add a shape to body. +---\param shape The shape to be added. +---\param addMassAndMoment If this is true, the shape's mass and moment will be added to body. The default is true. +---\return This shape's pointer if added success or nullptr if failed. ---@overload fun(self: cc.PhysicsBody, shape: cc.PhysicsShape): cc.PhysicsShape function PhysicsBody:addShape(shape, addMassAndMoment) end @@ -72,6 +78,11 @@ function PhysicsBody:addShape(shape, addMassAndMoment) end ---\param offset A Vec2 object, it is the offset from the body's center of gravity in world coordinates. ---@param force cc.Vec2 ---@param offset cc.Vec2 +--- +---Applies a continuous force to body. +--- +---\param force The force is applies to this body. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in world coordinates. ---@overload fun(self: cc.PhysicsBody, force: cc.Vec2) function PhysicsBody:applyForce(force, offset) end @@ -81,6 +92,11 @@ function PhysicsBody:applyForce(force, offset) end ---\param offset A Vec2 object, it is the offset from the body's center of gravity in world coordinates. ---@param impulse cc.Vec2 ---@param offset cc.Vec2 +--- +---Applies a immediate force to body. +--- +---\param impulse The impulse is applies to this body. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in world coordinates. ---@overload fun(self: cc.PhysicsBody, impulse: cc.Vec2) function PhysicsBody:applyImpulse(impulse, offset) end @@ -96,7 +112,18 @@ function PhysicsBody:applyTorque(torque) end ---This default moment value is 200. ---\return An autoreleased PhysicsBody object pointer. ---@return cc.PhysicsBody +--- +---Create a body with mass and default moment. +--- +---\param mass This body's mass. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(mass: number): cc.PhysicsBody +--- +---Create a body with mass and moment. +--- +---\param mass This body's mass. +---\param moment This body's moment. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(mass: number, moment: number): cc.PhysicsBody function PhysicsBody.create() end @@ -110,7 +137,21 @@ function PhysicsBody.create() end ---@param material cc.PhysicsMaterial ---@param offset cc.Vec2 ---@return cc.PhysicsBody +--- +---Create a body contains a box shape. +--- +---\param size Size contains this box's width and height. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(size: cc.Size): cc.PhysicsBody +--- +---Create a body contains a box shape. +--- +---\param size Size contains this box's width and height. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(size: cc.Size, material: cc.PhysicsMaterial): cc.PhysicsBody function PhysicsBody.createBox(size, material, offset) end @@ -124,7 +165,21 @@ function PhysicsBody.createBox(size, material, offset) end ---@param material cc.PhysicsMaterial ---@param offset cc.Vec2 ---@return cc.PhysicsBody +--- +---Create a body contains a circle. +--- +---\param radius A float number, it is the circle's radius. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(radius: number): cc.PhysicsBody +--- +---Create a body contains a circle. +--- +---\param radius A float number, it is the circle's radius. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(radius: number, material: cc.PhysicsMaterial): cc.PhysicsBody function PhysicsBody.createCircle(radius, material, offset) end @@ -139,8 +194,29 @@ function PhysicsBody.createCircle(radius, material, offset) end ---@param border number ---@param offset cc.Vec2 ---@return cc.PhysicsBody +--- +---Create a body contains a EdgeBox shape. +---\param size Size contains this box's width and height. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(size: cc.Size): cc.PhysicsBody +--- +---Create a body contains a EdgeBox shape. +---\param size Size contains this box's width and height. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(size: cc.Size, material: cc.PhysicsMaterial): cc.PhysicsBody +--- +---Create a body contains a EdgeBox shape. +---\param size Size contains this box's width and height. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(size: cc.Size, material: cc.PhysicsMaterial, border: number): cc.PhysicsBody function PhysicsBody.createEdgeBox(size, material, border, offset) end @@ -156,7 +232,23 @@ function PhysicsBody.createEdgeBox(size, material, border, offset) end ---@param material cc.PhysicsMaterial ---@param border number ---@return cc.PhysicsBody +--- +---Create a body contains a EdgeChain shape. +--- +---\param points A Vec2 object pointer, it contains an array of points. +---\param count An integer number, contains the count of the points array. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(points: cc.Vec2, count: integer): cc.PhysicsBody +--- +---Create a body contains a EdgeChain shape. +--- +---\param points A Vec2 object pointer, it contains an array of points. +---\param count An integer number, contains the count of the points array. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(points: cc.Vec2, count: integer, material: cc.PhysicsMaterial): cc.PhysicsBody function PhysicsBody.createEdgeChain(points, count, material, border) end @@ -172,7 +264,23 @@ function PhysicsBody.createEdgeChain(points, count, material, border) end ---@param material cc.PhysicsMaterial ---@param border number ---@return cc.PhysicsBody +--- +---Create a body contains a EdgePolygon shape. +--- +---\param points Points is an array of Vec2 structs defining a convex hull with a clockwise winding. +---\param count An integer number, contains the count of the points array. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(points: cc.Vec2, count: integer): cc.PhysicsBody +--- +---Create a body contains a EdgePolygon shape. +--- +---\param points Points is an array of Vec2 structs defining a convex hull with a clockwise winding. +---\param count An integer number, contains the count of the points array. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(points: cc.Vec2, count: integer, material: cc.PhysicsMaterial): cc.PhysicsBody function PhysicsBody.createEdgePolygon(points, count, material, border) end @@ -188,7 +296,23 @@ function PhysicsBody.createEdgePolygon(points, count, material, border) end ---@param material cc.PhysicsMaterial ---@param border number ---@return cc.PhysicsBody +--- +---Create a body contains a EdgeSegment shape. +--- +---\param a It's the edge's begin position. +---\param b It's the edge's end position. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(a: cc.Vec2, b: cc.Vec2): cc.PhysicsBody +--- +---Create a body contains a EdgeSegment shape. +--- +---\param a It's the edge's begin position. +---\param b It's the edge's end position. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(a: cc.Vec2, b: cc.Vec2, material: cc.PhysicsMaterial): cc.PhysicsBody function PhysicsBody.createEdgeSegment(a, b, material, border) end @@ -204,7 +328,23 @@ function PhysicsBody.createEdgeSegment(a, b, material, border) end ---@param material cc.PhysicsMaterial ---@param offset cc.Vec2 ---@return cc.PhysicsBody +--- +---\brief Create a body contains a polygon shape. +--- +---\param points Points is an array of Vec2 structs defining a convex hull with a clockwise winding. +---\param count An integer number, contains the count of the points array. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(points: cc.Vec2, count: integer): cc.PhysicsBody +--- +---\brief Create a body contains a polygon shape. +--- +---\param points Points is an array of Vec2 structs defining a convex hull with a clockwise winding. +---\param count An integer number, contains the count of the points array. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsBody object pointer. ---@overload fun(points: cc.Vec2, count: integer, material: cc.PhysicsMaterial): cc.PhysicsBody function PhysicsBody.createPolygon(points, count, material, offset) end @@ -353,6 +493,10 @@ function PhysicsBody:local2World(point) end --- ---\param reduceMassAndMoment If this is true, the body mass and moment will be reduced by shape. The default is true. ---@param reduceMassAndMoment boolean +--- +---Remove all shapes. +--- +---\param reduceMassAndMoment If this is true, the body mass and moment will be reduced by shape. The default is true. ---@overload fun(self: cc.PhysicsBody) function PhysicsBody:removeAllShapes(reduceMassAndMoment) end @@ -364,8 +508,20 @@ function PhysicsBody:removeFromWorld() end ---\param reduceMassAndMoment If this is true, the body mass and moment will be reduced by shape. The default is true. ---@param shape cc.PhysicsShape ---@param reduceMassAndMoment boolean +--- +---\brief Remove a shape from body. +---\param shape Shape the shape to be removed. +---\param reduceMassAndMoment If this is true, the body mass and moment will be reduced by shape. The default is true. ---@overload fun(self: cc.PhysicsBody, shape: cc.PhysicsShape) +--- +---\brief Remove a shape from body. +---\param tag The tag of the shape to be removed. +---\param reduceMassAndMoment If this is true, the body mass and moment will be reduced by shape. The default is true. ---@overload fun(self: cc.PhysicsBody, tag: integer, reduceMassAndMoment: boolean) +--- +---\brief Remove a shape from body. +---\param tag The tag of the shape to be removed. +---\param reduceMassAndMoment If this is true, the body mass and moment will be reduced by shape. The default is true. ---@overload fun(self: cc.PhysicsBody, tag: integer) function PhysicsBody:removeShape(shape, reduceMassAndMoment) end diff --git a/addons/cclua/cocos2d/library/cc/PhysicsContact.lua b/addons/cclua/cocos2d/library/cc/PhysicsContact.lua index 8d20a8d6..7f3feba2 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsContact.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsContact.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsContact ---\brief Contact information. diff --git a/addons/cclua/cocos2d/library/cc/PhysicsContact/EventCode.lua b/addons/cclua/cocos2d/library/cc/PhysicsContact/EventCode.lua index ef3893bf..a94dc3a7 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsContact/EventCode.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsContact/EventCode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsContact.EventCode ---@type cc.PhysicsContact.EventCode diff --git a/addons/cclua/cocos2d/library/cc/PhysicsContactPostSolve.lua b/addons/cclua/cocos2d/library/cc/PhysicsContactPostSolve.lua index 1cf67564..c41d560c 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsContactPostSolve.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsContactPostSolve.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsContactPostSolve ---\brief Postsolve value generated when onContactPostSolve called. diff --git a/addons/cclua/cocos2d/library/cc/PhysicsContactPreSolve.lua b/addons/cclua/cocos2d/library/cc/PhysicsContactPreSolve.lua index b1260b9c..879c9389 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsContactPreSolve.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsContactPreSolve.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsContactPreSolve ---\brief Presolve value generated when onContactPreSolve called. diff --git a/addons/cclua/cocos2d/library/cc/PhysicsJoint.lua b/addons/cclua/cocos2d/library/cc/PhysicsJoint.lua index 280fc9e6..b71caa5d 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsJoint.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsJoint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsJoint ---\brief An PhysicsJoint object connects two physics bodies together. diff --git a/addons/cclua/cocos2d/library/cc/PhysicsJointDistance.lua b/addons/cclua/cocos2d/library/cc/PhysicsJointDistance.lua index a2502eb0..f485019c 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsJointDistance.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsJointDistance.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsJointDistance ---Set the fixed distance with two bodies diff --git a/addons/cclua/cocos2d/library/cc/PhysicsJointFixed.lua b/addons/cclua/cocos2d/library/cc/PhysicsJointFixed.lua index ec684b53..c48022e8 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsJointFixed.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsJointFixed.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsJointFixed ---\brief A fixed joint fuses the two bodies together at a reference point. Fixed joints are useful for creating complex shapes that can be broken apart later. diff --git a/addons/cclua/cocos2d/library/cc/PhysicsJointGear.lua b/addons/cclua/cocos2d/library/cc/PhysicsJointGear.lua index 6b656833..04809327 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsJointGear.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsJointGear.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsJointGear ---Keeps the angular velocity ratio of a pair of bodies constant. diff --git a/addons/cclua/cocos2d/library/cc/PhysicsJointGroove.lua b/addons/cclua/cocos2d/library/cc/PhysicsJointGroove.lua index fb672d7c..3cda21d8 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsJointGroove.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsJointGroove.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsJointGroove ---Attach body a to a line, and attach body b to a dot. diff --git a/addons/cclua/cocos2d/library/cc/PhysicsJointLimit.lua b/addons/cclua/cocos2d/library/cc/PhysicsJointLimit.lua index 46f5dc3d..02c79ae2 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsJointLimit.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsJointLimit.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsJointLimit ---\brief A limit joint imposes a maximum distance between the two bodies, as if they were connected by a rope. @@ -20,6 +21,16 @@ local PhysicsJointLimit = {} ---@param anchr1 cc.Vec2 ---@param anchr2 cc.Vec2 ---@return cc.PhysicsJointLimit +--- +---Create a limit joint. +--- +---\param a A is the body to connect. +---\param b B is the body to connect. +---\param anchr1 Anchr1 is the anchor point on body a. +---\param anchr2 Anchr2 is the anchor point on body b. +---\param min Define the allowed min distance of the anchor points. +---\param max Define the allowed max distance of the anchor points. +---\return A object pointer. ---@overload fun(a: cc.PhysicsBody, b: cc.PhysicsBody, anchr1: cc.Vec2, anchr2: cc.Vec2, min: number, max: number): cc.PhysicsJointLimit function PhysicsJointLimit.construct(a, b, anchr1, anchr2) end diff --git a/addons/cclua/cocos2d/library/cc/PhysicsJointMotor.lua b/addons/cclua/cocos2d/library/cc/PhysicsJointMotor.lua index f247067f..7acdf4e1 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsJointMotor.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsJointMotor.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsJointMotor ---Keeps the relative angular velocity of a pair of bodies constant. diff --git a/addons/cclua/cocos2d/library/cc/PhysicsJointPin.lua b/addons/cclua/cocos2d/library/cc/PhysicsJointPin.lua index b158cc52..400d3586 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsJointPin.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsJointPin.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsJointPin ---\brief A pin joint allows the two bodies to independently rotate around the anchor point as if pinned together. @@ -14,6 +15,14 @@ local PhysicsJointPin = {} ---@param b cc.PhysicsBody ---@param pivot cc.Vec2 ---@return cc.PhysicsJointPin +--- +---Create a pin joint. +--- +---\param a A is the body to connect. +---\param b B is the body to connect. +---\param anchr1 Anchr1 is the anchor point on body a. +---\param anchr2 Anchr2 is the anchor point on body b. +---\return A object pointer. ---@overload fun(a: cc.PhysicsBody, b: cc.PhysicsBody, anchr1: cc.Vec2, anchr2: cc.Vec2): cc.PhysicsJointPin function PhysicsJointPin.construct(a, b, pivot) end diff --git a/addons/cclua/cocos2d/library/cc/PhysicsJointRatchet.lua b/addons/cclua/cocos2d/library/cc/PhysicsJointRatchet.lua index fe095a19..6c26c5cb 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsJointRatchet.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsJointRatchet.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsJointRatchet ---Works like a socket wrench. diff --git a/addons/cclua/cocos2d/library/cc/PhysicsJointRotaryLimit.lua b/addons/cclua/cocos2d/library/cc/PhysicsJointRotaryLimit.lua index 476348b0..5e2375dd 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsJointRotaryLimit.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsJointRotaryLimit.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsJointRotaryLimit ---Likes a limit joint, but works with rotary. @@ -18,6 +19,12 @@ local PhysicsJointRotaryLimit = {} ---@param min number ---@param max number ---@return cc.PhysicsJointRotaryLimit +--- +---Create a limit rotary joint. +--- +---\param a A is the body to connect. +---\param b B is the body to connect. +---\return A object pointer. ---@overload fun(a: cc.PhysicsBody, b: cc.PhysicsBody): cc.PhysicsJointRotaryLimit function PhysicsJointRotaryLimit.construct(a, b, min, max) end diff --git a/addons/cclua/cocos2d/library/cc/PhysicsJointRotarySpring.lua b/addons/cclua/cocos2d/library/cc/PhysicsJointRotarySpring.lua index 73eb7b28..ea2271a9 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsJointRotarySpring.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsJointRotarySpring.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsJointRotarySpring ---Likes a spring joint, but works with rotary. diff --git a/addons/cclua/cocos2d/library/cc/PhysicsJointSpring.lua b/addons/cclua/cocos2d/library/cc/PhysicsJointSpring.lua index 6eda5276..b6c9a8a7 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsJointSpring.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsJointSpring.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsJointSpring ---Connecting two physics bodies together with a spring. diff --git a/addons/cclua/cocos2d/library/cc/PhysicsMaterial.lua b/addons/cclua/cocos2d/library/cc/PhysicsMaterial.lua index 8b002799..c4fbff65 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsMaterial.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsMaterial.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsMaterial --- diff --git a/addons/cclua/cocos2d/library/cc/PhysicsQueryPointCallbackFunc.lua b/addons/cclua/cocos2d/library/cc/PhysicsQueryPointCallbackFunc.lua index 3cbf9368..ee004923 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsQueryPointCallbackFunc.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsQueryPointCallbackFunc.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsQueryPointCallbackFunc --- diff --git a/addons/cclua/cocos2d/library/cc/PhysicsQueryRectCallbackFunc.lua b/addons/cclua/cocos2d/library/cc/PhysicsQueryRectCallbackFunc.lua index 0486fcd4..f1256644 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsQueryRectCallbackFunc.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsQueryRectCallbackFunc.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsQueryRectCallbackFunc --- diff --git a/addons/cclua/cocos2d/library/cc/PhysicsRayCastCallbackFunc.lua b/addons/cclua/cocos2d/library/cc/PhysicsRayCastCallbackFunc.lua index d37683f4..8cfbf851 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsRayCastCallbackFunc.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsRayCastCallbackFunc.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsRayCastCallbackFunc --- diff --git a/addons/cclua/cocos2d/library/cc/PhysicsRayCastInfo.lua b/addons/cclua/cocos2d/library/cc/PhysicsRayCastInfo.lua index 193c8ffa..92e4172f 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsRayCastInfo.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsRayCastInfo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsRayCastInfo --- diff --git a/addons/cclua/cocos2d/library/cc/PhysicsShape.lua b/addons/cclua/cocos2d/library/cc/PhysicsShape.lua index b696632a..6820c0dc 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsShape.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsShape.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsShape ---\brief A shape for body. You do not create PhysicsWorld objects directly, instead, you can view PhysicsBody to see how to create it. @@ -155,6 +156,12 @@ function PhysicsShape:isSensor() end ---@param points cc.Vec2 ---@param count integer ---@param center cc.Vec2 +--- +---Move the points to the center. +--- +---\param points A Vec2 object pointer. +---\param count An integer number. +---\param center A Vec2 object, default value is Vec2(0,0). ---@overload fun(points: cc.Vec2, count: integer) function PhysicsShape.recenterPoints(points, count, center) end diff --git a/addons/cclua/cocos2d/library/cc/PhysicsShape/Type.lua b/addons/cclua/cocos2d/library/cc/PhysicsShape/Type.lua index ddff34d7..b91c5c61 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsShape/Type.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsShape/Type.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsShape.Type ---@type cc.PhysicsShape.Type diff --git a/addons/cclua/cocos2d/library/cc/PhysicsShapeBox.lua b/addons/cclua/cocos2d/library/cc/PhysicsShapeBox.lua index 20486dce..ab0f031f 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsShapeBox.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsShapeBox.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsShapeBox ---A box shape. @@ -16,8 +17,29 @@ local PhysicsShapeBox = {} ---@param offset cc.Vec2 ---@param radius number ---@return cc.PhysicsShapeBox +--- +---Creates a PhysicsShapeBox with specified value. +--- +---\param size Size contains this box's width and height. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsShapeBox object pointer. ---@overload fun(size: cc.Size): cc.PhysicsShapeBox +--- +---Creates a PhysicsShapeBox with specified value. +--- +---\param size Size contains this box's width and height. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsShapeBox object pointer. ---@overload fun(size: cc.Size, material: cc.PhysicsMaterial): cc.PhysicsShapeBox +--- +---Creates a PhysicsShapeBox with specified value. +--- +---\param size Size contains this box's width and height. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsShapeBox object pointer. ---@overload fun(size: cc.Size, material: cc.PhysicsMaterial, offset: cc.Vec2): cc.PhysicsShapeBox function PhysicsShapeBox.create(size, material, offset, radius) end diff --git a/addons/cclua/cocos2d/library/cc/PhysicsShapeCircle.lua b/addons/cclua/cocos2d/library/cc/PhysicsShapeCircle.lua index d8663a7f..eb5a56dc 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsShapeCircle.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsShapeCircle.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsShapeCircle ---A circle shape. @@ -23,6 +24,13 @@ function PhysicsShapeCircle.calculateArea(radius) end ---@param radius number ---@param offset cc.Vec2 ---@return number +--- +---Calculate the moment of a circle with specified value. +--- +---\param mass A float number +---\param radius A float number +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return A float number ---@overload fun(mass: number, radius: number): number function PhysicsShapeCircle.calculateMoment(mass, radius, offset) end @@ -36,7 +44,21 @@ function PhysicsShapeCircle.calculateMoment(mass, radius, offset) end ---@param material cc.PhysicsMaterial ---@param offset cc.Vec2 ---@return cc.PhysicsShapeCircle +--- +---Creates a PhysicsShapeCircle with specified value. +--- +---\param radius A float number, it is the circle's radius. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsShapeCircle object pointer. ---@overload fun(radius: number): cc.PhysicsShapeCircle +--- +---Creates a PhysicsShapeCircle with specified value. +--- +---\param radius A float number, it is the circle's radius. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsShapeCircle object pointer. ---@overload fun(radius: number, material: cc.PhysicsMaterial): cc.PhysicsShapeCircle function PhysicsShapeCircle.create(radius, material, offset) end diff --git a/addons/cclua/cocos2d/library/cc/PhysicsShapeEdgeBox.lua b/addons/cclua/cocos2d/library/cc/PhysicsShapeEdgeBox.lua index 3a23a11a..c2665f4f 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsShapeEdgeBox.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsShapeEdgeBox.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsShapeEdgeBox ---An edge box shape. @@ -16,8 +17,32 @@ local PhysicsShapeEdgeBox = {} ---@param border number ---@param offset cc.Vec2 ---@return cc.PhysicsShapeEdgeBox +--- +---Creates a PhysicsShapeEdgeBox with specified value. +--- +---\param size Size contains this box's width and height. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsShapeEdgeBox object pointer. ---@overload fun(size: cc.Size): cc.PhysicsShapeEdgeBox +--- +---Creates a PhysicsShapeEdgeBox with specified value. +--- +---\param size Size contains this box's width and height. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsShapeEdgeBox object pointer. ---@overload fun(size: cc.Size, material: cc.PhysicsMaterial): cc.PhysicsShapeEdgeBox +--- +---Creates a PhysicsShapeEdgeBox with specified value. +--- +---\param size Size contains this box's width and height. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsShapeEdgeBox object pointer. ---@overload fun(size: cc.Size, material: cc.PhysicsMaterial, border: number): cc.PhysicsShapeEdgeBox function PhysicsShapeEdgeBox.create(size, material, border, offset) end diff --git a/addons/cclua/cocos2d/library/cc/PhysicsShapeEdgeChain.lua b/addons/cclua/cocos2d/library/cc/PhysicsShapeEdgeChain.lua index dd72bbfd..d0532885 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsShapeEdgeChain.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsShapeEdgeChain.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsShapeEdgeChain ---A chain shape. @@ -17,7 +18,23 @@ local PhysicsShapeEdgeChain = {} ---@param material cc.PhysicsMaterial ---@param border number ---@return cc.PhysicsShapeEdgeChain +--- +---Creates a PhysicsShapeEdgeChain with specified value. +--- +---\param points A Vec2 object pointer, it contains an array of points. +---\param count An integer number, contains the count of the points array. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\return An autoreleased PhysicsShapeEdgeChain object pointer. ---@overload fun(points: cc.Vec2, count: integer): cc.PhysicsShapeEdgeChain +--- +---Creates a PhysicsShapeEdgeChain with specified value. +--- +---\param points A Vec2 object pointer, it contains an array of points. +---\param count An integer number, contains the count of the points array. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\return An autoreleased PhysicsShapeEdgeChain object pointer. ---@overload fun(points: cc.Vec2, count: integer, material: cc.PhysicsMaterial): cc.PhysicsShapeEdgeChain function PhysicsShapeEdgeChain.create(points, count, material, border) end diff --git a/addons/cclua/cocos2d/library/cc/PhysicsShapeEdgePolygon.lua b/addons/cclua/cocos2d/library/cc/PhysicsShapeEdgePolygon.lua index 635bfaa5..a3126bd5 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsShapeEdgePolygon.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsShapeEdgePolygon.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsShapeEdgePolygon ---An edge polygon shape. @@ -17,7 +18,23 @@ local PhysicsShapeEdgePolygon = {} ---@param material cc.PhysicsMaterial ---@param border number ---@return cc.PhysicsShapeEdgePolygon +--- +---Creates a PhysicsShapeEdgePolygon with specified value. +--- +---\param points A Vec2 object pointer, it contains an array of points. +---\param count An integer number, contains the count of the points array. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\return An autoreleased PhysicsShapeEdgePolygon object pointer. ---@overload fun(points: cc.Vec2, count: integer): cc.PhysicsShapeEdgePolygon +--- +---Creates a PhysicsShapeEdgePolygon with specified value. +--- +---\param points A Vec2 object pointer, it contains an array of points. +---\param count An integer number, contains the count of the points array. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\return An autoreleased PhysicsShapeEdgePolygon object pointer. ---@overload fun(points: cc.Vec2, count: integer, material: cc.PhysicsMaterial): cc.PhysicsShapeEdgePolygon function PhysicsShapeEdgePolygon.create(points, count, material, border) end diff --git a/addons/cclua/cocos2d/library/cc/PhysicsShapeEdgeSegment.lua b/addons/cclua/cocos2d/library/cc/PhysicsShapeEdgeSegment.lua index 8d2805c9..a3687e0f 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsShapeEdgeSegment.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsShapeEdgeSegment.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsShapeEdgeSegment ---A segment shape. @@ -18,7 +19,23 @@ local PhysicsShapeEdgeSegment = {} ---@param material cc.PhysicsMaterial ---@param border number ---@return cc.PhysicsShapeEdgeSegment +--- +---Creates a PhysicsShapeEdgeSegment with specified value. +--- +---\param a It's the edge's begin position. +---\param b It's the edge's end position. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\return An autoreleased PhysicsShapeEdgeSegment object pointer. ---@overload fun(a: cc.Vec2, b: cc.Vec2): cc.PhysicsShapeEdgeSegment +--- +---Creates a PhysicsShapeEdgeSegment with specified value. +--- +---\param a It's the edge's begin position. +---\param b It's the edge's end position. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param border It's a edge's border width. +---\return An autoreleased PhysicsShapeEdgeSegment object pointer. ---@overload fun(a: cc.Vec2, b: cc.Vec2, material: cc.PhysicsMaterial): cc.PhysicsShapeEdgeSegment function PhysicsShapeEdgeSegment.create(a, b, material, border) end diff --git a/addons/cclua/cocos2d/library/cc/PhysicsShapePolygon.lua b/addons/cclua/cocos2d/library/cc/PhysicsShapePolygon.lua index d96d5e72..ddb38d7b 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsShapePolygon.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsShapePolygon.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsShapePolygon ---A polygon shape. @@ -28,7 +29,23 @@ function PhysicsShapePolygon.calculateArea(points, count) end ---@param offset cc.Vec2 ---@param radius number ---@return number +--- +---Calculate the moment of a polygon with specified value. +--- +---\param mass A float number +---\param points A Vec2 object pointer, it is an array of Vec2. +---\param count An integer number, contains the count of the points array. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return A float number ---@overload fun(mass: number, points: cc.Vec2, count: integer): number +--- +---Calculate the moment of a polygon with specified value. +--- +---\param mass A float number +---\param points A Vec2 object pointer, it is an array of Vec2. +---\param count An integer number, contains the count of the points array. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return A float number ---@overload fun(mass: number, points: cc.Vec2, count: integer, offset: cc.Vec2): number function PhysicsShapePolygon.calculateMoment(mass, points, count, offset, radius) end @@ -45,8 +62,32 @@ function PhysicsShapePolygon.calculateMoment(mass, points, count, offset, radius ---@param offset cc.Vec2 ---@param radius number ---@return cc.PhysicsShapePolygon +--- +---Creates a PhysicsShapePolygon with specified value. +--- +---\param points A Vec2 object pointer, it is an array of Vec2. +---\param count An integer number, contains the count of the points array. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsShapePolygon object pointer. ---@overload fun(points: cc.Vec2, count: integer): cc.PhysicsShapePolygon +--- +---Creates a PhysicsShapePolygon with specified value. +--- +---\param points A Vec2 object pointer, it is an array of Vec2. +---\param count An integer number, contains the count of the points array. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsShapePolygon object pointer. ---@overload fun(points: cc.Vec2, count: integer, material: cc.PhysicsMaterial): cc.PhysicsShapePolygon +--- +---Creates a PhysicsShapePolygon with specified value. +--- +---\param points A Vec2 object pointer, it is an array of Vec2. +---\param count An integer number, contains the count of the points array. +---\param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT. +---\param offset A Vec2 object, it is the offset from the body's center of gravity in body local coordinates. +---\return An autoreleased PhysicsShapePolygon object pointer. ---@overload fun(points: cc.Vec2, count: integer, material: cc.PhysicsMaterial, offset: cc.Vec2): cc.PhysicsShapePolygon function PhysicsShapePolygon.create(points, count, material, offset, radius) end diff --git a/addons/cclua/cocos2d/library/cc/PhysicsWorld.lua b/addons/cclua/cocos2d/library/cc/PhysicsWorld.lua index d46e4d09..74842d45 100644 --- a/addons/cclua/cocos2d/library/cc/PhysicsWorld.lua +++ b/addons/cclua/cocos2d/library/cc/PhysicsWorld.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PhysicsWorld ---\class PhysicsWorld CCPhysicsWorld.h @@ -155,6 +156,11 @@ function PhysicsWorld:removeAllBodies() end ---\attention This function is invoked in the destructor of this physics world, you do not use this api in common. ---\param destroy true all joints will be destroyed after remove from this world, false otherwise. ---@param destroy boolean +--- +---Remove all joints from this physics world. +--- +---\attention This function is invoked in the destructor of this physics world, you do not use this api in common. +---\param destroy true all joints will be destroyed after remove from this world, false otherwise. ---@overload fun(self: cc.PhysicsWorld) function PhysicsWorld:removeAllJoints(destroy) end @@ -164,6 +170,12 @@ function PhysicsWorld:removeAllJoints(destroy) end ---\attention If this body has joints, those joints will be removed also. ---\param body A pointer to an existing PhysicsBody object. ---@param body cc.PhysicsBody +--- +---Remove body by tag. +--- +---If this world is not locked, the object is removed immediately, otherwise at next frame. +---\attention If this body has joints, those joints will be removed also. +---\param tag An integer number that identifies a PhysicsBody object. ---@overload fun(self: cc.PhysicsWorld, tag: integer) function PhysicsWorld:removeBody(body) end @@ -175,6 +187,13 @@ function PhysicsWorld:removeBody(body) end ---\param destroy true this joint will be destroyed after remove from this world, false otherwise. ---@param joint cc.PhysicsJoint ---@param destroy boolean +--- +---Remove a joint from this physics world. +--- +---If this world is not locked, the joint is removed immediately, otherwise at next frame. +---If this joint is connected with a body, it will be removed from the body also. +---\param joint A pointer to an existing PhysicsJoint object. +---\param destroy true this joint will be destroyed after remove from this world, false otherwise. ---@overload fun(self: cc.PhysicsWorld, joint: cc.PhysicsJoint) function PhysicsWorld:removeJoint(joint, destroy) end diff --git a/addons/cclua/cocos2d/library/cc/PipelineDescriptor.lua b/addons/cclua/cocos2d/library/cc/PipelineDescriptor.lua index ac597313..5959e420 100644 --- a/addons/cclua/cocos2d/library/cc/PipelineDescriptor.lua +++ b/addons/cclua/cocos2d/library/cc/PipelineDescriptor.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PipelineDescriptor ---\addtogroup renderer diff --git a/addons/cclua/cocos2d/library/cc/Place.lua b/addons/cclua/cocos2d/library/cc/Place.lua index 8d763b6f..1f77f089 100644 --- a/addons/cclua/cocos2d/library/cc/Place.lua +++ b/addons/cclua/cocos2d/library/cc/Place.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Place ---\class Place diff --git a/addons/cclua/cocos2d/library/cc/PlayableProtocol.lua b/addons/cclua/cocos2d/library/cc/PlayableProtocol.lua index f4900deb..7584700e 100644 --- a/addons/cclua/cocos2d/library/cc/PlayableProtocol.lua +++ b/addons/cclua/cocos2d/library/cc/PlayableProtocol.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PlayableProtocol ---interface for playable items diff --git a/addons/cclua/cocos2d/library/cc/PointArray.lua b/addons/cclua/cocos2d/library/cc/PointArray.lua index 0a222ec4..83ff3708 100644 --- a/addons/cclua/cocos2d/library/cc/PointArray.lua +++ b/addons/cclua/cocos2d/library/cc/PointArray.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PointArray ---An Array that contain control points. diff --git a/addons/cclua/cocos2d/library/cc/PointLight.lua b/addons/cclua/cocos2d/library/cc/PointLight.lua index 87794b0d..bc881b0a 100644 --- a/addons/cclua/cocos2d/library/cc/PointLight.lua +++ b/addons/cclua/cocos2d/library/cc/PointLight.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.PointLight ---\js NA diff --git a/addons/cclua/cocos2d/library/cc/ProgressFromTo.lua b/addons/cclua/cocos2d/library/cc/ProgressFromTo.lua index 966f92ea..f749f2a5 100644 --- a/addons/cclua/cocos2d/library/cc/ProgressFromTo.lua +++ b/addons/cclua/cocos2d/library/cc/ProgressFromTo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ProgressFromTo ---\brief Progress from a percentage to another percentage. diff --git a/addons/cclua/cocos2d/library/cc/ProgressTimer.lua b/addons/cclua/cocos2d/library/cc/ProgressTimer.lua index d3cdc68b..486e05fe 100644 --- a/addons/cclua/cocos2d/library/cc/ProgressTimer.lua +++ b/addons/cclua/cocos2d/library/cc/ProgressTimer.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ProgressTimer ---\brief ProgressTimer is a subclass of Node. diff --git a/addons/cclua/cocos2d/library/cc/ProgressTimer/Type.lua b/addons/cclua/cocos2d/library/cc/ProgressTimer/Type.lua index 976e9be2..1403c9e1 100644 --- a/addons/cclua/cocos2d/library/cc/ProgressTimer/Type.lua +++ b/addons/cclua/cocos2d/library/cc/ProgressTimer/Type.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ProgressTimer.Type ---@type cc.ProgressTimer.Type diff --git a/addons/cclua/cocos2d/library/cc/ProgressTo.lua b/addons/cclua/cocos2d/library/cc/ProgressTo.lua index 7eac847c..3de6f157 100644 --- a/addons/cclua/cocos2d/library/cc/ProgressTo.lua +++ b/addons/cclua/cocos2d/library/cc/ProgressTo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ProgressTo ---\brief Progress to percentage. diff --git a/addons/cclua/cocos2d/library/cc/Properties.lua b/addons/cclua/cocos2d/library/cc/Properties.lua index b87d9f1c..b827f21f 100644 --- a/addons/cclua/cocos2d/library/cc/Properties.lua +++ b/addons/cclua/cocos2d/library/cc/Properties.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Properties ---Defines a properties file for loading text files. @@ -150,7 +151,21 @@ function Properties:exists(name) end ---@param name string ---@param defaultValue boolean ---@return boolean +--- +---Interpret the value of the given property as a boolean. +--- +---\param name The name of the property to interpret, or NULL to return the current property's value. +---\param defaultValue the default value to return if the specified property does not exist within the properties file. +--- +---\return true if the property exists and its value is "true", otherwise false. ---@overload fun(self: cc.Properties): boolean +--- +---Interpret the value of the given property as a boolean. +--- +---\param name The name of the property to interpret, or NULL to return the current property's value. +---\param defaultValue the default value to return if the specified property does not exist within the properties file. +--- +---\return true if the property exists and its value is "true", otherwise false. ---@overload fun(self: cc.Properties, name: string): boolean function Properties:getBool(name, defaultValue) end @@ -167,6 +182,17 @@ function Properties:getBool(name, defaultValue) end ---@param name string ---@param out cc.Vec3 ---@return boolean +--- +---Interpret the value of the given property as an RGBA color in hex and write this color to a Vector4. +---E.g. 0xff0000ff represents opaque red and sets the vector to (1, 0, 0, 1). +---If the property does not exist, out will be set to Vector4(0.0f, 0.0f, 0.0f, 0.0f). +---If the property exists but could not be scanned, an error will be logged and out will be set +---to Vector4(0.0f, 0.0f, 0.0f, 0.0f). +--- +---\param name The name of the property to interpret, or NULL to return the current property's value. +---\param out The vector to set to this property's interpreted value. +--- +---\return True on success, false if the property does not exist or could not be scanned. ---@overload fun(self: cc.Properties, name: string, out: cc.Vec4): boolean function Properties:getColor(name, out) end @@ -180,6 +206,15 @@ function Properties:getColor(name, out) end ---Zero if the property does not exist or could not be scanned. ---@param name string ---@return number +--- +---Interpret the value of the given property as a floating-point number. +---If the property does not exist, zero will be returned. +---If the property exists but could not be scanned, an error will be logged and zero will be returned. +--- +---\param name The name of the property to interpret, or NULL to return the current property's value. +--- +---\return The value of the given property interpreted as a float. +---Zero if the property does not exist or could not be scanned. ---@overload fun(self: cc.Properties): number function Properties:getFloat(name) end @@ -200,6 +235,15 @@ function Properties:getId() end ---Zero if the property does not exist or could not be scanned. ---@param name string ---@return integer +--- +---Interpret the value of the given property as an integer. +---If the property does not exist, zero will be returned. +---If the property exists but could not be scanned, an error will be logged and zero will be returned. +--- +---\param name The name of the property to interpret, or NULL to return the current property's value. +--- +---\return The value of the given property interpreted as an integer. +---Zero if the property does not exist or could not be scanned. ---@overload fun(self: cc.Properties): integer function Properties:getInt(name) end @@ -213,6 +257,15 @@ function Properties:getInt(name) end ---Zero if the property does not exist or could not be scanned. ---@param name string ---@return integer +--- +---Interpret the value of the given property as a long integer. +---If the property does not exist, zero will be returned. +---If the property exists but could not be scanned, an error will be logged and zero will be returned. +--- +---\param name The name of the property to interpret, or NULL to return the current property's value. +--- +---\return The value of the given property interpreted as a long. +---Zero if the property does not exist or could not be scanned. ---@overload fun(self: cc.Properties): integer function Properties:getLong(name) end @@ -246,8 +299,38 @@ function Properties:getMat4(name, out) end ---@param searchNames boolean ---@param recurse boolean ---@return cc.Properties +--- +---Get a specific namespace by ID or name. This method will optionally +---perform a depth-first search on all namespaces and inner namespaces +---within this Property. +--- +---\param id The ID or name of the namespace to find. +---\param searchNames If true, namespace names are used in the search, +---instead of namespace IDs. By default this parameter is false +---and namespace IDs are searched. +---\param recurse If true, perform a depth-first search, otherwise search +---only the immediate child namespaces. +--- +---\return A properties object with the given ID or name. ---@overload fun(self: cc.Properties, id: string): cc.Properties +--- +---Get a specific namespace by ID or name. This method will optionally +---perform a depth-first search on all namespaces and inner namespaces +---within this Property. +--- +---\param id The ID or name of the namespace to find. +---\param searchNames If true, namespace names are used in the search, +---instead of namespace IDs. By default this parameter is false +---and namespace IDs are searched. +---\param recurse If true, perform a depth-first search, otherwise search +---only the immediate child namespaces. +--- +---\return A properties object with the given ID or name. ---@overload fun(self: cc.Properties, id: string, searchNames: boolean): cc.Properties +--- +---Get the name of this Property's namespace. +--- +---\return The name of this Property's namespace. ---@overload fun(self: cc.Properties): string function Properties:getNamespace(id, searchNames, recurse) end @@ -305,7 +388,23 @@ function Properties:getQuaternionFromAxisAngle(name, out) end ---@param name string ---@param defaultValue string ---@return string +--- +---Get the value of the given property as a string. This can always be retrieved, +---whatever the intended type of the property. +--- +---\param name The name of the property to interpret, or NULL to return the current property's value. +---\param defaultValue The default value to return if the specified property does not exist. +--- +---\return The value of the given property as a string, or the empty string if no property with that name exists. ---@overload fun(self: cc.Properties): string +--- +---Get the value of the given property as a string. This can always be retrieved, +---whatever the intended type of the property. +--- +---\param name The name of the property to interpret, or NULL to return the current property's value. +---\param defaultValue The default value to return if the specified property does not exist. +--- +---\return The value of the given property as a string, or the empty string if no property with that name exists. ---@overload fun(self: cc.Properties, name: string): string function Properties:getString(name, defaultValue) end @@ -316,6 +415,12 @@ function Properties:getString(name, defaultValue) end ---\return The type of the property. ---@param name string ---@return cc.Properties.Type +--- +---Returns the type of a property. +--- +---\param name The name of the property to interpret, or NULL to return the current property's type. +--- +---\return The type of the property. ---@overload fun(self: cc.Properties): cc.Properties.Type function Properties:getType(name) end @@ -330,6 +435,15 @@ function Properties:getType(name) end ---@param name string ---@param defaultValue string ---@return string +--- +---Returns the value of a variable that is set in this Properties object. +--- +---Variables take on the format ${name} and are inherited from parent Property objects. +--- +---\param name Name of the variable to get. +---\param defaultValue Value to return if the variable is not found. +--- +---\return The value of the specified variable, or defaultValue if not found. ---@overload fun(self: cc.Properties, name: string): string function Properties:getVariable(name, defaultValue) end @@ -401,6 +515,13 @@ function Properties.parseAxisAngle(str, out) end ---@param str string ---@param out cc.Vec3 ---@return boolean +--- +---Attempts to parse the specified string as an RGBA color value. +--- +---\param str The string to parse. +---\param out The value to populate if successful. +--- +---\return True if a valid RGBA color was parsed, false otherwise. ---@overload fun(str: string, out: cc.Vec4): boolean function Properties.parseColor(str, out) end diff --git a/addons/cclua/cocos2d/library/cc/Properties/Type.lua b/addons/cclua/cocos2d/library/cc/Properties/Type.lua index 64c98af9..375d6630 100644 --- a/addons/cclua/cocos2d/library/cc/Properties/Type.lua +++ b/addons/cclua/cocos2d/library/cc/Properties/Type.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Properties.Type ---@type cc.Properties.Type diff --git a/addons/cclua/cocos2d/library/cc/ProtectedNode.lua b/addons/cclua/cocos2d/library/cc/ProtectedNode.lua index 75247d26..391e6464 100644 --- a/addons/cclua/cocos2d/library/cc/ProtectedNode.lua +++ b/addons/cclua/cocos2d/library/cc/ProtectedNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ProtectedNode ---\brief A inner node type mainly used for UI module. @@ -11,7 +12,22 @@ local ProtectedNode = {} --- ---\param child A child node ---@param child cc.Node +--- +---Adds a child to the container with a local z-order. +--- +---If the child is added to a 'running' node, then 'onEnter' and 'onEnterTransitionDidFinish' will be called immediately. +--- +---\param child A child node +---\param localZOrder Z order for drawing priority. Please refer to `setLocalZOrder(int)` ---@overload fun(self: cc.ProtectedNode, child: cc.Node, localZOrder: integer) +--- +---Adds a child to the container with z order and tag. +--- +---If the child is added to a 'running' node, then 'onEnter' and 'onEnterTransitionDidFinish' will be called immediately. +--- +---\param child A child node +---\param localZOrder Z order for drawing priority. Please refer to `setLocalZOrder(int)` +---\param tag An integer to identify the node easily. Please refer to `setTag(int)` ---@overload fun(self: cc.ProtectedNode, child: cc.Node, localZOrder: integer, tag: integer) function ProtectedNode:addProtectedChild(child) end @@ -55,6 +71,11 @@ function ProtectedNode:removeAllProtectedChildrenWithCleanup(cleanup) end ---\param cleanup true if all running actions and callbacks on the child node will be cleanup, false otherwise. ---@param child cc.Node ---@param cleanup boolean +--- +---Removes a child from the container. It will also cleanup all running actions depending on the cleanup parameter. +--- +---\param child The child node which will be removed. +---\param cleanup true if all running actions and callbacks on the child node will be cleanup, false otherwise. ---@overload fun(self: cc.ProtectedNode, child: cc.Node) function ProtectedNode:removeProtectedChild(child, cleanup) end @@ -64,6 +85,11 @@ function ProtectedNode:removeProtectedChild(child, cleanup) end ---\param cleanup true if all running actions and callbacks on the child node will be cleanup, false otherwise. ---@param tag integer ---@param cleanup boolean +--- +---Removes a child from the container by tag value. It will also cleanup all running actions depending on the cleanup parameter. +--- +---\param tag An integer number that identifies a child node. +---\param cleanup true if all running actions and callbacks on the child node will be cleanup, false otherwise. ---@overload fun(self: cc.ProtectedNode, tag: integer) function ProtectedNode:removeProtectedChildByTag(tag, cleanup) end diff --git a/addons/cclua/cocos2d/library/cc/Quad3.lua b/addons/cclua/cocos2d/library/cc/Quad3.lua index b7604223..962f3fff 100644 --- a/addons/cclua/cocos2d/library/cc/Quad3.lua +++ b/addons/cclua/cocos2d/library/cc/Quad3.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Quad3 ---\struct Quad3 diff --git a/addons/cclua/cocos2d/library/cc/Quaternion.lua b/addons/cclua/cocos2d/library/cc/Quaternion.lua index 6770bc05..1d196d57 100644 --- a/addons/cclua/cocos2d/library/cc/Quaternion.lua +++ b/addons/cclua/cocos2d/library/cc/Quaternion.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Quaternion ---Defines a 4-element quaternion that represents the orientation of an object in space. @@ -28,10 +29,8 @@ ---For the point p = (1.0, 1.0, 1.0), the following figures show the trajectories of p using lerp, slerp, and squad. ---@class cc.Quaternion ---@field conjugated cc.Quaternion Gets the conjugate of this quaternion. ----@field identity boolean Determines if this quaternion is equal to the identity quaternion.

\return true if it is the identity quaternion, false otherwise. ---@field inversed cc.Quaternion Gets the inverse of this quaternion.

Note that the inverse of a quaternion is equal to its conjugate when the quaternion is unit-length. For this reason, it is more efficient to use the conjugate method directly when you know your quaternion is already unit-length. ---@field normalized cc.Quaternion Get the normalized quaternion.

If the quaternion already has unit length or if the length of the quaternion is zero, this method simply copies this vector. ----@field zero boolean Determines if this quaternion is all zeros.

\return true if this quaternion is all zeros, false otherwise. ---@field w number ---@field x number ---@field y number @@ -137,14 +136,40 @@ function Quaternion.lerp(q1, q2, t, dst) end --- ---\param q The quaternion to multiply. ---@param q cc.Quaternion +--- +---Multiplies the specified quaternions and stores the result in dst. +--- +---\param q1 The first quaternion. +---\param q2 The second quaternion. +---\param dst A quaternion to store the result in. ---@overload fun(q1: cc.Quaternion, q2: cc.Quaternion, dst: cc.Quaternion) function Quaternion:multiply(q) end ---Constructs a quaternion initialized to (0, 0, 0, 1). ---@return cc.Quaternion +--- +---Constructs a quaternion initialized to (0, 0, 0, 1). +--- +---\param xx The x component of the quaternion. +---\param yy The y component of the quaternion. +---\param zz The z component of the quaternion. +---\param ww The w component of the quaternion. ---@overload fun(xx: number, yy: number, zz: number, ww: number): cc.Quaternion +--- +---Constructs a new quaternion from the values in the specified array. +--- +---\param array The values for the new quaternion. ---@overload fun(array: olua.float): cc.Quaternion +--- +---Constructs a quaternion equal to the rotational part of the specified matrix. +--- +---\param m The matrix. ---@overload fun(m: cc.Mat4): cc.Quaternion +--- +---Constructs a quaternion equal to the rotation from the specified axis and angle. +--- +---\param axis A vector describing the axis of rotation. +---\param angle The angle of rotation (in radians). ---@overload fun(axis: cc.Vec3, angle: number): cc.Quaternion function Quaternion.new() end @@ -164,9 +189,26 @@ function Quaternion:normalize() end ---@param yy number ---@param zz number ---@param ww number +--- +---Sets the elements of the quaternion from the values in the specified array. +--- +---\param array An array containing the elements of the quaternion in the order x, y, z, w. ---@overload fun(self: cc.Quaternion, array: olua.float) +--- +---Sets the quaternion equal to the rotational part of the specified matrix. +--- +---\param m The matrix. ---@overload fun(self: cc.Quaternion, m: cc.Mat4) +--- +---Sets the quaternion equal to the rotation from the specified axis and angle. +--- +---\param axis The axis of rotation. +---\param angle The angle of rotation (in radians). ---@overload fun(self: cc.Quaternion, axis: cc.Vec3, angle: number) +--- +---Sets the elements of this quaternion to a copy of the specified quaternion. +--- +---\param q The quaternion to copy. ---@overload fun(self: cc.Quaternion, q: cc.Quaternion) function Quaternion:set(xx, yy, zz, ww) end diff --git a/addons/cclua/cocos2d/library/cc/Rect.lua b/addons/cclua/cocos2d/library/cc/Rect.lua index bb69bbba..b557c8a0 100644 --- a/addons/cclua/cocos2d/library/cc/Rect.lua +++ b/addons/cclua/cocos2d/library/cc/Rect.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Rect ---Rectangle area. @@ -97,7 +98,13 @@ function Rect:merge(rect) end ---Constructor an empty Rect. ---\js NA ---@return cc.Rect +--- +---Constructor a rect. +---\js NA ---@overload fun(x: number, y: number, width: number, height: number): cc.Rect +--- +---Constructor a rect. +---\js NA ---@overload fun(pos: cc.Vec2, dimension: cc.Size): cc.Rect function Rect.new() end diff --git a/addons/cclua/cocos2d/library/cc/Ref.lua b/addons/cclua/cocos2d/library/cc/Ref.lua index 152efce6..4cc47efc 100644 --- a/addons/cclua/cocos2d/library/cc/Ref.lua +++ b/addons/cclua/cocos2d/library/cc/Ref.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Ref ---\addtogroup base diff --git a/addons/cclua/cocos2d/library/cc/RemoveSelf.lua b/addons/cclua/cocos2d/library/cc/RemoveSelf.lua index f75ef04f..b82b3f0f 100644 --- a/addons/cclua/cocos2d/library/cc/RemoveSelf.lua +++ b/addons/cclua/cocos2d/library/cc/RemoveSelf.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.RemoveSelf ---\class RemoveSelf @@ -11,6 +12,11 @@ local RemoveSelf = {} ---\return An autoreleased RemoveSelf object. ---@param isNeedCleanUp boolean ---@return cc.RemoveSelf +--- +---Create the action. +--- +---\param isNeedCleanUp Is need to clean up, the default value is true. +---\return An autoreleased RemoveSelf object. ---@overload fun(): cc.RemoveSelf function RemoveSelf.create(isNeedCleanUp) end diff --git a/addons/cclua/cocos2d/library/cc/RenderCommand.lua b/addons/cclua/cocos2d/library/cc/RenderCommand.lua index 027fad29..3ba6aa46 100644 --- a/addons/cclua/cocos2d/library/cc/RenderCommand.lua +++ b/addons/cclua/cocos2d/library/cc/RenderCommand.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.RenderCommand ---Base class of the `RenderCommand` hierarchy. diff --git a/addons/cclua/cocos2d/library/cc/RenderCommand/Type.lua b/addons/cclua/cocos2d/library/cc/RenderCommand/Type.lua index f2595d13..342d4537 100644 --- a/addons/cclua/cocos2d/library/cc/RenderCommand/Type.lua +++ b/addons/cclua/cocos2d/library/cc/RenderCommand/Type.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.RenderCommand.Type ---@type cc.RenderCommand.Type diff --git a/addons/cclua/cocos2d/library/cc/RenderState.lua b/addons/cclua/cocos2d/library/cc/RenderState.lua index 0cc7317b..b5e1ddae 100644 --- a/addons/cclua/cocos2d/library/cc/RenderState.lua +++ b/addons/cclua/cocos2d/library/cc/RenderState.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.RenderState ---Defines the rendering state of the graphics device. diff --git a/addons/cclua/cocos2d/library/cc/RenderTargetFlag.lua b/addons/cclua/cocos2d/library/cc/RenderTargetFlag.lua index 97b29ec4..ec66f5a8 100644 --- a/addons/cclua/cocos2d/library/cc/RenderTargetFlag.lua +++ b/addons/cclua/cocos2d/library/cc/RenderTargetFlag.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.RenderTargetFlag ---@type cc.RenderTargetFlag diff --git a/addons/cclua/cocos2d/library/cc/RenderTexture.lua b/addons/cclua/cocos2d/library/cc/RenderTexture.lua index 4e4fe7e6..5c3c76a9 100644 --- a/addons/cclua/cocos2d/library/cc/RenderTexture.lua +++ b/addons/cclua/cocos2d/library/cc/RenderTexture.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.RenderTexture ---\brief RenderTexture is a generic rendering target. To render things into it, @@ -10,9 +11,7 @@ ---@class cc.RenderTexture : cc.Node ---@field autoDraw boolean When enabled, it will render its children into the texture automatically. Disabled by default for compatibility reasons. Will be enabled in the future.

\return Return the autoDraw value. ---@field clearColor any Clear color value. Valid only when "autoDraw" is true.

\return Color value. ----@field clearDepth number Value for clearDepth. Valid only when "autoDraw" is true.

\return Value for clearDepth. ---@field clearFlags cc.ClearFlag Valid when "autoDraw" is true.

\return Clear flags. ----@field clearStencil integer Value for clear Stencil. Valid only when "autoDraw" is true.

\return Value for clear Stencil. ---@field sprite cc.Sprite Gets the Sprite being used.

\return A Sprite. local RenderTexture = {} @@ -33,7 +32,26 @@ function RenderTexture.beginVisit(rt) end ---@param g number ---@param b number ---@param a number +--- +---Starts rendering to the texture while clearing the texture first. +---This is more efficient then calling -clear first and then -begin. +--- +---\param r Red. +---\param g Green. +---\param b Blue. +---\param a Alpha. +---\param depthValue The depth Value. ---@overload fun(self: cc.RenderTexture, r: number, g: number, b: number, a: number, depthValue: number) +--- +---Starts rendering to the texture while clearing the texture first. +---This is more efficient then calling -clear first and then -begin. +--- +---\param r Red. +---\param g Green. +---\param b Blue. +---\param a Alpha. +---\param depthValue A specified depth value. +---\param stencilValue A specified stencil value. ---@overload fun(self: cc.RenderTexture, r: number, g: number, b: number, a: number, depthValue: number, stencilValue: integer) function RenderTexture:beginWithClear(r, g, b, a) end @@ -72,7 +90,18 @@ function RenderTexture:clearStencil(stencilValue) end ---@param format ccb.PixelFormat ---@param depthStencilFormat ccb.PixelFormat ---@return cc.RenderTexture +--- +---Creates a RenderTexture object with width and height in Points and a pixel format, only RGB and RGBA formats are valid. +--- +---\param w The RenderTexture object width. +---\param h The RenderTexture object height. +---\param format In Points and a pixel format( only RGB and RGBA formats are valid ). ---@overload fun(w: integer, h: integer, format: ccb.PixelFormat): cc.RenderTexture +--- +---Creates a RenderTexture object with width and height in Points, pixel format is RGBA8888. +--- +---\param w The RenderTexture object width. +---\param h The RenderTexture object height. ---@overload fun(w: integer, h: integer): cc.RenderTexture function RenderTexture.create(w, h, format, depthStencilFormat) end @@ -123,6 +152,14 @@ function RenderTexture:getSprite() end ---@param h integer ---@param format ccb.PixelFormat ---@return boolean +--- +---Initializes a RenderTexture object with width and height in Points and a pixel format( only RGB and RGBA formats are valid ) and depthStencil format. +--- +---\param w The RenderTexture object width. +---\param h The RenderTexture object height. +---\param format In Points and a pixel format( only RGB and RGBA formats are valid ). +---\param depthStencilFormat The depthStencil format. +---\return If succeed, it will return true. ---@overload fun(self: cc.RenderTexture, w: integer, h: integer, format: ccb.PixelFormat, depthStencilFormat: ccb.PixelFormat): boolean function RenderTexture:initWithWidthAndHeight(w, h, format) end @@ -170,10 +207,62 @@ function RenderTexture:newImage(imageCallback, flipImage) end ---@param isRGBA boolean ---@param callback fun(arg1: cc.RenderTexture, arg2: string) ---@return boolean +--- +---Saves the texture into a file using JPEG format. The file will be saved in the Documents folder. +---Returns true if the operation is successful. +--- +---\param filename The file name. +---\param isRGBA The file is RGBA or not. +---\param callback When the file is save finished,it will callback this function. +---\return Returns true if the operation is successful. ---@overload fun(self: cc.RenderTexture, filename: string): boolean +--- +---Saves the texture into a file using JPEG format. The file will be saved in the Documents folder. +---Returns true if the operation is successful. +--- +---\param filename The file name. +---\param isRGBA The file is RGBA or not. +---\param callback When the file is save finished,it will callback this function. +---\return Returns true if the operation is successful. ---@overload fun(self: cc.RenderTexture, filename: string, isRGBA: boolean): boolean +--- +---saves the texture into a file. The format could be JPG or PNG. The file will be saved in the Documents folder. +---Returns true if the operation is successful. +---Notes: since v3.x, saveToFile will generate a custom command, which will be called in the following render->render(). +---So if this function is called in a event handler, the actual save file will be called in the next frame. If we switch to a different scene, the game will crash. +---To solve this, add Director::getInstance()->getRenderer()->render(); after this function. +--- +---\param filename The file name. +---\param format The image format. +---\param isRGBA The file is RGBA or not. +---\param callback When the file is save finished,it will callback this function. +---\return Returns true if the operation is successful. ---@overload fun(self: cc.RenderTexture, filename: string, format: cc.Image.Format, isRGBA: boolean, callback: fun(arg1: cc.RenderTexture, arg2: string)): boolean +--- +---saves the texture into a file. The format could be JPG or PNG. The file will be saved in the Documents folder. +---Returns true if the operation is successful. +---Notes: since v3.x, saveToFile will generate a custom command, which will be called in the following render->render(). +---So if this function is called in a event handler, the actual save file will be called in the next frame. If we switch to a different scene, the game will crash. +---To solve this, add Director::getInstance()->getRenderer()->render(); after this function. +--- +---\param filename The file name. +---\param format The image format. +---\param isRGBA The file is RGBA or not. +---\param callback When the file is save finished,it will callback this function. +---\return Returns true if the operation is successful. ---@overload fun(self: cc.RenderTexture, filename: string, format: cc.Image.Format): boolean +--- +---saves the texture into a file. The format could be JPG or PNG. The file will be saved in the Documents folder. +---Returns true if the operation is successful. +---Notes: since v3.x, saveToFile will generate a custom command, which will be called in the following render->render(). +---So if this function is called in a event handler, the actual save file will be called in the next frame. If we switch to a different scene, the game will crash. +---To solve this, add Director::getInstance()->getRenderer()->render(); after this function. +--- +---\param filename The file name. +---\param format The image format. +---\param isRGBA The file is RGBA or not. +---\param callback When the file is save finished,it will callback this function. +---\return Returns true if the operation is successful. ---@overload fun(self: cc.RenderTexture, filename: string, format: cc.Image.Format, isRGBA: boolean): boolean function RenderTexture:saveToFile(filename, isRGBA, callback) end @@ -188,8 +277,36 @@ function RenderTexture:saveToFile(filename, isRGBA, callback) end ---@param isRGBA boolean ---@param callback fun(arg1: cc.RenderTexture, arg2: string) ---@return boolean +--- +---Saves the texture into a file using JPEG format. The file will be saved in the Documents folder. +---Returns true if the operation is successful. +--- +---\param filename The file name. +---\param isRGBA The file is RGBA or not. +---\param callback When the file is save finished,it will callback this function. +---\return Returns true if the operation is successful. ---@overload fun(self: cc.RenderTexture, filename: string): boolean +--- +---Saves the texture into a file using JPEG format. The file will be saved in the Documents folder. +---Returns true if the operation is successful. +--- +---\param filename The file name. +---\param isRGBA The file is RGBA or not. +---\param callback When the file is save finished,it will callback this function. +---\return Returns true if the operation is successful. ---@overload fun(self: cc.RenderTexture, filename: string, isRGBA: boolean): boolean +--- +---saves the texture into a file in non-PMA. The format could be JPG or PNG. The file will be saved in the Documents folder. +---Returns true if the operation is successful. +---Notes: since v3.x, saveToFile will generate a custom command, which will be called in the following render->render(). +---So if this function is called in a event handler, the actual save file will be called in the next frame. If we switch to a different scene, the game will crash. +---To solve this, add Director::getInstance()->getRenderer()->render(); after this function. +--- +---\param filename The file name. +---\param format The image format. +---\param isRGBA The file is RGBA or not. +---\param callback When the file is save finished,it will callback this function. +---\return Returns true if the operation is successful. ---@overload fun(self: cc.RenderTexture, fileName: string, format: cc.Image.Format, isRGBA: boolean, callback: fun(arg1: cc.RenderTexture, arg2: string)): boolean function RenderTexture:saveToFileAsNonPMA(filename, isRGBA, callback) end diff --git a/addons/cclua/cocos2d/library/cc/Renderer.lua b/addons/cclua/cocos2d/library/cc/Renderer.lua index b1a27134..55451238 100644 --- a/addons/cclua/cocos2d/library/cc/Renderer.lua +++ b/addons/cclua/cocos2d/library/cc/Renderer.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Renderer ---\addtogroup 3d @@ -40,6 +41,8 @@ function Renderer:__olua_move() end ---Adds a `RenderComamnd` into the renderer ---@param command cc.RenderCommand +--- +---Adds a `RenderComamnd` into the renderer specifying a particular render queue ID ---@overload fun(self: cc.Renderer, command: cc.RenderCommand, renderQueueID: integer) function Renderer:addCommand(command) end diff --git a/addons/cclua/cocos2d/library/cc/Repeat.lua b/addons/cclua/cocos2d/library/cc/Repeat.lua index 1841e0fc..7f392f51 100644 --- a/addons/cclua/cocos2d/library/cc/Repeat.lua +++ b/addons/cclua/cocos2d/library/cc/Repeat.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Repeat ---\class Repeat diff --git a/addons/cclua/cocos2d/library/cc/RepeatForever.lua b/addons/cclua/cocos2d/library/cc/RepeatForever.lua index 582001a9..2e884dee 100644 --- a/addons/cclua/cocos2d/library/cc/RepeatForever.lua +++ b/addons/cclua/cocos2d/library/cc/RepeatForever.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.RepeatForever ---\class RepeatForever diff --git a/addons/cclua/cocos2d/library/cc/ResizableBuffer.lua b/addons/cclua/cocos2d/library/cc/ResizableBuffer.lua index 1cf49f30..56808a41 100644 --- a/addons/cclua/cocos2d/library/cc/ResizableBuffer.lua +++ b/addons/cclua/cocos2d/library/cc/ResizableBuffer.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ResizableBuffer ---\addtogroup platform diff --git a/addons/cclua/cocos2d/library/cc/ResizeBy.lua b/addons/cclua/cocos2d/library/cc/ResizeBy.lua index 4b1f0f80..92a606a8 100644 --- a/addons/cclua/cocos2d/library/cc/ResizeBy.lua +++ b/addons/cclua/cocos2d/library/cc/ResizeBy.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ResizeBy ---\class ResizeBy diff --git a/addons/cclua/cocos2d/library/cc/ResizeTo.lua b/addons/cclua/cocos2d/library/cc/ResizeTo.lua index e062d335..40e720fe 100644 --- a/addons/cclua/cocos2d/library/cc/ResizeTo.lua +++ b/addons/cclua/cocos2d/library/cc/ResizeTo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ResizeTo ---\class ResizeTo diff --git a/addons/cclua/cocos2d/library/cc/ResolutionPolicy.lua b/addons/cclua/cocos2d/library/cc/ResolutionPolicy.lua index 5af3fdec..1e94d163 100644 --- a/addons/cclua/cocos2d/library/cc/ResolutionPolicy.lua +++ b/addons/cclua/cocos2d/library/cc/ResolutionPolicy.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ResolutionPolicy ---@type cc.ResolutionPolicy diff --git a/addons/cclua/cocos2d/library/cc/ResourceData.lua b/addons/cclua/cocos2d/library/cc/ResourceData.lua index f09545a6..e0405d39 100644 --- a/addons/cclua/cocos2d/library/cc/ResourceData.lua +++ b/addons/cclua/cocos2d/library/cc/ResourceData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ResourceData ---\addtogroup ui diff --git a/addons/cclua/cocos2d/library/cc/ReuseGrid.lua b/addons/cclua/cocos2d/library/cc/ReuseGrid.lua index f2515efe..7dddaafd 100644 --- a/addons/cclua/cocos2d/library/cc/ReuseGrid.lua +++ b/addons/cclua/cocos2d/library/cc/ReuseGrid.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ReuseGrid ---\brief ReuseGrid action. diff --git a/addons/cclua/cocos2d/library/cc/ReverseTime.lua b/addons/cclua/cocos2d/library/cc/ReverseTime.lua index 559ebd90..cddaee0a 100644 --- a/addons/cclua/cocos2d/library/cc/ReverseTime.lua +++ b/addons/cclua/cocos2d/library/cc/ReverseTime.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ReverseTime ---\class ReverseTime diff --git a/addons/cclua/cocos2d/library/cc/Ripple3D.lua b/addons/cclua/cocos2d/library/cc/Ripple3D.lua index fe32e70d..211b107e 100644 --- a/addons/cclua/cocos2d/library/cc/Ripple3D.lua +++ b/addons/cclua/cocos2d/library/cc/Ripple3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Ripple3D ---\brief Ripple3D action. diff --git a/addons/cclua/cocos2d/library/cc/RotateBy.lua b/addons/cclua/cocos2d/library/cc/RotateBy.lua index fec22d6d..0ba7636d 100644 --- a/addons/cclua/cocos2d/library/cc/RotateBy.lua +++ b/addons/cclua/cocos2d/library/cc/RotateBy.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.RotateBy ---\class RotateBy @@ -13,7 +14,21 @@ local RotateBy = {} ---@param duration number ---@param deltaAngle number ---@return cc.RotateBy +--- +---Creates the action with separate rotation angles. +--- +---\param duration Duration time, in seconds. +---\param deltaAngleZ_X In degreesCW. +---\param deltaAngleZ_Y In degreesCW. +---\return An autoreleased RotateBy object. +---\warning The physics body contained in Node doesn't support rotate with different x and y angle. ---@overload fun(duration: number, deltaAngleZ_X: number, deltaAngleZ_Y: number): cc.RotateBy +--- +---Creates the action with 3D rotation angles. +--- +---\param duration Duration time, in seconds. +---\param deltaAngle3D A Vec3 angle. +---\return An autoreleased RotateBy object. ---@overload fun(duration: number, deltaAngle3D: cc.Vec3): cc.RotateBy function RotateBy.create(duration, deltaAngle) end diff --git a/addons/cclua/cocos2d/library/cc/RotateFrom.lua b/addons/cclua/cocos2d/library/cc/RotateFrom.lua index 20595ab1..d83ffd22 100644 --- a/addons/cclua/cocos2d/library/cc/RotateFrom.lua +++ b/addons/cclua/cocos2d/library/cc/RotateFrom.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.RotateFrom --- diff --git a/addons/cclua/cocos2d/library/cc/RotateTo.lua b/addons/cclua/cocos2d/library/cc/RotateTo.lua index 963627c7..57ac9dd2 100644 --- a/addons/cclua/cocos2d/library/cc/RotateTo.lua +++ b/addons/cclua/cocos2d/library/cc/RotateTo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.RotateTo ---\class RotateTo @@ -16,7 +17,18 @@ local RotateTo = {} ---@param dstAngleX number ---@param dstAngleY number ---@return cc.RotateTo +--- +---Creates the action. +--- +---\param duration Duration time, in seconds. +---\param dstAngle In degreesCW. +---\return An autoreleased RotateTo object. ---@overload fun(duration: number, dstAngle: number): cc.RotateTo +--- +---Creates the action with 3D rotation angles. +---\param duration Duration time, in seconds. +---\param dstAngle3D A Vec3 angle. +---\return An autoreleased RotateTo object. ---@overload fun(duration: number, dstAngle3D: cc.Vec3): cc.RotateTo function RotateTo.create(duration, dstAngleX, dstAngleY) end diff --git a/addons/cclua/cocos2d/library/cc/SAXDelegator.lua b/addons/cclua/cocos2d/library/cc/SAXDelegator.lua index 6b0e0b9a..617c7e67 100644 --- a/addons/cclua/cocos2d/library/cc/SAXDelegator.lua +++ b/addons/cclua/cocos2d/library/cc/SAXDelegator.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.SAXDelegator --- diff --git a/addons/cclua/cocos2d/library/cc/ScaleBy.lua b/addons/cclua/cocos2d/library/cc/ScaleBy.lua index ccd4d73c..679730c9 100644 --- a/addons/cclua/cocos2d/library/cc/ScaleBy.lua +++ b/addons/cclua/cocos2d/library/cc/ScaleBy.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ScaleBy ---\class ScaleBy @@ -13,7 +14,20 @@ local ScaleBy = {} ---@param duration number ---@param s number ---@return cc.ScaleBy +--- +---Creates the action with and X factor and a Y factor. +---\param duration Duration time, in seconds. +---\param sx Scale factor of x. +---\param sy Scale factor of y. +---\return An autoreleased ScaleBy object. ---@overload fun(duration: number, sx: number, sy: number): cc.ScaleBy +--- +---Creates the action with X Y Z factor. +---\param duration Duration time, in seconds. +---\param sx Scale factor of x. +---\param sy Scale factor of y. +---\param sz Scale factor of z. +---\return An autoreleased ScaleBy object. ---@overload fun(duration: number, sx: number, sy: number, sz: number): cc.ScaleBy function ScaleBy.create(duration, s) end diff --git a/addons/cclua/cocos2d/library/cc/ScaleFrom.lua b/addons/cclua/cocos2d/library/cc/ScaleFrom.lua index 005ee2b9..356188aa 100644 --- a/addons/cclua/cocos2d/library/cc/ScaleFrom.lua +++ b/addons/cclua/cocos2d/library/cc/ScaleFrom.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ScaleFrom --- diff --git a/addons/cclua/cocos2d/library/cc/ScaleTo.lua b/addons/cclua/cocos2d/library/cc/ScaleTo.lua index 4a1d98eb..f9bc186c 100644 --- a/addons/cclua/cocos2d/library/cc/ScaleTo.lua +++ b/addons/cclua/cocos2d/library/cc/ScaleTo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ScaleTo ---\class ScaleTo @@ -14,7 +15,20 @@ local ScaleTo = {} ---@param duration number ---@param s number ---@return cc.ScaleTo +--- +---Creates the action with and X factor and a Y factor. +---\param duration Duration time, in seconds. +---\param sx Scale factor of x. +---\param sy Scale factor of y. +---\return An autoreleased ScaleTo object. ---@overload fun(duration: number, sx: number, sy: number): cc.ScaleTo +--- +---Creates the action with X Y Z factor. +---\param duration Duration time, in seconds. +---\param sx Scale factor of x. +---\param sy Scale factor of y. +---\param sz Scale factor of z. +---\return An autoreleased ScaleTo object. ---@overload fun(duration: number, sx: number, sy: number, sz: number): cc.ScaleTo function ScaleTo.create(duration, s) end diff --git a/addons/cclua/cocos2d/library/cc/Scene.lua b/addons/cclua/cocos2d/library/cc/Scene.lua index 3b70e2fd..8b7dc3ca 100644 --- a/addons/cclua/cocos2d/library/cc/Scene.lua +++ b/addons/cclua/cocos2d/library/cc/Scene.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Scene ---\class Scene @@ -88,6 +89,12 @@ function Scene:onProjectionChanged(event) end ---@param renderer cc.Renderer ---@param eyeTransform cc.Mat4 ---@param eyeProjection cc.Mat4 +--- +---Render the scene. +---\param renderer The renderer use to render the scene. +---\param eyeTransform The AdditionalTransform of camera. +---\param eyeProjection The projection matrix of camera. +---\js NA ---@overload fun(self: cc.Scene, renderer: cc.Renderer, eyeTransform: cc.Mat4) function Scene:render(renderer, eyeTransform, eyeProjection) end diff --git a/addons/cclua/cocos2d/library/cc/Scheduler.lua b/addons/cclua/cocos2d/library/cc/Scheduler.lua index 2a834fe2..2e97502a 100644 --- a/addons/cclua/cocos2d/library/cc/Scheduler.lua +++ b/addons/cclua/cocos2d/library/cc/Scheduler.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Scheduler ---\brief Scheduler is responsible for triggering the scheduled callbacks. @@ -112,6 +113,14 @@ function Scheduler:resumeTargets(targetsToResume) end ---@param delay number ---@param paused boolean ---@param key string +--- +---The scheduled method will be called every 'interval' seconds for ever. +---\param callback The callback function. +---\param target The target of the callback function. +---\param interval The interval to schedule the callback. If the value is 0, then the callback will be scheduled every frame. +---\param paused Whether or not to pause the schedule. +---\param key The key to identify the callback function, because there is not way to identify a std::function<>. +---\since v3.0 ---@overload fun(self: cc.Scheduler, callback: cc.ccSchedulerFunc, target: any, interval: number, paused: boolean, key: string) function Scheduler:schedule(callback, target, interval, repeat_, delay, paused, key) end diff --git a/addons/cclua/cocos2d/library/cc/ScissorRect.lua b/addons/cclua/cocos2d/library/cc/ScissorRect.lua index 04c10fd8..eb8e8b1b 100644 --- a/addons/cclua/cocos2d/library/cc/ScissorRect.lua +++ b/addons/cclua/cocos2d/library/cc/ScissorRect.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ScissorRect --- diff --git a/addons/cclua/cocos2d/library/cc/Sequence.lua b/addons/cclua/cocos2d/library/cc/Sequence.lua index 5a785c2e..479e5e1d 100644 --- a/addons/cclua/cocos2d/library/cc/Sequence.lua +++ b/addons/cclua/cocos2d/library/cc/Sequence.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Sequence ---\class Sequence @@ -10,22 +11,96 @@ local Sequence = {} ---\return An autoreleased Sequence object. ---@param action1 cc.FiniteTimeAction ---@return cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions. +--- +---\return An autoreleased Sequence object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction): cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions. +--- +---\return An autoreleased Sequence object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction): cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions. +--- +---\return An autoreleased Sequence object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction): cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions. +--- +---\return An autoreleased Sequence object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction): cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions. +--- +---\return An autoreleased Sequence object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction): cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions. +--- +---\return An autoreleased Sequence object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction): cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions. +--- +---\return An autoreleased Sequence object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction): cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions. +--- +---\return An autoreleased Sequence object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction): cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions. +--- +---\return An autoreleased Sequence object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction, action1_9: cc.FiniteTimeAction): cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions. +--- +---\return An autoreleased Sequence object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction, action1_9: cc.FiniteTimeAction, action1_10: cc.FiniteTimeAction): cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions. +--- +---\return An autoreleased Sequence object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction, action1_9: cc.FiniteTimeAction, action1_10: cc.FiniteTimeAction, action1_11: cc.FiniteTimeAction): cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions. +--- +---\return An autoreleased Sequence object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction, action1_9: cc.FiniteTimeAction, action1_10: cc.FiniteTimeAction, action1_11: cc.FiniteTimeAction, action1_12: cc.FiniteTimeAction): cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions. +--- +---\return An autoreleased Sequence object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction, action1_9: cc.FiniteTimeAction, action1_10: cc.FiniteTimeAction, action1_11: cc.FiniteTimeAction, action1_12: cc.FiniteTimeAction, action1_13: cc.FiniteTimeAction): cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions. +--- +---\return An autoreleased Sequence object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction, action1_9: cc.FiniteTimeAction, action1_10: cc.FiniteTimeAction, action1_11: cc.FiniteTimeAction, action1_12: cc.FiniteTimeAction, action1_13: cc.FiniteTimeAction, action1_14: cc.FiniteTimeAction): cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions. +--- +---\return An autoreleased Sequence object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction, action1_9: cc.FiniteTimeAction, action1_10: cc.FiniteTimeAction, action1_11: cc.FiniteTimeAction, action1_12: cc.FiniteTimeAction, action1_13: cc.FiniteTimeAction, action1_14: cc.FiniteTimeAction, action1_15: cc.FiniteTimeAction): cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions. +--- +---\return An autoreleased Sequence object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction, action1_9: cc.FiniteTimeAction, action1_10: cc.FiniteTimeAction, action1_11: cc.FiniteTimeAction, action1_12: cc.FiniteTimeAction, action1_13: cc.FiniteTimeAction, action1_14: cc.FiniteTimeAction, action1_15: cc.FiniteTimeAction, action1_16: cc.FiniteTimeAction): cc.Sequence +--- +---Helper constructor to create an array of sequenceable actions given an array. +---\code +---When this function bound to the js or lua,the input params changed +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\param arrayOfActions An array of sequenceable actions. +---\return An autoreleased Sequence object. ---@overload fun(arrayOfActions: any): cc.Sequence function Sequence.create(action1) end diff --git a/addons/cclua/cocos2d/library/cc/Shaky3D.lua b/addons/cclua/cocos2d/library/cc/Shaky3D.lua index a5ff02bf..cd6fdb77 100644 --- a/addons/cclua/cocos2d/library/cc/Shaky3D.lua +++ b/addons/cclua/cocos2d/library/cc/Shaky3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Shaky3D ---\brief Shaky3D action. diff --git a/addons/cclua/cocos2d/library/cc/ShakyTiles3D.lua b/addons/cclua/cocos2d/library/cc/ShakyTiles3D.lua index c40c4f49..a59b55ee 100644 --- a/addons/cclua/cocos2d/library/cc/ShakyTiles3D.lua +++ b/addons/cclua/cocos2d/library/cc/ShakyTiles3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ShakyTiles3D ---\brief ShakyTiles3D action. diff --git a/addons/cclua/cocos2d/library/cc/ShatteredTiles3D.lua b/addons/cclua/cocos2d/library/cc/ShatteredTiles3D.lua index 8a1526a1..32192048 100644 --- a/addons/cclua/cocos2d/library/cc/ShatteredTiles3D.lua +++ b/addons/cclua/cocos2d/library/cc/ShatteredTiles3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ShatteredTiles3D ---\brief ShatteredTiles3D action. diff --git a/addons/cclua/cocos2d/library/cc/Show.lua b/addons/cclua/cocos2d/library/cc/Show.lua index f8dba04a..16cc7254 100644 --- a/addons/cclua/cocos2d/library/cc/Show.lua +++ b/addons/cclua/cocos2d/library/cc/Show.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Show ---\class Show diff --git a/addons/cclua/cocos2d/library/cc/ShuffleTiles.lua b/addons/cclua/cocos2d/library/cc/ShuffleTiles.lua index 7e1717ae..ca85aa57 100644 --- a/addons/cclua/cocos2d/library/cc/ShuffleTiles.lua +++ b/addons/cclua/cocos2d/library/cc/ShuffleTiles.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ShuffleTiles ---\brief ShuffleTiles action. diff --git a/addons/cclua/cocos2d/library/cc/Size.lua b/addons/cclua/cocos2d/library/cc/Size.lua index c55e9ca3..55810195 100644 --- a/addons/cclua/cocos2d/library/cc/Size.lua +++ b/addons/cclua/cocos2d/library/cc/Size.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Size ---\addtogroup base diff --git a/addons/cclua/cocos2d/library/cc/Skeleton3D.lua b/addons/cclua/cocos2d/library/cc/Skeleton3D.lua index 9897d92f..e6cf546c 100644 --- a/addons/cclua/cocos2d/library/cc/Skeleton3D.lua +++ b/addons/cclua/cocos2d/library/cc/Skeleton3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Skeleton3D ---Skeleton diff --git a/addons/cclua/cocos2d/library/cc/SkewBy.lua b/addons/cclua/cocos2d/library/cc/SkewBy.lua index a6dc0339..535a923e 100644 --- a/addons/cclua/cocos2d/library/cc/SkewBy.lua +++ b/addons/cclua/cocos2d/library/cc/SkewBy.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.SkewBy ---\class SkewBy diff --git a/addons/cclua/cocos2d/library/cc/SkewTo.lua b/addons/cclua/cocos2d/library/cc/SkewTo.lua index 346a7aa3..13460981 100644 --- a/addons/cclua/cocos2d/library/cc/SkewTo.lua +++ b/addons/cclua/cocos2d/library/cc/SkewTo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.SkewTo ---\class SkewTo diff --git a/addons/cclua/cocos2d/library/cc/Spawn.lua b/addons/cclua/cocos2d/library/cc/Spawn.lua index 9f657f18..fac43e9a 100644 --- a/addons/cclua/cocos2d/library/cc/Spawn.lua +++ b/addons/cclua/cocos2d/library/cc/Spawn.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Spawn ---\class Spawn @@ -15,22 +16,171 @@ local Spawn = {} ---\return An autoreleased Spawn object. ---@param action1 cc.FiniteTimeAction ---@return cc.Spawn +--- +---Helper constructor to create an array of spawned actions. +---\code +---When this function bound to the js or lua, the input params changed. +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\return An autoreleased Spawn object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction): cc.Spawn +--- +---Helper constructor to create an array of spawned actions. +---\code +---When this function bound to the js or lua, the input params changed. +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\return An autoreleased Spawn object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction): cc.Spawn +--- +---Helper constructor to create an array of spawned actions. +---\code +---When this function bound to the js or lua, the input params changed. +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\return An autoreleased Spawn object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction): cc.Spawn +--- +---Helper constructor to create an array of spawned actions. +---\code +---When this function bound to the js or lua, the input params changed. +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\return An autoreleased Spawn object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction): cc.Spawn +--- +---Helper constructor to create an array of spawned actions. +---\code +---When this function bound to the js or lua, the input params changed. +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\return An autoreleased Spawn object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction): cc.Spawn +--- +---Helper constructor to create an array of spawned actions. +---\code +---When this function bound to the js or lua, the input params changed. +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\return An autoreleased Spawn object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction): cc.Spawn +--- +---Helper constructor to create an array of spawned actions. +---\code +---When this function bound to the js or lua, the input params changed. +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\return An autoreleased Spawn object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction): cc.Spawn +--- +---Helper constructor to create an array of spawned actions. +---\code +---When this function bound to the js or lua, the input params changed. +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\return An autoreleased Spawn object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction): cc.Spawn +--- +---Helper constructor to create an array of spawned actions. +---\code +---When this function bound to the js or lua, the input params changed. +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\return An autoreleased Spawn object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction, action1_9: cc.FiniteTimeAction): cc.Spawn +--- +---Helper constructor to create an array of spawned actions. +---\code +---When this function bound to the js or lua, the input params changed. +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\return An autoreleased Spawn object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction, action1_9: cc.FiniteTimeAction, action1_10: cc.FiniteTimeAction): cc.Spawn +--- +---Helper constructor to create an array of spawned actions. +---\code +---When this function bound to the js or lua, the input params changed. +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\return An autoreleased Spawn object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction, action1_9: cc.FiniteTimeAction, action1_10: cc.FiniteTimeAction, action1_11: cc.FiniteTimeAction): cc.Spawn +--- +---Helper constructor to create an array of spawned actions. +---\code +---When this function bound to the js or lua, the input params changed. +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\return An autoreleased Spawn object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction, action1_9: cc.FiniteTimeAction, action1_10: cc.FiniteTimeAction, action1_11: cc.FiniteTimeAction, action1_12: cc.FiniteTimeAction): cc.Spawn +--- +---Helper constructor to create an array of spawned actions. +---\code +---When this function bound to the js or lua, the input params changed. +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\return An autoreleased Spawn object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction, action1_9: cc.FiniteTimeAction, action1_10: cc.FiniteTimeAction, action1_11: cc.FiniteTimeAction, action1_12: cc.FiniteTimeAction, action1_13: cc.FiniteTimeAction): cc.Spawn +--- +---Helper constructor to create an array of spawned actions. +---\code +---When this function bound to the js or lua, the input params changed. +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\return An autoreleased Spawn object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction, action1_9: cc.FiniteTimeAction, action1_10: cc.FiniteTimeAction, action1_11: cc.FiniteTimeAction, action1_12: cc.FiniteTimeAction, action1_13: cc.FiniteTimeAction, action1_14: cc.FiniteTimeAction): cc.Spawn +--- +---Helper constructor to create an array of spawned actions. +---\code +---When this function bound to the js or lua, the input params changed. +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\return An autoreleased Spawn object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction, action1_9: cc.FiniteTimeAction, action1_10: cc.FiniteTimeAction, action1_11: cc.FiniteTimeAction, action1_12: cc.FiniteTimeAction, action1_13: cc.FiniteTimeAction, action1_14: cc.FiniteTimeAction, action1_15: cc.FiniteTimeAction): cc.Spawn +--- +---Helper constructor to create an array of spawned actions. +---\code +---When this function bound to the js or lua, the input params changed. +---in js :var create(var object1,var object2, ...) +---in lua :local create(local object1,local object2, ...) +---\endcode +--- +---\return An autoreleased Spawn object. ---@overload fun(action1: cc.FiniteTimeAction, action1_1: cc.FiniteTimeAction, action1_2: cc.FiniteTimeAction, action1_3: cc.FiniteTimeAction, action1_4: cc.FiniteTimeAction, action1_5: cc.FiniteTimeAction, action1_6: cc.FiniteTimeAction, action1_7: cc.FiniteTimeAction, action1_8: cc.FiniteTimeAction, action1_9: cc.FiniteTimeAction, action1_10: cc.FiniteTimeAction, action1_11: cc.FiniteTimeAction, action1_12: cc.FiniteTimeAction, action1_13: cc.FiniteTimeAction, action1_14: cc.FiniteTimeAction, action1_15: cc.FiniteTimeAction, action1_16: cc.FiniteTimeAction): cc.Spawn +--- +---Helper constructor to create an array of spawned actions given an array. +--- +---\param arrayOfActions An array of spawned actions. +---\return An autoreleased Spawn object. ---@overload fun(arrayOfActions: any): cc.Spawn function Spawn.create(action1) end diff --git a/addons/cclua/cocos2d/library/cc/Speed.lua b/addons/cclua/cocos2d/library/cc/Speed.lua index 06f7a247..8f0bc422 100644 --- a/addons/cclua/cocos2d/library/cc/Speed.lua +++ b/addons/cclua/cocos2d/library/cc/Speed.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Speed ---\class Speed diff --git a/addons/cclua/cocos2d/library/cc/SplitCols.lua b/addons/cclua/cocos2d/library/cc/SplitCols.lua index a7b644cc..97a56a90 100644 --- a/addons/cclua/cocos2d/library/cc/SplitCols.lua +++ b/addons/cclua/cocos2d/library/cc/SplitCols.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.SplitCols ---\brief SplitCols action. diff --git a/addons/cclua/cocos2d/library/cc/SplitRows.lua b/addons/cclua/cocos2d/library/cc/SplitRows.lua index 06c17f32..cf39325a 100644 --- a/addons/cclua/cocos2d/library/cc/SplitRows.lua +++ b/addons/cclua/cocos2d/library/cc/SplitRows.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.SplitRows ---\brief SplitRows action. diff --git a/addons/cclua/cocos2d/library/cc/SpotLight.lua b/addons/cclua/cocos2d/library/cc/SpotLight.lua index 5465d59c..3cc30557 100644 --- a/addons/cclua/cocos2d/library/cc/SpotLight.lua +++ b/addons/cclua/cocos2d/library/cc/SpotLight.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.SpotLight ---\js NA diff --git a/addons/cclua/cocos2d/library/cc/Sprite.lua b/addons/cclua/cocos2d/library/cc/Sprite.lua index 2cc85a0b..36ec3b68 100644 --- a/addons/cclua/cocos2d/library/cc/Sprite.lua +++ b/addons/cclua/cocos2d/library/cc/Sprite.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Sprite ---\addtogroup ui @@ -32,7 +33,21 @@ function Sprite:as(cls) end ---\memberof Sprite ---\return An autoreleased sprite object. ---@return cc.Sprite +--- +---Creates a sprite with an image filename. +--- +---After creation, the rect of sprite will be the size of the image, +---and the offset will be (0,0). +--- +---\param filename A path to image file, e.g., "scene1/monster.png". +---\return An autoreleased sprite object. ---@overload fun(filename: string): cc.Sprite +--- +---Creates a sprite with an image filename and a rect. +--- +---\param filename A path to image file, e.g., "scene1/monster.png". +---\param rect A subrect of the image file. +---\return An autoreleased sprite object. ---@overload fun(filename: string, rect: cc.Rect): cc.Sprite function Sprite.create() end @@ -63,7 +78,27 @@ function Sprite.createWithSpriteFrameName(spriteFrameName) end ---\return An autoreleased sprite object. ---@param texture cc.Texture2D ---@return cc.Sprite +--- +---Creates a sprite with a texture and a rect. +--- +---After creation, the offset will be (0,0). +--- +---\param texture A pointer to an existing Texture2D object. +---You can use a Texture2D object for many sprites. +---\param rect Only the contents inside the rect of this texture will be applied for this sprite. +---\param rotated Whether or not the rect is rotated. +---\return An autoreleased sprite object. ---@overload fun(texture: cc.Texture2D, rect: cc.Rect, rotated: boolean): cc.Sprite +--- +---Creates a sprite with a texture and a rect. +--- +---After creation, the offset will be (0,0). +--- +---\param texture A pointer to an existing Texture2D object. +---You can use a Texture2D object for many sprites. +---\param rect Only the contents inside the rect of this texture will be applied for this sprite. +---\param rotated Whether or not the rect is rotated. +---\return An autoreleased sprite object. ---@overload fun(texture: cc.Texture2D, rect: cc.Rect): cc.Sprite function Sprite.createWithTexture(texture) end @@ -133,6 +168,17 @@ function Sprite:getTextureRect() end ---\lua init ---@param filename string ---@return boolean +--- +---Initializes a sprite with an image filename, and a rect. +--- +---This method will find filename from local file system, load its content to Texture2D, +---then use Texture2D to create a sprite. +---After initialization, the offset will be (0,0). +--- +---\param filename The path to an image file in local file system. +---\param rect The rectangle assigned the content area from texture. +---\return True if the sprite is initialized properly, false otherwise. +---\lua init ---@overload fun(self: cc.Sprite, filename: string, rect: cc.Rect): boolean function Sprite:initWithFile(filename) end @@ -164,7 +210,26 @@ function Sprite:initWithSpriteFrameName(spriteFrameName) end ---\return True if the sprite is initialized properly, false otherwise. ---@param texture cc.Texture2D ---@return boolean +--- +---Initializes a sprite with a texture and a rect. +--- +---After initialization, the offset will be (0,0). +--- +---\param texture A pointer to an existing Texture2D object. +---You can use a Texture2D object for many sprites. +---\param rect Only the contents inside rect of this texture will be applied for this sprite. +---\return True if the sprite is initialized properly, false otherwise. ---@overload fun(self: cc.Sprite, texture: cc.Texture2D, rect: cc.Rect): boolean +--- +---Initializes a sprite with a texture and a rect in points, optionally rotated. +--- +---After initialization, the offset will be (0,0). +---\note This is the designated initializer. +--- +---\param texture A Texture2D object whose texture will be applied to this sprite. +---\param rect A rectangle assigned the contents of texture. +---\param rotated Whether or not the texture rectangle is rotated. +---\return True if the sprite is initialized properly, false otherwise. ---@overload fun(self: cc.Sprite, texture: cc.Texture2D, rect: cc.Rect, rotated: boolean): boolean function Sprite:initWithTexture(texture) end @@ -297,6 +362,10 @@ function Sprite:setStretchEnabled(enabled) end ---\memberof Sprite ---It will call `setTextureRect()` with the texture's content size. ---@param filename string +--- +---\overload +--- +---The Texture's rect is not changed. ---@overload fun(self: cc.Sprite, texture: cc.Texture2D) function Sprite:setTexture(filename) end @@ -308,6 +377,10 @@ function Sprite:setTextureAtlas(textureAtlas) end --- ---It will call setTextureRect(const Rect& rect, bool rotated, const Size& untrimmedSize) with \p rotated = false, and \p utrimmedSize = rect.size. ---@param rect cc.Rect +--- +---\overload +--- +---It will update the texture coordinates and the vertex rectangle. ---@overload fun(self: cc.Sprite, rect: cc.Rect, rotated: boolean, untrimmedSize: cc.Size) function Sprite:setTextureRect(rect) end diff --git a/addons/cclua/cocos2d/library/cc/Sprite3D.lua b/addons/cclua/cocos2d/library/cc/Sprite3D.lua index 8f1d9d59..d8b25803 100644 --- a/addons/cclua/cocos2d/library/cc/Sprite3D.lua +++ b/addons/cclua/cocos2d/library/cc/Sprite3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Sprite3D ---\brief Sprite3D: A sprite can be loaded from 3D model files, .obj, .c3t, .c3b, then can be drawn as sprite @@ -25,6 +26,8 @@ function Sprite3D:as(cls) end --- ---\return An autoreleased sprite3D object. ---@return cc.Sprite3D +--- +---creates a Sprite3D ---@overload fun(modelPath: string): cc.Sprite3D ---@overload fun(modelPath: string, texturePath: string): cc.Sprite3D function Sprite3D.create() end @@ -44,6 +47,8 @@ function Sprite3D.createAsync(modelPath, callback, callbackparam) end ---generate default material ---@param useLight boolean +--- +---generate default material ---@overload fun(self: cc.Sprite3D) function Sprite3D:genMaterial(useLight) end @@ -146,6 +151,10 @@ function Sprite3D:setLightMask(mask) end ---The Material will be applied to all the meshes that belong to the sprite. ---Internally it will call `setMaterial(material,-1)` ---@param material cc.Material +--- +---Adds a new material to a particular mesh of the sprite. +---meshIndex is the mesh that will be applied to. +---if meshIndex == -1, then it will be applied to all the meshes that belong to the sprite. ---@overload fun(self: cc.Sprite3D, material: cc.Material, meshIndex: integer) function Sprite3D:setMaterial(material) end diff --git a/addons/cclua/cocos2d/library/cc/Sprite3DMaterial.lua b/addons/cclua/cocos2d/library/cc/Sprite3DMaterial.lua index e218c13f..9b70fca7 100644 --- a/addons/cclua/cocos2d/library/cc/Sprite3DMaterial.lua +++ b/addons/cclua/cocos2d/library/cc/Sprite3DMaterial.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Sprite3DMaterial ---\brief Sprite3DMaterial: Material for Sprite3D. @@ -12,6 +13,8 @@ local Sprite3DMaterial = {} ---@param type cc.Sprite3DMaterial.MaterialType ---@param skinned boolean ---@return cc.Sprite3DMaterial +--- +---Create all build in materials ---@overload fun() function Sprite3DMaterial.createBuiltInMaterial(type, skinned) end diff --git a/addons/cclua/cocos2d/library/cc/Sprite3DMaterial/MaterialType.lua b/addons/cclua/cocos2d/library/cc/Sprite3DMaterial/MaterialType.lua index 0c5deb95..12bdf0ec 100644 --- a/addons/cclua/cocos2d/library/cc/Sprite3DMaterial/MaterialType.lua +++ b/addons/cclua/cocos2d/library/cc/Sprite3DMaterial/MaterialType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Sprite3DMaterial.MaterialType ---@type cc.Sprite3DMaterial.MaterialType diff --git a/addons/cclua/cocos2d/library/cc/SpriteBatchNode.lua b/addons/cclua/cocos2d/library/cc/SpriteBatchNode.lua index 65ac2bbe..7cc2386d 100644 --- a/addons/cclua/cocos2d/library/cc/SpriteBatchNode.lua +++ b/addons/cclua/cocos2d/library/cc/SpriteBatchNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.SpriteBatchNode ---SpriteBatchNode is like a batch node: if it contains children, it will draw them in 1 single OpenGL call @@ -57,6 +58,14 @@ function SpriteBatchNode:atlasIndexForChild(sprite, z) end ---@param fileImage string ---@param capacity integer ---@return cc.SpriteBatchNode +--- +---Creates a SpriteBatchNode with a file image (.png, .jpeg, .pvr, etc) and capacity of children. +---The capacity will be increased in 33% in runtime if it runs out of space. +---The file will be loaded using the TextureMgr. +--- +---\param fileImage A file image (.png, .jpeg, .pvr, etc). +---\param capacity The capacity of children. +---\return Return an autorelease object. ---@overload fun(fileImage: string): cc.SpriteBatchNode function SpriteBatchNode.create(fileImage, capacity) end @@ -69,6 +78,13 @@ function SpriteBatchNode.create(fileImage, capacity) end ---@param tex cc.Texture2D ---@param capacity integer ---@return cc.SpriteBatchNode +--- +---Creates a SpriteBatchNode with a texture2d and capacity of children. +---The capacity will be increased in 33% in runtime if it runs out of space. +--- +---\param tex A texture2d. +---\param capacity The capacity of children. +---\return Return an autorelease object. ---@overload fun(tex: cc.Texture2D): cc.SpriteBatchNode function SpriteBatchNode.createWithTexture(tex, capacity) end @@ -111,6 +127,12 @@ function SpriteBatchNode:increaseAtlasCapacity() end ---@param fileImage string ---@param capacity integer ---@return boolean +--- +---initializes a SpriteBatchNode with a file image (.png, .jpeg, .pvr, etc) and a capacity of children. +---The capacity will be increased in 33% in runtime if it runs out of space. +---The file will be loaded using the TextureMgr. +---\js init +---\lua init ---@overload fun(self: cc.SpriteBatchNode, fileImage: string): boolean function SpriteBatchNode:initWithFile(fileImage, capacity) end @@ -119,6 +141,9 @@ function SpriteBatchNode:initWithFile(fileImage, capacity) end ---@param tex cc.Texture2D ---@param capacity integer ---@return boolean +--- +---initializes a SpriteBatchNode with a texture2d and capacity of children. +---The capacity will be increased in 33% in runtime if it runs out of space. ---@overload fun(self: cc.SpriteBatchNode, tex: cc.Texture2D): boolean function SpriteBatchNode:initWithTexture(tex, capacity) end diff --git a/addons/cclua/cocos2d/library/cc/SpriteFrame.lua b/addons/cclua/cocos2d/library/cc/SpriteFrame.lua index f43f8c95..cd31b052 100644 --- a/addons/cclua/cocos2d/library/cc/SpriteFrame.lua +++ b/addons/cclua/cocos2d/library/cc/SpriteFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.SpriteFrame ---\class SpriteFrame @@ -39,6 +40,16 @@ function SpriteFrame:clone() end ---@param filename string ---@param rect cc.Rect ---@return cc.SpriteFrame +--- +---Create a SpriteFrame with a texture filename, rect, rotated, offset and originalSize in pixels. +---The originalSize is the size in pixels of the frame before being trimmed. +--- +---\param filename Texture filename +---\param rect A specified rect. +---\param rotated Is rotated if true. +---\param offset A specified offset. +---\param originalSize A specified original size. +---\return An autoreleased SpriteFrame object. ---@overload fun(filename: string, rect: cc.Rect, rotated: boolean, offset: cc.Vec2, originalSize: cc.Size): cc.SpriteFrame function SpriteFrame.create(filename, rect) end @@ -50,6 +61,15 @@ function SpriteFrame.create(filename, rect) end ---@param pobTexture cc.Texture2D ---@param rect cc.Rect ---@return cc.SpriteFrame +--- +---Create a SpriteFrame with a texture, rect, rotated, offset and originalSize in pixels. +---The originalSize is the size in points of the frame before being trimmed. +---\param pobTexture The texture pointer. +---\param rect A specified rect. +---\param rotated Is rotated if true. +---\param offset A specified offset. +---\param originalSize A specified original size. +---\return An autoreleased SpriteFrame object. ---@overload fun(pobTexture: cc.Texture2D, rect: cc.Rect, rotated: boolean, offset: cc.Vec2, originalSize: cc.Size): cc.SpriteFrame function SpriteFrame.createWithTexture(pobTexture, rect) end @@ -131,6 +151,9 @@ function SpriteFrame:hasPolygonInfo() end ---@param pobTexture cc.Texture2D ---@param rect cc.Rect ---@return boolean +--- +---Initializes a SpriteFrame with a texture, rect, rotated, offset and originalSize in pixels. +---The originalSize is the size in points of the frame before being trimmed. ---@overload fun(self: cc.SpriteFrame, pobTexture: cc.Texture2D, rect: cc.Rect, rotated: boolean, offset: cc.Vec2, originalSize: cc.Size): boolean function SpriteFrame:initWithTexture(pobTexture, rect) end @@ -139,6 +162,11 @@ function SpriteFrame:initWithTexture(pobTexture, rect) end ---@param filename string ---@param rect cc.Rect ---@return boolean +--- +---Initializes a SpriteFrame with a texture, rect, rotated, offset and originalSize in pixels. +---The originalSize is the size in pixels of the frame before being trimmed. +--- +---\since v1.1 ---@overload fun(self: cc.SpriteFrame, filename: string, rect: cc.Rect, rotated: boolean, offset: cc.Vec2, originalSize: cc.Size): boolean function SpriteFrame:initWithTextureFilename(filename, rect) end diff --git a/addons/cclua/cocos2d/library/cc/SpriteFrameCache.lua b/addons/cclua/cocos2d/library/cc/SpriteFrameCache.lua index 7954ac3c..cf125f98 100644 --- a/addons/cclua/cocos2d/library/cc/SpriteFrameCache.lua +++ b/addons/cclua/cocos2d/library/cc/SpriteFrameCache.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.SpriteFrameCache ---\class SpriteFrameCache @@ -54,7 +55,22 @@ function SpriteFrameCache:addSpriteFrame(frame, frameName) end --- ---\param plist Plist file name. ---@param plist string +--- +---Adds multiple Sprite Frames from a plist file. The texture will be associated with the created sprite frames. +---\since v0.99.5 +---\js addSpriteFrames +---\lua addSpriteFrames +--- +---\param plist Plist file name. +---\param textureFileName Texture file name. ---@overload fun(self: cc.SpriteFrameCache, plist: string, textureFileName: string) +--- +---Adds multiple Sprite Frames from a plist file. The texture will be associated with the created sprite frames. +---\js addSpriteFrames +---\lua addSpriteFrames +--- +---\param plist Plist file name. +---\param texture Texture pointer. ---@overload fun(self: cc.SpriteFrameCache, plist: string, texture: cc.Texture2D) function SpriteFrameCache:addSpriteFramesWithFile(plist) end diff --git a/addons/cclua/cocos2d/library/cc/StopGrid.lua b/addons/cclua/cocos2d/library/cc/StopGrid.lua index 6c9380db..22ddc27f 100644 --- a/addons/cclua/cocos2d/library/cc/StopGrid.lua +++ b/addons/cclua/cocos2d/library/cc/StopGrid.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.StopGrid ---\brief StopGrid action. diff --git a/addons/cclua/cocos2d/library/cc/T2F_Quad.lua b/addons/cclua/cocos2d/library/cc/T2F_Quad.lua index 503c1904..cb1adfa3 100644 --- a/addons/cclua/cocos2d/library/cc/T2F_Quad.lua +++ b/addons/cclua/cocos2d/library/cc/T2F_Quad.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.T2F_Quad ---\struct T2F_Quad diff --git a/addons/cclua/cocos2d/library/cc/TMXLayer.lua b/addons/cclua/cocos2d/library/cc/TMXLayer.lua index 9003a16f..3fb64b51 100644 --- a/addons/cclua/cocos2d/library/cc/TMXLayer.lua +++ b/addons/cclua/cocos2d/library/cc/TMXLayer.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TMXLayer ---\brief TMXLayer represents the TMX layer. @@ -107,8 +108,15 @@ function TMXLayer:getTileAt(tileCoordinate) end ---\return Returns the tile gid at a given tile coordinate. It also returns the tile flags. ---@param tileCoordinate cc.Vec2 ---@param flags cc.TMXTileFlags ----@return any ----@overload fun(self: cc.TMXLayer, tileCoordinate: cc.Vec2): any +---@return integer +--- +---Returns the tile gid at a given tile coordinate. It also returns the tile flags. +---This method requires the tile map has not been previously released (eg. don't call [layer releaseMap]). +--- +---\param tileCoordinate The tile coordinate. +---\param flags Tile flags. +---\return Returns the tile gid at a given tile coordinate. It also returns the tile flags. +---@overload fun(self: cc.TMXLayer, tileCoordinate: cc.Vec2): integer function TMXLayer:getTileGIDAt(tileCoordinate, flags) end ---Tileset information for the layer. @@ -187,9 +195,18 @@ function TMXLayer:setProperties(properties) end --- ---\param gid The tile gid. ---\param tileCoordinate The tile coordinate. ----@param gid any +---@param gid integer ---@param tileCoordinate cc.Vec2 ----@overload fun(self: cc.TMXLayer, gid: any, tileCoordinate: cc.Vec2, flags: cc.TMXTileFlags) +--- +---Sets the tile gid (gid = tile global id) at a given tile coordinate. +---The Tile GID can be obtained by using the method "tileGIDAt" or by using the TMX editor -> Tileset Mgr +1. +---If a tile is already placed at that position, then it will be removed. +---Use withFlags if the tile flags need to be changed as well. +--- +---\param gid The tile gid. +---\param tileCoordinate The tile coordinate. +---\param flags The tile flags. +---@overload fun(self: cc.TMXLayer, gid: integer, tileCoordinate: cc.Vec2, flags: cc.TMXTileFlags) function TMXLayer:setTileGID(gid, tileCoordinate) end ---Set tileset information for the layer. diff --git a/addons/cclua/cocos2d/library/cc/TMXLayerInfo.lua b/addons/cclua/cocos2d/library/cc/TMXLayerInfo.lua index 866fc03f..6aac64b1 100644 --- a/addons/cclua/cocos2d/library/cc/TMXLayerInfo.lua +++ b/addons/cclua/cocos2d/library/cc/TMXLayerInfo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TMXLayerInfo ---\brief TMXLayerInfo contains the information about the layers like: diff --git a/addons/cclua/cocos2d/library/cc/TMXMapInfo.lua b/addons/cclua/cocos2d/library/cc/TMXMapInfo.lua index 233bd1c2..68760b47 100644 --- a/addons/cclua/cocos2d/library/cc/TMXMapInfo.lua +++ b/addons/cclua/cocos2d/library/cc/TMXMapInfo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TMXMapInfo ---\brief TMXMapInfo contains the information about the map like: diff --git a/addons/cclua/cocos2d/library/cc/TMXObjectGroup.lua b/addons/cclua/cocos2d/library/cc/TMXObjectGroup.lua index 125b7e76..02d2951d 100644 --- a/addons/cclua/cocos2d/library/cc/TMXObjectGroup.lua +++ b/addons/cclua/cocos2d/library/cc/TMXObjectGroup.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TMXObjectGroup ---\brief TMXObjectGroup represents the TMX object group. diff --git a/addons/cclua/cocos2d/library/cc/TMXTileFlags.lua b/addons/cclua/cocos2d/library/cc/TMXTileFlags.lua index 2fdbe894..d04dd6a4 100644 --- a/addons/cclua/cocos2d/library/cc/TMXTileFlags.lua +++ b/addons/cclua/cocos2d/library/cc/TMXTileFlags.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TMXTileFlags ---@type cc.TMXTileFlags diff --git a/addons/cclua/cocos2d/library/cc/TMXTiledMap.lua b/addons/cclua/cocos2d/library/cc/TMXTiledMap.lua index e5b9949a..b0f1c7e5 100644 --- a/addons/cclua/cocos2d/library/cc/TMXTiledMap.lua +++ b/addons/cclua/cocos2d/library/cc/TMXTiledMap.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TMXTiledMap ---\brief TMXTiledMap knows how to parse and render a TMX map. diff --git a/addons/cclua/cocos2d/library/cc/TMXTilesetInfo.lua b/addons/cclua/cocos2d/library/cc/TMXTilesetInfo.lua index 70073ce8..ed17d500 100644 --- a/addons/cclua/cocos2d/library/cc/TMXTilesetInfo.lua +++ b/addons/cclua/cocos2d/library/cc/TMXTilesetInfo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TMXTilesetInfo ---\brief TMXTilesetInfo contains the information about the tilesets like: @@ -12,7 +13,7 @@ ---@class cc.TMXTilesetInfo : cc.Ref local TMXTilesetInfo = {} ----@param gid any +---@param gid integer ---@return cc.Rect function TMXTilesetInfo:getRectForGID(gid) end diff --git a/addons/cclua/cocos2d/library/cc/TTFConfig.lua b/addons/cclua/cocos2d/library/cc/TTFConfig.lua index b6e88445..5fa5f403 100644 --- a/addons/cclua/cocos2d/library/cc/TTFConfig.lua +++ b/addons/cclua/cocos2d/library/cc/TTFConfig.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TTFConfig ---\struct TTFConfig diff --git a/addons/cclua/cocos2d/library/cc/TargetedAction.lua b/addons/cclua/cocos2d/library/cc/TargetedAction.lua index 68b384d7..ec035a8e 100644 --- a/addons/cclua/cocos2d/library/cc/TargetedAction.lua +++ b/addons/cclua/cocos2d/library/cc/TargetedAction.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TargetedAction ---\class TargetedAction diff --git a/addons/cclua/cocos2d/library/cc/Technique.lua b/addons/cclua/cocos2d/library/cc/Technique.lua index 77751622..2e66dc57 100644 --- a/addons/cclua/cocos2d/library/cc/Technique.lua +++ b/addons/cclua/cocos2d/library/cc/Technique.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Technique ---Technique diff --git a/addons/cclua/cocos2d/library/cc/Tex2F.lua b/addons/cclua/cocos2d/library/cc/Tex2F.lua index 43d28d37..4dffb0d9 100644 --- a/addons/cclua/cocos2d/library/cc/Tex2F.lua +++ b/addons/cclua/cocos2d/library/cc/Tex2F.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Tex2F ---\struct Tex2F diff --git a/addons/cclua/cocos2d/library/cc/TextFieldDelegate.lua b/addons/cclua/cocos2d/library/cc/TextFieldDelegate.lua index 76263d58..414392cf 100644 --- a/addons/cclua/cocos2d/library/cc/TextFieldDelegate.lua +++ b/addons/cclua/cocos2d/library/cc/TextFieldDelegate.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TextFieldDelegate ---A input protocol for TextField. @@ -39,7 +40,7 @@ function TextFieldDelegate:onTextFieldInsertText(sender, text, nLen) end ---@param sender cc.TextFieldTTF ---@param renderer cc.Renderer ---@param transform cc.Mat4 ----@param flags any +---@param flags integer ---@return boolean function TextFieldDelegate:onVisit(sender, renderer, transform, flags) end diff --git a/addons/cclua/cocos2d/library/cc/TextFieldTTF.lua b/addons/cclua/cocos2d/library/cc/TextFieldTTF.lua index 44710ab7..9d752415 100644 --- a/addons/cclua/cocos2d/library/cc/TextFieldTTF.lua +++ b/addons/cclua/cocos2d/library/cc/TextFieldTTF.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TextFieldTTF ---\addtogroup ui @@ -57,6 +58,8 @@ function TextFieldTTF:getPlaceHolder() end ---@param fontName string ---@param fontSize number ---@return boolean +--- +---Initializes the TextFieldTTF with a font name and font size. ---@overload fun(self: cc.TextFieldTTF, placeholder: string, fontName: string, fontSize: number): boolean function TextFieldTTF:initWithPlaceHolder(placeholder, dimensions, alignment, fontName, fontSize) end @@ -74,6 +77,9 @@ function TextFieldTTF.new() end ---\brief Change input placeholder color. ---\param color A color value in `Color3B`. ---@param color any +--- +---Change the placeholder color. +---\param color The placeholder color in Color4B. ---@overload fun(self: cc.TextFieldTTF, color: any) function TextFieldTTF:setColorSpaceHolder(color) end @@ -126,6 +132,9 @@ function TextFieldTTF:setSecureTextEntry(value) end ---@param fontName string ---@param fontSize number ---@return cc.TextFieldTTF +--- +---Creates a TextFieldTTF from a fontname and font size. +---\js NA ---@overload fun(placeholder: string, fontName: string, fontSize: number): cc.TextFieldTTF function TextFieldTTF.textFieldWithPlaceHolder(placeholder, dimensions, alignment, fontName, fontSize) end diff --git a/addons/cclua/cocos2d/library/cc/TextHAlignment.lua b/addons/cclua/cocos2d/library/cc/TextHAlignment.lua index a7a4ac04..db14c6a0 100644 --- a/addons/cclua/cocos2d/library/cc/TextHAlignment.lua +++ b/addons/cclua/cocos2d/library/cc/TextHAlignment.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TextHAlignment ---@type cc.TextHAlignment diff --git a/addons/cclua/cocos2d/library/cc/TextVAlignment.lua b/addons/cclua/cocos2d/library/cc/TextVAlignment.lua index b868bcab..4a57cd13 100644 --- a/addons/cclua/cocos2d/library/cc/TextVAlignment.lua +++ b/addons/cclua/cocos2d/library/cc/TextVAlignment.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TextVAlignment ---@type cc.TextVAlignment diff --git a/addons/cclua/cocos2d/library/cc/Texture2D.lua b/addons/cclua/cocos2d/library/cc/Texture2D.lua index b4bb53d4..a80a0baa 100644 --- a/addons/cclua/cocos2d/library/cc/Texture2D.lua +++ b/addons/cclua/cocos2d/library/cc/Texture2D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Texture2D ---\brief Texture2D class. This class allows to easily create OpenGL 2D textures from images, text or raw data. @@ -52,6 +53,9 @@ function Texture2D:getBackendTexture() end ---Returns the bits-per-pixel of the in-memory OpenGL texture ---\since v1.0 ---@return integer +--- +---Helper functions that returns bits per pixels for a given format. +---\since v2.0 ---@overload fun(self: cc.Texture2D, format: ccb.PixelFormat): integer function Texture2D:getBitsPerPixelForFormat() end @@ -133,8 +137,46 @@ function Texture2D:initWithBackendTexture(texture, preMultipliedAlpha) end ---@param contentSize cc.Size ---@param preMultipliedAlpha boolean ---@return boolean +--- +---Initializes with a texture2d with data. +--- +---\param data Specifies a pointer to the image data in memory. +---\param dataLen The image data length. +---\param pixelFormat The image pixelFormat. +---\param pixelsWide The image width. +---\param pixelsHigh The image height. +---\param contentSize The image content size. +---\param preMultipliedAlpha The texture has premultiplied alpha +---\js NA +---\lua NA ---@overload fun(self: cc.Texture2D, data: any, dataLen: integer, pixelFormat: ccb.PixelFormat, pixelsWide: integer, pixelsHigh: integer, contentSize: cc.Size): boolean +--- +---Initializes with a texture2d with data. +--- +---\param data Specifies a pointer to the image data in memory. +---\param dataLen The image data length. +---\param pixelFormat The image pixelFormat. +---\param renderFormat The format converted to. +---\param pixelsWide The image width. +---\param pixelsHigh The image height. +---\param contentSize The image content size. +---\param preMultipliedAlpha The texture has premultiplied alpha +---\js NA +---\lua NA ---@overload fun(self: cc.Texture2D, data: any, dataLen: integer, pixelFormat: ccb.PixelFormat, renderFormat: ccb.PixelFormat, pixelsWide: integer, pixelsHigh: integer, contentSize: cc.Size, preMultipliedAlpha: boolean): boolean +--- +---Initializes with a texture2d with data. +--- +---\param data Specifies a pointer to the image data in memory. +---\param dataLen The image data length. +---\param pixelFormat The image pixelFormat. +---\param renderFormat The format converted to. +---\param pixelsWide The image width. +---\param pixelsHigh The image height. +---\param contentSize The image content size. +---\param preMultipliedAlpha The texture has premultiplied alpha +---\js NA +---\lua NA ---@overload fun(self: cc.Texture2D, data: any, dataLen: integer, pixelFormat: ccb.PixelFormat, renderFormat: ccb.PixelFormat, pixelsWide: integer, pixelsHigh: integer, contentSize: cc.Size): boolean function Texture2D:initWithData(data, dataLen, pixelFormat, pixelsWide, pixelsHigh, contentSize, preMultipliedAlpha) end @@ -147,6 +189,12 @@ function Texture2D:initWithData(data, dataLen, pixelFormat, pixelsWide, pixelsHi ---\param image An UIImage object. ---@param image cc.Image ---@return boolean +--- +---Initializes a texture from a UIImage object. +---We will use the format you passed to the function to convert the image format to the texture format. +---If you pass PixelFormat::Automatic, we will auto detect the image render type and use that type for texture to render. +---\param image An UIImage object. +---\param format Texture pixel formats. ---@overload fun(self: cc.Texture2D, image: cc.Image, format: ccb.PixelFormat): boolean function Texture2D:initWithImage(image) end @@ -169,10 +217,65 @@ function Texture2D:initWithImage(image) end ---@param enableWrap boolean ---@param overflow integer ---@return boolean +--- +---Initializes a texture from a string with dimensions, alignment, font name and font size. +--- +---\param text A null terminated string. +---\param fontName The font name. +---\param fontSize The font size. +---\param dimensions The font dimension. +---\param hAlignment The font horizontal text alignment type. +---\param vAlignment The font vertical text alignment type. +---\param enableWrap Whether enable text wrap or not. +---\param overflow Whether shrink font size when content larger than the dimensions. ---@overload fun(self: cc.Texture2D, text: string, fontName: string, fontSize: number): boolean +--- +---Initializes a texture from a string with dimensions, alignment, font name and font size. +--- +---\param text A null terminated string. +---\param fontName The font name. +---\param fontSize The font size. +---\param dimensions The font dimension. +---\param hAlignment The font horizontal text alignment type. +---\param vAlignment The font vertical text alignment type. +---\param enableWrap Whether enable text wrap or not. +---\param overflow Whether shrink font size when content larger than the dimensions. ---@overload fun(self: cc.Texture2D, text: string, fontName: string, fontSize: number, dimensions: cc.Size): boolean +--- +---Initializes a texture from a string with dimensions, alignment, font name and font size. +--- +---\param text A null terminated string. +---\param fontName The font name. +---\param fontSize The font size. +---\param dimensions The font dimension. +---\param hAlignment The font horizontal text alignment type. +---\param vAlignment The font vertical text alignment type. +---\param enableWrap Whether enable text wrap or not. +---\param overflow Whether shrink font size when content larger than the dimensions. ---@overload fun(self: cc.Texture2D, text: string, fontName: string, fontSize: number, dimensions: cc.Size, hAlignment: cc.TextHAlignment): boolean +--- +---Initializes a texture from a string with dimensions, alignment, font name and font size. +--- +---\param text A null terminated string. +---\param fontName The font name. +---\param fontSize The font size. +---\param dimensions The font dimension. +---\param hAlignment The font horizontal text alignment type. +---\param vAlignment The font vertical text alignment type. +---\param enableWrap Whether enable text wrap or not. +---\param overflow Whether shrink font size when content larger than the dimensions. ---@overload fun(self: cc.Texture2D, text: string, fontName: string, fontSize: number, dimensions: cc.Size, hAlignment: cc.TextHAlignment, vAlignment: cc.TextVAlignment): boolean +--- +---Initializes a texture from a string with dimensions, alignment, font name and font size. +--- +---\param text A null terminated string. +---\param fontName The font name. +---\param fontSize The font size. +---\param dimensions The font dimension. +---\param hAlignment The font horizontal text alignment type. +---\param vAlignment The font vertical text alignment type. +---\param enableWrap Whether enable text wrap or not. +---\param overflow Whether shrink font size when content larger than the dimensions. ---@overload fun(self: cc.Texture2D, text: string, fontName: string, fontSize: number, dimensions: cc.Size, hAlignment: cc.TextHAlignment, vAlignment: cc.TextVAlignment, enableWrap: boolean): boolean function Texture2D:initWithString(text, fontName, fontSize, dimensions, hAlignment, vAlignment, enableWrap, overflow) end diff --git a/addons/cclua/cocos2d/library/cc/Texture2D/PixelFormatInfo.lua b/addons/cclua/cocos2d/library/cc/Texture2D/PixelFormatInfo.lua index adfa47f7..29f06a48 100644 --- a/addons/cclua/cocos2d/library/cc/Texture2D/PixelFormatInfo.lua +++ b/addons/cclua/cocos2d/library/cc/Texture2D/PixelFormatInfo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Texture2D.PixelFormatInfo --- diff --git a/addons/cclua/cocos2d/library/cc/TextureAtlas.lua b/addons/cclua/cocos2d/library/cc/TextureAtlas.lua index aa146dda..f60e041b 100644 --- a/addons/cclua/cocos2d/library/cc/TextureAtlas.lua +++ b/addons/cclua/cocos2d/library/cc/TextureAtlas.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TextureAtlas ---\addtogroup _2d @@ -102,6 +103,11 @@ function TextureAtlas:isDirty() end ---@param oldIndex integer ---@param amount integer ---@param newIndex integer +--- +---Moves quads from index till totalQuads to the newIndex. +---Used internally by ParticleBatchNode. +---This method doesn't enlarge the array if newIndex + quads to be moved > capacity. +---\since 1.1 ---@overload fun(self: cc.TextureAtlas, index: integer, newIndex: integer) function TextureAtlas:moveQuadsFromIndex(oldIndex, amount, newIndex) end diff --git a/addons/cclua/cocos2d/library/cc/TextureCache.lua b/addons/cclua/cocos2d/library/cc/TextureCache.lua index 2f7180e3..4555d19f 100644 --- a/addons/cclua/cocos2d/library/cc/TextureCache.lua +++ b/addons/cclua/cocos2d/library/cc/TextureCache.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TextureCache ---\brief Singleton that handles the loading of textures. @@ -17,6 +18,12 @@ local TextureCache = {} ---\param filepath The file path. ---@param filepath string ---@return cc.Texture2D +--- +---Returns a Texture2D object given an Image. +---If the image was not previously loaded, it will create a new Texture2D object and it will return it. +---Otherwise it will return a reference of a previously loaded image. +---\param key The "key" parameter will be used as the "key" for the cache. +---If "key" is nil, then a new texture will be created each time. ---@overload fun(self: cc.TextureCache, image: cc.Image, key: string): cc.Texture2D function TextureCache:addImage(filepath) end diff --git a/addons/cclua/cocos2d/library/cc/TextureCube.lua b/addons/cclua/cocos2d/library/cc/TextureCube.lua index 37272f1e..36e52e5b 100644 --- a/addons/cclua/cocos2d/library/cc/TextureCube.lua +++ b/addons/cclua/cocos2d/library/cc/TextureCube.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TextureCube ---\addtogroup _3d diff --git a/addons/cclua/cocos2d/library/cc/TextureProtocol.lua b/addons/cclua/cocos2d/library/cc/TextureProtocol.lua index d9865b16..8565eac1 100644 --- a/addons/cclua/cocos2d/library/cc/TextureProtocol.lua +++ b/addons/cclua/cocos2d/library/cc/TextureProtocol.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TextureProtocol ---Node objects that uses a Texture2D to render the images. diff --git a/addons/cclua/cocos2d/library/cc/TileMapAtlas.lua b/addons/cclua/cocos2d/library/cc/TileMapAtlas.lua index 0ada4fc8..4407e44a 100644 --- a/addons/cclua/cocos2d/library/cc/TileMapAtlas.lua +++ b/addons/cclua/cocos2d/library/cc/TileMapAtlas.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TileMapAtlas ---\brief TileMapAtlas is a subclass of AtlasNode. diff --git a/addons/cclua/cocos2d/library/cc/TiledGrid3D.lua b/addons/cclua/cocos2d/library/cc/TiledGrid3D.lua index 71557c3e..560f4801 100644 --- a/addons/cclua/cocos2d/library/cc/TiledGrid3D.lua +++ b/addons/cclua/cocos2d/library/cc/TiledGrid3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TiledGrid3D ---TiledGrid3D is a 3D grid implementation. It differs from Grid3D in that @@ -8,8 +9,14 @@ local TiledGrid3D = {} ---Create one Grid. ---@param gridSize cc.Size ---@return cc.TiledGrid3D +--- +---Create one Grid. ---@overload fun(gridSize: cc.Size, rect: cc.Rect): cc.TiledGrid3D +--- +---Create one Grid. ---@overload fun(gridSize: cc.Size, texture: cc.Texture2D, flipped: boolean): cc.TiledGrid3D +--- +---Create one Grid. ---@overload fun(gridSize: cc.Size, texture: cc.Texture2D, flipped: boolean, rect: cc.Rect): cc.TiledGrid3D function TiledGrid3D.create(gridSize) end diff --git a/addons/cclua/cocos2d/library/cc/TiledGrid3DAction.lua b/addons/cclua/cocos2d/library/cc/TiledGrid3DAction.lua index 16c6c9af..d84245d7 100644 --- a/addons/cclua/cocos2d/library/cc/TiledGrid3DAction.lua +++ b/addons/cclua/cocos2d/library/cc/TiledGrid3DAction.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TiledGrid3DAction ---\brief Base class for TiledGrid3D actions. diff --git a/addons/cclua/cocos2d/library/cc/TintBy.lua b/addons/cclua/cocos2d/library/cc/TintBy.lua index 18fabdc6..a8f96d30 100644 --- a/addons/cclua/cocos2d/library/cc/TintBy.lua +++ b/addons/cclua/cocos2d/library/cc/TintBy.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TintBy ---\class TintBy @@ -13,9 +14,9 @@ local TintBy = {} ---\param deltaBlue Delta blue color. ---\return An autoreleased TintBy object. ---@param duration number ----@param deltaRed any ----@param deltaGreen any ----@param deltaBlue any +---@param deltaRed integer +---@param deltaGreen integer +---@param deltaBlue integer ---@return cc.TintBy function TintBy.create(duration, deltaRed, deltaGreen, deltaBlue) end diff --git a/addons/cclua/cocos2d/library/cc/TintTo.lua b/addons/cclua/cocos2d/library/cc/TintTo.lua index 83a83e4f..d92891c1 100644 --- a/addons/cclua/cocos2d/library/cc/TintTo.lua +++ b/addons/cclua/cocos2d/library/cc/TintTo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TintTo ---\class TintTo @@ -14,10 +15,15 @@ local TintTo = {} ---\param blue Blue Color, from 0 to 255. ---\return An autoreleased TintTo object. ---@param duration number ----@param red any ----@param green any ----@param blue any +---@param red integer +---@param green integer +---@param blue integer ---@return cc.TintTo +--- +---Creates an action with duration and color. +---\param duration Duration time, in seconds. +---\param color It's a Color3B type. +---\return An autoreleased TintTo object. ---@overload fun(duration: number, color: any): cc.TintTo function TintTo.create(duration, red, green, blue) end diff --git a/addons/cclua/cocos2d/library/cc/ToggleVisibility.lua b/addons/cclua/cocos2d/library/cc/ToggleVisibility.lua index d63f6b10..21dd6d5a 100644 --- a/addons/cclua/cocos2d/library/cc/ToggleVisibility.lua +++ b/addons/cclua/cocos2d/library/cc/ToggleVisibility.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ToggleVisibility ---\class ToggleVisibility diff --git a/addons/cclua/cocos2d/library/cc/Touch.lua b/addons/cclua/cocos2d/library/cc/Touch.lua index 5fbcd456..d382faa2 100644 --- a/addons/cclua/cocos2d/library/cc/Touch.lua +++ b/addons/cclua/cocos2d/library/cc/Touch.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Touch ---\class Touch @@ -91,6 +92,14 @@ function Touch.new() end ---@param id integer ---@param x number ---@param y number +--- +---Set the touch information. It always used to monitor touch event. +--- +---\param id A given id +---\param x A given x coordinate. +---\param y A given y coordinate. +---\param force Current force for 3d touch. +---\param maxForce maximum possible force for 3d touch. ---@overload fun(self: cc.Touch, id: integer, x: number, y: number, force: number, maxForce: number) function Touch:setTouchInfo(id, x, y) end diff --git a/addons/cclua/cocos2d/library/cc/Touch/DispatchMode.lua b/addons/cclua/cocos2d/library/cc/Touch/DispatchMode.lua index 34dce926..24a3c4e1 100644 --- a/addons/cclua/cocos2d/library/cc/Touch/DispatchMode.lua +++ b/addons/cclua/cocos2d/library/cc/Touch/DispatchMode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Touch.DispatchMode ---@type cc.Touch.DispatchMode diff --git a/addons/cclua/cocos2d/library/cc/TransitionCrossFade.lua b/addons/cclua/cocos2d/library/cc/TransitionCrossFade.lua index 381715d7..d6ecd082 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionCrossFade.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionCrossFade.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionCrossFade ---\class TransitionCrossFade diff --git a/addons/cclua/cocos2d/library/cc/TransitionEaseScene.lua b/addons/cclua/cocos2d/library/cc/TransitionEaseScene.lua index ba779a56..3b97e1d6 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionEaseScene.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionEaseScene.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionEaseScene ---\class TransitionEaseScene diff --git a/addons/cclua/cocos2d/library/cc/TransitionFade.lua b/addons/cclua/cocos2d/library/cc/TransitionFade.lua index 1da5cc6a..8e01d50f 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionFade.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionFade.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionFade ---\class TransitionFade @@ -17,6 +18,12 @@ local TransitionFade = {} ---@param scene cc.Scene ---@param color any ---@return cc.TransitionFade +--- +---Creates the transition with a duration. +--- +---\param duration Duration time, in seconds. +---\param scene A given scene. +---\return A autoreleased TransitionFade object. ---@overload fun(duration: number, scene: cc.Scene): cc.TransitionFade function TransitionFade.create(duration, scene, color) end diff --git a/addons/cclua/cocos2d/library/cc/TransitionFadeBL.lua b/addons/cclua/cocos2d/library/cc/TransitionFadeBL.lua index c6d280da..bcb72f8b 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionFadeBL.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionFadeBL.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionFadeBL ---\class TransitionFadeBL diff --git a/addons/cclua/cocos2d/library/cc/TransitionFadeDown.lua b/addons/cclua/cocos2d/library/cc/TransitionFadeDown.lua index 9f47eb13..44c70aaf 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionFadeDown.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionFadeDown.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionFadeDown ---\class TransitionFadeDown diff --git a/addons/cclua/cocos2d/library/cc/TransitionFadeTR.lua b/addons/cclua/cocos2d/library/cc/TransitionFadeTR.lua index a9ad0c06..d46e3261 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionFadeTR.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionFadeTR.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionFadeTR ---\class TransitionFadeTR diff --git a/addons/cclua/cocos2d/library/cc/TransitionFadeUp.lua b/addons/cclua/cocos2d/library/cc/TransitionFadeUp.lua index dafcac84..3ff76b32 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionFadeUp.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionFadeUp.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionFadeUp ---\class TransitionFadeUp diff --git a/addons/cclua/cocos2d/library/cc/TransitionFlipAngular.lua b/addons/cclua/cocos2d/library/cc/TransitionFlipAngular.lua index f4f25d60..8c267359 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionFlipAngular.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionFlipAngular.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionFlipAngular ---\class TransitionFlipAngular @@ -17,6 +18,12 @@ local TransitionFlipAngular = {} ---@param s cc.Scene ---@param o cc.TransitionScene.Orientation ---@return cc.TransitionFlipAngular +--- +---Creates a transition with duration and incoming scene. +--- +---\param t Duration time, in seconds. +---\param s A given scene. +---\return A autoreleased TransitionFlipAngular object. ---@overload fun(t: number, s: cc.Scene): cc.TransitionFlipAngular function TransitionFlipAngular.create(t, s, o) end diff --git a/addons/cclua/cocos2d/library/cc/TransitionFlipX.lua b/addons/cclua/cocos2d/library/cc/TransitionFlipX.lua index 62d7111a..2f7cdcea 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionFlipX.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionFlipX.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionFlipX ---\class TransitionFlipX @@ -17,6 +18,12 @@ local TransitionFlipX = {} ---@param s cc.Scene ---@param o cc.TransitionScene.Orientation ---@return cc.TransitionFlipX +--- +---Creates a transition with duration and incoming scene. +--- +---\param t Duration time, in seconds. +---\param s A given scene. +---\return A autoreleased TransitionFlipX object. ---@overload fun(t: number, s: cc.Scene): cc.TransitionFlipX function TransitionFlipX.create(t, s, o) end diff --git a/addons/cclua/cocos2d/library/cc/TransitionFlipY.lua b/addons/cclua/cocos2d/library/cc/TransitionFlipY.lua index 09ca31ee..ba29b667 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionFlipY.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionFlipY.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionFlipY ---\class TransitionFlipY @@ -17,6 +18,12 @@ local TransitionFlipY = {} ---@param s cc.Scene ---@param o cc.TransitionScene.Orientation ---@return cc.TransitionFlipY +--- +---Creates a transition with duration and incoming scene. +--- +---\param t Duration time, in seconds. +---\param s A given scene. +---\return A autoreleased TransitionFlipY object. ---@overload fun(t: number, s: cc.Scene): cc.TransitionFlipY function TransitionFlipY.create(t, s, o) end diff --git a/addons/cclua/cocos2d/library/cc/TransitionJumpZoom.lua b/addons/cclua/cocos2d/library/cc/TransitionJumpZoom.lua index 78b85fba..59ae1b9d 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionJumpZoom.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionJumpZoom.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionJumpZoom ---\class TransitionJumpZoom diff --git a/addons/cclua/cocos2d/library/cc/TransitionMoveInB.lua b/addons/cclua/cocos2d/library/cc/TransitionMoveInB.lua index 3efd4708..a1c878d0 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionMoveInB.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionMoveInB.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionMoveInB ---\class TransitionMoveInB diff --git a/addons/cclua/cocos2d/library/cc/TransitionMoveInL.lua b/addons/cclua/cocos2d/library/cc/TransitionMoveInL.lua index bf1658e6..8f90df26 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionMoveInL.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionMoveInL.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionMoveInL ---\class TransitionMoveInL diff --git a/addons/cclua/cocos2d/library/cc/TransitionMoveInR.lua b/addons/cclua/cocos2d/library/cc/TransitionMoveInR.lua index d0a5a7cc..0c604eb1 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionMoveInR.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionMoveInR.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionMoveInR ---\class TransitionMoveInR diff --git a/addons/cclua/cocos2d/library/cc/TransitionMoveInT.lua b/addons/cclua/cocos2d/library/cc/TransitionMoveInT.lua index 404dbca9..bfabdde0 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionMoveInT.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionMoveInT.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionMoveInT ---\class TransitionMoveInT diff --git a/addons/cclua/cocos2d/library/cc/TransitionPageTurn.lua b/addons/cclua/cocos2d/library/cc/TransitionPageTurn.lua index f6d563a2..a1966d6a 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionPageTurn.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionPageTurn.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionPageTurn ---\class TransitionPageTurn diff --git a/addons/cclua/cocos2d/library/cc/TransitionProgress.lua b/addons/cclua/cocos2d/library/cc/TransitionProgress.lua index cb8bece1..e7e8be4a 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionProgress.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionProgress.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionProgress ---\addtogroup _2d diff --git a/addons/cclua/cocos2d/library/cc/TransitionProgressHorizontal.lua b/addons/cclua/cocos2d/library/cc/TransitionProgressHorizontal.lua index 93e772f4..1d66aed8 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionProgressHorizontal.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionProgressHorizontal.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionProgressHorizontal ---\class TransitionProgressHorizontal diff --git a/addons/cclua/cocos2d/library/cc/TransitionProgressInOut.lua b/addons/cclua/cocos2d/library/cc/TransitionProgressInOut.lua index 20727b76..34603f31 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionProgressInOut.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionProgressInOut.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionProgressInOut ---\class TransitionProgressInOut diff --git a/addons/cclua/cocos2d/library/cc/TransitionProgressOutIn.lua b/addons/cclua/cocos2d/library/cc/TransitionProgressOutIn.lua index c5046fa8..078c636f 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionProgressOutIn.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionProgressOutIn.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionProgressOutIn ---\class TransitionProgressOutIn diff --git a/addons/cclua/cocos2d/library/cc/TransitionProgressRadialCCW.lua b/addons/cclua/cocos2d/library/cc/TransitionProgressRadialCCW.lua index 53f931d2..68e6a857 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionProgressRadialCCW.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionProgressRadialCCW.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionProgressRadialCCW ---\class TransitionProgressRadialCCW diff --git a/addons/cclua/cocos2d/library/cc/TransitionProgressRadialCW.lua b/addons/cclua/cocos2d/library/cc/TransitionProgressRadialCW.lua index 8e1a5f9a..d7f593b5 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionProgressRadialCW.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionProgressRadialCW.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionProgressRadialCW ---\class TransitionProgressRadialCW diff --git a/addons/cclua/cocos2d/library/cc/TransitionProgressVertical.lua b/addons/cclua/cocos2d/library/cc/TransitionProgressVertical.lua index d3bfeaf1..059ee404 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionProgressVertical.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionProgressVertical.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionProgressVertical ---\class TransitionProgressVertical diff --git a/addons/cclua/cocos2d/library/cc/TransitionRotoZoom.lua b/addons/cclua/cocos2d/library/cc/TransitionRotoZoom.lua index 689a9045..ee1527c0 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionRotoZoom.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionRotoZoom.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionRotoZoom ---\class TransitionRotoZoom diff --git a/addons/cclua/cocos2d/library/cc/TransitionScene.lua b/addons/cclua/cocos2d/library/cc/TransitionScene.lua index 5bf825a0..deb24778 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionScene.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionScene.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionScene ---\class TransitionScene diff --git a/addons/cclua/cocos2d/library/cc/TransitionScene/Orientation.lua b/addons/cclua/cocos2d/library/cc/TransitionScene/Orientation.lua index ad13e73e..2479286a 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionScene/Orientation.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionScene/Orientation.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionScene.Orientation ---@type cc.TransitionScene.Orientation diff --git a/addons/cclua/cocos2d/library/cc/TransitionSceneOriented.lua b/addons/cclua/cocos2d/library/cc/TransitionSceneOriented.lua index 19acf8b6..096656fc 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionSceneOriented.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionSceneOriented.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionSceneOriented ---\class TransitionSceneOriented diff --git a/addons/cclua/cocos2d/library/cc/TransitionShrinkGrow.lua b/addons/cclua/cocos2d/library/cc/TransitionShrinkGrow.lua index 74464df0..e05a2ae6 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionShrinkGrow.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionShrinkGrow.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionShrinkGrow ---\class TransitionShrinkGrow diff --git a/addons/cclua/cocos2d/library/cc/TransitionSlideInB.lua b/addons/cclua/cocos2d/library/cc/TransitionSlideInB.lua index 218fa2e6..ca662aed 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionSlideInB.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionSlideInB.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionSlideInB ---\class TransitionSlideInB diff --git a/addons/cclua/cocos2d/library/cc/TransitionSlideInL.lua b/addons/cclua/cocos2d/library/cc/TransitionSlideInL.lua index 2977e72e..c0343138 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionSlideInL.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionSlideInL.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionSlideInL ---\class TransitionSlideInL diff --git a/addons/cclua/cocos2d/library/cc/TransitionSlideInR.lua b/addons/cclua/cocos2d/library/cc/TransitionSlideInR.lua index 67531857..e0de8d83 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionSlideInR.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionSlideInR.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionSlideInR ---\class TransitionSlideInR diff --git a/addons/cclua/cocos2d/library/cc/TransitionSlideInT.lua b/addons/cclua/cocos2d/library/cc/TransitionSlideInT.lua index 8385c9b6..641550c8 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionSlideInT.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionSlideInT.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionSlideInT ---\class TransitionSlideInT diff --git a/addons/cclua/cocos2d/library/cc/TransitionSplitCols.lua b/addons/cclua/cocos2d/library/cc/TransitionSplitCols.lua index b9ac61b4..fcb13b8f 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionSplitCols.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionSplitCols.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionSplitCols ---\class TransitionSplitCols diff --git a/addons/cclua/cocos2d/library/cc/TransitionSplitRows.lua b/addons/cclua/cocos2d/library/cc/TransitionSplitRows.lua index 722a5073..ace663a3 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionSplitRows.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionSplitRows.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionSplitRows ---\class TransitionSplitRows diff --git a/addons/cclua/cocos2d/library/cc/TransitionTurnOffTiles.lua b/addons/cclua/cocos2d/library/cc/TransitionTurnOffTiles.lua index 6bc2609f..2be24fb8 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionTurnOffTiles.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionTurnOffTiles.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionTurnOffTiles ---\class TransitionTurnOffTiles diff --git a/addons/cclua/cocos2d/library/cc/TransitionZoomFlipAngular.lua b/addons/cclua/cocos2d/library/cc/TransitionZoomFlipAngular.lua index e55aaadc..1b82ae42 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionZoomFlipAngular.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionZoomFlipAngular.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionZoomFlipAngular ---\class TransitionZoomFlipAngular @@ -17,6 +18,12 @@ local TransitionZoomFlipAngular = {} ---@param s cc.Scene ---@param o cc.TransitionScene.Orientation ---@return cc.TransitionZoomFlipAngular +--- +---Creates a transition with duration and incoming scene. +--- +---\param t Duration time, in seconds. +---\param s A given scene. +---\return A autoreleased TransitionZoomFlipAngular object. ---@overload fun(t: number, s: cc.Scene): cc.TransitionZoomFlipAngular function TransitionZoomFlipAngular.create(t, s, o) end diff --git a/addons/cclua/cocos2d/library/cc/TransitionZoomFlipX.lua b/addons/cclua/cocos2d/library/cc/TransitionZoomFlipX.lua index a8c0f8b0..ebc004b7 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionZoomFlipX.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionZoomFlipX.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionZoomFlipX ---\class TransitionZoomFlipX @@ -17,6 +18,12 @@ local TransitionZoomFlipX = {} ---@param s cc.Scene ---@param o cc.TransitionScene.Orientation ---@return cc.TransitionZoomFlipX +--- +---Creates a transition with duration and incoming scene. +--- +---\param t Duration time, in seconds. +---\param s A given scene. +---\return A autoreleased TransitionZoomFlipX object. ---@overload fun(t: number, s: cc.Scene): cc.TransitionZoomFlipX function TransitionZoomFlipX.create(t, s, o) end diff --git a/addons/cclua/cocos2d/library/cc/TransitionZoomFlipY.lua b/addons/cclua/cocos2d/library/cc/TransitionZoomFlipY.lua index 31a5594a..09b08be8 100644 --- a/addons/cclua/cocos2d/library/cc/TransitionZoomFlipY.lua +++ b/addons/cclua/cocos2d/library/cc/TransitionZoomFlipY.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TransitionZoomFlipY ---\class TransitionZoomFlipY @@ -17,6 +18,12 @@ local TransitionZoomFlipY = {} ---@param s cc.Scene ---@param o cc.TransitionScene.Orientation ---@return cc.TransitionZoomFlipY +--- +---Creates a transition with duration and incoming scene. +--- +---\param t Duration time, in seconds. +---\param s A given scene. +---\return A autoreleased TransitionZoomFlipY object. ---@overload fun(t: number, s: cc.Scene): cc.TransitionZoomFlipY function TransitionZoomFlipY.create(t, s, o) end diff --git a/addons/cclua/cocos2d/library/cc/TurnOffTiles.lua b/addons/cclua/cocos2d/library/cc/TurnOffTiles.lua index fd6b0e74..5f0c184d 100644 --- a/addons/cclua/cocos2d/library/cc/TurnOffTiles.lua +++ b/addons/cclua/cocos2d/library/cc/TurnOffTiles.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.TurnOffTiles ---\brief TurnOffTiles action. @@ -12,6 +13,12 @@ local TurnOffTiles = {} ---@param duration number ---@param gridSize cc.Size ---@return cc.TurnOffTiles +--- +---\brief Create the action with the grid size and the duration. +---\param duration Specify the duration of the TurnOffTiles action. It's a value in seconds. +---\param gridSize Specify the size of the grid. +---\param seed Specify the random seed. +---\return If the creation success, return a pointer of TurnOffTiles action; otherwise, return nil. ---@overload fun(duration: number, gridSize: cc.Size, seed: integer): cc.TurnOffTiles function TurnOffTiles.create(duration, gridSize) end diff --git a/addons/cclua/cocos2d/library/cc/Twirl.lua b/addons/cclua/cocos2d/library/cc/Twirl.lua index d8f8097a..21987056 100644 --- a/addons/cclua/cocos2d/library/cc/Twirl.lua +++ b/addons/cclua/cocos2d/library/cc/Twirl.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Twirl ---\brief Twirl action. diff --git a/addons/cclua/cocos2d/library/cc/Uniformkey.lua b/addons/cclua/cocos2d/library/cc/Uniformkey.lua index fca4996f..c2bba756 100644 --- a/addons/cclua/cocos2d/library/cc/Uniformkey.lua +++ b/addons/cclua/cocos2d/library/cc/Uniformkey.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Uniformkey ---@type cc.Uniformkey diff --git a/addons/cclua/cocos2d/library/cc/UserDefault.lua b/addons/cclua/cocos2d/library/cc/UserDefault.lua index ae78b24d..9710386e 100644 --- a/addons/cclua/cocos2d/library/cc/UserDefault.lua +++ b/addons/cclua/cocos2d/library/cc/UserDefault.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.UserDefault ---UserDefault acts as a tiny database. You can save and get base type values by it. @@ -38,6 +39,11 @@ function UserDefault:flush() end ---\js NA ---@param key string ---@return boolean +--- +---Get bool value by key, if the key doesn't exist, will return passed default value. +---\param key The key to get value. +---\param defaultValue The default value to return if the key doesn't exist. +---\js NA ---@overload fun(self: cc.UserDefault, key: string, defaultValue: boolean): boolean function UserDefault:getBoolForKey(key) end @@ -47,6 +53,12 @@ function UserDefault:getBoolForKey(key) end ---\js NA ---@param key string ---@return any +--- +---Get Data value by key, if the key doesn't exist, will return an empty Data. +---\param key The key to get value. +---\param defaultValue The default value to return if the key doesn't exist. +---\return Data value of the key. +---\js NA ---@overload fun(self: cc.UserDefault, key: string, defaultValue: any): any function UserDefault:getDataForKey(key) end @@ -56,6 +68,12 @@ function UserDefault:getDataForKey(key) end ---\js NA ---@param key string ---@return number +--- +---Get double value by key, if the key doesn't exist, will return passed default value. +---\param key The key to get value. +---\param defaultValue The default value to return if the key doesn't exist. +---\return Double value of the key. +---\js NA ---@overload fun(self: cc.UserDefault, key: string, defaultValue: number): number function UserDefault:getDoubleForKey(key) end @@ -65,6 +83,12 @@ function UserDefault:getDoubleForKey(key) end ---\js NA ---@param key string ---@return number +--- +---Get float value by key, if the key doesn't exist, will return passed default value. +---\param key The key to get value. +---\param defaultValue The default value to return if the key doesn't exist. +---\return Float value of the key. +---\js NA ---@overload fun(self: cc.UserDefault, key: string, defaultValue: number): number function UserDefault:getFloatForKey(key) end @@ -81,6 +105,12 @@ function UserDefault.getInstance() end ---\js NA ---@param key string ---@return integer +--- +---Get bool value by key, if the key doesn't exist, will return passed default value. +---\param key The key to get value. +---\param defaultValue The default value to return if the key doesn't exist. +---\return Integer value of the key. +---\js NA ---@overload fun(self: cc.UserDefault, key: string, defaultValue: integer): integer function UserDefault:getIntegerForKey(key) end @@ -90,6 +120,12 @@ function UserDefault:getIntegerForKey(key) end ---\js NA ---@param key string ---@return string +--- +---Get string value by key, if the key doesn't exist, will return passed default value. +---\param key The key to get value. +---\param defaultValue The default value to return if the key doesn't exist. +---\return String value of the key. +---\js NA ---@overload fun(self: cc.UserDefault, key: string, defaultValue: string): string function UserDefault:getStringForKey(key) end diff --git a/addons/cclua/cocos2d/library/cc/ValueMap.lua b/addons/cclua/cocos2d/library/cc/ValueMap.lua index 4ecf0758..5f35175d 100644 --- a/addons/cclua/cocos2d/library/cc/ValueMap.lua +++ b/addons/cclua/cocos2d/library/cc/ValueMap.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ValueMap --- diff --git a/addons/cclua/cocos2d/library/cc/Vec2.lua b/addons/cclua/cocos2d/library/cc/Vec2.lua index 6822dcc8..5c3fd3e0 100644 --- a/addons/cclua/cocos2d/library/cc/Vec2.lua +++ b/addons/cclua/cocos2d/library/cc/Vec2.lua @@ -1,8 +1,8 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Vec2 ---Defines a 2-element floating point vector. ---@class cc.Vec2 ----@field length number Calculates distance between point an origin \return float \since v2.1.4 \js NA \lua NA ---@field lengthSq number Calculates the square length of a Vec2 (not calling sqrt() ) \return float \since v2.1.4 \js NA \lua NA ---@field normalized cc.Vec2 Get the normalized vector. ---@field one boolean Indicates whether this vector contains all ones.

\return true if this vector contains all ones, false otherwise. @@ -36,6 +36,12 @@ function Vec2:__olua_move() end --- ---\param v The vector to add. ---@param v cc.Vec2 +--- +---Adds the specified vectors and stores the result in dst. +--- +---\param v1 The first vector. +---\param v2 The second vector. +---\param dst A vector to store the result in. ---@overload fun(v1: cc.Vec2, v2: cc.Vec2, dst: cc.Vec2) function Vec2:add(v) end @@ -56,6 +62,13 @@ function Vec2.angle(v1, v2) end ---\param max The maximum value. ---@param min cc.Vec2 ---@param max cc.Vec2 +--- +---Clamps the specified vector within the specified range and returns it in dst. +--- +---\param v The vector to clamp. +---\param min The minimum value. +---\param max The maximum value. +---\param dst A vector to store the result in. ---@overload fun(v: cc.Vec2, min: cc.Vec2, max: cc.Vec2, dst: cc.Vec2) function Vec2:clamp(min, max) end @@ -114,6 +127,13 @@ function Vec2:distanceSquared(v) end ---\return The dot product. ---@param v cc.Vec2 ---@return number +--- +---Returns the dot product between the specified vectors. +--- +---\param v1 The first vector. +---\param v2 The second vector. +--- +---\return The dot product between the vectors. ---@overload fun(v1: cc.Vec2, v2: cc.Vec2): number function Vec2:dot(v) end @@ -142,6 +162,11 @@ function Vec2:fuzzyEquals(target, variance) end ---\js NA ---\lua NA ---@return number +--- +---\returns the angle in radians between two vector directions +---\since v2.1.4 +---\js NA +---\lua NA ---@overload fun(self: cc.Vec2, other: cc.Vec2): number function Vec2:getAngle() end @@ -250,7 +275,39 @@ function Vec2:getRPerp() end ---@param S olua.float ---@param T olua.float ---@return boolean +--- +---A general line-line intersection test +---\param A the startpoint for the first line L1 = (A - B) +---\param B the endpoint for the first line L1 = (A - B) +---\param C the startpoint for the second line L2 = (C - D) +---\param D the endpoint for the second line L2 = (C - D) +---\param S the range for a hitpoint in L1 (p = A + S*(B - A)) +---\param T the range for a hitpoint in L2 (p = C + T*(D - C)) +---\return whether these two lines intersects. +---Note that to truly test intersection for segments we have to make +---sure that S & T lie within [0..1] and for rays, make sure S & T > 0 +---the hit point is C + T * (D - C); +---the hit point also is A + S * (B - A); +---\since 3.0 +---\js NA +---\lua NA ---@overload fun(A: cc.Vec2, B: cc.Vec2, C: cc.Vec2, D: cc.Vec2): boolean +--- +---A general line-line intersection test +---\param A the startpoint for the first line L1 = (A - B) +---\param B the endpoint for the first line L1 = (A - B) +---\param C the startpoint for the second line L2 = (C - D) +---\param D the endpoint for the second line L2 = (C - D) +---\param S the range for a hitpoint in L1 (p = A + S*(B - A)) +---\param T the range for a hitpoint in L2 (p = C + T*(D - C)) +---\return whether these two lines intersects. +---Note that to truly test intersection for segments we have to make +---sure that S & T lie within [0..1] and for rays, make sure S & T > 0 +---the hit point is C + T * (D - C); +---the hit point also is A + S * (B - A); +---\since 3.0 +---\js NA +---\lua NA ---@overload fun(A: cc.Vec2, B: cc.Vec2, C: cc.Vec2, D: cc.Vec2, S: olua.float): boolean function Vec2.isLineIntersect(A, B, C, D, S, T) end @@ -304,7 +361,17 @@ function Vec2.isSegmentIntersect(A, B, C, D) end ---@param S cc.Vec2 ---@param E cc.Vec2 ---@return boolean +--- +---returns true if Segment A-B overlap with segment C-D +---\since v3.0 +---\js NA +---\lua NA ---@overload fun(A: cc.Vec2, B: cc.Vec2, C: cc.Vec2, D: cc.Vec2): boolean +--- +---returns true if Segment A-B overlap with segment C-D +---\since v3.0 +---\js NA +---\lua NA ---@overload fun(A: cc.Vec2, B: cc.Vec2, C: cc.Vec2, D: cc.Vec2, S: cc.Vec2): boolean function Vec2.isSegmentOverlap(A, B, C, D, S, E) end @@ -353,8 +420,22 @@ function Vec2:negate() end ---Constructs a new vector initialized to all zeros. ---@return cc.Vec2 +--- +---Constructs a new vector initialized to the specified values. +--- +---\param xx The x coordinate. +---\param yy The y coordinate. ---@overload fun(xx: number, yy: number): cc.Vec2 +--- +---Constructs a new vector from the values in the specified array. +--- +---\param array An array containing the elements of the vector in the order x, y. ---@overload fun(array: olua.float): cc.Vec2 +--- +---Constructs a vector that describes the direction between the specified points. +--- +---\param p1 The first point. +---\param p2 The second point. ---@overload fun(p1: cc.Vec2, p2: cc.Vec2): cc.Vec2 function Vec2.new() end @@ -384,6 +465,13 @@ function Vec2:project(other) end ---\param angle The angle to rotate by (in radians). ---@param point cc.Vec2 ---@param angle number +--- +---Complex multiplication of two points ("rotates" two points). +---\return Vec2 vector with an angle of this.getAngle() + other.getAngle(), +---and a length of this.getLength() * other.getLength(). +---\since v2.1.4 +---\js NA +---\lua NA ---@overload fun(self: cc.Vec2, other: cc.Vec2): cc.Vec2 function Vec2:rotate(point, angle) end @@ -403,6 +491,10 @@ function Vec2:rotateByAngle(pivot, angle) end --- ---\param scalar The scalar value. ---@param scalar number +--- +---Scales each element of this vector by the matching component of scale. +--- +---\param scale The vector to scale by. ---@overload fun(self: cc.Vec2, scale: cc.Vec2) function Vec2:scale(scalar) end @@ -412,8 +504,21 @@ function Vec2:scale(scalar) end ---\param yy The new y coordinate. ---@param xx number ---@param yy number +--- +---Sets the elements of this vector from the values in the specified array. +--- +---\param array An array containing the elements of the vector in the order x, y. ---@overload fun(self: cc.Vec2, array: olua.float) +--- +---Sets the elements of this vector to those in the specified vector. +--- +---\param v The vector to copy. ---@overload fun(self: cc.Vec2, v: cc.Vec2) +--- +---Sets this vector to the directional vector between the specified points. +--- +---\param p1 The first point. +---\param p2 The second point. ---@overload fun(self: cc.Vec2, p1: cc.Vec2, p2: cc.Vec2) function Vec2:set(xx, yy) end @@ -445,6 +550,13 @@ function Vec2:smooth(target, elapsedTime, responseTime) end --- ---\param v The vector to subtract. ---@param v cc.Vec2 +--- +---Subtracts the specified vectors and stores the result in dst. +---The resulting vector is computed as (v1 - v2). +--- +---\param v1 The first vector. +---\param v2 The second vector. +---\param dst The destination vector. ---@overload fun(v1: cc.Vec2, v2: cc.Vec2, dst: cc.Vec2) function Vec2:subtract(v) end diff --git a/addons/cclua/cocos2d/library/cc/Vec2Array.lua b/addons/cclua/cocos2d/library/cc/Vec2Array.lua index 287af941..e5f54213 100644 --- a/addons/cclua/cocos2d/library/cc/Vec2Array.lua +++ b/addons/cclua/cocos2d/library/cc/Vec2Array.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Vec2Array --- diff --git a/addons/cclua/cocos2d/library/cc/Vec3.lua b/addons/cclua/cocos2d/library/cc/Vec3.lua index 4c448935..053ff302 100644 --- a/addons/cclua/cocos2d/library/cc/Vec3.lua +++ b/addons/cclua/cocos2d/library/cc/Vec3.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Vec3 ---Defines a 3-element floating point vector. @@ -31,7 +32,19 @@ function Vec3:__olua_move() end --- ---\param v The vector to add. ---@param v cc.Vec3 +--- +---Adds the elements of this vector to the specified values. +--- +---\param xx The add x coordinate. +---\param yy The add y coordinate. +---\param zz The add z coordinate. ---@overload fun(self: cc.Vec3, xx: number, yy: number, zz: number) +--- +---Adds the specified vectors and stores the result in dst. +--- +---\param v1 The first vector. +---\param v2 The second vector. +---\param dst A vector to store the result in. ---@overload fun(v1: cc.Vec3, v2: cc.Vec3, dst: cc.Vec3) function Vec3:add(v) end @@ -52,6 +65,13 @@ function Vec3.angle(v1, v2) end ---\param max The maximum value. ---@param min cc.Vec3 ---@param max cc.Vec3 +--- +---Clamps the specified vector within the specified range and returns it in dst. +--- +---\param v The vector to clamp. +---\param min The minimum value. +---\param max The maximum value. +---\param dst A vector to store the result in. ---@overload fun(v: cc.Vec3, min: cc.Vec3, max: cc.Vec3, dst: cc.Vec3) function Vec3:clamp(min, max) end @@ -59,6 +79,12 @@ function Vec3:clamp(min, max) end --- ---\param v The vector to compute the cross product with. ---@param v cc.Vec3 +--- +---Computes the cross product of the specified vectors and stores the result in dst. +--- +---\param v1 The first vector. +---\param v2 The second vector. +---\param dst A vector to store the result in. ---@overload fun(v1: cc.Vec3, v2: cc.Vec3, dst: cc.Vec3) function Vec3:cross(v) end @@ -96,6 +122,13 @@ function Vec3:distanceSquared(v) end ---\return The dot product. ---@param v cc.Vec3 ---@return number +--- +---Returns the dot product between the specified vectors. +--- +---\param v1 The first vector. +---\param v2 The second vector. +--- +---\return The dot product between the vectors. ---@overload fun(v1: cc.Vec3, v2: cc.Vec3): number function Vec3:dot(v) end @@ -158,8 +191,23 @@ function Vec3:negate() end ---Constructs a new vector initialized to all zeros. ---@return cc.Vec3 +--- +---Constructs a new vector initialized to the specified values. +--- +---\param xx The x coordinate. +---\param yy The y coordinate. +---\param zz The z coordinate. ---@overload fun(xx: number, yy: number, zz: number): cc.Vec3 +--- +---Constructs a new vector from the values in the specified array. +--- +---\param array An array containing the elements of the vector in the order x, y, z. ---@overload fun(array: olua.float): cc.Vec3 +--- +---Constructs a vector that describes the direction between the specified points. +--- +---\param p1 The first point. +---\param p2 The second point. ---@overload fun(p1: cc.Vec3, p2: cc.Vec3): cc.Vec3 function Vec3.new() end @@ -188,8 +236,18 @@ function Vec3:scale(scalar) end ---@param xx number ---@param yy number ---@param zz number +--- +---Sets the elements of this vector from the values in the specified array. +--- +---\param array An array containing the elements of the vector in the order x, y, z. ---@overload fun(self: cc.Vec3, array: olua.float) +--- +---Sets the elements of this vector to those in the specified vector. +--- +---\param v The vector to copy. ---@overload fun(self: cc.Vec3, v: cc.Vec3) +--- +---Sets this vector to the directional vector between the specified points. ---@overload fun(self: cc.Vec3, p1: cc.Vec3, p2: cc.Vec3) function Vec3:set(xx, yy, zz) end @@ -215,6 +273,13 @@ function Vec3:smooth(target, elapsedTime, responseTime) end --- ---\param v The vector to subtract. ---@param v cc.Vec3 +--- +---Subtracts the specified vectors and stores the result in dst. +---The resulting vector is computed as (v1 - v2). +--- +---\param v1 The first vector. +---\param v2 The second vector. +---\param dst The destination vector. ---@overload fun(v1: cc.Vec3, v2: cc.Vec3, dst: cc.Vec3) function Vec3:subtract(v) end diff --git a/addons/cclua/cocos2d/library/cc/Vec4.lua b/addons/cclua/cocos2d/library/cc/Vec4.lua index 2b69007f..0c95eaad 100644 --- a/addons/cclua/cocos2d/library/cc/Vec4.lua +++ b/addons/cclua/cocos2d/library/cc/Vec4.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Vec4 ---Defines 4-element floating point vector. @@ -27,6 +28,12 @@ function Vec4:__olua_move() end --- ---\param v The vector to add. ---@param v cc.Vec4 +--- +---Adds the specified vectors and stores the result in dst. +--- +---\param v1 The first vector. +---\param v2 The second vector. +---\param dst A vector to store the result in. ---@overload fun(v1: cc.Vec4, v2: cc.Vec4, dst: cc.Vec4) function Vec4:add(v) end @@ -47,6 +54,13 @@ function Vec4.angle(v1, v2) end ---\param max The maximum value. ---@param min cc.Vec4 ---@param max cc.Vec4 +--- +---Clamps the specified vector within the specified range and returns it in dst. +--- +---\param v The vector to clamp. +---\param min The minimum value. +---\param max The maximum value. +---\param dst A vector to store the result in. ---@overload fun(v: cc.Vec4, min: cc.Vec4, max: cc.Vec4, dst: cc.Vec4) function Vec4:clamp(min, max) end @@ -84,6 +98,13 @@ function Vec4:distanceSquared(v) end ---\return The dot product. ---@param v cc.Vec4 ---@return number +--- +---Returns the dot product between the specified vectors. +--- +---\param v1 The first vector. +---\param v2 The second vector. +--- +---\return The dot product between the vectors. ---@overload fun(v1: cc.Vec4, v2: cc.Vec4): number function Vec4:dot(v) end @@ -139,8 +160,24 @@ function Vec4:negate() end ---Constructs a new vector initialized to all zeros. ---@return cc.Vec4 +--- +---Constructs a new vector initialized to the specified values. +--- +---\param xx The x coordinate. +---\param yy The y coordinate. +---\param zz The z coordinate. +---\param ww The w coordinate. ---@overload fun(xx: number, yy: number, zz: number, ww: number): cc.Vec4 +--- +---Constructs a new vector from the values in the specified array. +--- +---\param array An array containing the elements of the vector in the order x, y, z, w. ---@overload fun(array: olua.float): cc.Vec4 +--- +---Constructs a vector that describes the direction between the specified points. +--- +---\param p1 The first point. +---\param p2 The second point. ---@overload fun(p1: cc.Vec4, p2: cc.Vec4): cc.Vec4 function Vec4.new() end @@ -171,8 +208,21 @@ function Vec4:scale(scalar) end ---@param yy number ---@param zz number ---@param ww number +--- +---Sets the elements of this vector from the values in the specified array. +--- +---\param array An array containing the elements of the vector in the order x, y, z, w. ---@overload fun(self: cc.Vec4, array: olua.float) +--- +---Sets the elements of this vector to those in the specified vector. +--- +---\param v The vector to copy. ---@overload fun(self: cc.Vec4, v: cc.Vec4) +--- +---Sets this vector to the directional vector between the specified points. +--- +---\param p1 The first point. +---\param p2 The second point. ---@overload fun(self: cc.Vec4, p1: cc.Vec4, p2: cc.Vec4) function Vec4:set(xx, yy, zz, ww) end @@ -181,6 +231,13 @@ function Vec4:set(xx, yy, zz, ww) end --- ---\param v The vector to subtract. ---@param v cc.Vec4 +--- +---Subtracts the specified vectors and stores the result in dst. +---The resulting vector is computed as (v1 - v2). +--- +---\param v1 The first vector. +---\param v2 The second vector. +---\param dst The destination vector. ---@overload fun(v1: cc.Vec4, v2: cc.Vec4, dst: cc.Vec4) function Vec4:subtract(v) end diff --git a/addons/cclua/cocos2d/library/cc/VectorInt.lua b/addons/cclua/cocos2d/library/cc/VectorInt.lua index 7d4ab0fa..67036bf0 100644 --- a/addons/cclua/cocos2d/library/cc/VectorInt.lua +++ b/addons/cclua/cocos2d/library/cc/VectorInt.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.VectorInt --- diff --git a/addons/cclua/cocos2d/library/cc/VectorString.lua b/addons/cclua/cocos2d/library/cc/VectorString.lua index 95eea028..e7f97a7c 100644 --- a/addons/cclua/cocos2d/library/cc/VectorString.lua +++ b/addons/cclua/cocos2d/library/cc/VectorString.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.VectorString --- diff --git a/addons/cclua/cocos2d/library/cc/VertexKey.lua b/addons/cclua/cocos2d/library/cc/VertexKey.lua index 9c262001..0f49075e 100644 --- a/addons/cclua/cocos2d/library/cc/VertexKey.lua +++ b/addons/cclua/cocos2d/library/cc/VertexKey.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.VertexKey ---@type cc.VertexKey diff --git a/addons/cclua/cocos2d/library/cc/Viewport.lua b/addons/cclua/cocos2d/library/cc/Viewport.lua index 45b7da3e..379b0e7b 100644 --- a/addons/cclua/cocos2d/library/cc/Viewport.lua +++ b/addons/cclua/cocos2d/library/cc/Viewport.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Viewport --- diff --git a/addons/cclua/cocos2d/library/cc/Waves.lua b/addons/cclua/cocos2d/library/cc/Waves.lua index dffa9173..89002436 100644 --- a/addons/cclua/cocos2d/library/cc/Waves.lua +++ b/addons/cclua/cocos2d/library/cc/Waves.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Waves ---\brief Waves action. diff --git a/addons/cclua/cocos2d/library/cc/Waves3D.lua b/addons/cclua/cocos2d/library/cc/Waves3D.lua index 5233c9a5..3cd46ce1 100644 --- a/addons/cclua/cocos2d/library/cc/Waves3D.lua +++ b/addons/cclua/cocos2d/library/cc/Waves3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.Waves3D ---\brief Waves3D action. diff --git a/addons/cclua/cocos2d/library/cc/WavesTiles3D.lua b/addons/cclua/cocos2d/library/cc/WavesTiles3D.lua index a7973118..c57bb581 100644 --- a/addons/cclua/cocos2d/library/cc/WavesTiles3D.lua +++ b/addons/cclua/cocos2d/library/cc/WavesTiles3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.WavesTiles3D ---\brief WavesTiles3D action. diff --git a/addons/cclua/cocos2d/library/cc/WebSocket.lua b/addons/cclua/cocos2d/library/cc/WebSocket.lua index d50591e9..c8791c23 100644 --- a/addons/cclua/cocos2d/library/cc/WebSocket.lua +++ b/addons/cclua/cocos2d/library/cc/WebSocket.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.WebSocket ---WebSocket is wrapper of the libwebsockets-protocol, let the develop could call the websocket easily. @@ -55,6 +56,12 @@ function WebSocket.new() end ---\param message string data. ---\lua sendstring ---@param message string +--- +---\brief Sends binary data to websocket server. +--- +---\param binaryMsg binary string data. +---\param len the size of binary string data. +---\lua sendstring ---@overload fun(self: cc.WebSocket, binaryMsg: string, len: integer) function WebSocket:send(message) end diff --git a/addons/cclua/cocos2d/library/cc/WebSocket/Delegate.lua b/addons/cclua/cocos2d/library/cc/WebSocket/Delegate.lua index f4af7983..ced0e6a3 100644 --- a/addons/cclua/cocos2d/library/cc/WebSocket/Delegate.lua +++ b/addons/cclua/cocos2d/library/cc/WebSocket/Delegate.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.WebSocket.Delegate ---The delegate class is used to process websocket events. diff --git a/addons/cclua/cocos2d/library/cc/WebSocket/ErrorCode.lua b/addons/cclua/cocos2d/library/cc/WebSocket/ErrorCode.lua index 3419f93b..29338dab 100644 --- a/addons/cclua/cocos2d/library/cc/WebSocket/ErrorCode.lua +++ b/addons/cclua/cocos2d/library/cc/WebSocket/ErrorCode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.WebSocket.ErrorCode ---@type cc.WebSocket.ErrorCode diff --git a/addons/cclua/cocos2d/library/cc/WebSocket/State.lua b/addons/cclua/cocos2d/library/cc/WebSocket/State.lua index 74eb87b7..c9b90400 100644 --- a/addons/cclua/cocos2d/library/cc/WebSocket/State.lua +++ b/addons/cclua/cocos2d/library/cc/WebSocket/State.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.WebSocket.State ---@type cc.WebSocket.State diff --git a/addons/cclua/cocos2d/library/cc/ccBezierConfig.lua b/addons/cclua/cocos2d/library/cc/ccBezierConfig.lua index 98ac2e35..7e517a77 100644 --- a/addons/cclua/cocos2d/library/cc/ccBezierConfig.lua +++ b/addons/cclua/cocos2d/library/cc/ccBezierConfig.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ccBezierConfig ---\struct Bezier configuration structure diff --git a/addons/cclua/cocos2d/library/cc/ccSchedulerFunc.lua b/addons/cclua/cocos2d/library/cc/ccSchedulerFunc.lua index 74906045..9adb78d4 100644 --- a/addons/cclua/cocos2d/library/cc/ccSchedulerFunc.lua +++ b/addons/cclua/cocos2d/library/cc/ccSchedulerFunc.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ccSchedulerFunc --- diff --git a/addons/cclua/cocos2d/library/cc/sImageTGA.lua b/addons/cclua/cocos2d/library/cc/sImageTGA.lua index be72b402..e151dd34 100644 --- a/addons/cclua/cocos2d/library/cc/sImageTGA.lua +++ b/addons/cclua/cocos2d/library/cc/sImageTGA.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.sImageTGA ---TGA format diff --git a/addons/cclua/cocos2d/library/cc/tweenfunc.lua b/addons/cclua/cocos2d/library/cc/tweenfunc.lua index 59f282de..0e5e2c28 100644 --- a/addons/cclua/cocos2d/library/cc/tweenfunc.lua +++ b/addons/cclua/cocos2d/library/cc/tweenfunc.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.tweenfunc --- diff --git a/addons/cclua/cocos2d/library/cc/tweenfunc/TweenType.lua b/addons/cclua/cocos2d/library/cc/tweenfunc/TweenType.lua index a6ae426b..c106314d 100644 --- a/addons/cclua/cocos2d/library/cc/tweenfunc/TweenType.lua +++ b/addons/cclua/cocos2d/library/cc/tweenfunc/TweenType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.tweenfunc.TweenType ---@type cc.tweenfunc.TweenType diff --git a/addons/cclua/cocos2d/library/cc/ui/Margin.lua b/addons/cclua/cocos2d/library/cc/ui/Margin.lua index 298423fc..67388911 100644 --- a/addons/cclua/cocos2d/library/cc/ui/Margin.lua +++ b/addons/cclua/cocos2d/library/cc/ui/Margin.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cc.ui.Margin ---\brief Margin of widget's in point. Margin value should be positive. @@ -25,6 +26,12 @@ function Margin:equals(target) end ---Default constructor. ---@return cc.ui.Margin +--- +---Construct a Margin instance with left, top, right and bottom margins. +---\param l Left margin in float. +---\param t Top margin in float. +---\param r Right margin in float. +---\param b Bottom margin in float. ---@overload fun(l: number, t: number, r: number, b: number): cc.ui.Margin function Margin.new() end diff --git a/addons/cclua/cocos2d/library/ccb/Attribute.lua b/addons/cclua/cocos2d/library/ccb/Attribute.lua index 7cf6a509..4fd00534 100644 --- a/addons/cclua/cocos2d/library/ccb/Attribute.lua +++ b/addons/cclua/cocos2d/library/ccb/Attribute.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.Attribute ---@type ccb.Attribute diff --git a/addons/cclua/cocos2d/library/ccb/AttributeBindInfo.lua b/addons/cclua/cocos2d/library/ccb/AttributeBindInfo.lua index 95ef5dca..893eb46f 100644 --- a/addons/cclua/cocos2d/library/ccb/AttributeBindInfo.lua +++ b/addons/cclua/cocos2d/library/ccb/AttributeBindInfo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.AttributeBindInfo --- diff --git a/addons/cclua/cocos2d/library/ccb/BlendDescriptor.lua b/addons/cclua/cocos2d/library/ccb/BlendDescriptor.lua index d6c41311..532793ca 100644 --- a/addons/cclua/cocos2d/library/ccb/BlendDescriptor.lua +++ b/addons/cclua/cocos2d/library/ccb/BlendDescriptor.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.BlendDescriptor ---\brief a structor to store blend descriptor diff --git a/addons/cclua/cocos2d/library/ccb/BlendFactor.lua b/addons/cclua/cocos2d/library/ccb/BlendFactor.lua index cb861810..499a6064 100644 --- a/addons/cclua/cocos2d/library/ccb/BlendFactor.lua +++ b/addons/cclua/cocos2d/library/ccb/BlendFactor.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.BlendFactor ---@type ccb.BlendFactor diff --git a/addons/cclua/cocos2d/library/ccb/BlendOperation.lua b/addons/cclua/cocos2d/library/ccb/BlendOperation.lua index 666c7fe3..a49c67b6 100644 --- a/addons/cclua/cocos2d/library/ccb/BlendOperation.lua +++ b/addons/cclua/cocos2d/library/ccb/BlendOperation.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.BlendOperation ---@type ccb.BlendOperation diff --git a/addons/cclua/cocos2d/library/ccb/Buffer.lua b/addons/cclua/cocos2d/library/ccb/Buffer.lua index 154031b6..889217cc 100644 --- a/addons/cclua/cocos2d/library/ccb/Buffer.lua +++ b/addons/cclua/cocos2d/library/ccb/Buffer.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.Buffer ---\brief Used to store vertex and index data data. diff --git a/addons/cclua/cocos2d/library/ccb/BufferType.lua b/addons/cclua/cocos2d/library/ccb/BufferType.lua index 44e91710..5cc85a6d 100644 --- a/addons/cclua/cocos2d/library/ccb/BufferType.lua +++ b/addons/cclua/cocos2d/library/ccb/BufferType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.BufferType ---@type ccb.BufferType diff --git a/addons/cclua/cocos2d/library/ccb/BufferUsage.lua b/addons/cclua/cocos2d/library/ccb/BufferUsage.lua index 9b93e560..ccba2901 100644 --- a/addons/cclua/cocos2d/library/ccb/BufferUsage.lua +++ b/addons/cclua/cocos2d/library/ccb/BufferUsage.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.BufferUsage ---@type ccb.BufferUsage diff --git a/addons/cclua/cocos2d/library/ccb/ColorWriteMask.lua b/addons/cclua/cocos2d/library/ccb/ColorWriteMask.lua index c9356f01..d1936110 100644 --- a/addons/cclua/cocos2d/library/ccb/ColorWriteMask.lua +++ b/addons/cclua/cocos2d/library/ccb/ColorWriteMask.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.ColorWriteMask ---@type ccb.ColorWriteMask diff --git a/addons/cclua/cocos2d/library/ccb/CommandBuffer.lua b/addons/cclua/cocos2d/library/ccb/CommandBuffer.lua index f34f6ef5..a113bada 100644 --- a/addons/cclua/cocos2d/library/ccb/CommandBuffer.lua +++ b/addons/cclua/cocos2d/library/ccb/CommandBuffer.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.CommandBuffer ---\brief Store encoded commands for the GPU to execute. @@ -89,6 +90,10 @@ function CommandBuffer:setScissorRect(isEnabled, x, y, width, height) end ---Update both front and back stencil reference value. ---\param value Specifies stencil reference value. ---@param value integer +--- +---Update stencil reference value. +---\param frontRef Specifies front stencil reference value. +---\param backRef Specifies back stencil reference value. ---@overload fun(self: ccb.CommandBuffer, frontRef: integer, backRef: integer) function CommandBuffer:setStencilReferenceValue(value) end diff --git a/addons/cclua/cocos2d/library/ccb/CompareFunction.lua b/addons/cclua/cocos2d/library/ccb/CompareFunction.lua index 910c67b0..6d20c389 100644 --- a/addons/cclua/cocos2d/library/ccb/CompareFunction.lua +++ b/addons/cclua/cocos2d/library/ccb/CompareFunction.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.CompareFunction ---@type ccb.CompareFunction diff --git a/addons/cclua/cocos2d/library/ccb/CullMode.lua b/addons/cclua/cocos2d/library/ccb/CullMode.lua index 323acb91..1b81afe7 100644 --- a/addons/cclua/cocos2d/library/ccb/CullMode.lua +++ b/addons/cclua/cocos2d/library/ccb/CullMode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.CullMode ---@type ccb.CullMode diff --git a/addons/cclua/cocos2d/library/ccb/DepthStencilDescriptor.lua b/addons/cclua/cocos2d/library/ccb/DepthStencilDescriptor.lua index 981ab53b..3d65aa5f 100644 --- a/addons/cclua/cocos2d/library/ccb/DepthStencilDescriptor.lua +++ b/addons/cclua/cocos2d/library/ccb/DepthStencilDescriptor.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.DepthStencilDescriptor ---Depth and stencil descriptor. diff --git a/addons/cclua/cocos2d/library/ccb/DepthStencilState.lua b/addons/cclua/cocos2d/library/ccb/DepthStencilState.lua index a4608f5a..cfd7d2b4 100644 --- a/addons/cclua/cocos2d/library/ccb/DepthStencilState.lua +++ b/addons/cclua/cocos2d/library/ccb/DepthStencilState.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.DepthStencilState ---Store Depth and stencil status. diff --git a/addons/cclua/cocos2d/library/ccb/Device.lua b/addons/cclua/cocos2d/library/ccb/Device.lua index 7b5dad4b..4c6a1c99 100644 --- a/addons/cclua/cocos2d/library/ccb/Device.lua +++ b/addons/cclua/cocos2d/library/ccb/Device.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.Device ---New or create resources from Device. diff --git a/addons/cclua/cocos2d/library/ccb/DeviceInfo.lua b/addons/cclua/cocos2d/library/ccb/DeviceInfo.lua index 188e480e..c3b21d42 100644 --- a/addons/cclua/cocos2d/library/ccb/DeviceInfo.lua +++ b/addons/cclua/cocos2d/library/ccb/DeviceInfo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.DeviceInfo ---Used to query features and implementation limits diff --git a/addons/cclua/cocos2d/library/ccb/FeatureType.lua b/addons/cclua/cocos2d/library/ccb/FeatureType.lua index da99eb29..c557d55a 100644 --- a/addons/cclua/cocos2d/library/ccb/FeatureType.lua +++ b/addons/cclua/cocos2d/library/ccb/FeatureType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.FeatureType ---@type ccb.FeatureType diff --git a/addons/cclua/cocos2d/library/ccb/IndexFormat.lua b/addons/cclua/cocos2d/library/ccb/IndexFormat.lua index 4d058c74..286f94d6 100644 --- a/addons/cclua/cocos2d/library/ccb/IndexFormat.lua +++ b/addons/cclua/cocos2d/library/ccb/IndexFormat.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.IndexFormat ---@type ccb.IndexFormat diff --git a/addons/cclua/cocos2d/library/ccb/PixelFormat.lua b/addons/cclua/cocos2d/library/ccb/PixelFormat.lua index b9ea68bf..99f9f736 100644 --- a/addons/cclua/cocos2d/library/ccb/PixelFormat.lua +++ b/addons/cclua/cocos2d/library/ccb/PixelFormat.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.PixelFormat ---@type ccb.PixelFormat diff --git a/addons/cclua/cocos2d/library/ccb/PrimitiveType.lua b/addons/cclua/cocos2d/library/ccb/PrimitiveType.lua index 29c91822..34b8f083 100644 --- a/addons/cclua/cocos2d/library/ccb/PrimitiveType.lua +++ b/addons/cclua/cocos2d/library/ccb/PrimitiveType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.PrimitiveType ---@type ccb.PrimitiveType diff --git a/addons/cclua/cocos2d/library/ccb/Program.lua b/addons/cclua/cocos2d/library/ccb/Program.lua index 0bdf8707..d88ef04f 100644 --- a/addons/cclua/cocos2d/library/ccb/Program.lua +++ b/addons/cclua/cocos2d/library/ccb/Program.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.Program ---A program. @@ -35,6 +36,10 @@ function Program:getAllActiveUniformInfo(stage) end ---\return The attribute location. ---@param name string ---@return integer +--- +---Get attribute location by engine built-in attribute enum name. +---\param name Specifies the engine built-in attribute enum name. +---\return The attribute location. ---@overload fun(self: ccb.Program, name: ccb.Attribute): integer function Program:getAttributeLocation(name) end @@ -76,6 +81,10 @@ function Program:getUniformBufferSize(stage) end ---\return The uniform location. ---@param uniform string ---@return ccb.UniformLocation +--- +---Get uniform location by engine built-in uniform enum name. +---\param name Specifies the engine built-in uniform enum name. +---\return The uniform location. ---@overload fun(self: ccb.Program, name: ccb.Uniform): ccb.UniformLocation function Program:getUniformLocation(uniform) end diff --git a/addons/cclua/cocos2d/library/ccb/ProgramCache.lua b/addons/cclua/cocos2d/library/ccb/ProgramCache.lua index 549198da..baf1b731 100644 --- a/addons/cclua/cocos2d/library/ccb/ProgramCache.lua +++ b/addons/cclua/cocos2d/library/ccb/ProgramCache.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.ProgramCache ---Cache and reuse program object. diff --git a/addons/cclua/cocos2d/library/ccb/ProgramState.lua b/addons/cclua/cocos2d/library/ccb/ProgramState.lua index 8cd9d375..e7a67ce1 100644 --- a/addons/cclua/cocos2d/library/ccb/ProgramState.lua +++ b/addons/cclua/cocos2d/library/ccb/ProgramState.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.ProgramState ---A program state object can create or reuse a program. @@ -18,6 +19,11 @@ function ProgramState:clone() end ---\see `int getAttributeLocation(const std::string& name) const` ---@param name string ---@return integer +--- +---Get an attribute location by the engine built-in attribute name. +---\param name Specifies the built-in attribute name. +---\return Attribute location. +---\see `int getAttributeLocation(const std::string& name) const` ---@overload fun(self: ccb.ProgramState, name: ccb.Attribute): integer function ProgramState:getAttributeLocation(name) end @@ -36,6 +42,11 @@ function ProgramState:getProgram() end ---\see `backend::UniformLocation getUniformLocation(backend::Uniform name) const` ---@param uniform string ---@return ccb.UniformLocation +--- +---Get uniform location in a more efficient way by the given built-in uniform name. +---\param uniform Specifies the engin built-in uniform name. +---\return Uniform location. +---\see `backend::UniformLocation getUniformLocation(backend::Uniform name) const` ---@overload fun(self: ccb.ProgramState, name: ccb.Uniform): ccb.UniformLocation function ProgramState:getUniformLocation(uniform) end @@ -69,7 +80,7 @@ function ProgramState:setParameterAutoBinding(uniformName, autoBinding) end ---\param slot Specifies texture slot selector. ---\param texture Specifies a pointer to backend texture. ---@param uniformLocation ccb.UniformLocation ----@param slot any +---@param slot integer ---@param texture ccb.TextureBackend function ProgramState:setTexture(uniformLocation, slot, texture) end @@ -78,7 +89,7 @@ function ProgramState:setTexture(uniformLocation, slot, texture) end ---\param slots Specifies texture slot selector. ---\param textures Specifies a vector of backend texture object. ---@param uniformLocation ccb.UniformLocation ----@param slots any[] +---@param slots integer[] ---@param textures ccb.TextureBackend[] function ProgramState:setTextureArray(uniformLocation, slots, textures) end diff --git a/addons/cclua/cocos2d/library/ccb/ProgramType.lua b/addons/cclua/cocos2d/library/ccb/ProgramType.lua index e4768e74..8742219b 100644 --- a/addons/cclua/cocos2d/library/ccb/ProgramType.lua +++ b/addons/cclua/cocos2d/library/ccb/ProgramType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.ProgramType ---@type ccb.ProgramType diff --git a/addons/cclua/cocos2d/library/ccb/RenderPipeline.lua b/addons/cclua/cocos2d/library/ccb/RenderPipeline.lua index e95cab11..e85797b5 100644 --- a/addons/cclua/cocos2d/library/ccb/RenderPipeline.lua +++ b/addons/cclua/cocos2d/library/ccb/RenderPipeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.RenderPipeline ---Render pipeline diff --git a/addons/cclua/cocos2d/library/ccb/SamplerAddressMode.lua b/addons/cclua/cocos2d/library/ccb/SamplerAddressMode.lua index 875711d7..28e766a7 100644 --- a/addons/cclua/cocos2d/library/ccb/SamplerAddressMode.lua +++ b/addons/cclua/cocos2d/library/ccb/SamplerAddressMode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.SamplerAddressMode ---@type ccb.SamplerAddressMode diff --git a/addons/cclua/cocos2d/library/ccb/SamplerDescriptor.lua b/addons/cclua/cocos2d/library/ccb/SamplerDescriptor.lua index ca0e48a0..e2385b6e 100644 --- a/addons/cclua/cocos2d/library/ccb/SamplerDescriptor.lua +++ b/addons/cclua/cocos2d/library/ccb/SamplerDescriptor.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.SamplerDescriptor --- diff --git a/addons/cclua/cocos2d/library/ccb/SamplerFilter.lua b/addons/cclua/cocos2d/library/ccb/SamplerFilter.lua index 60ebec91..f270eaa5 100644 --- a/addons/cclua/cocos2d/library/ccb/SamplerFilter.lua +++ b/addons/cclua/cocos2d/library/ccb/SamplerFilter.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.SamplerFilter ---@type ccb.SamplerFilter diff --git a/addons/cclua/cocos2d/library/ccb/ShaderCache.lua b/addons/cclua/cocos2d/library/ccb/ShaderCache.lua index b5aa6644..99c36ffd 100644 --- a/addons/cclua/cocos2d/library/ccb/ShaderCache.lua +++ b/addons/cclua/cocos2d/library/ccb/ShaderCache.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.ShaderCache ---Create and reuse shader module. diff --git a/addons/cclua/cocos2d/library/ccb/ShaderModule.lua b/addons/cclua/cocos2d/library/ccb/ShaderModule.lua index bd590412..91829a91 100644 --- a/addons/cclua/cocos2d/library/ccb/ShaderModule.lua +++ b/addons/cclua/cocos2d/library/ccb/ShaderModule.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.ShaderModule ---Create shader. diff --git a/addons/cclua/cocos2d/library/ccb/ShaderStage.lua b/addons/cclua/cocos2d/library/ccb/ShaderStage.lua index 11a31fcb..44fbbb3f 100644 --- a/addons/cclua/cocos2d/library/ccb/ShaderStage.lua +++ b/addons/cclua/cocos2d/library/ccb/ShaderStage.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.ShaderStage ---@type ccb.ShaderStage diff --git a/addons/cclua/cocos2d/library/ccb/StencilDescriptor.lua b/addons/cclua/cocos2d/library/ccb/StencilDescriptor.lua index 9c970f3b..08515498 100644 --- a/addons/cclua/cocos2d/library/ccb/StencilDescriptor.lua +++ b/addons/cclua/cocos2d/library/ccb/StencilDescriptor.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.StencilDescriptor ---Stencil descriptor. diff --git a/addons/cclua/cocos2d/library/ccb/StencilOperation.lua b/addons/cclua/cocos2d/library/ccb/StencilOperation.lua index 95efa3f8..807c5d88 100644 --- a/addons/cclua/cocos2d/library/ccb/StencilOperation.lua +++ b/addons/cclua/cocos2d/library/ccb/StencilOperation.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.StencilOperation ---@type ccb.StencilOperation diff --git a/addons/cclua/cocos2d/library/ccb/Texture2DBackend.lua b/addons/cclua/cocos2d/library/ccb/Texture2DBackend.lua index be1f41ff..1687e61e 100644 --- a/addons/cclua/cocos2d/library/ccb/Texture2DBackend.lua +++ b/addons/cclua/cocos2d/library/ccb/Texture2DBackend.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.Texture2DBackend ---A 2D texture. diff --git a/addons/cclua/cocos2d/library/ccb/TextureBackend.lua b/addons/cclua/cocos2d/library/ccb/TextureBackend.lua index 84b8ed61..f948f66c 100644 --- a/addons/cclua/cocos2d/library/ccb/TextureBackend.lua +++ b/addons/cclua/cocos2d/library/ccb/TextureBackend.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.TextureBackend ---A base texture diff --git a/addons/cclua/cocos2d/library/ccb/TextureCubeFace.lua b/addons/cclua/cocos2d/library/ccb/TextureCubeFace.lua index 6043ae33..08b18994 100644 --- a/addons/cclua/cocos2d/library/ccb/TextureCubeFace.lua +++ b/addons/cclua/cocos2d/library/ccb/TextureCubeFace.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.TextureCubeFace ---@type ccb.TextureCubeFace diff --git a/addons/cclua/cocos2d/library/ccb/TextureCubemapBackend.lua b/addons/cclua/cocos2d/library/ccb/TextureCubemapBackend.lua index 062ef9bd..7da495e2 100644 --- a/addons/cclua/cocos2d/library/ccb/TextureCubemapBackend.lua +++ b/addons/cclua/cocos2d/library/ccb/TextureCubemapBackend.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.TextureCubemapBackend ---A cubemap texture. diff --git a/addons/cclua/cocos2d/library/ccb/TextureDescriptor.lua b/addons/cclua/cocos2d/library/ccb/TextureDescriptor.lua index 18a07d20..0c0f1643 100644 --- a/addons/cclua/cocos2d/library/ccb/TextureDescriptor.lua +++ b/addons/cclua/cocos2d/library/ccb/TextureDescriptor.lua @@ -1,15 +1,16 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.TextureDescriptor ---Store texture description. ---@class ccb.TextureDescriptor ----@field depth any ----@field height any +---@field depth integer +---@field height integer ---@field sampleCount integer ---@field samplerDescriptor ccb.SamplerDescriptor ---@field textureFormat ccb.PixelFormat ---@field textureType ccb.TextureType ---@field textureUsage ccb.TextureUsage ----@field width any +---@field width integer local TextureDescriptor = {} ---@return any diff --git a/addons/cclua/cocos2d/library/ccb/TextureInfo.lua b/addons/cclua/cocos2d/library/ccb/TextureInfo.lua index 394c62fe..8f415e73 100644 --- a/addons/cclua/cocos2d/library/ccb/TextureInfo.lua +++ b/addons/cclua/cocos2d/library/ccb/TextureInfo.lua @@ -1,8 +1,9 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.TextureInfo ---Store texture information. ---@class ccb.TextureInfo ----@field slot any[] +---@field slot integer[] ---@field textures ccb.TextureBackend[] local TextureInfo = {} @@ -12,7 +13,7 @@ function TextureInfo:__gc() end ---@return any function TextureInfo:__olua_move() end ----@param _slots any[] +---@param _slots integer[] ---@param _textures ccb.TextureBackend[] ---@return ccb.TextureInfo ---@overload fun(): ccb.TextureInfo diff --git a/addons/cclua/cocos2d/library/ccb/TextureType.lua b/addons/cclua/cocos2d/library/ccb/TextureType.lua index 2f328fa0..6dc84d6c 100644 --- a/addons/cclua/cocos2d/library/ccb/TextureType.lua +++ b/addons/cclua/cocos2d/library/ccb/TextureType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.TextureType ---@type ccb.TextureType diff --git a/addons/cclua/cocos2d/library/ccb/TextureUsage.lua b/addons/cclua/cocos2d/library/ccb/TextureUsage.lua index 0460855f..e5cff4cd 100644 --- a/addons/cclua/cocos2d/library/ccb/TextureUsage.lua +++ b/addons/cclua/cocos2d/library/ccb/TextureUsage.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.TextureUsage ---@type ccb.TextureUsage diff --git a/addons/cclua/cocos2d/library/ccb/Uniform.lua b/addons/cclua/cocos2d/library/ccb/Uniform.lua index d3c1aa04..91a88225 100644 --- a/addons/cclua/cocos2d/library/ccb/Uniform.lua +++ b/addons/cclua/cocos2d/library/ccb/Uniform.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.Uniform ---@type ccb.Uniform diff --git a/addons/cclua/cocos2d/library/ccb/UniformInfo.lua b/addons/cclua/cocos2d/library/ccb/UniformInfo.lua index 8704a36a..ab4a1ac8 100644 --- a/addons/cclua/cocos2d/library/ccb/UniformInfo.lua +++ b/addons/cclua/cocos2d/library/ccb/UniformInfo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.UniformInfo --- diff --git a/addons/cclua/cocos2d/library/ccb/UniformLocation.lua b/addons/cclua/cocos2d/library/ccb/UniformLocation.lua index 4298ded0..a8790ee9 100644 --- a/addons/cclua/cocos2d/library/ccb/UniformLocation.lua +++ b/addons/cclua/cocos2d/library/ccb/UniformLocation.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.UniformLocation --- diff --git a/addons/cclua/cocos2d/library/ccb/VertexFormat.lua b/addons/cclua/cocos2d/library/ccb/VertexFormat.lua index 7a808e69..7140df47 100644 --- a/addons/cclua/cocos2d/library/ccb/VertexFormat.lua +++ b/addons/cclua/cocos2d/library/ccb/VertexFormat.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.VertexFormat ---@type ccb.VertexFormat diff --git a/addons/cclua/cocos2d/library/ccb/VertexLayout.lua b/addons/cclua/cocos2d/library/ccb/VertexLayout.lua index 8755c115..5618f59c 100644 --- a/addons/cclua/cocos2d/library/ccb/VertexLayout.lua +++ b/addons/cclua/cocos2d/library/ccb/VertexLayout.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.VertexLayout ---Store vertex attribute layout. diff --git a/addons/cclua/cocos2d/library/ccb/VertexLayout/Attribute.lua b/addons/cclua/cocos2d/library/ccb/VertexLayout/Attribute.lua index b79eea7b..4dc109e7 100644 --- a/addons/cclua/cocos2d/library/ccb/VertexLayout/Attribute.lua +++ b/addons/cclua/cocos2d/library/ccb/VertexLayout/Attribute.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.VertexLayout.Attribute --- diff --git a/addons/cclua/cocos2d/library/ccb/VertexStepMode.lua b/addons/cclua/cocos2d/library/ccb/VertexStepMode.lua index 4021ff87..dfd9e67b 100644 --- a/addons/cclua/cocos2d/library/ccb/VertexStepMode.lua +++ b/addons/cclua/cocos2d/library/ccb/VertexStepMode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.VertexStepMode ---@type ccb.VertexStepMode diff --git a/addons/cclua/cocos2d/library/ccb/Winding.lua b/addons/cclua/cocos2d/library/ccb/Winding.lua index f893b8bf..5146bfce 100644 --- a/addons/cclua/cocos2d/library/ccb/Winding.lua +++ b/addons/cclua/cocos2d/library/ccb/Winding.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccb.Winding ---@type ccb.Winding diff --git a/addons/cclua/cocos2d/library/ccs/ActionFadeFrame.lua b/addons/cclua/cocos2d/library/ccs/ActionFadeFrame.lua index 861c3688..c03db8e5 100644 --- a/addons/cclua/cocos2d/library/ccs/ActionFadeFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/ActionFadeFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ActionFadeFrame ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/ActionFrame.lua b/addons/cclua/cocos2d/library/ccs/ActionFrame.lua index 6aff3d44..4c765c46 100644 --- a/addons/cclua/cocos2d/library/ccs/ActionFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/ActionFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ActionFrame ---\js NA @@ -16,6 +17,14 @@ local ActionFrame = {} ---\return ActionInterval ---@param duration number ---@return cc.ActionInterval +--- +---Gets the ActionInterval of ActionFrame. +--- +---\param duration the duration time of ActionFrame +--- +---\param duration the source ActionFrame +--- +---\return ActionInterval ---@overload fun(self: ccs.ActionFrame, duration: number, srcFrame: ccs.ActionFrame): cc.ActionInterval function ActionFrame:getAction(duration) end diff --git a/addons/cclua/cocos2d/library/ccs/ActionFrameEasing.lua b/addons/cclua/cocos2d/library/ccs/ActionFrameEasing.lua index acc79096..91330b77 100644 --- a/addons/cclua/cocos2d/library/ccs/ActionFrameEasing.lua +++ b/addons/cclua/cocos2d/library/ccs/ActionFrameEasing.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ActionFrameEasing ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/ActionManagerEx.lua b/addons/cclua/cocos2d/library/ccs/ActionManagerEx.lua index 87614c85..3d54e174 100644 --- a/addons/cclua/cocos2d/library/ccs/ActionManagerEx.lua +++ b/addons/cclua/cocos2d/library/ccs/ActionManagerEx.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ActionManagerEx --- @@ -47,6 +48,14 @@ function ActionManagerEx.new() end ---@param jsonName string ---@param actionName string ---@return ccs.ActionObject +--- +---Play an Action with a name. +--- +---\param jsonName UI file name +--- +---\param actionName action name in the UIfile. +--- +---\param func ui action call back ---@overload fun(self: ccs.ActionManagerEx, jsonName: string, actionName: string, func: cc.CallFunc): ccs.ActionObject function ActionManagerEx:playActionByName(jsonName, actionName) end diff --git a/addons/cclua/cocos2d/library/ccs/ActionMoveFrame.lua b/addons/cclua/cocos2d/library/ccs/ActionMoveFrame.lua index f3275296..531fe474 100644 --- a/addons/cclua/cocos2d/library/ccs/ActionMoveFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/ActionMoveFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ActionMoveFrame ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/ActionNode.lua b/addons/cclua/cocos2d/library/ccs/ActionNode.lua index 1dc334f2..b9159ab2 100644 --- a/addons/cclua/cocos2d/library/ccs/ActionNode.lua +++ b/addons/cclua/cocos2d/library/ccs/ActionNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ActionNode ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/ActionObject.lua b/addons/cclua/cocos2d/library/ccs/ActionObject.lua index cdeadc39..9b7ebb22 100644 --- a/addons/cclua/cocos2d/library/ccs/ActionObject.lua +++ b/addons/cclua/cocos2d/library/ccs/ActionObject.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ActionObject ---\js NA @@ -61,6 +62,10 @@ function ActionObject.new() end function ActionObject:pause() end ---Play the action. +--- +---Play the action. +--- +---\param func Action Call Back ---@overload fun(self: ccs.ActionObject, func: cc.CallFunc) function ActionObject:play() end diff --git a/addons/cclua/cocos2d/library/ccs/ActionRotationFrame.lua b/addons/cclua/cocos2d/library/ccs/ActionRotationFrame.lua index 148fe8cb..07e191aa 100644 --- a/addons/cclua/cocos2d/library/ccs/ActionRotationFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/ActionRotationFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ActionRotationFrame ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/ActionScaleFrame.lua b/addons/cclua/cocos2d/library/ccs/ActionScaleFrame.lua index 61258059..ed848553 100644 --- a/addons/cclua/cocos2d/library/ccs/ActionScaleFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/ActionScaleFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ActionScaleFrame ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/ActionTintFrame.lua b/addons/cclua/cocos2d/library/ccs/ActionTintFrame.lua index 75a43a6f..7bf8fda4 100644 --- a/addons/cclua/cocos2d/library/ccs/ActionTintFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/ActionTintFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ActionTintFrame ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/AnimationData.lua b/addons/cclua/cocos2d/library/ccs/AnimationData.lua index ca379d60..fe24e667 100644 --- a/addons/cclua/cocos2d/library/ccs/AnimationData.lua +++ b/addons/cclua/cocos2d/library/ccs/AnimationData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.AnimationData ---AnimationData include all movement information for the Armature diff --git a/addons/cclua/cocos2d/library/ccs/Armature.lua b/addons/cclua/cocos2d/library/ccs/Armature.lua index 37430f1d..41861927 100644 --- a/addons/cclua/cocos2d/library/ccs/Armature.lua +++ b/addons/cclua/cocos2d/library/ccs/Armature.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.Armature --- @@ -36,6 +37,11 @@ function Armature:changeBoneParent(bone, parentName) end ---Allocates and initializes an armature. ---\return An initialized armature which is marked as "autorelease". ---@return ccs.Armature +--- +---Allocates an armature, and use the ArmatureData named name in ArmatureDataManager to initializes the armature. +--- +---\param name Armature will use the name to find the ArmatureData to initializes it. +---\return A initialized armature which is marked as "autorelease". ---@overload fun(name: string): ccs.Armature ---@overload fun(name: string, parentBone: ccs.Bone): ccs.Armature function Armature.create() end @@ -85,6 +91,9 @@ function Armature:getVersion() end ---Init the empty armature ---@return boolean +--- +---Init an armature with specified name +---\param name Armature name ---@overload fun(self: ccs.Armature, name: string): boolean ---@overload fun(self: ccs.Armature, name: string, parentBone: ccs.Bone): boolean function Armature:init() end diff --git a/addons/cclua/cocos2d/library/ccs/ArmatureAnimation.lua b/addons/cclua/cocos2d/library/ccs/ArmatureAnimation.lua index a751ab41..02bf2ac5 100644 --- a/addons/cclua/cocos2d/library/ccs/ArmatureAnimation.lua +++ b/addons/cclua/cocos2d/library/ccs/ArmatureAnimation.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ArmatureAnimation --- @@ -80,8 +81,59 @@ function ArmatureAnimation.new() end ---@param animationName string ---@param durationTo integer ---@param loop integer +--- +---Play animation by animation name. +--- +---\param animationName The animation name you want to play +---\param durationTo The frames between two animation changing-over. +---It's meaning is changing to this animation need how many frames +--- +----1 : use the value from MovementData get from flash design panel +---\param loop Whether the animation is loop +--- +---loop < 0 : use the value from MovementData get from flash design panel +---loop = 0 : this animation is not loop +---loop > 0 : this animation is loop ---@overload fun(self: ccs.ArmatureAnimation, animationName: string) +--- +---Play animation by animation name. +--- +---\param animationName The animation name you want to play +---\param durationTo The frames between two animation changing-over. +---It's meaning is changing to this animation need how many frames +--- +----1 : use the value from MovementData get from flash design panel +---\param loop Whether the animation is loop +--- +---loop < 0 : use the value from MovementData get from flash design panel +---loop = 0 : this animation is not loop +---loop > 0 : this animation is loop ---@overload fun(self: ccs.ArmatureAnimation, animationName: string, durationTo: integer) +--- +---Play animation by animation name. +--- +---\param durationTo The frames between two animation changing-over. +---It's meaning is changing to this animation need how many frames +--- +----1 : use the value from MovementData get from flash design panel +---\param durationTween The frame count you want to play in the game. +---if _durationTween is 80, then the animation will played 80 frames in a loop +--- +----1 : use the value from MovementData get from flash design panel +--- +---\param loop Whether the animation is loop +--- +---loop < 0 : use the value from MovementData get from flash design panel +---loop = 0 : this animation is not loop +---loop > 0 : this animation is loop +--- +---\param tweenEasing Tween easing is used for calculate easing effect +--- +---TWEEN_EASING_MAX : use the value from MovementData get from flash design panel +----1 : fade out +---0 : line +---1 : fade in +---2 : fade in and out ---@overload fun(self: ccs.ArmatureAnimation, durationTo: integer, durationTween: integer, loop: integer, tweenEasing: integer) function ArmatureAnimation:play(animationName, durationTo, loop) end diff --git a/addons/cclua/cocos2d/library/ccs/ArmatureData.lua b/addons/cclua/cocos2d/library/ccs/ArmatureData.lua index 6e39512e..f02d8209 100644 --- a/addons/cclua/cocos2d/library/ccs/ArmatureData.lua +++ b/addons/cclua/cocos2d/library/ccs/ArmatureData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ArmatureData ---ArmatureData saved the Armature name and Bonedata needed for the CCBones in this Armature diff --git a/addons/cclua/cocos2d/library/ccs/ArmatureDataManager.lua b/addons/cclua/cocos2d/library/ccs/ArmatureDataManager.lua index 66cf159f..2a306cf7 100644 --- a/addons/cclua/cocos2d/library/ccs/ArmatureDataManager.lua +++ b/addons/cclua/cocos2d/library/ccs/ArmatureDataManager.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ArmatureDataManager ---\brief format and manage armature configuration and armature animation @@ -15,6 +16,10 @@ local ArmatureDataManager = {} ---@param id string ---@param animationData ccs.AnimationData ---@param configFilePath string +--- +---\brief add animation data +---\param id the id of the animation data +---\return AnimationData ---@overload fun(self: ccs.ArmatureDataManager, id: string, animationData: ccs.AnimationData) function ArmatureDataManager:addAnimationData(id, animationData, configFilePath) end @@ -24,11 +29,17 @@ function ArmatureDataManager:addAnimationData(id, animationData, configFilePath) ---@param id string ---@param armatureData ccs.ArmatureData ---@param configFilePath string +--- +---Add armature data +---\param id The id of the armature data +---\param armatureData ArmatureData ---@overload fun(self: ccs.ArmatureDataManager, id: string, armatureData: ccs.ArmatureData) function ArmatureDataManager:addArmatureData(id, armatureData, configFilePath) end ---\brief Add ArmatureFileInfo, it is managed by ArmatureDataManager. ---@param configFilePath string +--- +---\brief Add ArmatureFileInfo, it is managed by ArmatureDataManager. ---@overload fun(self: ccs.ArmatureDataManager, imagePath: string, plistPath: string, configFilePath: string) function ArmatureDataManager:addArmatureFileInfo(configFilePath) end @@ -36,6 +47,8 @@ function ArmatureDataManager:addArmatureFileInfo(configFilePath) end ---@param plistPath string ---@param imagePath string ---@param configFilePath string +--- +---\brief Add sprite frame to CCSpriteFrameCache, it will save display name and it's relative image name ---@overload fun(self: ccs.ArmatureDataManager, plistPath: string, imagePath: string) function ArmatureDataManager:addSpriteFrameFromFile(plistPath, imagePath, configFilePath) end @@ -45,6 +58,10 @@ function ArmatureDataManager:addSpriteFrameFromFile(plistPath, imagePath, config ---@param id string ---@param textureData ccs.TextureData ---@param configFilePath string +--- +---\brief add texture data +---\param id the id of the texture data +---\return TextureData ---@overload fun(self: ccs.ArmatureDataManager, id: string, textureData: ccs.TextureData) function ArmatureDataManager:addTextureData(id, textureData, configFilePath) end diff --git a/addons/cclua/cocos2d/library/ccs/ArmatureDisplayData.lua b/addons/cclua/cocos2d/library/ccs/ArmatureDisplayData.lua index 577fc3e4..e3c78079 100644 --- a/addons/cclua/cocos2d/library/ccs/ArmatureDisplayData.lua +++ b/addons/cclua/cocos2d/library/ccs/ArmatureDisplayData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ArmatureDisplayData ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/ArmatureMovementDispatcher.lua b/addons/cclua/cocos2d/library/ccs/ArmatureMovementDispatcher.lua index e3851984..90280cea 100644 --- a/addons/cclua/cocos2d/library/ccs/ArmatureMovementDispatcher.lua +++ b/addons/cclua/cocos2d/library/ccs/ArmatureMovementDispatcher.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ArmatureMovementDispatcher --- diff --git a/addons/cclua/cocos2d/library/ccs/BaseData.lua b/addons/cclua/cocos2d/library/ccs/BaseData.lua index 272963c9..25717fdc 100644 --- a/addons/cclua/cocos2d/library/ccs/BaseData.lua +++ b/addons/cclua/cocos2d/library/ccs/BaseData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.BaseData ---The base node include a lot of attributes. diff --git a/addons/cclua/cocos2d/library/ccs/BaseTriggerAction.lua b/addons/cclua/cocos2d/library/ccs/BaseTriggerAction.lua index 4042d6bf..73d3eba7 100644 --- a/addons/cclua/cocos2d/library/ccs/BaseTriggerAction.lua +++ b/addons/cclua/cocos2d/library/ccs/BaseTriggerAction.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.BaseTriggerAction --- diff --git a/addons/cclua/cocos2d/library/ccs/BaseTriggerCondition.lua b/addons/cclua/cocos2d/library/ccs/BaseTriggerCondition.lua index 7077d62c..20943928 100644 --- a/addons/cclua/cocos2d/library/ccs/BaseTriggerCondition.lua +++ b/addons/cclua/cocos2d/library/ccs/BaseTriggerCondition.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.BaseTriggerCondition --- diff --git a/addons/cclua/cocos2d/library/ccs/BatchNode.lua b/addons/cclua/cocos2d/library/ccs/BatchNode.lua index b8b78ed8..0cebd1b8 100644 --- a/addons/cclua/cocos2d/library/ccs/BatchNode.lua +++ b/addons/cclua/cocos2d/library/ccs/BatchNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.BatchNode --- diff --git a/addons/cclua/cocos2d/library/ccs/Bone.lua b/addons/cclua/cocos2d/library/ccs/Bone.lua index 4529980e..343f2b1f 100644 --- a/addons/cclua/cocos2d/library/ccs/Bone.lua +++ b/addons/cclua/cocos2d/library/ccs/Bone.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.Bone --- @@ -50,6 +51,11 @@ function Bone:changeDisplayWithName(name, force) end ---Allocates and initializes a bone. ---\return A initialized bone which is marked as "autorelease". ---@return ccs.Bone +--- +---Allocates and initializes a bone. +--- +---\param name If name is not null, then set name to the bone's name +---\return A initialized bone which is marked as "autorelease". ---@overload fun(name: string): ccs.Bone function Bone.create() end @@ -96,6 +102,9 @@ function Bone:getWorldInfo() end ---Initializes an empty Bone with nothing init. ---@return boolean +--- +---Initializes a Bone with the specified name +---\param name Bone's name. ---@overload fun(self: ccs.Bone, name: string): boolean function Bone:init() end @@ -124,6 +133,10 @@ function Bone:removeDisplay(index) end ---Remove itself from its parent. ---\param recursion whether or not to remove childBone's display ---@param recursion boolean +--- +---Removes this node itself from its parent node with a cleanup. +---If the node orphan, then nothing happens. +---\see `removeFromParentAndCleanup(bool)` ---@overload fun(self: ccs.Bone) function Bone:removeFromParent(recursion) end diff --git a/addons/cclua/cocos2d/library/ccs/BoneData.lua b/addons/cclua/cocos2d/library/ccs/BoneData.lua index b064df31..4734bc01 100644 --- a/addons/cclua/cocos2d/library/ccs/BoneData.lua +++ b/addons/cclua/cocos2d/library/ccs/BoneData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.BoneData ---BoneData used to init a Bone. diff --git a/addons/cclua/cocos2d/library/ccs/CocoLoader.lua b/addons/cclua/cocos2d/library/ccs/CocoLoader.lua index 81fa55c2..06fe37a8 100644 --- a/addons/cclua/cocos2d/library/ccs/CocoLoader.lua +++ b/addons/cclua/cocos2d/library/ccs/CocoLoader.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.CocoLoader --- diff --git a/addons/cclua/cocos2d/library/ccs/ColliderBody.lua b/addons/cclua/cocos2d/library/ccs/ColliderBody.lua index b665fd50..ae93bbd6 100644 --- a/addons/cclua/cocos2d/library/ccs/ColliderBody.lua +++ b/addons/cclua/cocos2d/library/ccs/ColliderBody.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ColliderBody --- diff --git a/addons/cclua/cocos2d/library/ccs/ColliderDetector.lua b/addons/cclua/cocos2d/library/ccs/ColliderDetector.lua index 349f1d6e..23119fde 100644 --- a/addons/cclua/cocos2d/library/ccs/ColliderDetector.lua +++ b/addons/cclua/cocos2d/library/ccs/ColliderDetector.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ColliderDetector --- diff --git a/addons/cclua/cocos2d/library/ccs/ColliderFilter.lua b/addons/cclua/cocos2d/library/ccs/ColliderFilter.lua index f7703f9d..41fc89ea 100644 --- a/addons/cclua/cocos2d/library/ccs/ColliderFilter.lua +++ b/addons/cclua/cocos2d/library/ccs/ColliderFilter.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ColliderFilter ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/ComAttribute.lua b/addons/cclua/cocos2d/library/ccs/ComAttribute.lua index fbcc37af..5424e4c9 100644 --- a/addons/cclua/cocos2d/library/ccs/ComAttribute.lua +++ b/addons/cclua/cocos2d/library/ccs/ComAttribute.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ComAttribute --- diff --git a/addons/cclua/cocos2d/library/ccs/ComAudio.lua b/addons/cclua/cocos2d/library/ccs/ComAudio.lua index de541c84..2245a692 100644 --- a/addons/cclua/cocos2d/library/ccs/ComAudio.lua +++ b/addons/cclua/cocos2d/library/ccs/ComAudio.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ComAudio --- diff --git a/addons/cclua/cocos2d/library/ccs/ComController.lua b/addons/cclua/cocos2d/library/ccs/ComController.lua index 39a11b73..fa9d094e 100644 --- a/addons/cclua/cocos2d/library/ccs/ComController.lua +++ b/addons/cclua/cocos2d/library/ccs/ComController.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ComController --- diff --git a/addons/cclua/cocos2d/library/ccs/ComRender.lua b/addons/cclua/cocos2d/library/ccs/ComRender.lua index 8af1acd0..ac9ad557 100644 --- a/addons/cclua/cocos2d/library/ccs/ComRender.lua +++ b/addons/cclua/cocos2d/library/ccs/ComRender.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ComRender --- diff --git a/addons/cclua/cocos2d/library/ccs/ContourData.lua b/addons/cclua/cocos2d/library/ccs/ContourData.lua index 91e1cc2a..93b17039 100644 --- a/addons/cclua/cocos2d/library/ccs/ContourData.lua +++ b/addons/cclua/cocos2d/library/ccs/ContourData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ContourData --- diff --git a/addons/cclua/cocos2d/library/ccs/DataReaderHelper.lua b/addons/cclua/cocos2d/library/ccs/DataReaderHelper.lua index aa705be7..257f0832 100644 --- a/addons/cclua/cocos2d/library/ccs/DataReaderHelper.lua +++ b/addons/cclua/cocos2d/library/ccs/DataReaderHelper.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.DataReaderHelper ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/DecorativeDisplay.lua b/addons/cclua/cocos2d/library/ccs/DecorativeDisplay.lua index cdc9b32e..682015c3 100644 --- a/addons/cclua/cocos2d/library/ccs/DecorativeDisplay.lua +++ b/addons/cclua/cocos2d/library/ccs/DecorativeDisplay.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.DecorativeDisplay ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/DisplayData.lua b/addons/cclua/cocos2d/library/ccs/DisplayData.lua index 3b2ce73a..7183a394 100644 --- a/addons/cclua/cocos2d/library/ccs/DisplayData.lua +++ b/addons/cclua/cocos2d/library/ccs/DisplayData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.DisplayData ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/DisplayFactory.lua b/addons/cclua/cocos2d/library/ccs/DisplayFactory.lua index 73f520e7..305a0d78 100644 --- a/addons/cclua/cocos2d/library/ccs/DisplayFactory.lua +++ b/addons/cclua/cocos2d/library/ccs/DisplayFactory.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.DisplayFactory ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/DisplayManager.lua b/addons/cclua/cocos2d/library/ccs/DisplayManager.lua index 084d811d..92c6258e 100644 --- a/addons/cclua/cocos2d/library/ccs/DisplayManager.lua +++ b/addons/cclua/cocos2d/library/ccs/DisplayManager.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.DisplayManager ---! DisplayManager manages Bone's display @@ -49,6 +50,8 @@ function DisplayManager:changeDisplayWithName(name, force) end ---Check if the position is inside the bone. ---@param _point cc.Vec2 ---@return boolean +--- +---Check if the position is inside the bone. ---@overload fun(self: ccs.DisplayManager, x: number, y: number): boolean function DisplayManager:containPoint(_point) end diff --git a/addons/cclua/cocos2d/library/ccs/DisplayType.lua b/addons/cclua/cocos2d/library/ccs/DisplayType.lua index 7a2b22c0..2e774c5e 100644 --- a/addons/cclua/cocos2d/library/ccs/DisplayType.lua +++ b/addons/cclua/cocos2d/library/ccs/DisplayType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.DisplayType ---@type ccs.DisplayType diff --git a/addons/cclua/cocos2d/library/ccs/FrameData.lua b/addons/cclua/cocos2d/library/ccs/FrameData.lua index 6c3b4d5a..a84474f7 100644 --- a/addons/cclua/cocos2d/library/ccs/FrameData.lua +++ b/addons/cclua/cocos2d/library/ccs/FrameData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.FrameData ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/GUIReader.lua b/addons/cclua/cocos2d/library/ccs/GUIReader.lua index da0353f3..e0963397 100644 --- a/addons/cclua/cocos2d/library/ccs/GUIReader.lua +++ b/addons/cclua/cocos2d/library/ccs/GUIReader.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.GUIReader --- diff --git a/addons/cclua/cocos2d/library/ccs/InputDelegate.lua b/addons/cclua/cocos2d/library/ccs/InputDelegate.lua index 8bf05b8a..11f66fde 100644 --- a/addons/cclua/cocos2d/library/ccs/InputDelegate.lua +++ b/addons/cclua/cocos2d/library/ccs/InputDelegate.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.InputDelegate ---\lua NA diff --git a/addons/cclua/cocos2d/library/ccs/MovementBoneData.lua b/addons/cclua/cocos2d/library/ccs/MovementBoneData.lua index 9be0feca..251518b8 100644 --- a/addons/cclua/cocos2d/library/ccs/MovementBoneData.lua +++ b/addons/cclua/cocos2d/library/ccs/MovementBoneData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.MovementBoneData ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/MovementData.lua b/addons/cclua/cocos2d/library/ccs/MovementData.lua index 8d233fdb..acea0ec8 100644 --- a/addons/cclua/cocos2d/library/ccs/MovementData.lua +++ b/addons/cclua/cocos2d/library/ccs/MovementData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.MovementData ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/MovementEventType.lua b/addons/cclua/cocos2d/library/ccs/MovementEventType.lua index eb1efa93..606c4719 100644 --- a/addons/cclua/cocos2d/library/ccs/MovementEventType.lua +++ b/addons/cclua/cocos2d/library/ccs/MovementEventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.MovementEventType ---@type ccs.MovementEventType diff --git a/addons/cclua/cocos2d/library/ccs/ParticleDisplayData.lua b/addons/cclua/cocos2d/library/ccs/ParticleDisplayData.lua index d64462ff..a40ced6e 100644 --- a/addons/cclua/cocos2d/library/ccs/ParticleDisplayData.lua +++ b/addons/cclua/cocos2d/library/ccs/ParticleDisplayData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ParticleDisplayData ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/ProcessBase.lua b/addons/cclua/cocos2d/library/ccs/ProcessBase.lua index 5304f459..4080815c 100644 --- a/addons/cclua/cocos2d/library/ccs/ProcessBase.lua +++ b/addons/cclua/cocos2d/library/ccs/ProcessBase.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.ProcessBase ---\js NA @@ -6,7 +7,6 @@ ---@field complete boolean ---@field currentFrameIndex integer ---@field currentPercent number ----@field pause boolean ---@field playing boolean ---@field processScale number ---@field rawDuration integer diff --git a/addons/cclua/cocos2d/library/ccs/SceneReader.lua b/addons/cclua/cocos2d/library/ccs/SceneReader.lua index aaf57be1..2f804eb9 100644 --- a/addons/cclua/cocos2d/library/ccs/SceneReader.lua +++ b/addons/cclua/cocos2d/library/ccs/SceneReader.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.SceneReader --- diff --git a/addons/cclua/cocos2d/library/ccs/SceneReader/AttachComponentType.lua b/addons/cclua/cocos2d/library/ccs/SceneReader/AttachComponentType.lua index afc520df..16acd97c 100644 --- a/addons/cclua/cocos2d/library/ccs/SceneReader/AttachComponentType.lua +++ b/addons/cclua/cocos2d/library/ccs/SceneReader/AttachComponentType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.SceneReader.AttachComponentType ---@type ccs.SceneReader.AttachComponentType diff --git a/addons/cclua/cocos2d/library/ccs/Skin.lua b/addons/cclua/cocos2d/library/ccs/Skin.lua index d9146076..88db7170 100644 --- a/addons/cclua/cocos2d/library/ccs/Skin.lua +++ b/addons/cclua/cocos2d/library/ccs/Skin.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.Skin --- diff --git a/addons/cclua/cocos2d/library/ccs/SpriteDisplayData.lua b/addons/cclua/cocos2d/library/ccs/SpriteDisplayData.lua index 9bd09d4a..a67fa1cd 100644 --- a/addons/cclua/cocos2d/library/ccs/SpriteDisplayData.lua +++ b/addons/cclua/cocos2d/library/ccs/SpriteDisplayData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.SpriteDisplayData ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/SpriteFrameCacheHelper.lua b/addons/cclua/cocos2d/library/ccs/SpriteFrameCacheHelper.lua index be05e778..8d56f0c8 100644 --- a/addons/cclua/cocos2d/library/ccs/SpriteFrameCacheHelper.lua +++ b/addons/cclua/cocos2d/library/ccs/SpriteFrameCacheHelper.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.SpriteFrameCacheHelper ---\js NA diff --git a/addons/cclua/cocos2d/library/ccs/TextureData.lua b/addons/cclua/cocos2d/library/ccs/TextureData.lua index d9bbfc33..fd7e32d3 100644 --- a/addons/cclua/cocos2d/library/ccs/TextureData.lua +++ b/addons/cclua/cocos2d/library/ccs/TextureData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.TextureData --- diff --git a/addons/cclua/cocos2d/library/ccs/Tween.lua b/addons/cclua/cocos2d/library/ccs/Tween.lua index 440c265a..83bffe92 100644 --- a/addons/cclua/cocos2d/library/ccs/Tween.lua +++ b/addons/cclua/cocos2d/library/ccs/Tween.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.Tween ---\js NA @@ -58,6 +59,31 @@ function Tween.new() end ---@param durationTween integer ---@param loop integer ---@param tweenEasing integer +--- +---Play animation by animation name. +--- +---\param durationTo The frames between two animation changing-over. +---It's meaning is changing to this animation need how many frames +--- +----1 : use the value from MovementData get from flash design panel +---\param durationTween The frame count you want to play in the game. +---if _durationTween is 80, then the animation will played 80 frames in a loop +--- +----1 : use the value from MovementData get from flash design panel +--- +---\param loop Whether the animation is loop +--- +---loop < 0 : use the value from MovementData get from flash design panel +---loop = 0 : this animation is not loop +---loop > 0 : this animation is loop +--- +---\param tweenEasing Tween easing is used for calculate easing effect +--- +---TWEEN_EASING_MAX : use the value from MovementData get from flash design panel +----1 : fade out +---0 : line +---1 : fade in +---2 : fade in and out ---@overload fun(self: ccs.Tween, durationTo: integer, durationTween: integer, loop: integer, tweenEasing: integer) function Tween:play(movementBoneData, durationTo, durationTween, loop, tweenEasing) end diff --git a/addons/cclua/cocos2d/library/ccs/timeline/ActionTimeline.lua b/addons/cclua/cocos2d/library/ccs/timeline/ActionTimeline.lua index 3ba77eea..f5f80012 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/ActionTimeline.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/ActionTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.ActionTimeline --- @@ -81,8 +82,23 @@ function ActionTimeline:gotoFrameAndPause(startIndex) end ---Goto the specified frame index, and start playing from this index. ---\param startIndex The animation will play from this index. ---@param startIndex integer +--- +---Goto the specified frame index, and start playing from this index. +---\param startIndex The animation will play from this index. +---\param loop Whether or not the animation need loop. ---@overload fun(self: ccs.timeline.ActionTimeline, startIndex: integer, loop: boolean) +--- +---Goto the specified frame index, and start playing from start index, end at end index. +---\param startIndex The animation will play from this index. +---\param endIndex The animation will end at this index. +---\param loop Whether or not the animation need loop. ---@overload fun(self: ccs.timeline.ActionTimeline, startIndex: integer, endIndex: integer, loop: boolean) +--- +---Goto the specified frame index, and start playing from start index, end at end index. +---\param startIndex The animation will play from this index. +---\param endIndex The animation will end at this index. +---\param currentFrameIndex set current frame index. +---\param loop Whether or not the animation need loop. ---@overload fun(self: ccs.timeline.ActionTimeline, startIndex: integer, endIndex: integer, currentFrameIndex: integer, loop: boolean) function ActionTimeline:gotoFrameAndPlay(startIndex) end diff --git a/addons/cclua/cocos2d/library/ccs/timeline/ActionTimelineCache.lua b/addons/cclua/cocos2d/library/ccs/timeline/ActionTimelineCache.lua index 14c5e2cd..072b5d14 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/ActionTimelineCache.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/ActionTimelineCache.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.ActionTimelineCache --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/ActionTimelineData.lua b/addons/cclua/cocos2d/library/ccs/timeline/ActionTimelineData.lua index 1ef94e2c..3c10244e 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/ActionTimelineData.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/ActionTimelineData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.ActionTimelineData --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/ActionTimelineNode.lua b/addons/cclua/cocos2d/library/ccs/timeline/ActionTimelineNode.lua index 2d63a67c..fccedf03 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/ActionTimelineNode.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/ActionTimelineNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.ActionTimelineNode --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/AlphaFrame.lua b/addons/cclua/cocos2d/library/ccs/timeline/AlphaFrame.lua index f40e689a..e7e2cab2 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/AlphaFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/AlphaFrame.lua @@ -1,20 +1,21 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.AlphaFrame --- ---@class ccs.timeline.AlphaFrame : ccs.timeline.Frame ----@field alpha any +---@field alpha integer local AlphaFrame = {} ---@return ccs.timeline.AlphaFrame function AlphaFrame.create() end ----@return any +---@return integer function AlphaFrame:getAlpha() end ---@return ccs.timeline.AlphaFrame function AlphaFrame.new() end ----@param alpha any +---@param alpha integer function AlphaFrame:setAlpha(alpha) end return AlphaFrame \ No newline at end of file diff --git a/addons/cclua/cocos2d/library/ccs/timeline/AnchorPointFrame.lua b/addons/cclua/cocos2d/library/ccs/timeline/AnchorPointFrame.lua index a6d52081..e6016ba8 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/AnchorPointFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/AnchorPointFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.AnchorPointFrame --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/AnimationInfo.lua b/addons/cclua/cocos2d/library/ccs/timeline/AnimationInfo.lua index 17240d5c..8e99014c 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/AnimationInfo.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/AnimationInfo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.AnimationInfo --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/BlendFuncFrame.lua b/addons/cclua/cocos2d/library/ccs/timeline/BlendFuncFrame.lua index 45e37758..fa924d02 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/BlendFuncFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/BlendFuncFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.BlendFuncFrame --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/BoneNode.lua b/addons/cclua/cocos2d/library/ccs/timeline/BoneNode.lua index 729c398c..5db013f4 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/BoneNode.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/BoneNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.BoneNode --- @@ -20,6 +21,10 @@ local BoneNode = {} ---\param: display, whether display this skin ---@param skin cc.Node ---@param display boolean +--- +---\brief: add a skin +---\param: display, whether display this skin +---\param: hideOthers, whether hide other skins added to this bone ---@overload fun(self: ccs.timeline.BoneNode, skin: cc.Node, display: boolean, hideOthers: boolean) function BoneNode:addSkin(skin, display) end @@ -35,6 +40,10 @@ function BoneNode.create() end ---\param: hideOthers, set other skins invisible ---@param skin cc.Node ---@param hideOthers boolean +--- +---\brief: display all skins named skinName, if hide display only one skin, +---prefer to use display(SkinNode* skin, bool hideOthers = false) +---\param: hideOthers, set other skins invisible ---@overload fun(self: ccs.timeline.BoneNode, skinName: string, hideOthers: boolean) function BoneNode:displaySkin(skin, hideOthers) end diff --git a/addons/cclua/cocos2d/library/ccs/timeline/ColorFrame.lua b/addons/cclua/cocos2d/library/ccs/timeline/ColorFrame.lua index cf80ec2e..72222c31 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/ColorFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/ColorFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.ColorFrame --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/EventFrame.lua b/addons/cclua/cocos2d/library/ccs/timeline/EventFrame.lua index 0b1af90d..8becccdc 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/EventFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/EventFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.EventFrame --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/Frame.lua b/addons/cclua/cocos2d/library/ccs/timeline/Frame.lua index 2db4cfb0..1f3e2e88 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/Frame.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/Frame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.Frame --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/InnerActionFrame.lua b/addons/cclua/cocos2d/library/ccs/timeline/InnerActionFrame.lua index 10d2ca06..e0209e22 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/InnerActionFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/InnerActionFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.InnerActionFrame --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/InnerActionType.lua b/addons/cclua/cocos2d/library/ccs/timeline/InnerActionType.lua index 65f47e53..00bf8895 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/InnerActionType.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/InnerActionType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.InnerActionType ---@type ccs.timeline.InnerActionType diff --git a/addons/cclua/cocos2d/library/ccs/timeline/PlayableFrame.lua b/addons/cclua/cocos2d/library/ccs/timeline/PlayableFrame.lua index 9b6029d3..63076d5f 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/PlayableFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/PlayableFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.PlayableFrame --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/PositionFrame.lua b/addons/cclua/cocos2d/library/ccs/timeline/PositionFrame.lua index f62bb557..0fd25158 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/PositionFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/PositionFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.PositionFrame --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/RotationFrame.lua b/addons/cclua/cocos2d/library/ccs/timeline/RotationFrame.lua index 880b9744..bcf48ff0 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/RotationFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/RotationFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.RotationFrame --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/RotationSkewFrame.lua b/addons/cclua/cocos2d/library/ccs/timeline/RotationSkewFrame.lua index c0a57ce0..1e5f13e7 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/RotationSkewFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/RotationSkewFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.RotationSkewFrame --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/ScaleFrame.lua b/addons/cclua/cocos2d/library/ccs/timeline/ScaleFrame.lua index 7aeeb817..80f4113b 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/ScaleFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/ScaleFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.ScaleFrame --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/SkeletonNode.lua b/addons/cclua/cocos2d/library/ccs/timeline/SkeletonNode.lua index ceff5b19..af038c09 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/SkeletonNode.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/SkeletonNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.SkeletonNode --- @@ -15,6 +16,9 @@ function SkeletonNode:addSkinGroup(groupName, boneSkinNameMap) end ---\brief: change displays ---\param: boneSkinNameMap, map ---@param boneSkinNameMap { [string]: string } +--- +---\brief: change displays +---\param: skinGroupName have ---@overload fun(self: ccs.timeline.SkeletonNode, skinGroupName: string) function SkeletonNode:changeSkins(boneSkinNameMap) end diff --git a/addons/cclua/cocos2d/library/ccs/timeline/SkewFrame.lua b/addons/cclua/cocos2d/library/ccs/timeline/SkewFrame.lua index 58ae04fc..a49ef12c 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/SkewFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/SkewFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.SkewFrame --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/TextureFrame.lua b/addons/cclua/cocos2d/library/ccs/timeline/TextureFrame.lua index 70af2a2a..94bd2639 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/TextureFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/TextureFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.TextureFrame --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/Timeline.lua b/addons/cclua/cocos2d/library/ccs/timeline/Timeline.lua index f2a60399..7f9066d6 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/Timeline.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/Timeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.Timeline --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/VisibleFrame.lua b/addons/cclua/cocos2d/library/ccs/timeline/VisibleFrame.lua index a31bfa02..2478248a 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/VisibleFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/VisibleFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.VisibleFrame --- diff --git a/addons/cclua/cocos2d/library/ccs/timeline/ZOrderFrame.lua b/addons/cclua/cocos2d/library/ccs/timeline/ZOrderFrame.lua index b7faec66..b5e3cb3a 100644 --- a/addons/cclua/cocos2d/library/ccs/timeline/ZOrderFrame.lua +++ b/addons/cclua/cocos2d/library/ccs/timeline/ZOrderFrame.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccs.timeline.ZOrderFrame --- diff --git a/addons/cclua/cocos2d/library/ccui/AbstractCheckButton.lua b/addons/cclua/cocos2d/library/ccui/AbstractCheckButton.lua index 3ae4df31..318ee68b 100644 --- a/addons/cclua/cocos2d/library/ccui/AbstractCheckButton.lua +++ b/addons/cclua/cocos2d/library/ccui/AbstractCheckButton.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.AbstractCheckButton ---AbstractCheckButton is a specific type of two-states button that can be either checked or unchecked. @@ -78,6 +79,11 @@ function AbstractCheckButton:isSelected() end ---\param type @see `Widget::TextureResType` ---@param backGround string ---@param type ccui.Widget.TextureResType +--- +---Load background texture for check button. +--- +---\param backGround The background image name. +---\param type @see `Widget::TextureResType` ---@overload fun(self: ccui.AbstractCheckButton, backGround: string) function AbstractCheckButton:loadTextureBackGround(backGround, type) end @@ -88,6 +94,12 @@ function AbstractCheckButton:loadTextureBackGround(backGround, type) end ---\param texType @see `Widget::TextureResType` ---@param backGroundDisabled string ---@param texType ccui.Widget.TextureResType +--- +---Load background disabled state texture for checkbox. +--- +---\param backGroundDisabled The background disabled state texture name. +--- +---\param texType @see `Widget::TextureResType` ---@overload fun(self: ccui.AbstractCheckButton, backGroundDisabled: string) function AbstractCheckButton:loadTextureBackGroundDisabled(backGroundDisabled, texType) end @@ -97,6 +109,11 @@ function AbstractCheckButton:loadTextureBackGroundDisabled(backGroundDisabled, t ---\param texType @see `Widget::TextureResType` ---@param backGroundSelected string ---@param texType ccui.Widget.TextureResType +--- +---Load background selected state texture for check button. +--- +---\param backGroundSelected The background selected state image name. +---\param texType @see `Widget::TextureResType` ---@overload fun(self: ccui.AbstractCheckButton, backGroundSelected: string) function AbstractCheckButton:loadTextureBackGroundSelected(backGroundSelected, texType) end @@ -106,6 +123,11 @@ function AbstractCheckButton:loadTextureBackGroundSelected(backGroundSelected, t ---\param texType @see `Widget::TextureResType` ---@param crossTextureName string ---@param texType ccui.Widget.TextureResType +--- +---Load cross texture for check button. +--- +---\param crossTextureName The cross texture name. +---\param texType @see `Widget::TextureResType` ---@overload fun(self: ccui.AbstractCheckButton, crossTextureName: string) function AbstractCheckButton:loadTextureFrontCross(crossTextureName, texType) end @@ -115,6 +137,11 @@ function AbstractCheckButton:loadTextureFrontCross(crossTextureName, texType) en ---\param texType @see `Widget::TextureResType` ---@param frontCrossDisabled string ---@param texType ccui.Widget.TextureResType +--- +---Load frontcross disabled texture for checkbox. +--- +---\param frontCrossDisabled The front cross disabled state texture name. +---\param texType @see `Widget::TextureResType` ---@overload fun(self: ccui.AbstractCheckButton, frontCrossDisabled: string) function AbstractCheckButton:loadTextureFrontCrossDisabled(frontCrossDisabled, texType) end @@ -132,6 +159,15 @@ function AbstractCheckButton:loadTextureFrontCrossDisabled(frontCrossDisabled, t ---@param backgroundDisabled string ---@param frontCrossDisabled string ---@param texType ccui.Widget.TextureResType +--- +---Load all textures for initializing a check button. +--- +---\param background The background image name. +---\param backgroundSelected The background selected image name. +---\param cross The cross image name. +---\param backgroundDisabled The background disabled state texture. +---\param frontCrossDisabled The front cross disabled state image name. +---\param texType @see `Widget::TextureResType` ---@overload fun(self: ccui.AbstractCheckButton, background: string, backgroundSelected: string, cross: string, backgroundDisabled: string, frontCrossDisabled: string) function AbstractCheckButton:loadTextures(background, backgroundSelected, cross, backgroundDisabled, frontCrossDisabled, texType) end diff --git a/addons/cclua/cocos2d/library/ccui/Button.lua b/addons/cclua/cocos2d/library/ccui/Button.lua index d024309a..a04993f6 100644 --- a/addons/cclua/cocos2d/library/ccui/Button.lua +++ b/addons/cclua/cocos2d/library/ccui/Button.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Button ---Represents a push-button widget. @@ -26,9 +27,37 @@ local Button = {} ---Create a empty Button. ---\return A empty Button instance. ---@return ccui.Button +--- +---Create a button with custom textures. +---\param normalImage normal state texture name. +---\param selectedImage selected state texture name. +---\param disableImage disabled state texture name. +---\param texType @see `TextureResType` +---\return a Button instance. ---@overload fun(normalImage: string, selectedImage: string, disableImage: string, texType: ccui.Widget.TextureResType): ccui.Button +--- +---Create a button with custom textures. +---\param normalImage normal state texture name. +---\param selectedImage selected state texture name. +---\param disableImage disabled state texture name. +---\param texType @see `TextureResType` +---\return a Button instance. ---@overload fun(normalImage: string): ccui.Button +--- +---Create a button with custom textures. +---\param normalImage normal state texture name. +---\param selectedImage selected state texture name. +---\param disableImage disabled state texture name. +---\param texType @see `TextureResType` +---\return a Button instance. ---@overload fun(normalImage: string, selectedImage: string): ccui.Button +--- +---Create a button with custom textures. +---\param normalImage normal state texture name. +---\param selectedImage selected state texture name. +---\param disableImage disabled state texture name. +---\param texType @see `TextureResType` +---\return a Button instance. ---@overload fun(normalImage: string, selectedImage: string, disableImage: string): ccui.Button function Button.create() end @@ -134,6 +163,11 @@ function Button:isScale9Enabled() end ---\param texType @see `TextureResType` ---@param disabled string ---@param texType ccui.Widget.TextureResType +--- +---Load disabled state texture for button. +--- +---\param disabled dark state texture. +---\param texType @see `TextureResType` ---@overload fun(self: ccui.Button, disabled: string) function Button:loadTextureDisabled(disabled, texType) end @@ -143,6 +177,11 @@ function Button:loadTextureDisabled(disabled, texType) end ---\param texType @see `TextureResType` ---@param normal string ---@param texType ccui.Widget.TextureResType +--- +---Load normal state texture for button. +--- +---\param normal normal state texture. +---\param texType @see `TextureResType` ---@overload fun(self: ccui.Button, normal: string) function Button:loadTextureNormal(normal, texType) end @@ -152,6 +191,11 @@ function Button:loadTextureNormal(normal, texType) end ---\param texType @see `TextureResType` ---@param selected string ---@param texType ccui.Widget.TextureResType +--- +---Load selected state texture for button. +--- +---\param selected selected state texture. +---\param texType @see `TextureResType` ---@overload fun(self: ccui.Button, selected: string) function Button:loadTexturePressed(selected, texType) end @@ -165,7 +209,21 @@ function Button:loadTexturePressed(selected, texType) end ---@param selected string ---@param disabled string ---@param texType ccui.Widget.TextureResType +--- +---Load textures for button. +--- +---\param normal normal state texture name. +---\param selected selected state texture name. +---\param disabled disabled state texture name. +---\param texType @see `TextureResType` ---@overload fun(self: ccui.Button, normal: string, selected: string) +--- +---Load textures for button. +--- +---\param normal normal state texture name. +---\param selected selected state texture name. +---\param disabled disabled state texture name. +---\param texType @see `TextureResType` ---@overload fun(self: ccui.Button, normal: string, selected: string, disabled: string) function Button:loadTextures(normal, selected, disabled, texType) end @@ -220,6 +278,11 @@ function Button:setScale9Enabled(enable) end --- ---\param hAlignment see TextHAlignment ---@param hAlignment cc.TextHAlignment +--- +---Sets the title's text vertical alignment. +--- +---\param hAlignment see TextHAlignment. +---\param vAlignment see TextVAlignment. ---@overload fun(self: ccui.Button, hAlignment: cc.TextHAlignment, vAlignment: cc.TextVAlignment) function Button:setTitleAlignment(hAlignment) end diff --git a/addons/cclua/cocos2d/library/ccui/CheckBox.lua b/addons/cclua/cocos2d/library/ccui/CheckBox.lua index a2f3c2b9..5f16a9a1 100644 --- a/addons/cclua/cocos2d/library/ccui/CheckBox.lua +++ b/addons/cclua/cocos2d/library/ccui/CheckBox.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.CheckBox ---Checkbox is a specific type of two-states button that can be either checked or unchecked. @@ -11,9 +12,45 @@ function CheckBox:addEventListener(callback) end ---Create and return a empty CheckBox instance pointer. ---@return ccui.CheckBox +--- +---Create an checkbox with various images. +--- +---\param backGround backGround texture. +---\param backGroundSelected backGround selected state texture. +---\param cross cross texture. +---\param backGroundDisabled backGround disabled state texture. +---\param frontCrossDisabled cross dark state texture. +---\param texType @see `Widget::TextureResType` +--- +---\return A CheckBox instance pointer. ---@overload fun(backGround: string, backGroundSelected: string, cross: string, backGroundDisabled: string, frontCrossDisabled: string, texType: ccui.Widget.TextureResType): ccui.CheckBox +--- +---Create an checkbox with various images. +--- +---\param backGround backGround texture. +---\param backGroundSelected backGround selected state texture. +---\param cross cross texture. +---\param backGroundDisabled backGround disabled state texture. +---\param frontCrossDisabled cross dark state texture. +---\param texType @see `Widget::TextureResType` +--- +---\return A CheckBox instance pointer. ---@overload fun(backGround: string, backGroundSelected: string, cross: string, backGroundDisabled: string, frontCrossDisabled: string): ccui.CheckBox +--- +---Another factory method to create a CheckBox instance. +---This method uses less resource to create a CheckBox. +---\param backGround The background image name in `std::string`. +---\param cross The cross image name in `std::string`. +---\param texType The texture's resource type in `Widget::TextureResType`. +---\return A CheckBox instance pointer ---@overload fun(backGround: string, cross: string, texType: ccui.Widget.TextureResType): ccui.CheckBox +--- +---Another factory method to create a CheckBox instance. +---This method uses less resource to create a CheckBox. +---\param backGround The background image name in `std::string`. +---\param cross The cross image name in `std::string`. +---\param texType The texture's resource type in `Widget::TextureResType`. +---\return A CheckBox instance pointer ---@overload fun(backGround: string, cross: string): ccui.CheckBox function CheckBox.create() end diff --git a/addons/cclua/cocos2d/library/ccui/CheckBox/EventType.lua b/addons/cclua/cocos2d/library/ccui/CheckBox/EventType.lua index 90afc904..dcc25433 100644 --- a/addons/cclua/cocos2d/library/ccui/CheckBox/EventType.lua +++ b/addons/cclua/cocos2d/library/ccui/CheckBox/EventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.CheckBox.EventType ---@type ccui.CheckBox.EventType diff --git a/addons/cclua/cocos2d/library/ccui/CheckBox/ccCheckBoxCallback.lua b/addons/cclua/cocos2d/library/ccui/CheckBox/ccCheckBoxCallback.lua index b5113160..f338bce3 100644 --- a/addons/cclua/cocos2d/library/ccui/CheckBox/ccCheckBoxCallback.lua +++ b/addons/cclua/cocos2d/library/ccui/CheckBox/ccCheckBoxCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.CheckBox.ccCheckBoxCallback --- diff --git a/addons/cclua/cocos2d/library/ccui/EditBox.lua b/addons/cclua/cocos2d/library/ccui/EditBox.lua index 11307335..39f11fd0 100644 --- a/addons/cclua/cocos2d/library/ccui/EditBox.lua +++ b/addons/cclua/cocos2d/library/ccui/EditBox.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.EditBox ---\brief Class for edit box. @@ -40,12 +41,33 @@ function EditBox:attachWithIME() end ---@param pressedSprite ccui.Scale9Sprite ---@param disabledSprite ccui.Scale9Sprite ---@return ccui.EditBox +--- +---create a edit box with size. +---\return An autorelease pointer of EditBox, you don't need to release it only if you retain it again. ---@overload fun(size: cc.Size, normalSprite: ccui.Scale9Sprite): ccui.EditBox +--- +---create a edit box with size. +---\return An autorelease pointer of EditBox, you don't need to release it only if you retain it again. ---@overload fun(size: cc.Size, normalSprite: ccui.Scale9Sprite, pressedSprite: ccui.Scale9Sprite): ccui.EditBox +--- +---create a edit box with size. +---\return An autorelease pointer of EditBox, you don't need to release it only if you retain it again. ---@overload fun(size: cc.Size, normalImage: string, texType: ccui.Widget.TextureResType): ccui.EditBox +--- +---create a edit box with size. +---\return An autorelease pointer of EditBox, you don't need to release it only if you retain it again. ---@overload fun(size: cc.Size, normalImage: string, pressedImage: string, disabledImage: string, texType: ccui.Widget.TextureResType): ccui.EditBox +--- +---create a edit box with size. +---\return An autorelease pointer of EditBox, you don't need to release it only if you retain it again. ---@overload fun(size: cc.Size, normalImage: string): ccui.EditBox +--- +---create a edit box with size. +---\return An autorelease pointer of EditBox, you don't need to release it only if you retain it again. ---@overload fun(size: cc.Size, normalImage: string, pressedImage: string): ccui.EditBox +--- +---create a edit box with size. +---\return An autorelease pointer of EditBox, you don't need to release it only if you retain it again. ---@overload fun(size: cc.Size, normalImage: string, pressedImage: string, disabledImage: string): ccui.EditBox function EditBox.create(size, normalSprite, pressedSprite, disabledSprite) end @@ -147,8 +169,26 @@ function EditBox:getTextHorizontalAlignment() end ---@param normal9SpriteBg string ---@param texType ccui.Widget.TextureResType ---@return boolean +--- +---Init edit box with specified size. This method should be invoked right after constructor. +---\param size The size of edit box. +---\param normal9SpriteBg background image of edit box. +---\param texType the resource type, the default value is TextureResType::LOCAL +---\return Whether initialization is successfully or not. ---@overload fun(self: ccui.EditBox, size: cc.Size, normal9SpriteBg: string): boolean +--- +---Init edit box with specified size. This method should be invoked right after constructor. +---\param size The size of edit box. +---\param normal9SpriteBg background image of edit box. +---\return Whether initialization is successfully or not. ---@overload fun(self: ccui.EditBox, size: cc.Size, normal9SpriteBg: ccui.Scale9Sprite): boolean +--- +---Init edit box with specified size. This method should be invoked right after constructor. +---\param size The size of edit box. +---\param normalSprite normal state image of edit box. +---\param pressedSprite pressed state image of edit box. +---\param disabledSprite disabled state image of edit box. +---\return Whether initialization is successfully or not. ---@overload fun(self: ccui.EditBox, size: cc.Size, normalSprite: ccui.Scale9Sprite, pressedSprite: ccui.Scale9Sprite, disabledSprite: ccui.Scale9Sprite): boolean function EditBox:initWithSizeAndBackgroundSprite(size, normal9SpriteBg, texType) end @@ -164,8 +204,29 @@ function EditBox:initWithSizeAndBackgroundSprite(size, normal9SpriteBg, texType) ---@param disabledImage string ---@param texType ccui.Widget.TextureResType ---@return boolean +--- +---Init edit box with specified size. This method should be invoked right after constructor. +---\param size The size of edit box. +---\param normalImage normal state texture name. +---\param pressedImage pressed state texture name. +---\param disabledImage disabled state texture name. +---\return Whether initialization is successfully or not. ---@overload fun(self: ccui.EditBox, size: cc.Size, normalImage: string): boolean +--- +---Init edit box with specified size. This method should be invoked right after constructor. +---\param size The size of edit box. +---\param normalImage normal state texture name. +---\param pressedImage pressed state texture name. +---\param disabledImage disabled state texture name. +---\return Whether initialization is successfully or not. ---@overload fun(self: ccui.EditBox, size: cc.Size, normalImage: string, pressedImage: string): boolean +--- +---Init edit box with specified size. This method should be invoked right after constructor. +---\param size The size of edit box. +---\param normalImage normal state texture name. +---\param pressedImage pressed state texture name. +---\param disabledImage disabled state texture name. +---\return Whether initialization is successfully or not. ---@overload fun(self: ccui.EditBox, size: cc.Size, normalImage: string, pressedImage: string, disabledImage: string): boolean function EditBox:initWithSizeAndTexture(size, normalImage, pressedImage, disabledImage, texType) end @@ -175,6 +236,11 @@ function EditBox:initWithSizeAndTexture(size, normalImage, pressedImage, disable ---\param texType @see `TextureResType` ---@param disabled string ---@param texType ccui.Widget.TextureResType +--- +---Load disabled state texture for edit box. +--- +---\param disabled dark state texture. +---\param texType @see `TextureResType` ---@overload fun(self: ccui.EditBox, disabled: string) function EditBox:loadTextureDisabled(disabled, texType) end @@ -184,6 +250,11 @@ function EditBox:loadTextureDisabled(disabled, texType) end ---\param texType @see `TextureResType` ---@param normal string ---@param texType ccui.Widget.TextureResType +--- +---Load normal state texture for edit box. +--- +---\param normal normal state texture. +---\param texType @see `TextureResType` ---@overload fun(self: ccui.EditBox, normal: string) function EditBox:loadTextureNormal(normal, texType) end @@ -193,6 +264,11 @@ function EditBox:loadTextureNormal(normal, texType) end ---\param texType @see `TextureResType` ---@param pressed string ---@param texType ccui.Widget.TextureResType +--- +---Load pressed state texture for edit box. +--- +---\param pressed pressed state texture. +---\param texType @see `TextureResType` ---@overload fun(self: ccui.EditBox, pressed: string) function EditBox:loadTexturePressed(pressed, texType) end @@ -206,7 +282,21 @@ function EditBox:loadTexturePressed(pressed, texType) end ---@param pressed string ---@param disabled string ---@param texType ccui.Widget.TextureResType +--- +---Load textures for edit box. +--- +---\param normal normal state texture name. +---\param pressed pressed state texture name. +---\param disabled disabled state texture name. +---\param texType @see `TextureResType` ---@overload fun(self: ccui.EditBox, normal: string, pressed: string) +--- +---Load textures for edit box. +--- +---\param normal normal state texture name. +---\param pressed pressed state texture name. +---\param disabled disabled state texture name. +---\param texType @see `TextureResType` ---@overload fun(self: ccui.EditBox, normal: string, pressed: string, disabled: string) function EditBox:loadTextures(normal, pressed, disabled, texType) end @@ -302,6 +392,8 @@ function EditBox:setPlaceholderFont(pFontName, fontSize) end ---Set the font color of the placeholder text when the edit box is empty. ---@param color any +--- +---Set the font color of the placeholder text when the edit box is empty. ---@overload fun(self: ccui.EditBox, color: any) function EditBox:setPlaceholderFontColor(color) end diff --git a/addons/cclua/cocos2d/library/ccui/EditBox/InputFlag.lua b/addons/cclua/cocos2d/library/ccui/EditBox/InputFlag.lua index 7a6ebf3e..037ab974 100644 --- a/addons/cclua/cocos2d/library/ccui/EditBox/InputFlag.lua +++ b/addons/cclua/cocos2d/library/ccui/EditBox/InputFlag.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.EditBox.InputFlag ---@type ccui.EditBox.InputFlag diff --git a/addons/cclua/cocos2d/library/ccui/EditBox/InputMode.lua b/addons/cclua/cocos2d/library/ccui/EditBox/InputMode.lua index 1b4b5c6e..ea4eab49 100644 --- a/addons/cclua/cocos2d/library/ccui/EditBox/InputMode.lua +++ b/addons/cclua/cocos2d/library/ccui/EditBox/InputMode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.EditBox.InputMode ---@type ccui.EditBox.InputMode diff --git a/addons/cclua/cocos2d/library/ccui/EditBox/KeyboardReturnType.lua b/addons/cclua/cocos2d/library/ccui/EditBox/KeyboardReturnType.lua index 90026982..b72a7e4b 100644 --- a/addons/cclua/cocos2d/library/ccui/EditBox/KeyboardReturnType.lua +++ b/addons/cclua/cocos2d/library/ccui/EditBox/KeyboardReturnType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.EditBox.KeyboardReturnType ---@type ccui.EditBox.KeyboardReturnType diff --git a/addons/cclua/cocos2d/library/ccui/EditBoxDelegate.lua b/addons/cclua/cocos2d/library/ccui/EditBoxDelegate.lua index a5db00a5..b68fe776 100644 --- a/addons/cclua/cocos2d/library/ccui/EditBoxDelegate.lua +++ b/addons/cclua/cocos2d/library/ccui/EditBoxDelegate.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.EditBoxDelegate ---\brief Editbox delegate class. diff --git a/addons/cclua/cocos2d/library/ccui/EditBoxDelegate/EditBoxEndAction.lua b/addons/cclua/cocos2d/library/ccui/EditBoxDelegate/EditBoxEndAction.lua index c0733338..79749655 100644 --- a/addons/cclua/cocos2d/library/ccui/EditBoxDelegate/EditBoxEndAction.lua +++ b/addons/cclua/cocos2d/library/ccui/EditBoxDelegate/EditBoxEndAction.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.EditBoxDelegate.EditBoxEndAction ---@type ccui.EditBoxDelegate.EditBoxEndAction diff --git a/addons/cclua/cocos2d/library/ccui/HBox.lua b/addons/cclua/cocos2d/library/ccui/HBox.lua index 4089adfc..dd32aed7 100644 --- a/addons/cclua/cocos2d/library/ccui/HBox.lua +++ b/addons/cclua/cocos2d/library/ccui/HBox.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.HBox ---HBox is just a convenient wrapper class for horizontal layout type. @@ -8,6 +9,10 @@ local HBox = {} ---Create a empty HBox instance. ---\return A HBox instance pointer. ---@return ccui.HBox +--- +---Create a HBox with a certain size. +---\param size The content size of the layout. +---\return A HBox instance pointer. ---@overload fun(size: cc.Size): ccui.HBox function HBox.create() end diff --git a/addons/cclua/cocos2d/library/ccui/Helper.lua b/addons/cclua/cocos2d/library/ccui/Helper.lua index d04d8d73..a72dfd36 100644 --- a/addons/cclua/cocos2d/library/ccui/Helper.lua +++ b/addons/cclua/cocos2d/library/ccui/Helper.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Helper ---Helper class for traversing children in widget tree. diff --git a/addons/cclua/cocos2d/library/ccui/ImageView.lua b/addons/cclua/cocos2d/library/ccui/ImageView.lua index a4c31569..0311c8c4 100644 --- a/addons/cclua/cocos2d/library/ccui/ImageView.lua +++ b/addons/cclua/cocos2d/library/ccui/ImageView.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.ImageView ---\brief A widget to display images. @@ -14,7 +15,19 @@ function ImageView:as(cls) end ---Create a empty ImageView. ---@return ccui.ImageView +--- +---Create a imageview with a image name. +--- +---\param imageFileName file name of texture. +---\param texType @see `Widget::TextureResType` +---\return A ImageView instance. ---@overload fun(imageFileName: string, texType: ccui.Widget.TextureResType): ccui.ImageView +--- +---Create a imageview with a image name. +--- +---\param imageFileName file name of texture. +---\param texType @see `Widget::TextureResType` +---\return A ImageView instance. ---@overload fun(imageFileName: string): ccui.ImageView function ImageView.create() end @@ -54,6 +67,11 @@ function ImageView:isScale9Enabled() end ---\param texType @see `Widget::TextureResType` ---@param fileName string ---@param texType ccui.Widget.TextureResType +--- +---Load texture for imageview. +--- +---\param fileName file name of texture. +---\param texType @see `Widget::TextureResType` ---@overload fun(self: ccui.ImageView, fileName: string) function ImageView:loadTexture(fileName, texType) end diff --git a/addons/cclua/cocos2d/library/ccui/Layout.lua b/addons/cclua/cocos2d/library/ccui/Layout.lua index dc503dee..194e0dd9 100644 --- a/addons/cclua/cocos2d/library/ccui/Layout.lua +++ b/addons/cclua/cocos2d/library/ccui/Layout.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Layout ---\brief A container for holding a few child widgets. @@ -11,13 +12,13 @@ ---- Relative layout: child elements are arranged relative to certain rules. ---@class ccui.Layout : ccui.Widget ---@field backGroundColor any Query the layout's background color. \return Background color in Color3B. ----@field backGroundColorOpacity any Get the layout's background color opacity. \return Background color opacity value. +---@field backGroundColorOpacity integer Get the layout's background color opacity. \return Background color opacity value. ---@field backGroundColorType ccui.Layout.BackGroundColorType Query the layout's background color type. \return The layout's background color type. ---@field backGroundColorVector cc.Vec2 Get the layout's background color vector. \return Background color vector. ---@field backGroundEndColor any Get the gradient background end color. \return Gradient background end color value. ---@field backGroundImageCapInsets cc.Rect Query background image's capInsets size. \return The background image capInsets. ---@field backGroundImageColor any Get color of layout's background image. \return Layout's background image color. ----@field backGroundImageOpacity any Get the opacity of layout's background image. \return The opacity of layout's background image. +---@field backGroundImageOpacity integer Get the opacity of layout's background image. \return The opacity of layout's background image. ---@field backGroundImageScale9Enabled boolean Query background image scale9 enable status. \return Whether background image is scale9 enabled or not. ---@field backGroundImageTextureSize cc.Size Gets background image texture size.

\return background image texture size. ---@field backGroundStartColor any Get the gradient background start color. \return Gradient background start color value. @@ -51,7 +52,7 @@ function Layout:getBackGroundColor() end ---Get the layout's background color opacity. ---\return Background color opacity value. ----@return any +---@return integer function Layout:getBackGroundColorOpacity() end ---Query the layout's background color type. @@ -81,7 +82,7 @@ function Layout:getBackGroundImageColor() end ---Get the opacity of layout's background image. ---\return The opacity of layout's background image. ----@return any +---@return integer function Layout:getBackGroundImageOpacity() end ---Gets background image texture size. @@ -143,13 +144,19 @@ function Layout:requestDoLayout() end --- ---\param color Color in Color3B. ---@param color any +--- +---Set start and end background color for layout. +---This setting only take effect when the layout's color type is BackGroundColorType::GRADIENT +--- +---\param startColor Color value in Color3B. +---\param endColor Color value in Color3B. ---@overload fun(self: ccui.Layout, startColor: any, endColor: any) function Layout:setBackGroundColor(color) end ---Sets background color opacity of layout. --- ---\param opacity The opacity in `GLubyte`. ----@param opacity any +---@param opacity integer function Layout:setBackGroundColorOpacity(opacity) end ---Sets Color Type for layout's background @@ -171,6 +178,11 @@ function Layout:setBackGroundColorVector(vector) end ---\param texType @see TextureResType. ---@param fileName string ---@param texType ccui.Widget.TextureResType +--- +---Sets a background image for layout. +--- +---\param fileName image file path. +---\param texType @see TextureResType. ---@overload fun(self: ccui.Layout, fileName: string) function Layout:setBackGroundImage(fileName, texType) end @@ -187,7 +199,7 @@ function Layout:setBackGroundImageColor(color) end ---Set opacity of background image. ---\param opacity Background image opacity in GLubyte. ----@param opacity any +---@param opacity integer function Layout:setBackGroundImageOpacity(opacity) end ---Enable background image scale9 rendering. diff --git a/addons/cclua/cocos2d/library/ccui/Layout/BackGroundColorType.lua b/addons/cclua/cocos2d/library/ccui/Layout/BackGroundColorType.lua index a25dfacc..78f6a764 100644 --- a/addons/cclua/cocos2d/library/ccui/Layout/BackGroundColorType.lua +++ b/addons/cclua/cocos2d/library/ccui/Layout/BackGroundColorType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Layout.BackGroundColorType ---@type ccui.Layout.BackGroundColorType diff --git a/addons/cclua/cocos2d/library/ccui/Layout/ClippingType.lua b/addons/cclua/cocos2d/library/ccui/Layout/ClippingType.lua index 7ff9bcf5..7700d33f 100644 --- a/addons/cclua/cocos2d/library/ccui/Layout/ClippingType.lua +++ b/addons/cclua/cocos2d/library/ccui/Layout/ClippingType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Layout.ClippingType ---@type ccui.Layout.ClippingType diff --git a/addons/cclua/cocos2d/library/ccui/Layout/Type.lua b/addons/cclua/cocos2d/library/ccui/Layout/Type.lua index 284331f3..4ad64fe3 100644 --- a/addons/cclua/cocos2d/library/ccui/Layout/Type.lua +++ b/addons/cclua/cocos2d/library/ccui/Layout/Type.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Layout.Type ---@type ccui.Layout.Type diff --git a/addons/cclua/cocos2d/library/ccui/LayoutComponent.lua b/addons/cclua/cocos2d/library/ccui/LayoutComponent.lua index c024a2f2..6a65421e 100644 --- a/addons/cclua/cocos2d/library/ccui/LayoutComponent.lua +++ b/addons/cclua/cocos2d/library/ccui/LayoutComponent.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.LayoutComponent ---\brief A component class used for layout. diff --git a/addons/cclua/cocos2d/library/ccui/LayoutComponent/HorizontalEdge.lua b/addons/cclua/cocos2d/library/ccui/LayoutComponent/HorizontalEdge.lua index b753ac3e..10a034a0 100644 --- a/addons/cclua/cocos2d/library/ccui/LayoutComponent/HorizontalEdge.lua +++ b/addons/cclua/cocos2d/library/ccui/LayoutComponent/HorizontalEdge.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.LayoutComponent.HorizontalEdge ---@type ccui.LayoutComponent.HorizontalEdge diff --git a/addons/cclua/cocos2d/library/ccui/LayoutComponent/VerticalEdge.lua b/addons/cclua/cocos2d/library/ccui/LayoutComponent/VerticalEdge.lua index e6e68699..96ae54c7 100644 --- a/addons/cclua/cocos2d/library/ccui/LayoutComponent/VerticalEdge.lua +++ b/addons/cclua/cocos2d/library/ccui/LayoutComponent/VerticalEdge.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.LayoutComponent.VerticalEdge ---@type ccui.LayoutComponent.VerticalEdge diff --git a/addons/cclua/cocos2d/library/ccui/LayoutManager.lua b/addons/cclua/cocos2d/library/ccui/LayoutManager.lua index 2bd50472..1d710040 100644 --- a/addons/cclua/cocos2d/library/ccui/LayoutManager.lua +++ b/addons/cclua/cocos2d/library/ccui/LayoutManager.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.LayoutManager ---\brief Base class for managing layout. diff --git a/addons/cclua/cocos2d/library/ccui/LayoutParameter.lua b/addons/cclua/cocos2d/library/ccui/LayoutParameter.lua index 009f7160..2fac940e 100644 --- a/addons/cclua/cocos2d/library/ccui/LayoutParameter.lua +++ b/addons/cclua/cocos2d/library/ccui/LayoutParameter.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.LayoutParameter ---\brief Base class for various LayoutParameter. diff --git a/addons/cclua/cocos2d/library/ccui/LayoutParameter/Type.lua b/addons/cclua/cocos2d/library/ccui/LayoutParameter/Type.lua index 99adae75..6752ea2b 100644 --- a/addons/cclua/cocos2d/library/ccui/LayoutParameter/Type.lua +++ b/addons/cclua/cocos2d/library/ccui/LayoutParameter/Type.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.LayoutParameter.Type ---@type ccui.LayoutParameter.Type diff --git a/addons/cclua/cocos2d/library/ccui/LayoutParameterProtocol.lua b/addons/cclua/cocos2d/library/ccui/LayoutParameterProtocol.lua index 9858f2b6..a7cde420 100644 --- a/addons/cclua/cocos2d/library/ccui/LayoutParameterProtocol.lua +++ b/addons/cclua/cocos2d/library/ccui/LayoutParameterProtocol.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.LayoutParameterProtocol ---Protocol for getting a LayoutParameter. diff --git a/addons/cclua/cocos2d/library/ccui/LayoutProtocol.lua b/addons/cclua/cocos2d/library/ccui/LayoutProtocol.lua index a8905cfa..e9ffaffe 100644 --- a/addons/cclua/cocos2d/library/ccui/LayoutProtocol.lua +++ b/addons/cclua/cocos2d/library/ccui/LayoutProtocol.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.LayoutProtocol ---\brief Layout interface for creating LayoutManger and do actual layout. diff --git a/addons/cclua/cocos2d/library/ccui/LinearLayoutParameter.lua b/addons/cclua/cocos2d/library/ccui/LinearLayoutParameter.lua index 68eb14fb..25e9e6f9 100644 --- a/addons/cclua/cocos2d/library/ccui/LinearLayoutParameter.lua +++ b/addons/cclua/cocos2d/library/ccui/LinearLayoutParameter.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.LinearLayoutParameter ---\brief Linear layout parameter. diff --git a/addons/cclua/cocos2d/library/ccui/LinearLayoutParameter/LinearGravity.lua b/addons/cclua/cocos2d/library/ccui/LinearLayoutParameter/LinearGravity.lua index 48172a4a..b99cede0 100644 --- a/addons/cclua/cocos2d/library/ccui/LinearLayoutParameter/LinearGravity.lua +++ b/addons/cclua/cocos2d/library/ccui/LinearLayoutParameter/LinearGravity.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.LinearLayoutParameter.LinearGravity ---@type ccui.LinearLayoutParameter.LinearGravity diff --git a/addons/cclua/cocos2d/library/ccui/ListView.lua b/addons/cclua/cocos2d/library/ccui/ListView.lua index 3c4a31af..71fc375a 100644 --- a/addons/cclua/cocos2d/library/ccui/ListView.lua +++ b/addons/cclua/cocos2d/library/ccui/ListView.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.ListView ---\brief ListView is a view group that displays a list of scrollable items. @@ -25,6 +26,9 @@ local ListView = {} ---Add an event click callback to ListView, then one item of Listview is clicked, the callback will be called. ---\param callback A callback function with type of `ccListViewCallback`. ---@param callback ccui.ListView.ccListViewCallback +--- +---Add callback function which will be called when scrollview event triggered. +---\param callback A callback function with type of `ccScrollViewCallback`. ---@overload fun(self: ccui.ListView, callback: ccui.ScrollView.ccScrollViewCallback) function ListView:addEventListener(callback) end diff --git a/addons/cclua/cocos2d/library/ccui/ListView/EventType.lua b/addons/cclua/cocos2d/library/ccui/ListView/EventType.lua index 780773f0..bb46d232 100644 --- a/addons/cclua/cocos2d/library/ccui/ListView/EventType.lua +++ b/addons/cclua/cocos2d/library/ccui/ListView/EventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.ListView.EventType ---@type ccui.ListView.EventType diff --git a/addons/cclua/cocos2d/library/ccui/ListView/Gravity.lua b/addons/cclua/cocos2d/library/ccui/ListView/Gravity.lua index aec31cab..bee709e6 100644 --- a/addons/cclua/cocos2d/library/ccui/ListView/Gravity.lua +++ b/addons/cclua/cocos2d/library/ccui/ListView/Gravity.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.ListView.Gravity ---@type ccui.ListView.Gravity diff --git a/addons/cclua/cocos2d/library/ccui/ListView/MagneticType.lua b/addons/cclua/cocos2d/library/ccui/ListView/MagneticType.lua index 6ca657a2..faacf154 100644 --- a/addons/cclua/cocos2d/library/ccui/ListView/MagneticType.lua +++ b/addons/cclua/cocos2d/library/ccui/ListView/MagneticType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.ListView.MagneticType ---@type ccui.ListView.MagneticType diff --git a/addons/cclua/cocos2d/library/ccui/ListView/ccListViewCallback.lua b/addons/cclua/cocos2d/library/ccui/ListView/ccListViewCallback.lua index 65be2669..de885132 100644 --- a/addons/cclua/cocos2d/library/ccui/ListView/ccListViewCallback.lua +++ b/addons/cclua/cocos2d/library/ccui/ListView/ccListViewCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.ListView.ccListViewCallback --- diff --git a/addons/cclua/cocos2d/library/ccui/LoadingBar.lua b/addons/cclua/cocos2d/library/ccui/LoadingBar.lua index e3e8ec12..206ee205 100644 --- a/addons/cclua/cocos2d/library/ccui/LoadingBar.lua +++ b/addons/cclua/cocos2d/library/ccui/LoadingBar.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.LoadingBar ---\brief Visual indicator of progress in some operation. @@ -13,9 +14,35 @@ local LoadingBar = {} ---Create an empty LoadingBar. ---\return A LoadingBar instance. ---@return ccui.LoadingBar +--- +---\brief Create a LoadingBar with a texture name and a predefined progress value. +--- +---\param textureName LoadingBar background texture name. +---\param percentage A percentage in float. +---\return A LoadingBar instance. ---@overload fun(textureName: string, percentage: number): ccui.LoadingBar +--- +---\brief Create a LoadingBar with a texture name and a predefined progress value. +--- +---\param textureName LoadingBar background texture name. +---\param percentage A percentage in float. +---\return A LoadingBar instance. ---@overload fun(textureName: string): ccui.LoadingBar +--- +---\brief Create a LoadingBar with a texture name along with its texture type and a predefined progress value. +--- +---\param textureName LoadingBar background texture name. +---\param texType LoadingBar background texture type. +---\param percentage A percentage in float, default value is 0. +---\return A LoadingBar instance. ---@overload fun(textureName: string, texType: ccui.Widget.TextureResType, percentage: number): ccui.LoadingBar +--- +---\brief Create a LoadingBar with a texture name along with its texture type and a predefined progress value. +--- +---\param textureName LoadingBar background texture name. +---\param texType LoadingBar background texture type. +---\param percentage A percentage in float, default value is 0. +---\return A LoadingBar instance. ---@overload fun(textureName: string, texType: ccui.Widget.TextureResType): ccui.LoadingBar function LoadingBar.create() end @@ -54,6 +81,11 @@ function LoadingBar:isScale9Enabled() end ---\param texType Texture resource type,@see TextureResType. ---@param texture string ---@param texType ccui.Widget.TextureResType +--- +---Load texture for LoadingBar. +--- +---\param texture File name of texture. +---\param texType Texture resource type,@see TextureResType. ---@overload fun(self: ccui.LoadingBar, texture: string) function LoadingBar:loadTexture(texture, texType) end diff --git a/addons/cclua/cocos2d/library/ccui/LoadingBar/Direction.lua b/addons/cclua/cocos2d/library/ccui/LoadingBar/Direction.lua index 0b925bc8..e1ff4c6b 100644 --- a/addons/cclua/cocos2d/library/ccui/LoadingBar/Direction.lua +++ b/addons/cclua/cocos2d/library/ccui/LoadingBar/Direction.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.LoadingBar.Direction ---@type ccui.LoadingBar.Direction diff --git a/addons/cclua/cocos2d/library/ccui/LuaEditBoxDelegate.lua b/addons/cclua/cocos2d/library/ccui/LuaEditBoxDelegate.lua index ab1bccd7..ff37172f 100644 --- a/addons/cclua/cocos2d/library/ccui/LuaEditBoxDelegate.lua +++ b/addons/cclua/cocos2d/library/ccui/LuaEditBoxDelegate.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.LuaEditBoxDelegate --- diff --git a/addons/cclua/cocos2d/library/ccui/PageView.lua b/addons/cclua/cocos2d/library/ccui/PageView.lua index 6ed2d103..3eaf523e 100644 --- a/addons/cclua/cocos2d/library/ccui/PageView.lua +++ b/addons/cclua/cocos2d/library/ccui/PageView.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.PageView ---\brief Layout manager that allows the user to flip left & right and up & down through pages of data. @@ -5,12 +6,12 @@ ---@field currentPageIndex integer Gets current displayed page index. \return current page index. ---@field indicatorEnabled boolean \brief Query page indicator state.

\return True if page indicator is enabled, false otherwise. ---@field indicatorIndexNodesColor any \brief Get the color of page indicator's index nodes.

\return color ----@field indicatorIndexNodesOpacity any \brief Get the opacity of page indicator's index nodes.

\return opacity +---@field indicatorIndexNodesOpacity integer \brief Get the opacity of page indicator's index nodes.

\return opacity ---@field indicatorIndexNodesScale number \brief Get scale of page indicator's index nodes.

\return indexNodesScale ---@field indicatorPosition cc.Vec2 \brief Get the page indicator's position.

\return positionAsAnchorPoint ---@field indicatorPositionAsAnchorPoint cc.Vec2 \brief Get the page indicator's position as anchor point.

\return positionAsAnchorPoint ---@field indicatorSelectedIndexColor any \brief Get the color of page indicator's selected index.

\return color ----@field indicatorSelectedIndexOpacity any \brief Get the opacity of page indicator's selected index.

\return opacity +---@field indicatorSelectedIndexOpacity integer \brief Get the opacity of page indicator's selected index.

\return opacity ---@field indicatorSpaceBetweenIndexNodes number \brief Get the space between page indicator's index nodes.

\return spaceBetweenIndexNodes local PageView = {} @@ -18,6 +19,9 @@ local PageView = {} --- ---\param callback A page turning callback. ---@param callback ccui.PageView.ccPageViewCallback +--- +---Add callback function which will be called when scrollview event triggered. +---\param callback A callback function with type of `ccScrollViewCallback`. ---@overload fun(self: ccui.PageView, callback: ccui.ScrollView.ccScrollViewCallback) function PageView:addEventListener(callback) end @@ -55,7 +59,7 @@ function PageView:getIndicatorIndexNodesColor() end ---\brief Get the opacity of page indicator's index nodes. --- ---\return opacity ----@return any +---@return integer function PageView:getIndicatorIndexNodesOpacity() end ---\brief Get scale of page indicator's index nodes. @@ -85,7 +89,7 @@ function PageView:getIndicatorSelectedIndexColor() end ---\brief Get the opacity of page indicator's selected index. --- ---\return opacity ----@return any +---@return integer function PageView:getIndicatorSelectedIndexOpacity() end ---\brief Get the space between page indicator's index nodes. @@ -127,6 +131,11 @@ function PageView:removePageAtIndex(index) end --- ---\param itemIndex A given index in the PageView. Index start from 0 to pageCount -1. ---@param itemIndex integer +--- +---Scroll to a item with a given index and with a given scroll time. +--- +---\param idx A given index in the PageView. Index start from 0 to pageCount -1. +---\param time Scroll time must be >= 0. Otherwise last set scrolltime will be used. ---@overload fun(self: ccui.PageView, idx: integer, time: number) function PageView:scrollToItem(itemIndex) end @@ -134,6 +143,11 @@ function PageView:scrollToItem(itemIndex) end --- ---\param idx A given index in the PageView. Index start from 0 to pageCount -1. ---@param idx integer +--- +---Scroll to a page with a given index and with a given scroll time. +--- +---\param idx A given index in the PageView. Index start from 0 to pageCount -1. +---\param time Scroll time must be >= 0. Otherwise last set scroll time will be used. ---@overload fun(self: ccui.PageView, idx: integer, time: number) function PageView:scrollToPage(idx) end @@ -162,7 +176,7 @@ function PageView:setIndicatorIndexNodesColor(color) end ---\brief Set opacity of page indicator's index nodes. --- ---\param opacity New indicator node opacity. ----@param opacity any +---@param opacity integer function PageView:setIndicatorIndexNodesOpacity(opacity) end ---\brief Set scale of page indicator's index nodes. @@ -177,6 +191,11 @@ function PageView:setIndicatorIndexNodesScale(indexNodesScale) end ---\param resType @see TextureResType . ---@param texName string ---@param texType ccui.Widget.TextureResType +--- +---sets texture for index nodes. +--- +---\param fileName File name of texture. +---\param resType @see TextureResType . ---@overload fun(self: ccui.PageView, texName: string) function PageView:setIndicatorIndexNodesTexture(texName, texType) end @@ -201,7 +220,7 @@ function PageView:setIndicatorSelectedIndexColor(color) end ---\brief Set opacity of page indicator's selected index. --- ---\param color New opacity for selected (current) index. ----@param opacity any +---@param opacity integer function PageView:setIndicatorSelectedIndexOpacity(opacity) end ---\brief Set space between page indicator's index nodes. diff --git a/addons/cclua/cocos2d/library/ccui/PageView/EventType.lua b/addons/cclua/cocos2d/library/ccui/PageView/EventType.lua index e152ce63..1dbee3e0 100644 --- a/addons/cclua/cocos2d/library/ccui/PageView/EventType.lua +++ b/addons/cclua/cocos2d/library/ccui/PageView/EventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.PageView.EventType ---@type ccui.PageView.EventType diff --git a/addons/cclua/cocos2d/library/ccui/PageView/TouchDirection.lua b/addons/cclua/cocos2d/library/ccui/PageView/TouchDirection.lua index f76f87a7..4ff62b43 100644 --- a/addons/cclua/cocos2d/library/ccui/PageView/TouchDirection.lua +++ b/addons/cclua/cocos2d/library/ccui/PageView/TouchDirection.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.PageView.TouchDirection ---@type ccui.PageView.TouchDirection diff --git a/addons/cclua/cocos2d/library/ccui/PageView/ccPageViewCallback.lua b/addons/cclua/cocos2d/library/ccui/PageView/ccPageViewCallback.lua index 707793a5..79cfd0ca 100644 --- a/addons/cclua/cocos2d/library/ccui/PageView/ccPageViewCallback.lua +++ b/addons/cclua/cocos2d/library/ccui/PageView/ccPageViewCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.PageView.ccPageViewCallback --- diff --git a/addons/cclua/cocos2d/library/ccui/RadioButton.lua b/addons/cclua/cocos2d/library/ccui/RadioButton.lua index 443978ae..5cadcc90 100644 --- a/addons/cclua/cocos2d/library/ccui/RadioButton.lua +++ b/addons/cclua/cocos2d/library/ccui/RadioButton.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RadioButton ---RadioButton is a specific type of two-states button that is similar to CheckBox. @@ -12,9 +13,45 @@ function RadioButton:addEventListener(callback) end ---Create and return a empty RadioButton instance pointer. ---@return ccui.RadioButton +--- +---Create a radio button with various images. +--- +---\param backGround backGround texture. +---\param backGroundSelected backGround selected state texture. +---\param cross cross texture. +---\param backGroundDisabled backGround disabled state texture. +---\param frontCrossDisabled cross dark state texture. +---\param texType @see `Widget::TextureResType` +--- +---\return A RadioButton instance pointer. ---@overload fun(backGround: string, backGroundSelected: string, cross: string, backGroundDisabled: string, frontCrossDisabled: string, texType: ccui.Widget.TextureResType): ccui.RadioButton +--- +---Create a radio button with various images. +--- +---\param backGround backGround texture. +---\param backGroundSelected backGround selected state texture. +---\param cross cross texture. +---\param backGroundDisabled backGround disabled state texture. +---\param frontCrossDisabled cross dark state texture. +---\param texType @see `Widget::TextureResType` +--- +---\return A RadioButton instance pointer. ---@overload fun(backGround: string, backGroundSelected: string, cross: string, backGroundDisabled: string, frontCrossDisabled: string): ccui.RadioButton +--- +---Another factory method to create a RadioButton instance. +---This method uses less resource to create a RadioButton. +---\param backGround The background image name in `std::string`. +---\param cross The cross image name in `std::string`. +---\param texType The texture's resource type in `Widget::TextureResType`. +---\return A RadioButton instance pointer ---@overload fun(backGround: string, cross: string, texType: ccui.Widget.TextureResType): ccui.RadioButton +--- +---Another factory method to create a RadioButton instance. +---This method uses less resource to create a RadioButton. +---\param backGround The background image name in `std::string`. +---\param cross The cross image name in `std::string`. +---\param texType The texture's resource type in `Widget::TextureResType`. +---\return A RadioButton instance pointer ---@overload fun(backGround: string, cross: string): ccui.RadioButton function RadioButton.create() end diff --git a/addons/cclua/cocos2d/library/ccui/RadioButton/EventType.lua b/addons/cclua/cocos2d/library/ccui/RadioButton/EventType.lua index add0ab88..8c1ca3de 100644 --- a/addons/cclua/cocos2d/library/ccui/RadioButton/EventType.lua +++ b/addons/cclua/cocos2d/library/ccui/RadioButton/EventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RadioButton.EventType ---@type ccui.RadioButton.EventType diff --git a/addons/cclua/cocos2d/library/ccui/RadioButton/ccRadioButtonCallback.lua b/addons/cclua/cocos2d/library/ccui/RadioButton/ccRadioButtonCallback.lua index 809985f0..f1d82cc1 100644 --- a/addons/cclua/cocos2d/library/ccui/RadioButton/ccRadioButtonCallback.lua +++ b/addons/cclua/cocos2d/library/ccui/RadioButton/ccRadioButtonCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RadioButton.ccRadioButtonCallback --- diff --git a/addons/cclua/cocos2d/library/ccui/RadioButtonGroup.lua b/addons/cclua/cocos2d/library/ccui/RadioButtonGroup.lua index d766c098..5450c2ba 100644 --- a/addons/cclua/cocos2d/library/ccui/RadioButtonGroup.lua +++ b/addons/cclua/cocos2d/library/ccui/RadioButtonGroup.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RadioButtonGroup ---RadioButtonGroup groups designated radio buttons to make them interact to each other. @@ -77,6 +78,10 @@ function RadioButtonGroup:setAllowedNoSelection(allowedNoSelection) end --- ---\param index of the radio button ---@param index integer +--- +---Select a radio button by instance. +--- +---\param radio button instance ---@overload fun(self: ccui.RadioButtonGroup, radioButton: ccui.RadioButton) function RadioButtonGroup:setSelectedButton(index) end @@ -84,6 +89,10 @@ function RadioButtonGroup:setSelectedButton(index) end --- ---\param index of the radio button ---@param index integer +--- +---Select a radio button by instance without event dispatch. +--- +---\param radio button instance ---@overload fun(self: ccui.RadioButtonGroup, radioButton: ccui.RadioButton) function RadioButtonGroup:setSelectedButtonWithoutEvent(index) end diff --git a/addons/cclua/cocos2d/library/ccui/RadioButtonGroup/EventType.lua b/addons/cclua/cocos2d/library/ccui/RadioButtonGroup/EventType.lua index 5d20ae6c..2180d418 100644 --- a/addons/cclua/cocos2d/library/ccui/RadioButtonGroup/EventType.lua +++ b/addons/cclua/cocos2d/library/ccui/RadioButtonGroup/EventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RadioButtonGroup.EventType ---@type ccui.RadioButtonGroup.EventType diff --git a/addons/cclua/cocos2d/library/ccui/RadioButtonGroup/ccRadioButtonGroupCallback.lua b/addons/cclua/cocos2d/library/ccui/RadioButtonGroup/ccRadioButtonGroupCallback.lua index 401465aa..072b4ab4 100644 --- a/addons/cclua/cocos2d/library/ccui/RadioButtonGroup/ccRadioButtonGroupCallback.lua +++ b/addons/cclua/cocos2d/library/ccui/RadioButtonGroup/ccRadioButtonGroupCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RadioButtonGroup.ccRadioButtonGroupCallback --- diff --git a/addons/cclua/cocos2d/library/ccui/RelativeBox.lua b/addons/cclua/cocos2d/library/ccui/RelativeBox.lua index 3af13dbe..b19b2ccd 100644 --- a/addons/cclua/cocos2d/library/ccui/RelativeBox.lua +++ b/addons/cclua/cocos2d/library/ccui/RelativeBox.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RelativeBox ---\brief RelativeBox is just a convenient wrapper class for relative layout type. @@ -8,6 +9,11 @@ local RelativeBox = {} ---Create an empty RelativeBox instance. ---\return A RelativeBox instance. ---@return ccui.RelativeBox +--- +---\brief Create a RelativeBox with a fixed size. +--- +---\param size Size in `Size`. +---\return A RelativeBox instance. ---@overload fun(size: cc.Size): ccui.RelativeBox function RelativeBox.create() end diff --git a/addons/cclua/cocos2d/library/ccui/RelativeLayoutParameter.lua b/addons/cclua/cocos2d/library/ccui/RelativeLayoutParameter.lua index 7acd244c..b95e2937 100644 --- a/addons/cclua/cocos2d/library/ccui/RelativeLayoutParameter.lua +++ b/addons/cclua/cocos2d/library/ccui/RelativeLayoutParameter.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RelativeLayoutParameter ---\brief Relative layout parameter. diff --git a/addons/cclua/cocos2d/library/ccui/RelativeLayoutParameter/RelativeAlign.lua b/addons/cclua/cocos2d/library/ccui/RelativeLayoutParameter/RelativeAlign.lua index cb969647..ddd90dff 100644 --- a/addons/cclua/cocos2d/library/ccui/RelativeLayoutParameter/RelativeAlign.lua +++ b/addons/cclua/cocos2d/library/ccui/RelativeLayoutParameter/RelativeAlign.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RelativeLayoutParameter.RelativeAlign ---@type ccui.RelativeLayoutParameter.RelativeAlign diff --git a/addons/cclua/cocos2d/library/ccui/RichElement.lua b/addons/cclua/cocos2d/library/ccui/RichElement.lua index c4958739..54f70a58 100644 --- a/addons/cclua/cocos2d/library/ccui/RichElement.lua +++ b/addons/cclua/cocos2d/library/ccui/RichElement.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RichElement ---\brief Rich text element base class. @@ -17,7 +18,7 @@ function RichElement:equalType(type) end ---\return True if initialize success, false otherwise. ---@param tag integer ---@param color any ----@param opacity any +---@param opacity integer ---@return boolean function RichElement:init(tag, color, opacity) end diff --git a/addons/cclua/cocos2d/library/ccui/RichElement/Type.lua b/addons/cclua/cocos2d/library/ccui/RichElement/Type.lua index ce78c42f..b9db9881 100644 --- a/addons/cclua/cocos2d/library/ccui/RichElement/Type.lua +++ b/addons/cclua/cocos2d/library/ccui/RichElement/Type.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RichElement.Type ---@type ccui.RichElement.Type diff --git a/addons/cclua/cocos2d/library/ccui/RichElementCustomNode.lua b/addons/cclua/cocos2d/library/ccui/RichElementCustomNode.lua index 4fa0fe2f..ec447237 100644 --- a/addons/cclua/cocos2d/library/ccui/RichElementCustomNode.lua +++ b/addons/cclua/cocos2d/library/ccui/RichElementCustomNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RichElementCustomNode ---\brief Rich element for displaying custom node type. @@ -13,7 +14,7 @@ local RichElementCustomNode = {} ---\return A RichElementCustomNode instance. ---@param tag integer ---@param color any ----@param opacity any +---@param opacity integer ---@param customNode cc.Node ---@return ccui.RichElementCustomNode function RichElementCustomNode.create(tag, color, opacity, customNode) end @@ -27,7 +28,7 @@ function RichElementCustomNode.create(tag, color, opacity, customNode) end ---\return True if initialize success, false otherwise. ---@param tag integer ---@param color any ----@param opacity any +---@param opacity integer ---@param customNode cc.Node ---@return boolean function RichElementCustomNode:init(tag, color, opacity, customNode) end diff --git a/addons/cclua/cocos2d/library/ccui/RichElementImage.lua b/addons/cclua/cocos2d/library/ccui/RichElementImage.lua index 18ef11e4..87de8ccc 100644 --- a/addons/cclua/cocos2d/library/ccui/RichElementImage.lua +++ b/addons/cclua/cocos2d/library/ccui/RichElementImage.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RichElementImage ---\brief Rich element for displaying images. @@ -15,13 +16,33 @@ local RichElementImage = {} ---\return A RichElementImage instance. ---@param tag integer ---@param color any ----@param opacity any +---@param opacity integer ---@param filePath string ---@param url string ---@param texType ccui.Widget.TextureResType ---@return ccui.RichElementImage ----@overload fun(tag: integer, color: any, opacity: any, filePath: string): ccui.RichElementImage ----@overload fun(tag: integer, color: any, opacity: any, filePath: string, url: string): ccui.RichElementImage +--- +---\brief Create a RichElementImage with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param filePath A image file name. +---\param url uniform resource locator +---\param texType texture type, may be a valid file path, or a sprite frame name +---\return A RichElementImage instance. +---@overload fun(tag: integer, color: any, opacity: integer, filePath: string): ccui.RichElementImage +--- +---\brief Create a RichElementImage with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param filePath A image file name. +---\param url uniform resource locator +---\param texType texture type, may be a valid file path, or a sprite frame name +---\return A RichElementImage instance. +---@overload fun(tag: integer, color: any, opacity: integer, filePath: string, url: string): ccui.RichElementImage function RichElementImage.create(tag, color, opacity, filePath, url, texType) end ---\brief Initialize a RichElementImage with various arguments. @@ -35,13 +56,33 @@ function RichElementImage.create(tag, color, opacity, filePath, url, texType) en ---\return True if initialize success, false otherwise. ---@param tag integer ---@param color any ----@param opacity any +---@param opacity integer ---@param filePath string ---@param url string ---@param texType ccui.Widget.TextureResType ---@return boolean ----@overload fun(self: ccui.RichElementImage, tag: integer, color: any, opacity: any, filePath: string): boolean ----@overload fun(self: ccui.RichElementImage, tag: integer, color: any, opacity: any, filePath: string, url: string): boolean +--- +---\brief Initialize a RichElementImage with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param filePath A image file name. +---\param url uniform resource locator +---\param texType texture type, may be a valid file path, or a sprite frame name +---\return True if initialize success, false otherwise. +---@overload fun(self: ccui.RichElementImage, tag: integer, color: any, opacity: integer, filePath: string): boolean +--- +---\brief Initialize a RichElementImage with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param filePath A image file name. +---\param url uniform resource locator +---\param texType texture type, may be a valid file path, or a sprite frame name +---\return True if initialize success, false otherwise. +---@overload fun(self: ccui.RichElementImage, tag: integer, color: any, opacity: integer, filePath: string, url: string): boolean function RichElementImage:init(tag, color, opacity, filePath, url, texType) end ---\brief Default constructor. diff --git a/addons/cclua/cocos2d/library/ccui/RichElementNewLine.lua b/addons/cclua/cocos2d/library/ccui/RichElementNewLine.lua index 31d6aa2c..1c5948e5 100644 --- a/addons/cclua/cocos2d/library/ccui/RichElementNewLine.lua +++ b/addons/cclua/cocos2d/library/ccui/RichElementNewLine.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RichElementNewLine ---\brief Rich element for new line. @@ -12,7 +13,7 @@ local RichElementNewLine = {} ---\return A RichElementNewLine instance. ---@param tag integer ---@param color any ----@param opacity any +---@param opacity integer ---@return ccui.RichElementNewLine function RichElementNewLine.create(tag, color, opacity) end diff --git a/addons/cclua/cocos2d/library/ccui/RichElementText.lua b/addons/cclua/cocos2d/library/ccui/RichElementText.lua index eaec27d5..15a37040 100644 --- a/addons/cclua/cocos2d/library/ccui/RichElementText.lua +++ b/addons/cclua/cocos2d/library/ccui/RichElementText.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RichElementText ---\brief Rich element for displaying text. @@ -23,11 +24,11 @@ local RichElementText = {} ---\return RichElementText instance. ---@param tag integer ---@param color any ----@param opacity any +---@param opacity integer ---@param text string ---@param fontName string ---@param fontSize number ----@param flags any +---@param flags integer ---@param url string ---@param outlineColor any ---@param outlineSize integer @@ -36,14 +37,158 @@ local RichElementText = {} ---@param shadowBlurRadius integer ---@param glowColor any ---@return ccui.RichElementText ----@overload fun(tag: integer, color: any, opacity: any, text: string, fontName: string, fontSize: number): ccui.RichElementText ----@overload fun(tag: integer, color: any, opacity: any, text: string, fontName: string, fontSize: number, flags: any): ccui.RichElementText ----@overload fun(tag: integer, color: any, opacity: any, text: string, fontName: string, fontSize: number, flags: any, url: string): ccui.RichElementText ----@overload fun(tag: integer, color: any, opacity: any, text: string, fontName: string, fontSize: number, flags: any, url: string, outlineColor: any): ccui.RichElementText ----@overload fun(tag: integer, color: any, opacity: any, text: string, fontName: string, fontSize: number, flags: any, url: string, outlineColor: any, outlineSize: integer): ccui.RichElementText ----@overload fun(tag: integer, color: any, opacity: any, text: string, fontName: string, fontSize: number, flags: any, url: string, outlineColor: any, outlineSize: integer, shadowColor: any): ccui.RichElementText ----@overload fun(tag: integer, color: any, opacity: any, text: string, fontName: string, fontSize: number, flags: any, url: string, outlineColor: any, outlineSize: integer, shadowColor: any, shadowOffset: cc.Size): ccui.RichElementText ----@overload fun(tag: integer, color: any, opacity: any, text: string, fontName: string, fontSize: number, flags: any, url: string, outlineColor: any, outlineSize: integer, shadowColor: any, shadowOffset: cc.Size, shadowBlurRadius: integer): ccui.RichElementText +--- +---\brief Create a RichElementText with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param text Content string. +---\param fontName Content font name. +---\param fontSize Content font size. +---\param flags italics, bold, underline, strikethrough, url, outline, shadow or glow +---\param url uniform resource locator +---\param outlineColor the color of the outline +---\param outlineSize the outline effect size value +---\param shadowColor the shadow effect color value +---\param shadowOffset shadow effect offset value +---\param shadowBlurRadius the shadow effect blur radius +---\param glowColor glow color +---\return RichElementText instance. +---@overload fun(tag: integer, color: any, opacity: integer, text: string, fontName: string, fontSize: number): ccui.RichElementText +--- +---\brief Create a RichElementText with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param text Content string. +---\param fontName Content font name. +---\param fontSize Content font size. +---\param flags italics, bold, underline, strikethrough, url, outline, shadow or glow +---\param url uniform resource locator +---\param outlineColor the color of the outline +---\param outlineSize the outline effect size value +---\param shadowColor the shadow effect color value +---\param shadowOffset shadow effect offset value +---\param shadowBlurRadius the shadow effect blur radius +---\param glowColor glow color +---\return RichElementText instance. +---@overload fun(tag: integer, color: any, opacity: integer, text: string, fontName: string, fontSize: number, flags: integer): ccui.RichElementText +--- +---\brief Create a RichElementText with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param text Content string. +---\param fontName Content font name. +---\param fontSize Content font size. +---\param flags italics, bold, underline, strikethrough, url, outline, shadow or glow +---\param url uniform resource locator +---\param outlineColor the color of the outline +---\param outlineSize the outline effect size value +---\param shadowColor the shadow effect color value +---\param shadowOffset shadow effect offset value +---\param shadowBlurRadius the shadow effect blur radius +---\param glowColor glow color +---\return RichElementText instance. +---@overload fun(tag: integer, color: any, opacity: integer, text: string, fontName: string, fontSize: number, flags: integer, url: string): ccui.RichElementText +--- +---\brief Create a RichElementText with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param text Content string. +---\param fontName Content font name. +---\param fontSize Content font size. +---\param flags italics, bold, underline, strikethrough, url, outline, shadow or glow +---\param url uniform resource locator +---\param outlineColor the color of the outline +---\param outlineSize the outline effect size value +---\param shadowColor the shadow effect color value +---\param shadowOffset shadow effect offset value +---\param shadowBlurRadius the shadow effect blur radius +---\param glowColor glow color +---\return RichElementText instance. +---@overload fun(tag: integer, color: any, opacity: integer, text: string, fontName: string, fontSize: number, flags: integer, url: string, outlineColor: any): ccui.RichElementText +--- +---\brief Create a RichElementText with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param text Content string. +---\param fontName Content font name. +---\param fontSize Content font size. +---\param flags italics, bold, underline, strikethrough, url, outline, shadow or glow +---\param url uniform resource locator +---\param outlineColor the color of the outline +---\param outlineSize the outline effect size value +---\param shadowColor the shadow effect color value +---\param shadowOffset shadow effect offset value +---\param shadowBlurRadius the shadow effect blur radius +---\param glowColor glow color +---\return RichElementText instance. +---@overload fun(tag: integer, color: any, opacity: integer, text: string, fontName: string, fontSize: number, flags: integer, url: string, outlineColor: any, outlineSize: integer): ccui.RichElementText +--- +---\brief Create a RichElementText with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param text Content string. +---\param fontName Content font name. +---\param fontSize Content font size. +---\param flags italics, bold, underline, strikethrough, url, outline, shadow or glow +---\param url uniform resource locator +---\param outlineColor the color of the outline +---\param outlineSize the outline effect size value +---\param shadowColor the shadow effect color value +---\param shadowOffset shadow effect offset value +---\param shadowBlurRadius the shadow effect blur radius +---\param glowColor glow color +---\return RichElementText instance. +---@overload fun(tag: integer, color: any, opacity: integer, text: string, fontName: string, fontSize: number, flags: integer, url: string, outlineColor: any, outlineSize: integer, shadowColor: any): ccui.RichElementText +--- +---\brief Create a RichElementText with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param text Content string. +---\param fontName Content font name. +---\param fontSize Content font size. +---\param flags italics, bold, underline, strikethrough, url, outline, shadow or glow +---\param url uniform resource locator +---\param outlineColor the color of the outline +---\param outlineSize the outline effect size value +---\param shadowColor the shadow effect color value +---\param shadowOffset shadow effect offset value +---\param shadowBlurRadius the shadow effect blur radius +---\param glowColor glow color +---\return RichElementText instance. +---@overload fun(tag: integer, color: any, opacity: integer, text: string, fontName: string, fontSize: number, flags: integer, url: string, outlineColor: any, outlineSize: integer, shadowColor: any, shadowOffset: cc.Size): ccui.RichElementText +--- +---\brief Create a RichElementText with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param text Content string. +---\param fontName Content font name. +---\param fontSize Content font size. +---\param flags italics, bold, underline, strikethrough, url, outline, shadow or glow +---\param url uniform resource locator +---\param outlineColor the color of the outline +---\param outlineSize the outline effect size value +---\param shadowColor the shadow effect color value +---\param shadowOffset shadow effect offset value +---\param shadowBlurRadius the shadow effect blur radius +---\param glowColor glow color +---\return RichElementText instance. +---@overload fun(tag: integer, color: any, opacity: integer, text: string, fontName: string, fontSize: number, flags: integer, url: string, outlineColor: any, outlineSize: integer, shadowColor: any, shadowOffset: cc.Size, shadowBlurRadius: integer): ccui.RichElementText function RichElementText.create(tag, color, opacity, text, fontName, fontSize, flags, url, outlineColor, outlineSize, shadowColor, shadowOffset, shadowBlurRadius, glowColor) end ---\brief Initialize a RichElementText with various arguments. @@ -65,11 +210,11 @@ function RichElementText.create(tag, color, opacity, text, fontName, fontSize, f ---\return True if initialize success, false otherwise. ---@param tag integer ---@param color any ----@param opacity any +---@param opacity integer ---@param text string ---@param fontName string ---@param fontSize number ----@param flags any +---@param flags integer ---@param url string ---@param outlineColor any ---@param outlineSize integer @@ -78,12 +223,120 @@ function RichElementText.create(tag, color, opacity, text, fontName, fontSize, f ---@param shadowBlurRadius integer ---@param glowColor any ---@return boolean ----@overload fun(self: ccui.RichElementText, tag: integer, color: any, opacity: any, text: string, fontName: string, fontSize: number, flags: any, url: string): boolean ----@overload fun(self: ccui.RichElementText, tag: integer, color: any, opacity: any, text: string, fontName: string, fontSize: number, flags: any, url: string, outlineColor: any): boolean ----@overload fun(self: ccui.RichElementText, tag: integer, color: any, opacity: any, text: string, fontName: string, fontSize: number, flags: any, url: string, outlineColor: any, outlineSize: integer): boolean ----@overload fun(self: ccui.RichElementText, tag: integer, color: any, opacity: any, text: string, fontName: string, fontSize: number, flags: any, url: string, outlineColor: any, outlineSize: integer, shadowColor: any): boolean ----@overload fun(self: ccui.RichElementText, tag: integer, color: any, opacity: any, text: string, fontName: string, fontSize: number, flags: any, url: string, outlineColor: any, outlineSize: integer, shadowColor: any, shadowOffset: cc.Size): boolean ----@overload fun(self: ccui.RichElementText, tag: integer, color: any, opacity: any, text: string, fontName: string, fontSize: number, flags: any, url: string, outlineColor: any, outlineSize: integer, shadowColor: any, shadowOffset: cc.Size, shadowBlurRadius: integer): boolean +--- +---\brief Initialize a RichElementText with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param text Content string. +---\param fontName Content font name. +---\param fontSize Content font size. +---\param flags italics, bold, underline, strikethrough, url, outline, shadow or glow +---\param url uniform resource locator +---\param outlineColor the color of the outline +---\param outlineSize the outline effect size value +---\param shadowColor the shadow effect color value +---\param shadowOffset shadow effect offset value +---\param shadowBlurRadius the shadow effect blur radius +---\param glowColor glow color +---\return True if initialize success, false otherwise. +---@overload fun(self: ccui.RichElementText, tag: integer, color: any, opacity: integer, text: string, fontName: string, fontSize: number, flags: integer, url: string): boolean +--- +---\brief Initialize a RichElementText with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param text Content string. +---\param fontName Content font name. +---\param fontSize Content font size. +---\param flags italics, bold, underline, strikethrough, url, outline, shadow or glow +---\param url uniform resource locator +---\param outlineColor the color of the outline +---\param outlineSize the outline effect size value +---\param shadowColor the shadow effect color value +---\param shadowOffset shadow effect offset value +---\param shadowBlurRadius the shadow effect blur radius +---\param glowColor glow color +---\return True if initialize success, false otherwise. +---@overload fun(self: ccui.RichElementText, tag: integer, color: any, opacity: integer, text: string, fontName: string, fontSize: number, flags: integer, url: string, outlineColor: any): boolean +--- +---\brief Initialize a RichElementText with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param text Content string. +---\param fontName Content font name. +---\param fontSize Content font size. +---\param flags italics, bold, underline, strikethrough, url, outline, shadow or glow +---\param url uniform resource locator +---\param outlineColor the color of the outline +---\param outlineSize the outline effect size value +---\param shadowColor the shadow effect color value +---\param shadowOffset shadow effect offset value +---\param shadowBlurRadius the shadow effect blur radius +---\param glowColor glow color +---\return True if initialize success, false otherwise. +---@overload fun(self: ccui.RichElementText, tag: integer, color: any, opacity: integer, text: string, fontName: string, fontSize: number, flags: integer, url: string, outlineColor: any, outlineSize: integer): boolean +--- +---\brief Initialize a RichElementText with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param text Content string. +---\param fontName Content font name. +---\param fontSize Content font size. +---\param flags italics, bold, underline, strikethrough, url, outline, shadow or glow +---\param url uniform resource locator +---\param outlineColor the color of the outline +---\param outlineSize the outline effect size value +---\param shadowColor the shadow effect color value +---\param shadowOffset shadow effect offset value +---\param shadowBlurRadius the shadow effect blur radius +---\param glowColor glow color +---\return True if initialize success, false otherwise. +---@overload fun(self: ccui.RichElementText, tag: integer, color: any, opacity: integer, text: string, fontName: string, fontSize: number, flags: integer, url: string, outlineColor: any, outlineSize: integer, shadowColor: any): boolean +--- +---\brief Initialize a RichElementText with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param text Content string. +---\param fontName Content font name. +---\param fontSize Content font size. +---\param flags italics, bold, underline, strikethrough, url, outline, shadow or glow +---\param url uniform resource locator +---\param outlineColor the color of the outline +---\param outlineSize the outline effect size value +---\param shadowColor the shadow effect color value +---\param shadowOffset shadow effect offset value +---\param shadowBlurRadius the shadow effect blur radius +---\param glowColor glow color +---\return True if initialize success, false otherwise. +---@overload fun(self: ccui.RichElementText, tag: integer, color: any, opacity: integer, text: string, fontName: string, fontSize: number, flags: integer, url: string, outlineColor: any, outlineSize: integer, shadowColor: any, shadowOffset: cc.Size): boolean +--- +---\brief Initialize a RichElementText with various arguments. +--- +---\param tag A integer tag value. +---\param color A color in Color3B. +---\param opacity A opacity in GLubyte. +---\param text Content string. +---\param fontName Content font name. +---\param fontSize Content font size. +---\param flags italics, bold, underline, strikethrough, url, outline, shadow or glow +---\param url uniform resource locator +---\param outlineColor the color of the outline +---\param outlineSize the outline effect size value +---\param shadowColor the shadow effect color value +---\param shadowOffset shadow effect offset value +---\param shadowBlurRadius the shadow effect blur radius +---\param glowColor glow color +---\return True if initialize success, false otherwise. +---@overload fun(self: ccui.RichElementText, tag: integer, color: any, opacity: integer, text: string, fontName: string, fontSize: number, flags: integer, url: string, outlineColor: any, outlineSize: integer, shadowColor: any, shadowOffset: cc.Size, shadowBlurRadius: integer): boolean function RichElementText:init(tag, color, opacity, text, fontName, fontSize, flags, url, outlineColor, outlineSize, shadowColor, shadowOffset, shadowBlurRadius, glowColor) end ---\brief Default constructor. diff --git a/addons/cclua/cocos2d/library/ccui/RichText.lua b/addons/cclua/cocos2d/library/ccui/RichText.lua index 51f7afbf..53624171 100644 --- a/addons/cclua/cocos2d/library/ccui/RichText.lua +++ b/addons/cclua/cocos2d/library/ccui/RichText.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RichText ---\brief A container for displaying various RichElements. @@ -83,7 +84,15 @@ function RichText.create() end ---@param defaults any ---@param handleOpenUrl ccui.RichText.OpenUrlHandler ---@return ccui.RichText +--- +---\brief Create a RichText from an XML +--- +---\return RichText instance. ---@overload fun(xml: string): ccui.RichText +--- +---\brief Create a RichText from an XML +--- +---\return RichText instance. ---@overload fun(xml: string, defaults: any): ccui.RichText function RichText.createWithXML(xml, defaults, handleOpenUrl) end @@ -184,6 +193,10 @@ function RichText:pushBackElement(element) end --- ---\param index A integer index value. ---@param index integer +--- +---\brief Remove specific RichElement. +--- +---\param element A RichElement type. ---@overload fun(self: ccui.RichText, element: ccui.RichElement) function RichText:removeElement(index) end @@ -213,7 +226,11 @@ function RichText:setAnchorTextItalic(enable) end ---@param enable boolean ---@param outlineColor any ---@param outlineSize integer +--- +---\brief enable the outline of a-tag ---@overload fun(self: ccui.RichText, enable: boolean) +--- +---\brief enable the outline of a-tag ---@overload fun(self: ccui.RichText, enable: boolean, outlineColor: any) function RichText:setAnchorTextOutline(enable, outlineColor, outlineSize) end @@ -222,8 +239,14 @@ function RichText:setAnchorTextOutline(enable, outlineColor, outlineSize) end ---@param shadowColor any ---@param offset cc.Size ---@param blurRadius integer +--- +---\brief enable the shadow of a-tag ---@overload fun(self: ccui.RichText, enable: boolean) +--- +---\brief enable the shadow of a-tag ---@overload fun(self: ccui.RichText, enable: boolean, shadowColor: any) +--- +---\brief enable the shadow of a-tag ---@overload fun(self: ccui.RichText, enable: boolean, shadowColor: any, offset: cc.Size) function RichText:setAnchorTextShadow(enable, shadowColor, offset, blurRadius) end diff --git a/addons/cclua/cocos2d/library/ccui/RichText/HorizontalAlignment.lua b/addons/cclua/cocos2d/library/ccui/RichText/HorizontalAlignment.lua index 47eac9fd..d9d3f223 100644 --- a/addons/cclua/cocos2d/library/ccui/RichText/HorizontalAlignment.lua +++ b/addons/cclua/cocos2d/library/ccui/RichText/HorizontalAlignment.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RichText.HorizontalAlignment ---@type ccui.RichText.HorizontalAlignment diff --git a/addons/cclua/cocos2d/library/ccui/RichText/OpenUrlHandler.lua b/addons/cclua/cocos2d/library/ccui/RichText/OpenUrlHandler.lua index e6a4affc..ab08261a 100644 --- a/addons/cclua/cocos2d/library/ccui/RichText/OpenUrlHandler.lua +++ b/addons/cclua/cocos2d/library/ccui/RichText/OpenUrlHandler.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RichText.OpenUrlHandler --- diff --git a/addons/cclua/cocos2d/library/ccui/RichText/WrapMode.lua b/addons/cclua/cocos2d/library/ccui/RichText/WrapMode.lua index 39e88a7a..6b27d135 100644 --- a/addons/cclua/cocos2d/library/ccui/RichText/WrapMode.lua +++ b/addons/cclua/cocos2d/library/ccui/RichText/WrapMode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.RichText.WrapMode ---@type ccui.RichText.WrapMode diff --git a/addons/cclua/cocos2d/library/ccui/Scale9Sprite.lua b/addons/cclua/cocos2d/library/ccui/Scale9Sprite.lua index 247fec5a..2022f6bc 100644 --- a/addons/cclua/cocos2d/library/ccui/Scale9Sprite.lua +++ b/addons/cclua/cocos2d/library/ccui/Scale9Sprite.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Scale9Sprite ---\brief A 9-slice sprite for cocos2d-x. @@ -31,9 +32,41 @@ function Scale9Sprite:copyTo(copy) end --- ---\return A Scale9Sprite instance. ---@return ccui.Scale9Sprite +--- +---Creates a 9-slice sprite with a texture file, a delimitation zone and +---with the specified cap insets. +--- +---\see initWithFile(const char *file, const Rect& rect, const Rect& capInsets) +---\param file A texture file name. +---\param rect A delimitation zone. +---\param capInsets A specified cap insets. +---\return A Scale9Sprite instance. ---@overload fun(file: string, rect: cc.Rect, capInsets: cc.Rect): ccui.Scale9Sprite +--- +---Creates a 9-slice sprite with a texture file. The whole texture will be +---broken down into a 3×3 grid of equal blocks. +--- +---\see initWithFile(const Rect& capInsets, const char *file) +---\param capInsets A specified cap insets. +---\param file A texture file name. +---\return A Scale9Sprite instance. ---@overload fun(capInsets: cc.Rect, file: string): ccui.Scale9Sprite +--- +---Creates a 9-slice sprite with a texture file and a delimitation zone. The +---texture will be broken down into a 3×3 grid of equal blocks. +--- +---\see initWithFile(const char *file, const Rect& rect) +---\param file A texture file name. +---\param rect A delimitation zone. +---\return A Scale9Sprite instance. ---@overload fun(file: string, rect: cc.Rect): ccui.Scale9Sprite +--- +---Creates a 9-slice sprite with a texture file. The whole texture will be +---broken down into a 3×3 grid of equal blocks. +--- +---\see initWithFile(const char *file) +---\param file A texture file name. +---\return A Scale9Sprite instance. ---@overload fun(file: string): ccui.Scale9Sprite function Scale9Sprite.create() end @@ -47,6 +80,16 @@ function Scale9Sprite.create() end ---\return A Scale9Sprite instance. ---@param spriteFrame cc.SpriteFrame ---@return ccui.Scale9Sprite +--- +---Creates a 9-slice sprite with an sprite frame and the centre of its zone. +---Once the sprite is created, you can then call its "setContentSize:" method +---to resize the sprite will all it's 9-slice goodness interact. +---It respects the anchorPoint too. +--- +---\see initWithSpriteFrame(SpriteFrame *spriteFrame, const Rect& capInsets) +---\param spriteFrame A sprite frame pointer. +---\param capInsets A delimitation zone. +---\return A Scale9Sprite instance. ---@overload fun(spriteFrame: cc.SpriteFrame, capInsets: cc.Rect): ccui.Scale9Sprite function Scale9Sprite.createWithSpriteFrame(spriteFrame) end @@ -60,6 +103,16 @@ function Scale9Sprite.createWithSpriteFrame(spriteFrame) end ---\return A Scale9Sprite instance. ---@param spriteFrameName string ---@return ccui.Scale9Sprite +--- +---Creates a 9-slice sprite with an sprite frame name and the centre of its zone. +---Once the sprite is created, you can then call its "setContentSize:" method +---to resize the sprite will all it's 9-slice goodness interact. +---It respects the anchorPoint too. +--- +---\see initWithSpriteFrameName(const char *spriteFrameName, const Rect& capInsets) +---\param spriteFrameName A sprite frame name. +---\param capInsets A delimitation zone. +---\return A Scale9Sprite instance. ---@overload fun(spriteFrameName: string, capInsets: cc.Rect): ccui.Scale9Sprite function Scale9Sprite.createWithSpriteFrameName(spriteFrameName) end @@ -120,8 +173,42 @@ function Scale9Sprite:getSprite() end function Scale9Sprite:getState() end ---@return boolean +--- +---\brief Initializes a 9-slice sprite with an sprite instance. +---Once the sprite is created, you can then call its "setContentSize:" method +---to resize the sprite will all it's 9-slice goodness interact. +---It respects the anchorPoint too. +--- +---\param sprite The sprite instance. +---\param rect A delimitation zone. +---\param rotated Whether the sprite is rotated or not. +---\param capInsets The values to use for the cap insets. +---\return True if initializes success, false otherwise. ---@overload fun(self: ccui.Scale9Sprite, sprite: cc.Sprite, rect: cc.Rect, rotated: boolean, capInsets: cc.Rect): boolean +--- +---\brief Initializes a 9-slice sprite with an sprite instance. +---Once the sprite is created, you can then call its "setContentSize:" method +---to resize the sprite will all it's 9-slice goodness interact. +---It respects the anchorPoint too. +--- +---\param sprite The sprite instance. +---\param rect A delimitation zone. +---\param capInsets The values to use for the cap insets. +---\return True if initializes success, false otherwise. ---@overload fun(self: ccui.Scale9Sprite, sprite: cc.Sprite, rect: cc.Rect, capInsets: cc.Rect): boolean +--- +---\brief Initializes a 9-slice sprite with an sprite instance. +---Once the sprite is created, you can then call its "setContentSize:" method +---to resize the sprite will all it's 9-slice goodness interact. +---It respects the anchorPoint too. +--- +---\param sprite The sprite instance. +---\param rect A delimitation zone. +---\param rotated Whether the sprite is rotated or not. +---\param offset The offset when slice the sprite. +---\param originalSize The original size of sprite. +---\param capInsets The values to use for the cap insets. +---\return True if initializes success, false otherwise. ---@overload fun(self: ccui.Scale9Sprite, sprite: cc.Sprite, rect: cc.Rect, rotated: boolean, offset: cc.Vec2, originalSize: cc.Size, capInsets: cc.Rect): boolean function Scale9Sprite:init() end @@ -141,8 +228,39 @@ function Scale9Sprite:init() end ---@param rect cc.Rect ---@param capInsets cc.Rect ---@return boolean +--- +---Initializes a 9-slice sprite with a texture file and with the specified cap +---insets. +---Once the sprite is created, you can then call its "setContentSize:" method +---to resize the sprite will all it's 9-slice goodness interact. +---It respects the anchorPoint too. +--- +---\param file The name of the texture file. +---\param capInsets The values to use for the cap insets. +---\return True if initializes success, false otherwise. ---@overload fun(self: ccui.Scale9Sprite, capInsets: cc.Rect, file: string): boolean +--- +---Initializes a 9-slice sprite with a texture file and a delimitation zone. The +---texture will be broken down into a 3×3 grid of equal blocks. +---Once the sprite is created, you can then call its "setContentSize:" method +---to resize the sprite will all it's 9-slice goodness interact. +---It respects the anchorPoint too. +--- +---\param file The name of the texture file. +---\param rect The rectangle that describes the sub-part of the texture that +---is the whole image. If the shape is the whole texture, set this to the +---texture's full rect. +---\return True if initializes success, false otherwise. ---@overload fun(self: ccui.Scale9Sprite, file: string, rect: cc.Rect): boolean +--- +---Initializes a 9-slice sprite with a texture file. The whole texture will be +---broken down into a 3×3 grid of equal blocks. +---Once the sprite is created, you can then call its "setContentSize:" method +---to resize the sprite will all it's 9-slice goodness interact. +---It respects the anchorPoint too. +--- +---\param file The name of the texture file. +---\return True if initializes success, false otherwise. ---@overload fun(self: ccui.Scale9Sprite, file: string): boolean function Scale9Sprite:initWithFile(file, rect, capInsets) end @@ -158,6 +276,11 @@ function Scale9Sprite:initWithFile(file, rect, capInsets) end ---@param spriteFrame cc.SpriteFrame ---@param capInsets cc.Rect ---@return boolean +--- +---Initializes a sprite with an SpriteFrame. The texture and rect in SpriteFrame will be applied on this sprite. +--- +---\param spriteFrame A SpriteFrame object. It should includes a valid texture and a rect. +---\return True if the sprite is initialized properly, false otherwise. ---@overload fun(self: ccui.Scale9Sprite, spriteFrame: cc.SpriteFrame): boolean function Scale9Sprite:initWithSpriteFrame(spriteFrame, capInsets) end @@ -173,6 +296,14 @@ function Scale9Sprite:initWithSpriteFrame(spriteFrame, capInsets) end ---@param spriteFrameName string ---@param capInsets cc.Rect ---@return boolean +--- +---Initializes a 9-slice sprite with an sprite frame name. +---Once the sprite is created, you can then call its "setContentSize:" method +---to resize the sprite will all it's 9-slice goodness interact. +---It respects the anchorPoint too. +--- +---\param spriteFrameName The sprite frame name. +---\return True if initializes success, false otherwise. ---@overload fun(self: ccui.Scale9Sprite, spriteFrameName: string): boolean function Scale9Sprite:initWithSpriteFrameName(spriteFrameName, capInsets) end @@ -258,6 +389,9 @@ function Scale9Sprite:setScale9Enabled(enabled) end ---\param capInsets The values to use for the cap insets. ---@param spriteFrame cc.SpriteFrame ---@param capInsets cc.Rect +--- +---\{ +---Sets a new SpriteFrame to the Sprite. ---@overload fun(self: ccui.Scale9Sprite, spriteFrameName: string) ---@overload fun(self: ccui.Scale9Sprite, newFrame: cc.SpriteFrame) function Scale9Sprite:setSpriteFrame(spriteFrame, capInsets) end @@ -282,6 +416,17 @@ function Scale9Sprite:setState(state) end ---@param rotated boolean ---@param capInsets cc.Rect ---@return boolean +--- +---\brief Update Scale9Sprite with a specified sprite. +--- +---\param sprite A sprite pointer. +---\param rect A delimitation zone. +---\param rotated Whether the sprite is rotated or not. +---\param offset The offset when slice the sprite. +---\param originalSize The original size of the sprite. +---\param capInsets The Values to use for the cap insets. +---\return True if update success, false otherwise. +---\js NA ---@overload fun(self: ccui.Scale9Sprite, sprite: cc.Sprite, rect: cc.Rect, rotated: boolean, offset: cc.Vec2, originalSize: cc.Size, capInsets: cc.Rect): boolean function Scale9Sprite:updateWithSprite(sprite, rect, rotated, capInsets) end diff --git a/addons/cclua/cocos2d/library/ccui/Scale9Sprite/RenderingType.lua b/addons/cclua/cocos2d/library/ccui/Scale9Sprite/RenderingType.lua index 581fb68b..ad7e66ea 100644 --- a/addons/cclua/cocos2d/library/ccui/Scale9Sprite/RenderingType.lua +++ b/addons/cclua/cocos2d/library/ccui/Scale9Sprite/RenderingType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Scale9Sprite.RenderingType ---@type ccui.Scale9Sprite.RenderingType diff --git a/addons/cclua/cocos2d/library/ccui/Scale9Sprite/State.lua b/addons/cclua/cocos2d/library/ccui/Scale9Sprite/State.lua index bd6a59fb..60060f17 100644 --- a/addons/cclua/cocos2d/library/ccui/Scale9Sprite/State.lua +++ b/addons/cclua/cocos2d/library/ccui/Scale9Sprite/State.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Scale9Sprite.State ---@type ccui.Scale9Sprite.State diff --git a/addons/cclua/cocos2d/library/ccui/ScrollView.lua b/addons/cclua/cocos2d/library/ccui/ScrollView.lua index 1e61c2fe..83641b99 100644 --- a/addons/cclua/cocos2d/library/ccui/ScrollView.lua +++ b/addons/cclua/cocos2d/library/ccui/ScrollView.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.ScrollView ---Layout container for a view hierarchy that can be scrolled by the user, allowing it to be larger than the physical display. @@ -14,7 +15,7 @@ ---@field scrollBarAutoHideTime number \brief Get the scroll bar's auto hide time

\return the scroll bar's auto hide time ---@field scrollBarColor any \brief Get the scroll bar's color

\return the scroll bar's color ---@field scrollBarEnabled boolean \brief Query scroll bar state.

\return True if scroll bar is enabled, false otherwise. ----@field scrollBarOpacity any \brief Get the scroll bar's opacity

\return the scroll bar's opacity +---@field scrollBarOpacity integer \brief Get the scroll bar's opacity

\return the scroll bar's opacity ---@field scrollBarPositionFromCornerForHorizontal cc.Vec2 \brief Get the horizontal scroll bar's position from right-top corner.

\return positionFromCorner ---@field scrollBarPositionFromCornerForVertical cc.Vec2 \brief Get the vertical scroll bar's position from right-top corner.

\return positionFromCorner ---@field scrollBarWidth number \brief Get the scroll bar's width

\return the scroll bar's width @@ -83,7 +84,7 @@ function ScrollView:getScrollBarColor() end ---\brief Get the scroll bar's opacity --- ---\return the scroll bar's opacity ----@return any +---@return integer function ScrollView:getScrollBarOpacity() end ---\brief Get the horizontal scroll bar's position from right-top corner. @@ -342,7 +343,7 @@ function ScrollView:setScrollBarEnabled(enabled) end ---\brief Set the scroll bar's opacity --- ---\param the scroll bar's opacity ----@param opacity any +---@param opacity integer function ScrollView:setScrollBarOpacity(opacity) end ---\brief Set the scroll bar positions from the left-bottom corner (horizontal) and right-top corner (vertical). diff --git a/addons/cclua/cocos2d/library/ccui/ScrollView/Direction.lua b/addons/cclua/cocos2d/library/ccui/ScrollView/Direction.lua index 00d1dbad..d663388f 100644 --- a/addons/cclua/cocos2d/library/ccui/ScrollView/Direction.lua +++ b/addons/cclua/cocos2d/library/ccui/ScrollView/Direction.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.ScrollView.Direction ---@type ccui.ScrollView.Direction diff --git a/addons/cclua/cocos2d/library/ccui/ScrollView/EventType.lua b/addons/cclua/cocos2d/library/ccui/ScrollView/EventType.lua index e7faf063..ad02f79a 100644 --- a/addons/cclua/cocos2d/library/ccui/ScrollView/EventType.lua +++ b/addons/cclua/cocos2d/library/ccui/ScrollView/EventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.ScrollView.EventType ---@type ccui.ScrollView.EventType diff --git a/addons/cclua/cocos2d/library/ccui/ScrollView/ccScrollViewCallback.lua b/addons/cclua/cocos2d/library/ccui/ScrollView/ccScrollViewCallback.lua index ea882d27..cd4ca348 100644 --- a/addons/cclua/cocos2d/library/ccui/ScrollView/ccScrollViewCallback.lua +++ b/addons/cclua/cocos2d/library/ccui/ScrollView/ccScrollViewCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.ScrollView.ccScrollViewCallback --- diff --git a/addons/cclua/cocos2d/library/ccui/ScrollViewBar.lua b/addons/cclua/cocos2d/library/ccui/ScrollViewBar.lua index a4fed823..1f580b71 100644 --- a/addons/cclua/cocos2d/library/ccui/ScrollViewBar.lua +++ b/addons/cclua/cocos2d/library/ccui/ScrollViewBar.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.ScrollViewBar ---Scroll bar being attached to ScrollView layout container. diff --git a/addons/cclua/cocos2d/library/ccui/Slider.lua b/addons/cclua/cocos2d/library/ccui/Slider.lua index dbe21207..5531f03c 100644 --- a/addons/cclua/cocos2d/library/ccui/Slider.lua +++ b/addons/cclua/cocos2d/library/ccui/Slider.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Slider ---\brief UI Slider widget. @@ -29,7 +30,21 @@ function Slider:addEventListener(callback) end --- ---\return An autoreleased Slider object. ---@return ccui.Slider +--- +---Create a slider widget with bar texture, ball texture and texture resource type. +--- +---\param barTextureName Bar texture file name. +---\param normalBallTextureName Ball texture file name. +---\param resType Texture resource type. +---\return An autoreleased Slider object. ---@overload fun(barTextureName: string, normalBallTextureName: string, resType: ccui.Widget.TextureResType): ccui.Slider +--- +---Create a slider widget with bar texture, ball texture and texture resource type. +--- +---\param barTextureName Bar texture file name. +---\param normalBallTextureName Ball texture file name. +---\param resType Texture resource type. +---\return An autoreleased Slider object. ---@overload fun(barTextureName: string, normalBallTextureName: string): ccui.Slider function Slider.create() end @@ -102,6 +117,11 @@ function Slider:isScale9Enabled() end ---\param resType @see TextureResType . ---@param fileName string ---@param resType ccui.Widget.TextureResType +--- +---Load texture for slider bar. +--- +---\param fileName File name of texture. +---\param resType @see TextureResType . ---@overload fun(self: ccui.Slider, fileName: string) function Slider:loadBarTexture(fileName, resType) end @@ -111,6 +131,11 @@ function Slider:loadBarTexture(fileName, resType) end ---\param resType @see TextureResType . ---@param fileName string ---@param resType ccui.Widget.TextureResType +--- +---Load dark state texture for slider progress bar. +--- +---\param fileName File path of texture. +---\param resType @see TextureResType . ---@overload fun(self: ccui.Slider, fileName: string) function Slider:loadProgressBarTexture(fileName, resType) end @@ -120,6 +145,11 @@ function Slider:loadProgressBarTexture(fileName, resType) end ---\param resType @see TextureResType . ---@param disabled string ---@param resType ccui.Widget.TextureResType +--- +---Load disabled state texture for slider ball. +--- +---\param disabled Disabled state texture. +---\param resType @see TextureResType . ---@overload fun(self: ccui.Slider, disabled: string) function Slider:loadSlidBallTextureDisabled(disabled, resType) end @@ -129,6 +159,11 @@ function Slider:loadSlidBallTextureDisabled(disabled, resType) end ---\param resType @see TextureResType . ---@param normal string ---@param resType ccui.Widget.TextureResType +--- +---Load normal state texture for slider ball. +--- +---\param normal Normal state texture. +---\param resType @see TextureResType . ---@overload fun(self: ccui.Slider, normal: string) function Slider:loadSlidBallTextureNormal(normal, resType) end @@ -138,6 +173,11 @@ function Slider:loadSlidBallTextureNormal(normal, resType) end ---\param resType @see TextureResType . ---@param pressed string ---@param resType ccui.Widget.TextureResType +--- +---Load pressed state texture for slider ball. +--- +---\param pressed Pressed state texture. +---\param resType @see TextureResType . ---@overload fun(self: ccui.Slider, pressed: string) function Slider:loadSlidBallTexturePressed(pressed, resType) end @@ -151,8 +191,29 @@ function Slider:loadSlidBallTexturePressed(pressed, resType) end ---@param pressed string ---@param disabled string ---@param texType ccui.Widget.TextureResType +--- +---Load textures for slider ball. +--- +---\param normal Normal state texture. +---\param pressed Pressed state texture. +---\param disabled Disabled state texture. +---\param texType @see TextureResType . ---@overload fun(self: ccui.Slider, normal: string) +--- +---Load textures for slider ball. +--- +---\param normal Normal state texture. +---\param pressed Pressed state texture. +---\param disabled Disabled state texture. +---\param texType @see TextureResType . ---@overload fun(self: ccui.Slider, normal: string, pressed: string) +--- +---Load textures for slider ball. +--- +---\param normal Normal state texture. +---\param pressed Pressed state texture. +---\param disabled Disabled state texture. +---\param texType @see TextureResType . ---@overload fun(self: ccui.Slider, normal: string, pressed: string, disabled: string) function Slider:loadSlidBallTextures(normal, pressed, disabled, texType) end diff --git a/addons/cclua/cocos2d/library/ccui/Slider/EventType.lua b/addons/cclua/cocos2d/library/ccui/Slider/EventType.lua index c4ed9188..3f620fb8 100644 --- a/addons/cclua/cocos2d/library/ccui/Slider/EventType.lua +++ b/addons/cclua/cocos2d/library/ccui/Slider/EventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Slider.EventType ---@type ccui.Slider.EventType diff --git a/addons/cclua/cocos2d/library/ccui/Slider/ccSliderCallback.lua b/addons/cclua/cocos2d/library/ccui/Slider/ccSliderCallback.lua index 15604783..2c8b7d30 100644 --- a/addons/cclua/cocos2d/library/ccui/Slider/ccSliderCallback.lua +++ b/addons/cclua/cocos2d/library/ccui/Slider/ccSliderCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Slider.ccSliderCallback --- diff --git a/addons/cclua/cocos2d/library/ccui/TabControl.lua b/addons/cclua/cocos2d/library/ccui/TabControl.lua index 91379443..0508d92a 100644 --- a/addons/cclua/cocos2d/library/ccui/TabControl.lua +++ b/addons/cclua/cocos2d/library/ccui/TabControl.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.TabControl ---TabControl, use header button switch container @@ -6,7 +7,6 @@ ---@field headerHeight integer get tab header's height \return header's height ---@field headerSelectedZoom number get the delta zoom of selected tab \return zoom, the delta zoom ---@field headerWidth number get tab header's width \return header's width ----@field ignoreHeadersTextureSize boolean get whether ignore the textures' size in header, scale them with _headerWidth and _headerHeight \return whether ignore the textures' size in header ---@field selectedTabIndex integer get current selected tab's index \return the current selected tab index ---@field tabCount integer get the count of tabs in this TabControl \return the count of tabs local TabControl = {} @@ -108,6 +108,9 @@ function TabControl:setHeaderWidth(headerWidth) end ---set tab selected, switch the current selected tab and visible container ---\param index The index of tab ---@param index integer +--- +---set tab selected, switch the current selected tab and visible container +---\param tabHeader The tab instance ---@overload fun(self: ccui.TabControl, tabHeader: ccui.TabHeader) function TabControl:setSelectTab(index) end diff --git a/addons/cclua/cocos2d/library/ccui/TabControl/Dock.lua b/addons/cclua/cocos2d/library/ccui/TabControl/Dock.lua index 0cf83ebc..3c46a7e6 100644 --- a/addons/cclua/cocos2d/library/ccui/TabControl/Dock.lua +++ b/addons/cclua/cocos2d/library/ccui/TabControl/Dock.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.TabControl.Dock ---@type ccui.TabControl.Dock diff --git a/addons/cclua/cocos2d/library/ccui/TabControl/EventType.lua b/addons/cclua/cocos2d/library/ccui/TabControl/EventType.lua index 6845ec83..4cfa8033 100644 --- a/addons/cclua/cocos2d/library/ccui/TabControl/EventType.lua +++ b/addons/cclua/cocos2d/library/ccui/TabControl/EventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.TabControl.EventType ---@type ccui.TabControl.EventType diff --git a/addons/cclua/cocos2d/library/ccui/TabControl/ccTabControlCallback.lua b/addons/cclua/cocos2d/library/ccui/TabControl/ccTabControlCallback.lua index 601f1f20..5b4f1fa7 100644 --- a/addons/cclua/cocos2d/library/ccui/TabControl/ccTabControlCallback.lua +++ b/addons/cclua/cocos2d/library/ccui/TabControl/ccTabControlCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.TabControl.ccTabControlCallback --- diff --git a/addons/cclua/cocos2d/library/ccui/TabHeader.lua b/addons/cclua/cocos2d/library/ccui/TabHeader.lua index 30f81084..8dac08b8 100644 --- a/addons/cclua/cocos2d/library/ccui/TabHeader.lua +++ b/addons/cclua/cocos2d/library/ccui/TabHeader.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.TabHeader ---the header button in TabControl @@ -12,9 +13,47 @@ local TabHeader = {} ---Create and return a empty TabHeader instance pointer. ---@return ccui.TabHeader +--- +---factory method to create a TabHeader instance. +---This method uses less resource to create a TabHeader. +---\param titleStr The text on the TabHeader +---\param backGround The background image name in `std::string`. +---\param cross The cross image name in `std::string`. +---\param texType The texture's resource type in `Widget::TextureResType`. +---\return A TabHeader instance pointer ---@overload fun(titleStr: string, backGround: string, cross: string, texType: ccui.Widget.TextureResType): ccui.TabHeader +--- +---factory method to create a TabHeader instance. +---This method uses less resource to create a TabHeader. +---\param titleStr The text on the TabHeader +---\param backGround The background image name in `std::string`. +---\param cross The cross image name in `std::string`. +---\param texType The texture's resource type in `Widget::TextureResType`. +---\return A TabHeader instance pointer ---@overload fun(titleStr: string, backGround: string, cross: string): ccui.TabHeader +--- +---Create a TabHeader with various images. +---\param titleStr The text on the TabHeader +---\param backGround backGround texture. +---\param backGroundSelected backGround selected state texture. +---\param cross cross texture. +---\param backGroundDisabled backGround disabled state texture. +---\param frontCrossDisabled cross dark state texture. +---\param texType @see `Widget::TextureResType` +--- +---\return A TabHeader instance pointer. ---@overload fun(titleStr: string, backGround: string, backGroundSelected: string, cross: string, backGroundDisabled: string, frontCrossDisabled: string, texType: ccui.Widget.TextureResType): ccui.TabHeader +--- +---Create a TabHeader with various images. +---\param titleStr The text on the TabHeader +---\param backGround backGround texture. +---\param backGroundSelected backGround selected state texture. +---\param cross cross texture. +---\param backGroundDisabled backGround disabled state texture. +---\param frontCrossDisabled cross dark state texture. +---\param texType @see `Widget::TextureResType` +--- +---\return A TabHeader instance pointer. ---@overload fun(titleStr: string, backGround: string, backGroundSelected: string, cross: string, backGroundDisabled: string, frontCrossDisabled: string): ccui.TabHeader function TabHeader.create() end diff --git a/addons/cclua/cocos2d/library/ccui/TabHeader/EventType.lua b/addons/cclua/cocos2d/library/ccui/TabHeader/EventType.lua index cec471aa..738853eb 100644 --- a/addons/cclua/cocos2d/library/ccui/TabHeader/EventType.lua +++ b/addons/cclua/cocos2d/library/ccui/TabHeader/EventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.TabHeader.EventType ---@type ccui.TabHeader.EventType diff --git a/addons/cclua/cocos2d/library/ccui/Text.lua b/addons/cclua/cocos2d/library/ccui/Text.lua index bfa82418..d07eced5 100644 --- a/addons/cclua/cocos2d/library/ccui/Text.lua +++ b/addons/cclua/cocos2d/library/ccui/Text.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Text ---For creating a system font or a TTF font Text @@ -31,6 +32,21 @@ function Text:as(cls) end --- ---\return An autoreleased Text object. ---@return ccui.Text +--- +---Create a Text object with textContent, fontName and fontSize. +---The fontName could be a system font name or a TTF file path. +---Usage: +---\code +---create a system font UIText. +---Text *text = Text::create("Hello", "Arial", 20); +---create a TTF font UIText. +---Text *text = Text::create("Hello", "xxx\xxx.ttf", 20); +---\endcode +--- +---\param textContent Text content string. +---\param fontName A given font name. +---\param fontSize A given font size. +---\return An autoreleased Text object. ---@overload fun(textContent: string, fontName: string, fontSize: number): ccui.Text function Text.create() end @@ -38,6 +54,11 @@ function Text.create() end function Text.createInstance() end ---Disable all text effects, including shadow, outline and glow. +--- +---Disable specific text effect. +---Use LabelEffect parameter to specify which effect should be disabled. +--- +---\see `LabelEffect` ---@overload fun(self: ccui.Text, effect: cc.LabelEffect) function Text:disableEffect() end @@ -54,6 +75,12 @@ function Text:enableGlow(glowColor) end ---\param outlineSize The size of outline. ---@param outlineColor any ---@param outlineSize integer +--- +---Enable outline for the label. +---It only works on IOS and Android when you use System fonts. +--- +---\param outlineColor The color of outline. +---\param outlineSize The size of outline. ---@overload fun(self: ccui.Text, outlineColor: any) function Text:enableOutline(outlineColor, outlineSize) end @@ -67,8 +94,32 @@ function Text:enableOutline(outlineColor, outlineSize) end ---@param shadowColor any ---@param offset cc.Size ---@param blurRadius integer +--- +---Enable shadow for the label. +--- +---\todo support blur for shadow effect +--- +---\param shadowColor The color of shadow effect. +---\param offset The offset of shadow effect. +---\param blurRadius The blur radius of shadow effect. ---@overload fun(self: ccui.Text) +--- +---Enable shadow for the label. +--- +---\todo support blur for shadow effect +--- +---\param shadowColor The color of shadow effect. +---\param offset The offset of shadow effect. +---\param blurRadius The blur radius of shadow effect. ---@overload fun(self: ccui.Text, shadowColor: any) +--- +---Enable shadow for the label. +--- +---\todo support blur for shadow effect +--- +---\param shadowColor The color of shadow effect. +---\param offset The offset of shadow effect. +---\param blurRadius The blur radius of shadow effect. ---@overload fun(self: ccui.Text, shadowColor: any, offset: cc.Size) function Text:enableShadow(shadowColor, offset, blurRadius) end diff --git a/addons/cclua/cocos2d/library/ccui/Text/Type.lua b/addons/cclua/cocos2d/library/ccui/Text/Type.lua index 60c429d4..6c507e6f 100644 --- a/addons/cclua/cocos2d/library/ccui/Text/Type.lua +++ b/addons/cclua/cocos2d/library/ccui/Text/Type.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Text.Type ---@type ccui.Text.Type diff --git a/addons/cclua/cocos2d/library/ccui/TextAtlas.lua b/addons/cclua/cocos2d/library/ccui/TextAtlas.lua index e6fc6bda..de84a6f5 100644 --- a/addons/cclua/cocos2d/library/ccui/TextAtlas.lua +++ b/addons/cclua/cocos2d/library/ccui/TextAtlas.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.TextAtlas ---\brief UI TextAtlas widget. @@ -14,6 +15,15 @@ function TextAtlas:adaptRenderers() end --- ---\return An autoreleased TextAtlas object. ---@return ccui.TextAtlas +--- +---Create a LabelAtlas from a char map file. +--- +---\param stringValue A given string needs to be displayed. +---\param charMapFile A given char map file name. +---\param itemWidth The element width. +---\param itemHeight The element height. +---\param startCharMap The starting char of the atlas. +---\return An autoreleased TextAtlas object. ---@overload fun(stringValue: string, charMapFile: string, itemWidth: integer, itemHeight: integer, startCharMap: string): ccui.TextAtlas function TextAtlas.create() end diff --git a/addons/cclua/cocos2d/library/ccui/TextBMFont.lua b/addons/cclua/cocos2d/library/ccui/TextBMFont.lua index a3acfe06..9ff69089 100644 --- a/addons/cclua/cocos2d/library/ccui/TextBMFont.lua +++ b/addons/cclua/cocos2d/library/ccui/TextBMFont.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.TextBMFont ---A widget for displaying BMFont label. diff --git a/addons/cclua/cocos2d/library/ccui/TextField.lua b/addons/cclua/cocos2d/library/ccui/TextField.lua index 3d5886ec..4c8c5fa2 100644 --- a/addons/cclua/cocos2d/library/ccui/TextField.lua +++ b/addons/cclua/cocos2d/library/ccui/TextField.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.TextField ---\brief A widget which allows users to input text. @@ -6,7 +7,6 @@ ---\js NA ---\lua NA ---@class ccui.TextField : ccui.Widget ----@field attachWithIME boolean \brief Query whether the IME is attached or not.

\return True if IME is attached, false otherwise. ---@field autoRenderSize cc.Size \brief Get the renderer size in auto mode.

\return A delimitation zone. ---@field deleteBackward boolean \brief Whether it is ready to delete backward in TextField.

\return True is the delete backward is enabled, false otherwise. ---@field detachWithIME boolean \brief Query whether IME is detached or not.

\return True if IME is detached, false otherwise. @@ -39,6 +39,13 @@ function TextField:attachWithIME() end --- ---\return A TextField instance. ---@return ccui.TextField +--- +---\brief Create a TextField with a placeholder, a font name and a font size. +--- +---\param placeholder The placeholder string. +---\param fontName The font name. +---\param fontSize The font size. +---\return A TextField instance. ---@overload fun(placeholder: string, fontName: string, fontSize: integer): ccui.TextField function TextField.create() end @@ -256,6 +263,10 @@ function TextField:setPlaceHolder(value) end --- ---\param color A color value in `Color3B`. ---@param color any +--- +---\brief Change the placeholder color. +--- +---\param color A color value in `Color4B`. ---@overload fun(self: ccui.TextField, color: any) function TextField:setPlaceHolderColor(color) end diff --git a/addons/cclua/cocos2d/library/ccui/TextField/EventType.lua b/addons/cclua/cocos2d/library/ccui/TextField/EventType.lua index 256a73fd..c378d708 100644 --- a/addons/cclua/cocos2d/library/ccui/TextField/EventType.lua +++ b/addons/cclua/cocos2d/library/ccui/TextField/EventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.TextField.EventType ---@type ccui.TextField.EventType diff --git a/addons/cclua/cocos2d/library/ccui/TextField/ccTextFieldCallback.lua b/addons/cclua/cocos2d/library/ccui/TextField/ccTextFieldCallback.lua index 3fe8c963..1e1e5b68 100644 --- a/addons/cclua/cocos2d/library/ccui/TextField/ccTextFieldCallback.lua +++ b/addons/cclua/cocos2d/library/ccui/TextField/ccTextFieldCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.TextField.ccTextFieldCallback --- diff --git a/addons/cclua/cocos2d/library/ccui/UICCTextField.lua b/addons/cclua/cocos2d/library/ccui/UICCTextField.lua index 7611557e..2f6cf2d1 100644 --- a/addons/cclua/cocos2d/library/ccui/UICCTextField.lua +++ b/addons/cclua/cocos2d/library/ccui/UICCTextField.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.UICCTextField ---\brief A helper class which inherit from @see `TextFieldTTF` and implements the @see `TextFieldDelegate` protocol. @@ -8,7 +9,6 @@ ---@field attachWithIME boolean \brief Query whether the IME is attached or not.

\return True if IME is attached, false otherwise. ---@field deleteBackward boolean \brief Query whether delete backward is enabled or not.

\return True if delete backward is enabled, false otherwise. ---@field detachWithIME boolean \brief Query whether IME is detached or not.

\return True if IME is detached, false otherwise. ----@field insertText boolean \brief Query whether insert text is enabled or not.

\return True if insert text is enabled, false otherwise. ---@field maxLength integer Get maximize length. \return Maximize length. ---@field maxLengthEnabled boolean Query max length enable state. \return Whether max length is enabled or not. ---@field passwordEnabled boolean \brief Query whether password input mode is enabled or not.

\return True if password input is enabled, false otherwise. @@ -25,6 +25,12 @@ function UICCTextField:closeIME() end --- ---\return A UICCTextField instance. ---@return ccui.UICCTextField +--- +---Create a UICCTextField instance with a placeholder, a fontName and a fontSize. +---\param placeholder Placeholder in string. +---\param fontName Font name in string. +---\param fontSize Font size in float. +---\return A UICCTextField instance. ---@overload fun(placeholder: string, fontName: string, fontSize: number): ccui.UICCTextField function UICCTextField.create() end @@ -101,7 +107,7 @@ function UICCTextField:onTextFieldInsertText(pSender, text, nLen) end ---@param sender cc.TextFieldTTF ---@param renderer cc.Renderer ---@param transform cc.Mat4 ----@param flags any +---@param flags integer ---@return boolean function UICCTextField:onVisit(sender, renderer, transform, flags) end diff --git a/addons/cclua/cocos2d/library/ccui/VBox.lua b/addons/cclua/cocos2d/library/ccui/VBox.lua index 7f010ec2..022a86b7 100644 --- a/addons/cclua/cocos2d/library/ccui/VBox.lua +++ b/addons/cclua/cocos2d/library/ccui/VBox.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.VBox ---VBox is just a convenient wrapper class for vertical layout type. @@ -8,6 +9,10 @@ local VBox = {} ---Create a empty VBox instance. ---\return A VBox instance pointer. ---@return ccui.VBox +--- +---Create a VBox with a certain size. +---\param size The content size of the layout. +---\return A VBox instance pointer. ---@overload fun(size: cc.Size): ccui.VBox function VBox.create() end diff --git a/addons/cclua/cocos2d/library/ccui/VideoPlayer.lua b/addons/cclua/cocos2d/library/ccui/VideoPlayer.lua index 31c5c542..13f51371 100644 --- a/addons/cclua/cocos2d/library/ccui/VideoPlayer.lua +++ b/addons/cclua/cocos2d/library/ccui/VideoPlayer.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.VideoPlayer ---\class VideoPlayer diff --git a/addons/cclua/cocos2d/library/ccui/VideoPlayer/EventType.lua b/addons/cclua/cocos2d/library/ccui/VideoPlayer/EventType.lua index e35bf1aa..885fba72 100644 --- a/addons/cclua/cocos2d/library/ccui/VideoPlayer/EventType.lua +++ b/addons/cclua/cocos2d/library/ccui/VideoPlayer/EventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.VideoPlayer.EventType ---@type ccui.VideoPlayer.EventType diff --git a/addons/cclua/cocos2d/library/ccui/VideoPlayer/StyleType.lua b/addons/cclua/cocos2d/library/ccui/VideoPlayer/StyleType.lua index 5ae36c2b..f8f04d26 100644 --- a/addons/cclua/cocos2d/library/ccui/VideoPlayer/StyleType.lua +++ b/addons/cclua/cocos2d/library/ccui/VideoPlayer/StyleType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.VideoPlayer.StyleType ---@type ccui.VideoPlayer.StyleType diff --git a/addons/cclua/cocos2d/library/ccui/VideoPlayer/ccVideoPlayerCallback.lua b/addons/cclua/cocos2d/library/ccui/VideoPlayer/ccVideoPlayerCallback.lua index 84ed8282..3605d6c9 100644 --- a/addons/cclua/cocos2d/library/ccui/VideoPlayer/ccVideoPlayerCallback.lua +++ b/addons/cclua/cocos2d/library/ccui/VideoPlayer/ccVideoPlayerCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.VideoPlayer.ccVideoPlayerCallback --- diff --git a/addons/cclua/cocos2d/library/ccui/WebView.lua b/addons/cclua/cocos2d/library/ccui/WebView.lua index 28b84229..0653168e 100644 --- a/addons/cclua/cocos2d/library/ccui/WebView.lua +++ b/addons/cclua/cocos2d/library/ccui/WebView.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.WebView ---\brief A View that displays web pages. @@ -83,6 +84,11 @@ function WebView:loadFile(fileName) end ---\param baseURL The base URL for the content. ---@param string string ---@param baseURL string +--- +---Sets the main page content and base URL. +--- +---\param string The content for the main page. +---\param baseURL The base URL for the content. ---@overload fun(self: ccui.WebView, string: string) function WebView:loadHTMLString(string, baseURL) end @@ -90,6 +96,10 @@ function WebView:loadHTMLString(string, baseURL) end --- ---\param url Content URL. ---@param url string +--- +---Loads the given URL with cleaning cached data or not. +---\param url Content URL. +---\cleanCachedData Whether to clean cached data. ---@overload fun(self: ccui.WebView, url: string, cleanCachedData: boolean) function WebView:loadURL(url) end diff --git a/addons/cclua/cocos2d/library/ccui/WebView/ccWebViewCallback.lua b/addons/cclua/cocos2d/library/ccui/WebView/ccWebViewCallback.lua index 47f1e346..0b9d24c8 100644 --- a/addons/cclua/cocos2d/library/ccui/WebView/ccWebViewCallback.lua +++ b/addons/cclua/cocos2d/library/ccui/WebView/ccWebViewCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.WebView.ccWebViewCallback --- diff --git a/addons/cclua/cocos2d/library/ccui/Widget.lua b/addons/cclua/cocos2d/library/ccui/Widget.lua index 3fff4342..4e962e88 100644 --- a/addons/cclua/cocos2d/library/ccui/Widget.lua +++ b/addons/cclua/cocos2d/library/ccui/Widget.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Widget ---\brief Base class for all ui widgets. @@ -17,7 +18,6 @@ ---@field focusEnabled boolean Query widget's focus enable state. \return true represent the widget could accept focus, false represent the widget couldn't accept focus ---@field focused boolean Query whether widget is focused or not. \return whether the widget is focused or not ---@field highlighted boolean Determines if the widget is highlighted

\return true if the widget is highlighted, false if the widget is not highlighted. ----@field ignoreContentAdaptWithSize boolean Query whether the widget ignores user defined content size or not

\return True means ignore user defined content size, false otherwise. ---@field layoutComponentEnabled boolean Query whether layout component is enabled or not. \return true represent the widget use Layout Component, false represent the widget couldn't use Layout Component. ---@field layoutParameter ccui.LayoutParameter Gets LayoutParameter of widget.

\see LayoutParameter \return LayoutParameter ---@field layoutSize cc.Size Get the content size of widget. \warning This API exists mainly for keeping back compatibility. \return @@ -516,6 +516,8 @@ function Widget:setUnifySizeEnabled(enable) end ---Update all children's contents size and position recursively. ---\see `updateSizeAndPosition(const Size&)` +--- +---Update all children's contents size and position recursively. ---@overload fun(self: ccui.Widget, parentSize: cc.Size) function Widget:updateSizeAndPosition() end diff --git a/addons/cclua/cocos2d/library/ccui/Widget/BrightStyle.lua b/addons/cclua/cocos2d/library/ccui/Widget/BrightStyle.lua index 2242ddb9..052c79a9 100644 --- a/addons/cclua/cocos2d/library/ccui/Widget/BrightStyle.lua +++ b/addons/cclua/cocos2d/library/ccui/Widget/BrightStyle.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Widget.BrightStyle ---@type ccui.Widget.BrightStyle diff --git a/addons/cclua/cocos2d/library/ccui/Widget/FocusDirection.lua b/addons/cclua/cocos2d/library/ccui/Widget/FocusDirection.lua index 669fd87d..adcaf833 100644 --- a/addons/cclua/cocos2d/library/ccui/Widget/FocusDirection.lua +++ b/addons/cclua/cocos2d/library/ccui/Widget/FocusDirection.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Widget.FocusDirection ---@type ccui.Widget.FocusDirection diff --git a/addons/cclua/cocos2d/library/ccui/Widget/PositionType.lua b/addons/cclua/cocos2d/library/ccui/Widget/PositionType.lua index 50d9cffb..c5bca9f1 100644 --- a/addons/cclua/cocos2d/library/ccui/Widget/PositionType.lua +++ b/addons/cclua/cocos2d/library/ccui/Widget/PositionType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Widget.PositionType ---@type ccui.Widget.PositionType diff --git a/addons/cclua/cocos2d/library/ccui/Widget/SizeType.lua b/addons/cclua/cocos2d/library/ccui/Widget/SizeType.lua index 2fb9b722..c59d4b5c 100644 --- a/addons/cclua/cocos2d/library/ccui/Widget/SizeType.lua +++ b/addons/cclua/cocos2d/library/ccui/Widget/SizeType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Widget.SizeType ---@type ccui.Widget.SizeType diff --git a/addons/cclua/cocos2d/library/ccui/Widget/TextureResType.lua b/addons/cclua/cocos2d/library/ccui/Widget/TextureResType.lua index 41ecd54e..c8683e15 100644 --- a/addons/cclua/cocos2d/library/ccui/Widget/TextureResType.lua +++ b/addons/cclua/cocos2d/library/ccui/Widget/TextureResType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Widget.TextureResType ---@type ccui.Widget.TextureResType diff --git a/addons/cclua/cocos2d/library/ccui/Widget/TouchEventType.lua b/addons/cclua/cocos2d/library/ccui/Widget/TouchEventType.lua index f0de4127..63370ba8 100644 --- a/addons/cclua/cocos2d/library/ccui/Widget/TouchEventType.lua +++ b/addons/cclua/cocos2d/library/ccui/Widget/TouchEventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Widget.TouchEventType ---@type ccui.Widget.TouchEventType diff --git a/addons/cclua/cocos2d/library/ccui/Widget/ccWidgetClickCallback.lua b/addons/cclua/cocos2d/library/ccui/Widget/ccWidgetClickCallback.lua index 750cdbc9..d6eefe58 100644 --- a/addons/cclua/cocos2d/library/ccui/Widget/ccWidgetClickCallback.lua +++ b/addons/cclua/cocos2d/library/ccui/Widget/ccWidgetClickCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Widget.ccWidgetClickCallback --- diff --git a/addons/cclua/cocos2d/library/ccui/Widget/ccWidgetEventCallback.lua b/addons/cclua/cocos2d/library/ccui/Widget/ccWidgetEventCallback.lua index 814c79fc..f5717bcc 100644 --- a/addons/cclua/cocos2d/library/ccui/Widget/ccWidgetEventCallback.lua +++ b/addons/cclua/cocos2d/library/ccui/Widget/ccWidgetEventCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Widget.ccWidgetEventCallback --- diff --git a/addons/cclua/cocos2d/library/ccui/Widget/ccWidgetTouchCallback.lua b/addons/cclua/cocos2d/library/ccui/Widget/ccWidgetTouchCallback.lua index ed6eceb2..17ec76a5 100644 --- a/addons/cclua/cocos2d/library/ccui/Widget/ccWidgetTouchCallback.lua +++ b/addons/cclua/cocos2d/library/ccui/Widget/ccWidgetTouchCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta ccui.Widget.ccWidgetTouchCallback --- diff --git a/addons/cclua/fairygui/library/fgui/AutoSizeType.lua b/addons/cclua/fairygui/library/fgui/AutoSizeType.lua index 2b92703c..2dfcf60e 100644 --- a/addons/cclua/fairygui/library/fgui/AutoSizeType.lua +++ b/addons/cclua/fairygui/library/fgui/AutoSizeType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.AutoSizeType ---@type fgui.AutoSizeType diff --git a/addons/cclua/fairygui/library/fgui/ButtonMode.lua b/addons/cclua/fairygui/library/fgui/ButtonMode.lua index ef05cec0..dc0c7c30 100644 --- a/addons/cclua/fairygui/library/fgui/ButtonMode.lua +++ b/addons/cclua/fairygui/library/fgui/ButtonMode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.ButtonMode ---@type fgui.ButtonMode diff --git a/addons/cclua/fairygui/library/fgui/ChildrenRenderOrder.lua b/addons/cclua/fairygui/library/fgui/ChildrenRenderOrder.lua index 7133c108..c2861b46 100644 --- a/addons/cclua/fairygui/library/fgui/ChildrenRenderOrder.lua +++ b/addons/cclua/fairygui/library/fgui/ChildrenRenderOrder.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.ChildrenRenderOrder ---@type fgui.ChildrenRenderOrder diff --git a/addons/cclua/fairygui/library/fgui/DragDropManager.lua b/addons/cclua/fairygui/library/fgui/DragDropManager.lua index b0674ab3..c938aa81 100644 --- a/addons/cclua/fairygui/library/fgui/DragDropManager.lua +++ b/addons/cclua/fairygui/library/fgui/DragDropManager.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.DragDropManager --- diff --git a/addons/cclua/fairygui/library/fgui/EaseManager.lua b/addons/cclua/fairygui/library/fgui/EaseManager.lua index 28a73028..d628d5b9 100644 --- a/addons/cclua/fairygui/library/fgui/EaseManager.lua +++ b/addons/cclua/fairygui/library/fgui/EaseManager.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.EaseManager --- diff --git a/addons/cclua/fairygui/library/fgui/EaseType.lua b/addons/cclua/fairygui/library/fgui/EaseType.lua index bdb5f7c4..925c815a 100644 --- a/addons/cclua/fairygui/library/fgui/EaseType.lua +++ b/addons/cclua/fairygui/library/fgui/EaseType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.EaseType ---@type fgui.EaseType diff --git a/addons/cclua/fairygui/library/fgui/EventCallback.lua b/addons/cclua/fairygui/library/fgui/EventCallback.lua index b6cc2aa6..d2823e9f 100644 --- a/addons/cclua/fairygui/library/fgui/EventCallback.lua +++ b/addons/cclua/fairygui/library/fgui/EventCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.EventCallback --- diff --git a/addons/cclua/fairygui/library/fgui/EventContext.lua b/addons/cclua/fairygui/library/fgui/EventContext.lua index fde73f68..09efefd0 100644 --- a/addons/cclua/fairygui/library/fgui/EventContext.lua +++ b/addons/cclua/fairygui/library/fgui/EventContext.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.EventContext --- diff --git a/addons/cclua/fairygui/library/fgui/FUIContainer.lua b/addons/cclua/fairygui/library/fgui/FUIContainer.lua index ae7c389a..10ca8029 100644 --- a/addons/cclua/fairygui/library/fgui/FUIContainer.lua +++ b/addons/cclua/fairygui/library/fgui/FUIContainer.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.FUIContainer --- diff --git a/addons/cclua/fairygui/library/fgui/FUIInput.lua b/addons/cclua/fairygui/library/fgui/FUIInput.lua index cce7fa74..e20837ac 100644 --- a/addons/cclua/fairygui/library/fgui/FUIInput.lua +++ b/addons/cclua/fairygui/library/fgui/FUIInput.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.FUIInput --- diff --git a/addons/cclua/fairygui/library/fgui/FUILabel.lua b/addons/cclua/fairygui/library/fgui/FUILabel.lua index f2406c47..95ab3d08 100644 --- a/addons/cclua/fairygui/library/fgui/FUILabel.lua +++ b/addons/cclua/fairygui/library/fgui/FUILabel.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.FUILabel --- diff --git a/addons/cclua/fairygui/library/fgui/FUIRichText.lua b/addons/cclua/fairygui/library/fgui/FUIRichText.lua index d4ba7fe3..51dd8b01 100644 --- a/addons/cclua/fairygui/library/fgui/FUIRichText.lua +++ b/addons/cclua/fairygui/library/fgui/FUIRichText.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.FUIRichText --- diff --git a/addons/cclua/fairygui/library/fgui/FUISprite.lua b/addons/cclua/fairygui/library/fgui/FUISprite.lua index a0cf37eb..25fc8e43 100644 --- a/addons/cclua/fairygui/library/fgui/FUISprite.lua +++ b/addons/cclua/fairygui/library/fgui/FUISprite.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.FUISprite --- diff --git a/addons/cclua/fairygui/library/fgui/FillMethod.lua b/addons/cclua/fairygui/library/fgui/FillMethod.lua index 9fc3d21a..2c97d378 100644 --- a/addons/cclua/fairygui/library/fgui/FillMethod.lua +++ b/addons/cclua/fairygui/library/fgui/FillMethod.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.FillMethod ---@type fgui.FillMethod diff --git a/addons/cclua/fairygui/library/fgui/FillOrigin.lua b/addons/cclua/fairygui/library/fgui/FillOrigin.lua index cb820f6c..9023361a 100644 --- a/addons/cclua/fairygui/library/fgui/FillOrigin.lua +++ b/addons/cclua/fairygui/library/fgui/FillOrigin.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.FillOrigin ---@type fgui.FillOrigin diff --git a/addons/cclua/fairygui/library/fgui/FlipType.lua b/addons/cclua/fairygui/library/fgui/FlipType.lua index fba466bd..f42cbc25 100644 --- a/addons/cclua/fairygui/library/fgui/FlipType.lua +++ b/addons/cclua/fairygui/library/fgui/FlipType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.FlipType ---@type fgui.FlipType diff --git a/addons/cclua/fairygui/library/fgui/GBasicTextField.lua b/addons/cclua/fairygui/library/fgui/GBasicTextField.lua index 628e80bc..79f449af 100644 --- a/addons/cclua/fairygui/library/fgui/GBasicTextField.lua +++ b/addons/cclua/fairygui/library/fgui/GBasicTextField.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GBasicTextField --- diff --git a/addons/cclua/fairygui/library/fgui/GButton.lua b/addons/cclua/fairygui/library/fgui/GButton.lua index d727c4d7..61959181 100644 --- a/addons/cclua/fairygui/library/fgui/GButton.lua +++ b/addons/cclua/fairygui/library/fgui/GButton.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GButton --- diff --git a/addons/cclua/fairygui/library/fgui/GComboBox.lua b/addons/cclua/fairygui/library/fgui/GComboBox.lua index 16a55d00..9074004d 100644 --- a/addons/cclua/fairygui/library/fgui/GComboBox.lua +++ b/addons/cclua/fairygui/library/fgui/GComboBox.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GComboBox --- diff --git a/addons/cclua/fairygui/library/fgui/GComponent.lua b/addons/cclua/fairygui/library/fgui/GComponent.lua index 33d73526..d1e56c90 100644 --- a/addons/cclua/fairygui/library/fgui/GComponent.lua +++ b/addons/cclua/fairygui/library/fgui/GComponent.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GComponent --- diff --git a/addons/cclua/fairygui/library/fgui/GController.lua b/addons/cclua/fairygui/library/fgui/GController.lua index 93e12ced..a026f202 100644 --- a/addons/cclua/fairygui/library/fgui/GController.lua +++ b/addons/cclua/fairygui/library/fgui/GController.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GController --- diff --git a/addons/cclua/fairygui/library/fgui/GGraph.lua b/addons/cclua/fairygui/library/fgui/GGraph.lua index 3ffda5cd..54041e00 100644 --- a/addons/cclua/fairygui/library/fgui/GGraph.lua +++ b/addons/cclua/fairygui/library/fgui/GGraph.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GGraph --- diff --git a/addons/cclua/fairygui/library/fgui/GGroup.lua b/addons/cclua/fairygui/library/fgui/GGroup.lua index 7e0289ea..9f23ef33 100644 --- a/addons/cclua/fairygui/library/fgui/GGroup.lua +++ b/addons/cclua/fairygui/library/fgui/GGroup.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GGroup --- diff --git a/addons/cclua/fairygui/library/fgui/GImage.lua b/addons/cclua/fairygui/library/fgui/GImage.lua index 96913ce8..47490798 100644 --- a/addons/cclua/fairygui/library/fgui/GImage.lua +++ b/addons/cclua/fairygui/library/fgui/GImage.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GImage --- diff --git a/addons/cclua/fairygui/library/fgui/GLabel.lua b/addons/cclua/fairygui/library/fgui/GLabel.lua index 581370c4..e5b1c561 100644 --- a/addons/cclua/fairygui/library/fgui/GLabel.lua +++ b/addons/cclua/fairygui/library/fgui/GLabel.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GLabel --- diff --git a/addons/cclua/fairygui/library/fgui/GList.lua b/addons/cclua/fairygui/library/fgui/GList.lua index 7ce60d49..7588179f 100644 --- a/addons/cclua/fairygui/library/fgui/GList.lua +++ b/addons/cclua/fairygui/library/fgui/GList.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GList --- diff --git a/addons/cclua/fairygui/library/fgui/GList/ListItemProvider.lua b/addons/cclua/fairygui/library/fgui/GList/ListItemProvider.lua index 63300c2a..2baa5fa9 100644 --- a/addons/cclua/fairygui/library/fgui/GList/ListItemProvider.lua +++ b/addons/cclua/fairygui/library/fgui/GList/ListItemProvider.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GList.ListItemProvider --- diff --git a/addons/cclua/fairygui/library/fgui/GList/ListItemRenderer.lua b/addons/cclua/fairygui/library/fgui/GList/ListItemRenderer.lua index 3c919c7c..b23c72a7 100644 --- a/addons/cclua/fairygui/library/fgui/GList/ListItemRenderer.lua +++ b/addons/cclua/fairygui/library/fgui/GList/ListItemRenderer.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GList.ListItemRenderer --- diff --git a/addons/cclua/fairygui/library/fgui/GLoader.lua b/addons/cclua/fairygui/library/fgui/GLoader.lua index aee0ab04..86f44735 100644 --- a/addons/cclua/fairygui/library/fgui/GLoader.lua +++ b/addons/cclua/fairygui/library/fgui/GLoader.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GLoader --- diff --git a/addons/cclua/fairygui/library/fgui/GLoader3D.lua b/addons/cclua/fairygui/library/fgui/GLoader3D.lua index b7fa291a..5c82cde2 100644 --- a/addons/cclua/fairygui/library/fgui/GLoader3D.lua +++ b/addons/cclua/fairygui/library/fgui/GLoader3D.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GLoader3D --- diff --git a/addons/cclua/fairygui/library/fgui/GMovieClip.lua b/addons/cclua/fairygui/library/fgui/GMovieClip.lua index b78a9e04..0ef5b201 100644 --- a/addons/cclua/fairygui/library/fgui/GMovieClip.lua +++ b/addons/cclua/fairygui/library/fgui/GMovieClip.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GMovieClip --- diff --git a/addons/cclua/fairygui/library/fgui/GObject.lua b/addons/cclua/fairygui/library/fgui/GObject.lua index 902aee5f..d2c6ff5c 100644 --- a/addons/cclua/fairygui/library/fgui/GObject.lua +++ b/addons/cclua/fairygui/library/fgui/GObject.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GObject --- @@ -49,7 +50,7 @@ local GObject = {} ---@overload fun(self: fgui.GObject, callback: fgui.EventCallback, tag: any) function GObject:addClickListener(callback) end ----@return any +---@return integer function GObject:addDisplayLock() end ---@param target fgui.GObject @@ -213,7 +214,7 @@ function GObject.new() end ---@return boolean function GObject:onStage() end ----@param token any +---@param token integer function GObject:releaseDisplayLock(token) end ---@param tag any diff --git a/addons/cclua/fairygui/library/fgui/GPath.lua b/addons/cclua/fairygui/library/fgui/GPath.lua index 6371fdb8..d61cc16f 100644 --- a/addons/cclua/fairygui/library/fgui/GPath.lua +++ b/addons/cclua/fairygui/library/fgui/GPath.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GPath --- diff --git a/addons/cclua/fairygui/library/fgui/GProgressBar.lua b/addons/cclua/fairygui/library/fgui/GProgressBar.lua index fc58d088..1b6059df 100644 --- a/addons/cclua/fairygui/library/fgui/GProgressBar.lua +++ b/addons/cclua/fairygui/library/fgui/GProgressBar.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GProgressBar --- diff --git a/addons/cclua/fairygui/library/fgui/GRichTextField.lua b/addons/cclua/fairygui/library/fgui/GRichTextField.lua index b37f7b6e..dd75100a 100644 --- a/addons/cclua/fairygui/library/fgui/GRichTextField.lua +++ b/addons/cclua/fairygui/library/fgui/GRichTextField.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GRichTextField --- diff --git a/addons/cclua/fairygui/library/fgui/GRoot.lua b/addons/cclua/fairygui/library/fgui/GRoot.lua index c66d33fd..0fd63c4a 100644 --- a/addons/cclua/fairygui/library/fgui/GRoot.lua +++ b/addons/cclua/fairygui/library/fgui/GRoot.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GRoot --- diff --git a/addons/cclua/fairygui/library/fgui/GScrollBar.lua b/addons/cclua/fairygui/library/fgui/GScrollBar.lua index 7797706c..0c287517 100644 --- a/addons/cclua/fairygui/library/fgui/GScrollBar.lua +++ b/addons/cclua/fairygui/library/fgui/GScrollBar.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GScrollBar --- diff --git a/addons/cclua/fairygui/library/fgui/GSlider.lua b/addons/cclua/fairygui/library/fgui/GSlider.lua index d54df7c5..99fd71e3 100644 --- a/addons/cclua/fairygui/library/fgui/GSlider.lua +++ b/addons/cclua/fairygui/library/fgui/GSlider.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GSlider --- diff --git a/addons/cclua/fairygui/library/fgui/GTextField.lua b/addons/cclua/fairygui/library/fgui/GTextField.lua index fca5a9e4..5d50936e 100644 --- a/addons/cclua/fairygui/library/fgui/GTextField.lua +++ b/addons/cclua/fairygui/library/fgui/GTextField.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GTextField --- diff --git a/addons/cclua/fairygui/library/fgui/GTextInput.lua b/addons/cclua/fairygui/library/fgui/GTextInput.lua index 2273ce03..1263b301 100644 --- a/addons/cclua/fairygui/library/fgui/GTextInput.lua +++ b/addons/cclua/fairygui/library/fgui/GTextInput.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GTextInput --- diff --git a/addons/cclua/fairygui/library/fgui/GTree.lua b/addons/cclua/fairygui/library/fgui/GTree.lua index fed5974b..59fc12d8 100644 --- a/addons/cclua/fairygui/library/fgui/GTree.lua +++ b/addons/cclua/fairygui/library/fgui/GTree.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GTree --- diff --git a/addons/cclua/fairygui/library/fgui/GTree/TreeNodeRenderFunction.lua b/addons/cclua/fairygui/library/fgui/GTree/TreeNodeRenderFunction.lua index efab1b58..de6b07d4 100644 --- a/addons/cclua/fairygui/library/fgui/GTree/TreeNodeRenderFunction.lua +++ b/addons/cclua/fairygui/library/fgui/GTree/TreeNodeRenderFunction.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GTree.TreeNodeRenderFunction --- diff --git a/addons/cclua/fairygui/library/fgui/GTree/TreeNodeWillExpandFunction.lua b/addons/cclua/fairygui/library/fgui/GTree/TreeNodeWillExpandFunction.lua index 9d3c96e8..048d0448 100644 --- a/addons/cclua/fairygui/library/fgui/GTree/TreeNodeWillExpandFunction.lua +++ b/addons/cclua/fairygui/library/fgui/GTree/TreeNodeWillExpandFunction.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GTree.TreeNodeWillExpandFunction --- diff --git a/addons/cclua/fairygui/library/fgui/GTreeNode.lua b/addons/cclua/fairygui/library/fgui/GTreeNode.lua index 69e05abf..6705816c 100644 --- a/addons/cclua/fairygui/library/fgui/GTreeNode.lua +++ b/addons/cclua/fairygui/library/fgui/GTreeNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GTreeNode --- diff --git a/addons/cclua/fairygui/library/fgui/GTween.lua b/addons/cclua/fairygui/library/fgui/GTween.lua index d82acced..24e4a79b 100644 --- a/addons/cclua/fairygui/library/fgui/GTween.lua +++ b/addons/cclua/fairygui/library/fgui/GTween.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GTween --- diff --git a/addons/cclua/fairygui/library/fgui/GTweener.lua b/addons/cclua/fairygui/library/fgui/GTweener.lua index cd1bc842..5e7cb4dd 100644 --- a/addons/cclua/fairygui/library/fgui/GTweener.lua +++ b/addons/cclua/fairygui/library/fgui/GTweener.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GTweener --- diff --git a/addons/cclua/fairygui/library/fgui/GTweener/GTweenCallback.lua b/addons/cclua/fairygui/library/fgui/GTweener/GTweenCallback.lua index 09658fbb..8dd5ed2b 100644 --- a/addons/cclua/fairygui/library/fgui/GTweener/GTweenCallback.lua +++ b/addons/cclua/fairygui/library/fgui/GTweener/GTweenCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GTweener.GTweenCallback --- diff --git a/addons/cclua/fairygui/library/fgui/GTweener/GTweenCallback0.lua b/addons/cclua/fairygui/library/fgui/GTweener/GTweenCallback0.lua index 383a8014..920f0101 100644 --- a/addons/cclua/fairygui/library/fgui/GTweener/GTweenCallback0.lua +++ b/addons/cclua/fairygui/library/fgui/GTweener/GTweenCallback0.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GTweener.GTweenCallback0 --- diff --git a/addons/cclua/fairygui/library/fgui/GearBase.lua b/addons/cclua/fairygui/library/fgui/GearBase.lua index 89a37cdf..dc32f7c9 100644 --- a/addons/cclua/fairygui/library/fgui/GearBase.lua +++ b/addons/cclua/fairygui/library/fgui/GearBase.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GearBase --- diff --git a/addons/cclua/fairygui/library/fgui/GroupLayoutType.lua b/addons/cclua/fairygui/library/fgui/GroupLayoutType.lua index 4275ee15..c8f1001b 100644 --- a/addons/cclua/fairygui/library/fgui/GroupLayoutType.lua +++ b/addons/cclua/fairygui/library/fgui/GroupLayoutType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.GroupLayoutType ---@type fgui.GroupLayoutType diff --git a/addons/cclua/fairygui/library/fgui/HtmlElement.lua b/addons/cclua/fairygui/library/fgui/HtmlElement.lua index bf61c322..430b6f0d 100644 --- a/addons/cclua/fairygui/library/fgui/HtmlElement.lua +++ b/addons/cclua/fairygui/library/fgui/HtmlElement.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.HtmlElement --- diff --git a/addons/cclua/fairygui/library/fgui/HtmlElement/Type.lua b/addons/cclua/fairygui/library/fgui/HtmlElement/Type.lua index 7218f7a7..26d4fd8b 100644 --- a/addons/cclua/fairygui/library/fgui/HtmlElement/Type.lua +++ b/addons/cclua/fairygui/library/fgui/HtmlElement/Type.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.HtmlElement.Type ---@type fgui.HtmlElement.Type diff --git a/addons/cclua/fairygui/library/fgui/HtmlObject.lua b/addons/cclua/fairygui/library/fgui/HtmlObject.lua index f5e41666..f47a42b6 100644 --- a/addons/cclua/fairygui/library/fgui/HtmlObject.lua +++ b/addons/cclua/fairygui/library/fgui/HtmlObject.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.HtmlObject --- diff --git a/addons/cclua/fairygui/library/fgui/HtmlParseOptions.lua b/addons/cclua/fairygui/library/fgui/HtmlParseOptions.lua index ceb54918..9d48d71b 100644 --- a/addons/cclua/fairygui/library/fgui/HtmlParseOptions.lua +++ b/addons/cclua/fairygui/library/fgui/HtmlParseOptions.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.HtmlParseOptions --- diff --git a/addons/cclua/fairygui/library/fgui/IHitTest.lua b/addons/cclua/fairygui/library/fgui/IHitTest.lua index 2fadf908..14d6b62c 100644 --- a/addons/cclua/fairygui/library/fgui/IHitTest.lua +++ b/addons/cclua/fairygui/library/fgui/IHitTest.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.IHitTest --- diff --git a/addons/cclua/fairygui/library/fgui/IUISource.lua b/addons/cclua/fairygui/library/fgui/IUISource.lua index 637d20a8..21285d90 100644 --- a/addons/cclua/fairygui/library/fgui/IUISource.lua +++ b/addons/cclua/fairygui/library/fgui/IUISource.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.IUISource --- diff --git a/addons/cclua/fairygui/library/fgui/InputEvent.lua b/addons/cclua/fairygui/library/fgui/InputEvent.lua index e2ffa8a8..7b482164 100644 --- a/addons/cclua/fairygui/library/fgui/InputEvent.lua +++ b/addons/cclua/fairygui/library/fgui/InputEvent.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.InputEvent --- diff --git a/addons/cclua/fairygui/library/fgui/InputProcessor.lua b/addons/cclua/fairygui/library/fgui/InputProcessor.lua index 554614bf..dde47431 100644 --- a/addons/cclua/fairygui/library/fgui/InputProcessor.lua +++ b/addons/cclua/fairygui/library/fgui/InputProcessor.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.InputProcessor --- diff --git a/addons/cclua/fairygui/library/fgui/InputProcessor/CaptureEventCallback.lua b/addons/cclua/fairygui/library/fgui/InputProcessor/CaptureEventCallback.lua index d7f490e6..dcf60720 100644 --- a/addons/cclua/fairygui/library/fgui/InputProcessor/CaptureEventCallback.lua +++ b/addons/cclua/fairygui/library/fgui/InputProcessor/CaptureEventCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.InputProcessor.CaptureEventCallback --- diff --git a/addons/cclua/fairygui/library/fgui/ListLayoutType.lua b/addons/cclua/fairygui/library/fgui/ListLayoutType.lua index 30fc9fbb..9de08d54 100644 --- a/addons/cclua/fairygui/library/fgui/ListLayoutType.lua +++ b/addons/cclua/fairygui/library/fgui/ListLayoutType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.ListLayoutType ---@type fgui.ListLayoutType diff --git a/addons/cclua/fairygui/library/fgui/ListSelectionMode.lua b/addons/cclua/fairygui/library/fgui/ListSelectionMode.lua index e669e55d..d0f050a8 100644 --- a/addons/cclua/fairygui/library/fgui/ListSelectionMode.lua +++ b/addons/cclua/fairygui/library/fgui/ListSelectionMode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.ListSelectionMode ---@type fgui.ListSelectionMode diff --git a/addons/cclua/fairygui/library/fgui/LoaderFillType.lua b/addons/cclua/fairygui/library/fgui/LoaderFillType.lua index d4047cba..f360c634 100644 --- a/addons/cclua/fairygui/library/fgui/LoaderFillType.lua +++ b/addons/cclua/fairygui/library/fgui/LoaderFillType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.LoaderFillType ---@type fgui.LoaderFillType diff --git a/addons/cclua/fairygui/library/fgui/Margin.lua b/addons/cclua/fairygui/library/fgui/Margin.lua index 38f336c5..8ff323fe 100644 --- a/addons/cclua/fairygui/library/fgui/Margin.lua +++ b/addons/cclua/fairygui/library/fgui/Margin.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.Margin --- @@ -24,6 +25,12 @@ function Margin:equals(target) end ---Default constructor. ---@return fgui.Margin +--- +---Construct a Margin instance with left, top, right and bottom margins. +---\param l Left margin in float. +---\param t Top margin in float. +---\param r Right margin in float. +---\param b Bottom margin in float. ---@overload fun(l: number, t: number, r: number, b: number): fgui.Margin function Margin.new() end diff --git a/addons/cclua/fairygui/library/fgui/ObjectPropID.lua b/addons/cclua/fairygui/library/fgui/ObjectPropID.lua index edea6c10..eb8e08cf 100644 --- a/addons/cclua/fairygui/library/fgui/ObjectPropID.lua +++ b/addons/cclua/fairygui/library/fgui/ObjectPropID.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.ObjectPropID ---@type fgui.ObjectPropID diff --git a/addons/cclua/fairygui/library/fgui/ObjectType.lua b/addons/cclua/fairygui/library/fgui/ObjectType.lua index 0dc8b173..fe3cb74b 100644 --- a/addons/cclua/fairygui/library/fgui/ObjectType.lua +++ b/addons/cclua/fairygui/library/fgui/ObjectType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.ObjectType ---@type fgui.ObjectType diff --git a/addons/cclua/fairygui/library/fgui/OverflowType.lua b/addons/cclua/fairygui/library/fgui/OverflowType.lua index 3a54a5ae..ba1212cc 100644 --- a/addons/cclua/fairygui/library/fgui/OverflowType.lua +++ b/addons/cclua/fairygui/library/fgui/OverflowType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.OverflowType ---@type fgui.OverflowType diff --git a/addons/cclua/fairygui/library/fgui/PackageItem.lua b/addons/cclua/fairygui/library/fgui/PackageItem.lua index 8d7b2b88..ad8eef4b 100644 --- a/addons/cclua/fairygui/library/fgui/PackageItem.lua +++ b/addons/cclua/fairygui/library/fgui/PackageItem.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.PackageItem --- diff --git a/addons/cclua/fairygui/library/fgui/PackageItemType.lua b/addons/cclua/fairygui/library/fgui/PackageItemType.lua index a963bafa..a47b3c73 100644 --- a/addons/cclua/fairygui/library/fgui/PackageItemType.lua +++ b/addons/cclua/fairygui/library/fgui/PackageItemType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.PackageItemType ---@type fgui.PackageItemType diff --git a/addons/cclua/fairygui/library/fgui/PixelHitTest.lua b/addons/cclua/fairygui/library/fgui/PixelHitTest.lua index 5402cc69..5e992948 100644 --- a/addons/cclua/fairygui/library/fgui/PixelHitTest.lua +++ b/addons/cclua/fairygui/library/fgui/PixelHitTest.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.PixelHitTest --- diff --git a/addons/cclua/fairygui/library/fgui/PixelHitTestData.lua b/addons/cclua/fairygui/library/fgui/PixelHitTestData.lua index 213978da..20fd7699 100644 --- a/addons/cclua/fairygui/library/fgui/PixelHitTestData.lua +++ b/addons/cclua/fairygui/library/fgui/PixelHitTestData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.PixelHitTestData --- diff --git a/addons/cclua/fairygui/library/fgui/PopupDirection.lua b/addons/cclua/fairygui/library/fgui/PopupDirection.lua index d6753d79..c854dbac 100644 --- a/addons/cclua/fairygui/library/fgui/PopupDirection.lua +++ b/addons/cclua/fairygui/library/fgui/PopupDirection.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.PopupDirection ---@type fgui.PopupDirection diff --git a/addons/cclua/fairygui/library/fgui/PopupMenu.lua b/addons/cclua/fairygui/library/fgui/PopupMenu.lua index 01d2b8bb..517098e4 100644 --- a/addons/cclua/fairygui/library/fgui/PopupMenu.lua +++ b/addons/cclua/fairygui/library/fgui/PopupMenu.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.PopupMenu --- diff --git a/addons/cclua/fairygui/library/fgui/ProgressTitleType.lua b/addons/cclua/fairygui/library/fgui/ProgressTitleType.lua index fbb902b5..64154a41 100644 --- a/addons/cclua/fairygui/library/fgui/ProgressTitleType.lua +++ b/addons/cclua/fairygui/library/fgui/ProgressTitleType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.ProgressTitleType ---@type fgui.ProgressTitleType diff --git a/addons/cclua/fairygui/library/fgui/RelationItem.lua b/addons/cclua/fairygui/library/fgui/RelationItem.lua index 0774fdd7..a5235179 100644 --- a/addons/cclua/fairygui/library/fgui/RelationItem.lua +++ b/addons/cclua/fairygui/library/fgui/RelationItem.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.RelationItem --- diff --git a/addons/cclua/fairygui/library/fgui/RelationType.lua b/addons/cclua/fairygui/library/fgui/RelationType.lua index 6157b224..e3baad14 100644 --- a/addons/cclua/fairygui/library/fgui/RelationType.lua +++ b/addons/cclua/fairygui/library/fgui/RelationType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.RelationType ---@type fgui.RelationType diff --git a/addons/cclua/fairygui/library/fgui/Relations.lua b/addons/cclua/fairygui/library/fgui/Relations.lua index 5dd16d3c..a7458c98 100644 --- a/addons/cclua/fairygui/library/fgui/Relations.lua +++ b/addons/cclua/fairygui/library/fgui/Relations.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.Relations --- diff --git a/addons/cclua/fairygui/library/fgui/ScrollBarDisplayType.lua b/addons/cclua/fairygui/library/fgui/ScrollBarDisplayType.lua index ec047974..71bb43db 100644 --- a/addons/cclua/fairygui/library/fgui/ScrollBarDisplayType.lua +++ b/addons/cclua/fairygui/library/fgui/ScrollBarDisplayType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.ScrollBarDisplayType ---@type fgui.ScrollBarDisplayType diff --git a/addons/cclua/fairygui/library/fgui/ScrollPane.lua b/addons/cclua/fairygui/library/fgui/ScrollPane.lua index 46ef13dc..8ec64287 100644 --- a/addons/cclua/fairygui/library/fgui/ScrollPane.lua +++ b/addons/cclua/fairygui/library/fgui/ScrollPane.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.ScrollPane --- diff --git a/addons/cclua/fairygui/library/fgui/ScrollType.lua b/addons/cclua/fairygui/library/fgui/ScrollType.lua index 9f4f6300..140cfe65 100644 --- a/addons/cclua/fairygui/library/fgui/ScrollType.lua +++ b/addons/cclua/fairygui/library/fgui/ScrollType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.ScrollType ---@type fgui.ScrollType diff --git a/addons/cclua/fairygui/library/fgui/TextFormat.lua b/addons/cclua/fairygui/library/fgui/TextFormat.lua index 4027e2c4..47014b38 100644 --- a/addons/cclua/fairygui/library/fgui/TextFormat.lua +++ b/addons/cclua/fairygui/library/fgui/TextFormat.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.TextFormat --- diff --git a/addons/cclua/fairygui/library/fgui/Transition.lua b/addons/cclua/fairygui/library/fgui/Transition.lua index b485a948..834540ae 100644 --- a/addons/cclua/fairygui/library/fgui/Transition.lua +++ b/addons/cclua/fairygui/library/fgui/Transition.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.Transition --- diff --git a/addons/cclua/fairygui/library/fgui/Transition/PlayCompleteCallback.lua b/addons/cclua/fairygui/library/fgui/Transition/PlayCompleteCallback.lua index 50862dd2..cc6927eb 100644 --- a/addons/cclua/fairygui/library/fgui/Transition/PlayCompleteCallback.lua +++ b/addons/cclua/fairygui/library/fgui/Transition/PlayCompleteCallback.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.Transition.PlayCompleteCallback --- diff --git a/addons/cclua/fairygui/library/fgui/Transition/TransitionHook.lua b/addons/cclua/fairygui/library/fgui/Transition/TransitionHook.lua index d9aa653c..76cffd66 100644 --- a/addons/cclua/fairygui/library/fgui/Transition/TransitionHook.lua +++ b/addons/cclua/fairygui/library/fgui/Transition/TransitionHook.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.Transition.TransitionHook --- diff --git a/addons/cclua/fairygui/library/fgui/TransitionActionType.lua b/addons/cclua/fairygui/library/fgui/TransitionActionType.lua index d3c73ae3..7d12e3a6 100644 --- a/addons/cclua/fairygui/library/fgui/TransitionActionType.lua +++ b/addons/cclua/fairygui/library/fgui/TransitionActionType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.TransitionActionType ---@type fgui.TransitionActionType diff --git a/addons/cclua/fairygui/library/fgui/TweenPropType.lua b/addons/cclua/fairygui/library/fgui/TweenPropType.lua index 5e406ffd..613ab8af 100644 --- a/addons/cclua/fairygui/library/fgui/TweenPropType.lua +++ b/addons/cclua/fairygui/library/fgui/TweenPropType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.TweenPropType ---@type fgui.TweenPropType diff --git a/addons/cclua/fairygui/library/fgui/TweenValue.lua b/addons/cclua/fairygui/library/fgui/TweenValue.lua index e6c238d3..e9798be6 100644 --- a/addons/cclua/fairygui/library/fgui/TweenValue.lua +++ b/addons/cclua/fairygui/library/fgui/TweenValue.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.TweenValue --- diff --git a/addons/cclua/fairygui/library/fgui/UIConfig.lua b/addons/cclua/fairygui/library/fgui/UIConfig.lua index 80353919..4c240840 100644 --- a/addons/cclua/fairygui/library/fgui/UIConfig.lua +++ b/addons/cclua/fairygui/library/fgui/UIConfig.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.UIConfig --- diff --git a/addons/cclua/fairygui/library/fgui/UIEventDispatcher.lua b/addons/cclua/fairygui/library/fgui/UIEventDispatcher.lua index cf48c6b8..37a421aa 100644 --- a/addons/cclua/fairygui/library/fgui/UIEventDispatcher.lua +++ b/addons/cclua/fairygui/library/fgui/UIEventDispatcher.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.UIEventDispatcher --- diff --git a/addons/cclua/fairygui/library/fgui/UIEventType.lua b/addons/cclua/fairygui/library/fgui/UIEventType.lua index 9a2afba2..e8beff1c 100644 --- a/addons/cclua/fairygui/library/fgui/UIEventType.lua +++ b/addons/cclua/fairygui/library/fgui/UIEventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.UIEventType --- diff --git a/addons/cclua/fairygui/library/fgui/UIObjectFactory.lua b/addons/cclua/fairygui/library/fgui/UIObjectFactory.lua index 9598b44f..3302ffd7 100644 --- a/addons/cclua/fairygui/library/fgui/UIObjectFactory.lua +++ b/addons/cclua/fairygui/library/fgui/UIObjectFactory.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.UIObjectFactory --- diff --git a/addons/cclua/fairygui/library/fgui/UIObjectFactory/GComponentCreator.lua b/addons/cclua/fairygui/library/fgui/UIObjectFactory/GComponentCreator.lua index 7fa99cde..0d664347 100644 --- a/addons/cclua/fairygui/library/fgui/UIObjectFactory/GComponentCreator.lua +++ b/addons/cclua/fairygui/library/fgui/UIObjectFactory/GComponentCreator.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.UIObjectFactory.GComponentCreator --- diff --git a/addons/cclua/fairygui/library/fgui/UIObjectFactory/GLoaderCreator.lua b/addons/cclua/fairygui/library/fgui/UIObjectFactory/GLoaderCreator.lua index d9a230d2..da5f0958 100644 --- a/addons/cclua/fairygui/library/fgui/UIObjectFactory/GLoaderCreator.lua +++ b/addons/cclua/fairygui/library/fgui/UIObjectFactory/GLoaderCreator.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.UIObjectFactory.GLoaderCreator --- diff --git a/addons/cclua/fairygui/library/fgui/UIPackage.lua b/addons/cclua/fairygui/library/fgui/UIPackage.lua index 26132c20..cadc69cb 100644 --- a/addons/cclua/fairygui/library/fgui/UIPackage.lua +++ b/addons/cclua/fairygui/library/fgui/UIPackage.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.UIPackage --- diff --git a/addons/cclua/fairygui/library/fgui/UISource.lua b/addons/cclua/fairygui/library/fgui/UISource.lua index 27e972ec..f8bf0ba3 100644 --- a/addons/cclua/fairygui/library/fgui/UISource.lua +++ b/addons/cclua/fairygui/library/fgui/UISource.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.UISource --- diff --git a/addons/cclua/fairygui/library/fgui/VectorTreeNode.lua b/addons/cclua/fairygui/library/fgui/VectorTreeNode.lua index 21c05b15..4353fc3a 100644 --- a/addons/cclua/fairygui/library/fgui/VectorTreeNode.lua +++ b/addons/cclua/fairygui/library/fgui/VectorTreeNode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.VectorTreeNode --- diff --git a/addons/cclua/fairygui/library/fgui/Window.lua b/addons/cclua/fairygui/library/fgui/Window.lua index 54fea878..7143cddc 100644 --- a/addons/cclua/fairygui/library/fgui/Window.lua +++ b/addons/cclua/fairygui/library/fgui/Window.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta fgui.Window --- diff --git a/addons/cclua/olua/library/olua/bool.lua b/addons/cclua/olua/library/olua/bool.lua index 2e94c71c..296b04ff 100644 --- a/addons/cclua/olua/library/olua/bool.lua +++ b/addons/cclua/olua/library/olua/bool.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.bool --- diff --git a/addons/cclua/olua/library/olua/char.lua b/addons/cclua/olua/library/olua/char.lua index b2d107e4..125fac2d 100644 --- a/addons/cclua/olua/library/olua/char.lua +++ b/addons/cclua/olua/library/olua/char.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.char --- diff --git a/addons/cclua/olua/library/olua/double.lua b/addons/cclua/olua/library/olua/double.lua index e8d7de37..d5eb292e 100644 --- a/addons/cclua/olua/library/olua/double.lua +++ b/addons/cclua/olua/library/olua/double.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.double --- diff --git a/addons/cclua/olua/library/olua/float.lua b/addons/cclua/olua/library/olua/float.lua index c2942360..20137bfa 100644 --- a/addons/cclua/olua/library/olua/float.lua +++ b/addons/cclua/olua/library/olua/float.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.float --- diff --git a/addons/cclua/olua/library/olua/int.lua b/addons/cclua/olua/library/olua/int.lua index 342ca9f2..ef749293 100644 --- a/addons/cclua/olua/library/olua/int.lua +++ b/addons/cclua/olua/library/olua/int.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.int --- diff --git a/addons/cclua/olua/library/olua/int16.lua b/addons/cclua/olua/library/olua/int16.lua index 26fc4019..1ccc757c 100644 --- a/addons/cclua/olua/library/olua/int16.lua +++ b/addons/cclua/olua/library/olua/int16.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.int16 --- @@ -5,7 +6,7 @@ ---@field length integer ---@field rawdata any ---@field sizeof integer ----@field value any +---@field value integer local int16 = {} @@ -13,11 +14,11 @@ local int16 = {} function int16:__gc() end ---@param idx integer ----@return any +---@return integer function int16:__index(idx) end ---@param idx integer ----@param v any +---@param v integer function int16:__newindex(idx, v) end ---@return any diff --git a/addons/cclua/olua/library/olua/int32.lua b/addons/cclua/olua/library/olua/int32.lua index 13a673e7..212cc01e 100644 --- a/addons/cclua/olua/library/olua/int32.lua +++ b/addons/cclua/olua/library/olua/int32.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.int32 --- @@ -5,7 +6,7 @@ ---@field length integer ---@field rawdata any ---@field sizeof integer ----@field value any +---@field value integer local int32 = {} @@ -13,11 +14,11 @@ local int32 = {} function int32:__gc() end ---@param idx integer ----@return any +---@return integer function int32:__index(idx) end ---@param idx integer ----@param v any +---@param v integer function int32:__newindex(idx, v) end ---@return any diff --git a/addons/cclua/olua/library/olua/int64.lua b/addons/cclua/olua/library/olua/int64.lua index 51cbfb4f..d3f227be 100644 --- a/addons/cclua/olua/library/olua/int64.lua +++ b/addons/cclua/olua/library/olua/int64.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.int64 --- @@ -5,7 +6,7 @@ ---@field length integer ---@field rawdata any ---@field sizeof integer ----@field value any +---@field value integer local int64 = {} @@ -13,11 +14,11 @@ local int64 = {} function int64:__gc() end ---@param idx integer ----@return any +---@return integer function int64:__index(idx) end ---@param idx integer ----@param v any +---@param v integer function int64:__newindex(idx, v) end ---@return any diff --git a/addons/cclua/olua/library/olua/int8.lua b/addons/cclua/olua/library/olua/int8.lua index 32f5e337..63f0e298 100644 --- a/addons/cclua/olua/library/olua/int8.lua +++ b/addons/cclua/olua/library/olua/int8.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.int8 --- @@ -5,7 +6,7 @@ ---@field length integer ---@field rawdata any ---@field sizeof integer ----@field value any +---@field value integer local int8 = {} @@ -13,11 +14,11 @@ local int8 = {} function int8:__gc() end ---@param idx integer ----@return any +---@return integer function int8:__index(idx) end ---@param idx integer ----@param v any +---@param v integer function int8:__newindex(idx, v) end ---@return any diff --git a/addons/cclua/olua/library/olua/ldouble.lua b/addons/cclua/olua/library/olua/ldouble.lua index 3a3891b4..718fad0b 100644 --- a/addons/cclua/olua/library/olua/ldouble.lua +++ b/addons/cclua/olua/library/olua/ldouble.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.ldouble --- diff --git a/addons/cclua/olua/library/olua/llong.lua b/addons/cclua/olua/library/olua/llong.lua index fc09364e..66e74232 100644 --- a/addons/cclua/olua/library/olua/llong.lua +++ b/addons/cclua/olua/library/olua/llong.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.llong --- diff --git a/addons/cclua/olua/library/olua/long.lua b/addons/cclua/olua/library/olua/long.lua index 1ce00c88..ecb53051 100644 --- a/addons/cclua/olua/library/olua/long.lua +++ b/addons/cclua/olua/library/olua/long.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.long --- diff --git a/addons/cclua/olua/library/olua/short.lua b/addons/cclua/olua/library/olua/short.lua index a5b34abd..2d497de7 100644 --- a/addons/cclua/olua/library/olua/short.lua +++ b/addons/cclua/olua/library/olua/short.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.short --- diff --git a/addons/cclua/olua/library/olua/size_t.lua b/addons/cclua/olua/library/olua/size_t.lua index 6af2adbc..f65d2179 100644 --- a/addons/cclua/olua/library/olua/size_t.lua +++ b/addons/cclua/olua/library/olua/size_t.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.size_t --- diff --git a/addons/cclua/olua/library/olua/ssize_t.lua b/addons/cclua/olua/library/olua/ssize_t.lua index b2d0bfa0..dd84a692 100644 --- a/addons/cclua/olua/library/olua/ssize_t.lua +++ b/addons/cclua/olua/library/olua/ssize_t.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.ssize_t --- diff --git a/addons/cclua/olua/library/olua/string.lua b/addons/cclua/olua/library/olua/string.lua index d10d07e4..32e45655 100644 --- a/addons/cclua/olua/library/olua/string.lua +++ b/addons/cclua/olua/library/olua/string.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.string --- diff --git a/addons/cclua/olua/library/olua/uchar.lua b/addons/cclua/olua/library/olua/uchar.lua index f02f84fe..67a07803 100644 --- a/addons/cclua/olua/library/olua/uchar.lua +++ b/addons/cclua/olua/library/olua/uchar.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.uchar --- diff --git a/addons/cclua/olua/library/olua/uint.lua b/addons/cclua/olua/library/olua/uint.lua index 6b1c138e..dba23abe 100644 --- a/addons/cclua/olua/library/olua/uint.lua +++ b/addons/cclua/olua/library/olua/uint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.uint --- diff --git a/addons/cclua/olua/library/olua/uint16.lua b/addons/cclua/olua/library/olua/uint16.lua index 162b7470..44ecf4b9 100644 --- a/addons/cclua/olua/library/olua/uint16.lua +++ b/addons/cclua/olua/library/olua/uint16.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.uint16 --- @@ -5,7 +6,7 @@ ---@field length integer ---@field rawdata any ---@field sizeof integer ----@field value any +---@field value integer local uint16 = {} @@ -13,11 +14,11 @@ local uint16 = {} function uint16:__gc() end ---@param idx integer ----@return any +---@return integer function uint16:__index(idx) end ---@param idx integer ----@param v any +---@param v integer function uint16:__newindex(idx, v) end ---@return any diff --git a/addons/cclua/olua/library/olua/uint32.lua b/addons/cclua/olua/library/olua/uint32.lua index a858498c..df8ce977 100644 --- a/addons/cclua/olua/library/olua/uint32.lua +++ b/addons/cclua/olua/library/olua/uint32.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.uint32 --- @@ -5,7 +6,7 @@ ---@field length integer ---@field rawdata any ---@field sizeof integer ----@field value any +---@field value integer local uint32 = {} @@ -13,11 +14,11 @@ local uint32 = {} function uint32:__gc() end ---@param idx integer ----@return any +---@return integer function uint32:__index(idx) end ---@param idx integer ----@param v any +---@param v integer function uint32:__newindex(idx, v) end ---@return any diff --git a/addons/cclua/olua/library/olua/uint64.lua b/addons/cclua/olua/library/olua/uint64.lua index 146db9b2..f192fb51 100644 --- a/addons/cclua/olua/library/olua/uint64.lua +++ b/addons/cclua/olua/library/olua/uint64.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.uint64 --- @@ -5,7 +6,7 @@ ---@field length integer ---@field rawdata any ---@field sizeof integer ----@field value any +---@field value integer local uint64 = {} @@ -13,11 +14,11 @@ local uint64 = {} function uint64:__gc() end ---@param idx integer ----@return any +---@return integer function uint64:__index(idx) end ---@param idx integer ----@param v any +---@param v integer function uint64:__newindex(idx, v) end ---@return any diff --git a/addons/cclua/olua/library/olua/uint8.lua b/addons/cclua/olua/library/olua/uint8.lua index d5cbc9a7..f8e75898 100644 --- a/addons/cclua/olua/library/olua/uint8.lua +++ b/addons/cclua/olua/library/olua/uint8.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.uint8 --- @@ -5,7 +6,7 @@ ---@field length integer ---@field rawdata any ---@field sizeof integer ----@field value any +---@field value integer local uint8 = {} @@ -13,11 +14,11 @@ local uint8 = {} function uint8:__gc() end ---@param idx integer ----@return any +---@return integer function uint8:__index(idx) end ---@param idx integer ----@param v any +---@param v integer function uint8:__newindex(idx, v) end ---@return any diff --git a/addons/cclua/olua/library/olua/ullong.lua b/addons/cclua/olua/library/olua/ullong.lua index e9aa6e03..171baf6e 100644 --- a/addons/cclua/olua/library/olua/ullong.lua +++ b/addons/cclua/olua/library/olua/ullong.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.ullong --- diff --git a/addons/cclua/olua/library/olua/ulong.lua b/addons/cclua/olua/library/olua/ulong.lua index bc687411..90458005 100644 --- a/addons/cclua/olua/library/olua/ulong.lua +++ b/addons/cclua/olua/library/olua/ulong.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta olua.ulong --- diff --git a/addons/cclua/olua/library/olua/ushort.lua b/addons/cclua/olua/library/olua/ushort.lua index f19d2c77..a22a67c0 100644 --- a/addons/cclua/olua/library/olua/ushort.lua +++ b/addons/cclua/olua/library/olua/ushort.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta 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 b602dfe5..395fbb8f 100644 --- a/addons/cclua/plugin/alipay/library/cclua/plugin/alipay.lua +++ b/addons/cclua/plugin/alipay/library/cclua/plugin/alipay.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.plugin.alipay --- diff --git a/addons/cclua/plugin/apple/library/cclua/plugin/apple.lua b/addons/cclua/plugin/apple/library/cclua/plugin/apple.lua index b4a092e8..eef156c4 100644 --- a/addons/cclua/plugin/apple/library/cclua/plugin/apple.lua +++ b/addons/cclua/plugin/apple/library/cclua/plugin/apple.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.plugin.apple --- @@ -30,7 +31,7 @@ function apple.finishTransaction(tid) end function apple.getPendingTransactions() end ---@param product string ----@param quantify any +---@param quantify integer ---@overload fun(product: string) function apple.purchase(product, quantify) end diff --git a/addons/cclua/plugin/bugly/library/cclua/bugly.lua b/addons/cclua/plugin/bugly/library/cclua/bugly.lua index 5d8ea9f6..7e8a49d8 100644 --- a/addons/cclua/plugin/bugly/library/cclua/bugly.lua +++ b/addons/cclua/plugin/bugly/library/cclua/bugly.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.bugly --- diff --git a/addons/cclua/plugin/bugly/library/cclua/bugly/LogLevel.lua b/addons/cclua/plugin/bugly/library/cclua/bugly/LogLevel.lua index d6731d99..fcaf2626 100644 --- a/addons/cclua/plugin/bugly/library/cclua/bugly/LogLevel.lua +++ b/addons/cclua/plugin/bugly/library/cclua/bugly/LogLevel.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.bugly.LogLevel ---@type cclua.bugly.LogLevel diff --git a/addons/cclua/plugin/huawei/library/cclua/plugin/huawei.lua b/addons/cclua/plugin/huawei/library/cclua/plugin/huawei.lua index 9fe4a44e..71fa42bb 100644 --- a/addons/cclua/plugin/huawei/library/cclua/plugin/huawei.lua +++ b/addons/cclua/plugin/huawei/library/cclua/plugin/huawei.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.plugin.huawei --- diff --git a/addons/cclua/plugin/janalytics/library/cclua/plugin/janalytics.lua b/addons/cclua/plugin/janalytics/library/cclua/plugin/janalytics.lua index c7ea8ed8..dfe6177a 100644 --- a/addons/cclua/plugin/janalytics/library/cclua/plugin/janalytics.lua +++ b/addons/cclua/plugin/janalytics/library/cclua/plugin/janalytics.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.plugin.janalytics --- diff --git a/addons/cclua/plugin/janalytics/library/cclua/plugin/janalytics/EventType.lua b/addons/cclua/plugin/janalytics/library/cclua/plugin/janalytics/EventType.lua index 97a89e77..c50615e2 100644 --- a/addons/cclua/plugin/janalytics/library/cclua/plugin/janalytics/EventType.lua +++ b/addons/cclua/plugin/janalytics/library/cclua/plugin/janalytics/EventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.plugin.janalytics.EventType ---@type cclua.plugin.janalytics.EventType diff --git a/addons/cclua/plugin/jauth/library/cclua/plugin/jauth.lua b/addons/cclua/plugin/jauth/library/cclua/plugin/jauth.lua index 1a5bebcb..eb5df78d 100644 --- a/addons/cclua/plugin/jauth/library/cclua/plugin/jauth.lua +++ b/addons/cclua/plugin/jauth/library/cclua/plugin/jauth.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.plugin.jauth --- @@ -56,7 +57,7 @@ function jauth.setDebug(enabled) end ---@param dispatcher cclua.Callback function jauth.setDispatcher(dispatcher) end ----@param intervalTime any +---@param intervalTime integer function jauth.setSmsIntervalTime(intervalTime) end return jauth \ No newline at end of file diff --git a/addons/cclua/plugin/jpush/library/cclua/plugin/jpush.lua b/addons/cclua/plugin/jpush/library/cclua/plugin/jpush.lua index 2f8ee62f..ff1840a2 100644 --- a/addons/cclua/plugin/jpush/library/cclua/plugin/jpush.lua +++ b/addons/cclua/plugin/jpush/library/cclua/plugin/jpush.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.plugin.jpush --- diff --git a/addons/cclua/plugin/oppo/library/cclua/plugin/oppo.lua b/addons/cclua/plugin/oppo/library/cclua/plugin/oppo.lua index d97127f7..c69c484c 100644 --- a/addons/cclua/plugin/oppo/library/cclua/plugin/oppo.lua +++ b/addons/cclua/plugin/oppo/library/cclua/plugin/oppo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.plugin.oppo --- diff --git a/addons/cclua/plugin/talkingdata/library/cclua/plugin/talkingdata.lua b/addons/cclua/plugin/talkingdata/library/cclua/plugin/talkingdata.lua index cfa80039..52525d50 100644 --- a/addons/cclua/plugin/talkingdata/library/cclua/plugin/talkingdata.lua +++ b/addons/cclua/plugin/talkingdata/library/cclua/plugin/talkingdata.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.plugin.talkingdata --- @@ -71,7 +72,7 @@ function talkingdata.onShare(uid, content) end ---@param key string function talkingdata.removeGlobalKV(key) end ----@param options any +---@param options integer function talkingdata.setConfigurationDisable(options) end ---@param value boolean diff --git a/addons/cclua/plugin/vivo/library/cclua/plugin/vivo.lua b/addons/cclua/plugin/vivo/library/cclua/plugin/vivo.lua index 3979433e..852aec9b 100644 --- a/addons/cclua/plugin/vivo/library/cclua/plugin/vivo.lua +++ b/addons/cclua/plugin/vivo/library/cclua/plugin/vivo.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.plugin.vivo --- diff --git a/addons/cclua/plugin/wechat/library/cclua/plugin/wechat.lua b/addons/cclua/plugin/wechat/library/cclua/plugin/wechat.lua index 4b113959..37b5aa61 100644 --- a/addons/cclua/plugin/wechat/library/cclua/plugin/wechat.lua +++ b/addons/cclua/plugin/wechat/library/cclua/plugin/wechat.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.plugin.wechat --- diff --git a/addons/cclua/plugin/wechat/library/cclua/plugin/wechat/ProgramType.lua b/addons/cclua/plugin/wechat/library/cclua/plugin/wechat/ProgramType.lua index c3c7961f..c69698fe 100644 --- a/addons/cclua/plugin/wechat/library/cclua/plugin/wechat/ProgramType.lua +++ b/addons/cclua/plugin/wechat/library/cclua/plugin/wechat/ProgramType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.plugin.wechat.ProgramType ---@type cclua.plugin.wechat.ProgramType diff --git a/addons/cclua/plugin/wechat/library/cclua/plugin/wechat/ShareType.lua b/addons/cclua/plugin/wechat/library/cclua/plugin/wechat/ShareType.lua index 8f4018d3..b227d871 100644 --- a/addons/cclua/plugin/wechat/library/cclua/plugin/wechat/ShareType.lua +++ b/addons/cclua/plugin/wechat/library/cclua/plugin/wechat/ShareType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta cclua.plugin.wechat.ShareType ---@type cclua.plugin.wechat.ShareType diff --git a/addons/cclua/spine/library/spine/AlphaTimeline.lua b/addons/cclua/spine/library/spine/AlphaTimeline.lua index 90131ef4..064ad561 100644 --- a/addons/cclua/spine/library/spine/AlphaTimeline.lua +++ b/addons/cclua/spine/library/spine/AlphaTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.AlphaTimeline --- diff --git a/addons/cclua/spine/library/spine/Animation.lua b/addons/cclua/spine/library/spine/Animation.lua index 09e7a5c9..edab8295 100644 --- a/addons/cclua/spine/library/spine/Animation.lua +++ b/addons/cclua/spine/library/spine/Animation.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.Animation --- diff --git a/addons/cclua/spine/library/spine/AnimationState.lua b/addons/cclua/spine/library/spine/AnimationState.lua index fff2411d..3a9c493e 100644 --- a/addons/cclua/spine/library/spine/AnimationState.lua +++ b/addons/cclua/spine/library/spine/AnimationState.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.AnimationState --- @@ -15,6 +16,15 @@ local AnimationState = {} ---@param loop boolean ---@param delay number ---@return spine.TrackEntry +--- +---Adds an animation to be played delay seconds after the current or last queued animation +---for a track. If the track is empty, it is equivalent to calling setAnimation. +---\param delay +---Seconds to begin this animation after the start of the previous animation. May be <= 0 to use the animation +---duration of the previous track minus any mix duration plus the negative delay. +--- +---\return A track entry to allow further customization of animation playback. References to the track entry must not be kept +---after AnimationState.Dispose ---@overload fun(self: spine.AnimationState, trackIndex: integer, animation: spine.Animation, loop: boolean, delay: number): spine.TrackEntry function AnimationState:addAnimation(trackIndex, animationName, loop, delay) end @@ -84,6 +94,14 @@ function AnimationState.new(data) end ---@param animationName any ---@param loop boolean ---@return spine.TrackEntry +--- +---Sets the current animation for a track, discarding any queued animations. +---\param loop If true, the animation will repeat. +---If false, it will not, instead its last frame is applied if played beyond its duration. +---In either case TrackEntry.TrackEnd determines when the track is cleared. +---\return +---A track entry to allow further customization of animation playback. References to the track entry must not be kept +---after AnimationState.Dispose. ---@overload fun(self: spine.AnimationState, trackIndex: integer, animation: spine.Animation, loop: boolean): spine.TrackEntry function AnimationState:setAnimation(trackIndex, animationName, loop) end diff --git a/addons/cclua/spine/library/spine/AnimationStateData.lua b/addons/cclua/spine/library/spine/AnimationStateData.lua index 7e0a93d0..3b21e3fc 100644 --- a/addons/cclua/spine/library/spine/AnimationStateData.lua +++ b/addons/cclua/spine/library/spine/AnimationStateData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.AnimationStateData ---Stores mix (crossfade) durations to be applied when AnimationState animations are changed. @@ -35,6 +36,9 @@ function AnimationStateData:setDefaultMix(inValue) end ---@param fromName any ---@param toName any ---@param duration number +--- +---Sets a mix duration when changing from the specified animation to the other. +---See TrackEntry.MixDuration. ---@overload fun(self: spine.AnimationStateData, from: spine.Animation, to: spine.Animation, duration: number) function AnimationStateData:setMix(fromName, toName, duration) end diff --git a/addons/cclua/spine/library/spine/AnimationStateListener.lua b/addons/cclua/spine/library/spine/AnimationStateListener.lua index 2cb5841e..79b02946 100644 --- a/addons/cclua/spine/library/spine/AnimationStateListener.lua +++ b/addons/cclua/spine/library/spine/AnimationStateListener.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.AnimationStateListener --- diff --git a/addons/cclua/spine/library/spine/Atlas.lua b/addons/cclua/spine/library/spine/Atlas.lua index 15ecb94d..1debda75 100644 --- a/addons/cclua/spine/library/spine/Atlas.lua +++ b/addons/cclua/spine/library/spine/Atlas.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.Atlas --- diff --git a/addons/cclua/spine/library/spine/Attachment.lua b/addons/cclua/spine/library/spine/Attachment.lua index e8848624..2d502de8 100644 --- a/addons/cclua/spine/library/spine/Attachment.lua +++ b/addons/cclua/spine/library/spine/Attachment.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.Attachment --- diff --git a/addons/cclua/spine/library/spine/AttachmentTimeline.lua b/addons/cclua/spine/library/spine/AttachmentTimeline.lua index b4220d29..ff852142 100644 --- a/addons/cclua/spine/library/spine/AttachmentTimeline.lua +++ b/addons/cclua/spine/library/spine/AttachmentTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.AttachmentTimeline --- diff --git a/addons/cclua/spine/library/spine/AttachmentType.lua b/addons/cclua/spine/library/spine/AttachmentType.lua index 5e6cf721..e96f8de4 100644 --- a/addons/cclua/spine/library/spine/AttachmentType.lua +++ b/addons/cclua/spine/library/spine/AttachmentType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.AttachmentType ---@type spine.AttachmentType diff --git a/addons/cclua/spine/library/spine/BlendMode.lua b/addons/cclua/spine/library/spine/BlendMode.lua index 660987d6..7d16825f 100644 --- a/addons/cclua/spine/library/spine/BlendMode.lua +++ b/addons/cclua/spine/library/spine/BlendMode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.BlendMode ---@type spine.BlendMode diff --git a/addons/cclua/spine/library/spine/Bone.lua b/addons/cclua/spine/library/spine/Bone.lua index 6788e2e5..f733f890 100644 --- a/addons/cclua/spine/library/spine/Bone.lua +++ b/addons/cclua/spine/library/spine/Bone.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.Bone ---Stores a bone's current pose. @@ -161,6 +162,8 @@ function Bone:localToWorldRotation(localRotation) end ---@param skeleton spine.Skeleton ---@param parent spine.Bone ---@return spine.Bone +--- +---\param parent May be NULL. ---@overload fun(data: spine.BoneData, skeleton: spine.Skeleton): spine.Bone function Bone.new(data, skeleton, parent) end @@ -250,6 +253,8 @@ function Bone.setYDown(inValue) end function Bone:updateAppliedTransform() end ---Computes the world transform using the parent bone and this bone's local transform. +--- +---Computes the world transform using the parent bone and the specified local transform. ---@overload fun(self: spine.Bone, x: number, y: number, rotation: number, scaleX: number, scaleY: number, shearX: number, shearY: number) function Bone:updateWorldTransform() end diff --git a/addons/cclua/spine/library/spine/BoneData.lua b/addons/cclua/spine/library/spine/BoneData.lua index be6763f5..d038e5ec 100644 --- a/addons/cclua/spine/library/spine/BoneData.lua +++ b/addons/cclua/spine/library/spine/BoneData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.BoneData --- diff --git a/addons/cclua/spine/library/spine/BoundingBoxAttachment.lua b/addons/cclua/spine/library/spine/BoundingBoxAttachment.lua index 455c63bc..b92f95e2 100644 --- a/addons/cclua/spine/library/spine/BoundingBoxAttachment.lua +++ b/addons/cclua/spine/library/spine/BoundingBoxAttachment.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.BoundingBoxAttachment ---Attachment that has a polygon for bounds checking. diff --git a/addons/cclua/spine/library/spine/ClippingAttachment.lua b/addons/cclua/spine/library/spine/ClippingAttachment.lua index cc308466..fd032b19 100644 --- a/addons/cclua/spine/library/spine/ClippingAttachment.lua +++ b/addons/cclua/spine/library/spine/ClippingAttachment.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.ClippingAttachment --- diff --git a/addons/cclua/spine/library/spine/CompleteListener.lua b/addons/cclua/spine/library/spine/CompleteListener.lua index 0a7e0c4b..f9827701 100644 --- a/addons/cclua/spine/library/spine/CompleteListener.lua +++ b/addons/cclua/spine/library/spine/CompleteListener.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.CompleteListener --- diff --git a/addons/cclua/spine/library/spine/ConstraintData.lua b/addons/cclua/spine/library/spine/ConstraintData.lua index 0b344dbd..89a901b7 100644 --- a/addons/cclua/spine/library/spine/ConstraintData.lua +++ b/addons/cclua/spine/library/spine/ConstraintData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.ConstraintData ---The interface for all constraints. diff --git a/addons/cclua/spine/library/spine/CurveTimeline.lua b/addons/cclua/spine/library/spine/CurveTimeline.lua index c2e5ca12..c2a9794b 100644 --- a/addons/cclua/spine/library/spine/CurveTimeline.lua +++ b/addons/cclua/spine/library/spine/CurveTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.CurveTimeline ---Base class for frames that use an interpolation bezier curve. diff --git a/addons/cclua/spine/library/spine/CurveTimeline1.lua b/addons/cclua/spine/library/spine/CurveTimeline1.lua index 38dbe243..10053d99 100644 --- a/addons/cclua/spine/library/spine/CurveTimeline1.lua +++ b/addons/cclua/spine/library/spine/CurveTimeline1.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.CurveTimeline1 --- diff --git a/addons/cclua/spine/library/spine/CurveTimeline2.lua b/addons/cclua/spine/library/spine/CurveTimeline2.lua index 83c9f481..aeceab1b 100644 --- a/addons/cclua/spine/library/spine/CurveTimeline2.lua +++ b/addons/cclua/spine/library/spine/CurveTimeline2.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.CurveTimeline2 --- diff --git a/addons/cclua/spine/library/spine/DeformTimeline.lua b/addons/cclua/spine/library/spine/DeformTimeline.lua index 72265cb4..88ae0899 100644 --- a/addons/cclua/spine/library/spine/DeformTimeline.lua +++ b/addons/cclua/spine/library/spine/DeformTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.DeformTimeline --- diff --git a/addons/cclua/spine/library/spine/DisposeListener.lua b/addons/cclua/spine/library/spine/DisposeListener.lua index 1cd26fd3..29121382 100644 --- a/addons/cclua/spine/library/spine/DisposeListener.lua +++ b/addons/cclua/spine/library/spine/DisposeListener.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.DisposeListener --- diff --git a/addons/cclua/spine/library/spine/DrawOrderTimeline.lua b/addons/cclua/spine/library/spine/DrawOrderTimeline.lua index 6d50ebee..6ffbdaf9 100644 --- a/addons/cclua/spine/library/spine/DrawOrderTimeline.lua +++ b/addons/cclua/spine/library/spine/DrawOrderTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.DrawOrderTimeline --- diff --git a/addons/cclua/spine/library/spine/EndListener.lua b/addons/cclua/spine/library/spine/EndListener.lua index 5227e4a9..aab55668 100644 --- a/addons/cclua/spine/library/spine/EndListener.lua +++ b/addons/cclua/spine/library/spine/EndListener.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.EndListener --- diff --git a/addons/cclua/spine/library/spine/Event.lua b/addons/cclua/spine/library/spine/Event.lua index a7c115cc..3226f24a 100644 --- a/addons/cclua/spine/library/spine/Event.lua +++ b/addons/cclua/spine/library/spine/Event.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.Event ---Stores the current pose values for an Event. diff --git a/addons/cclua/spine/library/spine/EventData.lua b/addons/cclua/spine/library/spine/EventData.lua index 4983ec3c..d36b338d 100644 --- a/addons/cclua/spine/library/spine/EventData.lua +++ b/addons/cclua/spine/library/spine/EventData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.EventData ---Stores the setup pose values for an Event. diff --git a/addons/cclua/spine/library/spine/EventListener.lua b/addons/cclua/spine/library/spine/EventListener.lua index 502eb489..c0945b8a 100644 --- a/addons/cclua/spine/library/spine/EventListener.lua +++ b/addons/cclua/spine/library/spine/EventListener.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.EventListener --- diff --git a/addons/cclua/spine/library/spine/EventTimeline.lua b/addons/cclua/spine/library/spine/EventTimeline.lua index f1da34c9..002505b6 100644 --- a/addons/cclua/spine/library/spine/EventTimeline.lua +++ b/addons/cclua/spine/library/spine/EventTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.EventTimeline --- diff --git a/addons/cclua/spine/library/spine/EventType.lua b/addons/cclua/spine/library/spine/EventType.lua index 5699cb60..5d1f6be6 100644 --- a/addons/cclua/spine/library/spine/EventType.lua +++ b/addons/cclua/spine/library/spine/EventType.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.EventType ---@type spine.EventType diff --git a/addons/cclua/spine/library/spine/IkConstraint.lua b/addons/cclua/spine/library/spine/IkConstraint.lua index 68ba2591..8e0ae45a 100644 --- a/addons/cclua/spine/library/spine/IkConstraint.lua +++ b/addons/cclua/spine/library/spine/IkConstraint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.IkConstraint --- @@ -22,6 +23,10 @@ local IkConstraint = {} ---@param stretch boolean ---@param uniform boolean ---@param alpha number +--- +---Adjusts the parent and child bone rotations so the tip of the child is as close to the target position as +---possible. The target is specified in the world coordinate system. +---\param child A direct descendant of the parent bone. ---@overload fun(parent: spine.Bone, child: spine.Bone, targetX: number, targetY: number, bendDir: integer, stretch: boolean, uniform: boolean, softness: number, alpha: number) function IkConstraint.apply(bone, targetX, targetY, compress, stretch, uniform, alpha) end diff --git a/addons/cclua/spine/library/spine/IkConstraintData.lua b/addons/cclua/spine/library/spine/IkConstraintData.lua index 8cfc99b8..6fa6f469 100644 --- a/addons/cclua/spine/library/spine/IkConstraintData.lua +++ b/addons/cclua/spine/library/spine/IkConstraintData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.IkConstraintData --- diff --git a/addons/cclua/spine/library/spine/IkConstraintTimeline.lua b/addons/cclua/spine/library/spine/IkConstraintTimeline.lua index 452990b9..a5dc3d3e 100644 --- a/addons/cclua/spine/library/spine/IkConstraintTimeline.lua +++ b/addons/cclua/spine/library/spine/IkConstraintTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.IkConstraintTimeline --- diff --git a/addons/cclua/spine/library/spine/Inherit.lua b/addons/cclua/spine/library/spine/Inherit.lua index 5514b24f..9ac41608 100644 --- a/addons/cclua/spine/library/spine/Inherit.lua +++ b/addons/cclua/spine/library/spine/Inherit.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.Inherit ---@type spine.Inherit diff --git a/addons/cclua/spine/library/spine/InterruptListener.lua b/addons/cclua/spine/library/spine/InterruptListener.lua index a2bc22ab..18495d5b 100644 --- a/addons/cclua/spine/library/spine/InterruptListener.lua +++ b/addons/cclua/spine/library/spine/InterruptListener.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.InterruptListener --- diff --git a/addons/cclua/spine/library/spine/MeshAttachment.lua b/addons/cclua/spine/library/spine/MeshAttachment.lua index 21072bd0..556a6122 100644 --- a/addons/cclua/spine/library/spine/MeshAttachment.lua +++ b/addons/cclua/spine/library/spine/MeshAttachment.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.MeshAttachment ---Attachment that displays a texture region using a mesh. diff --git a/addons/cclua/spine/library/spine/MixBlend.lua b/addons/cclua/spine/library/spine/MixBlend.lua index 0648ecee..a8f9c9e3 100644 --- a/addons/cclua/spine/library/spine/MixBlend.lua +++ b/addons/cclua/spine/library/spine/MixBlend.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.MixBlend ---@type spine.MixBlend diff --git a/addons/cclua/spine/library/spine/MixDirection.lua b/addons/cclua/spine/library/spine/MixDirection.lua index 296da8fa..29bf0728 100644 --- a/addons/cclua/spine/library/spine/MixDirection.lua +++ b/addons/cclua/spine/library/spine/MixDirection.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.MixDirection ---@type spine.MixDirection diff --git a/addons/cclua/spine/library/spine/PathAttachment.lua b/addons/cclua/spine/library/spine/PathAttachment.lua index 775a2ded..6fce77d2 100644 --- a/addons/cclua/spine/library/spine/PathAttachment.lua +++ b/addons/cclua/spine/library/spine/PathAttachment.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.PathAttachment --- diff --git a/addons/cclua/spine/library/spine/PathConstraint.lua b/addons/cclua/spine/library/spine/PathConstraint.lua index b83a0761..3a1778bb 100644 --- a/addons/cclua/spine/library/spine/PathConstraint.lua +++ b/addons/cclua/spine/library/spine/PathConstraint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.PathConstraint --- diff --git a/addons/cclua/spine/library/spine/PathConstraintData.lua b/addons/cclua/spine/library/spine/PathConstraintData.lua index 0152e363..21ca42a0 100644 --- a/addons/cclua/spine/library/spine/PathConstraintData.lua +++ b/addons/cclua/spine/library/spine/PathConstraintData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.PathConstraintData --- diff --git a/addons/cclua/spine/library/spine/PathConstraintMixTimeline.lua b/addons/cclua/spine/library/spine/PathConstraintMixTimeline.lua index 586cccdc..f381fc5e 100644 --- a/addons/cclua/spine/library/spine/PathConstraintMixTimeline.lua +++ b/addons/cclua/spine/library/spine/PathConstraintMixTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.PathConstraintMixTimeline --- diff --git a/addons/cclua/spine/library/spine/PathConstraintPositionTimeline.lua b/addons/cclua/spine/library/spine/PathConstraintPositionTimeline.lua index bb8a583c..f51df8e1 100644 --- a/addons/cclua/spine/library/spine/PathConstraintPositionTimeline.lua +++ b/addons/cclua/spine/library/spine/PathConstraintPositionTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.PathConstraintPositionTimeline --- diff --git a/addons/cclua/spine/library/spine/PathConstraintSpacingTimeline.lua b/addons/cclua/spine/library/spine/PathConstraintSpacingTimeline.lua index bf807cd2..2d4aec6e 100644 --- a/addons/cclua/spine/library/spine/PathConstraintSpacingTimeline.lua +++ b/addons/cclua/spine/library/spine/PathConstraintSpacingTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.PathConstraintSpacingTimeline --- diff --git a/addons/cclua/spine/library/spine/Physics.lua b/addons/cclua/spine/library/spine/Physics.lua index 6985d6f5..4df05d9f 100644 --- a/addons/cclua/spine/library/spine/Physics.lua +++ b/addons/cclua/spine/library/spine/Physics.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.Physics ---@type spine.Physics diff --git a/addons/cclua/spine/library/spine/PhysicsConstraint.lua b/addons/cclua/spine/library/spine/PhysicsConstraint.lua index 0aea3128..1df59cf9 100644 --- a/addons/cclua/spine/library/spine/PhysicsConstraint.lua +++ b/addons/cclua/spine/library/spine/PhysicsConstraint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.PhysicsConstraint --- diff --git a/addons/cclua/spine/library/spine/PhysicsConstraintData.lua b/addons/cclua/spine/library/spine/PhysicsConstraintData.lua index 16ab12f1..e4241282 100644 --- a/addons/cclua/spine/library/spine/PhysicsConstraintData.lua +++ b/addons/cclua/spine/library/spine/PhysicsConstraintData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.PhysicsConstraintData --- diff --git a/addons/cclua/spine/library/spine/PointAttachment.lua b/addons/cclua/spine/library/spine/PointAttachment.lua index 023989e0..358ca725 100644 --- a/addons/cclua/spine/library/spine/PointAttachment.lua +++ b/addons/cclua/spine/library/spine/PointAttachment.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.PointAttachment ---An attachment which is a single point and a rotation. This can be used to spawn projectiles, particles, etc. A bone can be diff --git a/addons/cclua/spine/library/spine/Polygon.lua b/addons/cclua/spine/library/spine/Polygon.lua index bfa032ad..d21c3817 100644 --- a/addons/cclua/spine/library/spine/Polygon.lua +++ b/addons/cclua/spine/library/spine/Polygon.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.Polygon --- diff --git a/addons/cclua/spine/library/spine/PositionMode.lua b/addons/cclua/spine/library/spine/PositionMode.lua index 2e0d2d92..e4f795d5 100644 --- a/addons/cclua/spine/library/spine/PositionMode.lua +++ b/addons/cclua/spine/library/spine/PositionMode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.PositionMode ---@type spine.PositionMode diff --git a/addons/cclua/spine/library/spine/RGB2Timeline.lua b/addons/cclua/spine/library/spine/RGB2Timeline.lua index 6bd69e85..8c541468 100644 --- a/addons/cclua/spine/library/spine/RGB2Timeline.lua +++ b/addons/cclua/spine/library/spine/RGB2Timeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.RGB2Timeline --- diff --git a/addons/cclua/spine/library/spine/RGBA2Timeline.lua b/addons/cclua/spine/library/spine/RGBA2Timeline.lua index f7e88794..5e8fab54 100644 --- a/addons/cclua/spine/library/spine/RGBA2Timeline.lua +++ b/addons/cclua/spine/library/spine/RGBA2Timeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.RGBA2Timeline --- diff --git a/addons/cclua/spine/library/spine/RGBATimeline.lua b/addons/cclua/spine/library/spine/RGBATimeline.lua index d8155959..763bffdc 100644 --- a/addons/cclua/spine/library/spine/RGBATimeline.lua +++ b/addons/cclua/spine/library/spine/RGBATimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.RGBATimeline --- diff --git a/addons/cclua/spine/library/spine/RGBTimeline.lua b/addons/cclua/spine/library/spine/RGBTimeline.lua index d4ac0f06..89108d07 100644 --- a/addons/cclua/spine/library/spine/RGBTimeline.lua +++ b/addons/cclua/spine/library/spine/RGBTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.RGBTimeline --- diff --git a/addons/cclua/spine/library/spine/RegionAttachment.lua b/addons/cclua/spine/library/spine/RegionAttachment.lua index adf85ada..1c958547 100644 --- a/addons/cclua/spine/library/spine/RegionAttachment.lua +++ b/addons/cclua/spine/library/spine/RegionAttachment.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.RegionAttachment ---Attachment that displays a texture region. @@ -26,6 +27,12 @@ local RegionAttachment = {} ---@param worldVertices olua.float ---@param offset integer ---@param stride integer +--- +---Transforms the attachment's four vertices to world coordinates. +---\param slot The parent slot. +---\param worldVertices The output world vertices. Must have a length greater than or equal to offset + 8. +---\param offset The worldVertices index to begin writing values. +---\param stride The number of worldVertices entries between the value pairs written. ---@overload fun(self: spine.RegionAttachment, slot: spine.Slot, worldVertices: olua.float, offset: integer) ---@overload fun(self: spine.RegionAttachment, slot: spine.Slot, worldVertices: any, offset: integer, stride: integer) ---@overload fun(self: spine.RegionAttachment, slot: spine.Slot, worldVertices: any, offset: integer) diff --git a/addons/cclua/spine/library/spine/RotateMode.lua b/addons/cclua/spine/library/spine/RotateMode.lua index 72b36a01..4b5c86aa 100644 --- a/addons/cclua/spine/library/spine/RotateMode.lua +++ b/addons/cclua/spine/library/spine/RotateMode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.RotateMode ---@type spine.RotateMode diff --git a/addons/cclua/spine/library/spine/RotateTimeline.lua b/addons/cclua/spine/library/spine/RotateTimeline.lua index 09010b6f..7a9ecc4b 100644 --- a/addons/cclua/spine/library/spine/RotateTimeline.lua +++ b/addons/cclua/spine/library/spine/RotateTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.RotateTimeline --- diff --git a/addons/cclua/spine/library/spine/ScaleTimeline.lua b/addons/cclua/spine/library/spine/ScaleTimeline.lua index fd29a2c9..7b90016c 100644 --- a/addons/cclua/spine/library/spine/ScaleTimeline.lua +++ b/addons/cclua/spine/library/spine/ScaleTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.ScaleTimeline --- diff --git a/addons/cclua/spine/library/spine/ScaleXTimeline.lua b/addons/cclua/spine/library/spine/ScaleXTimeline.lua index 579a63a3..1e02fd0c 100644 --- a/addons/cclua/spine/library/spine/ScaleXTimeline.lua +++ b/addons/cclua/spine/library/spine/ScaleXTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.ScaleXTimeline --- diff --git a/addons/cclua/spine/library/spine/ScaleYTimeline.lua b/addons/cclua/spine/library/spine/ScaleYTimeline.lua index 1fceb222..1b5ecec1 100644 --- a/addons/cclua/spine/library/spine/ScaleYTimeline.lua +++ b/addons/cclua/spine/library/spine/ScaleYTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.ScaleYTimeline --- diff --git a/addons/cclua/spine/library/spine/Sequence.lua b/addons/cclua/spine/library/spine/Sequence.lua index 65927a82..e05e4f35 100644 --- a/addons/cclua/spine/library/spine/Sequence.lua +++ b/addons/cclua/spine/library/spine/Sequence.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.Sequence --- diff --git a/addons/cclua/spine/library/spine/SequenceMode.lua b/addons/cclua/spine/library/spine/SequenceMode.lua index 44d79172..49e0e6fd 100644 --- a/addons/cclua/spine/library/spine/SequenceMode.lua +++ b/addons/cclua/spine/library/spine/SequenceMode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.SequenceMode ---@type spine.SequenceMode diff --git a/addons/cclua/spine/library/spine/ShearTimeline.lua b/addons/cclua/spine/library/spine/ShearTimeline.lua index 431ac540..63b4f2fd 100644 --- a/addons/cclua/spine/library/spine/ShearTimeline.lua +++ b/addons/cclua/spine/library/spine/ShearTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.ShearTimeline --- diff --git a/addons/cclua/spine/library/spine/ShearXTimeline.lua b/addons/cclua/spine/library/spine/ShearXTimeline.lua index 2ea8c1fa..6edb36b4 100644 --- a/addons/cclua/spine/library/spine/ShearXTimeline.lua +++ b/addons/cclua/spine/library/spine/ShearXTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.ShearXTimeline --- diff --git a/addons/cclua/spine/library/spine/ShearYTimeline.lua b/addons/cclua/spine/library/spine/ShearYTimeline.lua index e5084442..91f7e294 100644 --- a/addons/cclua/spine/library/spine/ShearYTimeline.lua +++ b/addons/cclua/spine/library/spine/ShearYTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.ShearYTimeline --- diff --git a/addons/cclua/spine/library/spine/Skeleton.lua b/addons/cclua/spine/library/spine/Skeleton.lua index a2479a8a..ad4ed402 100644 --- a/addons/cclua/spine/library/spine/Skeleton.lua +++ b/addons/cclua/spine/library/spine/Skeleton.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.Skeleton --- @@ -55,6 +56,8 @@ function Skeleton:findTransformConstraint(constraintName) end ---@param slotName any ---@param attachmentName any ---@return spine.Attachment +--- +---\return May be NULL. ---@overload fun(self: spine.Skeleton, slotIndex: integer, attachmentName: any): spine.Attachment function Skeleton:getAttachment(slotName, attachmentName) end @@ -147,6 +150,14 @@ function Skeleton:setScaleY(inValue) end ---Sets a skin by name (see setSkin). ---@param skinName any +--- +---Attachments from the new skin are attached if the corresponding attachment from the old skin was attached. +---If there was no old skin, each slot's setup mode attachment is attached from the new skin. +---After changing the skin, the visible attachments can be reset to those attached in the setup pose by calling +---See Skeleton::setSlotsToSetupPose() +---Also, often AnimationState::apply(Skeleton&) is called before the next time the +---skeleton is rendered to allow any attachment keys in the current animation(s) to hide or show attachments from the new skin. +---\param newSkin May be NULL. ---@overload fun(self: spine.Skeleton, newSkin: spine.Skin) function Skeleton:setSkin(skinName) end diff --git a/addons/cclua/spine/library/spine/SkeletonAnimation.lua b/addons/cclua/spine/library/spine/SkeletonAnimation.lua index 70e45b61..45ad224b 100644 --- a/addons/cclua/spine/library/spine/SkeletonAnimation.lua +++ b/addons/cclua/spine/library/spine/SkeletonAnimation.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.SkeletonAnimation ---Draws an animated skeleton, providing an AnimationState for applying one or more animations and queuing animations to be diff --git a/addons/cclua/spine/library/spine/SkeletonBounds.lua b/addons/cclua/spine/library/spine/SkeletonBounds.lua index b9217ddf..8adf2f93 100644 --- a/addons/cclua/spine/library/spine/SkeletonBounds.lua +++ b/addons/cclua/spine/library/spine/SkeletonBounds.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.SkeletonBounds ---Collects each BoundingBoxAttachment that is visible and computes the world vertices for its polygon. @@ -33,6 +34,9 @@ function SkeletonBounds:aabbintersectsSegment(x1, y1, x2, y2) end ---@param x number ---@param y number ---@return boolean +--- +---Returns the first bounding box attachment that contains the point, or NULL. When doing many checks, it is usually more +---efficient to only call this method if {@link #aabbcontainsPoint(float, float)} returns true. ---@overload fun(self: spine.SkeletonBounds, x: number, y: number): spine.BoundingBoxAttachment function SkeletonBounds:containsPoint(polygon, x, y) end @@ -68,6 +72,8 @@ function SkeletonBounds:getWidth() end ---@param x2 number ---@param y2 number ---@return spine.BoundingBoxAttachment +--- +---Returns true if the polygon contains the line segment. ---@overload fun(self: spine.SkeletonBounds, polygon: spine.Polygon, x1: number, y1: number, x2: number, y2: number): boolean function SkeletonBounds:intersectsSegment(x1, y1, x2, y2) end diff --git a/addons/cclua/spine/library/spine/SkeletonClipping.lua b/addons/cclua/spine/library/spine/SkeletonClipping.lua index 0f63ee26..d3138748 100644 --- a/addons/cclua/spine/library/spine/SkeletonClipping.lua +++ b/addons/cclua/spine/library/spine/SkeletonClipping.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.SkeletonClipping --- diff --git a/addons/cclua/spine/library/spine/SkeletonData.lua b/addons/cclua/spine/library/spine/SkeletonData.lua index 21c20aa3..428ad355 100644 --- a/addons/cclua/spine/library/spine/SkeletonData.lua +++ b/addons/cclua/spine/library/spine/SkeletonData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.SkeletonData ---Stores the setup pose and all of the stateless data for a skeleton. diff --git a/addons/cclua/spine/library/spine/SkeletonRenderer.lua b/addons/cclua/spine/library/spine/SkeletonRenderer.lua index de6deea6..56a773a4 100644 --- a/addons/cclua/spine/library/spine/SkeletonRenderer.lua +++ b/addons/cclua/spine/library/spine/SkeletonRenderer.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.SkeletonRenderer --- @@ -148,6 +149,8 @@ function SkeletonRenderer:setDebugMeshesEnabled(enabled) end function SkeletonRenderer:setDebugSlotsEnabled(enabled) end ---@param skinName string +--- +---\param skin May be 0 for no skin. ---@overload fun(self: spine.SkeletonRenderer, skinName: string) function SkeletonRenderer:setSkin(skinName) end diff --git a/addons/cclua/spine/library/spine/Skin.lua b/addons/cclua/spine/library/spine/Skin.lua index eb35d60e..1b0e5a4a 100644 --- a/addons/cclua/spine/library/spine/Skin.lua +++ b/addons/cclua/spine/library/spine/Skin.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.Skin ---Stores attachments by slot index and attachment name. diff --git a/addons/cclua/spine/library/spine/Slot.lua b/addons/cclua/spine/library/spine/Slot.lua index 5571c103..f052378c 100644 --- a/addons/cclua/spine/library/spine/Slot.lua +++ b/addons/cclua/spine/library/spine/Slot.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.Slot --- diff --git a/addons/cclua/spine/library/spine/SlotData.lua b/addons/cclua/spine/library/spine/SlotData.lua index ed902af8..c80dd1b9 100644 --- a/addons/cclua/spine/library/spine/SlotData.lua +++ b/addons/cclua/spine/library/spine/SlotData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.SlotData --- diff --git a/addons/cclua/spine/library/spine/SpacingMode.lua b/addons/cclua/spine/library/spine/SpacingMode.lua index 42a93cb4..3844d287 100644 --- a/addons/cclua/spine/library/spine/SpacingMode.lua +++ b/addons/cclua/spine/library/spine/SpacingMode.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.SpacingMode ---@type spine.SpacingMode diff --git a/addons/cclua/spine/library/spine/SpineObject.lua b/addons/cclua/spine/library/spine/SpineObject.lua index 37f47123..437d6739 100644 --- a/addons/cclua/spine/library/spine/SpineObject.lua +++ b/addons/cclua/spine/library/spine/SpineObject.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.SpineObject --- diff --git a/addons/cclua/spine/library/spine/StartListener.lua b/addons/cclua/spine/library/spine/StartListener.lua index 980c752a..5413e929 100644 --- a/addons/cclua/spine/library/spine/StartListener.lua +++ b/addons/cclua/spine/library/spine/StartListener.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.StartListener --- diff --git a/addons/cclua/spine/library/spine/TextureRegion.lua b/addons/cclua/spine/library/spine/TextureRegion.lua index dad1ea96..7d0cc43e 100644 --- a/addons/cclua/spine/library/spine/TextureRegion.lua +++ b/addons/cclua/spine/library/spine/TextureRegion.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.TextureRegion --- diff --git a/addons/cclua/spine/library/spine/Timeline.lua b/addons/cclua/spine/library/spine/Timeline.lua index 1d4bfcf7..5592a8ae 100644 --- a/addons/cclua/spine/library/spine/Timeline.lua +++ b/addons/cclua/spine/library/spine/Timeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.Timeline --- diff --git a/addons/cclua/spine/library/spine/TrackEntry.lua b/addons/cclua/spine/library/spine/TrackEntry.lua index 9a63601d..b700a96b 100644 --- a/addons/cclua/spine/library/spine/TrackEntry.lua +++ b/addons/cclua/spine/library/spine/TrackEntry.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.TrackEntry ---State for the playback of an animation diff --git a/addons/cclua/spine/library/spine/TransformConstraint.lua b/addons/cclua/spine/library/spine/TransformConstraint.lua index cb529e92..09ce3672 100644 --- a/addons/cclua/spine/library/spine/TransformConstraint.lua +++ b/addons/cclua/spine/library/spine/TransformConstraint.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.TransformConstraint --- diff --git a/addons/cclua/spine/library/spine/TransformConstraintData.lua b/addons/cclua/spine/library/spine/TransformConstraintData.lua index 085dbf4e..ba136c42 100644 --- a/addons/cclua/spine/library/spine/TransformConstraintData.lua +++ b/addons/cclua/spine/library/spine/TransformConstraintData.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.TransformConstraintData --- diff --git a/addons/cclua/spine/library/spine/TransformConstraintTimeline.lua b/addons/cclua/spine/library/spine/TransformConstraintTimeline.lua index 25d4d2fb..6f39da2e 100644 --- a/addons/cclua/spine/library/spine/TransformConstraintTimeline.lua +++ b/addons/cclua/spine/library/spine/TransformConstraintTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.TransformConstraintTimeline --- diff --git a/addons/cclua/spine/library/spine/TranslateTimeline.lua b/addons/cclua/spine/library/spine/TranslateTimeline.lua index bc003110..909a8f71 100644 --- a/addons/cclua/spine/library/spine/TranslateTimeline.lua +++ b/addons/cclua/spine/library/spine/TranslateTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.TranslateTimeline --- diff --git a/addons/cclua/spine/library/spine/TranslateXTimeline.lua b/addons/cclua/spine/library/spine/TranslateXTimeline.lua index f3a5b5b1..3b2ad843 100644 --- a/addons/cclua/spine/library/spine/TranslateXTimeline.lua +++ b/addons/cclua/spine/library/spine/TranslateXTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.TranslateXTimeline --- diff --git a/addons/cclua/spine/library/spine/TranslateYTimeline.lua b/addons/cclua/spine/library/spine/TranslateYTimeline.lua index 1e5bddb8..9fc18cae 100644 --- a/addons/cclua/spine/library/spine/TranslateYTimeline.lua +++ b/addons/cclua/spine/library/spine/TranslateYTimeline.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.TranslateYTimeline --- diff --git a/addons/cclua/spine/library/spine/Updatable.lua b/addons/cclua/spine/library/spine/Updatable.lua index cf39eee1..726c17bb 100644 --- a/addons/cclua/spine/library/spine/Updatable.lua +++ b/addons/cclua/spine/library/spine/Updatable.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.Updatable --- diff --git a/addons/cclua/spine/library/spine/UpdateWorldTransformsListener.lua b/addons/cclua/spine/library/spine/UpdateWorldTransformsListener.lua index 1a20b4c6..6ad7ff55 100644 --- a/addons/cclua/spine/library/spine/UpdateWorldTransformsListener.lua +++ b/addons/cclua/spine/library/spine/UpdateWorldTransformsListener.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.UpdateWorldTransformsListener --- diff --git a/addons/cclua/spine/library/spine/VertexAttachment.lua b/addons/cclua/spine/library/spine/VertexAttachment.lua index fd5de6ef..a8c9f5df 100644 --- a/addons/cclua/spine/library/spine/VertexAttachment.lua +++ b/addons/cclua/spine/library/spine/VertexAttachment.lua @@ -1,3 +1,4 @@ +---AUTO GENERATED, DO NOT MODIFY! ---@meta spine.VertexAttachment ---An attachment with vertices that are transformed by one or more bones and can be deformed by a slot's vertices. @@ -12,7 +13,21 @@ local VertexAttachment = {} ---@param slot spine.Slot ---@param worldVertices olua.float ---@overload fun(self: spine.VertexAttachment, slot: spine.Slot, worldVertices: any) +--- +---Transforms local vertices to world coordinates. +---\param start The index of the first Vertices value to transform. Each vertex has 2 values, x and y. +---\param count The number of world vertex values to output. Must be less than or equal to WorldVerticesLength - start. +---\param worldVertices The output world vertices. Must have a length greater than or equal to offset + count. +---\param offset The worldVertices index to begin writing values. +---\param stride The number of worldVertices entries between the value pairs written. ---@overload fun(self: spine.VertexAttachment, slot: spine.Slot, start: integer, count: integer, worldVertices: olua.float, offset: integer, stride: integer) +--- +---Transforms local vertices to world coordinates. +---\param start The index of the first Vertices value to transform. Each vertex has 2 values, x and y. +---\param count The number of world vertex values to output. Must be less than or equal to WorldVerticesLength - start. +---\param worldVertices The output world vertices. Must have a length greater than or equal to offset + count. +---\param offset The worldVertices index to begin writing values. +---\param stride The number of worldVertices entries between the value pairs written. ---@overload fun(self: spine.VertexAttachment, slot: spine.Slot, start: integer, count: integer, worldVertices: olua.float, offset: integer) ---@overload fun(self: spine.VertexAttachment, slot: spine.Slot, start: integer, count: integer, worldVertices: any, offset: integer, stride: integer) ---@overload fun(self: spine.VertexAttachment, slot: spine.Slot, start: integer, count: integer, worldVertices: any, offset: integer) diff --git a/frameworks/cclua/src/bugly/lua_bugly.cpp b/frameworks/cclua/src/bugly/lua_bugly.cpp index 3fc25316..01f26ff3 100644 --- a/frameworks/cclua/src/bugly/lua_bugly.cpp +++ b/frameworks/cclua/src/bugly/lua_bugly.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_bugly.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -7,8 +7,7 @@ #include "bugly/CrashReport.h" #ifdef CCLUA_BUILD_BUGLY -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_bugly_LogLevel(lua_State *L) +static int _cclua_bugly_LogLevel(lua_State *L) { oluacls_class(L, "cclua.bugly.LogLevel"); oluacls_func(L, "__index", olua_indexerror); @@ -22,6 +21,16 @@ OLUA_LIB int luaopen_cclua_bugly_LogLevel(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_bugly_LogLevel(lua_State *L) +{ + olua_require(L, "bugly", luaopen_bugly); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::bugly::LogLevel"); + } + return 1; +} OLUA_END_DECLS #endif @@ -184,8 +193,7 @@ static int _cclua_bugly_setVersion(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_bugly(lua_State *L) +static int _cclua_bugly(lua_State *L) { oluacls_class(L, "cclua.bugly"); oluacls_func(L, "__gc", _cclua_bugly___gc); @@ -203,6 +211,16 @@ OLUA_LIB int luaopen_cclua_bugly(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_bugly(lua_State *L) +{ + olua_require(L, "bugly", luaopen_bugly); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::bugly"); + } + return 1; +} OLUA_END_DECLS #endif @@ -210,8 +228,8 @@ OLUA_BEGIN_DECLS OLUA_LIB int luaopen_bugly(lua_State *L) { #ifdef CCLUA_BUILD_BUGLY - olua_require(L, "cclua.bugly.LogLevel", luaopen_cclua_bugly_LogLevel); - olua_require(L, "cclua.bugly", luaopen_cclua_bugly); + olua_require(L, "cclua.bugly.LogLevel", _cclua_bugly_LogLevel); + olua_require(L, "cclua.bugly", _cclua_bugly); #endif return 0; diff --git a/frameworks/cclua/src/bugly/lua_bugly.h b/frameworks/cclua/src/bugly/lua_bugly.h index b1a06adc..b230b5fb 100644 --- a/frameworks/cclua/src/bugly/lua_bugly.h +++ b/frameworks/cclua/src/bugly/lua_bugly.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_BUGLY_H__ #define __AUTO_GEN_LUA_BUGLY_H__ diff --git a/frameworks/cclua/src/lua-bindings/lua_box2d.cpp b/frameworks/cclua/src/lua-bindings/lua_box2d.cpp index 34c595f6..6473dcf6 100644 --- a/frameworks/cclua/src/lua-bindings/lua_box2d.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_box2d.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_box2d.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -319,8 +319,7 @@ static int _b2Vec2_y(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2Vec2(lua_State *L) +static int _b2_Vec2(lua_State *L) { oluacls_class(L, "b2.Vec2"); oluacls_func(L, "__gc", _b2Vec2___gc); @@ -339,6 +338,16 @@ OLUA_LIB int luaopen_b2Vec2(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_Vec2(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2Vec2"); + } + return 1; +} OLUA_END_DECLS static int _b2Vec3___gc(lua_State *L) @@ -628,8 +637,7 @@ static int _b2Vec3_z(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2Vec3(lua_State *L) +static int _b2_Vec3(lua_State *L) { oluacls_class(L, "b2.Vec3"); oluacls_func(L, "__gc", _b2Vec3___gc); @@ -643,6 +651,16 @@ OLUA_LIB int luaopen_b2Vec3(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_Vec3(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2Vec3"); + } + return 1; +} OLUA_END_DECLS static int _b2ContactID___gc(lua_State *L) @@ -691,13 +709,13 @@ static int _b2ContactID_cf$2(lua_State *L) olua_startinvoke(L); b2ContactID *self = nullptr; - b2ContactFeature arg1; /** cf */ + b2ContactFeature *arg1; /** cf */ olua_to_object(L, 1, &self, "b2.ContactID"); olua_check_object(L, 2, &arg1, "b2.ContactFeature"); // b2ContactFeature cf - self->cf = arg1; + self->cf = *arg1; olua_endinvoke(L); @@ -781,8 +799,7 @@ static int _b2ContactID_key(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2ContactID(lua_State *L) +static int _b2_ContactID(lua_State *L) { oluacls_class(L, "b2.ContactID"); oluacls_func(L, "__gc", _b2ContactID___gc); @@ -792,6 +809,16 @@ OLUA_LIB int luaopen_b2ContactID(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_ContactID(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2ContactID"); + } + return 1; +} OLUA_END_DECLS static int _b2ContactFeature___gc(lua_State *L) @@ -1042,8 +1069,7 @@ static int _b2ContactFeature_typeB(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2ContactFeature(lua_State *L) +static int _b2_ContactFeature(lua_State *L) { oluacls_class(L, "b2.ContactFeature"); oluacls_func(L, "__gc", _b2ContactFeature___gc); @@ -1055,6 +1081,16 @@ OLUA_LIB int luaopen_b2ContactFeature(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_ContactFeature(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2ContactFeature"); + } + return 1; +} OLUA_END_DECLS static int _b2Color___gc(lua_State *L) @@ -1462,8 +1498,7 @@ static int _b2Color_Set(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2Color(lua_State *L) +static int _b2_Color(lua_State *L) { oluacls_class(L, "b2.Color"); oluacls_func(L, "__gc", _b2Color___gc); @@ -1477,6 +1512,16 @@ OLUA_LIB int luaopen_b2Color(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_Color(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2Color"); + } + return 1; +} OLUA_END_DECLS static int _b2FixtureUserData___gc(lua_State *L) @@ -1573,8 +1618,7 @@ static int _b2FixtureUserData_pointer(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2FixtureUserData(lua_State *L) +static int _b2_FixtureUserData(lua_State *L) { oluacls_class(L, "b2.FixtureUserData"); oluacls_func(L, "__gc", _b2FixtureUserData___gc); @@ -1584,6 +1628,16 @@ OLUA_LIB int luaopen_b2FixtureUserData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_FixtureUserData(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2FixtureUserData"); + } + return 1; +} OLUA_END_DECLS static int _b2Filter___gc(lua_State *L) @@ -1792,8 +1846,7 @@ static int _b2Filter_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2Filter(lua_State *L) +static int _b2_Filter(lua_State *L) { oluacls_class(L, "b2.Filter"); oluacls_func(L, "__gc", _b2Filter___gc); @@ -1805,6 +1858,16 @@ OLUA_LIB int luaopen_b2Filter(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_Filter(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2Filter"); + } + return 1; +} OLUA_END_DECLS static int _b2ManifoldPoint___gc(lua_State *L) @@ -1853,13 +1916,13 @@ static int _b2ManifoldPoint_id$2(lua_State *L) olua_startinvoke(L); b2ManifoldPoint *self = nullptr; - b2ContactID arg1; /** id */ + b2ContactID *arg1; /** id */ olua_to_object(L, 1, &self, "b2.ManifoldPoint"); olua_check_object(L, 2, &arg1, "b2.ContactID"); // b2ContactID id - self->id = arg1; + self->id = *arg1; olua_endinvoke(L); @@ -1909,13 +1972,13 @@ static int _b2ManifoldPoint_localPoint$2(lua_State *L) olua_startinvoke(L); b2ManifoldPoint *self = nullptr; - b2Vec2 arg1; /** localPoint */ + b2Vec2 *arg1; /** localPoint */ olua_to_object(L, 1, &self, "b2.ManifoldPoint"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localPoint - self->localPoint = arg1; + self->localPoint = *arg1; olua_endinvoke(L); @@ -2055,8 +2118,7 @@ static int _b2ManifoldPoint_tangentImpulse(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2ManifoldPoint(lua_State *L) +static int _b2_ManifoldPoint(lua_State *L) { oluacls_class(L, "b2.ManifoldPoint"); oluacls_func(L, "__gc", _b2ManifoldPoint___gc); @@ -2068,6 +2130,16 @@ OLUA_LIB int luaopen_b2ManifoldPoint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_ManifoldPoint(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2ManifoldPoint"); + } + return 1; +} OLUA_END_DECLS static int _b2Rot___gc(lua_State *L) @@ -2344,8 +2416,7 @@ static int _b2Rot_SetIdentity(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2Rot(lua_State *L) +static int _b2_Rot(lua_State *L) { oluacls_class(L, "b2.Rot"); oluacls_func(L, "__gc", _b2Rot___gc); @@ -2364,6 +2435,16 @@ OLUA_LIB int luaopen_b2Rot(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_Rot(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2Rot"); + } + return 1; +} OLUA_END_DECLS static int _b2Draw___gc(lua_State *L) @@ -2390,8 +2471,7 @@ static int _b2Draw___olua_move(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2Draw(lua_State *L) +static int _b2_interface_Draw(lua_State *L) { oluacls_class(L, "b2.interface.Draw"); oluacls_func(L, "__gc", _b2Draw___gc); @@ -2399,6 +2479,16 @@ OLUA_LIB int luaopen_b2Draw(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_interface_Draw(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2Draw"); + } + return 1; +} OLUA_END_DECLS static int _b2DestructionListener___gc(lua_State *L) @@ -2425,8 +2515,7 @@ static int _b2DestructionListener___olua_move(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2DestructionListener(lua_State *L) +static int _b2_interface_DestructionListener(lua_State *L) { oluacls_class(L, "b2.interface.DestructionListener"); oluacls_func(L, "__gc", _b2DestructionListener___gc); @@ -2434,6 +2523,16 @@ OLUA_LIB int luaopen_b2DestructionListener(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_interface_DestructionListener(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2DestructionListener"); + } + return 1; +} OLUA_END_DECLS static int _b2ContactFilter___gc(lua_State *L) @@ -2460,8 +2559,7 @@ static int _b2ContactFilter___olua_move(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2ContactFilter(lua_State *L) +static int _b2_interface_ContactFilter(lua_State *L) { oluacls_class(L, "b2.interface.ContactFilter"); oluacls_func(L, "__gc", _b2ContactFilter___gc); @@ -2469,6 +2567,16 @@ OLUA_LIB int luaopen_b2ContactFilter(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_interface_ContactFilter(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2ContactFilter"); + } + return 1; +} OLUA_END_DECLS static int _b2ContactListener___gc(lua_State *L) @@ -2495,8 +2603,7 @@ static int _b2ContactListener___olua_move(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2ContactListener(lua_State *L) +static int _b2_interface_ContactListener(lua_State *L) { oluacls_class(L, "b2.interface.ContactListener"); oluacls_func(L, "__gc", _b2ContactListener___gc); @@ -2504,6 +2611,16 @@ OLUA_LIB int luaopen_b2ContactListener(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_interface_ContactListener(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2ContactListener"); + } + return 1; +} OLUA_END_DECLS static int _b2QueryCallback___gc(lua_State *L) @@ -2530,8 +2647,7 @@ static int _b2QueryCallback___olua_move(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2QueryCallback(lua_State *L) +static int _b2_interface_QueryCallback(lua_State *L) { oluacls_class(L, "b2.interface.QueryCallback"); oluacls_func(L, "__gc", _b2QueryCallback___gc); @@ -2539,6 +2655,16 @@ OLUA_LIB int luaopen_b2QueryCallback(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_interface_QueryCallback(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2QueryCallback"); + } + return 1; +} OLUA_END_DECLS static int _b2RayCastCallback___gc(lua_State *L) @@ -2565,8 +2691,7 @@ static int _b2RayCastCallback___olua_move(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2RayCastCallback(lua_State *L) +static int _b2_interface_RayCastCallback(lua_State *L) { oluacls_class(L, "b2.interface.RayCastCallback"); oluacls_func(L, "__gc", _b2RayCastCallback___gc); @@ -2574,6 +2699,16 @@ OLUA_LIB int luaopen_b2RayCastCallback(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_interface_RayCastCallback(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2RayCastCallback"); + } + return 1; +} OLUA_END_DECLS static int _box2d_Vec2Array___gc(lua_State *L) @@ -2617,14 +2752,14 @@ static int _box2d_Vec2Array___newindex(lua_State *L) box2d::Vec2Array *self = nullptr; unsigned int arg1 = 0; /** idx */ - b2Vec2 arg2; /** v */ + b2Vec2 *arg2; /** v */ olua_to_object(L, 1, &self, "b2.Vec2Array"); olua_check_integer(L, 2, &arg1); olua_check_object(L, 3, &arg2, "b2.Vec2"); // void __newindex(unsigned int idx, const b2Vec2 &v) - self->__newindex(arg1, arg2); + self->__newindex(arg1, *arg2); olua_endinvoke(L); @@ -3005,13 +3140,13 @@ static int _box2d_Vec2Array_value$2(lua_State *L) olua_startinvoke(L); box2d::Vec2Array *self = nullptr; - b2Vec2 arg1; /** v */ + b2Vec2 *arg1; /** v */ olua_to_object(L, 1, &self, "b2.Vec2Array"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // @setter @name(value) void value(const b2Vec2 &v) - self->value(arg1); + self->value(*arg1); olua_endinvoke(L); @@ -3039,8 +3174,7 @@ static int _box2d_Vec2Array_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_box2d_Vec2Array(lua_State *L) +static int _b2_Vec2Array(lua_State *L) { oluacls_class(L, "b2.Vec2Array"); oluacls_func(L, "__gc", _box2d_Vec2Array___gc); @@ -3060,6 +3194,16 @@ OLUA_LIB int luaopen_box2d_Vec2Array(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_Vec2Array(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: box2d::Vec2Array"); + } + return 1; +} OLUA_END_DECLS static int _box2d_DestructionListener_new(lua_State *L) @@ -3115,7 +3259,7 @@ static int _box2d_DestructionListener_sayGoodbyeToFixture$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](b2Fixture *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](b2Fixture *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -3123,7 +3267,7 @@ static int _box2d_DestructionListener_sayGoodbyeToFixture$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "b2.Fixture"); + olua_push_object(L, cb_arg1, "b2.Fixture"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -3206,7 +3350,7 @@ static int _box2d_DestructionListener_sayGoodbyeToJoint$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](b2Joint *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](b2Joint *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -3214,7 +3358,7 @@ static int _box2d_DestructionListener_sayGoodbyeToJoint$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "b2.Joint"); + olua_push_object(L, cb_arg1, "b2.Joint"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -3258,8 +3402,7 @@ static int _box2d_DestructionListener_sayGoodbyeToJoint(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_box2d_DestructionListener(lua_State *L) +static int _b2_DestructionListener(lua_State *L) { oluacls_class(L, "b2.DestructionListener"); oluacls_func(L, "new", _box2d_DestructionListener_new); @@ -3268,6 +3411,16 @@ OLUA_LIB int luaopen_box2d_DestructionListener(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_DestructionListener(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: box2d::DestructionListener"); + } + return 1; +} OLUA_END_DECLS static int _box2d_ContactFilter_new(lua_State *L) @@ -3323,7 +3476,7 @@ static int _box2d_ContactFilter_shouldCollide$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](b2Fixture *arg1, b2Fixture *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](b2Fixture *cb_arg1, b2Fixture *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); bool ret = false; /** ret */ @@ -3331,8 +3484,8 @@ static int _box2d_ContactFilter_shouldCollide$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "b2.Fixture"); - olua_push_object(L, arg2, "b2.Fixture"); + olua_push_object(L, cb_arg1, "b2.Fixture"); + olua_push_object(L, cb_arg2, "b2.Fixture"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -3381,8 +3534,7 @@ static int _box2d_ContactFilter_shouldCollide(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_box2d_ContactFilter(lua_State *L) +static int _b2_ContactFilter(lua_State *L) { oluacls_class(L, "b2.ContactFilter"); oluacls_func(L, "new", _box2d_ContactFilter_new); @@ -3390,6 +3542,16 @@ OLUA_LIB int luaopen_box2d_ContactFilter(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_ContactFilter(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: box2d::ContactFilter"); + } + return 1; +} OLUA_END_DECLS static int _box2d_ContactListener_beginContact$1(lua_State *L) @@ -3431,7 +3593,7 @@ static int _box2d_ContactListener_beginContact$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](b2Contact *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](b2Contact *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -3439,7 +3601,7 @@ static int _box2d_ContactListener_beginContact$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "b2.Contact"); + olua_push_object(L, cb_arg1, "b2.Contact"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -3522,7 +3684,7 @@ static int _box2d_ContactListener_endContact$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](b2Contact *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](b2Contact *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -3530,7 +3692,7 @@ static int _box2d_ContactListener_endContact$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "b2.Contact"); + olua_push_object(L, cb_arg1, "b2.Contact"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -3627,7 +3789,7 @@ static int _box2d_ContactListener_postSolve$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](b2Contact *arg1, const b2ContactImpulse *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](b2Contact *cb_arg1, const b2ContactImpulse *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -3635,8 +3797,8 @@ static int _box2d_ContactListener_postSolve$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "b2.Contact"); - olua_push_object(L, arg2, "b2.ContactImpulse"); + olua_push_object(L, cb_arg1, "b2.Contact"); + olua_push_object(L, cb_arg2, "b2.ContactImpulse"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -3719,7 +3881,7 @@ static int _box2d_ContactListener_preSolve$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](b2Contact *arg1, const b2Manifold *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](b2Contact *cb_arg1, const b2Manifold *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -3727,8 +3889,8 @@ static int _box2d_ContactListener_preSolve$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "b2.Contact"); - olua_push_object(L, arg2, "b2.Manifold"); + olua_push_object(L, cb_arg1, "b2.Contact"); + olua_push_object(L, cb_arg2, "b2.Manifold"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -3772,8 +3934,7 @@ static int _box2d_ContactListener_preSolve(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_box2d_ContactListener(lua_State *L) +static int _b2_ContactListener(lua_State *L) { oluacls_class(L, "b2.ContactListener"); oluacls_func(L, "new", _box2d_ContactListener_new); @@ -3784,6 +3945,16 @@ OLUA_LIB int luaopen_box2d_ContactListener(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_ContactListener(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: box2d::ContactListener"); + } + return 1; +} OLUA_END_DECLS static int _box2d_QueryCallback_new(lua_State *L) @@ -3839,7 +4010,7 @@ static int _box2d_QueryCallback_reportFixture$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](b2Fixture *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](b2Fixture *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); bool ret = false; /** ret */ @@ -3847,7 +4018,7 @@ static int _box2d_QueryCallback_reportFixture$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "b2.Fixture"); + olua_push_object(L, cb_arg1, "b2.Fixture"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -3896,8 +4067,7 @@ static int _box2d_QueryCallback_reportFixture(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_box2d_QueryCallback(lua_State *L) +static int _b2_QueryCallback(lua_State *L) { oluacls_class(L, "b2.QueryCallback"); oluacls_func(L, "new", _box2d_QueryCallback_new); @@ -3905,6 +4075,16 @@ OLUA_LIB int luaopen_box2d_QueryCallback(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_QueryCallback(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: box2d::QueryCallback"); + } + return 1; +} OLUA_END_DECLS static int _box2d_RayCastCallback_new(lua_State *L) @@ -3960,7 +4140,7 @@ static int _box2d_RayCastCallback_reportFixture$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](b2Fixture *arg1, const b2Vec2 &arg2, const b2Vec2 &arg3, float arg4) { + arg1 = [cb_store, cb_name, cb_ctx](b2Fixture *cb_arg1, const b2Vec2 &cb_arg2, const b2Vec2 &cb_arg3, float cb_arg4) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); float ret = 0; /** ret */ @@ -3968,10 +4148,10 @@ static int _box2d_RayCastCallback_reportFixture$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "b2.Fixture"); - olua_push_object(L, arg2, "b2.Vec2"); - olua_push_object(L, arg3, "b2.Vec2"); - olua_push_number(L, arg4); + olua_push_object(L, cb_arg1, "b2.Fixture"); + olua_push_object(L, cb_arg2, "b2.Vec2"); + olua_push_object(L, cb_arg3, "b2.Vec2"); + olua_push_number(L, cb_arg4); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 4); @@ -4020,8 +4200,7 @@ static int _box2d_RayCastCallback_reportFixture(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_box2d_RayCastCallback(lua_State *L) +static int _b2_RayCastCallback(lua_State *L) { oluacls_class(L, "b2.RayCastCallback"); oluacls_func(L, "new", _box2d_RayCastCallback_new); @@ -4029,10 +4208,19 @@ OLUA_LIB int luaopen_box2d_RayCastCallback(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_box2d_DebugNode_Flags(lua_State *L) +OLUA_LIB int luaopen_b2_RayCastCallback(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: box2d::RayCastCallback"); + } + return 1; +} +OLUA_END_DECLS + +static int _b2_DebugNode_Flags(lua_State *L) { oluacls_class(L, "b2.DebugNode.Flags"); oluacls_func(L, "__index", olua_indexerror); @@ -4045,6 +4233,16 @@ OLUA_LIB int luaopen_box2d_DebugNode_Flags(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_DebugNode_Flags(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: box2d::DebugNode::Flags"); + } + return 1; +} OLUA_END_DECLS static int _box2d_DebugNode_appendFlags(lua_State *L) @@ -4166,8 +4364,7 @@ static int _box2d_DebugNode_setFlags(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_box2d_DebugNode(lua_State *L) +static int _b2_DebugNode(lua_State *L) { oluacls_class(L, "b2.DebugNode"); oluacls_func(L, "appendFlags", _box2d_DebugNode_appendFlags); @@ -4180,6 +4377,16 @@ OLUA_LIB int luaopen_box2d_DebugNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_DebugNode(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: box2d::DebugNode"); + } + return 1; +} OLUA_END_DECLS static int _b2MassData_I$1(lua_State *L) @@ -4284,13 +4491,13 @@ static int _b2MassData_center$2(lua_State *L) olua_startinvoke(L); b2MassData *self = nullptr; - b2Vec2 arg1; /** center */ + b2Vec2 *arg1; /** center */ olua_to_object(L, 1, &self, "b2.MassData"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 center - self->center = arg1; + self->center = *arg1; olua_endinvoke(L); @@ -4374,8 +4581,7 @@ static int _b2MassData_mass(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2MassData(lua_State *L) +static int _b2_MassData(lua_State *L) { oluacls_class(L, "b2.MassData"); oluacls_func(L, "__gc", _b2MassData___gc); @@ -4386,6 +4592,16 @@ OLUA_LIB int luaopen_b2MassData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_MassData(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2MassData"); + } + return 1; +} OLUA_END_DECLS static int _b2Transform___gc(lua_State *L) @@ -4430,14 +4646,14 @@ static int _b2Transform_new$2(lua_State *L) { olua_startinvoke(L); - b2Vec2 arg1; /** position */ - b2Rot arg2; /** rotation */ + b2Vec2 *arg1; /** position */ + b2Rot *arg2; /** rotation */ olua_check_object(L, 1, &arg1, "b2.Vec2"); olua_check_object(L, 2, &arg2, "b2.Rot"); // b2Transform(const b2Vec2 &position, const b2Rot &rotation) - b2Transform *ret = new b2Transform(arg1, arg2); + b2Transform *ret = new b2Transform(*arg1, *arg2); int num_ret = olua_push_object(L, ret, "b2.Transform"); olua_postnew(L, ret); @@ -4489,13 +4705,13 @@ static int _b2Transform_p$2(lua_State *L) olua_startinvoke(L); b2Transform *self = nullptr; - b2Vec2 arg1; /** p */ + b2Vec2 *arg1; /** p */ olua_to_object(L, 1, &self, "b2.Transform"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 p - self->p = arg1; + self->p = *arg1; olua_endinvoke(L); @@ -4545,13 +4761,13 @@ static int _b2Transform_q$2(lua_State *L) olua_startinvoke(L); b2Transform *self = nullptr; - b2Rot arg1; /** q */ + b2Rot *arg1; /** q */ olua_to_object(L, 1, &self, "b2.Transform"); olua_check_object(L, 2, &arg1, "b2.Rot"); // b2Rot q - self->q = arg1; + self->q = *arg1; olua_endinvoke(L); @@ -4584,7 +4800,7 @@ static int _b2Transform_Set(lua_State *L) olua_startinvoke(L); b2Transform *self = nullptr; - b2Vec2 arg1; /** position */ + b2Vec2 *arg1; /** position */ float arg2 = 0; /** angle */ olua_to_object(L, 1, &self, "b2.Transform"); @@ -4592,7 +4808,7 @@ static int _b2Transform_Set(lua_State *L) olua_check_number(L, 3, &arg2); // void Set(const b2Vec2 &position, float angle) - self->Set(arg1, arg2); + self->Set(*arg1, arg2); olua_endinvoke(L); @@ -4615,8 +4831,7 @@ static int _b2Transform_SetIdentity(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2Transform(lua_State *L) +static int _b2_Transform(lua_State *L) { oluacls_class(L, "b2.Transform"); oluacls_func(L, "__gc", _b2Transform___gc); @@ -4629,6 +4844,16 @@ OLUA_LIB int luaopen_b2Transform(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_Transform(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2Transform"); + } + return 1; +} OLUA_END_DECLS static int _b2RayCastInput___gc(lua_State *L) @@ -4733,13 +4958,13 @@ static int _b2RayCastInput_p1$2(lua_State *L) olua_startinvoke(L); b2RayCastInput *self = nullptr; - b2Vec2 arg1; /** p1 */ + b2Vec2 *arg1; /** p1 */ olua_to_object(L, 1, &self, "b2.RayCastInput"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 p1 - self->p1 = arg1; + self->p1 = *arg1; olua_endinvoke(L); @@ -4789,13 +5014,13 @@ static int _b2RayCastInput_p2$2(lua_State *L) olua_startinvoke(L); b2RayCastInput *self = nullptr; - b2Vec2 arg1; /** p2 */ + b2Vec2 *arg1; /** p2 */ olua_to_object(L, 1, &self, "b2.RayCastInput"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 p2 - self->p2 = arg1; + self->p2 = *arg1; olua_endinvoke(L); @@ -4823,8 +5048,7 @@ static int _b2RayCastInput_p2(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2RayCastInput(lua_State *L) +static int _b2_RayCastInput(lua_State *L) { oluacls_class(L, "b2.RayCastInput"); oluacls_func(L, "__gc", _b2RayCastInput___gc); @@ -4835,6 +5059,16 @@ OLUA_LIB int luaopen_b2RayCastInput(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_RayCastInput(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2RayCastInput"); + } + return 1; +} OLUA_END_DECLS static int _b2RayCastOutput___gc(lua_State *L) @@ -4939,13 +5173,13 @@ static int _b2RayCastOutput_normal$2(lua_State *L) olua_startinvoke(L); b2RayCastOutput *self = nullptr; - b2Vec2 arg1; /** normal */ + b2Vec2 *arg1; /** normal */ olua_to_object(L, 1, &self, "b2.RayCastOutput"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 normal - self->normal = arg1; + self->normal = *arg1; olua_endinvoke(L); @@ -4973,8 +5207,7 @@ static int _b2RayCastOutput_normal(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2RayCastOutput(lua_State *L) +static int _b2_RayCastOutput(lua_State *L) { oluacls_class(L, "b2.RayCastOutput"); oluacls_func(L, "__gc", _b2RayCastOutput___gc); @@ -4984,10 +5217,19 @@ OLUA_LIB int luaopen_b2RayCastOutput(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2Shape_Type(lua_State *L) +OLUA_LIB int luaopen_b2_RayCastOutput(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2RayCastOutput"); + } + return 1; +} +OLUA_END_DECLS + +static int _b2_Shape_Type(lua_State *L) { oluacls_class(L, "b2.Shape.Type"); oluacls_func(L, "__index", olua_indexerror); @@ -5000,6 +5242,16 @@ OLUA_LIB int luaopen_b2Shape_Type(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_Shape_Type(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2Shape::Type"); + } + return 1; +} OLUA_END_DECLS static int _b2Shape___gc(lua_State *L) @@ -5032,7 +5284,7 @@ static int _b2Shape_ComputeAABB(lua_State *L) b2Shape *self = nullptr; b2AABB *arg1 = nullptr; /** aabb */ - b2Transform arg2; /** xf */ + b2Transform *arg2; /** xf */ int32 arg3 = 0; /** childIndex */ olua_to_object(L, 1, &self, "b2.Shape"); @@ -5041,7 +5293,7 @@ static int _b2Shape_ComputeAABB(lua_State *L) olua_check_integer(L, 4, &arg3); // void ComputeAABB(b2AABB *aabb, const b2Transform &xf, int32 childIndex) - self->ComputeAABB(arg1, arg2, arg3); + self->ComputeAABB(arg1, *arg2, arg3); olua_endinvoke(L); @@ -5108,8 +5360,8 @@ static int _b2Shape_RayCast(lua_State *L) b2Shape *self = nullptr; b2RayCastOutput *arg1 = nullptr; /** output */ - b2RayCastInput arg2; /** input */ - b2Transform arg3; /** transform */ + b2RayCastInput *arg2; /** input */ + b2Transform *arg3; /** transform */ int32 arg4 = 0; /** childIndex */ olua_to_object(L, 1, &self, "b2.Shape"); @@ -5119,7 +5371,7 @@ static int _b2Shape_RayCast(lua_State *L) olua_check_integer(L, 5, &arg4); // bool RayCast(b2RayCastOutput *output, const b2RayCastInput &input, const b2Transform &transform, int32 childIndex) - bool ret = self->RayCast(arg1, arg2, arg3, arg4); + bool ret = self->RayCast(arg1, *arg2, *arg3, arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -5132,15 +5384,15 @@ static int _b2Shape_TestPoint(lua_State *L) olua_startinvoke(L); b2Shape *self = nullptr; - b2Transform arg1; /** xf */ - b2Vec2 arg2; /** p */ + b2Transform *arg1; /** xf */ + b2Vec2 *arg2; /** p */ olua_to_object(L, 1, &self, "b2.Shape"); olua_check_object(L, 2, &arg1, "b2.Transform"); olua_check_object(L, 3, &arg2, "b2.Vec2"); // bool TestPoint(const b2Transform &xf, const b2Vec2 &p) - bool ret = self->TestPoint(arg1, arg2); + bool ret = self->TestPoint(*arg1, *arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -5148,8 +5400,7 @@ static int _b2Shape_TestPoint(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2Shape(lua_State *L) +static int _b2_Shape(lua_State *L) { oluacls_class(L, "b2.Shape"); oluacls_func(L, "__gc", _b2Shape___gc); @@ -5165,6 +5416,16 @@ OLUA_LIB int luaopen_b2Shape(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_Shape(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2Shape"); + } + return 1; +} OLUA_END_DECLS static int _b2PolygonShape_new(lua_State *L) @@ -5228,7 +5489,7 @@ static int _b2PolygonShape_SetAsBox$2(lua_State *L) b2PolygonShape *self = nullptr; float arg1 = 0; /** hx */ float arg2 = 0; /** hy */ - b2Vec2 arg3; /** center */ + b2Vec2 *arg3; /** center */ float arg4 = 0; /** angle */ olua_to_object(L, 1, &self, "b2.PolygonShape"); @@ -5238,7 +5499,7 @@ static int _b2PolygonShape_SetAsBox$2(lua_State *L) olua_check_number(L, 5, &arg4); // void SetAsBox(float hx, float hy, const b2Vec2 ¢er, float angle) - self->SetAsBox(arg1, arg2, arg3, arg4); + self->SetAsBox(arg1, arg2, *arg3, arg4); olua_endinvoke(L); @@ -5285,8 +5546,7 @@ static int _b2PolygonShape_Validate(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2PolygonShape(lua_State *L) +static int _b2_PolygonShape(lua_State *L) { oluacls_class(L, "b2.PolygonShape"); oluacls_func(L, "new", _b2PolygonShape_new); @@ -5296,6 +5556,16 @@ OLUA_LIB int luaopen_b2PolygonShape(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_PolygonShape(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2PolygonShape"); + } + return 1; +} OLUA_END_DECLS static int _b2EdgeShape_new(lua_State *L) @@ -5317,10 +5587,10 @@ static int _b2EdgeShape_SetOneSided(lua_State *L) olua_startinvoke(L); b2EdgeShape *self = nullptr; - b2Vec2 arg1; /** v0 */ - b2Vec2 arg2; /** v1 */ - b2Vec2 arg3; /** v2 */ - b2Vec2 arg4; /** v3 */ + b2Vec2 *arg1; /** v0 */ + b2Vec2 *arg2; /** v1 */ + b2Vec2 *arg3; /** v2 */ + b2Vec2 *arg4; /** v3 */ olua_to_object(L, 1, &self, "b2.EdgeShape"); olua_check_object(L, 2, &arg1, "b2.Vec2"); @@ -5329,7 +5599,7 @@ static int _b2EdgeShape_SetOneSided(lua_State *L) olua_check_object(L, 5, &arg4, "b2.Vec2"); // void SetOneSided(const b2Vec2 &v0, const b2Vec2 &v1, const b2Vec2 &v2, const b2Vec2 &v3) - self->SetOneSided(arg1, arg2, arg3, arg4); + self->SetOneSided(*arg1, *arg2, *arg3, *arg4); olua_endinvoke(L); @@ -5341,23 +5611,22 @@ static int _b2EdgeShape_SetTwoSided(lua_State *L) olua_startinvoke(L); b2EdgeShape *self = nullptr; - b2Vec2 arg1; /** v1 */ - b2Vec2 arg2; /** v2 */ + b2Vec2 *arg1; /** v1 */ + b2Vec2 *arg2; /** v2 */ olua_to_object(L, 1, &self, "b2.EdgeShape"); olua_check_object(L, 2, &arg1, "b2.Vec2"); olua_check_object(L, 3, &arg2, "b2.Vec2"); // void SetTwoSided(const b2Vec2 &v1, const b2Vec2 &v2) - self->SetTwoSided(arg1, arg2); + self->SetTwoSided(*arg1, *arg2); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2EdgeShape(lua_State *L) +static int _b2_EdgeShape(lua_State *L) { oluacls_class(L, "b2.EdgeShape"); oluacls_func(L, "new", _b2EdgeShape_new); @@ -5366,6 +5635,16 @@ OLUA_LIB int luaopen_b2EdgeShape(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_EdgeShape(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2EdgeShape"); + } + return 1; +} OLUA_END_DECLS static int _b2CircleShape_new(lua_State *L) @@ -5382,14 +5661,23 @@ static int _b2CircleShape_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2CircleShape(lua_State *L) +static int _b2_CircleShape(lua_State *L) { oluacls_class(L, "b2.CircleShape"); oluacls_func(L, "new", _b2CircleShape_new); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_CircleShape(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2CircleShape"); + } + return 1; +} OLUA_END_DECLS static int _b2ChainShape_Clear(lua_State *L) @@ -5415,8 +5703,8 @@ static int _b2ChainShape_CreateChain(lua_State *L) b2ChainShape *self = nullptr; b2Vec2 *arg1 = nullptr; /** vertices */ int32 arg2 = 0; /** count */ - b2Vec2 arg3; /** prevVertex */ - b2Vec2 arg4; /** nextVertex */ + b2Vec2 *arg3; /** prevVertex */ + b2Vec2 *arg4; /** nextVertex */ olua_to_object(L, 1, &self, "b2.ChainShape"); olua_check_object(L, 2, &arg1, "b2.Vec2"); @@ -5425,7 +5713,7 @@ static int _b2ChainShape_CreateChain(lua_State *L) olua_check_object(L, 5, &arg4, "b2.Vec2"); // void CreateChain(const b2Vec2 *vertices, int32 count, const b2Vec2 &prevVertex, const b2Vec2 &nextVertex) - self->CreateChain(arg1, arg2, arg3, arg4); + self->CreateChain(arg1, arg2, *arg3, *arg4); olua_endinvoke(L); @@ -5486,8 +5774,7 @@ static int _b2ChainShape_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2ChainShape(lua_State *L) +static int _b2_ChainShape(lua_State *L) { oluacls_class(L, "b2.ChainShape"); oluacls_func(L, "clear", _b2ChainShape_Clear); @@ -5498,6 +5785,16 @@ OLUA_LIB int luaopen_b2ChainShape(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_ChainShape(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2ChainShape"); + } + return 1; +} OLUA_END_DECLS static int _b2BodyDef___gc(lua_State *L) @@ -6106,13 +6403,13 @@ static int _b2BodyDef_linearVelocity$2(lua_State *L) olua_startinvoke(L); b2BodyDef *self = nullptr; - b2Vec2 arg1; /** linearVelocity */ + b2Vec2 *arg1; /** linearVelocity */ olua_to_object(L, 1, &self, "b2.BodyDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 linearVelocity - self->linearVelocity = arg1; + self->linearVelocity = *arg1; olua_endinvoke(L); @@ -6176,13 +6473,13 @@ static int _b2BodyDef_position$2(lua_State *L) olua_startinvoke(L); b2BodyDef *self = nullptr; - b2Vec2 arg1; /** position */ + b2Vec2 *arg1; /** position */ olua_to_object(L, 1, &self, "b2.BodyDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 position - self->position = arg1; + self->position = *arg1; olua_endinvoke(L); @@ -6288,13 +6585,13 @@ static int _b2BodyDef_userData$2(lua_State *L) olua_startinvoke(L); b2BodyDef *self = nullptr; - b2BodyUserData arg1; /** userData */ + b2BodyUserData *arg1; /** userData */ olua_to_object(L, 1, &self, "b2.BodyDef"); olua_check_object(L, 2, &arg1, "b2.BodyUserData"); // b2BodyUserData userData - self->userData = arg1; + self->userData = *arg1; olua_endinvoke(L); @@ -6322,8 +6619,7 @@ static int _b2BodyDef_userData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2BodyDef(lua_State *L) +static int _b2_BodyDef(lua_State *L) { oluacls_class(L, "b2.BodyDef"); oluacls_func(L, "__gc", _b2BodyDef___gc); @@ -6346,10 +6642,19 @@ OLUA_LIB int luaopen_b2BodyDef(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2BodyType(lua_State *L) +OLUA_LIB int luaopen_b2_BodyDef(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2BodyDef"); + } + return 1; +} +OLUA_END_DECLS + +static int _b2_BodyType(lua_State *L) { oluacls_class(L, "b2.BodyType"); oluacls_func(L, "__index", olua_indexerror); @@ -6360,6 +6665,16 @@ OLUA_LIB int luaopen_b2BodyType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_BodyType(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2BodyType"); + } + return 1; +} OLUA_END_DECLS static int _b2Body___olua_move(lua_State *L) @@ -6399,8 +6714,8 @@ static int _b2Body_ApplyForce(lua_State *L) olua_startinvoke(L); b2Body *self = nullptr; - b2Vec2 arg1; /** force */ - b2Vec2 arg2; /** point */ + b2Vec2 *arg1; /** force */ + b2Vec2 *arg2; /** point */ bool arg3 = false; /** wake */ olua_to_object(L, 1, &self, "b2.Body"); @@ -6409,7 +6724,7 @@ static int _b2Body_ApplyForce(lua_State *L) olua_check_bool(L, 4, &arg3); // void ApplyForce(const b2Vec2 &force, const b2Vec2 &point, bool wake) - self->ApplyForce(arg1, arg2, arg3); + self->ApplyForce(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -6421,7 +6736,7 @@ static int _b2Body_ApplyForceToCenter(lua_State *L) olua_startinvoke(L); b2Body *self = nullptr; - b2Vec2 arg1; /** force */ + b2Vec2 *arg1; /** force */ bool arg2 = false; /** wake */ olua_to_object(L, 1, &self, "b2.Body"); @@ -6429,7 +6744,7 @@ static int _b2Body_ApplyForceToCenter(lua_State *L) olua_check_bool(L, 3, &arg2); // void ApplyForceToCenter(const b2Vec2 &force, bool wake) - self->ApplyForceToCenter(arg1, arg2); + self->ApplyForceToCenter(*arg1, arg2); olua_endinvoke(L); @@ -6441,8 +6756,8 @@ static int _b2Body_ApplyLinearImpulse(lua_State *L) olua_startinvoke(L); b2Body *self = nullptr; - b2Vec2 arg1; /** impulse */ - b2Vec2 arg2; /** point */ + b2Vec2 *arg1; /** impulse */ + b2Vec2 *arg2; /** point */ bool arg3 = false; /** wake */ olua_to_object(L, 1, &self, "b2.Body"); @@ -6451,7 +6766,7 @@ static int _b2Body_ApplyLinearImpulse(lua_State *L) olua_check_bool(L, 4, &arg3); // void ApplyLinearImpulse(const b2Vec2 &impulse, const b2Vec2 &point, bool wake) - self->ApplyLinearImpulse(arg1, arg2, arg3); + self->ApplyLinearImpulse(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -6463,7 +6778,7 @@ static int _b2Body_ApplyLinearImpulseToCenter(lua_State *L) olua_startinvoke(L); b2Body *self = nullptr; - b2Vec2 arg1; /** impulse */ + b2Vec2 *arg1; /** impulse */ bool arg2 = false; /** wake */ olua_to_object(L, 1, &self, "b2.Body"); @@ -6471,7 +6786,7 @@ static int _b2Body_ApplyLinearImpulseToCenter(lua_State *L) olua_check_bool(L, 3, &arg2); // void ApplyLinearImpulseToCenter(const b2Vec2 &impulse, bool wake) - self->ApplyLinearImpulseToCenter(arg1, arg2); + self->ApplyLinearImpulseToCenter(*arg1, arg2); olua_endinvoke(L); @@ -6770,13 +7085,13 @@ static int _b2Body_GetLinearVelocityFromLocalPoint(lua_State *L) olua_startinvoke(L); b2Body *self = nullptr; - b2Vec2 arg1; /** localPoint */ + b2Vec2 *arg1; /** localPoint */ olua_to_object(L, 1, &self, "b2.Body"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 GetLinearVelocityFromLocalPoint(const b2Vec2 &localPoint) - b2Vec2 ret = self->GetLinearVelocityFromLocalPoint(arg1); + b2Vec2 ret = self->GetLinearVelocityFromLocalPoint(*arg1); int num_ret = olua_pushcopy_object(L, ret, "b2.Vec2"); olua_endinvoke(L); @@ -6789,13 +7104,13 @@ static int _b2Body_GetLinearVelocityFromWorldPoint(lua_State *L) olua_startinvoke(L); b2Body *self = nullptr; - b2Vec2 arg1; /** worldPoint */ + b2Vec2 *arg1; /** worldPoint */ olua_to_object(L, 1, &self, "b2.Body"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 GetLinearVelocityFromWorldPoint(const b2Vec2 &worldPoint) - b2Vec2 ret = self->GetLinearVelocityFromWorldPoint(arg1); + b2Vec2 ret = self->GetLinearVelocityFromWorldPoint(*arg1); int num_ret = olua_pushcopy_object(L, ret, "b2.Vec2"); olua_endinvoke(L); @@ -6825,13 +7140,13 @@ static int _b2Body_GetLocalPoint(lua_State *L) olua_startinvoke(L); b2Body *self = nullptr; - b2Vec2 arg1; /** worldPoint */ + b2Vec2 *arg1; /** worldPoint */ olua_to_object(L, 1, &self, "b2.Body"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 GetLocalPoint(const b2Vec2 &worldPoint) - b2Vec2 ret = self->GetLocalPoint(arg1); + b2Vec2 ret = self->GetLocalPoint(*arg1); int num_ret = olua_pushcopy_object(L, ret, "b2.Vec2"); olua_endinvoke(L); @@ -6844,13 +7159,13 @@ static int _b2Body_GetLocalVector(lua_State *L) olua_startinvoke(L); b2Body *self = nullptr; - b2Vec2 arg1; /** worldVector */ + b2Vec2 *arg1; /** worldVector */ olua_to_object(L, 1, &self, "b2.Body"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 GetLocalVector(const b2Vec2 &worldVector) - b2Vec2 ret = self->GetLocalVector(arg1); + b2Vec2 ret = self->GetLocalVector(*arg1); int num_ret = olua_pushcopy_object(L, ret, "b2.Vec2"); olua_endinvoke(L); @@ -7016,13 +7331,13 @@ static int _b2Body_GetWorldPoint(lua_State *L) olua_startinvoke(L); b2Body *self = nullptr; - b2Vec2 arg1; /** localPoint */ + b2Vec2 *arg1; /** localPoint */ olua_to_object(L, 1, &self, "b2.Body"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 GetWorldPoint(const b2Vec2 &localPoint) - b2Vec2 ret = self->GetWorldPoint(arg1); + b2Vec2 ret = self->GetWorldPoint(*arg1); int num_ret = olua_pushcopy_object(L, ret, "b2.Vec2"); olua_endinvoke(L); @@ -7035,13 +7350,13 @@ static int _b2Body_GetWorldVector(lua_State *L) olua_startinvoke(L); b2Body *self = nullptr; - b2Vec2 arg1; /** localVector */ + b2Vec2 *arg1; /** localVector */ olua_to_object(L, 1, &self, "b2.Body"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 GetWorldVector(const b2Vec2 &localVector) - b2Vec2 ret = self->GetWorldVector(arg1); + b2Vec2 ret = self->GetWorldVector(*arg1); int num_ret = olua_pushcopy_object(L, ret, "b2.Vec2"); olua_endinvoke(L); @@ -7299,13 +7614,13 @@ static int _b2Body_SetLinearVelocity(lua_State *L) olua_startinvoke(L); b2Body *self = nullptr; - b2Vec2 arg1; /** v */ + b2Vec2 *arg1; /** v */ olua_to_object(L, 1, &self, "b2.Body"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // void SetLinearVelocity(const b2Vec2 &v) - self->SetLinearVelocity(arg1); + self->SetLinearVelocity(*arg1); olua_endinvoke(L); @@ -7353,7 +7668,7 @@ static int _b2Body_SetTransform(lua_State *L) olua_startinvoke(L); b2Body *self = nullptr; - b2Vec2 arg1; /** position */ + b2Vec2 *arg1; /** position */ float arg2 = 0; /** angle */ olua_to_object(L, 1, &self, "b2.Body"); @@ -7361,7 +7676,7 @@ static int _b2Body_SetTransform(lua_State *L) olua_check_number(L, 3, &arg2); // void SetTransform(const b2Vec2 &position, float angle) - self->SetTransform(arg1, arg2); + self->SetTransform(*arg1, arg2); olua_endinvoke(L); @@ -7386,8 +7701,7 @@ static int _b2Body_SetType(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2Body(lua_State *L) +static int _b2_Body(lua_State *L) { oluacls_class(L, "b2.Body"); oluacls_func(L, "__olua_move", _b2Body___olua_move); @@ -7472,6 +7786,16 @@ OLUA_LIB int luaopen_b2Body(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_Body(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2Body"); + } + return 1; +} OLUA_END_DECLS static int _b2BodyUserData___gc(lua_State *L) @@ -7568,8 +7892,7 @@ static int _b2BodyUserData_pointer(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2BodyUserData(lua_State *L) +static int _b2_BodyUserData(lua_State *L) { oluacls_class(L, "b2.BodyUserData"); oluacls_func(L, "__gc", _b2BodyUserData___gc); @@ -7579,6 +7902,16 @@ OLUA_LIB int luaopen_b2BodyUserData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_BodyUserData(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2BodyUserData"); + } + return 1; +} OLUA_END_DECLS static int _b2FixtureDef___gc(lua_State *L) @@ -7683,13 +8016,13 @@ static int _b2FixtureDef_filter$2(lua_State *L) olua_startinvoke(L); b2FixtureDef *self = nullptr; - b2Filter arg1; /** filter */ + b2Filter *arg1; /** filter */ olua_to_object(L, 1, &self, "b2.FixtureDef"); olua_check_object(L, 2, &arg1, "b2.Filter"); // b2Filter filter - self->filter = arg1; + self->filter = *arg1; olua_endinvoke(L); @@ -8033,13 +8366,13 @@ static int _b2FixtureDef_userData$2(lua_State *L) olua_startinvoke(L); b2FixtureDef *self = nullptr; - b2FixtureUserData arg1; /** userData */ + b2FixtureUserData *arg1; /** userData */ olua_to_object(L, 1, &self, "b2.FixtureDef"); olua_check_object(L, 2, &arg1, "b2.FixtureUserData"); // b2FixtureUserData userData - self->userData = arg1; + self->userData = *arg1; olua_endinvoke(L); @@ -8067,8 +8400,7 @@ static int _b2FixtureDef_userData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2FixtureDef(lua_State *L) +static int _b2_FixtureDef(lua_State *L) { oluacls_class(L, "b2.FixtureDef"); oluacls_func(L, "__gc", _b2FixtureDef___gc); @@ -8085,6 +8417,16 @@ OLUA_LIB int luaopen_b2FixtureDef(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_FixtureDef(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2FixtureDef"); + } + return 1; +} OLUA_END_DECLS static int _b2Fixture___gc(lua_State *L) @@ -8359,7 +8701,7 @@ static int _b2Fixture_RayCast(lua_State *L) b2Fixture *self = nullptr; b2RayCastOutput *arg1 = nullptr; /** output */ - b2RayCastInput arg2; /** input */ + b2RayCastInput *arg2; /** input */ int32 arg3 = 0; /** childIndex */ olua_to_object(L, 1, &self, "b2.Fixture"); @@ -8368,7 +8710,7 @@ static int _b2Fixture_RayCast(lua_State *L) olua_check_integer(L, 4, &arg3); // bool RayCast(b2RayCastOutput *output, const b2RayCastInput &input, int32 childIndex) - bool ret = self->RayCast(arg1, arg2, arg3); + bool ret = self->RayCast(arg1, *arg2, arg3); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -8415,13 +8757,13 @@ static int _b2Fixture_SetFilterData(lua_State *L) olua_startinvoke(L); b2Fixture *self = nullptr; - b2Filter arg1; /** filter */ + b2Filter *arg1; /** filter */ olua_to_object(L, 1, &self, "b2.Fixture"); olua_check_object(L, 2, &arg1, "b2.Filter"); // void SetFilterData(const b2Filter &filter) - self->SetFilterData(arg1); + self->SetFilterData(*arg1); olua_endinvoke(L); @@ -8505,13 +8847,13 @@ static int _b2Fixture_TestPoint(lua_State *L) olua_startinvoke(L); b2Fixture *self = nullptr; - b2Vec2 arg1; /** p */ + b2Vec2 *arg1; /** p */ olua_to_object(L, 1, &self, "b2.Fixture"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // bool TestPoint(const b2Vec2 &p) - bool ret = self->TestPoint(arg1); + bool ret = self->TestPoint(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -8519,8 +8861,7 @@ static int _b2Fixture_TestPoint(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2Fixture(lua_State *L) +static int _b2_Fixture(lua_State *L) { oluacls_class(L, "b2.Fixture"); oluacls_func(L, "__gc", _b2Fixture___gc); @@ -8562,6 +8903,16 @@ OLUA_LIB int luaopen_b2Fixture(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_Fixture(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2Fixture"); + } + return 1; +} OLUA_END_DECLS static int _b2JointDef___gc(lua_State *L) @@ -8848,13 +9199,13 @@ static int _b2JointDef_userData$2(lua_State *L) olua_startinvoke(L); b2JointDef *self = nullptr; - b2JointUserData arg1; /** userData */ + b2JointUserData *arg1; /** userData */ olua_to_object(L, 1, &self, "b2.JointDef"); olua_check_object(L, 2, &arg1, "b2.JointUserData"); // b2JointUserData userData - self->userData = arg1; + self->userData = *arg1; olua_endinvoke(L); @@ -8882,8 +9233,7 @@ static int _b2JointDef_userData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2JointDef(lua_State *L) +static int _b2_JointDef(lua_State *L) { oluacls_class(L, "b2.JointDef"); oluacls_func(L, "__gc", _b2JointDef___gc); @@ -8897,10 +9247,19 @@ OLUA_LIB int luaopen_b2JointDef(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2JointType(lua_State *L) +OLUA_LIB int luaopen_b2_JointDef(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2JointDef"); + } + return 1; +} +OLUA_END_DECLS + +static int _b2_JointType(lua_State *L) { oluacls_class(L, "b2.JointType"); oluacls_func(L, "__index", olua_indexerror); @@ -8919,6 +9278,16 @@ OLUA_LIB int luaopen_b2JointType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_JointType(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2JointType"); + } + return 1; +} OLUA_END_DECLS static int _b2Joint___olua_move(lua_State *L) @@ -9163,21 +9532,20 @@ static int _b2Joint_ShiftOrigin(lua_State *L) olua_startinvoke(L); b2Joint *self = nullptr; - b2Vec2 arg1; /** newOrigin */ + b2Vec2 *arg1; /** newOrigin */ olua_to_object(L, 1, &self, "b2.Joint"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // void ShiftOrigin(const b2Vec2 &newOrigin) - self->ShiftOrigin(arg1); + self->ShiftOrigin(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2Joint(lua_State *L) +static int _b2_Joint(lua_State *L) { oluacls_class(L, "b2.Joint"); oluacls_func(L, "__olua_move", _b2Joint___olua_move); @@ -9207,6 +9575,16 @@ OLUA_LIB int luaopen_b2Joint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_Joint(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2Joint"); + } + return 1; +} OLUA_END_DECLS static int _b2DistanceJointDef_damping$1(lua_State *L) @@ -9272,8 +9650,8 @@ static int _b2DistanceJointDef_Initialize(lua_State *L) b2DistanceJointDef *self = nullptr; b2Body *arg1 = nullptr; /** bodyA */ b2Body *arg2 = nullptr; /** bodyB */ - b2Vec2 arg3; /** anchorA */ - b2Vec2 arg4; /** anchorB */ + b2Vec2 *arg3; /** anchorA */ + b2Vec2 *arg4; /** anchorB */ olua_to_object(L, 1, &self, "b2.DistanceJointDef"); olua_check_object(L, 2, &arg1, "b2.Body"); @@ -9282,7 +9660,7 @@ static int _b2DistanceJointDef_Initialize(lua_State *L) olua_check_object(L, 5, &arg4, "b2.Vec2"); // void Initialize(b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchorA, const b2Vec2 &anchorB) - self->Initialize(arg1, arg2, arg3, arg4); + self->Initialize(arg1, arg2, *arg3, *arg4); olua_endinvoke(L); @@ -9367,13 +9745,13 @@ static int _b2DistanceJointDef_localAnchorA$2(lua_State *L) olua_startinvoke(L); b2DistanceJointDef *self = nullptr; - b2Vec2 arg1; /** localAnchorA */ + b2Vec2 *arg1; /** localAnchorA */ olua_to_object(L, 1, &self, "b2.DistanceJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localAnchorA - self->localAnchorA = arg1; + self->localAnchorA = *arg1; olua_endinvoke(L); @@ -9423,13 +9801,13 @@ static int _b2DistanceJointDef_localAnchorB$2(lua_State *L) olua_startinvoke(L); b2DistanceJointDef *self = nullptr; - b2Vec2 arg1; /** localAnchorB */ + b2Vec2 *arg1; /** localAnchorB */ olua_to_object(L, 1, &self, "b2.DistanceJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localAnchorB - self->localAnchorB = arg1; + self->localAnchorB = *arg1; olua_endinvoke(L); @@ -9639,8 +10017,7 @@ static int _b2DistanceJointDef_stiffness(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2DistanceJointDef(lua_State *L) +static int _b2_DistanceJointDef(lua_State *L) { oluacls_class(L, "b2.DistanceJointDef"); oluacls_func(L, "initialize", _b2DistanceJointDef_Initialize); @@ -9655,6 +10032,16 @@ OLUA_LIB int luaopen_b2DistanceJointDef(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_DistanceJointDef(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2DistanceJointDef"); + } + return 1; +} OLUA_END_DECLS static int _b2DistanceJoint___gc(lua_State *L) @@ -9898,8 +10285,7 @@ static int _b2DistanceJoint_SetStiffness(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2DistanceJoint(lua_State *L) +static int _b2_DistanceJoint(lua_State *L) { oluacls_class(L, "b2.DistanceJoint"); oluacls_func(L, "__gc", _b2DistanceJoint___gc); @@ -9927,6 +10313,16 @@ OLUA_LIB int luaopen_b2DistanceJoint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_DistanceJoint(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2DistanceJoint"); + } + return 1; +} OLUA_END_DECLS static int _b2FrictionJointDef_Initialize(lua_State *L) @@ -9936,7 +10332,7 @@ static int _b2FrictionJointDef_Initialize(lua_State *L) b2FrictionJointDef *self = nullptr; b2Body *arg1 = nullptr; /** bodyA */ b2Body *arg2 = nullptr; /** bodyB */ - b2Vec2 arg3; /** anchor */ + b2Vec2 *arg3; /** anchor */ olua_to_object(L, 1, &self, "b2.FrictionJointDef"); olua_check_object(L, 2, &arg1, "b2.Body"); @@ -9944,7 +10340,7 @@ static int _b2FrictionJointDef_Initialize(lua_State *L) olua_check_object(L, 4, &arg3, "b2.Vec2"); // void Initialize(b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchor) - self->Initialize(arg1, arg2, arg3); + self->Initialize(arg1, arg2, *arg3); olua_endinvoke(L); @@ -9973,13 +10369,13 @@ static int _b2FrictionJointDef_localAnchorA$2(lua_State *L) olua_startinvoke(L); b2FrictionJointDef *self = nullptr; - b2Vec2 arg1; /** localAnchorA */ + b2Vec2 *arg1; /** localAnchorA */ olua_to_object(L, 1, &self, "b2.FrictionJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localAnchorA - self->localAnchorA = arg1; + self->localAnchorA = *arg1; olua_endinvoke(L); @@ -10029,13 +10425,13 @@ static int _b2FrictionJointDef_localAnchorB$2(lua_State *L) olua_startinvoke(L); b2FrictionJointDef *self = nullptr; - b2Vec2 arg1; /** localAnchorB */ + b2Vec2 *arg1; /** localAnchorB */ olua_to_object(L, 1, &self, "b2.FrictionJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localAnchorB - self->localAnchorB = arg1; + self->localAnchorB = *arg1; olua_endinvoke(L); @@ -10189,8 +10585,7 @@ static int _b2FrictionJointDef_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2FrictionJointDef(lua_State *L) +static int _b2_FrictionJointDef(lua_State *L) { oluacls_class(L, "b2.FrictionJointDef"); oluacls_func(L, "initialize", _b2FrictionJointDef_Initialize); @@ -10202,6 +10597,16 @@ OLUA_LIB int luaopen_b2FrictionJointDef(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_FrictionJointDef(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2FrictionJointDef"); + } + return 1; +} OLUA_END_DECLS static int _b2FrictionJoint___gc(lua_State *L) @@ -10320,8 +10725,7 @@ static int _b2FrictionJoint_SetMaxTorque(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2FrictionJoint(lua_State *L) +static int _b2_FrictionJoint(lua_State *L) { oluacls_class(L, "b2.FrictionJoint"); oluacls_func(L, "__gc", _b2FrictionJoint___gc); @@ -10338,6 +10742,16 @@ OLUA_LIB int luaopen_b2FrictionJoint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_FrictionJoint(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2FrictionJoint"); + } + return 1; +} OLUA_END_DECLS static int _b2GearJointDef_joint1$1(lua_State *L) @@ -10522,8 +10936,7 @@ static int _b2GearJointDef_ratio(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2GearJointDef(lua_State *L) +static int _b2_GearJointDef(lua_State *L) { oluacls_class(L, "b2.GearJointDef"); oluacls_func(L, "new", _b2GearJointDef_new); @@ -10533,6 +10946,16 @@ OLUA_LIB int luaopen_b2GearJointDef(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_GearJointDef(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2GearJointDef"); + } + return 1; +} OLUA_END_DECLS static int _b2GearJoint___gc(lua_State *L) @@ -10616,8 +11039,7 @@ static int _b2GearJoint_SetRatio(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2GearJoint(lua_State *L) +static int _b2_GearJoint(lua_State *L) { oluacls_class(L, "b2.GearJoint"); oluacls_func(L, "__gc", _b2GearJoint___gc); @@ -10631,6 +11053,16 @@ OLUA_LIB int luaopen_b2GearJoint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_GearJoint(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2GearJoint"); + } + return 1; +} OLUA_END_DECLS static int _b2MotorJointDef_angularOffset$1(lua_State *L) @@ -10787,13 +11219,13 @@ static int _b2MotorJointDef_linearOffset$2(lua_State *L) olua_startinvoke(L); b2MotorJointDef *self = nullptr; - b2Vec2 arg1; /** linearOffset */ + b2Vec2 *arg1; /** linearOffset */ olua_to_object(L, 1, &self, "b2.MotorJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 linearOffset - self->linearOffset = arg1; + self->linearOffset = *arg1; olua_endinvoke(L); @@ -10947,8 +11379,7 @@ static int _b2MotorJointDef_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2MotorJointDef(lua_State *L) +static int _b2_MotorJointDef(lua_State *L) { oluacls_class(L, "b2.MotorJointDef"); oluacls_func(L, "initialize", _b2MotorJointDef_Initialize); @@ -10961,6 +11392,16 @@ OLUA_LIB int luaopen_b2MotorJointDef(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_MotorJointDef(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2MotorJointDef"); + } + return 1; +} OLUA_END_DECLS static int _b2MotorJoint___gc(lua_State *L) @@ -11101,13 +11542,13 @@ static int _b2MotorJoint_SetLinearOffset(lua_State *L) olua_startinvoke(L); b2MotorJoint *self = nullptr; - b2Vec2 arg1; /** linearOffset */ + b2Vec2 *arg1; /** linearOffset */ olua_to_object(L, 1, &self, "b2.MotorJoint"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // void SetLinearOffset(const b2Vec2 &linearOffset) - self->SetLinearOffset(arg1); + self->SetLinearOffset(*arg1); olua_endinvoke(L); @@ -11150,8 +11591,7 @@ static int _b2MotorJoint_SetMaxTorque(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2MotorJoint(lua_State *L) +static int _b2_MotorJoint(lua_State *L) { oluacls_class(L, "b2.MotorJoint"); oluacls_func(L, "__gc", _b2MotorJoint___gc); @@ -11173,6 +11613,16 @@ OLUA_LIB int luaopen_b2MotorJoint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_MotorJoint(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2MotorJoint"); + } + return 1; +} OLUA_END_DECLS static int _b2MouseJointDef_damping$1(lua_State *L) @@ -11379,13 +11829,13 @@ static int _b2MouseJointDef_target$2(lua_State *L) olua_startinvoke(L); b2MouseJointDef *self = nullptr; - b2Vec2 arg1; /** target */ + b2Vec2 *arg1; /** target */ olua_to_object(L, 1, &self, "b2.MouseJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 target - self->target = arg1; + self->target = *arg1; olua_endinvoke(L); @@ -11413,8 +11863,7 @@ static int _b2MouseJointDef_target(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2MouseJointDef(lua_State *L) +static int _b2_MouseJointDef(lua_State *L) { oluacls_class(L, "b2.MouseJointDef"); oluacls_func(L, "new", _b2MouseJointDef_new); @@ -11425,6 +11874,16 @@ OLUA_LIB int luaopen_b2MouseJointDef(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_MouseJointDef(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2MouseJointDef"); + } + return 1; +} OLUA_END_DECLS static int _b2MouseJoint___gc(lua_State *L) @@ -11566,21 +12025,20 @@ static int _b2MouseJoint_SetTarget(lua_State *L) olua_startinvoke(L); b2MouseJoint *self = nullptr; - b2Vec2 arg1; /** target */ + b2Vec2 *arg1; /** target */ olua_to_object(L, 1, &self, "b2.MouseJoint"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // void SetTarget(const b2Vec2 &target) - self->SetTarget(arg1); + self->SetTarget(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2MouseJoint(lua_State *L) +static int _b2_MouseJoint(lua_State *L) { oluacls_class(L, "b2.MouseJoint"); oluacls_func(L, "__gc", _b2MouseJoint___gc); @@ -11599,6 +12057,16 @@ OLUA_LIB int luaopen_b2MouseJoint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_MouseJoint(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2MouseJoint"); + } + return 1; +} OLUA_END_DECLS static int _b2PrismaticJointDef_enableLimit$1(lua_State *L) @@ -11720,8 +12188,8 @@ static int _b2PrismaticJointDef_Initialize(lua_State *L) b2PrismaticJointDef *self = nullptr; b2Body *arg1 = nullptr; /** bodyA */ b2Body *arg2 = nullptr; /** bodyB */ - b2Vec2 arg3; /** anchor */ - b2Vec2 arg4; /** axis */ + b2Vec2 *arg3; /** anchor */ + b2Vec2 *arg4; /** axis */ olua_to_object(L, 1, &self, "b2.PrismaticJointDef"); olua_check_object(L, 2, &arg1, "b2.Body"); @@ -11730,7 +12198,7 @@ static int _b2PrismaticJointDef_Initialize(lua_State *L) olua_check_object(L, 5, &arg4, "b2.Vec2"); // void Initialize(b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchor, const b2Vec2 &axis) - self->Initialize(arg1, arg2, arg3, arg4); + self->Initialize(arg1, arg2, *arg3, *arg4); olua_endinvoke(L); @@ -11759,13 +12227,13 @@ static int _b2PrismaticJointDef_localAnchorA$2(lua_State *L) olua_startinvoke(L); b2PrismaticJointDef *self = nullptr; - b2Vec2 arg1; /** localAnchorA */ + b2Vec2 *arg1; /** localAnchorA */ olua_to_object(L, 1, &self, "b2.PrismaticJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localAnchorA - self->localAnchorA = arg1; + self->localAnchorA = *arg1; olua_endinvoke(L); @@ -11815,13 +12283,13 @@ static int _b2PrismaticJointDef_localAnchorB$2(lua_State *L) olua_startinvoke(L); b2PrismaticJointDef *self = nullptr; - b2Vec2 arg1; /** localAnchorB */ + b2Vec2 *arg1; /** localAnchorB */ olua_to_object(L, 1, &self, "b2.PrismaticJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localAnchorB - self->localAnchorB = arg1; + self->localAnchorB = *arg1; olua_endinvoke(L); @@ -11871,13 +12339,13 @@ static int _b2PrismaticJointDef_localAxisA$2(lua_State *L) olua_startinvoke(L); b2PrismaticJointDef *self = nullptr; - b2Vec2 arg1; /** localAxisA */ + b2Vec2 *arg1; /** localAxisA */ olua_to_object(L, 1, &self, "b2.PrismaticJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localAxisA - self->localAxisA = arg1; + self->localAxisA = *arg1; olua_endinvoke(L); @@ -12199,8 +12667,7 @@ static int _b2PrismaticJointDef_upperTranslation(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2PrismaticJointDef(lua_State *L) +static int _b2_PrismaticJointDef(lua_State *L) { oluacls_class(L, "b2.PrismaticJointDef"); oluacls_func(L, "initialize", _b2PrismaticJointDef_Initialize); @@ -12218,6 +12685,16 @@ OLUA_LIB int luaopen_b2PrismaticJointDef(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_PrismaticJointDef(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2PrismaticJointDef"); + } + return 1; +} OLUA_END_DECLS static int _b2PrismaticJoint___gc(lua_State *L) @@ -12547,8 +13024,7 @@ static int _b2PrismaticJoint_SetMotorSpeed(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2PrismaticJoint(lua_State *L) +static int _b2_PrismaticJoint(lua_State *L) { oluacls_class(L, "b2.PrismaticJoint"); oluacls_func(L, "__gc", _b2PrismaticJoint___gc); @@ -12585,6 +13061,16 @@ OLUA_LIB int luaopen_b2PrismaticJoint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_PrismaticJoint(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2PrismaticJoint"); + } + return 1; +} OLUA_END_DECLS static int _b2PulleyJointDef_groundAnchorA$1(lua_State *L) @@ -12609,13 +13095,13 @@ static int _b2PulleyJointDef_groundAnchorA$2(lua_State *L) olua_startinvoke(L); b2PulleyJointDef *self = nullptr; - b2Vec2 arg1; /** groundAnchorA */ + b2Vec2 *arg1; /** groundAnchorA */ olua_to_object(L, 1, &self, "b2.PulleyJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 groundAnchorA - self->groundAnchorA = arg1; + self->groundAnchorA = *arg1; olua_endinvoke(L); @@ -12665,13 +13151,13 @@ static int _b2PulleyJointDef_groundAnchorB$2(lua_State *L) olua_startinvoke(L); b2PulleyJointDef *self = nullptr; - b2Vec2 arg1; /** groundAnchorB */ + b2Vec2 *arg1; /** groundAnchorB */ olua_to_object(L, 1, &self, "b2.PulleyJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 groundAnchorB - self->groundAnchorB = arg1; + self->groundAnchorB = *arg1; olua_endinvoke(L); @@ -12706,10 +13192,10 @@ static int _b2PulleyJointDef_Initialize(lua_State *L) b2PulleyJointDef *self = nullptr; b2Body *arg1 = nullptr; /** bodyA */ b2Body *arg2 = nullptr; /** bodyB */ - b2Vec2 arg3; /** groundAnchorA */ - b2Vec2 arg4; /** groundAnchorB */ - b2Vec2 arg5; /** anchorA */ - b2Vec2 arg6; /** anchorB */ + b2Vec2 *arg3; /** groundAnchorA */ + b2Vec2 *arg4; /** groundAnchorB */ + b2Vec2 *arg5; /** anchorA */ + b2Vec2 *arg6; /** anchorB */ float arg7 = 0; /** ratio */ olua_to_object(L, 1, &self, "b2.PulleyJointDef"); @@ -12722,7 +13208,7 @@ static int _b2PulleyJointDef_Initialize(lua_State *L) olua_check_number(L, 8, &arg7); // void Initialize(b2Body *bodyA, b2Body *bodyB, const b2Vec2 &groundAnchorA, const b2Vec2 &groundAnchorB, const b2Vec2 &anchorA, const b2Vec2 &anchorB, float ratio) - self->Initialize(arg1, arg2, arg3, arg4, arg5, arg6, arg7); + self->Initialize(arg1, arg2, *arg3, *arg4, *arg5, *arg6, arg7); olua_endinvoke(L); @@ -12863,13 +13349,13 @@ static int _b2PulleyJointDef_localAnchorA$2(lua_State *L) olua_startinvoke(L); b2PulleyJointDef *self = nullptr; - b2Vec2 arg1; /** localAnchorA */ + b2Vec2 *arg1; /** localAnchorA */ olua_to_object(L, 1, &self, "b2.PulleyJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localAnchorA - self->localAnchorA = arg1; + self->localAnchorA = *arg1; olua_endinvoke(L); @@ -12919,13 +13405,13 @@ static int _b2PulleyJointDef_localAnchorB$2(lua_State *L) olua_startinvoke(L); b2PulleyJointDef *self = nullptr; - b2Vec2 arg1; /** localAnchorB */ + b2Vec2 *arg1; /** localAnchorB */ olua_to_object(L, 1, &self, "b2.PulleyJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localAnchorB - self->localAnchorB = arg1; + self->localAnchorB = *arg1; olua_endinvoke(L); @@ -13023,8 +13509,7 @@ static int _b2PulleyJointDef_ratio(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2PulleyJointDef(lua_State *L) +static int _b2_PulleyJointDef(lua_State *L) { oluacls_class(L, "b2.PulleyJointDef"); oluacls_func(L, "initialize", _b2PulleyJointDef_Initialize); @@ -13039,6 +13524,16 @@ OLUA_LIB int luaopen_b2PulleyJointDef(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_PulleyJointDef(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2PulleyJointDef"); + } + return 1; +} OLUA_END_DECLS static int _b2PulleyJoint___gc(lua_State *L) @@ -13172,8 +13667,7 @@ static int _b2PulleyJoint_GetRatio(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2PulleyJoint(lua_State *L) +static int _b2_PulleyJoint(lua_State *L) { oluacls_class(L, "b2.PulleyJoint"); oluacls_func(L, "__gc", _b2PulleyJoint___gc); @@ -13194,6 +13688,16 @@ OLUA_LIB int luaopen_b2PulleyJoint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_PulleyJoint(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2PulleyJoint"); + } + return 1; +} OLUA_END_DECLS static int _b2RevoluteJointDef_enableLimit$1(lua_State *L) @@ -13315,7 +13819,7 @@ static int _b2RevoluteJointDef_Initialize(lua_State *L) b2RevoluteJointDef *self = nullptr; b2Body *arg1 = nullptr; /** bodyA */ b2Body *arg2 = nullptr; /** bodyB */ - b2Vec2 arg3; /** anchor */ + b2Vec2 *arg3; /** anchor */ olua_to_object(L, 1, &self, "b2.RevoluteJointDef"); olua_check_object(L, 2, &arg1, "b2.Body"); @@ -13323,7 +13827,7 @@ static int _b2RevoluteJointDef_Initialize(lua_State *L) olua_check_object(L, 4, &arg3, "b2.Vec2"); // void Initialize(b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchor) - self->Initialize(arg1, arg2, arg3); + self->Initialize(arg1, arg2, *arg3); olua_endinvoke(L); @@ -13352,13 +13856,13 @@ static int _b2RevoluteJointDef_localAnchorA$2(lua_State *L) olua_startinvoke(L); b2RevoluteJointDef *self = nullptr; - b2Vec2 arg1; /** localAnchorA */ + b2Vec2 *arg1; /** localAnchorA */ olua_to_object(L, 1, &self, "b2.RevoluteJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localAnchorA - self->localAnchorA = arg1; + self->localAnchorA = *arg1; olua_endinvoke(L); @@ -13408,13 +13912,13 @@ static int _b2RevoluteJointDef_localAnchorB$2(lua_State *L) olua_startinvoke(L); b2RevoluteJointDef *self = nullptr; - b2Vec2 arg1; /** localAnchorB */ + b2Vec2 *arg1; /** localAnchorB */ olua_to_object(L, 1, &self, "b2.RevoluteJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localAnchorB - self->localAnchorB = arg1; + self->localAnchorB = *arg1; olua_endinvoke(L); @@ -13736,8 +14240,7 @@ static int _b2RevoluteJointDef_upperAngle(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2RevoluteJointDef(lua_State *L) +static int _b2_RevoluteJointDef(lua_State *L) { oluacls_class(L, "b2.RevoluteJointDef"); oluacls_func(L, "initialize", _b2RevoluteJointDef_Initialize); @@ -13754,6 +14257,16 @@ OLUA_LIB int luaopen_b2RevoluteJointDef(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_RevoluteJointDef(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2RevoluteJointDef"); + } + return 1; +} OLUA_END_DECLS static int _b2RevoluteJoint___gc(lua_State *L) @@ -14066,8 +14579,7 @@ static int _b2RevoluteJoint_SetMotorSpeed(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2RevoluteJoint(lua_State *L) +static int _b2_RevoluteJoint(lua_State *L) { oluacls_class(L, "b2.RevoluteJoint"); oluacls_func(L, "__gc", _b2RevoluteJoint___gc); @@ -14102,6 +14614,16 @@ OLUA_LIB int luaopen_b2RevoluteJoint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_RevoluteJoint(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2RevoluteJoint"); + } + return 1; +} OLUA_END_DECLS static int _b2WeldJointDef_damping$1(lua_State *L) @@ -14167,7 +14689,7 @@ static int _b2WeldJointDef_Initialize(lua_State *L) b2WeldJointDef *self = nullptr; b2Body *arg1 = nullptr; /** bodyA */ b2Body *arg2 = nullptr; /** bodyB */ - b2Vec2 arg3; /** anchor */ + b2Vec2 *arg3; /** anchor */ olua_to_object(L, 1, &self, "b2.WeldJointDef"); olua_check_object(L, 2, &arg1, "b2.Body"); @@ -14175,7 +14697,7 @@ static int _b2WeldJointDef_Initialize(lua_State *L) olua_check_object(L, 4, &arg3, "b2.Vec2"); // void Initialize(b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchor) - self->Initialize(arg1, arg2, arg3); + self->Initialize(arg1, arg2, *arg3); olua_endinvoke(L); @@ -14204,13 +14726,13 @@ static int _b2WeldJointDef_localAnchorA$2(lua_State *L) olua_startinvoke(L); b2WeldJointDef *self = nullptr; - b2Vec2 arg1; /** localAnchorA */ + b2Vec2 *arg1; /** localAnchorA */ olua_to_object(L, 1, &self, "b2.WeldJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localAnchorA - self->localAnchorA = arg1; + self->localAnchorA = *arg1; olua_endinvoke(L); @@ -14260,13 +14782,13 @@ static int _b2WeldJointDef_localAnchorB$2(lua_State *L) olua_startinvoke(L); b2WeldJointDef *self = nullptr; - b2Vec2 arg1; /** localAnchorB */ + b2Vec2 *arg1; /** localAnchorB */ olua_to_object(L, 1, &self, "b2.WeldJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localAnchorB - self->localAnchorB = arg1; + self->localAnchorB = *arg1; olua_endinvoke(L); @@ -14420,8 +14942,7 @@ static int _b2WeldJointDef_stiffness(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2WeldJointDef(lua_State *L) +static int _b2_WeldJointDef(lua_State *L) { oluacls_class(L, "b2.WeldJointDef"); oluacls_func(L, "initialize", _b2WeldJointDef_Initialize); @@ -14434,6 +14955,16 @@ OLUA_LIB int luaopen_b2WeldJointDef(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_WeldJointDef(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2WeldJointDef"); + } + return 1; +} OLUA_END_DECLS static int _b2WeldJoint___gc(lua_State *L) @@ -14569,8 +15100,7 @@ static int _b2WeldJoint_SetStiffness(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2WeldJoint(lua_State *L) +static int _b2_WeldJoint(lua_State *L) { oluacls_class(L, "b2.WeldJoint"); oluacls_func(L, "__gc", _b2WeldJoint___gc); @@ -14589,6 +15119,16 @@ OLUA_LIB int luaopen_b2WeldJoint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_WeldJoint(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2WeldJoint"); + } + return 1; +} OLUA_END_DECLS static int _b2WheelJointDef_damping$1(lua_State *L) @@ -14766,8 +15306,8 @@ static int _b2WheelJointDef_Initialize(lua_State *L) b2WheelJointDef *self = nullptr; b2Body *arg1 = nullptr; /** bodyA */ b2Body *arg2 = nullptr; /** bodyB */ - b2Vec2 arg3; /** anchor */ - b2Vec2 arg4; /** axis */ + b2Vec2 *arg3; /** anchor */ + b2Vec2 *arg4; /** axis */ olua_to_object(L, 1, &self, "b2.WheelJointDef"); olua_check_object(L, 2, &arg1, "b2.Body"); @@ -14776,7 +15316,7 @@ static int _b2WheelJointDef_Initialize(lua_State *L) olua_check_object(L, 5, &arg4, "b2.Vec2"); // void Initialize(b2Body *bodyA, b2Body *bodyB, const b2Vec2 &anchor, const b2Vec2 &axis) - self->Initialize(arg1, arg2, arg3, arg4); + self->Initialize(arg1, arg2, *arg3, *arg4); olua_endinvoke(L); @@ -14805,13 +15345,13 @@ static int _b2WheelJointDef_localAnchorA$2(lua_State *L) olua_startinvoke(L); b2WheelJointDef *self = nullptr; - b2Vec2 arg1; /** localAnchorA */ + b2Vec2 *arg1; /** localAnchorA */ olua_to_object(L, 1, &self, "b2.WheelJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localAnchorA - self->localAnchorA = arg1; + self->localAnchorA = *arg1; olua_endinvoke(L); @@ -14861,13 +15401,13 @@ static int _b2WheelJointDef_localAnchorB$2(lua_State *L) olua_startinvoke(L); b2WheelJointDef *self = nullptr; - b2Vec2 arg1; /** localAnchorB */ + b2Vec2 *arg1; /** localAnchorB */ olua_to_object(L, 1, &self, "b2.WheelJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localAnchorB - self->localAnchorB = arg1; + self->localAnchorB = *arg1; olua_endinvoke(L); @@ -14917,13 +15457,13 @@ static int _b2WheelJointDef_localAxisA$2(lua_State *L) olua_startinvoke(L); b2WheelJointDef *self = nullptr; - b2Vec2 arg1; /** localAxisA */ + b2Vec2 *arg1; /** localAxisA */ olua_to_object(L, 1, &self, "b2.WheelJointDef"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localAxisA - self->localAxisA = arg1; + self->localAxisA = *arg1; olua_endinvoke(L); @@ -15245,8 +15785,7 @@ static int _b2WheelJointDef_upperTranslation(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2WheelJointDef(lua_State *L) +static int _b2_WheelJointDef(lua_State *L) { oluacls_class(L, "b2.WheelJointDef"); oluacls_func(L, "initialize", _b2WheelJointDef_Initialize); @@ -15265,6 +15804,16 @@ OLUA_LIB int luaopen_b2WheelJointDef(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_WheelJointDef(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2WheelJointDef"); + } + return 1; +} OLUA_END_DECLS static int _b2WheelJoint___gc(lua_State *L) @@ -15681,8 +16230,7 @@ static int _b2WheelJoint_SetStiffness(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2WheelJoint(lua_State *L) +static int _b2_WheelJoint(lua_State *L) { oluacls_class(L, "b2.WheelJoint"); oluacls_func(L, "__gc", _b2WheelJoint___gc); @@ -15727,6 +16275,16 @@ OLUA_LIB int luaopen_b2WheelJoint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_WheelJoint(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2WheelJoint"); + } + return 1; +} OLUA_END_DECLS static int _b2JointEdge___gc(lua_State *L) @@ -15977,8 +16535,7 @@ static int _b2JointEdge_prev(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2JointEdge(lua_State *L) +static int _b2_JointEdge(lua_State *L) { oluacls_class(L, "b2.JointEdge"); oluacls_func(L, "__gc", _b2JointEdge___gc); @@ -15990,6 +16547,16 @@ OLUA_LIB int luaopen_b2JointEdge(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_JointEdge(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2JointEdge"); + } + return 1; +} OLUA_END_DECLS static int _b2JointUserData___gc(lua_State *L) @@ -16086,8 +16653,7 @@ static int _b2JointUserData_pointer(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2JointUserData(lua_State *L) +static int _b2_JointUserData(lua_State *L) { oluacls_class(L, "b2.JointUserData"); oluacls_func(L, "__gc", _b2JointUserData___gc); @@ -16097,6 +16663,16 @@ OLUA_LIB int luaopen_b2JointUserData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_JointUserData(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2JointUserData"); + } + return 1; +} OLUA_END_DECLS static int _b2ContactEdge___gc(lua_State *L) @@ -16347,8 +16923,7 @@ static int _b2ContactEdge_prev(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2ContactEdge(lua_State *L) +static int _b2_ContactEdge(lua_State *L) { oluacls_class(L, "b2.ContactEdge"); oluacls_func(L, "__gc", _b2ContactEdge___gc); @@ -16360,6 +16935,16 @@ OLUA_LIB int luaopen_b2ContactEdge(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_ContactEdge(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2ContactEdge"); + } + return 1; +} OLUA_END_DECLS static int _b2ContactManager___gc(lua_State *L) @@ -16470,8 +17055,7 @@ static int _b2ContactManager_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2ContactManager(lua_State *L) +static int _b2_ContactManager(lua_State *L) { oluacls_class(L, "b2.ContactManager"); oluacls_func(L, "__gc", _b2ContactManager___gc); @@ -16484,6 +17068,16 @@ OLUA_LIB int luaopen_b2ContactManager(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_ContactManager(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2ContactManager"); + } + return 1; +} OLUA_END_DECLS static int _b2Profile___gc(lua_State *L) @@ -16958,8 +17552,7 @@ static int _b2Profile_step(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2Profile(lua_State *L) +static int _b2_Profile(lua_State *L) { oluacls_class(L, "b2.Profile"); oluacls_func(L, "__gc", _b2Profile___gc); @@ -16975,6 +17568,16 @@ OLUA_LIB int luaopen_b2Profile(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_Profile(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2Profile"); + } + return 1; +} OLUA_END_DECLS static int _b2BroadPhase___gc(lua_State *L) @@ -17006,7 +17609,7 @@ static int _b2BroadPhase_CreateProxy(lua_State *L) olua_startinvoke(L); b2BroadPhase *self = nullptr; - b2AABB arg1; /** aabb */ + b2AABB *arg1; /** aabb */ void *arg2 = nullptr; /** userData */ olua_to_object(L, 1, &self, "b2.BroadPhase"); @@ -17014,7 +17617,7 @@ static int _b2BroadPhase_CreateProxy(lua_State *L) olua_check_object(L, 3, &arg2, "void *"); // int32 CreateProxy(const b2AABB &aabb, void *userData) - int32 ret = self->CreateProxy(arg1, arg2); + int32 ret = self->CreateProxy(*arg1, arg2); int num_ret = olua_push_integer(L, ret); olua_endinvoke(L); @@ -17152,8 +17755,8 @@ static int _b2BroadPhase_MoveProxy(lua_State *L) b2BroadPhase *self = nullptr; int32 arg1 = 0; /** proxyId */ - b2AABB arg2; /** aabb */ - b2Vec2 arg3; /** displacement */ + b2AABB *arg2; /** aabb */ + b2Vec2 *arg3; /** displacement */ olua_to_object(L, 1, &self, "b2.BroadPhase"); olua_check_integer(L, 2, &arg1); @@ -17161,7 +17764,7 @@ static int _b2BroadPhase_MoveProxy(lua_State *L) olua_check_object(L, 4, &arg3, "b2.Vec2"); // void MoveProxy(int32 proxyId, const b2AABB &aabb, const b2Vec2 &displacement) - self->MoveProxy(arg1, arg2, arg3); + self->MoveProxy(arg1, *arg2, *arg3); olua_endinvoke(L); @@ -17187,13 +17790,13 @@ static int _b2BroadPhase_ShiftOrigin(lua_State *L) olua_startinvoke(L); b2BroadPhase *self = nullptr; - b2Vec2 arg1; /** newOrigin */ + b2Vec2 *arg1; /** newOrigin */ olua_to_object(L, 1, &self, "b2.BroadPhase"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // void ShiftOrigin(const b2Vec2 &newOrigin) - self->ShiftOrigin(arg1); + self->ShiftOrigin(*arg1); olua_endinvoke(L); @@ -17239,8 +17842,7 @@ static int _b2BroadPhase_TouchProxy(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2BroadPhase(lua_State *L) +static int _b2_BroadPhase(lua_State *L) { oluacls_class(L, "b2.BroadPhase"); oluacls_func(L, "__gc", _b2BroadPhase___gc); @@ -17265,6 +17867,16 @@ OLUA_LIB int luaopen_b2BroadPhase(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_BroadPhase(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2BroadPhase"); + } + return 1; +} OLUA_END_DECLS static int _b2AABB___gc(lua_State *L) @@ -17296,13 +17908,13 @@ static int _b2AABB_Combine$1(lua_State *L) olua_startinvoke(L); b2AABB *self = nullptr; - b2AABB arg1; /** aabb */ + b2AABB *arg1; /** aabb */ olua_to_object(L, 1, &self, "b2.AABB"); olua_check_object(L, 2, &arg1, "b2.AABB"); // void Combine(const b2AABB &aabb) - self->Combine(arg1); + self->Combine(*arg1); olua_endinvoke(L); @@ -17314,15 +17926,15 @@ static int _b2AABB_Combine$2(lua_State *L) olua_startinvoke(L); b2AABB *self = nullptr; - b2AABB arg1; /** aabb1 */ - b2AABB arg2; /** aabb2 */ + b2AABB *arg1; /** aabb1 */ + b2AABB *arg2; /** aabb2 */ olua_to_object(L, 1, &self, "b2.AABB"); olua_check_object(L, 2, &arg1, "b2.AABB"); olua_check_object(L, 3, &arg2, "b2.AABB"); // void Combine(const b2AABB &aabb1, const b2AABB &aabb2) - self->Combine(arg1, arg2); + self->Combine(*arg1, *arg2); olua_endinvoke(L); @@ -17357,13 +17969,13 @@ static int _b2AABB_Contains(lua_State *L) olua_startinvoke(L); b2AABB *self = nullptr; - b2AABB arg1; /** aabb */ + b2AABB *arg1; /** aabb */ olua_to_object(L, 1, &self, "b2.AABB"); olua_check_object(L, 2, &arg1, "b2.AABB"); // bool Contains(const b2AABB &aabb) - bool ret = self->Contains(arg1); + bool ret = self->Contains(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -17461,13 +18073,13 @@ static int _b2AABB_lowerBound$2(lua_State *L) olua_startinvoke(L); b2AABB *self = nullptr; - b2Vec2 arg1; /** lowerBound */ + b2Vec2 *arg1; /** lowerBound */ olua_to_object(L, 1, &self, "b2.AABB"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 lowerBound - self->lowerBound = arg1; + self->lowerBound = *arg1; olua_endinvoke(L); @@ -17501,14 +18113,14 @@ static int _b2AABB_RayCast(lua_State *L) b2AABB *self = nullptr; b2RayCastOutput *arg1 = nullptr; /** output */ - b2RayCastInput arg2; /** input */ + b2RayCastInput *arg2; /** input */ olua_to_object(L, 1, &self, "b2.AABB"); olua_check_object(L, 2, &arg1, "b2.RayCastOutput"); olua_check_object(L, 3, &arg2, "b2.RayCastInput"); // bool RayCast(b2RayCastOutput *output, const b2RayCastInput &input) - bool ret = self->RayCast(arg1, arg2); + bool ret = self->RayCast(arg1, *arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -17538,13 +18150,13 @@ static int _b2AABB_upperBound$2(lua_State *L) olua_startinvoke(L); b2AABB *self = nullptr; - b2Vec2 arg1; /** upperBound */ + b2Vec2 *arg1; /** upperBound */ olua_to_object(L, 1, &self, "b2.AABB"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 upperBound - self->upperBound = arg1; + self->upperBound = *arg1; olua_endinvoke(L); @@ -17572,8 +18184,7 @@ static int _b2AABB_upperBound(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2AABB(lua_State *L) +static int _b2_AABB(lua_State *L) { oluacls_class(L, "b2.AABB"); oluacls_func(L, "__gc", _b2AABB___gc); @@ -17594,6 +18205,16 @@ OLUA_LIB int luaopen_b2AABB(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_AABB(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2AABB"); + } + return 1; +} OLUA_END_DECLS static int _b2Contact___olua_move(lua_State *L) @@ -17614,8 +18235,8 @@ static int _b2Contact_Evaluate(lua_State *L) b2Contact *self = nullptr; b2Manifold *arg1 = nullptr; /** manifold */ - b2Transform arg2; /** xfA */ - b2Transform arg3; /** xfB */ + b2Transform *arg2; /** xfA */ + b2Transform *arg3; /** xfB */ olua_to_object(L, 1, &self, "b2.Contact"); olua_check_object(L, 2, &arg1, "b2.Manifold"); @@ -17623,7 +18244,7 @@ static int _b2Contact_Evaluate(lua_State *L) olua_check_object(L, 4, &arg3, "b2.Transform"); // void Evaluate(b2Manifold *manifold, const b2Transform &xfA, const b2Transform &xfB) - self->Evaluate(arg1, arg2, arg3); + self->Evaluate(arg1, *arg2, *arg3); olua_endinvoke(L); @@ -17990,8 +18611,7 @@ static int _b2Contact_SetTangentSpeed(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2Contact(lua_State *L) +static int _b2_Contact(lua_State *L) { oluacls_class(L, "b2.Contact"); oluacls_func(L, "__olua_move", _b2Contact___olua_move); @@ -18032,6 +18652,16 @@ OLUA_LIB int luaopen_b2Contact(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_Contact(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2Contact"); + } + return 1; +} OLUA_END_DECLS static int _b2ContactImpulse___gc(lua_State *L) @@ -18114,8 +18744,7 @@ static int _b2ContactImpulse_count(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2ContactImpulse(lua_State *L) +static int _b2_ContactImpulse(lua_State *L) { oluacls_class(L, "b2.ContactImpulse"); oluacls_func(L, "__gc", _b2ContactImpulse___gc); @@ -18124,6 +18753,16 @@ OLUA_LIB int luaopen_b2ContactImpulse(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_ContactImpulse(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2ContactImpulse"); + } + return 1; +} OLUA_END_DECLS static int _b2Manifold___gc(lua_State *L) @@ -18172,13 +18811,13 @@ static int _b2Manifold_localNormal$2(lua_State *L) olua_startinvoke(L); b2Manifold *self = nullptr; - b2Vec2 arg1; /** localNormal */ + b2Vec2 *arg1; /** localNormal */ olua_to_object(L, 1, &self, "b2.Manifold"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localNormal - self->localNormal = arg1; + self->localNormal = *arg1; olua_endinvoke(L); @@ -18228,13 +18867,13 @@ static int _b2Manifold_localPoint$2(lua_State *L) olua_startinvoke(L); b2Manifold *self = nullptr; - b2Vec2 arg1; /** localPoint */ + b2Vec2 *arg1; /** localPoint */ olua_to_object(L, 1, &self, "b2.Manifold"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 localPoint - self->localPoint = arg1; + self->localPoint = *arg1; olua_endinvoke(L); @@ -18374,8 +19013,7 @@ static int _b2Manifold_type(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2Manifold(lua_State *L) +static int _b2_Manifold(lua_State *L) { oluacls_class(L, "b2.Manifold"); oluacls_func(L, "__gc", _b2Manifold___gc); @@ -18387,10 +19025,19 @@ OLUA_LIB int luaopen_b2Manifold(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2Manifold_Type(lua_State *L) +OLUA_LIB int luaopen_b2_Manifold(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2Manifold"); + } + return 1; +} +OLUA_END_DECLS + +static int _b2_Manifold_Type(lua_State *L) { oluacls_class(L, "b2.Manifold.Type"); oluacls_func(L, "__index", olua_indexerror); @@ -18401,6 +19048,16 @@ OLUA_LIB int luaopen_b2Manifold_Type(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_Manifold_Type(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2Manifold::Type"); + } + return 1; +} OLUA_END_DECLS static int _b2World___gc(lua_State *L) @@ -18876,12 +19533,12 @@ static int _b2World_new(lua_State *L) { olua_startinvoke(L); - b2Vec2 arg1; /** gravity */ + b2Vec2 *arg1; /** gravity */ olua_check_object(L, 1, &arg1, "b2.Vec2"); // b2World(const b2Vec2 &gravity) - b2World *ret = new b2World(arg1); + b2World *ret = new b2World(*arg1); int num_ret = olua_push_object(L, ret, "b2.World"); olua_postnew(L, ret); @@ -18896,14 +19553,14 @@ static int _b2World_QueryAABB(lua_State *L) b2World *self = nullptr; b2QueryCallback *arg1 = nullptr; /** callback */ - b2AABB arg2; /** aabb */ + b2AABB *arg2; /** aabb */ olua_to_object(L, 1, &self, "b2.World"); olua_check_object(L, 2, &arg1, "b2.interface.QueryCallback"); olua_check_object(L, 3, &arg2, "b2.AABB"); // void QueryAABB(b2QueryCallback *callback, const b2AABB &aabb) - self->QueryAABB(arg1, arg2); + self->QueryAABB(arg1, *arg2); olua_endinvoke(L); @@ -18916,8 +19573,8 @@ static int _b2World_RayCast(lua_State *L) b2World *self = nullptr; b2RayCastCallback *arg1 = nullptr; /** callback */ - b2Vec2 arg2; /** point1 */ - b2Vec2 arg3; /** point2 */ + b2Vec2 *arg2; /** point1 */ + b2Vec2 *arg3; /** point2 */ olua_to_object(L, 1, &self, "b2.World"); olua_check_object(L, 2, &arg1, "b2.interface.RayCastCallback"); @@ -18925,7 +19582,7 @@ static int _b2World_RayCast(lua_State *L) olua_check_object(L, 4, &arg3, "b2.Vec2"); // void RayCast(b2RayCastCallback *callback, const b2Vec2 &point1, const b2Vec2 &point2) - self->RayCast(arg1, arg2, arg3); + self->RayCast(arg1, *arg2, *arg3); olua_endinvoke(L); @@ -19075,13 +19732,13 @@ static int _b2World_SetGravity(lua_State *L) olua_startinvoke(L); b2World *self = nullptr; - b2Vec2 arg1; /** gravity */ + b2Vec2 *arg1; /** gravity */ olua_to_object(L, 1, &self, "b2.World"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // void SetGravity(const b2Vec2 &gravity) - self->SetGravity(arg1); + self->SetGravity(*arg1); olua_endinvoke(L); @@ -19129,13 +19786,13 @@ static int _b2World_ShiftOrigin(lua_State *L) olua_startinvoke(L); b2World *self = nullptr; - b2Vec2 arg1; /** newOrigin */ + b2Vec2 *arg1; /** newOrigin */ olua_to_object(L, 1, &self, "b2.World"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // void ShiftOrigin(const b2Vec2 &newOrigin) - self->ShiftOrigin(arg1); + self->ShiftOrigin(*arg1); olua_endinvoke(L); @@ -19164,8 +19821,7 @@ static int _b2World_Step(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2World(lua_State *L) +static int _b2_World(lua_State *L) { oluacls_class(L, "b2.World"); oluacls_func(L, "__gc", _b2World___gc); @@ -19233,6 +19889,16 @@ OLUA_LIB int luaopen_b2World(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_World(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2World"); + } + return 1; +} OLUA_END_DECLS static int _b2WorldManifold___gc(lua_State *L) @@ -19265,9 +19931,9 @@ static int _b2WorldManifold_Initialize(lua_State *L) b2WorldManifold *self = nullptr; b2Manifold *arg1 = nullptr; /** manifold */ - b2Transform arg2; /** xfA */ + b2Transform *arg2; /** xfA */ float arg3 = 0; /** radiusA */ - b2Transform arg4; /** xfB */ + b2Transform *arg4; /** xfB */ float arg5 = 0; /** radiusB */ olua_to_object(L, 1, &self, "b2.WorldManifold"); @@ -19278,7 +19944,7 @@ static int _b2WorldManifold_Initialize(lua_State *L) olua_check_number(L, 6, &arg5); // void Initialize(const b2Manifold *manifold, const b2Transform &xfA, float radiusA, const b2Transform &xfB, float radiusB) - self->Initialize(arg1, arg2, arg3, arg4, arg5); + self->Initialize(arg1, *arg2, arg3, *arg4, arg5); olua_endinvoke(L); @@ -19307,13 +19973,13 @@ static int _b2WorldManifold_normal$2(lua_State *L) olua_startinvoke(L); b2WorldManifold *self = nullptr; - b2Vec2 arg1; /** normal */ + b2Vec2 *arg1; /** normal */ olua_to_object(L, 1, &self, "b2.WorldManifold"); olua_check_object(L, 2, &arg1, "b2.Vec2"); // b2Vec2 normal - self->normal = arg1; + self->normal = *arg1; olua_endinvoke(L); @@ -19341,8 +20007,7 @@ static int _b2WorldManifold_normal(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_b2WorldManifold(lua_State *L) +static int _b2_WorldManifold(lua_State *L) { oluacls_class(L, "b2.WorldManifold"); oluacls_func(L, "__gc", _b2WorldManifold___gc); @@ -19352,86 +20017,96 @@ OLUA_LIB int luaopen_b2WorldManifold(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_b2_WorldManifold(lua_State *L) +{ + olua_require(L, "box2d", luaopen_box2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: b2WorldManifold"); + } + return 1; +} OLUA_END_DECLS OLUA_BEGIN_DECLS OLUA_LIB int luaopen_box2d(lua_State *L) { - olua_require(L, "b2.Vec2", luaopen_b2Vec2); - olua_require(L, "b2.Vec3", luaopen_b2Vec3); - olua_require(L, "b2.ContactID", luaopen_b2ContactID); - olua_require(L, "b2.ContactFeature", luaopen_b2ContactFeature); - olua_require(L, "b2.Color", luaopen_b2Color); - olua_require(L, "b2.FixtureUserData", luaopen_b2FixtureUserData); - olua_require(L, "b2.Filter", luaopen_b2Filter); - olua_require(L, "b2.ManifoldPoint", luaopen_b2ManifoldPoint); - olua_require(L, "b2.Rot", luaopen_b2Rot); - olua_require(L, "b2.interface.Draw", luaopen_b2Draw); - olua_require(L, "b2.interface.DestructionListener", luaopen_b2DestructionListener); - olua_require(L, "b2.interface.ContactFilter", luaopen_b2ContactFilter); - olua_require(L, "b2.interface.ContactListener", luaopen_b2ContactListener); - olua_require(L, "b2.interface.QueryCallback", luaopen_b2QueryCallback); - olua_require(L, "b2.interface.RayCastCallback", luaopen_b2RayCastCallback); - olua_require(L, "b2.Vec2Array", luaopen_box2d_Vec2Array); - olua_require(L, "b2.DestructionListener", luaopen_box2d_DestructionListener); - olua_require(L, "b2.ContactFilter", luaopen_box2d_ContactFilter); - olua_require(L, "b2.ContactListener", luaopen_box2d_ContactListener); - olua_require(L, "b2.QueryCallback", luaopen_box2d_QueryCallback); - olua_require(L, "b2.RayCastCallback", luaopen_box2d_RayCastCallback); - olua_require(L, "b2.DebugNode.Flags", luaopen_box2d_DebugNode_Flags); - olua_require(L, "b2.DebugNode", luaopen_box2d_DebugNode); - olua_require(L, "b2.MassData", luaopen_b2MassData); - olua_require(L, "b2.Transform", luaopen_b2Transform); - olua_require(L, "b2.RayCastInput", luaopen_b2RayCastInput); - olua_require(L, "b2.RayCastOutput", luaopen_b2RayCastOutput); - olua_require(L, "b2.Shape.Type", luaopen_b2Shape_Type); - olua_require(L, "b2.Shape", luaopen_b2Shape); - olua_require(L, "b2.PolygonShape", luaopen_b2PolygonShape); - olua_require(L, "b2.EdgeShape", luaopen_b2EdgeShape); - olua_require(L, "b2.CircleShape", luaopen_b2CircleShape); - olua_require(L, "b2.ChainShape", luaopen_b2ChainShape); - olua_require(L, "b2.BodyDef", luaopen_b2BodyDef); - olua_require(L, "b2.BodyType", luaopen_b2BodyType); - olua_require(L, "b2.Body", luaopen_b2Body); - olua_require(L, "b2.BodyUserData", luaopen_b2BodyUserData); - olua_require(L, "b2.FixtureDef", luaopen_b2FixtureDef); - olua_require(L, "b2.Fixture", luaopen_b2Fixture); - olua_require(L, "b2.JointDef", luaopen_b2JointDef); - olua_require(L, "b2.JointType", luaopen_b2JointType); - olua_require(L, "b2.Joint", luaopen_b2Joint); - olua_require(L, "b2.DistanceJointDef", luaopen_b2DistanceJointDef); - olua_require(L, "b2.DistanceJoint", luaopen_b2DistanceJoint); - olua_require(L, "b2.FrictionJointDef", luaopen_b2FrictionJointDef); - olua_require(L, "b2.FrictionJoint", luaopen_b2FrictionJoint); - olua_require(L, "b2.GearJointDef", luaopen_b2GearJointDef); - olua_require(L, "b2.GearJoint", luaopen_b2GearJoint); - olua_require(L, "b2.MotorJointDef", luaopen_b2MotorJointDef); - olua_require(L, "b2.MotorJoint", luaopen_b2MotorJoint); - olua_require(L, "b2.MouseJointDef", luaopen_b2MouseJointDef); - olua_require(L, "b2.MouseJoint", luaopen_b2MouseJoint); - olua_require(L, "b2.PrismaticJointDef", luaopen_b2PrismaticJointDef); - olua_require(L, "b2.PrismaticJoint", luaopen_b2PrismaticJoint); - olua_require(L, "b2.PulleyJointDef", luaopen_b2PulleyJointDef); - olua_require(L, "b2.PulleyJoint", luaopen_b2PulleyJoint); - olua_require(L, "b2.RevoluteJointDef", luaopen_b2RevoluteJointDef); - olua_require(L, "b2.RevoluteJoint", luaopen_b2RevoluteJoint); - olua_require(L, "b2.WeldJointDef", luaopen_b2WeldJointDef); - olua_require(L, "b2.WeldJoint", luaopen_b2WeldJoint); - olua_require(L, "b2.WheelJointDef", luaopen_b2WheelJointDef); - olua_require(L, "b2.WheelJoint", luaopen_b2WheelJoint); - olua_require(L, "b2.JointEdge", luaopen_b2JointEdge); - olua_require(L, "b2.JointUserData", luaopen_b2JointUserData); - olua_require(L, "b2.ContactEdge", luaopen_b2ContactEdge); - olua_require(L, "b2.ContactManager", luaopen_b2ContactManager); - olua_require(L, "b2.Profile", luaopen_b2Profile); - olua_require(L, "b2.BroadPhase", luaopen_b2BroadPhase); - olua_require(L, "b2.AABB", luaopen_b2AABB); - olua_require(L, "b2.Contact", luaopen_b2Contact); - olua_require(L, "b2.ContactImpulse", luaopen_b2ContactImpulse); - olua_require(L, "b2.Manifold", luaopen_b2Manifold); - olua_require(L, "b2.Manifold.Type", luaopen_b2Manifold_Type); - olua_require(L, "b2.World", luaopen_b2World); - olua_require(L, "b2.WorldManifold", luaopen_b2WorldManifold); + olua_require(L, "b2.Vec2", _b2_Vec2); + olua_require(L, "b2.Vec3", _b2_Vec3); + olua_require(L, "b2.ContactID", _b2_ContactID); + olua_require(L, "b2.ContactFeature", _b2_ContactFeature); + olua_require(L, "b2.Color", _b2_Color); + olua_require(L, "b2.FixtureUserData", _b2_FixtureUserData); + olua_require(L, "b2.Filter", _b2_Filter); + olua_require(L, "b2.ManifoldPoint", _b2_ManifoldPoint); + olua_require(L, "b2.Rot", _b2_Rot); + olua_require(L, "b2.interface.Draw", _b2_interface_Draw); + olua_require(L, "b2.interface.DestructionListener", _b2_interface_DestructionListener); + olua_require(L, "b2.interface.ContactFilter", _b2_interface_ContactFilter); + olua_require(L, "b2.interface.ContactListener", _b2_interface_ContactListener); + olua_require(L, "b2.interface.QueryCallback", _b2_interface_QueryCallback); + olua_require(L, "b2.interface.RayCastCallback", _b2_interface_RayCastCallback); + olua_require(L, "b2.Vec2Array", _b2_Vec2Array); + olua_require(L, "b2.DestructionListener", _b2_DestructionListener); + olua_require(L, "b2.ContactFilter", _b2_ContactFilter); + olua_require(L, "b2.ContactListener", _b2_ContactListener); + olua_require(L, "b2.QueryCallback", _b2_QueryCallback); + olua_require(L, "b2.RayCastCallback", _b2_RayCastCallback); + olua_require(L, "b2.DebugNode.Flags", _b2_DebugNode_Flags); + olua_require(L, "b2.DebugNode", _b2_DebugNode); + olua_require(L, "b2.MassData", _b2_MassData); + olua_require(L, "b2.Transform", _b2_Transform); + olua_require(L, "b2.RayCastInput", _b2_RayCastInput); + olua_require(L, "b2.RayCastOutput", _b2_RayCastOutput); + olua_require(L, "b2.Shape.Type", _b2_Shape_Type); + olua_require(L, "b2.Shape", _b2_Shape); + olua_require(L, "b2.PolygonShape", _b2_PolygonShape); + olua_require(L, "b2.EdgeShape", _b2_EdgeShape); + olua_require(L, "b2.CircleShape", _b2_CircleShape); + olua_require(L, "b2.ChainShape", _b2_ChainShape); + olua_require(L, "b2.BodyDef", _b2_BodyDef); + olua_require(L, "b2.BodyType", _b2_BodyType); + olua_require(L, "b2.Body", _b2_Body); + olua_require(L, "b2.BodyUserData", _b2_BodyUserData); + olua_require(L, "b2.FixtureDef", _b2_FixtureDef); + olua_require(L, "b2.Fixture", _b2_Fixture); + olua_require(L, "b2.JointDef", _b2_JointDef); + olua_require(L, "b2.JointType", _b2_JointType); + olua_require(L, "b2.Joint", _b2_Joint); + olua_require(L, "b2.DistanceJointDef", _b2_DistanceJointDef); + olua_require(L, "b2.DistanceJoint", _b2_DistanceJoint); + olua_require(L, "b2.FrictionJointDef", _b2_FrictionJointDef); + olua_require(L, "b2.FrictionJoint", _b2_FrictionJoint); + olua_require(L, "b2.GearJointDef", _b2_GearJointDef); + olua_require(L, "b2.GearJoint", _b2_GearJoint); + olua_require(L, "b2.MotorJointDef", _b2_MotorJointDef); + olua_require(L, "b2.MotorJoint", _b2_MotorJoint); + olua_require(L, "b2.MouseJointDef", _b2_MouseJointDef); + olua_require(L, "b2.MouseJoint", _b2_MouseJoint); + olua_require(L, "b2.PrismaticJointDef", _b2_PrismaticJointDef); + olua_require(L, "b2.PrismaticJoint", _b2_PrismaticJoint); + olua_require(L, "b2.PulleyJointDef", _b2_PulleyJointDef); + olua_require(L, "b2.PulleyJoint", _b2_PulleyJoint); + olua_require(L, "b2.RevoluteJointDef", _b2_RevoluteJointDef); + olua_require(L, "b2.RevoluteJoint", _b2_RevoluteJoint); + olua_require(L, "b2.WeldJointDef", _b2_WeldJointDef); + olua_require(L, "b2.WeldJoint", _b2_WeldJoint); + olua_require(L, "b2.WheelJointDef", _b2_WheelJointDef); + olua_require(L, "b2.WheelJoint", _b2_WheelJoint); + olua_require(L, "b2.JointEdge", _b2_JointEdge); + olua_require(L, "b2.JointUserData", _b2_JointUserData); + olua_require(L, "b2.ContactEdge", _b2_ContactEdge); + olua_require(L, "b2.ContactManager", _b2_ContactManager); + olua_require(L, "b2.Profile", _b2_Profile); + olua_require(L, "b2.BroadPhase", _b2_BroadPhase); + olua_require(L, "b2.AABB", _b2_AABB); + olua_require(L, "b2.Contact", _b2_Contact); + olua_require(L, "b2.ContactImpulse", _b2_ContactImpulse); + olua_require(L, "b2.Manifold", _b2_Manifold); + olua_require(L, "b2.Manifold.Type", _b2_Manifold_Type); + olua_require(L, "b2.World", _b2_World); + olua_require(L, "b2.WorldManifold", _b2_WorldManifold); cclua::runtime::registerFeature("box2d", true); diff --git a/frameworks/cclua/src/lua-bindings/lua_box2d.h b/frameworks/cclua/src/lua-bindings/lua_box2d.h index c6a91b7d..d5a999ca 100644 --- a/frameworks/cclua/src/lua-bindings/lua_box2d.h +++ b/frameworks/cclua/src/lua-bindings/lua_box2d.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_BOX2D_H__ #define __AUTO_GEN_LUA_BOX2D_H__ diff --git a/frameworks/cclua/src/lua-bindings/lua_cclua.cpp b/frameworks/cclua/src/lua-bindings/lua_cclua.cpp index 04a1fccb..64c03890 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cclua.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cclua.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_cclua.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -18,18 +18,26 @@ static int _cclua_Callback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_Callback(lua_State *L) +static int _cclua_Callback(lua_State *L) { oluacls_class(L, "cclua.Callback"); oluacls_func(L, "__call", _cclua_Callback___call); return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_QRCode_ECLevel(lua_State *L) +OLUA_LIB int luaopen_cclua_Callback(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::Callback"); + } + return 1; +} +OLUA_END_DECLS + +static int _cclua_QRCode_ECLevel(lua_State *L) { oluacls_class(L, "cclua.QRCode.ECLevel"); oluacls_func(L, "__index", olua_indexerror); @@ -41,10 +49,19 @@ OLUA_LIB int luaopen_cclua_QRCode_ECLevel(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_QRCode_EncodeMode(lua_State *L) +OLUA_LIB int luaopen_cclua_QRCode_ECLevel(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::QRCode::ECLevel"); + } + return 1; +} +OLUA_END_DECLS + +static int _cclua_QRCode_EncodeMode(lua_State *L) { oluacls_class(L, "cclua.QRCode.EncodeMode"); oluacls_func(L, "__index", olua_indexerror); @@ -58,6 +75,16 @@ OLUA_LIB int luaopen_cclua_QRCode_EncodeMode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_QRCode_EncodeMode(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::QRCode::EncodeMode"); + } + return 1; +} OLUA_END_DECLS static int _cclua_QRCode_create$1(lua_State *L) @@ -209,14 +236,23 @@ static int _cclua_QRCode_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_QRCode(lua_State *L) +static int _cclua_QRCode(lua_State *L) { oluacls_class(L, "cclua.QRCode"); oluacls_func(L, "create", _cclua_QRCode_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_QRCode(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::QRCode"); + } + return 1; +} OLUA_END_DECLS static int _cclua_SceneNoCamera_create(lua_State *L) @@ -251,12 +287,12 @@ static int _cclua_SceneNoCamera_createWithSize(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_check_object(L, 1, &arg1, "cc.Size"); // static cclua::SceneNoCamera *createWithSize(const cocos2d::Size &size) - cclua::SceneNoCamera *ret = cclua::SceneNoCamera::createWithSize(arg1); + cclua::SceneNoCamera *ret = cclua::SceneNoCamera::createWithSize(*arg1); int num_ret = olua_push_object(L, ret, "cclua.SceneNoCamera"); olua_endinvoke(L); @@ -278,8 +314,7 @@ static int _cclua_SceneNoCamera_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_SceneNoCamera(lua_State *L) +static int _cclua_SceneNoCamera(lua_State *L) { oluacls_class(L, "cclua.SceneNoCamera"); oluacls_func(L, "create", _cclua_SceneNoCamera_create); @@ -291,6 +326,16 @@ OLUA_LIB int luaopen_cclua_SceneNoCamera(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_SceneNoCamera(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::SceneNoCamera"); + } + return 1; +} OLUA_END_DECLS static int _cclua_permission_status___gc(lua_State *L) @@ -317,8 +362,7 @@ static int _cclua_permission_status___olua_move(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_permission_status(lua_State *L) +static int _cclua_permission_status(lua_State *L) { oluacls_class(L, "cclua.permission.status"); oluacls_func(L, "__index", olua_indexerror); @@ -336,6 +380,16 @@ OLUA_LIB int luaopen_cclua_permission_status(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_permission_status(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::permission::status"); + } + return 1; +} OLUA_END_DECLS static int _cclua_permission_android___gc(lua_State *L) @@ -362,8 +416,7 @@ static int _cclua_permission_android___olua_move(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_permission_android(lua_State *L) +static int _cclua_permission_android(lua_State *L) { oluacls_class(L, "cclua.permission.android"); oluacls_func(L, "__index", olua_indexerror); @@ -524,6 +577,16 @@ OLUA_LIB int luaopen_cclua_permission_android(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_permission_android(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::permission::android"); + } + return 1; +} OLUA_END_DECLS static int _cclua_permission___gc(lua_State *L) @@ -574,8 +637,7 @@ static int _cclua_permission_get_status(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_permission(lua_State *L) +static int _cclua_permission(lua_State *L) { oluacls_class(L, "cclua.permission"); oluacls_func(L, "__index", olua_indexerror); @@ -598,6 +660,16 @@ OLUA_LIB int luaopen_cclua_permission(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_permission(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::permission"); + } + return 1; +} OLUA_END_DECLS static int _cclua_runtime___gc(lua_State *L) @@ -644,13 +716,13 @@ static int _cclua_runtime_alert(lua_State *L) std::string cb_tag = "alert"; std::string cb_name = olua_setcallback(L, cb_store, 5, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg5 = [cb_store, cb_name, cb_ctx](bool arg1) { + arg5 = [cb_store, cb_name, cb_ctx](bool cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_bool(L, arg1); + olua_push_bool(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -1476,13 +1548,13 @@ static int _cclua_runtime_openURL$1(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](bool arg1) { + arg2 = [cb_store, cb_name, cb_ctx](bool cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_bool(L, arg1); + olua_push_bool(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -1664,13 +1736,13 @@ static int _cclua_runtime_requestPermission(lua_State *L) std::string cb_tag = "requestPermission"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](const std::string &arg1) { + arg2 = [cb_store, cb_name, cb_ctx](const std::string &cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_string(L, arg1); + olua_push_string(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -1729,7 +1801,7 @@ static int _cclua_runtime_setDispatcher(lua_State *L) std::string cb_tag = "Dispatcher"; std::string cb_name = olua_setcallback(L, cb_store, 1, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::string &arg1, const cocos2d::Value &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](const std::string &cb_arg1, const cocos2d::Value &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -1737,8 +1809,8 @@ static int _cclua_runtime_setDispatcher(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_string(L, arg1); - olua_push_cocos2d_Value(L, arg2); + olua_push_string(L, cb_arg1); + olua_push_cocos2d_Value(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -1938,8 +2010,7 @@ static int _cclua_runtime_testCrash(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_runtime(lua_State *L) +static int _cclua_runtime(lua_State *L) { oluacls_class(L, "cclua.runtime"); oluacls_func(L, "__gc", _cclua_runtime___gc); @@ -2042,6 +2113,16 @@ OLUA_LIB int luaopen_cclua_runtime(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_runtime(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::runtime"); + } + return 1; +} OLUA_END_DECLS static int _cclua_filesystem___gc(lua_State *L) @@ -2560,8 +2641,7 @@ static int _cclua_filesystem_write(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_filesystem(lua_State *L) +static int _cclua_filesystem(lua_State *L) { oluacls_class(L, "cclua.filesystem"); oluacls_func(L, "__gc", _cclua_filesystem___gc); @@ -2595,6 +2675,16 @@ OLUA_LIB int luaopen_cclua_filesystem(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_filesystem(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::filesystem"); + } + return 1; +} OLUA_END_DECLS static int _cclua_preferences___gc(lua_State *L) @@ -3034,8 +3124,7 @@ static int _cclua_preferences_setString(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_preferences(lua_State *L) +static int _cclua_preferences(lua_State *L) { oluacls_class(L, "cclua.preferences"); oluacls_func(L, "__gc", _cclua_preferences___gc); @@ -3055,6 +3144,16 @@ OLUA_LIB int luaopen_cclua_preferences(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_preferences(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::preferences"); + } + return 1; +} OLUA_END_DECLS static int _cclua_timer___gc(lua_State *L) @@ -3206,13 +3305,13 @@ static int _cclua_timer_schedule(lua_State *L) std::string cb_tag = (arg2); std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg3 = [cb_store, cb_name, cb_ctx](float arg1) { + arg3 = [cb_store, cb_name, cb_ctx](float cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_number(L, arg1); + olua_push_number(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -3248,8 +3347,7 @@ static int _cclua_timer_unschedule(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_timer(lua_State *L) +static int _cclua_timer(lua_State *L) { oluacls_class(L, "cclua.timer"); oluacls_func(L, "__gc", _cclua_timer___gc); @@ -3263,6 +3361,16 @@ OLUA_LIB int luaopen_cclua_timer(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_timer(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::timer"); + } + return 1; +} OLUA_END_DECLS static int _cclua_window___gc(lua_State *L) @@ -3293,12 +3401,12 @@ static int _cclua_window_convertToCameraSpace$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** position */ + cocos2d::Vec2 *arg1; /** position */ olua_check_object(L, 1, &arg1, "cc.Vec2"); // static cocos2d::Vec2 convertToCameraSpace(const cocos2d::Vec2 &position) - cocos2d::Vec2 ret = cclua::window::convertToCameraSpace(arg1); + cocos2d::Vec2 ret = cclua::window::convertToCameraSpace(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -3402,14 +3510,14 @@ static int _cclua_window_setDesignSize$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ ResolutionPolicy arg2 = (ResolutionPolicy)0; /** resolutionPolicy */ olua_check_object(L, 1, &arg1, "cc.Size"); olua_check_enum(L, 2, &arg2); // static void setDesignSize(const cocos2d::Size &size, ResolutionPolicy resolutionPolicy) - cclua::window::setDesignSize(arg1, arg2); + cclua::window::setDesignSize(*arg1, arg2); olua_endinvoke(L); @@ -3461,12 +3569,12 @@ static int _cclua_window_setFrameSize$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_check_object(L, 1, &arg1, "cc.Size"); // static void setFrameSize(const cocos2d::Size &size) - cclua::window::setFrameSize(arg1); + cclua::window::setFrameSize(*arg1); olua_endinvoke(L); @@ -3512,8 +3620,7 @@ static int _cclua_window_setFrameSize(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_window(lua_State *L) +static int _cclua_window(lua_State *L) { oluacls_class(L, "cclua.window"); oluacls_func(L, "__gc", _cclua_window___gc); @@ -3532,6 +3639,16 @@ OLUA_LIB int luaopen_cclua_window(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_window(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::window"); + } + return 1; +} OLUA_END_DECLS static int _cclua_downloader___gc(lua_State *L) @@ -3655,7 +3772,7 @@ static int _cclua_downloader_setDispatcher(lua_State *L) std::string cb_tag = "Dispatcher"; std::string cb_name = olua_setcallback(L, cb_store, 1, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::string &arg1, const cocos2d::Value &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](const std::string &cb_arg1, const cocos2d::Value &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -3663,8 +3780,8 @@ static int _cclua_downloader_setDispatcher(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_string(L, arg1); - olua_push_cocos2d_Value(L, arg2); + olua_push_string(L, cb_arg1); + olua_push_cocos2d_Value(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -3695,13 +3812,13 @@ static int _cclua_downloader_setURIResolver(lua_State *L) std::string cb_tag = "URIResolver"; std::string cb_name = olua_setcallback(L, cb_store, 1, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::string &arg1) { + arg1 = [cb_store, cb_name, cb_ctx](const std::string &cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); std::string ret; /** ret */ if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_string(L, arg1); + olua_push_string(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -3722,8 +3839,7 @@ static int _cclua_downloader_setURIResolver(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_downloader(lua_State *L) +static int _cclua_downloader(lua_State *L) { oluacls_class(L, "cclua.downloader"); oluacls_func(L, "__gc", _cclua_downloader___gc); @@ -3736,6 +3852,16 @@ OLUA_LIB int luaopen_cclua_downloader(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_downloader(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::downloader"); + } + return 1; +} OLUA_END_DECLS static int _cclua_Container_create(lua_State *L) @@ -3825,8 +3951,7 @@ static int _cclua_Container_setFilter(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_Container(lua_State *L) +static int _cclua_Container(lua_State *L) { oluacls_class(L, "cclua.Container"); oluacls_func(L, "create", _cclua_Container_create); @@ -3839,10 +3964,19 @@ OLUA_LIB int luaopen_cclua_Container(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_XMLHttpRequest_ResponseType(lua_State *L) +OLUA_LIB int luaopen_cclua_Container(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::Container"); + } + return 1; +} +OLUA_END_DECLS + +static int _cclua_XMLHttpRequest_ResponseType(lua_State *L) { oluacls_class(L, "cclua.XMLHttpRequest.ResponseType"); oluacls_func(L, "__index", olua_indexerror); @@ -3855,6 +3989,16 @@ OLUA_LIB int luaopen_cclua_XMLHttpRequest_ResponseType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_XMLHttpRequest_ResponseType(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::XMLHttpRequest::ResponseType"); + } + return 1; +} OLUA_END_DECLS static int _cclua_XMLHttpRequest_abort(lua_State *L) @@ -4269,13 +4413,13 @@ static int _cclua_XMLHttpRequest_setResponseCallback(lua_State *L) std::string cb_tag = "ResponseCallback"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](int arg1) { + arg1 = [cb_store, cb_name, cb_ctx](int cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_integer(L, arg1); + olua_push_integer(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -4345,8 +4489,7 @@ static int _cclua_XMLHttpRequest_setWithCredentials(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_XMLHttpRequest(lua_State *L) +static int _cclua_XMLHttpRequest(lua_State *L) { oluacls_class(L, "cclua.XMLHttpRequest"); oluacls_func(L, "abort", _cclua_XMLHttpRequest_abort); @@ -4396,11 +4539,20 @@ OLUA_LIB int luaopen_cclua_XMLHttpRequest(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_XMLHttpRequest(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::XMLHttpRequest"); + } + return 1; +} OLUA_END_DECLS #if defined(CCLUA_OS_IOS) || defined(CCLUA_OS_ANDROID) -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_MP3Encoder_VBRMode(lua_State *L) +static int _cclua_MP3Encoder_VBRMode(lua_State *L) { oluacls_class(L, "cclua.MP3Encoder.VBRMode"); oluacls_func(L, "__index", olua_indexerror); @@ -4415,12 +4567,21 @@ OLUA_LIB int luaopen_cclua_MP3Encoder_VBRMode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_MP3Encoder_VBRMode(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::MP3Encoder::VBRMode"); + } + return 1; +} OLUA_END_DECLS #endif #if defined(CCLUA_OS_IOS) || defined(CCLUA_OS_ANDROID) -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_MP3Encoder_MPEGMode(lua_State *L) +static int _cclua_MP3Encoder_MPEGMode(lua_State *L) { oluacls_class(L, "cclua.MP3Encoder.MPEGMode"); oluacls_func(L, "__index", olua_indexerror); @@ -4434,6 +4595,16 @@ OLUA_LIB int luaopen_cclua_MP3Encoder_MPEGMode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_MP3Encoder_MPEGMode(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::MP3Encoder::MPEGMode"); + } + return 1; +} OLUA_END_DECLS #endif @@ -6892,8 +7063,7 @@ static int _cclua_MP3Encoder_stop(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_MP3Encoder(lua_State *L) +static int _cclua_MP3Encoder(lua_State *L) { oluacls_class(L, "cclua.MP3Encoder"); oluacls_func(L, "getATHlower", _cclua_MP3Encoder_getATHlower); @@ -7116,6 +7286,16 @@ OLUA_LIB int luaopen_cclua_MP3Encoder(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_MP3Encoder(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::MP3Encoder"); + } + return 1; +} OLUA_END_DECLS #endif @@ -7187,7 +7367,7 @@ static int _cclua_microphone_setDispatcher(lua_State *L) std::string cb_tag = "Dispatcher"; std::string cb_name = olua_setcallback(L, cb_store, 1, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::string &arg1, const cocos2d::Value &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](const std::string &cb_arg1, const cocos2d::Value &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -7195,8 +7375,8 @@ static int _cclua_microphone_setDispatcher(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_string(L, arg1); - olua_push_cocos2d_Value(L, arg2); + olua_push_string(L, cb_arg1); + olua_push_cocos2d_Value(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -7243,8 +7423,7 @@ static int _cclua_microphone_stop(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_microphone(lua_State *L) +static int _cclua_microphone(lua_State *L) { oluacls_class(L, "cclua.microphone"); oluacls_func(L, "__gc", _cclua_microphone___gc); @@ -7260,6 +7439,16 @@ OLUA_LIB int luaopen_cclua_microphone(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_microphone(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::microphone"); + } + return 1; +} OLUA_END_DECLS #endif @@ -7354,7 +7543,7 @@ static int _cclua_photo_setDispatcher(lua_State *L) std::string cb_tag = "Dispatcher"; std::string cb_name = olua_setcallback(L, cb_store, 1, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::string &arg1, const cocos2d::Value &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](const std::string &cb_arg1, const cocos2d::Value &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -7362,8 +7551,8 @@ static int _cclua_photo_setDispatcher(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_string(L, arg1); - olua_push_cocos2d_Value(L, arg2); + olua_push_string(L, cb_arg1); + olua_push_cocos2d_Value(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -7402,8 +7591,7 @@ static int _cclua_photo_takeAvatar(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_photo(lua_State *L) +static int _cclua_photo(lua_State *L) { oluacls_class(L, "cclua.photo"); oluacls_func(L, "__gc", _cclua_photo___gc); @@ -7418,35 +7606,45 @@ OLUA_LIB int luaopen_cclua_photo(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_photo(lua_State *L) +{ + olua_require(L, "cclua", luaopen_cclua); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::photo"); + } + return 1; +} OLUA_END_DECLS #endif OLUA_BEGIN_DECLS OLUA_LIB int luaopen_cclua(lua_State *L) { - olua_require(L, "cclua.Callback", luaopen_cclua_Callback); - olua_require(L, "cclua.QRCode.ECLevel", luaopen_cclua_QRCode_ECLevel); - olua_require(L, "cclua.QRCode.EncodeMode", luaopen_cclua_QRCode_EncodeMode); - olua_require(L, "cclua.QRCode", luaopen_cclua_QRCode); - olua_require(L, "cclua.SceneNoCamera", luaopen_cclua_SceneNoCamera); - olua_require(L, "cclua.permission.status", luaopen_cclua_permission_status); - olua_require(L, "cclua.permission.android", luaopen_cclua_permission_android); - olua_require(L, "cclua.permission", luaopen_cclua_permission); - olua_require(L, "cclua.runtime", luaopen_cclua_runtime); - olua_require(L, "cclua.filesystem", luaopen_cclua_filesystem); - olua_require(L, "cclua.preferences", luaopen_cclua_preferences); - olua_require(L, "cclua.timer", luaopen_cclua_timer); - olua_require(L, "cclua.window", luaopen_cclua_window); - olua_require(L, "cclua.downloader", luaopen_cclua_downloader); - olua_require(L, "cclua.Container", luaopen_cclua_Container); - olua_require(L, "cclua.XMLHttpRequest.ResponseType", luaopen_cclua_XMLHttpRequest_ResponseType); - olua_require(L, "cclua.XMLHttpRequest", luaopen_cclua_XMLHttpRequest); + olua_require(L, "cclua.Callback", _cclua_Callback); + olua_require(L, "cclua.QRCode.ECLevel", _cclua_QRCode_ECLevel); + olua_require(L, "cclua.QRCode.EncodeMode", _cclua_QRCode_EncodeMode); + olua_require(L, "cclua.QRCode", _cclua_QRCode); + olua_require(L, "cclua.SceneNoCamera", _cclua_SceneNoCamera); + olua_require(L, "cclua.permission.status", _cclua_permission_status); + olua_require(L, "cclua.permission.android", _cclua_permission_android); + olua_require(L, "cclua.permission", _cclua_permission); + olua_require(L, "cclua.runtime", _cclua_runtime); + olua_require(L, "cclua.filesystem", _cclua_filesystem); + olua_require(L, "cclua.preferences", _cclua_preferences); + olua_require(L, "cclua.timer", _cclua_timer); + olua_require(L, "cclua.window", _cclua_window); + olua_require(L, "cclua.downloader", _cclua_downloader); + olua_require(L, "cclua.Container", _cclua_Container); + olua_require(L, "cclua.XMLHttpRequest.ResponseType", _cclua_XMLHttpRequest_ResponseType); + olua_require(L, "cclua.XMLHttpRequest", _cclua_XMLHttpRequest); #if defined(CCLUA_OS_IOS) || defined(CCLUA_OS_ANDROID) - olua_require(L, "cclua.MP3Encoder.VBRMode", luaopen_cclua_MP3Encoder_VBRMode); - olua_require(L, "cclua.MP3Encoder.MPEGMode", luaopen_cclua_MP3Encoder_MPEGMode); - olua_require(L, "cclua.MP3Encoder", luaopen_cclua_MP3Encoder); - olua_require(L, "cclua.microphone", luaopen_cclua_microphone); - olua_require(L, "cclua.photo", luaopen_cclua_photo); + olua_require(L, "cclua.MP3Encoder.VBRMode", _cclua_MP3Encoder_VBRMode); + olua_require(L, "cclua.MP3Encoder.MPEGMode", _cclua_MP3Encoder_MPEGMode); + olua_require(L, "cclua.MP3Encoder", _cclua_MP3Encoder); + olua_require(L, "cclua.microphone", _cclua_microphone); + olua_require(L, "cclua.photo", _cclua_photo); #endif return 0; diff --git a/frameworks/cclua/src/lua-bindings/lua_cclua.h b/frameworks/cclua/src/lua-bindings/lua_cclua.h index aecded45..b9a9f94e 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cclua.h +++ b/frameworks/cclua/src/lua-bindings/lua_cclua.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_CCLUA_H__ #define __AUTO_GEN_LUA_CCLUA_H__ diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d.cpp b/frameworks/cclua/src/lua-bindings/lua_cocos2d.cpp index f1d4a294..7d098e2a 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_cocos2d.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -15,8 +15,7 @@ static const std::string makeScheduleCallbackTag(const std::string &key) return "schedule." + key; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_RenderTargetFlag(lua_State *L) +static int _cc_RenderTargetFlag(lua_State *L) { oluacls_class(L, "cc.RenderTargetFlag"); oluacls_func(L, "__index", olua_indexerror); @@ -28,10 +27,19 @@ OLUA_LIB int luaopen_cocos2d_RenderTargetFlag(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ClearFlag(lua_State *L) +OLUA_LIB int luaopen_cc_RenderTargetFlag(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::RenderTargetFlag"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_ClearFlag(lua_State *L) { oluacls_class(L, "cc.ClearFlag"); oluacls_func(L, "__index", olua_indexerror); @@ -44,10 +52,19 @@ OLUA_LIB int luaopen_cocos2d_ClearFlag(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_MATRIX_STACK_TYPE(lua_State *L) +OLUA_LIB int luaopen_cc_ClearFlag(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ClearFlag"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_MATRIX_STACK_TYPE(lua_State *L) { oluacls_class(L, "cc.MATRIX_STACK_TYPE"); oluacls_func(L, "__index", olua_indexerror); @@ -58,10 +75,19 @@ OLUA_LIB int luaopen_cocos2d_MATRIX_STACK_TYPE(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Director_Projection(lua_State *L) +OLUA_LIB int luaopen_cc_MATRIX_STACK_TYPE(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::MATRIX_STACK_TYPE"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_Director_Projection(lua_State *L) { oluacls_class(L, "cc.Director.Projection"); oluacls_func(L, "__index", olua_indexerror); @@ -73,6 +99,16 @@ OLUA_LIB int luaopen_cocos2d_Director_Projection(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Director_Projection(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Director::Projection"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_UserDefault___olua_move(lua_State *L) @@ -670,8 +706,7 @@ static int _cocos2d_UserDefault_setStringForKey(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_UserDefault(lua_State *L) +static int _cc_UserDefault(lua_State *L) { oluacls_class(L, "cc.UserDefault"); oluacls_func(L, "__olua_move", _cocos2d_UserDefault___olua_move); @@ -699,6 +734,16 @@ OLUA_LIB int luaopen_cocos2d_UserDefault(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_UserDefault(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::UserDefault"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Ref___gc(lua_State *L) @@ -739,8 +784,7 @@ static int _cocos2d_Ref_getReferenceCount(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Ref(lua_State *L) +static int _cc_Ref(lua_State *L) { oluacls_class(L, "cc.Ref"); oluacls_func(L, "__gc", _cocos2d_Ref___gc); @@ -750,6 +794,16 @@ OLUA_LIB int luaopen_cocos2d_Ref(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Ref(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Ref"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Clonable___gc(lua_State *L) @@ -793,8 +847,7 @@ static int _cocos2d_Clonable_clone(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Clonable(lua_State *L) +static int _cc_Clonable(lua_State *L) { oluacls_class(L, "cc.Clonable"); oluacls_func(L, "__gc", _cocos2d_Clonable___gc); @@ -803,6 +856,16 @@ OLUA_LIB int luaopen_cocos2d_Clonable(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Clonable(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Clonable"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Console_delCommand(lua_State *L) @@ -999,8 +1062,7 @@ static int _cocos2d_Console_stop(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Console(lua_State *L) +static int _cc_Console(lua_State *L) { oluacls_class(L, "cc.Console"); oluacls_func(L, "delCommand", _cocos2d_Console_delCommand); @@ -1019,6 +1081,16 @@ OLUA_LIB int luaopen_cocos2d_Console(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Console(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Console"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Acceleration_timestamp$1(lua_State *L) @@ -1245,8 +1317,7 @@ static int _cocos2d_Acceleration_z(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Acceleration(lua_State *L) +static int _cc_Acceleration(lua_State *L) { oluacls_class(L, "cc.Acceleration"); oluacls_prop(L, "timestamp", _cocos2d_Acceleration_timestamp, _cocos2d_Acceleration_timestamp); @@ -1256,6 +1327,16 @@ OLUA_LIB int luaopen_cocos2d_Acceleration(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Acceleration(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Acceleration"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Director_EVENT_AFTER_DRAW$1(lua_State *L) @@ -1713,13 +1794,13 @@ static int _cocos2d_Director_convertToGL$1(lua_State *L) olua_startinvoke(L); cocos2d::Director *self = nullptr; - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ olua_to_object(L, 1, &self, "cc.Director"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 convertToGL(const cocos2d::Vec2 &point) - cocos2d::Vec2 ret = self->convertToGL(arg1); + cocos2d::Vec2 ret = self->convertToGL(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -1774,13 +1855,13 @@ static int _cocos2d_Director_convertToUI$1(lua_State *L) olua_startinvoke(L); cocos2d::Director *self = nullptr; - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ olua_to_object(L, 1, &self, "cc.Director"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 convertToUI(const cocos2d::Vec2 &point) - cocos2d::Vec2 ret = self->convertToUI(arg1); + cocos2d::Vec2 ret = self->convertToUI(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -2418,14 +2499,14 @@ static int _cocos2d_Director_loadMatrix(lua_State *L) cocos2d::Director *self = nullptr; cocos2d::MATRIX_STACK_TYPE arg1 = (cocos2d::MATRIX_STACK_TYPE)0; /** type */ - cocos2d::Mat4 arg2; /** mat */ + cocos2d::Mat4 *arg2; /** mat */ olua_to_object(L, 1, &self, "cc.Director"); olua_check_enum(L, 2, &arg1); olua_check_object(L, 3, &arg2, "cc.Mat4"); // void loadMatrix(cocos2d::MATRIX_STACK_TYPE type, const cocos2d::Mat4 &mat) - self->loadMatrix(arg1, arg2); + self->loadMatrix(arg1, *arg2); olua_endinvoke(L); @@ -2493,14 +2574,14 @@ static int _cocos2d_Director_multiplyMatrix(lua_State *L) cocos2d::Director *self = nullptr; cocos2d::MATRIX_STACK_TYPE arg1 = (cocos2d::MATRIX_STACK_TYPE)0; /** type */ - cocos2d::Mat4 arg2; /** mat */ + cocos2d::Mat4 *arg2; /** mat */ olua_to_object(L, 1, &self, "cc.Director"); olua_check_enum(L, 2, &arg1); olua_check_object(L, 3, &arg2, "cc.Mat4"); // void multiplyMatrix(cocos2d::MATRIX_STACK_TYPE type, const cocos2d::Mat4 &mat) - self->multiplyMatrix(arg1, arg2); + self->multiplyMatrix(arg1, *arg2); olua_endinvoke(L); @@ -3065,8 +3146,7 @@ static int _cocos2d_Director_stopAnimation(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Director(lua_State *L) +static int _cc_Director(lua_State *L) { oluacls_class(L, "cc.Director"); oluacls_func(L, "convertToGL", _cocos2d_Director_convertToGL); @@ -3177,6 +3257,16 @@ OLUA_LIB int luaopen_cocos2d_Director(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Director(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Director"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ccSchedulerFunc___call(lua_State *L) @@ -3191,14 +3281,23 @@ static int _cocos2d_ccSchedulerFunc___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ccSchedulerFunc(lua_State *L) +static int _cc_ccSchedulerFunc(lua_State *L) { oluacls_class(L, "cc.ccSchedulerFunc"); oluacls_func(L, "__call", _cocos2d_ccSchedulerFunc___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ccSchedulerFunc(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ccSchedulerFunc"); + } + return 1; +} OLUA_END_DECLS template bool doScheduleUpdate(lua_State *L) @@ -3424,13 +3523,13 @@ static int _cocos2d_Scheduler_schedule$1(lua_State *L) std::string cb_tag = makeScheduleCallbackTag(arg7); std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](float arg1) { + arg1 = [cb_store, cb_name, cb_ctx](float cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_number(L, arg1); + olua_push_number(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -3468,13 +3567,13 @@ static int _cocos2d_Scheduler_schedule$2(lua_State *L) std::string cb_tag = makeScheduleCallbackTag(arg5); std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](float arg1) { + arg1 = [cb_store, cb_name, cb_ctx](float cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_number(L, arg1); + olua_push_number(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -3673,8 +3772,7 @@ static int _cocos2d_Scheduler_update(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Scheduler(lua_State *L) +static int _cc_Scheduler(lua_State *L) { oluacls_class(L, "cc.Scheduler"); oluacls_func(L, "getTimeScale", _cocos2d_Scheduler_getTimeScale); @@ -3702,6 +3800,16 @@ OLUA_LIB int luaopen_cocos2d_Scheduler(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Scheduler(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Scheduler"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventDispatcher_addEventListenerWithFixedPriority(lua_State *L); @@ -3737,7 +3845,7 @@ static int _cocos2d_EventDispatcher_addCustomEventListener(lua_State *L) std::string cb_tag = (arg1); std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](cocos2d::EventCustom *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](cocos2d::EventCustom *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -3745,7 +3853,7 @@ static int _cocos2d_EventDispatcher_addCustomEventListener(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.EventCustom"); + olua_push_object(L, cb_arg1, "cc.EventCustom"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -4293,8 +4401,7 @@ static int _cocos2d_EventDispatcher_setPriority(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventDispatcher(lua_State *L) +static int _cc_EventDispatcher(lua_State *L) { oluacls_class(L, "cc.EventDispatcher"); oluacls_func(L, "addCustomEventListener", _cocos2d_EventDispatcher_addCustomEventListener); @@ -4319,10 +4426,19 @@ OLUA_LIB int luaopen_cocos2d_EventDispatcher(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListener_Type(lua_State *L) +OLUA_LIB int luaopen_cc_EventDispatcher(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventDispatcher"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_EventListener_Type(lua_State *L) { oluacls_class(L, "cc.EventListener.Type"); oluacls_func(L, "__index", olua_indexerror); @@ -4339,6 +4455,16 @@ OLUA_LIB int luaopen_cocos2d_EventListener_Type(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventListener_Type(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListener::Type"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventListener_checkAvailable(lua_State *L) @@ -4410,8 +4536,7 @@ static int _cocos2d_EventListener_setEnabled(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListener(lua_State *L) +static int _cc_EventListener(lua_State *L) { oluacls_class(L, "cc.EventListener"); oluacls_func(L, "checkAvailable", _cocos2d_EventListener_checkAvailable); @@ -4423,6 +4548,16 @@ OLUA_LIB int luaopen_cocos2d_EventListener(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventListener(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListener"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventListenerTouchOneByOne_ccTouchBeganCallback___call(lua_State *L) @@ -4437,14 +4572,23 @@ static int _cocos2d_EventListenerTouchOneByOne_ccTouchBeganCallback___call(lua_S return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListenerTouchOneByOne_ccTouchBeganCallback(lua_State *L) +static int _cc_EventListenerTouchOneByOne_ccTouchBeganCallback(lua_State *L) { oluacls_class(L, "cc.EventListenerTouchOneByOne.ccTouchBeganCallback"); oluacls_func(L, "__call", _cocos2d_EventListenerTouchOneByOne_ccTouchBeganCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventListenerTouchOneByOne_ccTouchBeganCallback(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListenerTouchOneByOne::ccTouchBeganCallback"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventListenerTouchOneByOne_ccTouchCallback___call(lua_State *L) @@ -4459,14 +4603,23 @@ static int _cocos2d_EventListenerTouchOneByOne_ccTouchCallback___call(lua_State return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListenerTouchOneByOne_ccTouchCallback(lua_State *L) +static int _cc_EventListenerTouchOneByOne_ccTouchCallback(lua_State *L) { oluacls_class(L, "cc.EventListenerTouchOneByOne.ccTouchCallback"); oluacls_func(L, "__call", _cocos2d_EventListenerTouchOneByOne_ccTouchCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventListenerTouchOneByOne_ccTouchCallback(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListenerTouchOneByOne::ccTouchCallback"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventListenerTouchOneByOne_create(lua_State *L) @@ -4552,7 +4705,7 @@ static int _cocos2d_EventListenerTouchOneByOne_onTouchBegan$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Touch *arg1, cocos2d::Event *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Touch *cb_arg1, cocos2d::Event *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); bool ret = false; /** ret */ @@ -4560,8 +4713,8 @@ static int _cocos2d_EventListenerTouchOneByOne_onTouchBegan$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Touch"); - olua_push_object(L, arg2, "cc.Event"); + olua_push_object(L, cb_arg1, "cc.Touch"); + olua_push_object(L, cb_arg2, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -4649,7 +4802,7 @@ static int _cocos2d_EventListenerTouchOneByOne_onTouchCancelled$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Touch *arg1, cocos2d::Event *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Touch *cb_arg1, cocos2d::Event *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -4657,8 +4810,8 @@ static int _cocos2d_EventListenerTouchOneByOne_onTouchCancelled$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Touch"); - olua_push_object(L, arg2, "cc.Event"); + olua_push_object(L, cb_arg1, "cc.Touch"); + olua_push_object(L, cb_arg2, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -4741,7 +4894,7 @@ static int _cocos2d_EventListenerTouchOneByOne_onTouchEnded$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Touch *arg1, cocos2d::Event *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Touch *cb_arg1, cocos2d::Event *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -4749,8 +4902,8 @@ static int _cocos2d_EventListenerTouchOneByOne_onTouchEnded$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Touch"); - olua_push_object(L, arg2, "cc.Event"); + olua_push_object(L, cb_arg1, "cc.Touch"); + olua_push_object(L, cb_arg2, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -4833,7 +4986,7 @@ static int _cocos2d_EventListenerTouchOneByOne_onTouchMoved$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Touch *arg1, cocos2d::Event *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Touch *cb_arg1, cocos2d::Event *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -4841,8 +4994,8 @@ static int _cocos2d_EventListenerTouchOneByOne_onTouchMoved$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Touch"); - olua_push_object(L, arg2, "cc.Event"); + olua_push_object(L, cb_arg1, "cc.Touch"); + olua_push_object(L, cb_arg2, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -4904,8 +5057,7 @@ static int _cocos2d_EventListenerTouchOneByOne_setSwallowTouches(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListenerTouchOneByOne(lua_State *L) +static int _cc_EventListenerTouchOneByOne(lua_State *L) { oluacls_class(L, "cc.EventListenerTouchOneByOne"); oluacls_func(L, "create", _cocos2d_EventListenerTouchOneByOne_create); @@ -4921,6 +5073,16 @@ OLUA_LIB int luaopen_cocos2d_EventListenerTouchOneByOne(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventListenerTouchOneByOne(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListenerTouchOneByOne"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventListenerTouchAllAtOnce_ccTouchesCallback___call(lua_State *L) @@ -4935,14 +5097,23 @@ static int _cocos2d_EventListenerTouchAllAtOnce_ccTouchesCallback___call(lua_Sta return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListenerTouchAllAtOnce_ccTouchesCallback(lua_State *L) +static int _cc_EventListenerTouchAllAtOnce_ccTouchesCallback(lua_State *L) { oluacls_class(L, "cc.EventListenerTouchAllAtOnce.ccTouchesCallback"); oluacls_func(L, "__call", _cocos2d_EventListenerTouchAllAtOnce_ccTouchesCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventListenerTouchAllAtOnce_ccTouchesCallback(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListenerTouchAllAtOnce::ccTouchesCallback"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventListenerTouchAllAtOnce_create(lua_State *L) @@ -5011,7 +5182,7 @@ static int _cocos2d_EventListenerTouchAllAtOnce_onTouchesBegan$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::vector &arg1, cocos2d::Event *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](const std::vector &cb_arg1, cocos2d::Event *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -5019,10 +5190,10 @@ static int _cocos2d_EventListenerTouchAllAtOnce_onTouchesBegan$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_array(L, arg1, [L](cocos2d::Touch *arg1) { + olua_push_array(L, cb_arg1, [L](cocos2d::Touch *arg1) { olua_push_object(L, arg1, "cc.Touch"); }); - olua_push_object(L, arg2, "cc.Event"); + olua_push_object(L, cb_arg2, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -5105,7 +5276,7 @@ static int _cocos2d_EventListenerTouchAllAtOnce_onTouchesCancelled$2(lua_State * if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::vector &arg1, cocos2d::Event *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](const std::vector &cb_arg1, cocos2d::Event *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -5113,10 +5284,10 @@ static int _cocos2d_EventListenerTouchAllAtOnce_onTouchesCancelled$2(lua_State * int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_array(L, arg1, [L](cocos2d::Touch *arg1) { + olua_push_array(L, cb_arg1, [L](cocos2d::Touch *arg1) { olua_push_object(L, arg1, "cc.Touch"); }); - olua_push_object(L, arg2, "cc.Event"); + olua_push_object(L, cb_arg2, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -5199,7 +5370,7 @@ static int _cocos2d_EventListenerTouchAllAtOnce_onTouchesEnded$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::vector &arg1, cocos2d::Event *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](const std::vector &cb_arg1, cocos2d::Event *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -5207,10 +5378,10 @@ static int _cocos2d_EventListenerTouchAllAtOnce_onTouchesEnded$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_array(L, arg1, [L](cocos2d::Touch *arg1) { + olua_push_array(L, cb_arg1, [L](cocos2d::Touch *arg1) { olua_push_object(L, arg1, "cc.Touch"); }); - olua_push_object(L, arg2, "cc.Event"); + olua_push_object(L, cb_arg2, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -5293,7 +5464,7 @@ static int _cocos2d_EventListenerTouchAllAtOnce_onTouchesMoved$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::vector &arg1, cocos2d::Event *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](const std::vector &cb_arg1, cocos2d::Event *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -5301,10 +5472,10 @@ static int _cocos2d_EventListenerTouchAllAtOnce_onTouchesMoved$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_array(L, arg1, [L](cocos2d::Touch *arg1) { + olua_push_array(L, cb_arg1, [L](cocos2d::Touch *arg1) { olua_push_object(L, arg1, "cc.Touch"); }); - olua_push_object(L, arg2, "cc.Event"); + olua_push_object(L, cb_arg2, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -5348,8 +5519,7 @@ static int _cocos2d_EventListenerTouchAllAtOnce_onTouchesMoved(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListenerTouchAllAtOnce(lua_State *L) +static int _cc_EventListenerTouchAllAtOnce(lua_State *L) { oluacls_class(L, "cc.EventListenerTouchAllAtOnce"); oluacls_func(L, "create", _cocos2d_EventListenerTouchAllAtOnce_create); @@ -5362,6 +5532,16 @@ OLUA_LIB int luaopen_cocos2d_EventListenerTouchAllAtOnce(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventListenerTouchAllAtOnce(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListenerTouchAllAtOnce"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventListenerCustom_create(lua_State *L) @@ -5378,7 +5558,7 @@ static int _cocos2d_EventListenerCustom_create(lua_State *L) std::string cb_tag = "listener"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](cocos2d::EventCustom *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](cocos2d::EventCustom *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -5386,7 +5566,7 @@ static int _cocos2d_EventListenerCustom_create(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.EventCustom"); + olua_push_object(L, cb_arg1, "cc.EventCustom"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -5427,8 +5607,7 @@ static int _cocos2d_EventListenerCustom_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListenerCustom(lua_State *L) +static int _cc_EventListenerCustom(lua_State *L) { oluacls_class(L, "cc.EventListenerCustom"); oluacls_func(L, "create", _cocos2d_EventListenerCustom_create); @@ -5436,6 +5615,16 @@ OLUA_LIB int luaopen_cocos2d_EventListenerCustom(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventListenerCustom(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListenerCustom"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventListenerKeyboard_create(lua_State *L) @@ -5504,7 +5693,7 @@ static int _cocos2d_EventListenerKeyboard_onKeyPressed$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::EventKeyboard::KeyCode arg1, cocos2d::Event *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::EventKeyboard::KeyCode cb_arg1, cocos2d::Event *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -5512,8 +5701,8 @@ static int _cocos2d_EventListenerKeyboard_onKeyPressed$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_enum(L, arg1); - olua_push_object(L, arg2, "cc.Event"); + olua_push_enum(L, cb_arg1); + olua_push_object(L, cb_arg2, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -5596,7 +5785,7 @@ static int _cocos2d_EventListenerKeyboard_onKeyReleased$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::EventKeyboard::KeyCode arg1, cocos2d::Event *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::EventKeyboard::KeyCode cb_arg1, cocos2d::Event *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -5604,8 +5793,8 @@ static int _cocos2d_EventListenerKeyboard_onKeyReleased$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_enum(L, arg1); - olua_push_object(L, arg2, "cc.Event"); + olua_push_enum(L, cb_arg1); + olua_push_object(L, cb_arg2, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -5649,8 +5838,7 @@ static int _cocos2d_EventListenerKeyboard_onKeyReleased(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListenerKeyboard(lua_State *L) +static int _cc_EventListenerKeyboard(lua_State *L) { oluacls_class(L, "cc.EventListenerKeyboard"); oluacls_func(L, "create", _cocos2d_EventListenerKeyboard_create); @@ -5661,6 +5849,16 @@ OLUA_LIB int luaopen_cocos2d_EventListenerKeyboard(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventListenerKeyboard(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListenerKeyboard"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventListenerAcceleration_create(lua_State *L) @@ -5675,7 +5873,7 @@ static int _cocos2d_EventListenerAcceleration_create(lua_State *L) std::string cb_tag = "listener"; std::string cb_name = olua_setcallback(L, cb_store, 1, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Acceleration *arg1, cocos2d::Event *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Acceleration *cb_arg1, cocos2d::Event *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -5683,8 +5881,8 @@ static int _cocos2d_EventListenerAcceleration_create(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Acceleration"); - olua_push_object(L, arg2, "cc.Event"); + olua_push_object(L, cb_arg1, "cc.Acceleration"); + olua_push_object(L, cb_arg2, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -5725,8 +5923,7 @@ static int _cocos2d_EventListenerAcceleration_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListenerAcceleration(lua_State *L) +static int _cc_EventListenerAcceleration(lua_State *L) { oluacls_class(L, "cc.EventListenerAcceleration"); oluacls_func(L, "create", _cocos2d_EventListenerAcceleration_create); @@ -5735,6 +5932,16 @@ OLUA_LIB int luaopen_cocos2d_EventListenerAcceleration(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventListenerAcceleration(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListenerAcceleration"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventListenerFocus_create(lua_State *L) @@ -5803,7 +6010,7 @@ static int _cocos2d_EventListenerFocus_onFocusChanged$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::Widget *arg1, cocos2d::ui::Widget *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::Widget *cb_arg1, cocos2d::ui::Widget *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -5811,8 +6018,8 @@ static int _cocos2d_EventListenerFocus_onFocusChanged$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "ccui.Widget"); - olua_push_object(L, arg2, "ccui.Widget"); + olua_push_object(L, cb_arg1, "ccui.Widget"); + olua_push_object(L, cb_arg2, "ccui.Widget"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -5856,8 +6063,7 @@ static int _cocos2d_EventListenerFocus_onFocusChanged(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListenerFocus(lua_State *L) +static int _cc_EventListenerFocus(lua_State *L) { oluacls_class(L, "cc.EventListenerFocus"); oluacls_func(L, "create", _cocos2d_EventListenerFocus_create); @@ -5867,6 +6073,16 @@ OLUA_LIB int luaopen_cocos2d_EventListenerFocus(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventListenerFocus(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListenerFocus"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventListenerMouse_create(lua_State *L) @@ -5935,7 +6151,7 @@ static int _cocos2d_EventListenerMouse_onMouseDown$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::EventMouse *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::EventMouse *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -5943,7 +6159,7 @@ static int _cocos2d_EventListenerMouse_onMouseDown$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.EventMouse"); + olua_push_object(L, cb_arg1, "cc.EventMouse"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -6026,7 +6242,7 @@ static int _cocos2d_EventListenerMouse_onMouseMove$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::EventMouse *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::EventMouse *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -6034,7 +6250,7 @@ static int _cocos2d_EventListenerMouse_onMouseMove$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.EventMouse"); + olua_push_object(L, cb_arg1, "cc.EventMouse"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -6117,7 +6333,7 @@ static int _cocos2d_EventListenerMouse_onMouseScroll$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::EventMouse *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::EventMouse *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -6125,7 +6341,7 @@ static int _cocos2d_EventListenerMouse_onMouseScroll$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.EventMouse"); + olua_push_object(L, cb_arg1, "cc.EventMouse"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -6208,7 +6424,7 @@ static int _cocos2d_EventListenerMouse_onMouseUp$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::EventMouse *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::EventMouse *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -6216,7 +6432,7 @@ static int _cocos2d_EventListenerMouse_onMouseUp$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.EventMouse"); + olua_push_object(L, cb_arg1, "cc.EventMouse"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -6260,8 +6476,7 @@ static int _cocos2d_EventListenerMouse_onMouseUp(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListenerMouse(lua_State *L) +static int _cc_EventListenerMouse(lua_State *L) { oluacls_class(L, "cc.EventListenerMouse"); oluacls_func(L, "create", _cocos2d_EventListenerMouse_create); @@ -6274,10 +6489,19 @@ OLUA_LIB int luaopen_cocos2d_EventListenerMouse(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Event_Type(lua_State *L) +OLUA_LIB int luaopen_cc_EventListenerMouse(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListenerMouse"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_Event_Type(lua_State *L) { oluacls_class(L, "cc.Event.Type"); oluacls_func(L, "__index", olua_indexerror); @@ -6292,6 +6516,16 @@ OLUA_LIB int luaopen_cocos2d_Event_Type(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Event_Type(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Event::Type"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Event_getCurrentTarget(lua_State *L) @@ -6379,8 +6613,7 @@ static int _cocos2d_Event_stopPropagation(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Event(lua_State *L) +static int _cc_Event(lua_State *L) { oluacls_class(L, "cc.Event"); oluacls_func(L, "getCurrentTarget", _cocos2d_Event_getCurrentTarget); @@ -6394,6 +6627,16 @@ OLUA_LIB int luaopen_cocos2d_Event(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Event(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Event"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventCustom_getEventName(lua_State *L) @@ -6466,8 +6709,7 @@ static int _cocos2d_EventCustom_setUserData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventCustom(lua_State *L) +static int _cc_EventCustom(lua_State *L) { oluacls_class(L, "cc.EventCustom"); oluacls_func(L, "getEventName", _cocos2d_EventCustom_getEventName); @@ -6479,6 +6721,16 @@ OLUA_LIB int luaopen_cocos2d_EventCustom(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventCustom(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventCustom"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventListenerController_create(lua_State *L) @@ -6533,7 +6785,7 @@ static int _cocos2d_EventListenerController_onAxisEvent$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Controller *arg1, int arg2, cocos2d::Event *arg3) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Controller *cb_arg1, int cb_arg2, cocos2d::Event *cb_arg3) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -6541,9 +6793,9 @@ static int _cocos2d_EventListenerController_onAxisEvent$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Controller"); - olua_push_integer(L, arg2); - olua_push_object(L, arg3, "cc.Event"); + olua_push_object(L, cb_arg1, "cc.Controller"); + olua_push_integer(L, cb_arg2); + olua_push_object(L, cb_arg3, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 3); @@ -6626,7 +6878,7 @@ static int _cocos2d_EventListenerController_onConnected$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Controller *arg1, cocos2d::Event *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Controller *cb_arg1, cocos2d::Event *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -6634,8 +6886,8 @@ static int _cocos2d_EventListenerController_onConnected$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Controller"); - olua_push_object(L, arg2, "cc.Event"); + olua_push_object(L, cb_arg1, "cc.Controller"); + olua_push_object(L, cb_arg2, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -6718,7 +6970,7 @@ static int _cocos2d_EventListenerController_onDisconnected$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Controller *arg1, cocos2d::Event *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Controller *cb_arg1, cocos2d::Event *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -6726,8 +6978,8 @@ static int _cocos2d_EventListenerController_onDisconnected$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Controller"); - olua_push_object(L, arg2, "cc.Event"); + olua_push_object(L, cb_arg1, "cc.Controller"); + olua_push_object(L, cb_arg2, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -6810,7 +7062,7 @@ static int _cocos2d_EventListenerController_onKeyDown$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Controller *arg1, int arg2, cocos2d::Event *arg3) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Controller *cb_arg1, int cb_arg2, cocos2d::Event *cb_arg3) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -6818,9 +7070,9 @@ static int _cocos2d_EventListenerController_onKeyDown$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Controller"); - olua_push_integer(L, arg2); - olua_push_object(L, arg3, "cc.Event"); + olua_push_object(L, cb_arg1, "cc.Controller"); + olua_push_integer(L, cb_arg2); + olua_push_object(L, cb_arg3, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 3); @@ -6903,7 +7155,7 @@ static int _cocos2d_EventListenerController_onKeyRepeat$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Controller *arg1, int arg2, cocos2d::Event *arg3) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Controller *cb_arg1, int cb_arg2, cocos2d::Event *cb_arg3) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -6911,9 +7163,9 @@ static int _cocos2d_EventListenerController_onKeyRepeat$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Controller"); - olua_push_integer(L, arg2); - olua_push_object(L, arg3, "cc.Event"); + olua_push_object(L, cb_arg1, "cc.Controller"); + olua_push_integer(L, cb_arg2); + olua_push_object(L, cb_arg3, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 3); @@ -6996,7 +7248,7 @@ static int _cocos2d_EventListenerController_onKeyUp$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Controller *arg1, int arg2, cocos2d::Event *arg3) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Controller *cb_arg1, int cb_arg2, cocos2d::Event *cb_arg3) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -7004,9 +7256,9 @@ static int _cocos2d_EventListenerController_onKeyUp$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Controller"); - olua_push_integer(L, arg2); - olua_push_object(L, arg3, "cc.Event"); + olua_push_object(L, cb_arg1, "cc.Controller"); + olua_push_integer(L, cb_arg2); + olua_push_object(L, cb_arg3, "cc.Event"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 3); @@ -7050,8 +7302,7 @@ static int _cocos2d_EventListenerController_onKeyUp(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListenerController(lua_State *L) +static int _cc_EventListenerController(lua_State *L) { oluacls_class(L, "cc.EventListenerController"); oluacls_func(L, "create", _cocos2d_EventListenerController_create); @@ -7065,10 +7316,19 @@ OLUA_LIB int luaopen_cocos2d_EventListenerController(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventTouch_EventCode(lua_State *L) +OLUA_LIB int luaopen_cc_EventListenerController(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListenerController"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_EventTouch_EventCode(lua_State *L) { oluacls_class(L, "cc.EventTouch.EventCode"); oluacls_func(L, "__index", olua_indexerror); @@ -7080,6 +7340,16 @@ OLUA_LIB int luaopen_cocos2d_EventTouch_EventCode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventTouch_EventCode(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventTouch::EventCode"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventTouch_getEventCode(lua_State *L) @@ -7170,8 +7440,7 @@ static int _cocos2d_EventTouch_setTouches(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventTouch(lua_State *L) +static int _cc_EventTouch(lua_State *L) { oluacls_class(L, "cc.EventTouch"); oluacls_func(L, "getEventCode", _cocos2d_EventTouch_getEventCode); @@ -7185,6 +7454,16 @@ OLUA_LIB int luaopen_cocos2d_EventTouch(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventTouch(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventTouch"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventKeyboard_new(lua_State *L) @@ -7207,26 +7486,35 @@ static int _cocos2d_EventKeyboard_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventKeyboard(lua_State *L) +static int _cc_EventKeyboard(lua_State *L) { oluacls_class(L, "cc.EventKeyboard"); oluacls_func(L, "new", _cocos2d_EventKeyboard_new); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventKeyboard(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventKeyboard"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventAcceleration_new(lua_State *L) { olua_startinvoke(L); - cocos2d::Acceleration arg1; /** acc */ + cocos2d::Acceleration *arg1; /** acc */ olua_check_object(L, 1, &arg1, "cc.Acceleration"); // cocos2d::EventAcceleration(const cocos2d::Acceleration &acc) - cocos2d::EventAcceleration *ret = new cocos2d::EventAcceleration(arg1); + cocos2d::EventAcceleration *ret = new cocos2d::EventAcceleration(*arg1); int num_ret = olua_push_object(L, ret, "cc.EventAcceleration"); olua_postnew(L, ret); @@ -7235,14 +7523,23 @@ static int _cocos2d_EventAcceleration_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventAcceleration(lua_State *L) +static int _cc_EventAcceleration(lua_State *L) { oluacls_class(L, "cc.EventAcceleration"); oluacls_func(L, "new", _cocos2d_EventAcceleration_new); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventAcceleration(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventAcceleration"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventFocus_new(lua_State *L) @@ -7265,18 +7562,26 @@ static int _cocos2d_EventFocus_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventFocus(lua_State *L) +static int _cc_EventFocus(lua_State *L) { oluacls_class(L, "cc.EventFocus"); oluacls_func(L, "new", _cocos2d_EventFocus_new); return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventMouse_MouseEventType(lua_State *L) +OLUA_LIB int luaopen_cc_EventFocus(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventFocus"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_EventMouse_MouseEventType(lua_State *L) { oluacls_class(L, "cc.EventMouse.MouseEventType"); oluacls_func(L, "__index", olua_indexerror); @@ -7289,10 +7594,19 @@ OLUA_LIB int luaopen_cocos2d_EventMouse_MouseEventType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventMouse_MouseButton(lua_State *L) +OLUA_LIB int luaopen_cc_EventMouse_MouseEventType(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventMouse::MouseEventType"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_EventMouse_MouseButton(lua_State *L) { oluacls_class(L, "cc.EventMouse.MouseButton"); oluacls_func(L, "__index", olua_indexerror); @@ -7309,6 +7623,16 @@ OLUA_LIB int luaopen_cocos2d_EventMouse_MouseButton(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventMouse_MouseButton(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventMouse::MouseButton"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventMouse_getCursorX(lua_State *L) @@ -7591,8 +7915,7 @@ static int _cocos2d_EventMouse_setScrollData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventMouse(lua_State *L) +static int _cc_EventMouse(lua_State *L) { oluacls_class(L, "cc.EventMouse"); oluacls_func(L, "getCursorX", _cocos2d_EventMouse_getCursorX); @@ -7626,10 +7949,19 @@ OLUA_LIB int luaopen_cocos2d_EventMouse(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventKeyboard_KeyCode(lua_State *L) +OLUA_LIB int luaopen_cc_EventMouse(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventMouse"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_EventKeyboard_KeyCode(lua_State *L) { oluacls_class(L, "cc.EventKeyboard.KeyCode"); oluacls_func(L, "__index", olua_indexerror); @@ -7807,10 +8139,19 @@ OLUA_LIB int luaopen_cocos2d_EventKeyboard_KeyCode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Touch_DispatchMode(lua_State *L) +OLUA_LIB int luaopen_cc_EventKeyboard_KeyCode(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventKeyboard::KeyCode"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_Touch_DispatchMode(lua_State *L) { oluacls_class(L, "cc.Touch.DispatchMode"); oluacls_func(L, "__index", olua_indexerror); @@ -7820,10 +8161,19 @@ OLUA_LIB int luaopen_cocos2d_Touch_DispatchMode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventController_ControllerEventType(lua_State *L) +OLUA_LIB int luaopen_cc_Touch_DispatchMode(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Touch::DispatchMode"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_EventController_ControllerEventType(lua_State *L) { oluacls_class(L, "cc.EventController.ControllerEventType"); oluacls_func(L, "__index", olua_indexerror); @@ -7834,6 +8184,16 @@ OLUA_LIB int luaopen_cocos2d_EventController_ControllerEventType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventController_ControllerEventType(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventController::ControllerEventType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EventController_getController(lua_State *L) @@ -8005,8 +8365,7 @@ static int _cocos2d_EventController_setKeyCode(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventController(lua_State *L) +static int _cc_EventController(lua_State *L) { oluacls_class(L, "cc.EventController"); oluacls_func(L, "getController", _cocos2d_EventController_getController); @@ -8023,6 +8382,16 @@ OLUA_LIB int luaopen_cocos2d_EventController(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventController(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventController"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Touch_getCurrentForce(lua_State *L) @@ -8280,8 +8649,7 @@ static int _cocos2d_Touch_setTouchInfo(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Touch(lua_State *L) +static int _cc_Touch(lua_State *L) { oluacls_class(L, "cc.Touch"); oluacls_func(L, "getCurrentForce", _cocos2d_Touch_getCurrentForce); @@ -8309,10 +8677,19 @@ OLUA_LIB int luaopen_cocos2d_Touch(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Controller_Key(lua_State *L) +OLUA_LIB int luaopen_cc_Touch(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Touch"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_Controller_Key(lua_State *L) { oluacls_class(L, "cc.Controller.Key"); oluacls_func(L, "__index", olua_indexerror); @@ -8346,6 +8723,16 @@ OLUA_LIB int luaopen_cocos2d_Controller_Key(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Controller_Key(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Controller::Key"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Controller___olua_move(lua_State *L) @@ -8538,8 +8925,7 @@ static int _cocos2d_Controller_stopDiscoveryController(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Controller(lua_State *L) +static int _cc_Controller(lua_State *L) { oluacls_class(L, "cc.Controller"); oluacls_func(L, "__olua_move", _cocos2d_Controller___olua_move); @@ -8563,6 +8949,16 @@ OLUA_LIB int luaopen_cocos2d_Controller(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Controller(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Controller"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_AudioProfile___gc(lua_State *L) @@ -8771,8 +9167,7 @@ static int _cocos2d_AudioProfile_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_AudioProfile(lua_State *L) +static int _cc_AudioProfile(lua_State *L) { oluacls_class(L, "cc.AudioProfile"); oluacls_func(L, "__gc", _cocos2d_AudioProfile___gc); @@ -8784,10 +9179,19 @@ OLUA_LIB int luaopen_cocos2d_AudioProfile(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_AudioEngine_AudioState(lua_State *L) +OLUA_LIB int luaopen_cc_AudioProfile(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::AudioProfile"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_AudioEngine_AudioState(lua_State *L) { oluacls_class(L, "cc.AudioEngine.AudioState"); oluacls_func(L, "__index", olua_indexerror); @@ -8799,6 +9203,16 @@ OLUA_LIB int luaopen_cocos2d_AudioEngine_AudioState(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_AudioEngine_AudioState(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::AudioEngine::AudioState"); + } + return 1; +} OLUA_END_DECLS NS_CC_BEGIN @@ -9276,13 +9690,13 @@ static int _cocos2d_AudioEngine_preload$2(lua_State *L) std::string cb_tag = "preload"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](bool arg1) { + arg2 = [cb_store, cb_name, cb_ctx](bool cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_bool(L, arg1); + olua_push_bool(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -9404,14 +9818,14 @@ static int _cocos2d_AudioEngine_setFinishCallback(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](int arg1, const std::string &arg2) { + arg2 = [cb_store, cb_name, cb_ctx](int cb_arg1, const std::string &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_integer(L, arg1); - olua_push_string(L, arg2); + olua_push_integer(L, cb_arg1); + olua_push_string(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -9563,8 +9977,7 @@ static int _cocos2d_AudioEngine_uncacheAll(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_AudioEngine(lua_State *L) +static int _cc_AudioEngine(lua_State *L) { oluacls_class(L, "cc.AudioEngine"); oluacls_func(L, "__gc", _cocos2d_AudioEngine___gc); @@ -9606,10 +10019,19 @@ OLUA_LIB int luaopen_cocos2d_AudioEngine(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ApplicationProtocol_Platform(lua_State *L) +OLUA_LIB int luaopen_cc_AudioEngine(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::AudioEngine"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_ApplicationProtocol_Platform(lua_State *L) { oluacls_class(L, "cc.ApplicationProtocol.Platform"); oluacls_func(L, "__index", olua_indexerror); @@ -9623,10 +10045,19 @@ OLUA_LIB int luaopen_cocos2d_ApplicationProtocol_Platform(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_LanguageType(lua_State *L) +OLUA_LIB int luaopen_cc_ApplicationProtocol_Platform(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ApplicationProtocol::Platform"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_LanguageType(lua_State *L) { oluacls_class(L, "cc.LanguageType"); oluacls_func(L, "__index", olua_indexerror); @@ -9654,6 +10085,16 @@ OLUA_LIB int luaopen_cocos2d_LanguageType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_LanguageType(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::LanguageType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ApplicationProtocol___gc(lua_State *L) @@ -9850,8 +10291,7 @@ static int _cocos2d_ApplicationProtocol_setAnimationInterval(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ApplicationProtocol(lua_State *L) +static int _cc_ApplicationProtocol(lua_State *L) { oluacls_class(L, "cc.ApplicationProtocol"); oluacls_func(L, "__gc", _cocos2d_ApplicationProtocol___gc); @@ -9873,6 +10313,16 @@ OLUA_LIB int luaopen_cocos2d_ApplicationProtocol(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ApplicationProtocol(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ApplicationProtocol"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Application_getInstance(lua_State *L) @@ -9905,8 +10355,7 @@ static int _cocos2d_Application_run(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Application(lua_State *L) +static int _cc_Application(lua_State *L) { oluacls_class(L, "cc.Application"); oluacls_func(L, "getInstance", _cocos2d_Application_getInstance); @@ -9915,6 +10364,16 @@ OLUA_LIB int luaopen_cocos2d_Application(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Application(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Application"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Device___gc(lua_State *L) @@ -10018,8 +10477,7 @@ static int _cocos2d_Device_vibrate(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Device(lua_State *L) +static int _cc_Device(lua_State *L) { oluacls_class(L, "cc.Device"); oluacls_func(L, "__gc", _cocos2d_Device___gc); @@ -10033,6 +10491,16 @@ OLUA_LIB int luaopen_cocos2d_Device(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Device(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Device"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ResizableBuffer___gc(lua_State *L) @@ -10094,8 +10562,7 @@ static int _cocos2d_ResizableBuffer_resize(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ResizableBuffer(lua_State *L) +static int _cc_ResizableBuffer(lua_State *L) { oluacls_class(L, "cc.ResizableBuffer"); oluacls_func(L, "__gc", _cocos2d_ResizableBuffer___gc); @@ -10105,10 +10572,19 @@ OLUA_LIB int luaopen_cocos2d_ResizableBuffer(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FileUtils_Status(lua_State *L) +OLUA_LIB int luaopen_cc_ResizableBuffer(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ResizableBuffer"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_FileUtils_Status(lua_State *L) { oluacls_class(L, "cc.FileUtils.Status"); oluacls_func(L, "__index", olua_indexerror); @@ -10124,6 +10600,16 @@ OLUA_LIB int luaopen_cocos2d_FileUtils_Status(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FileUtils_Status(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FileUtils::Status"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FileUtils___gc(lua_State *L) @@ -10307,13 +10793,13 @@ static int _cocos2d_FileUtils_createDirectory$2(lua_State *L) std::string cb_tag = "createDirectory"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](bool arg1) { + arg2 = [cb_store, cb_name, cb_ctx](bool cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_bool(L, arg1); + olua_push_bool(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -10462,7 +10948,7 @@ static int _cocos2d_FileUtils_getDataFromFile$2(lua_State *L) std::string cb_tag = "DataFromFile"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](cocos2d::Data arg1) { + arg2 = [cb_store, cb_name, cb_ctx](cocos2d::Data cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -10470,7 +10956,7 @@ static int _cocos2d_FileUtils_getDataFromFile$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_cocos2d_Data(L, arg1); + olua_push_cocos2d_Data(L, cb_arg1); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -10579,18 +11065,20 @@ static int _cocos2d_FileUtils_getFileDataFromZip(lua_State *L) { int num_args = lua_gettop(L) - 1; - if (num_args == 3) { - if ((olua_is_string(L, 2)) && (olua_is_string(L, 3)) && (olua_is_pointer(L, 4, "olua.ssize_t"))) { - // unsigned char *getFileDataFromZip(const std::string &zipFilePath, const std::string &filename, ssize_t *size) - return _cocos2d_FileUtils_getFileDataFromZip$1(L); - } - + if (num_args == 2) { // if ((olua_is_object(L, 1, "cc.FileUtils")) && (olua_is_string(L, 2)) && (olua_is_string(L, 3))) { // @extend(cocos2d::FileUtilsExtend) static cocos2d::Data getFileDataFromZip(cocos2d::FileUtils *obj, const std::string &zipPath, const std::string &name) return _cocos2d_FileUtils_getFileDataFromZip$2(L); // } } + if (num_args == 3) { + // if ((olua_is_string(L, 2)) && (olua_is_string(L, 3)) && (olua_is_pointer(L, 4, "olua.ssize_t"))) { + // unsigned char *getFileDataFromZip(const std::string &zipFilePath, const std::string &filename, ssize_t *size) + return _cocos2d_FileUtils_getFileDataFromZip$1(L); + // } + } + luaL_error(L, "method 'cocos2d::FileUtils::getFileDataFromZip' not support '%d' arguments", num_args); return 0; @@ -10650,13 +11138,13 @@ static int _cocos2d_FileUtils_getFileSize$2(lua_State *L) std::string cb_tag = "FileSize"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](long arg1) { + arg2 = [cb_store, cb_name, cb_ctx](long cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_integer(L, arg1); + olua_push_integer(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -10841,13 +11329,13 @@ static int _cocos2d_FileUtils_getStringFromFile$2(lua_State *L) std::string cb_tag = "StringFromFile"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](std::string arg1) { + arg2 = [cb_store, cb_name, cb_ctx](std::string cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_string(L, arg1); + olua_push_string(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -11037,13 +11525,13 @@ static int _cocos2d_FileUtils_isDirectoryExist$2(lua_State *L) std::string cb_tag = "isDirectoryExist"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](bool arg1) { + arg2 = [cb_store, cb_name, cb_ctx](bool cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_bool(L, arg1); + olua_push_bool(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -11119,13 +11607,13 @@ static int _cocos2d_FileUtils_isFileExist$2(lua_State *L) std::string cb_tag = "isFileExist"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](bool arg1) { + arg2 = [cb_store, cb_name, cb_ctx](bool cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_bool(L, arg1); + olua_push_bool(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -11220,7 +11708,7 @@ static int _cocos2d_FileUtils_listFilesAsync(lua_State *L) std::string cb_tag = "listFilesAsync"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](std::vector arg1) { + arg2 = [cb_store, cb_name, cb_ctx](std::vector cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -11228,7 +11716,7 @@ static int _cocos2d_FileUtils_listFilesAsync(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_array(L, arg1, [L](std::string &arg1) { + olua_push_array(L, cb_arg1, [L](std::string &arg1) { olua_push_string(L, arg1); }); olua_disable_objpool(L); @@ -11287,7 +11775,7 @@ static int _cocos2d_FileUtils_listFilesRecursivelyAsync(lua_State *L) std::string cb_tag = "listFilesRecursivelyAsync"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](std::vector arg1) { + arg2 = [cb_store, cb_name, cb_ctx](std::vector cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -11295,7 +11783,7 @@ static int _cocos2d_FileUtils_listFilesRecursivelyAsync(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_array(L, arg1, [L](std::string &arg1) { + olua_push_array(L, cb_arg1, [L](std::string &arg1) { olua_push_string(L, arg1); }); olua_disable_objpool(L); @@ -11387,13 +11875,13 @@ static int _cocos2d_FileUtils_removeDirectory$2(lua_State *L) std::string cb_tag = "removeDirectory"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](bool arg1) { + arg2 = [cb_store, cb_name, cb_ctx](bool cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_bool(L, arg1); + olua_push_bool(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -11469,13 +11957,13 @@ static int _cocos2d_FileUtils_removeFile$2(lua_State *L) std::string cb_tag = "removeFile"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](bool arg1) { + arg2 = [cb_store, cb_name, cb_ctx](bool cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_bool(L, arg1); + olua_push_bool(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -11559,13 +12047,13 @@ static int _cocos2d_FileUtils_renameFile$2(lua_State *L) std::string cb_tag = "renameFile"; std::string cb_name = olua_setcallback(L, cb_store, 5, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg4 = [cb_store, cb_name, cb_ctx](bool arg1) { + arg4 = [cb_store, cb_name, cb_ctx](bool cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_bool(L, arg1); + olua_push_bool(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -11622,13 +12110,13 @@ static int _cocos2d_FileUtils_renameFile$4(lua_State *L) std::string cb_tag = "renameFile"; std::string cb_name = olua_setcallback(L, cb_store, 4, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg3 = [cb_store, cb_name, cb_ctx](bool arg1) { + arg3 = [cb_store, cb_name, cb_ctx](bool cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_bool(L, arg1); + olua_push_bool(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -11848,13 +12336,13 @@ static int _cocos2d_FileUtils_writeDataToFile$2(lua_State *L) std::string cb_tag = "writeDataToFile"; std::string cb_name = olua_setcallback(L, cb_store, 4, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg3 = [cb_store, cb_name, cb_ctx](bool arg1) { + arg3 = [cb_store, cb_name, cb_ctx](bool cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_bool(L, arg1); + olua_push_bool(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -11934,13 +12422,13 @@ static int _cocos2d_FileUtils_writeStringToFile$2(lua_State *L) std::string cb_tag = "writeStringToFile"; std::string cb_name = olua_setcallback(L, cb_store, 4, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg3 = [cb_store, cb_name, cb_ctx](bool arg1) { + arg3 = [cb_store, cb_name, cb_ctx](bool cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_bool(L, arg1); + olua_push_bool(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -12041,13 +12529,13 @@ static int _cocos2d_FileUtils_writeValueMapToFile$2(lua_State *L) std::string cb_tag = "writeValueMapToFile"; std::string cb_name = olua_setcallback(L, cb_store, 4, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg3 = [cb_store, cb_name, cb_ctx](bool arg1) { + arg3 = [cb_store, cb_name, cb_ctx](bool cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_bool(L, arg1); + olua_push_bool(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -12127,13 +12615,13 @@ static int _cocos2d_FileUtils_writeValueVectorToFile$2(lua_State *L) std::string cb_tag = "writeValueVectorToFile"; std::string cb_name = olua_setcallback(L, cb_store, 4, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg3 = [cb_store, cb_name, cb_ctx](bool arg1) { + arg3 = [cb_store, cb_name, cb_ctx](bool cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_bool(L, arg1); + olua_push_bool(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -12174,8 +12662,7 @@ static int _cocos2d_FileUtils_writeValueVectorToFile(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FileUtils(lua_State *L) +static int _cc_FileUtils(lua_State *L) { oluacls_class(L, "cc.FileUtils"); oluacls_func(L, "__gc", _cocos2d_FileUtils___gc); @@ -12240,10 +12727,19 @@ OLUA_LIB int luaopen_cocos2d_FileUtils(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_ResolutionPolicy(lua_State *L) +OLUA_LIB int luaopen_cc_FileUtils(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FileUtils"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_ResolutionPolicy(lua_State *L) { oluacls_class(L, "cc.ResolutionPolicy"); oluacls_func(L, "__index", olua_indexerror); @@ -12257,6 +12753,16 @@ OLUA_LIB int luaopen_ResolutionPolicy(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ResolutionPolicy(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: ResolutionPolicy"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_GLView_end(lua_State *L) @@ -12954,8 +13460,7 @@ static int _cocos2d_GLView_windowShouldClose(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_GLView(lua_State *L) +static int _cc_GLView(lua_State *L) { oluacls_class(L, "cc.GLView"); oluacls_func(L, "end_", _cocos2d_GLView_end); @@ -13016,19 +13521,37 @@ OLUA_LIB int luaopen_cocos2d_GLView(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_GLViewImpl(lua_State *L) +OLUA_LIB int luaopen_cc_GLView(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::GLView"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_GLViewImpl(lua_State *L) { oluacls_class(L, "cc.GLViewImpl"); return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Image_Format(lua_State *L) +OLUA_LIB int luaopen_cc_GLViewImpl(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::GLViewImpl"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_Image_Format(lua_State *L) { oluacls_class(L, "cc.Image.Format"); oluacls_func(L, "__index", olua_indexerror); @@ -13046,6 +13569,16 @@ OLUA_LIB int luaopen_cocos2d_Image_Format(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Image_Format(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Image::Format"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Image_getBitPerPixel(lua_State *L) @@ -13525,8 +14058,7 @@ static int _cocos2d_Image_setPVRImagesHavePremultipliedAlpha(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Image(lua_State *L) +static int _cc_Image(lua_State *L) { oluacls_class(L, "cc.Image"); oluacls_func(L, "getBitPerPixel", _cocos2d_Image_getBitPerPixel); @@ -13565,10 +14097,19 @@ OLUA_LIB int luaopen_cocos2d_Image(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Properties_Type(lua_State *L) +OLUA_LIB int luaopen_cc_Image(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Image"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_Properties_Type(lua_State *L) { oluacls_class(L, "cc.Properties.Type"); oluacls_func(L, "__index", olua_indexerror); @@ -13583,6 +14124,16 @@ OLUA_LIB int luaopen_cocos2d_Properties_Type(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Properties_Type(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Properties::Type"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Properties___gc(lua_State *L) @@ -14653,8 +15204,7 @@ static int _cocos2d_Properties_setVariable(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Properties(lua_State *L) +static int _cc_Properties(lua_State *L) { oluacls_class(L, "cc.Properties"); oluacls_func(L, "__gc", _cocos2d_Properties___gc); @@ -14693,6 +15243,16 @@ OLUA_LIB int luaopen_cocos2d_Properties(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Properties(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Properties"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Material_addTechnique(lua_State *L) @@ -14793,7 +15353,7 @@ static int _cocos2d_Material_draw(lua_State *L) cocos2d::CustomCommand::PrimitiveType arg5 = (cocos2d::CustomCommand::PrimitiveType)0; /** primitive */ cocos2d::CustomCommand::IndexFormat arg6 = (cocos2d::CustomCommand::IndexFormat)0; /** indexFormat */ unsigned int arg7 = 0; /** indexCount */ - cocos2d::Mat4 arg8; /** modelView */ + cocos2d::Mat4 *arg8; /** modelView */ olua_to_object(L, 1, &self, "cc.Material"); olua_check_object(L, 2, &arg1, "cc.MeshCommand"); @@ -14806,7 +15366,7 @@ static int _cocos2d_Material_draw(lua_State *L) olua_check_object(L, 9, &arg8, "cc.Mat4"); // void draw(cocos2d::MeshCommand *meshCommand, float globalZOrder, cocos2d::backend::Buffer *vertexBuffer, cocos2d::backend::Buffer *indexBuffer, cocos2d::CustomCommand::PrimitiveType primitive, cocos2d::CustomCommand::IndexFormat indexFormat, unsigned int indexCount, const cocos2d::Mat4 &modelView) - self->draw(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); + self->draw(arg1, arg2, arg3, arg4, arg5, arg6, arg7, *arg8); olua_endinvoke(L); @@ -14974,8 +15534,7 @@ static int _cocos2d_Material_setTechnique(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Material(lua_State *L) +static int _cc_Material(lua_State *L) { oluacls_class(L, "cc.Material"); oluacls_func(L, "addTechnique", _cocos2d_Material_addTechnique); @@ -15001,6 +15560,16 @@ OLUA_LIB int luaopen_cocos2d_Material(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Material(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Material"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Renderer___gc(lua_State *L) @@ -15129,15 +15698,15 @@ static int _cocos2d_Renderer_checkVisibility(lua_State *L) olua_startinvoke(L); cocos2d::Renderer *self = nullptr; - cocos2d::Mat4 arg1; /** transform */ - cocos2d::Size arg2; /** size */ + cocos2d::Mat4 *arg1; /** transform */ + cocos2d::Size *arg2; /** size */ olua_to_object(L, 1, &self, "cc.Renderer"); olua_check_object(L, 2, &arg1, "cc.Mat4"); olua_check_object(L, 3, &arg2, "cc.Size"); // bool checkVisibility(const cocos2d::Mat4 &transform, const cocos2d::Size &size) - bool ret = self->checkVisibility(arg1, arg2); + bool ret = self->checkVisibility(*arg1, *arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -16020,8 +16589,7 @@ static int _cocos2d_Renderer_setWinding(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Renderer(lua_State *L) +static int _cc_Renderer(lua_State *L) { oluacls_class(L, "cc.Renderer"); oluacls_func(L, "__gc", _cocos2d_Renderer___gc); @@ -16109,10 +16677,19 @@ OLUA_LIB int luaopen_cocos2d_Renderer(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_RenderCommand_Type(lua_State *L) +OLUA_LIB int luaopen_cc_Renderer(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Renderer"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_RenderCommand_Type(lua_State *L) { oluacls_class(L, "cc.RenderCommand.Type"); oluacls_func(L, "__index", olua_indexerror); @@ -16128,10 +16705,19 @@ OLUA_LIB int luaopen_cocos2d_RenderCommand_Type(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_CustomCommand_DrawType(lua_State *L) +OLUA_LIB int luaopen_cc_RenderCommand_Type(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::RenderCommand::Type"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_CustomCommand_DrawType(lua_State *L) { oluacls_class(L, "cc.CustomCommand.DrawType"); oluacls_func(L, "__index", olua_indexerror); @@ -16141,6 +16727,16 @@ OLUA_LIB int luaopen_cocos2d_CustomCommand_DrawType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_CustomCommand_DrawType(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::CustomCommand::DrawType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_PipelineDescriptor___gc(lua_State *L) @@ -16189,13 +16785,13 @@ static int _cocos2d_PipelineDescriptor_blendDescriptor$2(lua_State *L) olua_startinvoke(L); cocos2d::PipelineDescriptor *self = nullptr; - cocos2d::backend::BlendDescriptor arg1; /** blendDescriptor */ + cocos2d::backend::BlendDescriptor *arg1; /** blendDescriptor */ olua_to_object(L, 1, &self, "cc.PipelineDescriptor"); olua_check_object(L, 2, &arg1, "ccb.BlendDescriptor"); // cocos2d::backend::BlendDescriptor blendDescriptor - self->blendDescriptor = arg1; + self->blendDescriptor = *arg1; olua_endinvoke(L); @@ -16279,8 +16875,7 @@ static int _cocos2d_PipelineDescriptor_programState(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PipelineDescriptor(lua_State *L) +static int _cc_PipelineDescriptor(lua_State *L) { oluacls_class(L, "cc.PipelineDescriptor"); oluacls_func(L, "__gc", _cocos2d_PipelineDescriptor___gc); @@ -16290,33 +16885,70 @@ OLUA_LIB int luaopen_cocos2d_PipelineDescriptor(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Technique(lua_State *L) +OLUA_LIB int luaopen_cc_PipelineDescriptor(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PipelineDescriptor"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_Technique(lua_State *L) { oluacls_class(L, "cc.Technique"); return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Pass(lua_State *L) +OLUA_LIB int luaopen_cc_Technique(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Technique"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_Pass(lua_State *L) { oluacls_class(L, "cc.Pass"); return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_RenderState(lua_State *L) +OLUA_LIB int luaopen_cc_Pass(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Pass"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_RenderState(lua_State *L) { oluacls_class(L, "cc.RenderState"); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_RenderState(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::RenderState"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_RenderCommand___olua_move(lua_State *L) @@ -16422,7 +17054,7 @@ static int _cocos2d_RenderCommand_init(lua_State *L) cocos2d::RenderCommand *self = nullptr; float arg1 = 0; /** globalZOrder */ - cocos2d::Mat4 arg2; /** modelViewTransform */ + cocos2d::Mat4 *arg2; /** modelViewTransform */ unsigned int arg3 = 0; /** flags */ olua_to_object(L, 1, &self, "cc.RenderCommand"); @@ -16431,7 +17063,7 @@ static int _cocos2d_RenderCommand_init(lua_State *L) olua_check_integer(L, 4, &arg3); // void init(float globalZOrder, const cocos2d::Mat4 &modelViewTransform, unsigned int flags) - self->init(arg1, arg2, arg3); + self->init(arg1, *arg2, arg3); olua_endinvoke(L); @@ -16543,8 +17175,7 @@ static int _cocos2d_RenderCommand_setTransparent(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_RenderCommand(lua_State *L) +static int _cc_RenderCommand(lua_State *L) { oluacls_class(L, "cc.RenderCommand"); oluacls_func(L, "__olua_move", _cocos2d_RenderCommand___olua_move); @@ -16570,6 +17201,16 @@ OLUA_LIB int luaopen_cocos2d_RenderCommand(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_RenderCommand(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::RenderCommand"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_CustomCommand___gc(lua_State *L) @@ -16965,7 +17606,7 @@ static int _cocos2d_CustomCommand_init$1(lua_State *L) cocos2d::CustomCommand *self = nullptr; float arg1 = 0; /** globalZOrder */ - cocos2d::Mat4 arg2; /** modelViewTransform */ + cocos2d::Mat4 *arg2; /** modelViewTransform */ unsigned int arg3 = 0; /** flags */ olua_to_object(L, 1, &self, "cc.CustomCommand"); @@ -16974,7 +17615,7 @@ static int _cocos2d_CustomCommand_init$1(lua_State *L) olua_check_integer(L, 4, &arg3); // @using void init(float globalZOrder, const cocos2d::Mat4 &modelViewTransform, unsigned int flags) - self->init(arg1, arg2, arg3); + self->init(arg1, *arg2, arg3); olua_endinvoke(L); @@ -17005,14 +17646,14 @@ static int _cocos2d_CustomCommand_init$3(lua_State *L) cocos2d::CustomCommand *self = nullptr; float arg1 = 0; /** globalZOrder */ - cocos2d::BlendFunc arg2; /** blendFunc */ + cocos2d::BlendFunc *arg2; /** blendFunc */ olua_to_object(L, 1, &self, "cc.CustomCommand"); olua_check_number(L, 2, &arg1); olua_check_object(L, 3, &arg2, "cc.BlendFunc"); // void init(float globalZOrder, const cocos2d::BlendFunc &blendFunc) - self->init(arg1, arg2); + self->init(arg1, *arg2); olua_endinvoke(L); @@ -17395,8 +18036,7 @@ static int _cocos2d_CustomCommand_updateVertexBuffer(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_CustomCommand(lua_State *L) +static int _cc_CustomCommand(lua_State *L) { oluacls_class(L, "cc.CustomCommand"); oluacls_func(L, "__gc", _cocos2d_CustomCommand___gc); @@ -17446,6 +18086,16 @@ OLUA_LIB int luaopen_cocos2d_CustomCommand(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_CustomCommand(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::CustomCommand"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_MeshCommand_init$1(lua_State *L) @@ -17472,14 +18122,14 @@ static int _cocos2d_MeshCommand_init$2(lua_State *L) cocos2d::MeshCommand *self = nullptr; float arg1 = 0; /** globalZOrder */ - cocos2d::Mat4 arg2; /** transform */ + cocos2d::Mat4 *arg2; /** transform */ olua_to_object(L, 1, &self, "cc.MeshCommand"); olua_check_number(L, 2, &arg1); olua_check_object(L, 3, &arg2, "cc.Mat4"); // void init(float globalZOrder, const cocos2d::Mat4 &transform) - self->init(arg1, arg2); + self->init(arg1, *arg2); olua_endinvoke(L); @@ -17523,8 +18173,7 @@ static int _cocos2d_MeshCommand_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_MeshCommand(lua_State *L) +static int _cc_MeshCommand(lua_State *L) { oluacls_class(L, "cc.MeshCommand"); oluacls_func(L, "init", _cocos2d_MeshCommand_init); @@ -17532,6 +18181,16 @@ OLUA_LIB int luaopen_cocos2d_MeshCommand(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_MeshCommand(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::MeshCommand"); + } + return 1; +} OLUA_END_DECLS static const std::string makeTextureCacheCallbackTag(const std::string &key) @@ -17618,13 +18277,13 @@ static int _cocos2d_TextureCache_addImageAsync$1(lua_State *L) std::string cb_tag = makeTextureCacheCallbackTag(arg1); std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](cocos2d::Texture2D *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](cocos2d::Texture2D *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.Texture2D"); + olua_push_object(L, cb_arg1, "cc.Texture2D"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -17660,13 +18319,13 @@ static int _cocos2d_TextureCache_addImageAsync$2(lua_State *L) std::string cb_tag = makeTextureCacheCallbackTag(arg3); std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](cocos2d::Texture2D *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](cocos2d::Texture2D *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.Texture2D"); + olua_push_object(L, cb_arg1, "cc.Texture2D"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -17987,8 +18646,7 @@ static int _cocos2d_TextureCache_waitForQuit(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TextureCache(lua_State *L) +static int _cc_TextureCache(lua_State *L) { oluacls_class(L, "cc.TextureCache"); oluacls_func(L, "addImage", _cocos2d_TextureCache_addImage); @@ -18015,6 +18673,16 @@ OLUA_LIB int luaopen_cocos2d_TextureCache(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TextureCache(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TextureCache"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Texture2D_drawAtPoint(lua_State *L) @@ -18022,7 +18690,7 @@ static int _cocos2d_Texture2D_drawAtPoint(lua_State *L) olua_startinvoke(L); cocos2d::Texture2D *self = nullptr; - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ float arg2 = 0; /** globalZOrder */ olua_to_object(L, 1, &self, "cc.Texture2D"); @@ -18030,7 +18698,7 @@ static int _cocos2d_Texture2D_drawAtPoint(lua_State *L) olua_check_number(L, 3, &arg2); // void drawAtPoint(const cocos2d::Vec2 &point, float globalZOrder) - self->drawAtPoint(arg1, arg2); + self->drawAtPoint(*arg1, arg2); olua_endinvoke(L); @@ -18042,7 +18710,7 @@ static int _cocos2d_Texture2D_drawInRect(lua_State *L) olua_startinvoke(L); cocos2d::Texture2D *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ float arg2 = 0; /** globalZOrder */ olua_to_object(L, 1, &self, "cc.Texture2D"); @@ -18050,7 +18718,7 @@ static int _cocos2d_Texture2D_drawInRect(lua_State *L) olua_check_number(L, 3, &arg2); // void drawInRect(const cocos2d::Rect &rect, float globalZOrder) - self->drawInRect(arg1, arg2); + self->drawInRect(*arg1, arg2); olua_endinvoke(L); @@ -18470,7 +19138,7 @@ static int _cocos2d_Texture2D_initWithData$1(lua_State *L) cocos2d::backend::PixelFormat arg3 = (cocos2d::backend::PixelFormat)0; /** pixelFormat */ int arg4 = 0; /** pixelsWide */ int arg5 = 0; /** pixelsHigh */ - cocos2d::Size arg6; /** contentSize */ + cocos2d::Size *arg6; /** contentSize */ bool arg7 = false; /** preMultipliedAlpha */ olua_to_object(L, 1, &self, "cc.Texture2D"); @@ -18483,7 +19151,7 @@ static int _cocos2d_Texture2D_initWithData$1(lua_State *L) olua_check_bool(L, 8, &arg7); // bool initWithData(const void *data, ssize_t dataLen, cocos2d::backend::PixelFormat pixelFormat, int pixelsWide, int pixelsHigh, const cocos2d::Size &contentSize, @optional bool preMultipliedAlpha) - bool ret = self->initWithData(arg1, arg2, arg3, arg4, arg5, arg6, arg7); + bool ret = self->initWithData(arg1, arg2, arg3, arg4, arg5, *arg6, arg7); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -18501,7 +19169,7 @@ static int _cocos2d_Texture2D_initWithData$2(lua_State *L) cocos2d::backend::PixelFormat arg3 = (cocos2d::backend::PixelFormat)0; /** pixelFormat */ int arg4 = 0; /** pixelsWide */ int arg5 = 0; /** pixelsHigh */ - cocos2d::Size arg6; /** contentSize */ + cocos2d::Size *arg6; /** contentSize */ olua_to_object(L, 1, &self, "cc.Texture2D"); olua_check_object(L, 2, &arg1, "void *"); @@ -18512,7 +19180,7 @@ static int _cocos2d_Texture2D_initWithData$2(lua_State *L) olua_check_object(L, 7, &arg6, "cc.Size"); // bool initWithData(const void *data, ssize_t dataLen, cocos2d::backend::PixelFormat pixelFormat, int pixelsWide, int pixelsHigh, const cocos2d::Size &contentSize) - bool ret = self->initWithData(arg1, arg2, arg3, arg4, arg5, arg6); + bool ret = self->initWithData(arg1, arg2, arg3, arg4, arg5, *arg6); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -18531,7 +19199,7 @@ static int _cocos2d_Texture2D_initWithData$3(lua_State *L) cocos2d::backend::PixelFormat arg4 = (cocos2d::backend::PixelFormat)0; /** renderFormat */ int arg5 = 0; /** pixelsWide */ int arg6 = 0; /** pixelsHigh */ - cocos2d::Size arg7; /** contentSize */ + cocos2d::Size *arg7; /** contentSize */ bool arg8 = false; /** preMultipliedAlpha */ olua_to_object(L, 1, &self, "cc.Texture2D"); @@ -18545,7 +19213,7 @@ static int _cocos2d_Texture2D_initWithData$3(lua_State *L) olua_check_bool(L, 9, &arg8); // bool initWithData(const void *data, ssize_t dataLen, cocos2d::backend::PixelFormat pixelFormat, cocos2d::backend::PixelFormat renderFormat, int pixelsWide, int pixelsHigh, const cocos2d::Size &contentSize, @optional bool preMultipliedAlpha) - bool ret = self->initWithData(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); + bool ret = self->initWithData(arg1, arg2, arg3, arg4, arg5, arg6, *arg7, arg8); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -18564,7 +19232,7 @@ static int _cocos2d_Texture2D_initWithData$4(lua_State *L) cocos2d::backend::PixelFormat arg4 = (cocos2d::backend::PixelFormat)0; /** renderFormat */ int arg5 = 0; /** pixelsWide */ int arg6 = 0; /** pixelsHigh */ - cocos2d::Size arg7; /** contentSize */ + cocos2d::Size *arg7; /** contentSize */ olua_to_object(L, 1, &self, "cc.Texture2D"); olua_check_object(L, 2, &arg1, "void *"); @@ -18576,7 +19244,7 @@ static int _cocos2d_Texture2D_initWithData$4(lua_State *L) olua_check_object(L, 8, &arg7, "cc.Size"); // bool initWithData(const void *data, ssize_t dataLen, cocos2d::backend::PixelFormat pixelFormat, cocos2d::backend::PixelFormat renderFormat, int pixelsWide, int pixelsHigh, const cocos2d::Size &contentSize) - bool ret = self->initWithData(arg1, arg2, arg3, arg4, arg5, arg6, arg7); + bool ret = self->initWithData(arg1, arg2, arg3, arg4, arg5, arg6, *arg7); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -18690,7 +19358,7 @@ static int _cocos2d_Texture2D_initWithString$1(lua_State *L) const char *arg1 = nullptr; /** text */ std::string arg2; /** fontName */ float arg3 = 0; /** fontSize */ - cocos2d::Size arg4; /** dimensions */ + cocos2d::Size *arg4; /** dimensions */ cocos2d::TextHAlignment arg5 = (cocos2d::TextHAlignment)0; /** hAlignment */ cocos2d::TextVAlignment arg6 = (cocos2d::TextVAlignment)0; /** vAlignment */ bool arg7 = false; /** enableWrap */ @@ -18707,7 +19375,7 @@ static int _cocos2d_Texture2D_initWithString$1(lua_State *L) olua_check_integer(L, 9, &arg8); // bool initWithString(const char *text, const std::string &fontName, float fontSize, @optional const cocos2d::Size &dimensions, @optional cocos2d::TextHAlignment hAlignment, @optional cocos2d::TextVAlignment vAlignment, @optional bool enableWrap, @optional int overflow) - bool ret = self->initWithString(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); + bool ret = self->initWithString(arg1, arg2, arg3, *arg4, arg5, arg6, arg7, arg8); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -18746,7 +19414,7 @@ static int _cocos2d_Texture2D_initWithString$3(lua_State *L) const char *arg1 = nullptr; /** text */ std::string arg2; /** fontName */ float arg3 = 0; /** fontSize */ - cocos2d::Size arg4; /** dimensions */ + cocos2d::Size *arg4; /** dimensions */ olua_to_object(L, 1, &self, "cc.Texture2D"); olua_check_string(L, 2, &arg1); @@ -18755,7 +19423,7 @@ static int _cocos2d_Texture2D_initWithString$3(lua_State *L) olua_check_object(L, 5, &arg4, "cc.Size"); // bool initWithString(const char *text, const std::string &fontName, float fontSize, @optional const cocos2d::Size &dimensions) - bool ret = self->initWithString(arg1, arg2, arg3, arg4); + bool ret = self->initWithString(arg1, arg2, arg3, *arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -18771,7 +19439,7 @@ static int _cocos2d_Texture2D_initWithString$4(lua_State *L) const char *arg1 = nullptr; /** text */ std::string arg2; /** fontName */ float arg3 = 0; /** fontSize */ - cocos2d::Size arg4; /** dimensions */ + cocos2d::Size *arg4; /** dimensions */ cocos2d::TextHAlignment arg5 = (cocos2d::TextHAlignment)0; /** hAlignment */ olua_to_object(L, 1, &self, "cc.Texture2D"); @@ -18782,7 +19450,7 @@ static int _cocos2d_Texture2D_initWithString$4(lua_State *L) olua_check_enum(L, 6, &arg5); // bool initWithString(const char *text, const std::string &fontName, float fontSize, @optional const cocos2d::Size &dimensions, @optional cocos2d::TextHAlignment hAlignment) - bool ret = self->initWithString(arg1, arg2, arg3, arg4, arg5); + bool ret = self->initWithString(arg1, arg2, arg3, *arg4, arg5); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -18798,7 +19466,7 @@ static int _cocos2d_Texture2D_initWithString$5(lua_State *L) const char *arg1 = nullptr; /** text */ std::string arg2; /** fontName */ float arg3 = 0; /** fontSize */ - cocos2d::Size arg4; /** dimensions */ + cocos2d::Size *arg4; /** dimensions */ cocos2d::TextHAlignment arg5 = (cocos2d::TextHAlignment)0; /** hAlignment */ cocos2d::TextVAlignment arg6 = (cocos2d::TextVAlignment)0; /** vAlignment */ @@ -18811,7 +19479,7 @@ static int _cocos2d_Texture2D_initWithString$5(lua_State *L) olua_check_enum(L, 7, &arg6); // bool initWithString(const char *text, const std::string &fontName, float fontSize, @optional const cocos2d::Size &dimensions, @optional cocos2d::TextHAlignment hAlignment, @optional cocos2d::TextVAlignment vAlignment) - bool ret = self->initWithString(arg1, arg2, arg3, arg4, arg5, arg6); + bool ret = self->initWithString(arg1, arg2, arg3, *arg4, arg5, arg6); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -18827,7 +19495,7 @@ static int _cocos2d_Texture2D_initWithString$6(lua_State *L) const char *arg1 = nullptr; /** text */ std::string arg2; /** fontName */ float arg3 = 0; /** fontSize */ - cocos2d::Size arg4; /** dimensions */ + cocos2d::Size *arg4; /** dimensions */ cocos2d::TextHAlignment arg5 = (cocos2d::TextHAlignment)0; /** hAlignment */ cocos2d::TextVAlignment arg6 = (cocos2d::TextVAlignment)0; /** vAlignment */ bool arg7 = false; /** enableWrap */ @@ -18842,7 +19510,7 @@ static int _cocos2d_Texture2D_initWithString$6(lua_State *L) olua_check_bool(L, 8, &arg7); // bool initWithString(const char *text, const std::string &fontName, float fontSize, @optional const cocos2d::Size &dimensions, @optional cocos2d::TextHAlignment hAlignment, @optional cocos2d::TextVAlignment vAlignment, @optional bool enableWrap) - bool ret = self->initWithString(arg1, arg2, arg3, arg4, arg5, arg6, arg7); + bool ret = self->initWithString(arg1, arg2, arg3, *arg4, arg5, arg6, arg7); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -19057,13 +19725,13 @@ static int _cocos2d_Texture2D_setTexParameters(lua_State *L) olua_startinvoke(L); cocos2d::Texture2D *self = nullptr; - cocos2d::Texture2D::TexParams arg1; /** params */ + cocos2d::Texture2D::TexParams *arg1; /** params */ olua_to_object(L, 1, &self, "cc.Texture2D"); olua_check_object(L, 2, &arg1, "ccb.SamplerDescriptor"); // void setTexParameters(const cocos2d::Texture2D::TexParams ¶ms) - self->setTexParameters(arg1); + self->setTexParameters(*arg1); olua_endinvoke(L); @@ -19097,8 +19765,7 @@ static int _cocos2d_Texture2D_updateWithData(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Texture2D(lua_State *L) +static int _cc_Texture2D(lua_State *L) { oluacls_class(L, "cc.Texture2D"); oluacls_func(L, "drawAtPoint", _cocos2d_Texture2D_drawAtPoint); @@ -19154,6 +19821,16 @@ OLUA_LIB int luaopen_cocos2d_Texture2D(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Texture2D(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Texture2D"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TextureCube_create(lua_State *L) @@ -19236,21 +19913,20 @@ static int _cocos2d_TextureCube_setTexParameters(lua_State *L) olua_startinvoke(L); cocos2d::TextureCube *self = nullptr; - cocos2d::Texture2D::TexParams arg1; /** arg1 */ + cocos2d::Texture2D::TexParams *arg1; /** arg1 */ olua_to_object(L, 1, &self, "cc.TextureCube"); olua_check_object(L, 2, &arg1, "ccb.SamplerDescriptor"); // void setTexParameters(const cocos2d::Texture2D::TexParams &arg1) - self->setTexParameters(arg1); + self->setTexParameters(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TextureCube(lua_State *L) +static int _cc_TextureCube(lua_State *L) { oluacls_class(L, "cc.TextureCube"); oluacls_func(L, "create", _cocos2d_TextureCube_create); @@ -19262,6 +19938,16 @@ OLUA_LIB int luaopen_cocos2d_TextureCube(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TextureCube(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TextureCube"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TextureAtlas_create(lua_State *L) @@ -19692,8 +20378,7 @@ static int _cocos2d_TextureAtlas_setTexture(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TextureAtlas(lua_State *L) +static int _cc_TextureAtlas(lua_State *L) { oluacls_class(L, "cc.TextureAtlas"); oluacls_func(L, "create", _cocos2d_TextureAtlas_create); @@ -19726,10 +20411,19 @@ OLUA_LIB int luaopen_cocos2d_TextureAtlas(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_network_WebSocket_ErrorCode(lua_State *L) +OLUA_LIB int luaopen_cc_TextureAtlas(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TextureAtlas"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_WebSocket_ErrorCode(lua_State *L) { oluacls_class(L, "cc.WebSocket.ErrorCode"); oluacls_func(L, "__index", olua_indexerror); @@ -19740,10 +20434,19 @@ OLUA_LIB int luaopen_cocos2d_network_WebSocket_ErrorCode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_network_WebSocket_State(lua_State *L) +OLUA_LIB int luaopen_cc_WebSocket_ErrorCode(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::network::WebSocket::ErrorCode"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_WebSocket_State(lua_State *L) { oluacls_class(L, "cc.WebSocket.State"); oluacls_func(L, "__index", olua_indexerror); @@ -19755,6 +20458,16 @@ OLUA_LIB int luaopen_cocos2d_network_WebSocket_State(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_WebSocket_State(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::network::WebSocket::State"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_network_WebSocket_Delegate___gc(lua_State *L) @@ -19857,8 +20570,7 @@ static int _cocos2d_network_WebSocket_Delegate_onOpen(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_network_WebSocket_Delegate(lua_State *L) +static int _cc_WebSocket_Delegate(lua_State *L) { oluacls_class(L, "cc.WebSocket.Delegate"); oluacls_func(L, "__gc", _cocos2d_network_WebSocket_Delegate___gc); @@ -19870,6 +20582,16 @@ OLUA_LIB int luaopen_cocos2d_network_WebSocket_Delegate(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_WebSocket_Delegate(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::network::WebSocket::Delegate"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_network_WebSocket___gc(lua_State *L) @@ -20095,8 +20817,7 @@ static int _cocos2d_network_WebSocket_send(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_network_WebSocket(lua_State *L) +static int _cc_WebSocket(lua_State *L) { oluacls_class(L, "cc.WebSocket"); oluacls_func(L, "__gc", _cocos2d_network_WebSocket___gc); @@ -20116,6 +20837,16 @@ OLUA_LIB int luaopen_cocos2d_network_WebSocket(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_WebSocket(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::network::WebSocket"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_LuaWebSocketDelegate_new(lua_State *L) @@ -20171,7 +20902,7 @@ static int _cocos2d_LuaWebSocketDelegate_onCloseCallback$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::network::WebSocket *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::network::WebSocket *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -20179,7 +20910,7 @@ static int _cocos2d_LuaWebSocketDelegate_onCloseCallback$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.WebSocket"); + olua_push_object(L, cb_arg1, "cc.WebSocket"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -20262,7 +20993,7 @@ static int _cocos2d_LuaWebSocketDelegate_onErrorCallback$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::network::WebSocket *arg1, const cocos2d::network::WebSocket::ErrorCode &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::network::WebSocket *cb_arg1, const cocos2d::network::WebSocket::ErrorCode &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -20270,8 +21001,8 @@ static int _cocos2d_LuaWebSocketDelegate_onErrorCallback$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.WebSocket"); - olua_push_enum(L, arg2); + olua_push_object(L, cb_arg1, "cc.WebSocket"); + olua_push_enum(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -20354,7 +21085,7 @@ static int _cocos2d_LuaWebSocketDelegate_onMessageCallback$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::network::WebSocket *arg1, const cocos2d::network::WebSocket::Data &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::network::WebSocket *cb_arg1, const cocos2d::network::WebSocket::Data &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -20362,8 +21093,8 @@ static int _cocos2d_LuaWebSocketDelegate_onMessageCallback$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.WebSocket"); - olua_push_cocos2d_network_WebSocket_Data(L, arg2); + olua_push_object(L, cb_arg1, "cc.WebSocket"); + olua_push_cocos2d_network_WebSocket_Data(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -20446,7 +21177,7 @@ static int _cocos2d_LuaWebSocketDelegate_onOpenCallback$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::network::WebSocket *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::network::WebSocket *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -20454,7 +21185,7 @@ static int _cocos2d_LuaWebSocketDelegate_onOpenCallback$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.WebSocket"); + olua_push_object(L, cb_arg1, "cc.WebSocket"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -20498,8 +21229,7 @@ static int _cocos2d_LuaWebSocketDelegate_onOpenCallback(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_LuaWebSocketDelegate(lua_State *L) +static int _cc_LuaWebSocketDelegate(lua_State *L) { oluacls_class(L, "cc.LuaWebSocketDelegate"); oluacls_func(L, "new", _cocos2d_LuaWebSocketDelegate_new); @@ -20510,6 +21240,16 @@ OLUA_LIB int luaopen_cocos2d_LuaWebSocketDelegate(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_LuaWebSocketDelegate(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::LuaWebSocketDelegate"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ActionManager_addAction(lua_State *L) @@ -20831,8 +21571,7 @@ static int _cocos2d_ActionManager_update(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ActionManager(lua_State *L) +static int _cc_ActionManager(lua_State *L) { oluacls_class(L, "cc.ActionManager"); oluacls_func(L, "addAction", _cocos2d_ActionManager_addAction); @@ -20856,6 +21595,16 @@ OLUA_LIB int luaopen_cocos2d_ActionManager(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ActionManager(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ActionManager"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Component_create(lua_State *L) @@ -21108,8 +21857,7 @@ static int _cocos2d_Component_update(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Component(lua_State *L) +static int _cc_Component(lua_State *L) { oluacls_class(L, "cc.Component"); oluacls_func(L, "create", _cocos2d_Component_create); @@ -21133,6 +21881,16 @@ OLUA_LIB int luaopen_cocos2d_Component(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Component(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Component"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_LuaComponent_create(lua_State *L) @@ -21541,13 +22299,13 @@ static int _cocos2d_LuaComponent_onUpdateCallback$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](float arg1) { + arg1 = [cb_store, cb_name, cb_ctx](float cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_number(L, arg1); + olua_push_number(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -21588,8 +22346,7 @@ static int _cocos2d_LuaComponent_onUpdateCallback(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_LuaComponent(lua_State *L) +static int _cc_LuaComponent(lua_State *L) { oluacls_class(L, "cc.LuaComponent"); oluacls_func(L, "create", _cocos2d_LuaComponent_create); @@ -21602,6 +22359,16 @@ OLUA_LIB int luaopen_cocos2d_LuaComponent(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_LuaComponent(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::LuaComponent"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Node___index(lua_State *L) @@ -21788,13 +22555,13 @@ static int _cocos2d_Node_convertToNodeSpace$1(lua_State *L) olua_startinvoke(L); cocos2d::Node *self = nullptr; - cocos2d::Vec2 arg1; /** worldPoint */ + cocos2d::Vec2 *arg1; /** worldPoint */ olua_to_object(L, 1, &self, "cc.Node"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 convertToNodeSpace(const cocos2d::Vec2 &worldPoint) - cocos2d::Vec2 ret = self->convertToNodeSpace(arg1); + cocos2d::Vec2 ret = self->convertToNodeSpace(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -21849,13 +22616,13 @@ static int _cocos2d_Node_convertToNodeSpaceAR$1(lua_State *L) olua_startinvoke(L); cocos2d::Node *self = nullptr; - cocos2d::Vec2 arg1; /** worldPoint */ + cocos2d::Vec2 *arg1; /** worldPoint */ olua_to_object(L, 1, &self, "cc.Node"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 convertToNodeSpaceAR(const cocos2d::Vec2 &worldPoint) - cocos2d::Vec2 ret = self->convertToNodeSpaceAR(arg1); + cocos2d::Vec2 ret = self->convertToNodeSpaceAR(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -21910,13 +22677,13 @@ static int _cocos2d_Node_convertToWorldSpace$1(lua_State *L) olua_startinvoke(L); cocos2d::Node *self = nullptr; - cocos2d::Vec2 arg1; /** nodePoint */ + cocos2d::Vec2 *arg1; /** nodePoint */ olua_to_object(L, 1, &self, "cc.Node"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 convertToWorldSpace(const cocos2d::Vec2 &nodePoint) - cocos2d::Vec2 ret = self->convertToWorldSpace(arg1); + cocos2d::Vec2 ret = self->convertToWorldSpace(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -21971,13 +22738,13 @@ static int _cocos2d_Node_convertToWorldSpaceAR$1(lua_State *L) olua_startinvoke(L); cocos2d::Node *self = nullptr; - cocos2d::Vec2 arg1; /** nodePoint */ + cocos2d::Vec2 *arg1; /** nodePoint */ olua_to_object(L, 1, &self, "cc.Node"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 convertToWorldSpaceAR(const cocos2d::Vec2 &nodePoint) - cocos2d::Vec2 ret = self->convertToWorldSpaceAR(arg1); + cocos2d::Vec2 ret = self->convertToWorldSpaceAR(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -22084,7 +22851,7 @@ static int _cocos2d_Node_draw$1(lua_State *L) cocos2d::Node *self = nullptr; cocos2d::Renderer *arg1 = nullptr; /** renderer */ - cocos2d::Mat4 arg2; /** transform */ + cocos2d::Mat4 *arg2; /** transform */ uint32_t arg3 = 0; /** flags */ olua_to_object(L, 1, &self, "cc.Node"); @@ -22093,7 +22860,7 @@ static int _cocos2d_Node_draw$1(lua_State *L) olua_check_integer(L, 4, &arg3); // void draw(cocos2d::Renderer *renderer, const cocos2d::Mat4 &transform, uint32_t flags) - self->draw(arg1, arg2, arg3); + self->draw(arg1, *arg2, arg3); olua_endinvoke(L); @@ -22153,7 +22920,7 @@ static int _cocos2d_Node_enumerateChildren(lua_State *L) std::string cb_tag = "enumerateChildren"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](cocos2d::Node *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](cocos2d::Node *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); bool ret = false; /** ret */ @@ -22161,7 +22928,7 @@ static int _cocos2d_Node_enumerateChildren(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Node"); + olua_push_object(L, cb_arg1, "cc.Node"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -24247,13 +25014,13 @@ static int _cocos2d_Node_schedule$1(lua_State *L) std::string cb_tag = makeScheduleCallbackTag(arg2); std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](float arg1) { + arg1 = [cb_store, cb_name, cb_ctx](float cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_number(L, arg1); + olua_push_number(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -24287,13 +25054,13 @@ static int _cocos2d_Node_schedule$2(lua_State *L) std::string cb_tag = makeScheduleCallbackTag(arg3); std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](float arg1) { + arg1 = [cb_store, cb_name, cb_ctx](float cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_number(L, arg1); + olua_push_number(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -24331,13 +25098,13 @@ static int _cocos2d_Node_schedule$3(lua_State *L) std::string cb_tag = makeScheduleCallbackTag(arg5); std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](float arg1) { + arg1 = [cb_store, cb_name, cb_ctx](float cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_number(L, arg1); + olua_push_number(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -24401,13 +25168,13 @@ static int _cocos2d_Node_scheduleOnce(lua_State *L) std::string cb_tag = makeScheduleCallbackTag(arg3); std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](float arg1) { + arg1 = [cb_store, cb_name, cb_ctx](float cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_number(L, arg1); + olua_push_number(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -24503,13 +25270,13 @@ static int _cocos2d_Node_setAdditionalTransform$2(lua_State *L) olua_startinvoke(L); cocos2d::Node *self = nullptr; - cocos2d::Mat4 arg1; /** additionalTransform */ + cocos2d::Mat4 *arg1; /** additionalTransform */ olua_to_object(L, 1, &self, "cc.Node"); olua_check_object(L, 2, &arg1, "cc.Mat4"); // void setAdditionalTransform(const cocos2d::Mat4 &additionalTransform) - self->setAdditionalTransform(arg1); + self->setAdditionalTransform(*arg1); olua_endinvoke(L); @@ -24521,13 +25288,13 @@ static int _cocos2d_Node_setAdditionalTransform$3(lua_State *L) olua_startinvoke(L); cocos2d::Node *self = nullptr; - cocos2d::AffineTransform arg1; /** additionalTransform */ + cocos2d::AffineTransform *arg1; /** additionalTransform */ olua_to_object(L, 1, &self, "cc.Node"); olua_check_object(L, 2, &arg1, "cc.AffineTransform"); // void setAdditionalTransform(const cocos2d::AffineTransform &additionalTransform) - self->setAdditionalTransform(arg1); + self->setAdditionalTransform(*arg1); olua_endinvoke(L); @@ -24583,13 +25350,13 @@ static int _cocos2d_Node_setAnchorPoint(lua_State *L) olua_startinvoke(L); cocos2d::Node *self = nullptr; - cocos2d::Vec2 arg1; /** anchorPoint */ + cocos2d::Vec2 *arg1; /** anchorPoint */ olua_to_object(L, 1, &self, "cc.Node"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setAnchorPoint(const cocos2d::Vec2 &anchorPoint) - self->setAnchorPoint(arg1); + self->setAnchorPoint(*arg1); olua_endinvoke(L); @@ -24752,13 +25519,13 @@ static int _cocos2d_Node_setContentSize(lua_State *L) olua_startinvoke(L); cocos2d::Node *self = nullptr; - cocos2d::Size arg1; /** contentSize */ + cocos2d::Size *arg1; /** contentSize */ olua_to_object(L, 1, &self, "cc.Node"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setContentSize(const cocos2d::Size &contentSize) - self->setContentSize(arg1); + self->setContentSize(*arg1); olua_endinvoke(L); @@ -24881,13 +25648,13 @@ static int _cocos2d_Node_setNodeToParentTransform(lua_State *L) olua_startinvoke(L); cocos2d::Node *self = nullptr; - cocos2d::Mat4 arg1; /** transform */ + cocos2d::Mat4 *arg1; /** transform */ olua_to_object(L, 1, &self, "cc.Node"); olua_check_object(L, 2, &arg1, "cc.Mat4"); // void setNodeToParentTransform(const cocos2d::Mat4 &transform) - self->setNodeToParentTransform(arg1); + self->setNodeToParentTransform(*arg1); olua_endinvoke(L); @@ -24899,13 +25666,13 @@ static int _cocos2d_Node_setNormalizedPosition(lua_State *L) olua_startinvoke(L); cocos2d::Node *self = nullptr; - cocos2d::Vec2 arg1; /** position */ + cocos2d::Vec2 *arg1; /** position */ olua_to_object(L, 1, &self, "cc.Node"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setNormalizedPosition(const cocos2d::Vec2 &position) - self->setNormalizedPosition(arg1); + self->setNormalizedPosition(*arg1); olua_endinvoke(L); @@ -25166,13 +25933,13 @@ static int _cocos2d_Node_setPosition$1(lua_State *L) olua_startinvoke(L); cocos2d::Node *self = nullptr; - cocos2d::Vec2 arg1; /** position */ + cocos2d::Vec2 *arg1; /** position */ olua_to_object(L, 1, &self, "cc.Node"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setPosition(const cocos2d::Vec2 &position) - self->setPosition(arg1); + self->setPosition(*arg1); olua_endinvoke(L); @@ -25227,13 +25994,13 @@ static int _cocos2d_Node_setPosition3D(lua_State *L) olua_startinvoke(L); cocos2d::Node *self = nullptr; - cocos2d::Vec3 arg1; /** position */ + cocos2d::Vec3 *arg1; /** position */ olua_to_object(L, 1, &self, "cc.Node"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void setPosition3D(const cocos2d::Vec3 &position) - self->setPosition3D(arg1); + self->setPosition3D(*arg1); olua_endinvoke(L); @@ -25245,13 +26012,13 @@ static int _cocos2d_Node_setPositionNormalized(lua_State *L) olua_startinvoke(L); cocos2d::Node *self = nullptr; - cocos2d::Vec2 arg1; /** position */ + cocos2d::Vec2 *arg1; /** position */ olua_to_object(L, 1, &self, "cc.Node"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setPositionNormalized(const cocos2d::Vec2 &position) - self->setPositionNormalized(arg1); + self->setPositionNormalized(*arg1); olua_endinvoke(L); @@ -25356,13 +26123,13 @@ static int _cocos2d_Node_setRotation3D(lua_State *L) olua_startinvoke(L); cocos2d::Node *self = nullptr; - cocos2d::Vec3 arg1; /** rotation */ + cocos2d::Vec3 *arg1; /** rotation */ olua_to_object(L, 1, &self, "cc.Node"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void setRotation3D(const cocos2d::Vec3 &rotation) - self->setRotation3D(arg1); + self->setRotation3D(*arg1); olua_endinvoke(L); @@ -25374,13 +26141,13 @@ static int _cocos2d_Node_setRotationQuat(lua_State *L) olua_startinvoke(L); cocos2d::Node *self = nullptr; - cocos2d::Quaternion arg1; /** quat */ + cocos2d::Quaternion *arg1; /** quat */ olua_to_object(L, 1, &self, "cc.Node"); olua_check_object(L, 2, &arg1, "cc.Quaternion"); // void setRotationQuat(const cocos2d::Quaternion &quat) - self->setRotationQuat(arg1); + self->setRotationQuat(*arg1); olua_endinvoke(L); @@ -25969,7 +26736,7 @@ static int _cocos2d_Node_visit$1(lua_State *L) cocos2d::Node *self = nullptr; cocos2d::Renderer *arg1 = nullptr; /** renderer */ - cocos2d::Mat4 arg2; /** parentTransform */ + cocos2d::Mat4 *arg2; /** parentTransform */ uint32_t arg3 = 0; /** parentFlags */ olua_to_object(L, 1, &self, "cc.Node"); @@ -25978,7 +26745,7 @@ static int _cocos2d_Node_visit$1(lua_State *L) olua_check_integer(L, 4, &arg3); // void visit(cocos2d::Renderer *renderer, const cocos2d::Mat4 &parentTransform, uint32_t parentFlags) - self->visit(arg1, arg2, arg3); + self->visit(arg1, *arg2, arg3); olua_endinvoke(L); @@ -26022,8 +26789,7 @@ static int _cocos2d_Node_visit(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Node(lua_State *L) +static int _cc_Node(lua_State *L) { oluacls_class(L, "cc.Node"); oluacls_func(L, "__index", _cocos2d_Node___index); @@ -26281,6 +27047,16 @@ OLUA_LIB int luaopen_cocos2d_Node(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Node(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Node"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_BlendProtocol___gc(lua_State *L) @@ -26329,21 +27105,20 @@ static int _cocos2d_BlendProtocol_setBlendFunc(lua_State *L) olua_startinvoke(L); cocos2d::BlendProtocol *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "cc.BlendProtocol"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_BlendProtocol(lua_State *L) +static int _cc_BlendProtocol(lua_State *L) { oluacls_class(L, "cc.BlendProtocol"); oluacls_func(L, "__gc", _cocos2d_BlendProtocol___gc); @@ -26354,6 +27129,16 @@ OLUA_LIB int luaopen_cocos2d_BlendProtocol(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_BlendProtocol(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::BlendProtocol"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TextureProtocol_getTexture(lua_State *L) @@ -26391,8 +27176,7 @@ static int _cocos2d_TextureProtocol_setTexture(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TextureProtocol(lua_State *L) +static int _cc_TextureProtocol(lua_State *L) { oluacls_class(L, "cc.TextureProtocol"); oluacls_func(L, "getTexture", _cocos2d_TextureProtocol_getTexture); @@ -26401,6 +27185,16 @@ OLUA_LIB int luaopen_cocos2d_TextureProtocol(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TextureProtocol(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TextureProtocol"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_AtlasNode_as(lua_State *L) @@ -26595,13 +27389,13 @@ static int _cocos2d_AtlasNode_setBlendFunc(lua_State *L) olua_startinvoke(L); cocos2d::AtlasNode *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "cc.AtlasNode"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -26678,8 +27472,7 @@ static int _cocos2d_AtlasNode_updateAtlasValues(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_AtlasNode(lua_State *L) +static int _cc_AtlasNode(lua_State *L) { oluacls_class(L, "cc.AtlasNode"); oluacls_func(L, "as", _cocos2d_AtlasNode_as); @@ -26703,6 +27496,16 @@ OLUA_LIB int luaopen_cocos2d_AtlasNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_AtlasNode(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::AtlasNode"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_sImageTGA___gc(lua_State *L) @@ -27121,8 +27924,7 @@ static int _cocos2d_sImageTGA_width(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_sImageTGA(lua_State *L) +static int _cc_sImageTGA(lua_State *L) { oluacls_class(L, "cc.sImageTGA"); oluacls_func(L, "__gc", _cocos2d_sImageTGA___gc); @@ -27137,6 +27939,16 @@ OLUA_LIB int luaopen_cocos2d_sImageTGA(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_sImageTGA(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::sImageTGA"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TileMapAtlas_create(lua_State *L) @@ -27184,13 +27996,13 @@ static int _cocos2d_TileMapAtlas_getTileAt(lua_State *L) olua_startinvoke(L); cocos2d::TileMapAtlas *self = nullptr; - cocos2d::Vec2 arg1; /** position */ + cocos2d::Vec2 *arg1; /** position */ olua_to_object(L, 1, &self, "cc.TileMapAtlas"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Color3B getTileAt(const cocos2d::Vec2 &position) - cocos2d::Color3B ret = self->getTileAt(arg1); + cocos2d::Color3B ret = self->getTileAt(*arg1); int num_ret = olua_push_cocos2d_Color3B(L, ret); olua_endinvoke(L); @@ -27277,22 +28089,21 @@ static int _cocos2d_TileMapAtlas_setTile(lua_State *L) cocos2d::TileMapAtlas *self = nullptr; cocos2d::Color3B arg1; /** tile */ - cocos2d::Vec2 arg2; /** position */ + cocos2d::Vec2 *arg2; /** position */ olua_to_object(L, 1, &self, "cc.TileMapAtlas"); olua_check_cocos2d_Color3B(L, 2, &arg1); olua_check_object(L, 3, &arg2, "cc.Vec2"); // void setTile(const cocos2d::Color3B &tile, const cocos2d::Vec2 &position) - self->setTile(arg1, arg2); + self->setTile(arg1, *arg2); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TileMapAtlas(lua_State *L) +static int _cc_TileMapAtlas(lua_State *L) { oluacls_class(L, "cc.TileMapAtlas"); oluacls_func(L, "create", _cocos2d_TileMapAtlas_create); @@ -27307,6 +28118,16 @@ OLUA_LIB int luaopen_cocos2d_TileMapAtlas(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TileMapAtlas(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TileMapAtlas"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ClippingNode_create$1(lua_State *L) @@ -27553,8 +28374,7 @@ static int _cocos2d_ClippingNode_setStencil(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ClippingNode(lua_State *L) +static int _cc_ClippingNode(lua_State *L) { oluacls_class(L, "cc.ClippingNode"); oluacls_func(L, "create", _cocos2d_ClippingNode_create); @@ -27573,6 +28393,16 @@ OLUA_LIB int luaopen_cocos2d_ClippingNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ClippingNode(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ClippingNode"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_MotionStreak_as(lua_State *L) @@ -27873,13 +28703,13 @@ static int _cocos2d_MotionStreak_setBlendFunc(lua_State *L) olua_startinvoke(L); cocos2d::MotionStreak *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "cc.MotionStreak"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -27976,8 +28806,7 @@ static int _cocos2d_MotionStreak_tintWithColor(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_MotionStreak(lua_State *L) +static int _cc_MotionStreak(lua_State *L) { oluacls_class(L, "cc.MotionStreak"); oluacls_func(L, "as", _cocos2d_MotionStreak_as); @@ -28004,6 +28833,16 @@ OLUA_LIB int luaopen_cocos2d_MotionStreak(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_MotionStreak(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::MotionStreak"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ProtectedNode_addProtectedChild$1(lua_State *L) @@ -28402,8 +29241,7 @@ static int _cocos2d_ProtectedNode_sortAllProtectedChildren(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ProtectedNode(lua_State *L) +static int _cc_ProtectedNode(lua_State *L) { oluacls_class(L, "cc.ProtectedNode"); oluacls_func(L, "addProtectedChild", _cocos2d_ProtectedNode_addProtectedChild); @@ -28421,6 +29259,16 @@ OLUA_LIB int luaopen_cocos2d_ProtectedNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ProtectedNode(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ProtectedNode"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_DrawNode_clear(lua_State *L) @@ -28541,7 +29389,7 @@ static int _cocos2d_DrawNode_drawCircle$1(lua_State *L) olua_startinvoke(L); cocos2d::DrawNode *self = nullptr; - cocos2d::Vec2 arg1; /** center */ + cocos2d::Vec2 *arg1; /** center */ float arg2 = 0; /** radius */ float arg3 = 0; /** angle */ unsigned int arg4 = 0; /** segments */ @@ -28561,7 +29409,7 @@ static int _cocos2d_DrawNode_drawCircle$1(lua_State *L) olua_check_cocos2d_Color4F(L, 9, &arg8); // void drawCircle(const cocos2d::Vec2 ¢er, float radius, float angle, unsigned int segments, bool drawLineToCenter, float scaleX, float scaleY, const cocos2d::Color4F &color) - self->drawCircle(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); + self->drawCircle(*arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); olua_endinvoke(L); @@ -28573,7 +29421,7 @@ static int _cocos2d_DrawNode_drawCircle$2(lua_State *L) olua_startinvoke(L); cocos2d::DrawNode *self = nullptr; - cocos2d::Vec2 arg1; /** center */ + cocos2d::Vec2 *arg1; /** center */ float arg2 = 0; /** radius */ float arg3 = 0; /** angle */ unsigned int arg4 = 0; /** segments */ @@ -28589,7 +29437,7 @@ static int _cocos2d_DrawNode_drawCircle$2(lua_State *L) olua_check_cocos2d_Color4F(L, 7, &arg6); // void drawCircle(const cocos2d::Vec2 ¢er, float radius, float angle, unsigned int segments, bool drawLineToCenter, const cocos2d::Color4F &color) - self->drawCircle(arg1, arg2, arg3, arg4, arg5, arg6); + self->drawCircle(*arg1, arg2, arg3, arg4, arg5, arg6); olua_endinvoke(L); @@ -28624,10 +29472,10 @@ static int _cocos2d_DrawNode_drawCubicBezier(lua_State *L) olua_startinvoke(L); cocos2d::DrawNode *self = nullptr; - cocos2d::Vec2 arg1; /** origin */ - cocos2d::Vec2 arg2; /** control1 */ - cocos2d::Vec2 arg3; /** control2 */ - cocos2d::Vec2 arg4; /** destination */ + cocos2d::Vec2 *arg1; /** origin */ + cocos2d::Vec2 *arg2; /** control1 */ + cocos2d::Vec2 *arg3; /** control2 */ + cocos2d::Vec2 *arg4; /** destination */ unsigned int arg5 = 0; /** segments */ cocos2d::Color4F arg6; /** color */ @@ -28640,7 +29488,7 @@ static int _cocos2d_DrawNode_drawCubicBezier(lua_State *L) olua_check_cocos2d_Color4F(L, 7, &arg6); // void drawCubicBezier(const cocos2d::Vec2 &origin, const cocos2d::Vec2 &control1, const cocos2d::Vec2 &control2, const cocos2d::Vec2 &destination, unsigned int segments, const cocos2d::Color4F &color) - self->drawCubicBezier(arg1, arg2, arg3, arg4, arg5, arg6); + self->drawCubicBezier(*arg1, *arg2, *arg3, *arg4, arg5, arg6); olua_endinvoke(L); @@ -28652,7 +29500,7 @@ static int _cocos2d_DrawNode_drawDot(lua_State *L) olua_startinvoke(L); cocos2d::DrawNode *self = nullptr; - cocos2d::Vec2 arg1; /** pos */ + cocos2d::Vec2 *arg1; /** pos */ float arg2 = 0; /** radius */ cocos2d::Color4F arg3; /** color */ @@ -28662,7 +29510,7 @@ static int _cocos2d_DrawNode_drawDot(lua_State *L) olua_check_cocos2d_Color4F(L, 4, &arg3); // void drawDot(const cocos2d::Vec2 &pos, float radius, const cocos2d::Color4F &color) - self->drawDot(arg1, arg2, arg3); + self->drawDot(*arg1, arg2, arg3); olua_endinvoke(L); @@ -28674,8 +29522,8 @@ static int _cocos2d_DrawNode_drawLine(lua_State *L) olua_startinvoke(L); cocos2d::DrawNode *self = nullptr; - cocos2d::Vec2 arg1; /** origin */ - cocos2d::Vec2 arg2; /** destination */ + cocos2d::Vec2 *arg1; /** origin */ + cocos2d::Vec2 *arg2; /** destination */ cocos2d::Color4F arg3; /** color */ olua_to_object(L, 1, &self, "cc.DrawNode"); @@ -28684,7 +29532,7 @@ static int _cocos2d_DrawNode_drawLine(lua_State *L) olua_check_cocos2d_Color4F(L, 4, &arg3); // void drawLine(const cocos2d::Vec2 &origin, const cocos2d::Vec2 &destination, const cocos2d::Color4F &color) - self->drawLine(arg1, arg2, arg3); + self->drawLine(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -28696,7 +29544,7 @@ static int _cocos2d_DrawNode_drawPoint(lua_State *L) olua_startinvoke(L); cocos2d::DrawNode *self = nullptr; - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ float arg2 = 0; /** pointSize */ cocos2d::Color4F arg3; /** color */ @@ -28706,7 +29554,7 @@ static int _cocos2d_DrawNode_drawPoint(lua_State *L) olua_check_cocos2d_Color4F(L, 4, &arg3); // void drawPoint(const cocos2d::Vec2 &point, const float pointSize, const cocos2d::Color4F &color) - self->drawPoint(arg1, arg2, arg3); + self->drawPoint(*arg1, arg2, arg3); olua_endinvoke(L); @@ -28837,9 +29685,9 @@ static int _cocos2d_DrawNode_drawQuadBezier(lua_State *L) olua_startinvoke(L); cocos2d::DrawNode *self = nullptr; - cocos2d::Vec2 arg1; /** origin */ - cocos2d::Vec2 arg2; /** control */ - cocos2d::Vec2 arg3; /** destination */ + cocos2d::Vec2 *arg1; /** origin */ + cocos2d::Vec2 *arg2; /** control */ + cocos2d::Vec2 *arg3; /** destination */ unsigned int arg4 = 0; /** segments */ cocos2d::Color4F arg5; /** color */ @@ -28851,7 +29699,7 @@ static int _cocos2d_DrawNode_drawQuadBezier(lua_State *L) olua_check_cocos2d_Color4F(L, 6, &arg5); // void drawQuadBezier(const cocos2d::Vec2 &origin, const cocos2d::Vec2 &control, const cocos2d::Vec2 &destination, unsigned int segments, const cocos2d::Color4F &color) - self->drawQuadBezier(arg1, arg2, arg3, arg4, arg5); + self->drawQuadBezier(*arg1, *arg2, *arg3, arg4, arg5); olua_endinvoke(L); @@ -28863,8 +29711,8 @@ static int _cocos2d_DrawNode_drawRect$1(lua_State *L) olua_startinvoke(L); cocos2d::DrawNode *self = nullptr; - cocos2d::Vec2 arg1; /** origin */ - cocos2d::Vec2 arg2; /** destination */ + cocos2d::Vec2 *arg1; /** origin */ + cocos2d::Vec2 *arg2; /** destination */ cocos2d::Color4F arg3; /** color */ olua_to_object(L, 1, &self, "cc.DrawNode"); @@ -28873,7 +29721,7 @@ static int _cocos2d_DrawNode_drawRect$1(lua_State *L) olua_check_cocos2d_Color4F(L, 4, &arg3); // void drawRect(const cocos2d::Vec2 &origin, const cocos2d::Vec2 &destination, const cocos2d::Color4F &color) - self->drawRect(arg1, arg2, arg3); + self->drawRect(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -28885,10 +29733,10 @@ static int _cocos2d_DrawNode_drawRect$2(lua_State *L) olua_startinvoke(L); cocos2d::DrawNode *self = nullptr; - cocos2d::Vec2 arg1; /** p1 */ - cocos2d::Vec2 arg2; /** p2 */ - cocos2d::Vec2 arg3; /** p3 */ - cocos2d::Vec2 arg4; /** p4 */ + cocos2d::Vec2 *arg1; /** p1 */ + cocos2d::Vec2 *arg2; /** p2 */ + cocos2d::Vec2 *arg3; /** p3 */ + cocos2d::Vec2 *arg4; /** p4 */ cocos2d::Color4F arg5; /** color */ olua_to_object(L, 1, &self, "cc.DrawNode"); @@ -28899,7 +29747,7 @@ static int _cocos2d_DrawNode_drawRect$2(lua_State *L) olua_check_cocos2d_Color4F(L, 6, &arg5); // void drawRect(const cocos2d::Vec2 &p1, const cocos2d::Vec2 &p2, const cocos2d::Vec2 &p3, const cocos2d::Vec2 &p4, const cocos2d::Color4F &color) - self->drawRect(arg1, arg2, arg3, arg4, arg5); + self->drawRect(*arg1, *arg2, *arg3, *arg4, arg5); olua_endinvoke(L); @@ -28934,8 +29782,8 @@ static int _cocos2d_DrawNode_drawSegment(lua_State *L) olua_startinvoke(L); cocos2d::DrawNode *self = nullptr; - cocos2d::Vec2 arg1; /** from */ - cocos2d::Vec2 arg2; /** to */ + cocos2d::Vec2 *arg1; /** from */ + cocos2d::Vec2 *arg2; /** to */ float arg3 = 0; /** radius */ cocos2d::Color4F arg4; /** color */ @@ -28946,7 +29794,7 @@ static int _cocos2d_DrawNode_drawSegment(lua_State *L) olua_check_cocos2d_Color4F(L, 5, &arg4); // void drawSegment(const cocos2d::Vec2 &from, const cocos2d::Vec2 &to, float radius, const cocos2d::Color4F &color) - self->drawSegment(arg1, arg2, arg3, arg4); + self->drawSegment(*arg1, *arg2, arg3, arg4); olua_endinvoke(L); @@ -28958,7 +29806,7 @@ static int _cocos2d_DrawNode_drawSolidCircle$1(lua_State *L) olua_startinvoke(L); cocos2d::DrawNode *self = nullptr; - cocos2d::Vec2 arg1; /** center */ + cocos2d::Vec2 *arg1; /** center */ float arg2 = 0; /** radius */ float arg3 = 0; /** angle */ unsigned int arg4 = 0; /** segments */ @@ -28976,7 +29824,7 @@ static int _cocos2d_DrawNode_drawSolidCircle$1(lua_State *L) olua_check_cocos2d_Color4F(L, 8, &arg7); // void drawSolidCircle(const cocos2d::Vec2 ¢er, float radius, float angle, unsigned int segments, float scaleX, float scaleY, const cocos2d::Color4F &color) - self->drawSolidCircle(arg1, arg2, arg3, arg4, arg5, arg6, arg7); + self->drawSolidCircle(*arg1, arg2, arg3, arg4, arg5, arg6, arg7); olua_endinvoke(L); @@ -28988,7 +29836,7 @@ static int _cocos2d_DrawNode_drawSolidCircle$2(lua_State *L) olua_startinvoke(L); cocos2d::DrawNode *self = nullptr; - cocos2d::Vec2 arg1; /** center */ + cocos2d::Vec2 *arg1; /** center */ float arg2 = 0; /** radius */ float arg3 = 0; /** angle */ unsigned int arg4 = 0; /** segments */ @@ -29002,7 +29850,7 @@ static int _cocos2d_DrawNode_drawSolidCircle$2(lua_State *L) olua_check_cocos2d_Color4F(L, 6, &arg5); // void drawSolidCircle(const cocos2d::Vec2 ¢er, float radius, float angle, unsigned int segments, const cocos2d::Color4F &color) - self->drawSolidCircle(arg1, arg2, arg3, arg4, arg5); + self->drawSolidCircle(*arg1, arg2, arg3, arg4, arg5); olua_endinvoke(L); @@ -29059,8 +29907,8 @@ static int _cocos2d_DrawNode_drawSolidRect(lua_State *L) olua_startinvoke(L); cocos2d::DrawNode *self = nullptr; - cocos2d::Vec2 arg1; /** origin */ - cocos2d::Vec2 arg2; /** destination */ + cocos2d::Vec2 *arg1; /** origin */ + cocos2d::Vec2 *arg2; /** destination */ cocos2d::Color4F arg3; /** color */ olua_to_object(L, 1, &self, "cc.DrawNode"); @@ -29069,7 +29917,7 @@ static int _cocos2d_DrawNode_drawSolidRect(lua_State *L) olua_check_cocos2d_Color4F(L, 4, &arg3); // void drawSolidRect(const cocos2d::Vec2 &origin, const cocos2d::Vec2 &destination, const cocos2d::Color4F &color) - self->drawSolidRect(arg1, arg2, arg3); + self->drawSolidRect(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -29081,9 +29929,9 @@ static int _cocos2d_DrawNode_drawTriangle(lua_State *L) olua_startinvoke(L); cocos2d::DrawNode *self = nullptr; - cocos2d::Vec2 arg1; /** p1 */ - cocos2d::Vec2 arg2; /** p2 */ - cocos2d::Vec2 arg3; /** p3 */ + cocos2d::Vec2 *arg1; /** p1 */ + cocos2d::Vec2 *arg2; /** p2 */ + cocos2d::Vec2 *arg3; /** p3 */ cocos2d::Color4F arg4; /** color */ olua_to_object(L, 1, &self, "cc.DrawNode"); @@ -29093,7 +29941,7 @@ static int _cocos2d_DrawNode_drawTriangle(lua_State *L) olua_check_cocos2d_Color4F(L, 5, &arg4); // void drawTriangle(const cocos2d::Vec2 &p1, const cocos2d::Vec2 &p2, const cocos2d::Vec2 &p3, const cocos2d::Color4F &color) - self->drawTriangle(arg1, arg2, arg3, arg4); + self->drawTriangle(*arg1, *arg2, *arg3, arg4); olua_endinvoke(L); @@ -29209,13 +30057,13 @@ static int _cocos2d_DrawNode_setBlendFunc(lua_State *L) olua_startinvoke(L); cocos2d::DrawNode *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "cc.DrawNode"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -29258,8 +30106,7 @@ static int _cocos2d_DrawNode_setLineWidth(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_DrawNode(lua_State *L) +static int _cc_DrawNode(lua_State *L) { oluacls_class(L, "cc.DrawNode"); oluacls_func(L, "clear", _cocos2d_DrawNode_clear); @@ -29294,6 +30141,16 @@ OLUA_LIB int luaopen_cocos2d_DrawNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_DrawNode(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::DrawNode"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ParallaxNode_addChild$1(lua_State *L) @@ -29303,8 +30160,8 @@ static int _cocos2d_ParallaxNode_addChild$1(lua_State *L) cocos2d::ParallaxNode *self = nullptr; cocos2d::Node *arg1 = nullptr; /** child */ int arg2 = 0; /** z */ - cocos2d::Vec2 arg3; /** parallaxRatio */ - cocos2d::Vec2 arg4; /** positionOffset */ + cocos2d::Vec2 *arg3; /** parallaxRatio */ + cocos2d::Vec2 *arg4; /** positionOffset */ olua_to_object(L, 1, &self, "cc.ParallaxNode"); olua_check_object(L, 2, &arg1, "cc.Node"); @@ -29313,7 +30170,7 @@ static int _cocos2d_ParallaxNode_addChild$1(lua_State *L) olua_check_object(L, 5, &arg4, "cc.Vec2"); // void addChild(@addref(children |) cocos2d::Node *child, int z, const cocos2d::Vec2 ¶llaxRatio, const cocos2d::Vec2 &positionOffset) - self->addChild(arg1, arg2, arg3, arg4); + self->addChild(arg1, arg2, *arg3, *arg4); // insert code after call olua_addref(L, 1, "children", 2, OLUA_REF_MULTI); @@ -29486,8 +30343,7 @@ static int _cocos2d_ParallaxNode_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParallaxNode(lua_State *L) +static int _cc_ParallaxNode(lua_State *L) { oluacls_class(L, "cc.ParallaxNode"); oluacls_func(L, "addChild", _cocos2d_ParallaxNode_addChild); @@ -29496,10 +30352,19 @@ OLUA_LIB int luaopen_cocos2d_ParallaxNode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TextHAlignment(lua_State *L) +OLUA_LIB int luaopen_cc_ParallaxNode(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParallaxNode"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_TextHAlignment(lua_State *L) { oluacls_class(L, "cc.TextHAlignment"); oluacls_func(L, "__index", olua_indexerror); @@ -29510,10 +30375,19 @@ OLUA_LIB int luaopen_cocos2d_TextHAlignment(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TextVAlignment(lua_State *L) +OLUA_LIB int luaopen_cc_TextHAlignment(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TextHAlignment"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_TextVAlignment(lua_State *L) { oluacls_class(L, "cc.TextVAlignment"); oluacls_func(L, "__index", olua_indexerror); @@ -29524,10 +30398,19 @@ OLUA_LIB int luaopen_cocos2d_TextVAlignment(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_GlyphCollection(lua_State *L) +OLUA_LIB int luaopen_cc_TextVAlignment(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TextVAlignment"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_GlyphCollection(lua_State *L) { oluacls_class(L, "cc.GlyphCollection"); oluacls_func(L, "__index", olua_indexerror); @@ -29539,10 +30422,19 @@ OLUA_LIB int luaopen_cocos2d_GlyphCollection(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_LabelEffect(lua_State *L) +OLUA_LIB int luaopen_cc_GlyphCollection(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::GlyphCollection"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_LabelEffect(lua_State *L) { oluacls_class(L, "cc.LabelEffect"); oluacls_func(L, "__index", olua_indexerror); @@ -29559,10 +30451,19 @@ OLUA_LIB int luaopen_cocos2d_LabelEffect(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Label_LabelType(lua_State *L) +OLUA_LIB int luaopen_cc_LabelEffect(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::LabelEffect"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_Label_LabelType(lua_State *L) { oluacls_class(L, "cc.Label.LabelType"); oluacls_func(L, "__index", olua_indexerror); @@ -29574,10 +30475,19 @@ OLUA_LIB int luaopen_cocos2d_Label_LabelType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Label_Overflow(lua_State *L) +OLUA_LIB int luaopen_cc_Label_LabelType(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Label::LabelType"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_Label_Overflow(lua_State *L) { oluacls_class(L, "cc.Label.Overflow"); oluacls_func(L, "__index", olua_indexerror); @@ -29589,6 +30499,16 @@ OLUA_LIB int luaopen_cocos2d_Label_Overflow(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Label_Overflow(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Label::Overflow"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_LabelProtocol___gc(lua_State *L) @@ -29650,8 +30570,7 @@ static int _cocos2d_LabelProtocol_setString(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_LabelProtocol(lua_State *L) +static int _cc_LabelProtocol(lua_State *L) { oluacls_class(L, "cc.LabelProtocol"); oluacls_func(L, "__gc", _cocos2d_LabelProtocol___gc); @@ -29662,6 +30581,16 @@ OLUA_LIB int luaopen_cocos2d_LabelProtocol(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_LabelProtocol(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::LabelProtocol"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Label_as(lua_State *L) @@ -29780,7 +30709,7 @@ static int _cocos2d_Label_createWithBMFont$4(lua_State *L) std::string arg2; /** text */ cocos2d::TextHAlignment arg3 = (cocos2d::TextHAlignment)0; /** hAlignment */ int arg4 = 0; /** maxLineWidth */ - cocos2d::Rect arg5; /** imageRect */ + cocos2d::Rect *arg5; /** imageRect */ bool arg6 = false; /** imageRotated */ olua_check_string(L, 1, &arg1); @@ -29791,7 +30720,7 @@ static int _cocos2d_Label_createWithBMFont$4(lua_State *L) olua_check_bool(L, 6, &arg6); // static cocos2d::Label *createWithBMFont(const std::string &bmfontPath, const std::string &text, const cocos2d::TextHAlignment &hAlignment, int maxLineWidth, const cocos2d::Rect &imageRect, bool imageRotated) - cocos2d::Label *ret = cocos2d::Label::createWithBMFont(arg1, arg2, arg3, arg4, arg5, arg6); + cocos2d::Label *ret = cocos2d::Label::createWithBMFont(arg1, arg2, arg3, arg4, *arg5, arg6); int num_ret = olua_push_object(L, ret, "cc.Label"); olua_endinvoke(L); @@ -29966,7 +30895,7 @@ static int _cocos2d_Label_createWithSystemFont$1(lua_State *L) std::string arg1; /** text */ std::string arg2; /** font */ float arg3 = 0; /** fontSize */ - cocos2d::Size arg4; /** dimensions */ + cocos2d::Size *arg4; /** dimensions */ cocos2d::TextHAlignment arg5 = (cocos2d::TextHAlignment)0; /** hAlignment */ cocos2d::TextVAlignment arg6 = (cocos2d::TextVAlignment)0; /** vAlignment */ @@ -29978,7 +30907,7 @@ static int _cocos2d_Label_createWithSystemFont$1(lua_State *L) olua_check_enum(L, 6, &arg6); // static cocos2d::Label *createWithSystemFont(const std::string &text, const std::string &font, float fontSize, @optional const cocos2d::Size &dimensions, @optional cocos2d::TextHAlignment hAlignment, @optional cocos2d::TextVAlignment vAlignment) - cocos2d::Label *ret = cocos2d::Label::createWithSystemFont(arg1, arg2, arg3, arg4, arg5, arg6); + cocos2d::Label *ret = cocos2d::Label::createWithSystemFont(arg1, arg2, arg3, *arg4, arg5, arg6); int num_ret = olua_push_object(L, ret, "cc.Label"); olua_endinvoke(L); @@ -30014,7 +30943,7 @@ static int _cocos2d_Label_createWithSystemFont$3(lua_State *L) std::string arg1; /** text */ std::string arg2; /** font */ float arg3 = 0; /** fontSize */ - cocos2d::Size arg4; /** dimensions */ + cocos2d::Size *arg4; /** dimensions */ olua_check_string(L, 1, &arg1); olua_check_string(L, 2, &arg2); @@ -30022,7 +30951,7 @@ static int _cocos2d_Label_createWithSystemFont$3(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Size"); // static cocos2d::Label *createWithSystemFont(const std::string &text, const std::string &font, float fontSize, @optional const cocos2d::Size &dimensions) - cocos2d::Label *ret = cocos2d::Label::createWithSystemFont(arg1, arg2, arg3, arg4); + cocos2d::Label *ret = cocos2d::Label::createWithSystemFont(arg1, arg2, arg3, *arg4); int num_ret = olua_push_object(L, ret, "cc.Label"); olua_endinvoke(L); @@ -30037,7 +30966,7 @@ static int _cocos2d_Label_createWithSystemFont$4(lua_State *L) std::string arg1; /** text */ std::string arg2; /** font */ float arg3 = 0; /** fontSize */ - cocos2d::Size arg4; /** dimensions */ + cocos2d::Size *arg4; /** dimensions */ cocos2d::TextHAlignment arg5 = (cocos2d::TextHAlignment)0; /** hAlignment */ olua_check_string(L, 1, &arg1); @@ -30047,7 +30976,7 @@ static int _cocos2d_Label_createWithSystemFont$4(lua_State *L) olua_check_enum(L, 5, &arg5); // static cocos2d::Label *createWithSystemFont(const std::string &text, const std::string &font, float fontSize, @optional const cocos2d::Size &dimensions, @optional cocos2d::TextHAlignment hAlignment) - cocos2d::Label *ret = cocos2d::Label::createWithSystemFont(arg1, arg2, arg3, arg4, arg5); + cocos2d::Label *ret = cocos2d::Label::createWithSystemFont(arg1, arg2, arg3, *arg4, arg5); int num_ret = olua_push_object(L, ret, "cc.Label"); olua_endinvoke(L); @@ -30099,7 +31028,7 @@ static int _cocos2d_Label_createWithTTF$1(lua_State *L) std::string arg1; /** text */ std::string arg2; /** fontFilePath */ float arg3 = 0; /** fontSize */ - cocos2d::Size arg4; /** dimensions */ + cocos2d::Size *arg4; /** dimensions */ cocos2d::TextHAlignment arg5 = (cocos2d::TextHAlignment)0; /** hAlignment */ cocos2d::TextVAlignment arg6 = (cocos2d::TextVAlignment)0; /** vAlignment */ @@ -30111,7 +31040,7 @@ static int _cocos2d_Label_createWithTTF$1(lua_State *L) olua_check_enum(L, 6, &arg6); // static cocos2d::Label *createWithTTF(const std::string &text, const std::string &fontFilePath, float fontSize, @optional const cocos2d::Size &dimensions, @optional cocos2d::TextHAlignment hAlignment, @optional cocos2d::TextVAlignment vAlignment) - cocos2d::Label *ret = cocos2d::Label::createWithTTF(arg1, arg2, arg3, arg4, arg5, arg6); + cocos2d::Label *ret = cocos2d::Label::createWithTTF(arg1, arg2, arg3, *arg4, arg5, arg6); int num_ret = olua_push_object(L, ret, "cc.Label"); olua_endinvoke(L); @@ -30147,7 +31076,7 @@ static int _cocos2d_Label_createWithTTF$3(lua_State *L) std::string arg1; /** text */ std::string arg2; /** fontFilePath */ float arg3 = 0; /** fontSize */ - cocos2d::Size arg4; /** dimensions */ + cocos2d::Size *arg4; /** dimensions */ olua_check_string(L, 1, &arg1); olua_check_string(L, 2, &arg2); @@ -30155,7 +31084,7 @@ static int _cocos2d_Label_createWithTTF$3(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Size"); // static cocos2d::Label *createWithTTF(const std::string &text, const std::string &fontFilePath, float fontSize, @optional const cocos2d::Size &dimensions) - cocos2d::Label *ret = cocos2d::Label::createWithTTF(arg1, arg2, arg3, arg4); + cocos2d::Label *ret = cocos2d::Label::createWithTTF(arg1, arg2, arg3, *arg4); int num_ret = olua_push_object(L, ret, "cc.Label"); olua_endinvoke(L); @@ -30170,7 +31099,7 @@ static int _cocos2d_Label_createWithTTF$4(lua_State *L) std::string arg1; /** text */ std::string arg2; /** fontFilePath */ float arg3 = 0; /** fontSize */ - cocos2d::Size arg4; /** dimensions */ + cocos2d::Size *arg4; /** dimensions */ cocos2d::TextHAlignment arg5 = (cocos2d::TextHAlignment)0; /** hAlignment */ olua_check_string(L, 1, &arg1); @@ -30180,7 +31109,7 @@ static int _cocos2d_Label_createWithTTF$4(lua_State *L) olua_check_enum(L, 5, &arg5); // static cocos2d::Label *createWithTTF(const std::string &text, const std::string &fontFilePath, float fontSize, @optional const cocos2d::Size &dimensions, @optional cocos2d::TextHAlignment hAlignment) - cocos2d::Label *ret = cocos2d::Label::createWithTTF(arg1, arg2, arg3, arg4, arg5); + cocos2d::Label *ret = cocos2d::Label::createWithTTF(arg1, arg2, arg3, *arg4, arg5); int num_ret = olua_push_object(L, ret, "cc.Label"); olua_endinvoke(L); @@ -30192,7 +31121,7 @@ static int _cocos2d_Label_createWithTTF$5(lua_State *L) { olua_startinvoke(L); - cocos2d::TTFConfig arg1; /** ttfConfig */ + cocos2d::TTFConfig *arg1; /** ttfConfig */ std::string arg2; /** text */ cocos2d::TextHAlignment arg3 = (cocos2d::TextHAlignment)0; /** hAlignment */ int arg4 = 0; /** maxLineWidth */ @@ -30203,7 +31132,7 @@ static int _cocos2d_Label_createWithTTF$5(lua_State *L) olua_check_integer(L, 4, &arg4); // static cocos2d::Label *createWithTTF(const cocos2d::TTFConfig &ttfConfig, const std::string &text, @optional cocos2d::TextHAlignment hAlignment, @optional int maxLineWidth) - cocos2d::Label *ret = cocos2d::Label::createWithTTF(arg1, arg2, arg3, arg4); + cocos2d::Label *ret = cocos2d::Label::createWithTTF(*arg1, arg2, arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.Label"); olua_endinvoke(L); @@ -30215,14 +31144,14 @@ static int _cocos2d_Label_createWithTTF$6(lua_State *L) { olua_startinvoke(L); - cocos2d::TTFConfig arg1; /** ttfConfig */ + cocos2d::TTFConfig *arg1; /** ttfConfig */ std::string arg2; /** text */ olua_check_object(L, 1, &arg1, "cc.TTFConfig"); olua_check_string(L, 2, &arg2); // static cocos2d::Label *createWithTTF(const cocos2d::TTFConfig &ttfConfig, const std::string &text) - cocos2d::Label *ret = cocos2d::Label::createWithTTF(arg1, arg2); + cocos2d::Label *ret = cocos2d::Label::createWithTTF(*arg1, arg2); int num_ret = olua_push_object(L, ret, "cc.Label"); olua_endinvoke(L); @@ -30234,7 +31163,7 @@ static int _cocos2d_Label_createWithTTF$7(lua_State *L) { olua_startinvoke(L); - cocos2d::TTFConfig arg1; /** ttfConfig */ + cocos2d::TTFConfig *arg1; /** ttfConfig */ std::string arg2; /** text */ cocos2d::TextHAlignment arg3 = (cocos2d::TextHAlignment)0; /** hAlignment */ @@ -30243,7 +31172,7 @@ static int _cocos2d_Label_createWithTTF$7(lua_State *L) olua_check_enum(L, 3, &arg3); // static cocos2d::Label *createWithTTF(const cocos2d::TTFConfig &ttfConfig, const std::string &text, @optional cocos2d::TextHAlignment hAlignment) - cocos2d::Label *ret = cocos2d::Label::createWithTTF(arg1, arg2, arg3); + cocos2d::Label *ret = cocos2d::Label::createWithTTF(*arg1, arg2, arg3); int num_ret = olua_push_object(L, ret, "cc.Label"); olua_endinvoke(L); @@ -30477,7 +31406,7 @@ static int _cocos2d_Label_enableShadow$1(lua_State *L) cocos2d::Label *self = nullptr; cocos2d::Color4B arg1; /** shadowColor */ - cocos2d::Size arg2; /** offset */ + cocos2d::Size *arg2; /** offset */ int arg3 = 0; /** blurRadius */ olua_to_object(L, 1, &self, "cc.Label"); @@ -30486,7 +31415,7 @@ static int _cocos2d_Label_enableShadow$1(lua_State *L) olua_check_integer(L, 4, &arg3); // void enableShadow(@optional const cocos2d::Color4B &shadowColor, @optional const cocos2d::Size &offset, @optional int blurRadius) - self->enableShadow(arg1, arg2, arg3); + self->enableShadow(arg1, *arg2, arg3); olua_endinvoke(L); @@ -30533,14 +31462,14 @@ static int _cocos2d_Label_enableShadow$4(lua_State *L) cocos2d::Label *self = nullptr; cocos2d::Color4B arg1; /** shadowColor */ - cocos2d::Size arg2; /** offset */ + cocos2d::Size *arg2; /** offset */ olua_to_object(L, 1, &self, "cc.Label"); olua_check_cocos2d_Color4B(L, 2, &arg1); olua_check_object(L, 3, &arg2, "cc.Size"); // void enableShadow(@optional const cocos2d::Color4B &shadowColor, @optional const cocos2d::Size &offset) - self->enableShadow(arg1, arg2); + self->enableShadow(arg1, *arg2); olua_endinvoke(L); @@ -31169,7 +32098,7 @@ static int _cocos2d_Label_initWithTTF$1(lua_State *L) std::string arg1; /** text */ std::string arg2; /** fontFilePath */ float arg3 = 0; /** fontSize */ - cocos2d::Size arg4; /** dimensions */ + cocos2d::Size *arg4; /** dimensions */ cocos2d::TextHAlignment arg5 = (cocos2d::TextHAlignment)0; /** hAlignment */ cocos2d::TextVAlignment arg6 = (cocos2d::TextVAlignment)0; /** vAlignment */ @@ -31182,7 +32111,7 @@ static int _cocos2d_Label_initWithTTF$1(lua_State *L) olua_check_enum(L, 7, &arg6); // bool initWithTTF(const std::string &text, const std::string &fontFilePath, float fontSize, @optional const cocos2d::Size &dimensions, @optional cocos2d::TextHAlignment hAlignment, @optional cocos2d::TextVAlignment vAlignment) - bool ret = self->initWithTTF(arg1, arg2, arg3, arg4, arg5, arg6); + bool ret = self->initWithTTF(arg1, arg2, arg3, *arg4, arg5, arg6); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -31221,7 +32150,7 @@ static int _cocos2d_Label_initWithTTF$3(lua_State *L) std::string arg1; /** text */ std::string arg2; /** fontFilePath */ float arg3 = 0; /** fontSize */ - cocos2d::Size arg4; /** dimensions */ + cocos2d::Size *arg4; /** dimensions */ olua_to_object(L, 1, &self, "cc.Label"); olua_check_string(L, 2, &arg1); @@ -31230,7 +32159,7 @@ static int _cocos2d_Label_initWithTTF$3(lua_State *L) olua_check_object(L, 5, &arg4, "cc.Size"); // bool initWithTTF(const std::string &text, const std::string &fontFilePath, float fontSize, @optional const cocos2d::Size &dimensions) - bool ret = self->initWithTTF(arg1, arg2, arg3, arg4); + bool ret = self->initWithTTF(arg1, arg2, arg3, *arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -31246,7 +32175,7 @@ static int _cocos2d_Label_initWithTTF$4(lua_State *L) std::string arg1; /** text */ std::string arg2; /** fontFilePath */ float arg3 = 0; /** fontSize */ - cocos2d::Size arg4; /** dimensions */ + cocos2d::Size *arg4; /** dimensions */ cocos2d::TextHAlignment arg5 = (cocos2d::TextHAlignment)0; /** hAlignment */ olua_to_object(L, 1, &self, "cc.Label"); @@ -31257,7 +32186,7 @@ static int _cocos2d_Label_initWithTTF$4(lua_State *L) olua_check_enum(L, 6, &arg5); // bool initWithTTF(const std::string &text, const std::string &fontFilePath, float fontSize, @optional const cocos2d::Size &dimensions, @optional cocos2d::TextHAlignment hAlignment) - bool ret = self->initWithTTF(arg1, arg2, arg3, arg4, arg5); + bool ret = self->initWithTTF(arg1, arg2, arg3, *arg4, arg5); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -31270,7 +32199,7 @@ static int _cocos2d_Label_initWithTTF$5(lua_State *L) olua_startinvoke(L); cocos2d::Label *self = nullptr; - cocos2d::TTFConfig arg1; /** ttfConfig */ + cocos2d::TTFConfig *arg1; /** ttfConfig */ std::string arg2; /** text */ cocos2d::TextHAlignment arg3 = (cocos2d::TextHAlignment)0; /** hAlignment */ int arg4 = 0; /** maxLineWidth */ @@ -31282,7 +32211,7 @@ static int _cocos2d_Label_initWithTTF$5(lua_State *L) olua_check_integer(L, 5, &arg4); // bool initWithTTF(const cocos2d::TTFConfig &ttfConfig, const std::string &text, @optional cocos2d::TextHAlignment hAlignment, @optional int maxLineWidth) - bool ret = self->initWithTTF(arg1, arg2, arg3, arg4); + bool ret = self->initWithTTF(*arg1, arg2, arg3, arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -31295,7 +32224,7 @@ static int _cocos2d_Label_initWithTTF$6(lua_State *L) olua_startinvoke(L); cocos2d::Label *self = nullptr; - cocos2d::TTFConfig arg1; /** ttfConfig */ + cocos2d::TTFConfig *arg1; /** ttfConfig */ std::string arg2; /** text */ olua_to_object(L, 1, &self, "cc.Label"); @@ -31303,7 +32232,7 @@ static int _cocos2d_Label_initWithTTF$6(lua_State *L) olua_check_string(L, 3, &arg2); // bool initWithTTF(const cocos2d::TTFConfig &ttfConfig, const std::string &text) - bool ret = self->initWithTTF(arg1, arg2); + bool ret = self->initWithTTF(*arg1, arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -31316,7 +32245,7 @@ static int _cocos2d_Label_initWithTTF$7(lua_State *L) olua_startinvoke(L); cocos2d::Label *self = nullptr; - cocos2d::TTFConfig arg1; /** ttfConfig */ + cocos2d::TTFConfig *arg1; /** ttfConfig */ std::string arg2; /** text */ cocos2d::TextHAlignment arg3 = (cocos2d::TextHAlignment)0; /** hAlignment */ @@ -31326,7 +32255,7 @@ static int _cocos2d_Label_initWithTTF$7(lua_State *L) olua_check_enum(L, 4, &arg3); // bool initWithTTF(const cocos2d::TTFConfig &ttfConfig, const std::string &text, @optional cocos2d::TextHAlignment hAlignment) - bool ret = self->initWithTTF(arg1, arg2, arg3); + bool ret = self->initWithTTF(*arg1, arg2, arg3); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -31660,7 +32589,7 @@ static int _cocos2d_Label_setBMFontFilePath$3(lua_State *L) cocos2d::Label *self = nullptr; std::string arg1; /** bmfontFilePath */ - cocos2d::Rect arg2; /** imageRect */ + cocos2d::Rect *arg2; /** imageRect */ bool arg3 = false; /** imageRotated */ float arg4 = 0; /** fontSize */ @@ -31671,7 +32600,7 @@ static int _cocos2d_Label_setBMFontFilePath$3(lua_State *L) olua_check_number(L, 5, &arg4); // bool setBMFontFilePath(const std::string &bmfontFilePath, const cocos2d::Rect &imageRect, bool imageRotated, @optional float fontSize) - bool ret = self->setBMFontFilePath(arg1, arg2, arg3, arg4); + bool ret = self->setBMFontFilePath(arg1, *arg2, arg3, arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -31685,7 +32614,7 @@ static int _cocos2d_Label_setBMFontFilePath$4(lua_State *L) cocos2d::Label *self = nullptr; std::string arg1; /** bmfontFilePath */ - cocos2d::Rect arg2; /** imageRect */ + cocos2d::Rect *arg2; /** imageRect */ bool arg3 = false; /** imageRotated */ olua_to_object(L, 1, &self, "cc.Label"); @@ -31694,7 +32623,7 @@ static int _cocos2d_Label_setBMFontFilePath$4(lua_State *L) olua_check_bool(L, 4, &arg3); // bool setBMFontFilePath(const std::string &bmfontFilePath, const cocos2d::Rect &imageRect, bool imageRotated) - bool ret = self->setBMFontFilePath(arg1, arg2, arg3); + bool ret = self->setBMFontFilePath(arg1, *arg2, arg3); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -31816,13 +32745,13 @@ static int _cocos2d_Label_setBlendFunc(lua_State *L) olua_startinvoke(L); cocos2d::Label *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "cc.Label"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -32149,13 +33078,13 @@ static int _cocos2d_Label_setTTFConfig(lua_State *L) olua_startinvoke(L); cocos2d::Label *self = nullptr; - cocos2d::TTFConfig arg1; /** ttfConfig */ + cocos2d::TTFConfig *arg1; /** ttfConfig */ olua_to_object(L, 1, &self, "cc.Label"); olua_check_object(L, 2, &arg1, "cc.TTFConfig"); // bool setTTFConfig(const cocos2d::TTFConfig &ttfConfig) - bool ret = self->setTTFConfig(arg1); + bool ret = self->setTTFConfig(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -32233,8 +33162,7 @@ static int _cocos2d_Label_updateContent(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Label(lua_State *L) +static int _cc_Label(lua_State *L) { oluacls_class(L, "cc.Label"); oluacls_func(L, "as", _cocos2d_Label_as); @@ -32347,6 +33275,16 @@ OLUA_LIB int luaopen_cocos2d_Label(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Label(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Label"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_LabelAtlas_as(lua_State *L) @@ -32622,8 +33560,7 @@ static int _cocos2d_LabelAtlas_setString(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_LabelAtlas(lua_State *L) +static int _cc_LabelAtlas(lua_State *L) { oluacls_class(L, "cc.LabelAtlas"); oluacls_func(L, "as", _cocos2d_LabelAtlas_as); @@ -32636,6 +33573,16 @@ OLUA_LIB int luaopen_cocos2d_LabelAtlas(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_LabelAtlas(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::LabelAtlas"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FontAtlas_CMD_PURGE_FONTATLAS$1(lua_State *L) @@ -32895,8 +33842,7 @@ static int _cocos2d_FontAtlas_setLineHeight(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FontAtlas(lua_State *L) +static int _cc_FontAtlas(lua_State *L) { oluacls_class(L, "cc.FontAtlas"); oluacls_func(L, "addTexture", _cocos2d_FontAtlas_addTexture); @@ -32917,18 +33863,28 @@ OLUA_LIB int luaopen_cocos2d_FontAtlas(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FontAtlas(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FontAtlas"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ClippingRectangleNode_create$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Rect arg1; /** clippingRegion */ + cocos2d::Rect *arg1; /** clippingRegion */ olua_check_object(L, 1, &arg1, "cc.Rect"); // static cocos2d::ClippingRectangleNode *create(const cocos2d::Rect &clippingRegion) - cocos2d::ClippingRectangleNode *ret = cocos2d::ClippingRectangleNode::create(arg1); + cocos2d::ClippingRectangleNode *ret = cocos2d::ClippingRectangleNode::create(*arg1); int num_ret = olua_push_object(L, ret, "cc.ClippingRectangleNode"); olua_endinvoke(L); @@ -33027,21 +33983,20 @@ static int _cocos2d_ClippingRectangleNode_setClippingRegion(lua_State *L) olua_startinvoke(L); cocos2d::ClippingRectangleNode *self = nullptr; - cocos2d::Rect arg1; /** clippingRegion */ + cocos2d::Rect *arg1; /** clippingRegion */ olua_to_object(L, 1, &self, "cc.ClippingRectangleNode"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setClippingRegion(const cocos2d::Rect &clippingRegion) - self->setClippingRegion(arg1); + self->setClippingRegion(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ClippingRectangleNode(lua_State *L) +static int _cc_ClippingRectangleNode(lua_State *L) { oluacls_class(L, "cc.ClippingRectangleNode"); oluacls_func(L, "create", _cocos2d_ClippingRectangleNode_create); @@ -33054,6 +34009,16 @@ OLUA_LIB int luaopen_cocos2d_ClippingRectangleNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ClippingRectangleNode(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ClippingRectangleNode"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_RenderTexture_begin(lua_State *L) @@ -33620,13 +34585,13 @@ static int _cocos2d_RenderTexture_newImage$1(lua_State *L) std::string cb_tag = "newImage"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Image *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Image *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.Image"); + olua_push_object(L, cb_arg1, "cc.Image"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -33658,13 +34623,13 @@ static int _cocos2d_RenderTexture_newImage$2(lua_State *L) std::string cb_tag = "newImage"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Image *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Image *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.Image"); + olua_push_object(L, cb_arg1, "cc.Image"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -33725,14 +34690,14 @@ static int _cocos2d_RenderTexture_saveToFile$1(lua_State *L) if (olua_isfunction(L, 4)) { cb_name = olua_setcallback(L, cb_store, 4, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg3 = [cb_store, cb_name, cb_ctx](cocos2d::RenderTexture *arg1, const std::string &arg2) { + arg3 = [cb_store, cb_name, cb_ctx](cocos2d::RenderTexture *cb_arg1, const std::string &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.RenderTexture"); - olua_push_string(L, arg2); + olua_push_object(L, cb_arg1, "cc.RenderTexture"); + olua_push_string(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -33817,14 +34782,14 @@ static int _cocos2d_RenderTexture_saveToFile$4(lua_State *L) if (olua_isfunction(L, 5)) { cb_name = olua_setcallback(L, cb_store, 5, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg4 = [cb_store, cb_name, cb_ctx](cocos2d::RenderTexture *arg1, const std::string &arg2) { + arg4 = [cb_store, cb_name, cb_ctx](cocos2d::RenderTexture *cb_arg1, const std::string &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.RenderTexture"); - olua_push_string(L, arg2); + olua_push_object(L, cb_arg1, "cc.RenderTexture"); + olua_push_string(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -33958,14 +34923,14 @@ static int _cocos2d_RenderTexture_saveToFileAsNonPMA$1(lua_State *L) if (olua_isfunction(L, 4)) { cb_name = olua_setcallback(L, cb_store, 4, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg3 = [cb_store, cb_name, cb_ctx](cocos2d::RenderTexture *arg1, const std::string &arg2) { + arg3 = [cb_store, cb_name, cb_ctx](cocos2d::RenderTexture *cb_arg1, const std::string &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.RenderTexture"); - olua_push_string(L, arg2); + olua_push_object(L, cb_arg1, "cc.RenderTexture"); + olua_push_string(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -34048,14 +35013,14 @@ static int _cocos2d_RenderTexture_saveToFileAsNonPMA$4(lua_State *L) std::string cb_tag = "saveToFile"; std::string cb_name = olua_setcallback(L, cb_store, 5, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg4 = [cb_store, cb_name, cb_ctx](cocos2d::RenderTexture *arg1, const std::string &arg2) { + arg4 = [cb_store, cb_name, cb_ctx](cocos2d::RenderTexture *cb_arg1, const std::string &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.RenderTexture"); - olua_push_string(L, arg2); + olua_push_object(L, cb_arg1, "cc.RenderTexture"); + olua_push_string(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -34242,9 +35207,9 @@ static int _cocos2d_RenderTexture_setVirtualViewport(lua_State *L) olua_startinvoke(L); cocos2d::RenderTexture *self = nullptr; - cocos2d::Vec2 arg1; /** rtBegin */ - cocos2d::Rect arg2; /** fullRect */ - cocos2d::Rect arg3; /** fullViewport */ + cocos2d::Vec2 *arg1; /** rtBegin */ + cocos2d::Rect *arg2; /** fullRect */ + cocos2d::Rect *arg3; /** fullViewport */ olua_to_object(L, 1, &self, "cc.RenderTexture"); olua_check_object(L, 2, &arg1, "cc.Vec2"); @@ -34252,15 +35217,14 @@ static int _cocos2d_RenderTexture_setVirtualViewport(lua_State *L) olua_check_object(L, 4, &arg3, "cc.Rect"); // void setVirtualViewport(const cocos2d::Vec2 &rtBegin, const cocos2d::Rect &fullRect, const cocos2d::Rect &fullViewport) - self->setVirtualViewport(arg1, arg2, arg3); + self->setVirtualViewport(*arg1, *arg2, *arg3); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_RenderTexture(lua_State *L) +static int _cc_RenderTexture(lua_State *L) { oluacls_class(L, "cc.RenderTexture"); oluacls_func(L, "begin", _cocos2d_RenderTexture_begin); @@ -34295,17 +35259,24 @@ OLUA_LIB int luaopen_cocos2d_RenderTexture(lua_State *L) oluacls_func(L, "setVirtualViewport", _cocos2d_RenderTexture_setVirtualViewport); oluacls_prop(L, "autoDraw", _cocos2d_RenderTexture_isAutoDraw, _cocos2d_RenderTexture_setAutoDraw); oluacls_prop(L, "clearColor", _cocos2d_RenderTexture_getClearColor, _cocos2d_RenderTexture_setClearColor); - oluacls_prop(L, "clearDepth", _cocos2d_RenderTexture_getClearDepth, _cocos2d_RenderTexture_setClearDepth); oluacls_prop(L, "clearFlags", _cocos2d_RenderTexture_getClearFlags, _cocos2d_RenderTexture_setClearFlags); - oluacls_prop(L, "clearStencil", _cocos2d_RenderTexture_getClearStencil, _cocos2d_RenderTexture_setClearStencil); oluacls_prop(L, "sprite", _cocos2d_RenderTexture_getSprite, _cocos2d_RenderTexture_setSprite); return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ProgressTimer_Type(lua_State *L) +OLUA_LIB int luaopen_cc_RenderTexture(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::RenderTexture"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_ProgressTimer_Type(lua_State *L) { oluacls_class(L, "cc.ProgressTimer.Type"); oluacls_func(L, "__index", olua_indexerror); @@ -34315,6 +35286,16 @@ OLUA_LIB int luaopen_cocos2d_ProgressTimer_Type(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ProgressTimer_Type(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ProgressTimer::Type"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ProgressTimer_create(lua_State *L) @@ -34474,13 +35455,13 @@ static int _cocos2d_ProgressTimer_setBarChangeRate(lua_State *L) olua_startinvoke(L); cocos2d::ProgressTimer *self = nullptr; - cocos2d::Vec2 arg1; /** barChangeRate */ + cocos2d::Vec2 *arg1; /** barChangeRate */ olua_to_object(L, 1, &self, "cc.ProgressTimer"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setBarChangeRate(const cocos2d::Vec2 &barChangeRate) - self->setBarChangeRate(arg1); + self->setBarChangeRate(*arg1); olua_endinvoke(L); @@ -34492,13 +35473,13 @@ static int _cocos2d_ProgressTimer_setMidpoint(lua_State *L) olua_startinvoke(L); cocos2d::ProgressTimer *self = nullptr; - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ olua_to_object(L, 1, &self, "cc.ProgressTimer"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setMidpoint(const cocos2d::Vec2 &point) - self->setMidpoint(arg1); + self->setMidpoint(*arg1); olua_endinvoke(L); @@ -34577,8 +35558,7 @@ static int _cocos2d_ProgressTimer_setType(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ProgressTimer(lua_State *L) +static int _cc_ProgressTimer(lua_State *L) { oluacls_class(L, "cc.ProgressTimer"); oluacls_func(L, "create", _cocos2d_ProgressTimer_create); @@ -34605,6 +35585,16 @@ OLUA_LIB int luaopen_cocos2d_ProgressTimer(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ProgressTimer(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ProgressTimer"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_AnimationFrame_as(lua_State *L) @@ -34815,8 +35805,7 @@ static int _cocos2d_AnimationFrame_setUserInfo(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_AnimationFrame(lua_State *L) +static int _cc_AnimationFrame(lua_State *L) { oluacls_class(L, "cc.AnimationFrame"); oluacls_func(L, "as", _cocos2d_AnimationFrame_as); @@ -34836,6 +35825,16 @@ OLUA_LIB int luaopen_cocos2d_AnimationFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_AnimationFrame(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::AnimationFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Animation_addSpriteFrame(lua_State *L) @@ -34880,14 +35879,14 @@ static int _cocos2d_Animation_addSpriteFrameWithTexture(lua_State *L) cocos2d::Animation *self = nullptr; cocos2d::Texture2D *arg1 = nullptr; /** pobTexture */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ olua_to_object(L, 1, &self, "cc.Animation"); olua_check_object(L, 2, &arg1, "cc.Texture2D"); olua_check_object(L, 3, &arg2, "cc.Rect"); // void addSpriteFrameWithTexture(cocos2d::Texture2D *pobTexture, const cocos2d::Rect &rect) - self->addSpriteFrameWithTexture(arg1, arg2); + self->addSpriteFrameWithTexture(arg1, *arg2); olua_endinvoke(L); @@ -35450,8 +36449,7 @@ static int _cocos2d_Animation_setRestoreOriginalFrame(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Animation(lua_State *L) +static int _cc_Animation(lua_State *L) { oluacls_class(L, "cc.Animation"); oluacls_func(L, "addSpriteFrame", _cocos2d_Animation_addSpriteFrame); @@ -35484,6 +36482,16 @@ OLUA_LIB int luaopen_cocos2d_Animation(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Animation(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Animation"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_SpriteFrame_as(lua_State *L) @@ -35536,13 +36544,13 @@ static int _cocos2d_SpriteFrame_create$1(lua_State *L) olua_startinvoke(L); std::string arg1; /** filename */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ olua_check_string(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Rect"); // static cocos2d::SpriteFrame *create(const std::string &filename, const cocos2d::Rect &rect) - cocos2d::SpriteFrame *ret = cocos2d::SpriteFrame::create(arg1, arg2); + cocos2d::SpriteFrame *ret = cocos2d::SpriteFrame::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.SpriteFrame"); olua_endinvoke(L); @@ -35555,10 +36563,10 @@ static int _cocos2d_SpriteFrame_create$2(lua_State *L) olua_startinvoke(L); std::string arg1; /** filename */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ bool arg3 = false; /** rotated */ - cocos2d::Vec2 arg4; /** offset */ - cocos2d::Size arg5; /** originalSize */ + cocos2d::Vec2 *arg4; /** offset */ + cocos2d::Size *arg5; /** originalSize */ olua_check_string(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Rect"); @@ -35567,7 +36575,7 @@ static int _cocos2d_SpriteFrame_create$2(lua_State *L) olua_check_object(L, 5, &arg5, "cc.Size"); // static cocos2d::SpriteFrame *create(const std::string &filename, const cocos2d::Rect &rect, bool rotated, const cocos2d::Vec2 &offset, const cocos2d::Size &originalSize) - cocos2d::SpriteFrame *ret = cocos2d::SpriteFrame::create(arg1, arg2, arg3, arg4, arg5); + cocos2d::SpriteFrame *ret = cocos2d::SpriteFrame::create(arg1, *arg2, arg3, *arg4, *arg5); int num_ret = olua_push_object(L, ret, "cc.SpriteFrame"); olua_endinvoke(L); @@ -35603,13 +36611,13 @@ static int _cocos2d_SpriteFrame_createWithTexture$1(lua_State *L) olua_startinvoke(L); cocos2d::Texture2D *arg1 = nullptr; /** pobTexture */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ olua_check_object(L, 1, &arg1, "cc.Texture2D"); olua_check_object(L, 2, &arg2, "cc.Rect"); // static cocos2d::SpriteFrame *createWithTexture(cocos2d::Texture2D *pobTexture, const cocos2d::Rect &rect) - cocos2d::SpriteFrame *ret = cocos2d::SpriteFrame::createWithTexture(arg1, arg2); + cocos2d::SpriteFrame *ret = cocos2d::SpriteFrame::createWithTexture(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.SpriteFrame"); olua_endinvoke(L); @@ -35622,10 +36630,10 @@ static int _cocos2d_SpriteFrame_createWithTexture$2(lua_State *L) olua_startinvoke(L); cocos2d::Texture2D *arg1 = nullptr; /** pobTexture */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ bool arg3 = false; /** rotated */ - cocos2d::Vec2 arg4; /** offset */ - cocos2d::Size arg5; /** originalSize */ + cocos2d::Vec2 *arg4; /** offset */ + cocos2d::Size *arg5; /** originalSize */ olua_check_object(L, 1, &arg1, "cc.Texture2D"); olua_check_object(L, 2, &arg2, "cc.Rect"); @@ -35634,7 +36642,7 @@ static int _cocos2d_SpriteFrame_createWithTexture$2(lua_State *L) olua_check_object(L, 5, &arg5, "cc.Size"); // static cocos2d::SpriteFrame *createWithTexture(cocos2d::Texture2D *pobTexture, const cocos2d::Rect &rect, bool rotated, const cocos2d::Vec2 &offset, const cocos2d::Size &originalSize) - cocos2d::SpriteFrame *ret = cocos2d::SpriteFrame::createWithTexture(arg1, arg2, arg3, arg4, arg5); + cocos2d::SpriteFrame *ret = cocos2d::SpriteFrame::createWithTexture(arg1, *arg2, arg3, *arg4, *arg5); int num_ret = olua_push_object(L, ret, "cc.SpriteFrame"); olua_endinvoke(L); @@ -35875,14 +36883,14 @@ static int _cocos2d_SpriteFrame_initWithTexture$1(lua_State *L) cocos2d::SpriteFrame *self = nullptr; cocos2d::Texture2D *arg1 = nullptr; /** pobTexture */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ olua_to_object(L, 1, &self, "cc.SpriteFrame"); olua_check_object(L, 2, &arg1, "cc.Texture2D"); olua_check_object(L, 3, &arg2, "cc.Rect"); // bool initWithTexture(cocos2d::Texture2D *pobTexture, const cocos2d::Rect &rect) - bool ret = self->initWithTexture(arg1, arg2); + bool ret = self->initWithTexture(arg1, *arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -35896,10 +36904,10 @@ static int _cocos2d_SpriteFrame_initWithTexture$2(lua_State *L) cocos2d::SpriteFrame *self = nullptr; cocos2d::Texture2D *arg1 = nullptr; /** pobTexture */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ bool arg3 = false; /** rotated */ - cocos2d::Vec2 arg4; /** offset */ - cocos2d::Size arg5; /** originalSize */ + cocos2d::Vec2 *arg4; /** offset */ + cocos2d::Size *arg5; /** originalSize */ olua_to_object(L, 1, &self, "cc.SpriteFrame"); olua_check_object(L, 2, &arg1, "cc.Texture2D"); @@ -35909,7 +36917,7 @@ static int _cocos2d_SpriteFrame_initWithTexture$2(lua_State *L) olua_check_object(L, 6, &arg5, "cc.Size"); // bool initWithTexture(cocos2d::Texture2D *pobTexture, const cocos2d::Rect &rect, bool rotated, const cocos2d::Vec2 &offset, const cocos2d::Size &originalSize) - bool ret = self->initWithTexture(arg1, arg2, arg3, arg4, arg5); + bool ret = self->initWithTexture(arg1, *arg2, arg3, *arg4, *arg5); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -35946,14 +36954,14 @@ static int _cocos2d_SpriteFrame_initWithTextureFilename$1(lua_State *L) cocos2d::SpriteFrame *self = nullptr; std::string arg1; /** filename */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ olua_to_object(L, 1, &self, "cc.SpriteFrame"); olua_check_string(L, 2, &arg1); olua_check_object(L, 3, &arg2, "cc.Rect"); // bool initWithTextureFilename(const std::string &filename, const cocos2d::Rect &rect) - bool ret = self->initWithTextureFilename(arg1, arg2); + bool ret = self->initWithTextureFilename(arg1, *arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -35967,10 +36975,10 @@ static int _cocos2d_SpriteFrame_initWithTextureFilename$2(lua_State *L) cocos2d::SpriteFrame *self = nullptr; std::string arg1; /** filename */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ bool arg3 = false; /** rotated */ - cocos2d::Vec2 arg4; /** offset */ - cocos2d::Size arg5; /** originalSize */ + cocos2d::Vec2 *arg4; /** offset */ + cocos2d::Size *arg5; /** originalSize */ olua_to_object(L, 1, &self, "cc.SpriteFrame"); olua_check_string(L, 2, &arg1); @@ -35980,7 +36988,7 @@ static int _cocos2d_SpriteFrame_initWithTextureFilename$2(lua_State *L) olua_check_object(L, 6, &arg5, "cc.Size"); // bool initWithTextureFilename(const std::string &filename, const cocos2d::Rect &rect, bool rotated, const cocos2d::Vec2 &offset, const cocos2d::Size &originalSize) - bool ret = self->initWithTextureFilename(arg1, arg2, arg3, arg4, arg5); + bool ret = self->initWithTextureFilename(arg1, *arg2, arg3, *arg4, *arg5); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -36047,13 +37055,13 @@ static int _cocos2d_SpriteFrame_setAnchorPoint(lua_State *L) olua_startinvoke(L); cocos2d::SpriteFrame *self = nullptr; - cocos2d::Vec2 arg1; /** anchorPoint */ + cocos2d::Vec2 *arg1; /** anchorPoint */ olua_to_object(L, 1, &self, "cc.SpriteFrame"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setAnchorPoint(const cocos2d::Vec2 &anchorPoint) - self->setAnchorPoint(arg1); + self->setAnchorPoint(*arg1); olua_endinvoke(L); @@ -36065,13 +37073,13 @@ static int _cocos2d_SpriteFrame_setCenterRectInPixels(lua_State *L) olua_startinvoke(L); cocos2d::SpriteFrame *self = nullptr; - cocos2d::Rect arg1; /** centerRect */ + cocos2d::Rect *arg1; /** centerRect */ olua_to_object(L, 1, &self, "cc.SpriteFrame"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCenterRectInPixels(const cocos2d::Rect ¢erRect) - self->setCenterRectInPixels(arg1); + self->setCenterRectInPixels(*arg1); olua_endinvoke(L); @@ -36083,13 +37091,13 @@ static int _cocos2d_SpriteFrame_setOffset(lua_State *L) olua_startinvoke(L); cocos2d::SpriteFrame *self = nullptr; - cocos2d::Vec2 arg1; /** offsets */ + cocos2d::Vec2 *arg1; /** offsets */ olua_to_object(L, 1, &self, "cc.SpriteFrame"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setOffset(const cocos2d::Vec2 &offsets) - self->setOffset(arg1); + self->setOffset(*arg1); olua_endinvoke(L); @@ -36101,13 +37109,13 @@ static int _cocos2d_SpriteFrame_setOffsetInPixels(lua_State *L) olua_startinvoke(L); cocos2d::SpriteFrame *self = nullptr; - cocos2d::Vec2 arg1; /** offsetInPixels */ + cocos2d::Vec2 *arg1; /** offsetInPixels */ olua_to_object(L, 1, &self, "cc.SpriteFrame"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setOffsetInPixels(const cocos2d::Vec2 &offsetInPixels) - self->setOffsetInPixels(arg1); + self->setOffsetInPixels(*arg1); olua_endinvoke(L); @@ -36119,13 +37127,13 @@ static int _cocos2d_SpriteFrame_setOriginalSize(lua_State *L) olua_startinvoke(L); cocos2d::SpriteFrame *self = nullptr; - cocos2d::Size arg1; /** sizeInPixels */ + cocos2d::Size *arg1; /** sizeInPixels */ olua_to_object(L, 1, &self, "cc.SpriteFrame"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setOriginalSize(const cocos2d::Size &sizeInPixels) - self->setOriginalSize(arg1); + self->setOriginalSize(*arg1); olua_endinvoke(L); @@ -36137,13 +37145,13 @@ static int _cocos2d_SpriteFrame_setOriginalSizeInPixels(lua_State *L) olua_startinvoke(L); cocos2d::SpriteFrame *self = nullptr; - cocos2d::Size arg1; /** sizeInPixels */ + cocos2d::Size *arg1; /** sizeInPixels */ olua_to_object(L, 1, &self, "cc.SpriteFrame"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setOriginalSizeInPixels(const cocos2d::Size &sizeInPixels) - self->setOriginalSizeInPixels(arg1); + self->setOriginalSizeInPixels(*arg1); olua_endinvoke(L); @@ -36155,13 +37163,13 @@ static int _cocos2d_SpriteFrame_setRect(lua_State *L) olua_startinvoke(L); cocos2d::SpriteFrame *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ olua_to_object(L, 1, &self, "cc.SpriteFrame"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setRect(const cocos2d::Rect &rect) - self->setRect(arg1); + self->setRect(*arg1); olua_endinvoke(L); @@ -36173,13 +37181,13 @@ static int _cocos2d_SpriteFrame_setRectInPixels(lua_State *L) olua_startinvoke(L); cocos2d::SpriteFrame *self = nullptr; - cocos2d::Rect arg1; /** rectInPixels */ + cocos2d::Rect *arg1; /** rectInPixels */ olua_to_object(L, 1, &self, "cc.SpriteFrame"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setRectInPixels(const cocos2d::Rect &rectInPixels) - self->setRectInPixels(arg1); + self->setRectInPixels(*arg1); olua_endinvoke(L); @@ -36222,8 +37230,7 @@ static int _cocos2d_SpriteFrame_setTexture(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_SpriteFrame(lua_State *L) +static int _cc_SpriteFrame(lua_State *L) { oluacls_class(L, "cc.SpriteFrame"); oluacls_func(L, "as", _cocos2d_SpriteFrame_as); @@ -36269,6 +37276,16 @@ OLUA_LIB int luaopen_cocos2d_SpriteFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_SpriteFrame(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::SpriteFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Sprite_as(lua_State *L) @@ -36338,13 +37355,13 @@ static int _cocos2d_Sprite_create$3(lua_State *L) olua_startinvoke(L); std::string arg1; /** filename */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ olua_check_string(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Rect"); // static cocos2d::Sprite *create(const std::string &filename, const cocos2d::Rect &rect) - cocos2d::Sprite *ret = cocos2d::Sprite::create(arg1, arg2); + cocos2d::Sprite *ret = cocos2d::Sprite::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.Sprite"); olua_endinvoke(L); @@ -36436,7 +37453,7 @@ static int _cocos2d_Sprite_createWithTexture$2(lua_State *L) olua_startinvoke(L); cocos2d::Texture2D *arg1 = nullptr; /** texture */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ bool arg3 = false; /** rotated */ olua_check_object(L, 1, &arg1, "cc.Texture2D"); @@ -36444,7 +37461,7 @@ static int _cocos2d_Sprite_createWithTexture$2(lua_State *L) olua_check_bool(L, 3, &arg3); // static cocos2d::Sprite *createWithTexture(cocos2d::Texture2D *texture, const cocos2d::Rect &rect, @optional bool rotated) - cocos2d::Sprite *ret = cocos2d::Sprite::createWithTexture(arg1, arg2, arg3); + cocos2d::Sprite *ret = cocos2d::Sprite::createWithTexture(arg1, *arg2, arg3); int num_ret = olua_push_object(L, ret, "cc.Sprite"); olua_endinvoke(L); @@ -36457,13 +37474,13 @@ static int _cocos2d_Sprite_createWithTexture$3(lua_State *L) olua_startinvoke(L); cocos2d::Texture2D *arg1 = nullptr; /** texture */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ olua_check_object(L, 1, &arg1, "cc.Texture2D"); olua_check_object(L, 2, &arg2, "cc.Rect"); // static cocos2d::Sprite *createWithTexture(cocos2d::Texture2D *texture, const cocos2d::Rect &rect) - cocos2d::Sprite *ret = cocos2d::Sprite::createWithTexture(arg1, arg2); + cocos2d::Sprite *ret = cocos2d::Sprite::createWithTexture(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.Sprite"); olua_endinvoke(L); @@ -36730,14 +37747,14 @@ static int _cocos2d_Sprite_initWithFile$2(lua_State *L) cocos2d::Sprite *self = nullptr; std::string arg1; /** filename */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ olua_to_object(L, 1, &self, "cc.Sprite"); olua_check_string(L, 2, &arg1); olua_check_object(L, 3, &arg2, "cc.Rect"); // bool initWithFile(const std::string &filename, const cocos2d::Rect &rect) - bool ret = self->initWithFile(arg1, arg2); + bool ret = self->initWithFile(arg1, *arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -36831,14 +37848,14 @@ static int _cocos2d_Sprite_initWithTexture$2(lua_State *L) cocos2d::Sprite *self = nullptr; cocos2d::Texture2D *arg1 = nullptr; /** texture */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ olua_to_object(L, 1, &self, "cc.Sprite"); olua_check_object(L, 2, &arg1, "cc.Texture2D"); olua_check_object(L, 3, &arg2, "cc.Rect"); // bool initWithTexture(cocos2d::Texture2D *texture, const cocos2d::Rect &rect) - bool ret = self->initWithTexture(arg1, arg2); + bool ret = self->initWithTexture(arg1, *arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -36852,7 +37869,7 @@ static int _cocos2d_Sprite_initWithTexture$3(lua_State *L) cocos2d::Sprite *self = nullptr; cocos2d::Texture2D *arg1 = nullptr; /** texture */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ bool arg3 = false; /** rotated */ olua_to_object(L, 1, &self, "cc.Sprite"); @@ -36861,7 +37878,7 @@ static int _cocos2d_Sprite_initWithTexture$3(lua_State *L) olua_check_bool(L, 4, &arg3); // bool initWithTexture(cocos2d::Texture2D *texture, const cocos2d::Rect &rect, bool rotated) - bool ret = self->initWithTexture(arg1, arg2, arg3); + bool ret = self->initWithTexture(arg1, *arg2, arg3); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -37058,13 +38075,13 @@ static int _cocos2d_Sprite_setBlendFunc(lua_State *L) olua_startinvoke(L); cocos2d::Sprite *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "cc.Sprite"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -37076,13 +38093,13 @@ static int _cocos2d_Sprite_setCenterRect(lua_State *L) olua_startinvoke(L); cocos2d::Sprite *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ olua_to_object(L, 1, &self, "cc.Sprite"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCenterRect(const cocos2d::Rect &rect) - self->setCenterRect(arg1); + self->setCenterRect(*arg1); olua_endinvoke(L); @@ -37094,13 +38111,13 @@ static int _cocos2d_Sprite_setCenterRectNormalized(lua_State *L) olua_startinvoke(L); cocos2d::Sprite *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ olua_to_object(L, 1, &self, "cc.Sprite"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCenterRectNormalized(const cocos2d::Rect &rect) - self->setCenterRectNormalized(arg1); + self->setCenterRectNormalized(*arg1); olua_endinvoke(L); @@ -37336,13 +38353,13 @@ static int _cocos2d_Sprite_setTextureRect$1(lua_State *L) olua_startinvoke(L); cocos2d::Sprite *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ olua_to_object(L, 1, &self, "cc.Sprite"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setTextureRect(const cocos2d::Rect &rect) - self->setTextureRect(arg1); + self->setTextureRect(*arg1); olua_endinvoke(L); @@ -37354,9 +38371,9 @@ static int _cocos2d_Sprite_setTextureRect$2(lua_State *L) olua_startinvoke(L); cocos2d::Sprite *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ bool arg2 = false; /** rotated */ - cocos2d::Size arg3; /** untrimmedSize */ + cocos2d::Size *arg3; /** untrimmedSize */ olua_to_object(L, 1, &self, "cc.Sprite"); olua_check_object(L, 2, &arg1, "cc.Rect"); @@ -37364,7 +38381,7 @@ static int _cocos2d_Sprite_setTextureRect$2(lua_State *L) olua_check_object(L, 4, &arg3, "cc.Size"); // void setTextureRect(const cocos2d::Rect &rect, bool rotated, const cocos2d::Size &untrimmedSize) - self->setTextureRect(arg1, arg2, arg3); + self->setTextureRect(*arg1, arg2, *arg3); olua_endinvoke(L); @@ -37415,13 +38432,13 @@ static int _cocos2d_Sprite_setVertexRect(lua_State *L) olua_startinvoke(L); cocos2d::Sprite *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ olua_to_object(L, 1, &self, "cc.Sprite"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setVertexRect(const cocos2d::Rect &rect) - self->setVertexRect(arg1); + self->setVertexRect(*arg1); olua_endinvoke(L); @@ -37448,8 +38465,7 @@ static int _cocos2d_Sprite_updateShaders(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Sprite(lua_State *L) +static int _cc_Sprite(lua_State *L) { oluacls_class(L, "cc.Sprite"); oluacls_func(L, "as", _cocos2d_Sprite_as); @@ -37518,6 +38534,16 @@ OLUA_LIB int luaopen_cocos2d_Sprite(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Sprite(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Sprite"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_SpriteBatchNode_addSpriteWithoutQuad(lua_State *L) @@ -38116,13 +39142,13 @@ static int _cocos2d_SpriteBatchNode_setBlendFunc(lua_State *L) olua_startinvoke(L); cocos2d::SpriteBatchNode *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "cc.SpriteBatchNode"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -38165,8 +39191,7 @@ static int _cocos2d_SpriteBatchNode_setTextureAtlas(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_SpriteBatchNode(lua_State *L) +static int _cc_SpriteBatchNode(lua_State *L) { oluacls_class(L, "cc.SpriteBatchNode"); oluacls_func(L, "addSpriteWithoutQuad", _cocos2d_SpriteBatchNode_addSpriteWithoutQuad); @@ -38201,6 +39226,16 @@ OLUA_LIB int luaopen_cocos2d_SpriteBatchNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_SpriteBatchNode(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::SpriteBatchNode"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_SpriteFrameCache_addSpriteFrame(lua_State *L) @@ -38532,8 +39567,7 @@ static int _cocos2d_SpriteFrameCache_removeUnusedSpriteFrames(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_SpriteFrameCache(lua_State *L) +static int _cc_SpriteFrameCache(lua_State *L) { oluacls_class(L, "cc.SpriteFrameCache"); oluacls_func(L, "addSpriteFrame", _cocos2d_SpriteFrameCache_addSpriteFrame); @@ -38555,6 +39589,16 @@ OLUA_LIB int luaopen_cocos2d_SpriteFrameCache(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_SpriteFrameCache(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::SpriteFrameCache"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_AnimationCache_addAnimation(lua_State *L) @@ -38708,8 +39752,7 @@ static int _cocos2d_AnimationCache_removeAnimation(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_AnimationCache(lua_State *L) +static int _cc_AnimationCache(lua_State *L) { oluacls_class(L, "cc.AnimationCache"); oluacls_func(L, "addAnimation", _cocos2d_AnimationCache_addAnimation); @@ -38725,6 +39768,16 @@ OLUA_LIB int luaopen_cocos2d_AnimationCache(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_AnimationCache(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::AnimationCache"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Scene_create(lua_State *L) @@ -38759,12 +39812,12 @@ static int _cocos2d_Scene_createWithSize(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_check_object(L, 1, &arg1, "cc.Size"); // static cocos2d::Scene *createWithSize(const cocos2d::Size &size) - cocos2d::Scene *ret = cocos2d::Scene::createWithSize(arg1); + cocos2d::Scene *ret = cocos2d::Scene::createWithSize(*arg1); int num_ret = olua_push_object(L, ret, "cc.Scene"); olua_endinvoke(L); @@ -38873,13 +39926,13 @@ static int _cocos2d_Scene_initWithSize(lua_State *L) olua_startinvoke(L); cocos2d::Scene *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_to_object(L, 1, &self, "cc.Scene"); olua_check_object(L, 2, &arg1, "cc.Size"); // bool initWithSize(const cocos2d::Size &size) - bool ret = self->initWithSize(arg1); + bool ret = self->initWithSize(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -38925,7 +39978,7 @@ static int _cocos2d_Scene_render$1(lua_State *L) cocos2d::Scene *self = nullptr; cocos2d::Renderer *arg1 = nullptr; /** renderer */ - cocos2d::Mat4 arg2; /** eyeTransform */ + cocos2d::Mat4 *arg2; /** eyeTransform */ cocos2d::Mat4 *arg3 = nullptr; /** eyeProjection */ olua_to_object(L, 1, &self, "cc.Scene"); @@ -38934,7 +39987,7 @@ static int _cocos2d_Scene_render$1(lua_State *L) olua_check_object(L, 4, &arg3, "cc.Mat4"); // void render(cocos2d::Renderer *renderer, const cocos2d::Mat4 &eyeTransform, @optional const cocos2d::Mat4 *eyeProjection) - self->render(arg1, arg2, arg3); + self->render(arg1, *arg2, arg3); olua_endinvoke(L); @@ -38947,14 +40000,14 @@ static int _cocos2d_Scene_render$2(lua_State *L) cocos2d::Scene *self = nullptr; cocos2d::Renderer *arg1 = nullptr; /** renderer */ - cocos2d::Mat4 arg2; /** eyeTransform */ + cocos2d::Mat4 *arg2; /** eyeTransform */ olua_to_object(L, 1, &self, "cc.Scene"); olua_check_object(L, 2, &arg1, "cc.Renderer"); olua_check_object(L, 3, &arg2, "cc.Mat4"); // void render(cocos2d::Renderer *renderer, const cocos2d::Mat4 &eyeTransform) - self->render(arg1, arg2); + self->render(arg1, *arg2); olua_endinvoke(L); @@ -39080,8 +40133,7 @@ static int _cocos2d_Scene_stepPhysicsAndNavigation(lua_State *L) } #endif -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Scene(lua_State *L) +static int _cc_Scene(lua_State *L) { oluacls_class(L, "cc.Scene"); oluacls_func(L, "create", _cocos2d_Scene_create); @@ -39127,6 +40179,16 @@ OLUA_LIB int luaopen_cocos2d_Scene(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Scene(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Scene"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Layer_create(lua_State *L) @@ -39385,8 +40447,7 @@ static int _cocos2d_Layer_onTouchesMoved(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Layer(lua_State *L) +static int _cc_Layer(lua_State *L) { oluacls_class(L, "cc.Layer"); oluacls_func(L, "create", _cocos2d_Layer_create); @@ -39405,6 +40466,16 @@ OLUA_LIB int luaopen_cocos2d_Layer(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Layer(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Layer"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_LayerColor_as(lua_State *L) @@ -39671,21 +40742,20 @@ static int _cocos2d_LayerColor_setBlendFunc(lua_State *L) olua_startinvoke(L); cocos2d::LayerColor *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "cc.LayerColor"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_LayerColor(lua_State *L) +static int _cc_LayerColor(lua_State *L) { oluacls_class(L, "cc.LayerColor"); oluacls_func(L, "as", _cocos2d_LayerColor_as); @@ -39701,6 +40771,16 @@ OLUA_LIB int luaopen_cocos2d_LayerColor(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_LayerColor(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::LayerColor"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_LayerGradient_create$1(lua_State *L) @@ -39741,14 +40821,14 @@ static int _cocos2d_LayerGradient_create$3(lua_State *L) cocos2d::Color4B arg1; /** start */ cocos2d::Color4B arg2; /** end_ */ - cocos2d::Vec2 arg3; /** v */ + cocos2d::Vec2 *arg3; /** v */ olua_check_cocos2d_Color4B(L, 1, &arg1); olua_check_cocos2d_Color4B(L, 2, &arg2); olua_check_object(L, 3, &arg3, "cc.Vec2"); // static cocos2d::LayerGradient *create(const cocos2d::Color4B &start, const cocos2d::Color4B &end_, const cocos2d::Vec2 &v) - cocos2d::LayerGradient *ret = cocos2d::LayerGradient::create(arg1, arg2, arg3); + cocos2d::LayerGradient *ret = cocos2d::LayerGradient::create(arg1, arg2, *arg3); int num_ret = olua_push_object(L, ret, "cc.LayerGradient"); olua_endinvoke(L); @@ -39897,7 +40977,7 @@ static int _cocos2d_LayerGradient_initWithColor$2(lua_State *L) cocos2d::LayerGradient *self = nullptr; cocos2d::Color4B arg1; /** start */ cocos2d::Color4B arg2; /** end_ */ - cocos2d::Vec2 arg3; /** v */ + cocos2d::Vec2 *arg3; /** v */ olua_to_object(L, 1, &self, "cc.LayerGradient"); olua_check_cocos2d_Color4B(L, 2, &arg1); @@ -39905,7 +40985,7 @@ static int _cocos2d_LayerGradient_initWithColor$2(lua_State *L) olua_check_object(L, 4, &arg3, "cc.Vec2"); // bool initWithColor(const cocos2d::Color4B &start, const cocos2d::Color4B &end_, const cocos2d::Vec2 &v) - bool ret = self->initWithColor(arg1, arg2, arg3); + bool ret = self->initWithColor(arg1, arg2, *arg3); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -40062,21 +41142,20 @@ static int _cocos2d_LayerGradient_setVector(lua_State *L) olua_startinvoke(L); cocos2d::LayerGradient *self = nullptr; - cocos2d::Vec2 arg1; /** alongVector */ + cocos2d::Vec2 *arg1; /** alongVector */ olua_to_object(L, 1, &self, "cc.LayerGradient"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setVector(const cocos2d::Vec2 &alongVector) - self->setVector(arg1); + self->setVector(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_LayerGradient(lua_State *L) +static int _cc_LayerGradient(lua_State *L) { oluacls_class(L, "cc.LayerGradient"); oluacls_func(L, "create", _cocos2d_LayerGradient_create); @@ -40103,6 +41182,16 @@ OLUA_LIB int luaopen_cocos2d_LayerGradient(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_LayerGradient(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::LayerGradient"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_LayerRadialGradient_create$1(lua_State *L) @@ -40112,7 +41201,7 @@ static int _cocos2d_LayerRadialGradient_create$1(lua_State *L) cocos2d::Color4B arg1; /** startColor */ cocos2d::Color4B arg2; /** endColor */ float arg3 = 0; /** radius */ - cocos2d::Vec2 arg4; /** center */ + cocos2d::Vec2 *arg4; /** center */ float arg5 = 0; /** expand */ olua_check_cocos2d_Color4B(L, 1, &arg1); @@ -40122,7 +41211,7 @@ static int _cocos2d_LayerRadialGradient_create$1(lua_State *L) olua_check_number(L, 5, &arg5); // static cocos2d::LayerRadialGradient *create(const cocos2d::Color4B &startColor, const cocos2d::Color4B &endColor, float radius, const cocos2d::Vec2 ¢er, float expand) - cocos2d::LayerRadialGradient *ret = cocos2d::LayerRadialGradient::create(arg1, arg2, arg3, arg4, arg5); + cocos2d::LayerRadialGradient *ret = cocos2d::LayerRadialGradient::create(arg1, arg2, arg3, *arg4, arg5); int num_ret = olua_push_object(L, ret, "cc.LayerRadialGradient"); olua_endinvoke(L); @@ -40342,7 +41431,7 @@ static int _cocos2d_LayerRadialGradient_initWithColor(lua_State *L) cocos2d::Color4B arg1; /** startColor */ cocos2d::Color4B arg2; /** endColor */ float arg3 = 0; /** radius */ - cocos2d::Vec2 arg4; /** center */ + cocos2d::Vec2 *arg4; /** center */ float arg5 = 0; /** expand */ olua_to_object(L, 1, &self, "cc.LayerRadialGradient"); @@ -40353,7 +41442,7 @@ static int _cocos2d_LayerRadialGradient_initWithColor(lua_State *L) olua_check_number(L, 6, &arg5); // bool initWithColor(const cocos2d::Color4B &startColor, const cocos2d::Color4B &endColor, float radius, const cocos2d::Vec2 ¢er, float expand) - bool ret = self->initWithColor(arg1, arg2, arg3, arg4, arg5); + bool ret = self->initWithColor(arg1, arg2, arg3, *arg4, arg5); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -40380,13 +41469,13 @@ static int _cocos2d_LayerRadialGradient_setBlendFunc(lua_State *L) olua_startinvoke(L); cocos2d::LayerRadialGradient *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "cc.LayerRadialGradient"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -40398,13 +41487,13 @@ static int _cocos2d_LayerRadialGradient_setCenter(lua_State *L) olua_startinvoke(L); cocos2d::LayerRadialGradient *self = nullptr; - cocos2d::Vec2 arg1; /** center */ + cocos2d::Vec2 *arg1; /** center */ olua_to_object(L, 1, &self, "cc.LayerRadialGradient"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setCenter(const cocos2d::Vec2 ¢er) - self->setCenter(arg1); + self->setCenter(*arg1); olua_endinvoke(L); @@ -40597,8 +41686,7 @@ static int _cocos2d_LayerRadialGradient_setStartOpacity(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_LayerRadialGradient(lua_State *L) +static int _cc_LayerRadialGradient(lua_State *L) { oluacls_class(L, "cc.LayerRadialGradient"); oluacls_func(L, "create", _cocos2d_LayerRadialGradient_create); @@ -40635,6 +41723,16 @@ OLUA_LIB int luaopen_cocos2d_LayerRadialGradient(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_LayerRadialGradient(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::LayerRadialGradient"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_LayerMultiplex_addLayer(lua_State *L) @@ -41512,8 +42610,7 @@ static int _cocos2d_LayerMultiplex_switchToAndReleaseMe(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_LayerMultiplex(lua_State *L) +static int _cc_LayerMultiplex(lua_State *L) { oluacls_class(L, "cc.LayerMultiplex"); oluacls_func(L, "addLayer", _cocos2d_LayerMultiplex_addLayer); @@ -41527,10 +42624,19 @@ OLUA_LIB int luaopen_cocos2d_LayerMultiplex(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionScene_Orientation(lua_State *L) +OLUA_LIB int luaopen_cc_LayerMultiplex(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::LayerMultiplex"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_TransitionScene_Orientation(lua_State *L) { oluacls_class(L, "cc.TransitionScene.Orientation"); oluacls_func(L, "__index", olua_indexerror); @@ -41542,6 +42648,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionScene_Orientation(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionScene_Orientation(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionScene::Orientation"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionScene_create(lua_State *L) @@ -41646,8 +42762,7 @@ static int _cocos2d_TransitionScene_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionScene(lua_State *L) +static int _cc_TransitionScene(lua_State *L) { oluacls_class(L, "cc.TransitionScene"); oluacls_func(L, "create", _cocos2d_TransitionScene_create); @@ -41661,6 +42776,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionScene(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionScene(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionScene"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionEaseScene___gc(lua_State *L) @@ -41709,8 +42834,7 @@ static int _cocos2d_TransitionEaseScene_easeActionWithAction(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionEaseScene(lua_State *L) +static int _cc_TransitionEaseScene(lua_State *L) { oluacls_class(L, "cc.TransitionEaseScene"); oluacls_func(L, "__gc", _cocos2d_TransitionEaseScene___gc); @@ -41719,6 +42843,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionEaseScene(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionEaseScene(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionEaseScene"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionSceneOriented_create(lua_State *L) @@ -41759,8 +42893,7 @@ static int _cocos2d_TransitionSceneOriented_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionSceneOriented(lua_State *L) +static int _cc_TransitionSceneOriented(lua_State *L) { oluacls_class(L, "cc.TransitionSceneOriented"); oluacls_func(L, "create", _cocos2d_TransitionSceneOriented_create); @@ -41768,6 +42901,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionSceneOriented(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionSceneOriented(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionSceneOriented"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionRotoZoom_create(lua_State *L) @@ -41806,8 +42949,7 @@ static int _cocos2d_TransitionRotoZoom_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionRotoZoom(lua_State *L) +static int _cc_TransitionRotoZoom(lua_State *L) { oluacls_class(L, "cc.TransitionRotoZoom"); oluacls_func(L, "create", _cocos2d_TransitionRotoZoom_create); @@ -41815,6 +42957,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionRotoZoom(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionRotoZoom(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionRotoZoom"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionJumpZoom_create(lua_State *L) @@ -41853,8 +43005,7 @@ static int _cocos2d_TransitionJumpZoom_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionJumpZoom(lua_State *L) +static int _cc_TransitionJumpZoom(lua_State *L) { oluacls_class(L, "cc.TransitionJumpZoom"); oluacls_func(L, "create", _cocos2d_TransitionJumpZoom_create); @@ -41862,6 +43013,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionJumpZoom(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionJumpZoom(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionJumpZoom"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionMoveInL_action(lua_State *L) @@ -41967,8 +43128,7 @@ static int _cocos2d_TransitionMoveInL_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionMoveInL(lua_State *L) +static int _cc_TransitionMoveInL(lua_State *L) { oluacls_class(L, "cc.TransitionMoveInL"); oluacls_func(L, "action", _cocos2d_TransitionMoveInL_action); @@ -41979,6 +43139,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionMoveInL(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionMoveInL(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionMoveInL"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionMoveInR_create(lua_State *L) @@ -42017,8 +43187,7 @@ static int _cocos2d_TransitionMoveInR_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionMoveInR(lua_State *L) +static int _cc_TransitionMoveInR(lua_State *L) { oluacls_class(L, "cc.TransitionMoveInR"); oluacls_func(L, "create", _cocos2d_TransitionMoveInR_create); @@ -42026,6 +43195,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionMoveInR(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionMoveInR(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionMoveInR"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionMoveInT_create(lua_State *L) @@ -42064,8 +43243,7 @@ static int _cocos2d_TransitionMoveInT_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionMoveInT(lua_State *L) +static int _cc_TransitionMoveInT(lua_State *L) { oluacls_class(L, "cc.TransitionMoveInT"); oluacls_func(L, "create", _cocos2d_TransitionMoveInT_create); @@ -42073,6 +43251,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionMoveInT(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionMoveInT(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionMoveInT"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionMoveInB_create(lua_State *L) @@ -42111,8 +43299,7 @@ static int _cocos2d_TransitionMoveInB_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionMoveInB(lua_State *L) +static int _cc_TransitionMoveInB(lua_State *L) { oluacls_class(L, "cc.TransitionMoveInB"); oluacls_func(L, "create", _cocos2d_TransitionMoveInB_create); @@ -42120,6 +43307,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionMoveInB(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionMoveInB(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionMoveInB"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionSlideInL_action(lua_State *L) @@ -42225,8 +43422,7 @@ static int _cocos2d_TransitionSlideInL_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionSlideInL(lua_State *L) +static int _cc_TransitionSlideInL(lua_State *L) { oluacls_class(L, "cc.TransitionSlideInL"); oluacls_func(L, "action", _cocos2d_TransitionSlideInL_action); @@ -42237,6 +43433,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionSlideInL(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionSlideInL(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionSlideInL"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionSlideInR_create(lua_State *L) @@ -42275,8 +43481,7 @@ static int _cocos2d_TransitionSlideInR_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionSlideInR(lua_State *L) +static int _cc_TransitionSlideInR(lua_State *L) { oluacls_class(L, "cc.TransitionSlideInR"); oluacls_func(L, "create", _cocos2d_TransitionSlideInR_create); @@ -42284,6 +43489,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionSlideInR(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionSlideInR(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionSlideInR"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionSlideInB_create(lua_State *L) @@ -42322,8 +43537,7 @@ static int _cocos2d_TransitionSlideInB_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionSlideInB(lua_State *L) +static int _cc_TransitionSlideInB(lua_State *L) { oluacls_class(L, "cc.TransitionSlideInB"); oluacls_func(L, "create", _cocos2d_TransitionSlideInB_create); @@ -42331,6 +43545,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionSlideInB(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionSlideInB(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionSlideInB"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionSlideInT_create(lua_State *L) @@ -42369,8 +43593,7 @@ static int _cocos2d_TransitionSlideInT_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionSlideInT(lua_State *L) +static int _cc_TransitionSlideInT(lua_State *L) { oluacls_class(L, "cc.TransitionSlideInT"); oluacls_func(L, "create", _cocos2d_TransitionSlideInT_create); @@ -42378,6 +43601,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionSlideInT(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionSlideInT(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionSlideInT"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionShrinkGrow_as(lua_State *L) @@ -42466,8 +43699,7 @@ static int _cocos2d_TransitionShrinkGrow_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionShrinkGrow(lua_State *L) +static int _cc_TransitionShrinkGrow(lua_State *L) { oluacls_class(L, "cc.TransitionShrinkGrow"); oluacls_func(L, "as", _cocos2d_TransitionShrinkGrow_as); @@ -42477,6 +43709,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionShrinkGrow(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionShrinkGrow(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionShrinkGrow"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionFlipX_create$1(lua_State *L) @@ -42562,8 +43804,7 @@ static int _cocos2d_TransitionFlipX_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionFlipX(lua_State *L) +static int _cc_TransitionFlipX(lua_State *L) { oluacls_class(L, "cc.TransitionFlipX"); oluacls_func(L, "create", _cocos2d_TransitionFlipX_create); @@ -42571,6 +43812,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionFlipX(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionFlipX(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionFlipX"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionFlipY_create$1(lua_State *L) @@ -42656,8 +43907,7 @@ static int _cocos2d_TransitionFlipY_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionFlipY(lua_State *L) +static int _cc_TransitionFlipY(lua_State *L) { oluacls_class(L, "cc.TransitionFlipY"); oluacls_func(L, "create", _cocos2d_TransitionFlipY_create); @@ -42665,6 +43915,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionFlipY(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionFlipY(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionFlipY"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionFlipAngular_create$1(lua_State *L) @@ -42750,8 +44010,7 @@ static int _cocos2d_TransitionFlipAngular_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionFlipAngular(lua_State *L) +static int _cc_TransitionFlipAngular(lua_State *L) { oluacls_class(L, "cc.TransitionFlipAngular"); oluacls_func(L, "create", _cocos2d_TransitionFlipAngular_create); @@ -42759,6 +44018,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionFlipAngular(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionFlipAngular(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionFlipAngular"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionZoomFlipX_create$1(lua_State *L) @@ -42844,8 +44113,7 @@ static int _cocos2d_TransitionZoomFlipX_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionZoomFlipX(lua_State *L) +static int _cc_TransitionZoomFlipX(lua_State *L) { oluacls_class(L, "cc.TransitionZoomFlipX"); oluacls_func(L, "create", _cocos2d_TransitionZoomFlipX_create); @@ -42853,6 +44121,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionZoomFlipX(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionZoomFlipX(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionZoomFlipX"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionZoomFlipY_create$1(lua_State *L) @@ -42938,8 +44216,7 @@ static int _cocos2d_TransitionZoomFlipY_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionZoomFlipY(lua_State *L) +static int _cc_TransitionZoomFlipY(lua_State *L) { oluacls_class(L, "cc.TransitionZoomFlipY"); oluacls_func(L, "create", _cocos2d_TransitionZoomFlipY_create); @@ -42947,6 +44224,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionZoomFlipY(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionZoomFlipY(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionZoomFlipY"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionZoomFlipAngular_create$1(lua_State *L) @@ -43032,8 +44319,7 @@ static int _cocos2d_TransitionZoomFlipAngular_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionZoomFlipAngular(lua_State *L) +static int _cc_TransitionZoomFlipAngular(lua_State *L) { oluacls_class(L, "cc.TransitionZoomFlipAngular"); oluacls_func(L, "create", _cocos2d_TransitionZoomFlipAngular_create); @@ -43041,6 +44327,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionZoomFlipAngular(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionZoomFlipAngular(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionZoomFlipAngular"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionFade_create$1(lua_State *L) @@ -43126,8 +44422,7 @@ static int _cocos2d_TransitionFade_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionFade(lua_State *L) +static int _cc_TransitionFade(lua_State *L) { oluacls_class(L, "cc.TransitionFade"); oluacls_func(L, "create", _cocos2d_TransitionFade_create); @@ -43135,6 +44430,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionFade(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionFade(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionFade"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionCrossFade_create(lua_State *L) @@ -43173,8 +44478,7 @@ static int _cocos2d_TransitionCrossFade_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionCrossFade(lua_State *L) +static int _cc_TransitionCrossFade(lua_State *L) { oluacls_class(L, "cc.TransitionCrossFade"); oluacls_func(L, "create", _cocos2d_TransitionCrossFade_create); @@ -43182,6 +44486,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionCrossFade(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionCrossFade(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionCrossFade"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionTurnOffTiles_as(lua_State *L) @@ -43270,8 +44584,7 @@ static int _cocos2d_TransitionTurnOffTiles_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionTurnOffTiles(lua_State *L) +static int _cc_TransitionTurnOffTiles(lua_State *L) { oluacls_class(L, "cc.TransitionTurnOffTiles"); oluacls_func(L, "as", _cocos2d_TransitionTurnOffTiles_as); @@ -43281,6 +44594,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionTurnOffTiles(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionTurnOffTiles(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionTurnOffTiles"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionSplitCols_action(lua_State *L) @@ -43386,8 +44709,7 @@ static int _cocos2d_TransitionSplitCols_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionSplitCols(lua_State *L) +static int _cc_TransitionSplitCols(lua_State *L) { oluacls_class(L, "cc.TransitionSplitCols"); oluacls_func(L, "action", _cocos2d_TransitionSplitCols_action); @@ -43398,6 +44720,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionSplitCols(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionSplitCols(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionSplitCols"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionSplitRows_create(lua_State *L) @@ -43436,8 +44768,7 @@ static int _cocos2d_TransitionSplitRows_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionSplitRows(lua_State *L) +static int _cc_TransitionSplitRows(lua_State *L) { oluacls_class(L, "cc.TransitionSplitRows"); oluacls_func(L, "create", _cocos2d_TransitionSplitRows_create); @@ -43445,6 +44776,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionSplitRows(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionSplitRows(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionSplitRows"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionFadeTR_actionWithSize(lua_State *L) @@ -43452,13 +44793,13 @@ static int _cocos2d_TransitionFadeTR_actionWithSize(lua_State *L) olua_startinvoke(L); cocos2d::TransitionFadeTR *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_to_object(L, 1, &self, "cc.TransitionFadeTR"); olua_check_object(L, 2, &arg1, "cc.Size"); // cocos2d::ActionInterval *actionWithSize(const cocos2d::Size &size) - cocos2d::ActionInterval *ret = self->actionWithSize(arg1); + cocos2d::ActionInterval *ret = self->actionWithSize(*arg1); int num_ret = olua_push_object(L, ret, "cc.ActionInterval"); olua_endinvoke(L); @@ -43552,8 +44893,7 @@ static int _cocos2d_TransitionFadeTR_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionFadeTR(lua_State *L) +static int _cc_TransitionFadeTR(lua_State *L) { oluacls_class(L, "cc.TransitionFadeTR"); oluacls_func(L, "actionWithSize", _cocos2d_TransitionFadeTR_actionWithSize); @@ -43564,6 +44904,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionFadeTR(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionFadeTR(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionFadeTR"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionFadeBL_create(lua_State *L) @@ -43602,8 +44952,7 @@ static int _cocos2d_TransitionFadeBL_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionFadeBL(lua_State *L) +static int _cc_TransitionFadeBL(lua_State *L) { oluacls_class(L, "cc.TransitionFadeBL"); oluacls_func(L, "create", _cocos2d_TransitionFadeBL_create); @@ -43611,6 +44960,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionFadeBL(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionFadeBL(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionFadeBL"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionFadeUp_create(lua_State *L) @@ -43649,8 +45008,7 @@ static int _cocos2d_TransitionFadeUp_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionFadeUp(lua_State *L) +static int _cc_TransitionFadeUp(lua_State *L) { oluacls_class(L, "cc.TransitionFadeUp"); oluacls_func(L, "create", _cocos2d_TransitionFadeUp_create); @@ -43658,6 +45016,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionFadeUp(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionFadeUp(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionFadeUp"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionFadeDown_create(lua_State *L) @@ -43696,8 +45064,7 @@ static int _cocos2d_TransitionFadeDown_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionFadeDown(lua_State *L) +static int _cc_TransitionFadeDown(lua_State *L) { oluacls_class(L, "cc.TransitionFadeDown"); oluacls_func(L, "create", _cocos2d_TransitionFadeDown_create); @@ -43705,6 +45072,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionFadeDown(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionFadeDown(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionFadeDown"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionPageTurn_actionWithSize(lua_State *L) @@ -43712,13 +45089,13 @@ static int _cocos2d_TransitionPageTurn_actionWithSize(lua_State *L) olua_startinvoke(L); cocos2d::TransitionPageTurn *self = nullptr; - cocos2d::Size arg1; /** vector */ + cocos2d::Size *arg1; /** vector */ olua_to_object(L, 1, &self, "cc.TransitionPageTurn"); olua_check_object(L, 2, &arg1, "cc.Size"); // cocos2d::ActionInterval *actionWithSize(const cocos2d::Size &vector) - cocos2d::ActionInterval *ret = self->actionWithSize(arg1); + cocos2d::ActionInterval *ret = self->actionWithSize(*arg1); int num_ret = olua_push_object(L, ret, "cc.ActionInterval"); olua_endinvoke(L); @@ -43764,8 +45141,7 @@ static int _cocos2d_TransitionPageTurn_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionPageTurn(lua_State *L) +static int _cc_TransitionPageTurn(lua_State *L) { oluacls_class(L, "cc.TransitionPageTurn"); oluacls_func(L, "actionWithSize", _cocos2d_TransitionPageTurn_actionWithSize); @@ -43774,6 +45150,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionPageTurn(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionPageTurn(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionPageTurn"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionProgress_create(lua_State *L) @@ -43812,8 +45198,7 @@ static int _cocos2d_TransitionProgress_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionProgress(lua_State *L) +static int _cc_TransitionProgress(lua_State *L) { oluacls_class(L, "cc.TransitionProgress"); oluacls_func(L, "create", _cocos2d_TransitionProgress_create); @@ -43821,6 +45206,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionProgress(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionProgress(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionProgress"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionProgressRadialCCW_create(lua_State *L) @@ -43859,8 +45254,7 @@ static int _cocos2d_TransitionProgressRadialCCW_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionProgressRadialCCW(lua_State *L) +static int _cc_TransitionProgressRadialCCW(lua_State *L) { oluacls_class(L, "cc.TransitionProgressRadialCCW"); oluacls_func(L, "create", _cocos2d_TransitionProgressRadialCCW_create); @@ -43868,6 +45262,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionProgressRadialCCW(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionProgressRadialCCW(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionProgressRadialCCW"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionProgressRadialCW_create(lua_State *L) @@ -43906,8 +45310,7 @@ static int _cocos2d_TransitionProgressRadialCW_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionProgressRadialCW(lua_State *L) +static int _cc_TransitionProgressRadialCW(lua_State *L) { oluacls_class(L, "cc.TransitionProgressRadialCW"); oluacls_func(L, "create", _cocos2d_TransitionProgressRadialCW_create); @@ -43915,6 +45318,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionProgressRadialCW(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionProgressRadialCW(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionProgressRadialCW"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionProgressHorizontal_create(lua_State *L) @@ -43953,8 +45366,7 @@ static int _cocos2d_TransitionProgressHorizontal_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionProgressHorizontal(lua_State *L) +static int _cc_TransitionProgressHorizontal(lua_State *L) { oluacls_class(L, "cc.TransitionProgressHorizontal"); oluacls_func(L, "create", _cocos2d_TransitionProgressHorizontal_create); @@ -43962,6 +45374,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionProgressHorizontal(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionProgressHorizontal(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionProgressHorizontal"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionProgressVertical_create(lua_State *L) @@ -44000,8 +45422,7 @@ static int _cocos2d_TransitionProgressVertical_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionProgressVertical(lua_State *L) +static int _cc_TransitionProgressVertical(lua_State *L) { oluacls_class(L, "cc.TransitionProgressVertical"); oluacls_func(L, "create", _cocos2d_TransitionProgressVertical_create); @@ -44009,6 +45430,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionProgressVertical(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionProgressVertical(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionProgressVertical"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionProgressInOut_create(lua_State *L) @@ -44047,8 +45478,7 @@ static int _cocos2d_TransitionProgressInOut_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionProgressInOut(lua_State *L) +static int _cc_TransitionProgressInOut(lua_State *L) { oluacls_class(L, "cc.TransitionProgressInOut"); oluacls_func(L, "create", _cocos2d_TransitionProgressInOut_create); @@ -44056,6 +45486,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionProgressInOut(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionProgressInOut(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionProgressInOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TransitionProgressOutIn_create(lua_State *L) @@ -44094,8 +45534,7 @@ static int _cocos2d_TransitionProgressOutIn_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TransitionProgressOutIn(lua_State *L) +static int _cc_TransitionProgressOutIn(lua_State *L) { oluacls_class(L, "cc.TransitionProgressOutIn"); oluacls_func(L, "create", _cocos2d_TransitionProgressOutIn_create); @@ -44103,6 +45542,16 @@ OLUA_LIB int luaopen_cocos2d_TransitionProgressOutIn(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TransitionProgressOutIn(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TransitionProgressOutIn"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_IMEDelegate___gc(lua_State *L) @@ -44163,8 +45612,7 @@ static int _cocos2d_IMEDelegate_detachWithIME(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_IMEDelegate(lua_State *L) +static int _cc_IMEDelegate(lua_State *L) { oluacls_class(L, "cc.IMEDelegate"); oluacls_func(L, "__gc", _cocos2d_IMEDelegate___gc); @@ -44174,6 +45622,16 @@ OLUA_LIB int luaopen_cocos2d_IMEDelegate(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_IMEDelegate(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::IMEDelegate"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TextFieldDelegate___gc(lua_State *L) @@ -44291,7 +45749,7 @@ static int _cocos2d_TextFieldDelegate_onVisit(lua_State *L) cocos2d::TextFieldDelegate *self = nullptr; cocos2d::TextFieldTTF *arg1 = nullptr; /** sender */ cocos2d::Renderer *arg2 = nullptr; /** renderer */ - cocos2d::Mat4 arg3; /** transform */ + cocos2d::Mat4 *arg3; /** transform */ uint32_t arg4 = 0; /** flags */ olua_to_object(L, 1, &self, "cc.TextFieldDelegate"); @@ -44301,7 +45759,7 @@ static int _cocos2d_TextFieldDelegate_onVisit(lua_State *L) olua_check_integer(L, 5, &arg4); // bool onVisit(cocos2d::TextFieldTTF *sender, cocos2d::Renderer *renderer, const cocos2d::Mat4 &transform, uint32_t flags) - bool ret = self->onVisit(arg1, arg2, arg3, arg4); + bool ret = self->onVisit(arg1, arg2, *arg3, arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -44309,8 +45767,7 @@ static int _cocos2d_TextFieldDelegate_onVisit(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TextFieldDelegate(lua_State *L) +static int _cc_TextFieldDelegate(lua_State *L) { oluacls_class(L, "cc.TextFieldDelegate"); oluacls_func(L, "__gc", _cocos2d_TextFieldDelegate___gc); @@ -44323,6 +45780,16 @@ OLUA_LIB int luaopen_cocos2d_TextFieldDelegate(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TextFieldDelegate(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TextFieldDelegate"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TextFieldTTF_appendString(lua_State *L) @@ -44504,7 +45971,7 @@ static int _cocos2d_TextFieldTTF_initWithPlaceHolder$1(lua_State *L) cocos2d::TextFieldTTF *self = nullptr; std::string arg1; /** placeholder */ - cocos2d::Size arg2; /** dimensions */ + cocos2d::Size *arg2; /** dimensions */ cocos2d::TextHAlignment arg3 = (cocos2d::TextHAlignment)0; /** alignment */ std::string arg4; /** fontName */ float arg5 = 0; /** fontSize */ @@ -44517,7 +45984,7 @@ static int _cocos2d_TextFieldTTF_initWithPlaceHolder$1(lua_State *L) olua_check_number(L, 6, &arg5); // bool initWithPlaceHolder(const std::string &placeholder, const cocos2d::Size &dimensions, cocos2d::TextHAlignment alignment, const std::string &fontName, float fontSize) - bool ret = self->initWithPlaceHolder(arg1, arg2, arg3, arg4, arg5); + bool ret = self->initWithPlaceHolder(arg1, *arg2, arg3, arg4, arg5); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -44700,7 +46167,7 @@ static int _cocos2d_TextFieldTTF_setCursorFromPoint(lua_State *L) olua_startinvoke(L); cocos2d::TextFieldTTF *self = nullptr; - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ cocos2d::Camera *arg2 = nullptr; /** camera */ olua_to_object(L, 1, &self, "cc.TextFieldTTF"); @@ -44708,7 +46175,7 @@ static int _cocos2d_TextFieldTTF_setCursorFromPoint(lua_State *L) olua_check_object(L, 3, &arg2, "cc.Camera"); // void setCursorFromPoint(const cocos2d::Vec2 &point, const cocos2d::Camera *camera) - self->setCursorFromPoint(arg1, arg2); + self->setCursorFromPoint(*arg1, arg2); olua_endinvoke(L); @@ -44810,7 +46277,7 @@ static int _cocos2d_TextFieldTTF_textFieldWithPlaceHolder$1(lua_State *L) olua_startinvoke(L); std::string arg1; /** placeholder */ - cocos2d::Size arg2; /** dimensions */ + cocos2d::Size *arg2; /** dimensions */ cocos2d::TextHAlignment arg3 = (cocos2d::TextHAlignment)0; /** alignment */ std::string arg4; /** fontName */ float arg5 = 0; /** fontSize */ @@ -44822,7 +46289,7 @@ static int _cocos2d_TextFieldTTF_textFieldWithPlaceHolder$1(lua_State *L) olua_check_number(L, 5, &arg5); // static cocos2d::TextFieldTTF *textFieldWithPlaceHolder(const std::string &placeholder, const cocos2d::Size &dimensions, cocos2d::TextHAlignment alignment, const std::string &fontName, float fontSize) - cocos2d::TextFieldTTF *ret = cocos2d::TextFieldTTF::textFieldWithPlaceHolder(arg1, arg2, arg3, arg4, arg5); + cocos2d::TextFieldTTF *ret = cocos2d::TextFieldTTF::textFieldWithPlaceHolder(arg1, *arg2, arg3, arg4, arg5); int num_ret = olua_push_object(L, ret, "cc.TextFieldTTF"); olua_endinvoke(L); @@ -44874,8 +46341,7 @@ static int _cocos2d_TextFieldTTF_textFieldWithPlaceHolder(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TextFieldTTF(lua_State *L) +static int _cc_TextFieldTTF(lua_State *L) { oluacls_class(L, "cc.TextFieldTTF"); oluacls_func(L, "appendString", _cocos2d_TextFieldTTF_appendString); @@ -44909,10 +46375,19 @@ OLUA_LIB int luaopen_cocos2d_TextFieldTTF(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_LightType(lua_State *L) +OLUA_LIB int luaopen_cc_TextFieldTTF(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TextFieldTTF"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_LightType(lua_State *L) { oluacls_class(L, "cc.LightType"); oluacls_func(L, "__index", olua_indexerror); @@ -44924,10 +46399,19 @@ OLUA_LIB int luaopen_cocos2d_LightType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_LightFlag(lua_State *L) +OLUA_LIB int luaopen_cc_LightType(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::LightType"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_LightFlag(lua_State *L) { oluacls_class(L, "cc.LightFlag"); oluacls_func(L, "__index", olua_indexerror); @@ -44951,6 +46435,16 @@ OLUA_LIB int luaopen_cocos2d_LightFlag(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_LightFlag(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::LightFlag"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_BaseLight_getIntensity(lua_State *L) @@ -45075,8 +46569,7 @@ static int _cocos2d_BaseLight_setLightFlag(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_BaseLight(lua_State *L) +static int _cc_BaseLight(lua_State *L) { oluacls_class(L, "cc.BaseLight"); oluacls_func(L, "getIntensity", _cocos2d_BaseLight_getIntensity); @@ -45093,20 +46586,30 @@ OLUA_LIB int luaopen_cocos2d_BaseLight(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_BaseLight(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::BaseLight"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_DirectionLight_create(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** direction */ + cocos2d::Vec3 *arg1; /** direction */ cocos2d::Color3B arg2; /** color */ olua_check_object(L, 1, &arg1, "cc.Vec3"); olua_check_cocos2d_Color3B(L, 2, &arg2); // static cocos2d::DirectionLight *create(const cocos2d::Vec3 &direction, const cocos2d::Color3B &color) - cocos2d::DirectionLight *ret = cocos2d::DirectionLight::create(arg1, arg2); + cocos2d::DirectionLight *ret = cocos2d::DirectionLight::create(*arg1, arg2); int num_ret = olua_push_object(L, ret, "cc.DirectionLight"); olua_endinvoke(L); @@ -45167,21 +46670,20 @@ static int _cocos2d_DirectionLight_setDirection(lua_State *L) olua_startinvoke(L); cocos2d::DirectionLight *self = nullptr; - cocos2d::Vec3 arg1; /** dir */ + cocos2d::Vec3 *arg1; /** dir */ olua_to_object(L, 1, &self, "cc.DirectionLight"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void setDirection(const cocos2d::Vec3 &dir) - self->setDirection(arg1); + self->setDirection(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_DirectionLight(lua_State *L) +static int _cc_DirectionLight(lua_State *L) { oluacls_class(L, "cc.DirectionLight"); oluacls_func(L, "create", _cocos2d_DirectionLight_create); @@ -45194,13 +46696,23 @@ OLUA_LIB int luaopen_cocos2d_DirectionLight(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_DirectionLight(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::DirectionLight"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_PointLight_create(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** position */ + cocos2d::Vec3 *arg1; /** position */ cocos2d::Color3B arg2; /** color */ float arg3 = 0; /** range */ @@ -45209,7 +46721,7 @@ static int _cocos2d_PointLight_create(lua_State *L) olua_check_number(L, 3, &arg3); // static cocos2d::PointLight *create(const cocos2d::Vec3 &position, const cocos2d::Color3B &color, float range) - cocos2d::PointLight *ret = cocos2d::PointLight::create(arg1, arg2, arg3); + cocos2d::PointLight *ret = cocos2d::PointLight::create(*arg1, arg2, arg3); int num_ret = olua_push_object(L, ret, "cc.PointLight"); olua_endinvoke(L); @@ -45266,8 +46778,7 @@ static int _cocos2d_PointLight_setRange(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PointLight(lua_State *L) +static int _cc_PointLight(lua_State *L) { oluacls_class(L, "cc.PointLight"); oluacls_func(L, "create", _cocos2d_PointLight_create); @@ -45278,14 +46789,24 @@ OLUA_LIB int luaopen_cocos2d_PointLight(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PointLight(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PointLight"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_SpotLight_create(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** direction */ - cocos2d::Vec3 arg2; /** position */ + cocos2d::Vec3 *arg1; /** direction */ + cocos2d::Vec3 *arg2; /** position */ cocos2d::Color3B arg3; /** color */ float arg4 = 0; /** innerAngle */ float arg5 = 0; /** outerAngle */ @@ -45299,7 +46820,7 @@ static int _cocos2d_SpotLight_create(lua_State *L) olua_check_number(L, 6, &arg6); // static cocos2d::SpotLight *create(const cocos2d::Vec3 &direction, const cocos2d::Vec3 &position, const cocos2d::Color3B &color, float innerAngle, float outerAngle, float range) - cocos2d::SpotLight *ret = cocos2d::SpotLight::create(arg1, arg2, arg3, arg4, arg5, arg6); + cocos2d::SpotLight *ret = cocos2d::SpotLight::create(*arg1, *arg2, arg3, arg4, arg5, arg6); int num_ret = olua_push_object(L, ret, "cc.SpotLight"); olua_endinvoke(L); @@ -45445,13 +46966,13 @@ static int _cocos2d_SpotLight_setDirection(lua_State *L) olua_startinvoke(L); cocos2d::SpotLight *self = nullptr; - cocos2d::Vec3 arg1; /** dir */ + cocos2d::Vec3 *arg1; /** dir */ olua_to_object(L, 1, &self, "cc.SpotLight"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void setDirection(const cocos2d::Vec3 &dir) - self->setDirection(arg1); + self->setDirection(*arg1); olua_endinvoke(L); @@ -45512,8 +47033,7 @@ static int _cocos2d_SpotLight_setRange(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_SpotLight(lua_State *L) +static int _cc_SpotLight(lua_State *L) { oluacls_class(L, "cc.SpotLight"); oluacls_func(L, "create", _cocos2d_SpotLight_create); @@ -45539,6 +47059,16 @@ OLUA_LIB int luaopen_cocos2d_SpotLight(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_SpotLight(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::SpotLight"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_AmbientLight_create(lua_State *L) @@ -45572,8 +47102,7 @@ static int _cocos2d_AmbientLight_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_AmbientLight(lua_State *L) +static int _cc_AmbientLight(lua_State *L) { oluacls_class(L, "cc.AmbientLight"); oluacls_func(L, "create", _cocos2d_AmbientLight_create); @@ -45581,10 +47110,19 @@ OLUA_LIB int luaopen_cocos2d_AmbientLight(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_CameraFlag(lua_State *L) +OLUA_LIB int luaopen_cc_AmbientLight(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::AmbientLight"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_CameraFlag(lua_State *L) { oluacls_class(L, "cc.CameraFlag"); oluacls_func(L, "__index", olua_indexerror); @@ -45601,10 +47139,19 @@ OLUA_LIB int luaopen_cocos2d_CameraFlag(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Camera_Type(lua_State *L) +OLUA_LIB int luaopen_cc_CameraFlag(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::CameraFlag"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_Camera_Type(lua_State *L) { oluacls_class(L, "cc.Camera.Type"); oluacls_func(L, "__index", olua_indexerror); @@ -45614,6 +47161,16 @@ OLUA_LIB int luaopen_cocos2d_Camera_Type(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Camera_Type(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Camera::Type"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Camera_apply(lua_State *L) @@ -45805,13 +47362,13 @@ static int _cocos2d_Camera_getDepthInView(lua_State *L) olua_startinvoke(L); cocos2d::Camera *self = nullptr; - cocos2d::Mat4 arg1; /** transform */ + cocos2d::Mat4 *arg1; /** transform */ olua_to_object(L, 1, &self, "cc.Camera"); olua_check_object(L, 2, &arg1, "cc.Mat4"); // float getDepthInView(const cocos2d::Mat4 &transform) - float ret = self->getDepthInView(arg1); + float ret = self->getDepthInView(*arg1); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -46057,15 +47614,15 @@ static int _cocos2d_Camera_lookAt$1(lua_State *L) olua_startinvoke(L); cocos2d::Camera *self = nullptr; - cocos2d::Vec3 arg1; /** target */ - cocos2d::Vec3 arg2; /** up */ + cocos2d::Vec3 *arg1; /** target */ + cocos2d::Vec3 *arg2; /** up */ olua_to_object(L, 1, &self, "cc.Camera"); olua_check_object(L, 2, &arg1, "cc.Vec3"); olua_check_object(L, 3, &arg2, "cc.Vec3"); // void lookAt(const cocos2d::Vec3 &target, @optional const cocos2d::Vec3 &up) - self->lookAt(arg1, arg2); + self->lookAt(*arg1, *arg2); olua_endinvoke(L); @@ -46077,13 +47634,13 @@ static int _cocos2d_Camera_lookAt$2(lua_State *L) olua_startinvoke(L); cocos2d::Camera *self = nullptr; - cocos2d::Vec3 arg1; /** target */ + cocos2d::Vec3 *arg1; /** target */ olua_to_object(L, 1, &self, "cc.Camera"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void lookAt(const cocos2d::Vec3 &target) - self->lookAt(arg1); + self->lookAt(*arg1); olua_endinvoke(L); @@ -46132,13 +47689,13 @@ static int _cocos2d_Camera_project(lua_State *L) olua_startinvoke(L); cocos2d::Camera *self = nullptr; - cocos2d::Vec3 arg1; /** src */ + cocos2d::Vec3 *arg1; /** src */ olua_to_object(L, 1, &self, "cc.Camera"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // cocos2d::Vec2 project(const cocos2d::Vec3 &src) - cocos2d::Vec2 ret = self->project(arg1); + cocos2d::Vec2 ret = self->project(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -46151,13 +47708,13 @@ static int _cocos2d_Camera_projectGL(lua_State *L) olua_startinvoke(L); cocos2d::Camera *self = nullptr; - cocos2d::Vec3 arg1; /** src */ + cocos2d::Vec3 *arg1; /** src */ olua_to_object(L, 1, &self, "cc.Camera"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // cocos2d::Vec2 projectGL(const cocos2d::Vec3 &src) - cocos2d::Vec2 ret = self->projectGL(arg1); + cocos2d::Vec2 ret = self->projectGL(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -46170,13 +47727,13 @@ static int _cocos2d_Camera_setAdditionalProjection(lua_State *L) olua_startinvoke(L); cocos2d::Camera *self = nullptr; - cocos2d::Mat4 arg1; /** mat */ + cocos2d::Mat4 *arg1; /** mat */ olua_to_object(L, 1, &self, "cc.Camera"); olua_check_object(L, 2, &arg1, "cc.Mat4"); // void setAdditionalProjection(const cocos2d::Mat4 &mat) - self->setAdditionalProjection(arg1); + self->setAdditionalProjection(*arg1); olua_endinvoke(L); @@ -46223,12 +47780,12 @@ static int _cocos2d_Camera_setDefaultViewport(lua_State *L) { olua_startinvoke(L); - cocos2d::Viewport arg1; /** vp */ + cocos2d::Viewport *arg1; /** vp */ olua_check_object(L, 1, &arg1, "cc.Viewport"); // static void setDefaultViewport(const cocos2d::Viewport &vp) - cocos2d::Camera::setDefaultViewport(arg1); + cocos2d::Camera::setDefaultViewport(*arg1); olua_endinvoke(L); @@ -46276,13 +47833,13 @@ static int _cocos2d_Camera_unproject$1(lua_State *L) olua_startinvoke(L); cocos2d::Camera *self = nullptr; - cocos2d::Vec3 arg1; /** src */ + cocos2d::Vec3 *arg1; /** src */ olua_to_object(L, 1, &self, "cc.Camera"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // cocos2d::Vec3 unproject(const cocos2d::Vec3 &src) - cocos2d::Vec3 ret = self->unproject(arg1); + cocos2d::Vec3 ret = self->unproject(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec3"); olua_endinvoke(L); @@ -46295,7 +47852,7 @@ static int _cocos2d_Camera_unproject$2(lua_State *L) olua_startinvoke(L); cocos2d::Camera *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ cocos2d::Vec3 *arg2 = nullptr; /** src */ cocos2d::Vec3 *arg3 = nullptr; /** dst */ @@ -46305,7 +47862,7 @@ static int _cocos2d_Camera_unproject$2(lua_State *L) olua_check_object(L, 4, &arg3, "cc.Vec3"); // void unproject(const cocos2d::Size &size, const cocos2d::Vec3 *src, cocos2d::Vec3 *dst) - self->unproject(arg1, arg2, arg3); + self->unproject(*arg1, arg2, arg3); olua_endinvoke(L); @@ -46340,13 +47897,13 @@ static int _cocos2d_Camera_unprojectGL$1(lua_State *L) olua_startinvoke(L); cocos2d::Camera *self = nullptr; - cocos2d::Vec3 arg1; /** src */ + cocos2d::Vec3 *arg1; /** src */ olua_to_object(L, 1, &self, "cc.Camera"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // cocos2d::Vec3 unprojectGL(const cocos2d::Vec3 &src) - cocos2d::Vec3 ret = self->unprojectGL(arg1); + cocos2d::Vec3 ret = self->unprojectGL(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec3"); olua_endinvoke(L); @@ -46359,7 +47916,7 @@ static int _cocos2d_Camera_unprojectGL$2(lua_State *L) olua_startinvoke(L); cocos2d::Camera *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ cocos2d::Vec3 *arg2 = nullptr; /** src */ cocos2d::Vec3 *arg3 = nullptr; /** dst */ @@ -46369,7 +47926,7 @@ static int _cocos2d_Camera_unprojectGL$2(lua_State *L) olua_check_object(L, 4, &arg3, "cc.Vec3"); // void unprojectGL(const cocos2d::Size &size, const cocos2d::Vec3 *src, cocos2d::Vec3 *dst) - self->unprojectGL(arg1, arg2, arg3); + self->unprojectGL(*arg1, arg2, arg3); olua_endinvoke(L); @@ -46399,8 +47956,7 @@ static int _cocos2d_Camera_unprojectGL(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Camera(lua_State *L) +static int _cc_Camera(lua_State *L) { oluacls_class(L, "cc.Camera"); oluacls_func(L, "apply", _cocos2d_Camera_apply); @@ -46458,10 +48014,19 @@ OLUA_LIB int luaopen_cocos2d_Camera(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_CameraBackgroundBrush_BrushType(lua_State *L) +OLUA_LIB int luaopen_cc_Camera(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Camera"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_CameraBackgroundBrush_BrushType(lua_State *L) { oluacls_class(L, "cc.CameraBackgroundBrush.BrushType"); oluacls_func(L, "__index", olua_indexerror); @@ -46473,6 +48038,16 @@ OLUA_LIB int luaopen_cocos2d_CameraBackgroundBrush_BrushType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_CameraBackgroundBrush_BrushType(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::CameraBackgroundBrush::BrushType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_CameraBackgroundBrush_createColorBrush(lua_State *L) @@ -46668,8 +48243,7 @@ static int _cocos2d_CameraBackgroundBrush_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_CameraBackgroundBrush(lua_State *L) +static int _cc_CameraBackgroundBrush(lua_State *L) { oluacls_class(L, "cc.CameraBackgroundBrush"); oluacls_func(L, "createColorBrush", _cocos2d_CameraBackgroundBrush_createColorBrush); @@ -46686,6 +48260,16 @@ OLUA_LIB int luaopen_cocos2d_CameraBackgroundBrush(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_CameraBackgroundBrush(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::CameraBackgroundBrush"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_CameraBackgroundDepthBrush_create(lua_State *L) @@ -46737,8 +48321,7 @@ static int _cocos2d_CameraBackgroundDepthBrush_setDepth(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_CameraBackgroundDepthBrush(lua_State *L) +static int _cc_CameraBackgroundDepthBrush(lua_State *L) { oluacls_class(L, "cc.CameraBackgroundDepthBrush"); oluacls_func(L, "create", _cocos2d_CameraBackgroundDepthBrush_create); @@ -46747,6 +48330,16 @@ OLUA_LIB int luaopen_cocos2d_CameraBackgroundDepthBrush(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_CameraBackgroundDepthBrush(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::CameraBackgroundDepthBrush"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_CameraBackgroundColorBrush_create(lua_State *L) @@ -46800,8 +48393,7 @@ static int _cocos2d_CameraBackgroundColorBrush_setColor(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_CameraBackgroundColorBrush(lua_State *L) +static int _cc_CameraBackgroundColorBrush(lua_State *L) { oluacls_class(L, "cc.CameraBackgroundColorBrush"); oluacls_func(L, "create", _cocos2d_CameraBackgroundColorBrush_create); @@ -46810,6 +48402,16 @@ OLUA_LIB int luaopen_cocos2d_CameraBackgroundColorBrush(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_CameraBackgroundColorBrush(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::CameraBackgroundColorBrush"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_CameraBackgroundSkyBoxBrush_create$1(lua_State *L) @@ -46958,8 +48560,7 @@ static int _cocos2d_CameraBackgroundSkyBoxBrush_setTextureValid(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_CameraBackgroundSkyBoxBrush(lua_State *L) +static int _cc_CameraBackgroundSkyBoxBrush(lua_State *L) { oluacls_class(L, "cc.CameraBackgroundSkyBoxBrush"); oluacls_func(L, "create", _cocos2d_CameraBackgroundSkyBoxBrush_create); @@ -46972,6 +48573,16 @@ OLUA_LIB int luaopen_cocos2d_CameraBackgroundSkyBoxBrush(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_CameraBackgroundSkyBoxBrush(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::CameraBackgroundSkyBoxBrush"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_PlayableProtocol___gc(lua_State *L) @@ -47030,8 +48641,7 @@ static int _cocos2d_PlayableProtocol_stop(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PlayableProtocol(lua_State *L) +static int _cc_PlayableProtocol(lua_State *L) { oluacls_class(L, "cc.PlayableProtocol"); oluacls_func(L, "__gc", _cocos2d_PlayableProtocol___gc); @@ -47041,6 +48651,16 @@ OLUA_LIB int luaopen_cocos2d_PlayableProtocol(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PlayableProtocol(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PlayableProtocol"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ParticleBatchNode_as(lua_State *L) @@ -47363,13 +48983,13 @@ static int _cocos2d_ParticleBatchNode_setBlendFunc(lua_State *L) olua_startinvoke(L); cocos2d::ParticleBatchNode *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "cc.ParticleBatchNode"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -47412,8 +49032,7 @@ static int _cocos2d_ParticleBatchNode_setTextureAtlas(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParticleBatchNode(lua_State *L) +static int _cc_ParticleBatchNode(lua_State *L) { oluacls_class(L, "cc.ParticleBatchNode"); oluacls_func(L, "as", _cocos2d_ParticleBatchNode_as); @@ -47437,10 +49056,19 @@ OLUA_LIB int luaopen_cocos2d_ParticleBatchNode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParticleSystem_Mode(lua_State *L) +OLUA_LIB int luaopen_cc_ParticleBatchNode(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParticleBatchNode"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_ParticleSystem_Mode(lua_State *L) { oluacls_class(L, "cc.ParticleSystem.Mode"); oluacls_func(L, "__index", olua_indexerror); @@ -47450,10 +49078,19 @@ OLUA_LIB int luaopen_cocos2d_ParticleSystem_Mode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParticleSystem_PositionType(lua_State *L) +OLUA_LIB int luaopen_cc_ParticleSystem_Mode(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParticleSystem::Mode"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_ParticleSystem_PositionType(lua_State *L) { oluacls_class(L, "cc.ParticleSystem.PositionType"); oluacls_func(L, "__index", olua_indexerror); @@ -47464,6 +49101,16 @@ OLUA_LIB int luaopen_cocos2d_ParticleSystem_PositionType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ParticleSystem_PositionType(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParticleSystem::PositionType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ParticleSystem_addParticles(lua_State *L) @@ -48694,13 +50341,13 @@ static int _cocos2d_ParticleSystem_setBlendFunc(lua_State *L) olua_startinvoke(L); cocos2d::ParticleSystem *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "cc.ParticleSystem"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -48910,13 +50557,13 @@ static int _cocos2d_ParticleSystem_setGravity(lua_State *L) olua_startinvoke(L); cocos2d::ParticleSystem *self = nullptr; - cocos2d::Vec2 arg1; /** g */ + cocos2d::Vec2 *arg1; /** g */ olua_to_object(L, 1, &self, "cc.ParticleSystem"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setGravity(const cocos2d::Vec2 &g) - self->setGravity(arg1); + self->setGravity(*arg1); olua_endinvoke(L); @@ -48964,13 +50611,13 @@ static int _cocos2d_ParticleSystem_setPosVar(lua_State *L) olua_startinvoke(L); cocos2d::ParticleSystem *self = nullptr; - cocos2d::Vec2 arg1; /** pos */ + cocos2d::Vec2 *arg1; /** pos */ olua_to_object(L, 1, &self, "cc.ParticleSystem"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setPosVar(const cocos2d::Vec2 &pos) - self->setPosVar(arg1); + self->setPosVar(*arg1); olua_endinvoke(L); @@ -49090,13 +50737,13 @@ static int _cocos2d_ParticleSystem_setSourcePosition(lua_State *L) olua_startinvoke(L); cocos2d::ParticleSystem *self = nullptr; - cocos2d::Vec2 arg1; /** pos */ + cocos2d::Vec2 *arg1; /** pos */ olua_to_object(L, 1, &self, "cc.ParticleSystem"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setSourcePosition(const cocos2d::Vec2 &pos) - self->setSourcePosition(arg1); + self->setSourcePosition(*arg1); olua_endinvoke(L); @@ -49453,8 +51100,7 @@ static int _cocos2d_ParticleSystem_updateWithNoTime(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParticleSystem(lua_State *L) +static int _cc_ParticleSystem(lua_State *L) { oluacls_class(L, "cc.ParticleSystem"); oluacls_func(L, "addParticles", _cocos2d_ParticleSystem_addParticles); @@ -49621,6 +51267,16 @@ OLUA_LIB int luaopen_cocos2d_ParticleSystem(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ParticleSystem(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParticleSystem"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ParticleSystemQuad_create$1(lua_State *L) @@ -49769,22 +51425,21 @@ static int _cocos2d_ParticleSystemQuad_setTextureWithRect(lua_State *L) cocos2d::ParticleSystemQuad *self = nullptr; cocos2d::Texture2D *arg1 = nullptr; /** texture */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ olua_to_object(L, 1, &self, "cc.ParticleSystemQuad"); olua_check_object(L, 2, &arg1, "cc.Texture2D"); olua_check_object(L, 3, &arg2, "cc.Rect"); // void setTextureWithRect(cocos2d::Texture2D *texture, const cocos2d::Rect &rect) - self->setTextureWithRect(arg1, arg2); + self->setTextureWithRect(arg1, *arg2); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParticleSystemQuad(lua_State *L) +static int _cc_ParticleSystemQuad(lua_State *L) { oluacls_class(L, "cc.ParticleSystemQuad"); oluacls_func(L, "create", _cocos2d_ParticleSystemQuad_create); @@ -49796,6 +51451,16 @@ OLUA_LIB int luaopen_cocos2d_ParticleSystemQuad(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ParticleSystemQuad(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParticleSystemQuad"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ParticleExplosion_create(lua_State *L) @@ -49842,8 +51507,7 @@ static int _cocos2d_ParticleExplosion_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParticleExplosion(lua_State *L) +static int _cc_ParticleExplosion(lua_State *L) { oluacls_class(L, "cc.ParticleExplosion"); oluacls_func(L, "create", _cocos2d_ParticleExplosion_create); @@ -49852,6 +51516,16 @@ OLUA_LIB int luaopen_cocos2d_ParticleExplosion(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ParticleExplosion(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParticleExplosion"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ParticleFire_create(lua_State *L) @@ -49898,8 +51572,7 @@ static int _cocos2d_ParticleFire_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParticleFire(lua_State *L) +static int _cc_ParticleFire(lua_State *L) { oluacls_class(L, "cc.ParticleFire"); oluacls_func(L, "create", _cocos2d_ParticleFire_create); @@ -49908,6 +51581,16 @@ OLUA_LIB int luaopen_cocos2d_ParticleFire(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ParticleFire(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParticleFire"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ParticleFireworks_create(lua_State *L) @@ -49954,8 +51637,7 @@ static int _cocos2d_ParticleFireworks_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParticleFireworks(lua_State *L) +static int _cc_ParticleFireworks(lua_State *L) { oluacls_class(L, "cc.ParticleFireworks"); oluacls_func(L, "create", _cocos2d_ParticleFireworks_create); @@ -49964,6 +51646,16 @@ OLUA_LIB int luaopen_cocos2d_ParticleFireworks(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ParticleFireworks(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParticleFireworks"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ParticleFlower_create(lua_State *L) @@ -50010,8 +51702,7 @@ static int _cocos2d_ParticleFlower_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParticleFlower(lua_State *L) +static int _cc_ParticleFlower(lua_State *L) { oluacls_class(L, "cc.ParticleFlower"); oluacls_func(L, "create", _cocos2d_ParticleFlower_create); @@ -50020,6 +51711,16 @@ OLUA_LIB int luaopen_cocos2d_ParticleFlower(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ParticleFlower(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParticleFlower"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ParticleGalaxy_create(lua_State *L) @@ -50066,8 +51767,7 @@ static int _cocos2d_ParticleGalaxy_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParticleGalaxy(lua_State *L) +static int _cc_ParticleGalaxy(lua_State *L) { oluacls_class(L, "cc.ParticleGalaxy"); oluacls_func(L, "create", _cocos2d_ParticleGalaxy_create); @@ -50076,6 +51776,16 @@ OLUA_LIB int luaopen_cocos2d_ParticleGalaxy(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ParticleGalaxy(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParticleGalaxy"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ParticleMeteor_create(lua_State *L) @@ -50122,8 +51832,7 @@ static int _cocos2d_ParticleMeteor_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParticleMeteor(lua_State *L) +static int _cc_ParticleMeteor(lua_State *L) { oluacls_class(L, "cc.ParticleMeteor"); oluacls_func(L, "create", _cocos2d_ParticleMeteor_create); @@ -50132,6 +51841,16 @@ OLUA_LIB int luaopen_cocos2d_ParticleMeteor(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ParticleMeteor(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParticleMeteor"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ParticleRain_create(lua_State *L) @@ -50178,8 +51897,7 @@ static int _cocos2d_ParticleRain_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParticleRain(lua_State *L) +static int _cc_ParticleRain(lua_State *L) { oluacls_class(L, "cc.ParticleRain"); oluacls_func(L, "create", _cocos2d_ParticleRain_create); @@ -50188,6 +51906,16 @@ OLUA_LIB int luaopen_cocos2d_ParticleRain(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ParticleRain(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParticleRain"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ParticleSmoke_create(lua_State *L) @@ -50234,8 +51962,7 @@ static int _cocos2d_ParticleSmoke_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParticleSmoke(lua_State *L) +static int _cc_ParticleSmoke(lua_State *L) { oluacls_class(L, "cc.ParticleSmoke"); oluacls_func(L, "create", _cocos2d_ParticleSmoke_create); @@ -50244,6 +51971,16 @@ OLUA_LIB int luaopen_cocos2d_ParticleSmoke(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ParticleSmoke(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParticleSmoke"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ParticleSnow_create(lua_State *L) @@ -50290,8 +52027,7 @@ static int _cocos2d_ParticleSnow_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParticleSnow(lua_State *L) +static int _cc_ParticleSnow(lua_State *L) { oluacls_class(L, "cc.ParticleSnow"); oluacls_func(L, "create", _cocos2d_ParticleSnow_create); @@ -50300,6 +52036,16 @@ OLUA_LIB int luaopen_cocos2d_ParticleSnow(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ParticleSnow(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParticleSnow"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ParticleSpiral_create(lua_State *L) @@ -50346,8 +52092,7 @@ static int _cocos2d_ParticleSpiral_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParticleSpiral(lua_State *L) +static int _cc_ParticleSpiral(lua_State *L) { oluacls_class(L, "cc.ParticleSpiral"); oluacls_func(L, "create", _cocos2d_ParticleSpiral_create); @@ -50356,6 +52101,16 @@ OLUA_LIB int luaopen_cocos2d_ParticleSpiral(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ParticleSpiral(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParticleSpiral"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ParticleSun_create(lua_State *L) @@ -50402,8 +52157,7 @@ static int _cocos2d_ParticleSun_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ParticleSun(lua_State *L) +static int _cc_ParticleSun(lua_State *L) { oluacls_class(L, "cc.ParticleSun"); oluacls_func(L, "create", _cocos2d_ParticleSun_create); @@ -50412,6 +52166,16 @@ OLUA_LIB int luaopen_cocos2d_ParticleSun(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ParticleSun(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ParticleSun"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_SAXDelegator___gc(lua_State *L) @@ -50480,8 +52244,7 @@ static int _cocos2d_SAXDelegator_textHandler(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_SAXDelegator(lua_State *L) +static int _cc_SAXDelegator(lua_State *L) { oluacls_class(L, "cc.SAXDelegator"); oluacls_func(L, "__gc", _cocos2d_SAXDelegator___gc); @@ -50491,10 +52254,19 @@ OLUA_LIB int luaopen_cocos2d_SAXDelegator(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TMXTileFlags(lua_State *L) +OLUA_LIB int luaopen_cc_SAXDelegator(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::SAXDelegator"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_TMXTileFlags(lua_State *L) { oluacls_class(L, "cc.TMXTileFlags"); oluacls_func(L, "__index", olua_indexerror); @@ -50507,6 +52279,16 @@ OLUA_LIB int luaopen_cocos2d_TMXTileFlags(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TMXTileFlags(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TMXTileFlags"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TMXObjectGroup_getGroupName(lua_State *L) @@ -50670,13 +52452,13 @@ static int _cocos2d_TMXObjectGroup_setPositionOffset(lua_State *L) olua_startinvoke(L); cocos2d::TMXObjectGroup *self = nullptr; - cocos2d::Vec2 arg1; /** offset */ + cocos2d::Vec2 *arg1; /** offset */ olua_to_object(L, 1, &self, "cc.TMXObjectGroup"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setPositionOffset(const cocos2d::Vec2 &offset) - self->setPositionOffset(arg1); + self->setPositionOffset(*arg1); olua_endinvoke(L); @@ -50701,8 +52483,7 @@ static int _cocos2d_TMXObjectGroup_setProperties(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TMXObjectGroup(lua_State *L) +static int _cc_TMXObjectGroup(lua_State *L) { oluacls_class(L, "cc.TMXObjectGroup"); oluacls_func(L, "getGroupName", _cocos2d_TMXObjectGroup_getGroupName); @@ -50723,6 +52504,16 @@ OLUA_LIB int luaopen_cocos2d_TMXObjectGroup(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TMXObjectGroup(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TMXObjectGroup"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TMXLayer_create(lua_State *L) @@ -50819,13 +52610,13 @@ static int _cocos2d_TMXLayer_getPositionAt(lua_State *L) olua_startinvoke(L); cocos2d::TMXLayer *self = nullptr; - cocos2d::Vec2 arg1; /** tileCoordinate */ + cocos2d::Vec2 *arg1; /** tileCoordinate */ olua_to_object(L, 1, &self, "cc.TMXLayer"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 getPositionAt(const cocos2d::Vec2 &tileCoordinate) - cocos2d::Vec2 ret = self->getPositionAt(arg1); + cocos2d::Vec2 ret = self->getPositionAt(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -50874,13 +52665,13 @@ static int _cocos2d_TMXLayer_getTileAt(lua_State *L) olua_startinvoke(L); cocos2d::TMXLayer *self = nullptr; - cocos2d::Vec2 arg1; /** tileCoordinate */ + cocos2d::Vec2 *arg1; /** tileCoordinate */ olua_to_object(L, 1, &self, "cc.TMXLayer"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Sprite *getTileAt(const cocos2d::Vec2 &tileCoordinate) - cocos2d::Sprite *ret = self->getTileAt(arg1); + cocos2d::Sprite *ret = self->getTileAt(*arg1); int num_ret = olua_push_object(L, ret, "cc.Sprite"); olua_endinvoke(L); @@ -50893,7 +52684,7 @@ static int _cocos2d_TMXLayer_getTileGIDAt$1(lua_State *L) olua_startinvoke(L); cocos2d::TMXLayer *self = nullptr; - cocos2d::Vec2 arg1; /** tileCoordinate */ + cocos2d::Vec2 *arg1; /** tileCoordinate */ cocos2d::TMXTileFlags *arg2 = nullptr; /** flags */ olua_to_object(L, 1, &self, "cc.TMXLayer"); @@ -50901,7 +52692,7 @@ static int _cocos2d_TMXLayer_getTileGIDAt$1(lua_State *L) olua_check_pointer(L, 3, &arg2, "cc.TMXTileFlags"); // uint32_t getTileGIDAt(const cocos2d::Vec2 &tileCoordinate, @optional cocos2d::TMXTileFlags *flags) - uint32_t ret = self->getTileGIDAt(arg1, arg2); + uint32_t ret = self->getTileGIDAt(*arg1, arg2); int num_ret = olua_push_integer(L, ret); olua_endinvoke(L); @@ -50914,13 +52705,13 @@ static int _cocos2d_TMXLayer_getTileGIDAt$2(lua_State *L) olua_startinvoke(L); cocos2d::TMXLayer *self = nullptr; - cocos2d::Vec2 arg1; /** tileCoordinate */ + cocos2d::Vec2 *arg1; /** tileCoordinate */ olua_to_object(L, 1, &self, "cc.TMXLayer"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // uint32_t getTileGIDAt(const cocos2d::Vec2 &tileCoordinate) - uint32_t ret = self->getTileGIDAt(arg1); + uint32_t ret = self->getTileGIDAt(*arg1); int num_ret = olua_push_integer(L, ret); olua_endinvoke(L); @@ -51043,13 +52834,13 @@ static int _cocos2d_TMXLayer_removeTileAt(lua_State *L) olua_startinvoke(L); cocos2d::TMXLayer *self = nullptr; - cocos2d::Vec2 arg1; /** tileCoordinate */ + cocos2d::Vec2 *arg1; /** tileCoordinate */ olua_to_object(L, 1, &self, "cc.TMXLayer"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void removeTileAt(const cocos2d::Vec2 &tileCoordinate) - self->removeTileAt(arg1); + self->removeTileAt(*arg1); olua_endinvoke(L); @@ -51097,13 +52888,13 @@ static int _cocos2d_TMXLayer_setLayerSize(lua_State *L) olua_startinvoke(L); cocos2d::TMXLayer *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_to_object(L, 1, &self, "cc.TMXLayer"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setLayerSize(const cocos2d::Size &size) - self->setLayerSize(arg1); + self->setLayerSize(*arg1); olua_endinvoke(L); @@ -51115,13 +52906,13 @@ static int _cocos2d_TMXLayer_setMapTileSize(lua_State *L) olua_startinvoke(L); cocos2d::TMXLayer *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_to_object(L, 1, &self, "cc.TMXLayer"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setMapTileSize(const cocos2d::Size &size) - self->setMapTileSize(arg1); + self->setMapTileSize(*arg1); olua_endinvoke(L); @@ -51152,14 +52943,14 @@ static int _cocos2d_TMXLayer_setTileGID$1(lua_State *L) cocos2d::TMXLayer *self = nullptr; uint32_t arg1 = 0; /** gid */ - cocos2d::Vec2 arg2; /** tileCoordinate */ + cocos2d::Vec2 *arg2; /** tileCoordinate */ olua_to_object(L, 1, &self, "cc.TMXLayer"); olua_check_integer(L, 2, &arg1); olua_check_object(L, 3, &arg2, "cc.Vec2"); // void setTileGID(uint32_t gid, const cocos2d::Vec2 &tileCoordinate) - self->setTileGID(arg1, arg2); + self->setTileGID(arg1, *arg2); olua_endinvoke(L); @@ -51172,7 +52963,7 @@ static int _cocos2d_TMXLayer_setTileGID$2(lua_State *L) cocos2d::TMXLayer *self = nullptr; uint32_t arg1 = 0; /** gid */ - cocos2d::Vec2 arg2; /** tileCoordinate */ + cocos2d::Vec2 *arg2; /** tileCoordinate */ cocos2d::TMXTileFlags arg3 = (cocos2d::TMXTileFlags)0; /** flags */ olua_to_object(L, 1, &self, "cc.TMXLayer"); @@ -51181,7 +52972,7 @@ static int _cocos2d_TMXLayer_setTileGID$2(lua_State *L) olua_check_enum(L, 4, &arg3); // void setTileGID(uint32_t gid, const cocos2d::Vec2 &tileCoordinate, cocos2d::TMXTileFlags flags) - self->setTileGID(arg1, arg2, arg3); + self->setTileGID(arg1, *arg2, arg3); olua_endinvoke(L); @@ -51263,8 +53054,7 @@ static int _cocos2d_TMXLayer_setupTiles(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TMXLayer(lua_State *L) +static int _cc_TMXLayer(lua_State *L) { oluacls_class(L, "cc.TMXLayer"); oluacls_func(L, "create", _cocos2d_TMXLayer_create); @@ -51302,6 +53092,16 @@ OLUA_LIB int luaopen_cocos2d_TMXLayer(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TMXLayer(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TMXLayer"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TMXLayerInfo_getProperties(lua_State *L) @@ -51353,8 +53153,7 @@ static int _cocos2d_TMXLayerInfo_setProperties(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TMXLayerInfo(lua_State *L) +static int _cc_TMXLayerInfo(lua_State *L) { oluacls_class(L, "cc.TMXLayerInfo"); oluacls_func(L, "getProperties", _cocos2d_TMXLayerInfo_getProperties); @@ -51364,6 +53163,16 @@ OLUA_LIB int luaopen_cocos2d_TMXLayerInfo(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TMXLayerInfo(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TMXLayerInfo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TMXMapInfo_as(lua_State *L) @@ -51933,13 +53742,13 @@ static int _cocos2d_TMXMapInfo_setMapSize(lua_State *L) olua_startinvoke(L); cocos2d::TMXMapInfo *self = nullptr; - cocos2d::Size arg1; /** mapSize */ + cocos2d::Size *arg1; /** mapSize */ olua_to_object(L, 1, &self, "cc.TMXMapInfo"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setMapSize(const cocos2d::Size &mapSize) - self->setMapSize(arg1); + self->setMapSize(*arg1); olua_endinvoke(L); @@ -52133,13 +53942,13 @@ static int _cocos2d_TMXMapInfo_setTileSize(lua_State *L) olua_startinvoke(L); cocos2d::TMXMapInfo *self = nullptr; - cocos2d::Size arg1; /** tileSize */ + cocos2d::Size *arg1; /** tileSize */ olua_to_object(L, 1, &self, "cc.TMXMapInfo"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setTileSize(const cocos2d::Size &tileSize) - self->setTileSize(arg1); + self->setTileSize(*arg1); olua_endinvoke(L); @@ -52188,8 +53997,7 @@ static int _cocos2d_TMXMapInfo_textHandler(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TMXMapInfo(lua_State *L) +static int _cc_TMXMapInfo(lua_State *L) { oluacls_class(L, "cc.TMXMapInfo"); oluacls_func(L, "as", _cocos2d_TMXMapInfo_as); @@ -52258,6 +54066,16 @@ OLUA_LIB int luaopen_cocos2d_TMXMapInfo(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TMXMapInfo(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TMXMapInfo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TMXTilesetInfo_getRectForGID(lua_State *L) @@ -52293,8 +54111,7 @@ static int _cocos2d_TMXTilesetInfo_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TMXTilesetInfo(lua_State *L) +static int _cc_TMXTilesetInfo(lua_State *L) { oluacls_class(L, "cc.TMXTilesetInfo"); oluacls_func(L, "getRectForGID", _cocos2d_TMXTilesetInfo_getRectForGID); @@ -52302,6 +54119,16 @@ OLUA_LIB int luaopen_cocos2d_TMXTilesetInfo(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TMXTilesetInfo(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TMXTilesetInfo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TMXTiledMap_create(lua_State *L) @@ -52614,13 +54441,13 @@ static int _cocos2d_TMXTiledMap_setMapSize(lua_State *L) olua_startinvoke(L); cocos2d::TMXTiledMap *self = nullptr; - cocos2d::Size arg1; /** mapSize */ + cocos2d::Size *arg1; /** mapSize */ olua_to_object(L, 1, &self, "cc.TMXTiledMap"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setMapSize(const cocos2d::Size &mapSize) - self->setMapSize(arg1); + self->setMapSize(*arg1); olua_endinvoke(L); @@ -52670,21 +54497,20 @@ static int _cocos2d_TMXTiledMap_setTileSize(lua_State *L) olua_startinvoke(L); cocos2d::TMXTiledMap *self = nullptr; - cocos2d::Size arg1; /** tileSize */ + cocos2d::Size *arg1; /** tileSize */ olua_to_object(L, 1, &self, "cc.TMXTiledMap"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setTileSize(const cocos2d::Size &tileSize) - self->setTileSize(arg1); + self->setTileSize(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TMXTiledMap(lua_State *L) +static int _cc_TMXTiledMap(lua_State *L) { oluacls_class(L, "cc.TMXTiledMap"); oluacls_func(L, "create", _cocos2d_TMXTiledMap_create); @@ -52718,6 +54544,16 @@ OLUA_LIB int luaopen_cocos2d_TMXTiledMap(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TMXTiledMap(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TMXTiledMap"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FastTMXTiledMap_create(lua_State *L) @@ -52942,13 +54778,13 @@ static int _cocos2d_FastTMXTiledMap_setMapSize(lua_State *L) olua_startinvoke(L); cocos2d::FastTMXTiledMap *self = nullptr; - cocos2d::Size arg1; /** mapSize */ + cocos2d::Size *arg1; /** mapSize */ olua_to_object(L, 1, &self, "cc.FastTMXTiledMap"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setMapSize(const cocos2d::Size &mapSize) - self->setMapSize(arg1); + self->setMapSize(*arg1); olua_endinvoke(L); @@ -52998,21 +54834,20 @@ static int _cocos2d_FastTMXTiledMap_setTileSize(lua_State *L) olua_startinvoke(L); cocos2d::FastTMXTiledMap *self = nullptr; - cocos2d::Size arg1; /** tileSize */ + cocos2d::Size *arg1; /** tileSize */ olua_to_object(L, 1, &self, "cc.FastTMXTiledMap"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setTileSize(const cocos2d::Size &tileSize) - self->setTileSize(arg1); + self->setTileSize(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FastTMXTiledMap(lua_State *L) +static int _cc_FastTMXTiledMap(lua_State *L) { oluacls_class(L, "cc.FastTMXTiledMap"); oluacls_func(L, "create", _cocos2d_FastTMXTiledMap_create); @@ -53039,6 +54874,16 @@ OLUA_LIB int luaopen_cocos2d_FastTMXTiledMap(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FastTMXTiledMap(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FastTMXTiledMap"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FastTMXLayer_create(lua_State *L) @@ -53135,13 +54980,13 @@ static int _cocos2d_FastTMXLayer_getPositionAt(lua_State *L) olua_startinvoke(L); cocos2d::FastTMXLayer *self = nullptr; - cocos2d::Vec2 arg1; /** tileCoordinate */ + cocos2d::Vec2 *arg1; /** tileCoordinate */ olua_to_object(L, 1, &self, "cc.FastTMXLayer"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 getPositionAt(const cocos2d::Vec2 &tileCoordinate) - cocos2d::Vec2 ret = self->getPositionAt(arg1); + cocos2d::Vec2 ret = self->getPositionAt(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -53190,13 +55035,13 @@ static int _cocos2d_FastTMXLayer_getTileAt(lua_State *L) olua_startinvoke(L); cocos2d::FastTMXLayer *self = nullptr; - cocos2d::Vec2 arg1; /** tileCoordinate */ + cocos2d::Vec2 *arg1; /** tileCoordinate */ olua_to_object(L, 1, &self, "cc.FastTMXLayer"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Sprite *getTileAt(const cocos2d::Vec2 &tileCoordinate) - cocos2d::Sprite *ret = self->getTileAt(arg1); + cocos2d::Sprite *ret = self->getTileAt(*arg1); int num_ret = olua_push_object(L, ret, "cc.Sprite"); olua_endinvoke(L); @@ -53209,7 +55054,7 @@ static int _cocos2d_FastTMXLayer_getTileGIDAt$1(lua_State *L) olua_startinvoke(L); cocos2d::FastTMXLayer *self = nullptr; - cocos2d::Vec2 arg1; /** tileCoordinate */ + cocos2d::Vec2 *arg1; /** tileCoordinate */ cocos2d::TMXTileFlags *arg2 = nullptr; /** flags */ olua_to_object(L, 1, &self, "cc.FastTMXLayer"); @@ -53217,7 +55062,7 @@ static int _cocos2d_FastTMXLayer_getTileGIDAt$1(lua_State *L) olua_check_pointer(L, 3, &arg2, "cc.TMXTileFlags"); // int getTileGIDAt(const cocos2d::Vec2 &tileCoordinate, @optional cocos2d::TMXTileFlags *flags) - int ret = self->getTileGIDAt(arg1, arg2); + int ret = self->getTileGIDAt(*arg1, arg2); int num_ret = olua_push_integer(L, ret); olua_endinvoke(L); @@ -53230,13 +55075,13 @@ static int _cocos2d_FastTMXLayer_getTileGIDAt$2(lua_State *L) olua_startinvoke(L); cocos2d::FastTMXLayer *self = nullptr; - cocos2d::Vec2 arg1; /** tileCoordinate */ + cocos2d::Vec2 *arg1; /** tileCoordinate */ olua_to_object(L, 1, &self, "cc.FastTMXLayer"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // int getTileGIDAt(const cocos2d::Vec2 &tileCoordinate) - int ret = self->getTileGIDAt(arg1); + int ret = self->getTileGIDAt(*arg1); int num_ret = olua_push_integer(L, ret); olua_endinvoke(L); @@ -53320,13 +55165,13 @@ static int _cocos2d_FastTMXLayer_removeTileAt(lua_State *L) olua_startinvoke(L); cocos2d::FastTMXLayer *self = nullptr; - cocos2d::Vec2 arg1; /** tileCoordinate */ + cocos2d::Vec2 *arg1; /** tileCoordinate */ olua_to_object(L, 1, &self, "cc.FastTMXLayer"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void removeTileAt(const cocos2d::Vec2 &tileCoordinate) - self->removeTileAt(arg1); + self->removeTileAt(*arg1); olua_endinvoke(L); @@ -53374,13 +55219,13 @@ static int _cocos2d_FastTMXLayer_setLayerSize(lua_State *L) olua_startinvoke(L); cocos2d::FastTMXLayer *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_to_object(L, 1, &self, "cc.FastTMXLayer"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setLayerSize(const cocos2d::Size &size) - self->setLayerSize(arg1); + self->setLayerSize(*arg1); olua_endinvoke(L); @@ -53392,13 +55237,13 @@ static int _cocos2d_FastTMXLayer_setMapTileSize(lua_State *L) olua_startinvoke(L); cocos2d::FastTMXLayer *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_to_object(L, 1, &self, "cc.FastTMXLayer"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setMapTileSize(const cocos2d::Size &size) - self->setMapTileSize(arg1); + self->setMapTileSize(*arg1); olua_endinvoke(L); @@ -53429,14 +55274,14 @@ static int _cocos2d_FastTMXLayer_setTileGID$1(lua_State *L) cocos2d::FastTMXLayer *self = nullptr; int arg1 = 0; /** gid */ - cocos2d::Vec2 arg2; /** tileCoordinate */ + cocos2d::Vec2 *arg2; /** tileCoordinate */ olua_to_object(L, 1, &self, "cc.FastTMXLayer"); olua_check_integer(L, 2, &arg1); olua_check_object(L, 3, &arg2, "cc.Vec2"); // void setTileGID(int gid, const cocos2d::Vec2 &tileCoordinate) - self->setTileGID(arg1, arg2); + self->setTileGID(arg1, *arg2); olua_endinvoke(L); @@ -53449,7 +55294,7 @@ static int _cocos2d_FastTMXLayer_setTileGID$2(lua_State *L) cocos2d::FastTMXLayer *self = nullptr; int arg1 = 0; /** gid */ - cocos2d::Vec2 arg2; /** tileCoordinate */ + cocos2d::Vec2 *arg2; /** tileCoordinate */ cocos2d::TMXTileFlags arg3 = (cocos2d::TMXTileFlags)0; /** flags */ olua_to_object(L, 1, &self, "cc.FastTMXLayer"); @@ -53458,7 +55303,7 @@ static int _cocos2d_FastTMXLayer_setTileGID$2(lua_State *L) olua_check_enum(L, 4, &arg3); // void setTileGID(int gid, const cocos2d::Vec2 &tileCoordinate, cocos2d::TMXTileFlags flags) - self->setTileGID(arg1, arg2, arg3); + self->setTileGID(arg1, *arg2, arg3); olua_endinvoke(L); @@ -53530,7 +55375,7 @@ static int _cocos2d_FastTMXLayer_setupTileSprite(lua_State *L) cocos2d::FastTMXLayer *self = nullptr; cocos2d::Sprite *arg1 = nullptr; /** sprite */ - cocos2d::Vec2 arg2; /** pos */ + cocos2d::Vec2 *arg2; /** pos */ uint32_t arg3 = 0; /** gid */ olua_to_object(L, 1, &self, "cc.FastTMXLayer"); @@ -53539,7 +55384,7 @@ static int _cocos2d_FastTMXLayer_setupTileSprite(lua_State *L) olua_check_integer(L, 4, &arg3); // void setupTileSprite(cocos2d::Sprite *sprite, const cocos2d::Vec2 &pos, uint32_t gid) - self->setupTileSprite(arg1, arg2, arg3); + self->setupTileSprite(arg1, *arg2, arg3); olua_endinvoke(L); @@ -53562,8 +55407,7 @@ static int _cocos2d_FastTMXLayer_setupTiles(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FastTMXLayer(lua_State *L) +static int _cc_FastTMXLayer(lua_State *L) { oluacls_class(L, "cc.FastTMXLayer"); oluacls_func(L, "create", _cocos2d_FastTMXLayer_create); @@ -53603,11 +55447,20 @@ OLUA_LIB int luaopen_cocos2d_FastTMXLayer(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FastTMXLayer(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FastTMXLayer"); + } + return 1; +} OLUA_END_DECLS #if CC_USE_NAVMESH -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_NavMeshAgent_NavMeshAgentSyncFlag(lua_State *L) +static int _cc_NavMeshAgent_NavMeshAgentSyncFlag(lua_State *L) { oluacls_class(L, "cc.NavMeshAgent.NavMeshAgentSyncFlag"); oluacls_func(L, "__index", olua_indexerror); @@ -53619,6 +55472,16 @@ OLUA_LIB int luaopen_cocos2d_NavMeshAgent_NavMeshAgentSyncFlag(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_NavMeshAgent_NavMeshAgentSyncFlag(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::NavMeshAgent::NavMeshAgentSyncFlag"); + } + return 1; +} OLUA_END_DECLS #endif @@ -53643,12 +55506,12 @@ static int _cocos2d_NavMeshAgent_create(lua_State *L) { olua_startinvoke(L); - cocos2d::NavMeshAgentParam arg1; /** param */ + cocos2d::NavMeshAgentParam *arg1; /** param */ olua_check_object(L, 1, &arg1, "cc.NavMeshAgentParam"); // static cocos2d::NavMeshAgent *create(const cocos2d::NavMeshAgentParam ¶m) - cocos2d::NavMeshAgent *ret = cocos2d::NavMeshAgent::create(arg1); + cocos2d::NavMeshAgent *ret = cocos2d::NavMeshAgent::create(*arg1); int num_ret = olua_push_object(L, ret, "cc.NavMeshAgent"); olua_endinvoke(L); @@ -53878,7 +55741,7 @@ static int _cocos2d_NavMeshAgent_move$1(lua_State *L) olua_startinvoke(L); cocos2d::NavMeshAgent *self = nullptr; - cocos2d::Vec3 arg1; /** destination */ + cocos2d::Vec3 *arg1; /** destination */ std::function arg2; /** callback */ olua_to_object(L, 1, &self, "cc.NavMeshAgent"); @@ -53891,7 +55754,7 @@ static int _cocos2d_NavMeshAgent_move$1(lua_State *L) if (olua_isfunction(L, 3)) { cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](cocos2d::NavMeshAgent *arg1, float arg2) { + arg2 = [cb_store, cb_name, cb_ctx](cocos2d::NavMeshAgent *cb_arg1, float cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -53899,8 +55762,8 @@ static int _cocos2d_NavMeshAgent_move$1(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.NavMeshAgent"); - olua_push_number(L, arg2); + olua_push_object(L, cb_arg1, "cc.NavMeshAgent"); + olua_push_number(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -53916,7 +55779,7 @@ static int _cocos2d_NavMeshAgent_move$1(lua_State *L) } // void move(const cocos2d::Vec3 &destination, @optional const std::function &callback) - self->move(arg1, arg2); + self->move(*arg1, arg2); olua_endinvoke(L); @@ -53928,13 +55791,13 @@ static int _cocos2d_NavMeshAgent_move$2(lua_State *L) olua_startinvoke(L); cocos2d::NavMeshAgent *self = nullptr; - cocos2d::Vec3 arg1; /** destination */ + cocos2d::Vec3 *arg1; /** destination */ olua_to_object(L, 1, &self, "cc.NavMeshAgent"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void move(const cocos2d::Vec3 &destination) - self->move(arg1); + self->move(*arg1); olua_endinvoke(L); @@ -54123,13 +55986,13 @@ static int _cocos2d_NavMeshAgent_setOrientationRefAxes(lua_State *L) olua_startinvoke(L); cocos2d::NavMeshAgent *self = nullptr; - cocos2d::Vec3 arg1; /** rotRefAxes */ + cocos2d::Vec3 *arg1; /** rotRefAxes */ olua_to_object(L, 1, &self, "cc.NavMeshAgent"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void setOrientationRefAxes(const cocos2d::Vec3 &rotRefAxes) - self->setOrientationRefAxes(arg1); + self->setOrientationRefAxes(*arg1); olua_endinvoke(L); @@ -54256,8 +56119,7 @@ static int _cocos2d_NavMeshAgent_syncToNode(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_NavMeshAgent(lua_State *L) +static int _cc_NavMeshAgent(lua_State *L) { oluacls_class(L, "cc.NavMeshAgent"); oluacls_func(L, "completeOffMeshLink", _cocos2d_NavMeshAgent_completeOffMeshLink); @@ -54309,12 +56171,21 @@ OLUA_LIB int luaopen_cocos2d_NavMeshAgent(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_NavMeshAgent(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::NavMeshAgent"); + } + return 1; +} OLUA_END_DECLS #endif #if CC_USE_NAVMESH -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_NavMeshObstacle_NavMeshObstacleSyncFlag(lua_State *L) +static int _cc_NavMeshObstacle_NavMeshObstacleSyncFlag(lua_State *L) { oluacls_class(L, "cc.NavMeshObstacle.NavMeshObstacleSyncFlag"); oluacls_func(L, "__index", olua_indexerror); @@ -54326,6 +56197,16 @@ OLUA_LIB int luaopen_cocos2d_NavMeshObstacle_NavMeshObstacleSyncFlag(lua_State * return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_NavMeshObstacle_NavMeshObstacleSyncFlag(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::NavMeshObstacle::NavMeshObstacleSyncFlag"); + } + return 1; +} OLUA_END_DECLS #endif @@ -54534,8 +56415,7 @@ static int _cocos2d_NavMeshObstacle_syncToObstacle(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_NavMeshObstacle(lua_State *L) +static int _cc_NavMeshObstacle(lua_State *L) { oluacls_class(L, "cc.NavMeshObstacle"); oluacls_func(L, "create", _cocos2d_NavMeshObstacle_create); @@ -54557,6 +56437,16 @@ OLUA_LIB int luaopen_cocos2d_NavMeshObstacle(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_NavMeshObstacle(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::NavMeshObstacle"); + } + return 1; +} OLUA_END_DECLS #endif @@ -54639,8 +56529,8 @@ static int _cocos2d_NavMesh_findPath(lua_State *L) olua_startinvoke(L); cocos2d::NavMesh *self = nullptr; - cocos2d::Vec3 arg1; /** start */ - cocos2d::Vec3 arg2; /** end_ */ + cocos2d::Vec3 *arg1; /** start */ + cocos2d::Vec3 *arg2; /** end_ */ std::vector arg3; /** pathPoints */ olua_to_object(L, 1, &self, "cc.NavMesh"); @@ -54651,7 +56541,7 @@ static int _cocos2d_NavMesh_findPath(lua_State *L) }); // void findPath(const cocos2d::Vec3 &start, const cocos2d::Vec3 &end_, std::vector &pathPoints) - self->findPath(arg1, arg2, arg3); + self->findPath(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -54761,8 +56651,7 @@ static int _cocos2d_NavMesh_update(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_NavMesh(lua_State *L) +static int _cc_NavMesh(lua_State *L) { oluacls_class(L, "cc.NavMesh"); oluacls_func(L, "addNavMeshAgent", _cocos2d_NavMesh_addNavMeshAgent); @@ -54780,224 +56669,234 @@ OLUA_LIB int luaopen_cocos2d_NavMesh(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_NavMesh(lua_State *L) +{ + olua_require(L, "cocos2d", luaopen_cocos2d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::NavMesh"); + } + return 1; +} OLUA_END_DECLS #endif OLUA_BEGIN_DECLS OLUA_LIB int luaopen_cocos2d(lua_State *L) { - olua_require(L, "cc.RenderTargetFlag", luaopen_cocos2d_RenderTargetFlag); - olua_require(L, "cc.ClearFlag", luaopen_cocos2d_ClearFlag); - olua_require(L, "cc.MATRIX_STACK_TYPE", luaopen_cocos2d_MATRIX_STACK_TYPE); - olua_require(L, "cc.Director.Projection", luaopen_cocos2d_Director_Projection); - olua_require(L, "cc.UserDefault", luaopen_cocos2d_UserDefault); - olua_require(L, "cc.Ref", luaopen_cocos2d_Ref); - olua_require(L, "cc.Clonable", luaopen_cocos2d_Clonable); - olua_require(L, "cc.Console", luaopen_cocos2d_Console); - olua_require(L, "cc.Acceleration", luaopen_cocos2d_Acceleration); - olua_require(L, "cc.Director", luaopen_cocos2d_Director); - olua_require(L, "cc.ccSchedulerFunc", luaopen_cocos2d_ccSchedulerFunc); - olua_require(L, "cc.Scheduler", luaopen_cocos2d_Scheduler); - olua_require(L, "cc.EventDispatcher", luaopen_cocos2d_EventDispatcher); - olua_require(L, "cc.EventListener.Type", luaopen_cocos2d_EventListener_Type); - olua_require(L, "cc.EventListener", luaopen_cocos2d_EventListener); - olua_require(L, "cc.EventListenerTouchOneByOne.ccTouchBeganCallback", luaopen_cocos2d_EventListenerTouchOneByOne_ccTouchBeganCallback); - olua_require(L, "cc.EventListenerTouchOneByOne.ccTouchCallback", luaopen_cocos2d_EventListenerTouchOneByOne_ccTouchCallback); - olua_require(L, "cc.EventListenerTouchOneByOne", luaopen_cocos2d_EventListenerTouchOneByOne); - olua_require(L, "cc.EventListenerTouchAllAtOnce.ccTouchesCallback", luaopen_cocos2d_EventListenerTouchAllAtOnce_ccTouchesCallback); - olua_require(L, "cc.EventListenerTouchAllAtOnce", luaopen_cocos2d_EventListenerTouchAllAtOnce); - olua_require(L, "cc.EventListenerCustom", luaopen_cocos2d_EventListenerCustom); - olua_require(L, "cc.EventListenerKeyboard", luaopen_cocos2d_EventListenerKeyboard); - olua_require(L, "cc.EventListenerAcceleration", luaopen_cocos2d_EventListenerAcceleration); - olua_require(L, "cc.EventListenerFocus", luaopen_cocos2d_EventListenerFocus); - olua_require(L, "cc.EventListenerMouse", luaopen_cocos2d_EventListenerMouse); - olua_require(L, "cc.Event.Type", luaopen_cocos2d_Event_Type); - olua_require(L, "cc.Event", luaopen_cocos2d_Event); - olua_require(L, "cc.EventCustom", luaopen_cocos2d_EventCustom); - olua_require(L, "cc.EventListenerController", luaopen_cocos2d_EventListenerController); - olua_require(L, "cc.EventTouch.EventCode", luaopen_cocos2d_EventTouch_EventCode); - olua_require(L, "cc.EventTouch", luaopen_cocos2d_EventTouch); - olua_require(L, "cc.EventKeyboard", luaopen_cocos2d_EventKeyboard); - olua_require(L, "cc.EventAcceleration", luaopen_cocos2d_EventAcceleration); - olua_require(L, "cc.EventFocus", luaopen_cocos2d_EventFocus); - olua_require(L, "cc.EventMouse.MouseEventType", luaopen_cocos2d_EventMouse_MouseEventType); - olua_require(L, "cc.EventMouse.MouseButton", luaopen_cocos2d_EventMouse_MouseButton); - olua_require(L, "cc.EventMouse", luaopen_cocos2d_EventMouse); - olua_require(L, "cc.EventKeyboard.KeyCode", luaopen_cocos2d_EventKeyboard_KeyCode); - olua_require(L, "cc.Touch.DispatchMode", luaopen_cocos2d_Touch_DispatchMode); - olua_require(L, "cc.EventController.ControllerEventType", luaopen_cocos2d_EventController_ControllerEventType); - olua_require(L, "cc.EventController", luaopen_cocos2d_EventController); - olua_require(L, "cc.Touch", luaopen_cocos2d_Touch); - olua_require(L, "cc.Controller.Key", luaopen_cocos2d_Controller_Key); - olua_require(L, "cc.Controller", luaopen_cocos2d_Controller); - olua_require(L, "cc.AudioProfile", luaopen_cocos2d_AudioProfile); - olua_require(L, "cc.AudioEngine.AudioState", luaopen_cocos2d_AudioEngine_AudioState); - olua_require(L, "cc.AudioEngine", luaopen_cocos2d_AudioEngine); - olua_require(L, "cc.ApplicationProtocol.Platform", luaopen_cocos2d_ApplicationProtocol_Platform); - olua_require(L, "cc.LanguageType", luaopen_cocos2d_LanguageType); - olua_require(L, "cc.ApplicationProtocol", luaopen_cocos2d_ApplicationProtocol); - olua_require(L, "cc.Application", luaopen_cocos2d_Application); - olua_require(L, "cc.Device", luaopen_cocos2d_Device); - olua_require(L, "cc.ResizableBuffer", luaopen_cocos2d_ResizableBuffer); - olua_require(L, "cc.FileUtils.Status", luaopen_cocos2d_FileUtils_Status); - olua_require(L, "cc.FileUtils", luaopen_cocos2d_FileUtils); - olua_require(L, "cc.ResolutionPolicy", luaopen_ResolutionPolicy); - olua_require(L, "cc.GLView", luaopen_cocos2d_GLView); - olua_require(L, "cc.GLViewImpl", luaopen_cocos2d_GLViewImpl); - olua_require(L, "cc.Image.Format", luaopen_cocos2d_Image_Format); - olua_require(L, "cc.Image", luaopen_cocos2d_Image); - olua_require(L, "cc.Properties.Type", luaopen_cocos2d_Properties_Type); - olua_require(L, "cc.Properties", luaopen_cocos2d_Properties); - olua_require(L, "cc.Material", luaopen_cocos2d_Material); - olua_require(L, "cc.Renderer", luaopen_cocos2d_Renderer); - olua_require(L, "cc.RenderCommand.Type", luaopen_cocos2d_RenderCommand_Type); - olua_require(L, "cc.CustomCommand.DrawType", luaopen_cocos2d_CustomCommand_DrawType); - olua_require(L, "cc.PipelineDescriptor", luaopen_cocos2d_PipelineDescriptor); - olua_require(L, "cc.Technique", luaopen_cocos2d_Technique); - olua_require(L, "cc.Pass", luaopen_cocos2d_Pass); - olua_require(L, "cc.RenderState", luaopen_cocos2d_RenderState); - olua_require(L, "cc.RenderCommand", luaopen_cocos2d_RenderCommand); - olua_require(L, "cc.CustomCommand", luaopen_cocos2d_CustomCommand); - olua_require(L, "cc.MeshCommand", luaopen_cocos2d_MeshCommand); - olua_require(L, "cc.TextureCache", luaopen_cocos2d_TextureCache); - olua_require(L, "cc.Texture2D", luaopen_cocos2d_Texture2D); - olua_require(L, "cc.TextureCube", luaopen_cocos2d_TextureCube); - olua_require(L, "cc.TextureAtlas", luaopen_cocos2d_TextureAtlas); - olua_require(L, "cc.WebSocket.ErrorCode", luaopen_cocos2d_network_WebSocket_ErrorCode); - olua_require(L, "cc.WebSocket.State", luaopen_cocos2d_network_WebSocket_State); - olua_require(L, "cc.WebSocket.Delegate", luaopen_cocos2d_network_WebSocket_Delegate); - olua_require(L, "cc.WebSocket", luaopen_cocos2d_network_WebSocket); - olua_require(L, "cc.LuaWebSocketDelegate", luaopen_cocos2d_LuaWebSocketDelegate); - olua_require(L, "cc.ActionManager", luaopen_cocos2d_ActionManager); - olua_require(L, "cc.Component", luaopen_cocos2d_Component); - olua_require(L, "cc.LuaComponent", luaopen_cocos2d_LuaComponent); - olua_require(L, "cc.Node", luaopen_cocos2d_Node); - olua_require(L, "cc.BlendProtocol", luaopen_cocos2d_BlendProtocol); - olua_require(L, "cc.TextureProtocol", luaopen_cocos2d_TextureProtocol); - olua_require(L, "cc.AtlasNode", luaopen_cocos2d_AtlasNode); - olua_require(L, "cc.sImageTGA", luaopen_cocos2d_sImageTGA); - olua_require(L, "cc.TileMapAtlas", luaopen_cocos2d_TileMapAtlas); - olua_require(L, "cc.ClippingNode", luaopen_cocos2d_ClippingNode); - olua_require(L, "cc.MotionStreak", luaopen_cocos2d_MotionStreak); - olua_require(L, "cc.ProtectedNode", luaopen_cocos2d_ProtectedNode); - olua_require(L, "cc.DrawNode", luaopen_cocos2d_DrawNode); - olua_require(L, "cc.ParallaxNode", luaopen_cocos2d_ParallaxNode); - olua_require(L, "cc.TextHAlignment", luaopen_cocos2d_TextHAlignment); - olua_require(L, "cc.TextVAlignment", luaopen_cocos2d_TextVAlignment); - olua_require(L, "cc.GlyphCollection", luaopen_cocos2d_GlyphCollection); - olua_require(L, "cc.LabelEffect", luaopen_cocos2d_LabelEffect); - olua_require(L, "cc.Label.LabelType", luaopen_cocos2d_Label_LabelType); - olua_require(L, "cc.Label.Overflow", luaopen_cocos2d_Label_Overflow); - olua_require(L, "cc.LabelProtocol", luaopen_cocos2d_LabelProtocol); - olua_require(L, "cc.Label", luaopen_cocos2d_Label); - olua_require(L, "cc.LabelAtlas", luaopen_cocos2d_LabelAtlas); - olua_require(L, "cc.FontAtlas", luaopen_cocos2d_FontAtlas); - olua_require(L, "cc.ClippingRectangleNode", luaopen_cocos2d_ClippingRectangleNode); - olua_require(L, "cc.RenderTexture", luaopen_cocos2d_RenderTexture); - olua_require(L, "cc.ProgressTimer.Type", luaopen_cocos2d_ProgressTimer_Type); - olua_require(L, "cc.ProgressTimer", luaopen_cocos2d_ProgressTimer); - olua_require(L, "cc.AnimationFrame", luaopen_cocos2d_AnimationFrame); - olua_require(L, "cc.Animation", luaopen_cocos2d_Animation); - olua_require(L, "cc.SpriteFrame", luaopen_cocos2d_SpriteFrame); - olua_require(L, "cc.Sprite", luaopen_cocos2d_Sprite); - olua_require(L, "cc.SpriteBatchNode", luaopen_cocos2d_SpriteBatchNode); - olua_require(L, "cc.SpriteFrameCache", luaopen_cocos2d_SpriteFrameCache); - olua_require(L, "cc.AnimationCache", luaopen_cocos2d_AnimationCache); - olua_require(L, "cc.Scene", luaopen_cocos2d_Scene); - olua_require(L, "cc.Layer", luaopen_cocos2d_Layer); - olua_require(L, "cc.LayerColor", luaopen_cocos2d_LayerColor); - olua_require(L, "cc.LayerGradient", luaopen_cocos2d_LayerGradient); - olua_require(L, "cc.LayerRadialGradient", luaopen_cocos2d_LayerRadialGradient); - olua_require(L, "cc.LayerMultiplex", luaopen_cocos2d_LayerMultiplex); - olua_require(L, "cc.TransitionScene.Orientation", luaopen_cocos2d_TransitionScene_Orientation); - olua_require(L, "cc.TransitionScene", luaopen_cocos2d_TransitionScene); - olua_require(L, "cc.TransitionEaseScene", luaopen_cocos2d_TransitionEaseScene); - olua_require(L, "cc.TransitionSceneOriented", luaopen_cocos2d_TransitionSceneOriented); - olua_require(L, "cc.TransitionRotoZoom", luaopen_cocos2d_TransitionRotoZoom); - olua_require(L, "cc.TransitionJumpZoom", luaopen_cocos2d_TransitionJumpZoom); - olua_require(L, "cc.TransitionMoveInL", luaopen_cocos2d_TransitionMoveInL); - olua_require(L, "cc.TransitionMoveInR", luaopen_cocos2d_TransitionMoveInR); - olua_require(L, "cc.TransitionMoveInT", luaopen_cocos2d_TransitionMoveInT); - olua_require(L, "cc.TransitionMoveInB", luaopen_cocos2d_TransitionMoveInB); - olua_require(L, "cc.TransitionSlideInL", luaopen_cocos2d_TransitionSlideInL); - olua_require(L, "cc.TransitionSlideInR", luaopen_cocos2d_TransitionSlideInR); - olua_require(L, "cc.TransitionSlideInB", luaopen_cocos2d_TransitionSlideInB); - olua_require(L, "cc.TransitionSlideInT", luaopen_cocos2d_TransitionSlideInT); - olua_require(L, "cc.TransitionShrinkGrow", luaopen_cocos2d_TransitionShrinkGrow); - olua_require(L, "cc.TransitionFlipX", luaopen_cocos2d_TransitionFlipX); - olua_require(L, "cc.TransitionFlipY", luaopen_cocos2d_TransitionFlipY); - olua_require(L, "cc.TransitionFlipAngular", luaopen_cocos2d_TransitionFlipAngular); - olua_require(L, "cc.TransitionZoomFlipX", luaopen_cocos2d_TransitionZoomFlipX); - olua_require(L, "cc.TransitionZoomFlipY", luaopen_cocos2d_TransitionZoomFlipY); - olua_require(L, "cc.TransitionZoomFlipAngular", luaopen_cocos2d_TransitionZoomFlipAngular); - olua_require(L, "cc.TransitionFade", luaopen_cocos2d_TransitionFade); - olua_require(L, "cc.TransitionCrossFade", luaopen_cocos2d_TransitionCrossFade); - olua_require(L, "cc.TransitionTurnOffTiles", luaopen_cocos2d_TransitionTurnOffTiles); - olua_require(L, "cc.TransitionSplitCols", luaopen_cocos2d_TransitionSplitCols); - olua_require(L, "cc.TransitionSplitRows", luaopen_cocos2d_TransitionSplitRows); - olua_require(L, "cc.TransitionFadeTR", luaopen_cocos2d_TransitionFadeTR); - olua_require(L, "cc.TransitionFadeBL", luaopen_cocos2d_TransitionFadeBL); - olua_require(L, "cc.TransitionFadeUp", luaopen_cocos2d_TransitionFadeUp); - olua_require(L, "cc.TransitionFadeDown", luaopen_cocos2d_TransitionFadeDown); - olua_require(L, "cc.TransitionPageTurn", luaopen_cocos2d_TransitionPageTurn); - olua_require(L, "cc.TransitionProgress", luaopen_cocos2d_TransitionProgress); - olua_require(L, "cc.TransitionProgressRadialCCW", luaopen_cocos2d_TransitionProgressRadialCCW); - olua_require(L, "cc.TransitionProgressRadialCW", luaopen_cocos2d_TransitionProgressRadialCW); - olua_require(L, "cc.TransitionProgressHorizontal", luaopen_cocos2d_TransitionProgressHorizontal); - olua_require(L, "cc.TransitionProgressVertical", luaopen_cocos2d_TransitionProgressVertical); - olua_require(L, "cc.TransitionProgressInOut", luaopen_cocos2d_TransitionProgressInOut); - olua_require(L, "cc.TransitionProgressOutIn", luaopen_cocos2d_TransitionProgressOutIn); - olua_require(L, "cc.IMEDelegate", luaopen_cocos2d_IMEDelegate); - olua_require(L, "cc.TextFieldDelegate", luaopen_cocos2d_TextFieldDelegate); - olua_require(L, "cc.TextFieldTTF", luaopen_cocos2d_TextFieldTTF); - olua_require(L, "cc.LightType", luaopen_cocos2d_LightType); - olua_require(L, "cc.LightFlag", luaopen_cocos2d_LightFlag); - olua_require(L, "cc.BaseLight", luaopen_cocos2d_BaseLight); - olua_require(L, "cc.DirectionLight", luaopen_cocos2d_DirectionLight); - olua_require(L, "cc.PointLight", luaopen_cocos2d_PointLight); - olua_require(L, "cc.SpotLight", luaopen_cocos2d_SpotLight); - olua_require(L, "cc.AmbientLight", luaopen_cocos2d_AmbientLight); - olua_require(L, "cc.CameraFlag", luaopen_cocos2d_CameraFlag); - olua_require(L, "cc.Camera.Type", luaopen_cocos2d_Camera_Type); - olua_require(L, "cc.Camera", luaopen_cocos2d_Camera); - olua_require(L, "cc.CameraBackgroundBrush.BrushType", luaopen_cocos2d_CameraBackgroundBrush_BrushType); - olua_require(L, "cc.CameraBackgroundBrush", luaopen_cocos2d_CameraBackgroundBrush); - olua_require(L, "cc.CameraBackgroundDepthBrush", luaopen_cocos2d_CameraBackgroundDepthBrush); - olua_require(L, "cc.CameraBackgroundColorBrush", luaopen_cocos2d_CameraBackgroundColorBrush); - olua_require(L, "cc.CameraBackgroundSkyBoxBrush", luaopen_cocos2d_CameraBackgroundSkyBoxBrush); - olua_require(L, "cc.PlayableProtocol", luaopen_cocos2d_PlayableProtocol); - olua_require(L, "cc.ParticleBatchNode", luaopen_cocos2d_ParticleBatchNode); - olua_require(L, "cc.ParticleSystem.Mode", luaopen_cocos2d_ParticleSystem_Mode); - olua_require(L, "cc.ParticleSystem.PositionType", luaopen_cocos2d_ParticleSystem_PositionType); - olua_require(L, "cc.ParticleSystem", luaopen_cocos2d_ParticleSystem); - olua_require(L, "cc.ParticleSystemQuad", luaopen_cocos2d_ParticleSystemQuad); - olua_require(L, "cc.ParticleExplosion", luaopen_cocos2d_ParticleExplosion); - olua_require(L, "cc.ParticleFire", luaopen_cocos2d_ParticleFire); - olua_require(L, "cc.ParticleFireworks", luaopen_cocos2d_ParticleFireworks); - olua_require(L, "cc.ParticleFlower", luaopen_cocos2d_ParticleFlower); - olua_require(L, "cc.ParticleGalaxy", luaopen_cocos2d_ParticleGalaxy); - olua_require(L, "cc.ParticleMeteor", luaopen_cocos2d_ParticleMeteor); - olua_require(L, "cc.ParticleRain", luaopen_cocos2d_ParticleRain); - olua_require(L, "cc.ParticleSmoke", luaopen_cocos2d_ParticleSmoke); - olua_require(L, "cc.ParticleSnow", luaopen_cocos2d_ParticleSnow); - olua_require(L, "cc.ParticleSpiral", luaopen_cocos2d_ParticleSpiral); - olua_require(L, "cc.ParticleSun", luaopen_cocos2d_ParticleSun); - olua_require(L, "cc.SAXDelegator", luaopen_cocos2d_SAXDelegator); - olua_require(L, "cc.TMXTileFlags", luaopen_cocos2d_TMXTileFlags); - olua_require(L, "cc.TMXObjectGroup", luaopen_cocos2d_TMXObjectGroup); - olua_require(L, "cc.TMXLayer", luaopen_cocos2d_TMXLayer); - olua_require(L, "cc.TMXLayerInfo", luaopen_cocos2d_TMXLayerInfo); - olua_require(L, "cc.TMXMapInfo", luaopen_cocos2d_TMXMapInfo); - olua_require(L, "cc.TMXTilesetInfo", luaopen_cocos2d_TMXTilesetInfo); - olua_require(L, "cc.TMXTiledMap", luaopen_cocos2d_TMXTiledMap); - olua_require(L, "cc.FastTMXTiledMap", luaopen_cocos2d_FastTMXTiledMap); - olua_require(L, "cc.FastTMXLayer", luaopen_cocos2d_FastTMXLayer); + olua_require(L, "cc.RenderTargetFlag", _cc_RenderTargetFlag); + olua_require(L, "cc.ClearFlag", _cc_ClearFlag); + olua_require(L, "cc.MATRIX_STACK_TYPE", _cc_MATRIX_STACK_TYPE); + olua_require(L, "cc.Director.Projection", _cc_Director_Projection); + olua_require(L, "cc.UserDefault", _cc_UserDefault); + olua_require(L, "cc.Ref", _cc_Ref); + olua_require(L, "cc.Clonable", _cc_Clonable); + olua_require(L, "cc.Console", _cc_Console); + olua_require(L, "cc.Acceleration", _cc_Acceleration); + olua_require(L, "cc.Director", _cc_Director); + olua_require(L, "cc.ccSchedulerFunc", _cc_ccSchedulerFunc); + olua_require(L, "cc.Scheduler", _cc_Scheduler); + olua_require(L, "cc.EventDispatcher", _cc_EventDispatcher); + olua_require(L, "cc.EventListener.Type", _cc_EventListener_Type); + olua_require(L, "cc.EventListener", _cc_EventListener); + olua_require(L, "cc.EventListenerTouchOneByOne.ccTouchBeganCallback", _cc_EventListenerTouchOneByOne_ccTouchBeganCallback); + olua_require(L, "cc.EventListenerTouchOneByOne.ccTouchCallback", _cc_EventListenerTouchOneByOne_ccTouchCallback); + olua_require(L, "cc.EventListenerTouchOneByOne", _cc_EventListenerTouchOneByOne); + olua_require(L, "cc.EventListenerTouchAllAtOnce.ccTouchesCallback", _cc_EventListenerTouchAllAtOnce_ccTouchesCallback); + olua_require(L, "cc.EventListenerTouchAllAtOnce", _cc_EventListenerTouchAllAtOnce); + olua_require(L, "cc.EventListenerCustom", _cc_EventListenerCustom); + olua_require(L, "cc.EventListenerKeyboard", _cc_EventListenerKeyboard); + olua_require(L, "cc.EventListenerAcceleration", _cc_EventListenerAcceleration); + olua_require(L, "cc.EventListenerFocus", _cc_EventListenerFocus); + olua_require(L, "cc.EventListenerMouse", _cc_EventListenerMouse); + olua_require(L, "cc.Event.Type", _cc_Event_Type); + olua_require(L, "cc.Event", _cc_Event); + olua_require(L, "cc.EventCustom", _cc_EventCustom); + olua_require(L, "cc.EventListenerController", _cc_EventListenerController); + olua_require(L, "cc.EventTouch.EventCode", _cc_EventTouch_EventCode); + olua_require(L, "cc.EventTouch", _cc_EventTouch); + olua_require(L, "cc.EventKeyboard", _cc_EventKeyboard); + olua_require(L, "cc.EventAcceleration", _cc_EventAcceleration); + olua_require(L, "cc.EventFocus", _cc_EventFocus); + olua_require(L, "cc.EventMouse.MouseEventType", _cc_EventMouse_MouseEventType); + olua_require(L, "cc.EventMouse.MouseButton", _cc_EventMouse_MouseButton); + olua_require(L, "cc.EventMouse", _cc_EventMouse); + olua_require(L, "cc.EventKeyboard.KeyCode", _cc_EventKeyboard_KeyCode); + olua_require(L, "cc.Touch.DispatchMode", _cc_Touch_DispatchMode); + olua_require(L, "cc.EventController.ControllerEventType", _cc_EventController_ControllerEventType); + olua_require(L, "cc.EventController", _cc_EventController); + olua_require(L, "cc.Touch", _cc_Touch); + olua_require(L, "cc.Controller.Key", _cc_Controller_Key); + olua_require(L, "cc.Controller", _cc_Controller); + olua_require(L, "cc.AudioProfile", _cc_AudioProfile); + olua_require(L, "cc.AudioEngine.AudioState", _cc_AudioEngine_AudioState); + olua_require(L, "cc.AudioEngine", _cc_AudioEngine); + olua_require(L, "cc.ApplicationProtocol.Platform", _cc_ApplicationProtocol_Platform); + olua_require(L, "cc.LanguageType", _cc_LanguageType); + olua_require(L, "cc.ApplicationProtocol", _cc_ApplicationProtocol); + olua_require(L, "cc.Application", _cc_Application); + olua_require(L, "cc.Device", _cc_Device); + olua_require(L, "cc.ResizableBuffer", _cc_ResizableBuffer); + olua_require(L, "cc.FileUtils.Status", _cc_FileUtils_Status); + olua_require(L, "cc.FileUtils", _cc_FileUtils); + olua_require(L, "cc.ResolutionPolicy", _cc_ResolutionPolicy); + olua_require(L, "cc.GLView", _cc_GLView); + olua_require(L, "cc.GLViewImpl", _cc_GLViewImpl); + olua_require(L, "cc.Image.Format", _cc_Image_Format); + olua_require(L, "cc.Image", _cc_Image); + olua_require(L, "cc.Properties.Type", _cc_Properties_Type); + olua_require(L, "cc.Properties", _cc_Properties); + olua_require(L, "cc.Material", _cc_Material); + olua_require(L, "cc.Renderer", _cc_Renderer); + olua_require(L, "cc.RenderCommand.Type", _cc_RenderCommand_Type); + olua_require(L, "cc.CustomCommand.DrawType", _cc_CustomCommand_DrawType); + olua_require(L, "cc.PipelineDescriptor", _cc_PipelineDescriptor); + olua_require(L, "cc.Technique", _cc_Technique); + olua_require(L, "cc.Pass", _cc_Pass); + olua_require(L, "cc.RenderState", _cc_RenderState); + olua_require(L, "cc.RenderCommand", _cc_RenderCommand); + olua_require(L, "cc.CustomCommand", _cc_CustomCommand); + olua_require(L, "cc.MeshCommand", _cc_MeshCommand); + olua_require(L, "cc.TextureCache", _cc_TextureCache); + olua_require(L, "cc.Texture2D", _cc_Texture2D); + olua_require(L, "cc.TextureCube", _cc_TextureCube); + olua_require(L, "cc.TextureAtlas", _cc_TextureAtlas); + olua_require(L, "cc.WebSocket.ErrorCode", _cc_WebSocket_ErrorCode); + olua_require(L, "cc.WebSocket.State", _cc_WebSocket_State); + olua_require(L, "cc.WebSocket.Delegate", _cc_WebSocket_Delegate); + olua_require(L, "cc.WebSocket", _cc_WebSocket); + olua_require(L, "cc.LuaWebSocketDelegate", _cc_LuaWebSocketDelegate); + olua_require(L, "cc.ActionManager", _cc_ActionManager); + olua_require(L, "cc.Component", _cc_Component); + olua_require(L, "cc.LuaComponent", _cc_LuaComponent); + olua_require(L, "cc.Node", _cc_Node); + olua_require(L, "cc.BlendProtocol", _cc_BlendProtocol); + olua_require(L, "cc.TextureProtocol", _cc_TextureProtocol); + olua_require(L, "cc.AtlasNode", _cc_AtlasNode); + olua_require(L, "cc.sImageTGA", _cc_sImageTGA); + olua_require(L, "cc.TileMapAtlas", _cc_TileMapAtlas); + olua_require(L, "cc.ClippingNode", _cc_ClippingNode); + olua_require(L, "cc.MotionStreak", _cc_MotionStreak); + olua_require(L, "cc.ProtectedNode", _cc_ProtectedNode); + olua_require(L, "cc.DrawNode", _cc_DrawNode); + olua_require(L, "cc.ParallaxNode", _cc_ParallaxNode); + olua_require(L, "cc.TextHAlignment", _cc_TextHAlignment); + olua_require(L, "cc.TextVAlignment", _cc_TextVAlignment); + olua_require(L, "cc.GlyphCollection", _cc_GlyphCollection); + olua_require(L, "cc.LabelEffect", _cc_LabelEffect); + olua_require(L, "cc.Label.LabelType", _cc_Label_LabelType); + olua_require(L, "cc.Label.Overflow", _cc_Label_Overflow); + olua_require(L, "cc.LabelProtocol", _cc_LabelProtocol); + olua_require(L, "cc.Label", _cc_Label); + olua_require(L, "cc.LabelAtlas", _cc_LabelAtlas); + olua_require(L, "cc.FontAtlas", _cc_FontAtlas); + olua_require(L, "cc.ClippingRectangleNode", _cc_ClippingRectangleNode); + olua_require(L, "cc.RenderTexture", _cc_RenderTexture); + olua_require(L, "cc.ProgressTimer.Type", _cc_ProgressTimer_Type); + olua_require(L, "cc.ProgressTimer", _cc_ProgressTimer); + olua_require(L, "cc.AnimationFrame", _cc_AnimationFrame); + olua_require(L, "cc.Animation", _cc_Animation); + olua_require(L, "cc.SpriteFrame", _cc_SpriteFrame); + olua_require(L, "cc.Sprite", _cc_Sprite); + olua_require(L, "cc.SpriteBatchNode", _cc_SpriteBatchNode); + olua_require(L, "cc.SpriteFrameCache", _cc_SpriteFrameCache); + olua_require(L, "cc.AnimationCache", _cc_AnimationCache); + olua_require(L, "cc.Scene", _cc_Scene); + olua_require(L, "cc.Layer", _cc_Layer); + olua_require(L, "cc.LayerColor", _cc_LayerColor); + olua_require(L, "cc.LayerGradient", _cc_LayerGradient); + olua_require(L, "cc.LayerRadialGradient", _cc_LayerRadialGradient); + olua_require(L, "cc.LayerMultiplex", _cc_LayerMultiplex); + olua_require(L, "cc.TransitionScene.Orientation", _cc_TransitionScene_Orientation); + olua_require(L, "cc.TransitionScene", _cc_TransitionScene); + olua_require(L, "cc.TransitionEaseScene", _cc_TransitionEaseScene); + olua_require(L, "cc.TransitionSceneOriented", _cc_TransitionSceneOriented); + olua_require(L, "cc.TransitionRotoZoom", _cc_TransitionRotoZoom); + olua_require(L, "cc.TransitionJumpZoom", _cc_TransitionJumpZoom); + olua_require(L, "cc.TransitionMoveInL", _cc_TransitionMoveInL); + olua_require(L, "cc.TransitionMoveInR", _cc_TransitionMoveInR); + olua_require(L, "cc.TransitionMoveInT", _cc_TransitionMoveInT); + olua_require(L, "cc.TransitionMoveInB", _cc_TransitionMoveInB); + olua_require(L, "cc.TransitionSlideInL", _cc_TransitionSlideInL); + olua_require(L, "cc.TransitionSlideInR", _cc_TransitionSlideInR); + olua_require(L, "cc.TransitionSlideInB", _cc_TransitionSlideInB); + olua_require(L, "cc.TransitionSlideInT", _cc_TransitionSlideInT); + olua_require(L, "cc.TransitionShrinkGrow", _cc_TransitionShrinkGrow); + olua_require(L, "cc.TransitionFlipX", _cc_TransitionFlipX); + olua_require(L, "cc.TransitionFlipY", _cc_TransitionFlipY); + olua_require(L, "cc.TransitionFlipAngular", _cc_TransitionFlipAngular); + olua_require(L, "cc.TransitionZoomFlipX", _cc_TransitionZoomFlipX); + olua_require(L, "cc.TransitionZoomFlipY", _cc_TransitionZoomFlipY); + olua_require(L, "cc.TransitionZoomFlipAngular", _cc_TransitionZoomFlipAngular); + olua_require(L, "cc.TransitionFade", _cc_TransitionFade); + olua_require(L, "cc.TransitionCrossFade", _cc_TransitionCrossFade); + olua_require(L, "cc.TransitionTurnOffTiles", _cc_TransitionTurnOffTiles); + olua_require(L, "cc.TransitionSplitCols", _cc_TransitionSplitCols); + olua_require(L, "cc.TransitionSplitRows", _cc_TransitionSplitRows); + olua_require(L, "cc.TransitionFadeTR", _cc_TransitionFadeTR); + olua_require(L, "cc.TransitionFadeBL", _cc_TransitionFadeBL); + olua_require(L, "cc.TransitionFadeUp", _cc_TransitionFadeUp); + olua_require(L, "cc.TransitionFadeDown", _cc_TransitionFadeDown); + olua_require(L, "cc.TransitionPageTurn", _cc_TransitionPageTurn); + olua_require(L, "cc.TransitionProgress", _cc_TransitionProgress); + olua_require(L, "cc.TransitionProgressRadialCCW", _cc_TransitionProgressRadialCCW); + olua_require(L, "cc.TransitionProgressRadialCW", _cc_TransitionProgressRadialCW); + olua_require(L, "cc.TransitionProgressHorizontal", _cc_TransitionProgressHorizontal); + olua_require(L, "cc.TransitionProgressVertical", _cc_TransitionProgressVertical); + olua_require(L, "cc.TransitionProgressInOut", _cc_TransitionProgressInOut); + olua_require(L, "cc.TransitionProgressOutIn", _cc_TransitionProgressOutIn); + olua_require(L, "cc.IMEDelegate", _cc_IMEDelegate); + olua_require(L, "cc.TextFieldDelegate", _cc_TextFieldDelegate); + olua_require(L, "cc.TextFieldTTF", _cc_TextFieldTTF); + olua_require(L, "cc.LightType", _cc_LightType); + olua_require(L, "cc.LightFlag", _cc_LightFlag); + olua_require(L, "cc.BaseLight", _cc_BaseLight); + olua_require(L, "cc.DirectionLight", _cc_DirectionLight); + olua_require(L, "cc.PointLight", _cc_PointLight); + olua_require(L, "cc.SpotLight", _cc_SpotLight); + olua_require(L, "cc.AmbientLight", _cc_AmbientLight); + olua_require(L, "cc.CameraFlag", _cc_CameraFlag); + olua_require(L, "cc.Camera.Type", _cc_Camera_Type); + olua_require(L, "cc.Camera", _cc_Camera); + olua_require(L, "cc.CameraBackgroundBrush.BrushType", _cc_CameraBackgroundBrush_BrushType); + olua_require(L, "cc.CameraBackgroundBrush", _cc_CameraBackgroundBrush); + olua_require(L, "cc.CameraBackgroundDepthBrush", _cc_CameraBackgroundDepthBrush); + olua_require(L, "cc.CameraBackgroundColorBrush", _cc_CameraBackgroundColorBrush); + olua_require(L, "cc.CameraBackgroundSkyBoxBrush", _cc_CameraBackgroundSkyBoxBrush); + olua_require(L, "cc.PlayableProtocol", _cc_PlayableProtocol); + olua_require(L, "cc.ParticleBatchNode", _cc_ParticleBatchNode); + olua_require(L, "cc.ParticleSystem.Mode", _cc_ParticleSystem_Mode); + olua_require(L, "cc.ParticleSystem.PositionType", _cc_ParticleSystem_PositionType); + olua_require(L, "cc.ParticleSystem", _cc_ParticleSystem); + olua_require(L, "cc.ParticleSystemQuad", _cc_ParticleSystemQuad); + olua_require(L, "cc.ParticleExplosion", _cc_ParticleExplosion); + olua_require(L, "cc.ParticleFire", _cc_ParticleFire); + olua_require(L, "cc.ParticleFireworks", _cc_ParticleFireworks); + olua_require(L, "cc.ParticleFlower", _cc_ParticleFlower); + olua_require(L, "cc.ParticleGalaxy", _cc_ParticleGalaxy); + olua_require(L, "cc.ParticleMeteor", _cc_ParticleMeteor); + olua_require(L, "cc.ParticleRain", _cc_ParticleRain); + olua_require(L, "cc.ParticleSmoke", _cc_ParticleSmoke); + olua_require(L, "cc.ParticleSnow", _cc_ParticleSnow); + olua_require(L, "cc.ParticleSpiral", _cc_ParticleSpiral); + olua_require(L, "cc.ParticleSun", _cc_ParticleSun); + olua_require(L, "cc.SAXDelegator", _cc_SAXDelegator); + olua_require(L, "cc.TMXTileFlags", _cc_TMXTileFlags); + olua_require(L, "cc.TMXObjectGroup", _cc_TMXObjectGroup); + olua_require(L, "cc.TMXLayer", _cc_TMXLayer); + olua_require(L, "cc.TMXLayerInfo", _cc_TMXLayerInfo); + olua_require(L, "cc.TMXMapInfo", _cc_TMXMapInfo); + olua_require(L, "cc.TMXTilesetInfo", _cc_TMXTilesetInfo); + olua_require(L, "cc.TMXTiledMap", _cc_TMXTiledMap); + olua_require(L, "cc.FastTMXTiledMap", _cc_FastTMXTiledMap); + olua_require(L, "cc.FastTMXLayer", _cc_FastTMXLayer); #if CC_USE_NAVMESH - olua_require(L, "cc.NavMeshAgent.NavMeshAgentSyncFlag", luaopen_cocos2d_NavMeshAgent_NavMeshAgentSyncFlag); - olua_require(L, "cc.NavMeshAgent", luaopen_cocos2d_NavMeshAgent); - olua_require(L, "cc.NavMeshObstacle.NavMeshObstacleSyncFlag", luaopen_cocos2d_NavMeshObstacle_NavMeshObstacleSyncFlag); - olua_require(L, "cc.NavMeshObstacle", luaopen_cocos2d_NavMeshObstacle); - olua_require(L, "cc.NavMesh", luaopen_cocos2d_NavMesh); + olua_require(L, "cc.NavMeshAgent.NavMeshAgentSyncFlag", _cc_NavMeshAgent_NavMeshAgentSyncFlag); + olua_require(L, "cc.NavMeshAgent", _cc_NavMeshAgent); + olua_require(L, "cc.NavMeshObstacle.NavMeshObstacleSyncFlag", _cc_NavMeshObstacle_NavMeshObstacleSyncFlag); + olua_require(L, "cc.NavMeshObstacle", _cc_NavMeshObstacle); + olua_require(L, "cc.NavMesh", _cc_NavMesh); #endif return 0; diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d.h b/frameworks/cclua/src/lua-bindings/lua_cocos2d.h index c5568d85..9effce50 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d.h +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_COCOS2D_H__ #define __AUTO_GEN_LUA_COCOS2D_H__ diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_3d.cpp b/frameworks/cclua/src/lua-bindings/lua_cocos2d_3d.cpp index 53867af0..ea35b60d 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_3d.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_3d.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_cocos2d_3d.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -160,8 +160,7 @@ static int _cocos2d_MeshVertexAttrib_vertexAttrib(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_MeshVertexAttrib(lua_State *L) +static int _cc_MeshVertexAttrib(lua_State *L) { oluacls_class(L, "cc.MeshVertexAttrib"); oluacls_func(L, "__gc", _cocos2d_MeshVertexAttrib___gc); @@ -173,10 +172,19 @@ OLUA_LIB int luaopen_cocos2d_MeshVertexAttrib(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_NTextureData_Usage(lua_State *L) +OLUA_LIB int luaopen_cc_MeshVertexAttrib(lua_State *L) +{ + olua_require(L, "cocos2d_3d", luaopen_cocos2d_3d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::MeshVertexAttrib"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_NTextureData_Usage(lua_State *L) { oluacls_class(L, "cc.NTextureData.Usage"); oluacls_func(L, "__index", olua_indexerror); @@ -195,10 +203,19 @@ OLUA_LIB int luaopen_cocos2d_NTextureData_Usage(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_shaderinfos_VertexKey(lua_State *L) +OLUA_LIB int luaopen_cc_NTextureData_Usage(lua_State *L) +{ + olua_require(L, "cocos2d_3d", luaopen_cocos2d_3d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::NTextureData::Usage"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_VertexKey(lua_State *L) { oluacls_class(L, "cc.VertexKey"); oluacls_func(L, "__index", olua_indexerror); @@ -220,10 +237,19 @@ OLUA_LIB int luaopen_cocos2d_shaderinfos_VertexKey(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_shaderinfos_Uniformkey(lua_State *L) +OLUA_LIB int luaopen_cc_VertexKey(lua_State *L) +{ + olua_require(L, "cocos2d_3d", luaopen_cocos2d_3d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::shaderinfos::VertexKey"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_Uniformkey(lua_State *L) { oluacls_class(L, "cc.Uniformkey"); oluacls_func(L, "__index", olua_indexerror); @@ -247,6 +273,16 @@ OLUA_LIB int luaopen_cocos2d_shaderinfos_Uniformkey(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Uniformkey(lua_State *L) +{ + olua_require(L, "cocos2d_3d", luaopen_cocos2d_3d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::shaderinfos::Uniformkey"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_NTextureData___gc(lua_State *L) @@ -553,8 +589,7 @@ static int _cocos2d_NTextureData_wrapT(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_NTextureData(lua_State *L) +static int _cc_NTextureData(lua_State *L) { oluacls_class(L, "cc.NTextureData"); oluacls_func(L, "__gc", _cocos2d_NTextureData___gc); @@ -567,6 +602,16 @@ OLUA_LIB int luaopen_cocos2d_NTextureData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_NTextureData(lua_State *L) +{ + olua_require(L, "cocos2d_3d", luaopen_cocos2d_3d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::NTextureData"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Mesh_calculateAABB(lua_State *L) @@ -673,10 +718,10 @@ static int _cocos2d_Mesh_draw(lua_State *L) cocos2d::Mesh *self = nullptr; cocos2d::Renderer *arg1 = nullptr; /** renderer */ float arg2 = 0; /** globalZ */ - cocos2d::Mat4 arg3; /** transform */ + cocos2d::Mat4 *arg3; /** transform */ uint32_t arg4 = 0; /** flags */ unsigned int arg5 = 0; /** lightMask */ - cocos2d::Vec4 arg6; /** color */ + cocos2d::Vec4 *arg6; /** color */ bool arg7 = false; /** forceDepthWrite */ olua_to_object(L, 1, &self, "cc.Mesh"); @@ -689,7 +734,7 @@ static int _cocos2d_Mesh_draw(lua_State *L) olua_check_bool(L, 8, &arg7); // void draw(cocos2d::Renderer *renderer, float globalZ, const cocos2d::Mat4 &transform, uint32_t flags, unsigned int lightMask, const cocos2d::Vec4 &color, bool forceDepthWrite) - self->draw(arg1, arg2, arg3, arg4, arg5, arg6, arg7); + self->draw(arg1, arg2, *arg3, arg4, arg5, *arg6, arg7); olua_endinvoke(L); @@ -1048,13 +1093,13 @@ static int _cocos2d_Mesh_setBlendFunc(lua_State *L) olua_startinvoke(L); cocos2d::Mesh *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "cc.Mesh"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -1307,8 +1352,7 @@ static int _cocos2d_Mesh_setVisible(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Mesh(lua_State *L) +static int _cc_Mesh(lua_State *L) { oluacls_class(L, "cc.Mesh"); oluacls_func(L, "calculateAABB", _cocos2d_Mesh_calculateAABB); @@ -1357,6 +1401,16 @@ OLUA_LIB int luaopen_cocos2d_Mesh(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Mesh(lua_State *L) +{ + olua_require(L, "cocos2d_3d", luaopen_cocos2d_3d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Mesh"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_MeshSkin_addSkinBone(lua_State *L) @@ -1568,8 +1622,7 @@ static int _cocos2d_MeshSkin_removeAllBones(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_MeshSkin(lua_State *L) +static int _cc_MeshSkin(lua_State *L) { oluacls_class(L, "cc.MeshSkin"); oluacls_func(L, "addSkinBone", _cocos2d_MeshSkin_addSkinBone); @@ -1592,10 +1645,19 @@ OLUA_LIB int luaopen_cocos2d_MeshSkin(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_BillBoard_Mode(lua_State *L) +OLUA_LIB int luaopen_cc_MeshSkin(lua_State *L) +{ + olua_require(L, "cocos2d_3d", luaopen_cocos2d_3d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::MeshSkin"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_BillBoard_Mode(lua_State *L) { oluacls_class(L, "cc.BillBoard.Mode"); oluacls_func(L, "__index", olua_indexerror); @@ -1605,6 +1667,16 @@ OLUA_LIB int luaopen_cocos2d_BillBoard_Mode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_BillBoard_Mode(lua_State *L) +{ + olua_require(L, "cocos2d_3d", luaopen_cocos2d_3d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::BillBoard::Mode"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_BillBoard_create$1(lua_State *L) @@ -1678,7 +1750,7 @@ static int _cocos2d_BillBoard_create$5(lua_State *L) olua_startinvoke(L); std::string arg1; /** filename */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ cocos2d::BillBoard::Mode arg3 = (cocos2d::BillBoard::Mode)0; /** mode */ olua_check_string(L, 1, &arg1); @@ -1686,7 +1758,7 @@ static int _cocos2d_BillBoard_create$5(lua_State *L) olua_check_enum(L, 3, &arg3); // static cocos2d::BillBoard *create(const std::string &filename, const cocos2d::Rect &rect, @optional cocos2d::BillBoard::Mode mode) - cocos2d::BillBoard *ret = cocos2d::BillBoard::create(arg1, arg2, arg3); + cocos2d::BillBoard *ret = cocos2d::BillBoard::create(arg1, *arg2, arg3); int num_ret = olua_push_object(L, ret, "cc.BillBoard"); olua_endinvoke(L); @@ -1699,13 +1771,13 @@ static int _cocos2d_BillBoard_create$6(lua_State *L) olua_startinvoke(L); std::string arg1; /** filename */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ olua_check_string(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Rect"); // static cocos2d::BillBoard *create(const std::string &filename, const cocos2d::Rect &rect) - cocos2d::BillBoard *ret = cocos2d::BillBoard::create(arg1, arg2); + cocos2d::BillBoard *ret = cocos2d::BillBoard::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.BillBoard"); olua_endinvoke(L); @@ -1866,8 +1938,7 @@ static int _cocos2d_BillBoard_setMode(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_BillBoard(lua_State *L) +static int _cc_BillBoard(lua_State *L) { oluacls_class(L, "cc.BillBoard"); oluacls_func(L, "create", _cocos2d_BillBoard_create); @@ -1879,10 +1950,19 @@ OLUA_LIB int luaopen_cocos2d_BillBoard(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Sprite3DMaterial_MaterialType(lua_State *L) +OLUA_LIB int luaopen_cc_BillBoard(lua_State *L) +{ + olua_require(L, "cocos2d_3d", luaopen_cocos2d_3d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::BillBoard"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_Sprite3DMaterial_MaterialType(lua_State *L) { oluacls_class(L, "cc.Sprite3DMaterial.MaterialType"); oluacls_func(L, "__index", olua_indexerror); @@ -1897,6 +1977,16 @@ OLUA_LIB int luaopen_cocos2d_Sprite3DMaterial_MaterialType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Sprite3DMaterial_MaterialType(lua_State *L) +{ + olua_require(L, "cocos2d_3d", luaopen_cocos2d_3d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Sprite3DMaterial::MaterialType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Sprite3DMaterial_createBuiltInMaterial$1(lua_State *L) @@ -2046,8 +2136,7 @@ static int _cocos2d_Sprite3DMaterial_setTexture(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Sprite3DMaterial(lua_State *L) +static int _cc_Sprite3DMaterial(lua_State *L) { oluacls_class(L, "cc.Sprite3DMaterial"); oluacls_func(L, "createBuiltInMaterial", _cocos2d_Sprite3DMaterial_createBuiltInMaterial); @@ -2061,6 +2150,16 @@ OLUA_LIB int luaopen_cocos2d_Sprite3DMaterial(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Sprite3DMaterial(lua_State *L) +{ + olua_require(L, "cocos2d_3d", luaopen_cocos2d_3d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Sprite3DMaterial"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Sprite3D_addMesh(lua_State *L) @@ -2220,7 +2319,7 @@ static int _cocos2d_Sprite3D_createAsync$1(lua_State *L) std::string cb_tag = "createAsync"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](cocos2d::Sprite3D *arg1, void *arg2) { + arg2 = [cb_store, cb_name, cb_ctx](cocos2d::Sprite3D *cb_arg1, void *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -2228,8 +2327,8 @@ static int _cocos2d_Sprite3D_createAsync$1(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Sprite3D"); - olua_push_object(L, arg2, "void *"); + olua_push_object(L, cb_arg1, "cc.Sprite3D"); + olua_push_object(L, cb_arg2, "void *"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -2266,7 +2365,7 @@ static int _cocos2d_Sprite3D_createAsync$2(lua_State *L) std::string cb_tag = "createAsync"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg3 = [cb_store, cb_name, cb_ctx](cocos2d::Sprite3D *arg1, void *arg2) { + arg3 = [cb_store, cb_name, cb_ctx](cocos2d::Sprite3D *cb_arg1, void *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -2274,8 +2373,8 @@ static int _cocos2d_Sprite3D_createAsync$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Sprite3D"); - olua_push_object(L, arg2, "void *"); + olua_push_object(L, cb_arg1, "cc.Sprite3D"); + olua_push_object(L, cb_arg2, "void *"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -2697,13 +2796,13 @@ static int _cocos2d_Sprite3D_setBlendFunc(lua_State *L) olua_startinvoke(L); cocos2d::Sprite3D *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "cc.Sprite3D"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -2918,8 +3017,7 @@ static int _cocos2d_Sprite3D_setTexture(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Sprite3D(lua_State *L) +static int _cc_Sprite3D(lua_State *L) { oluacls_class(L, "cc.Sprite3D"); oluacls_func(L, "addMesh", _cocos2d_Sprite3D_addMesh); @@ -2964,6 +3062,16 @@ OLUA_LIB int luaopen_cocos2d_Sprite3D(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Sprite3D(lua_State *L) +{ + olua_require(L, "cocos2d_3d", luaopen_cocos2d_3d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Sprite3D"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_AttachNode_create(lua_State *L) @@ -2997,8 +3105,7 @@ static int _cocos2d_AttachNode_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_AttachNode(lua_State *L) +static int _cc_AttachNode(lua_State *L) { oluacls_class(L, "cc.AttachNode"); oluacls_func(L, "create", _cocos2d_AttachNode_create); @@ -3006,6 +3113,16 @@ OLUA_LIB int luaopen_cocos2d_AttachNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_AttachNode(lua_State *L) +{ + olua_require(L, "cocos2d_3d", luaopen_cocos2d_3d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::AttachNode"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Bone3D_addChildBone(lua_State *L) @@ -3338,13 +3455,13 @@ static int _cocos2d_Bone3D_setInverseBindPose(lua_State *L) olua_startinvoke(L); cocos2d::Bone3D *self = nullptr; - cocos2d::Mat4 arg1; /** m */ + cocos2d::Mat4 *arg1; /** m */ olua_to_object(L, 1, &self, "cc.Bone3D"); olua_check_object(L, 2, &arg1, "cc.Mat4"); // void setInverseBindPose(const cocos2d::Mat4 &m) - self->setInverseBindPose(arg1); + self->setInverseBindPose(*arg1); olua_endinvoke(L); @@ -3356,13 +3473,13 @@ static int _cocos2d_Bone3D_setOriPose(lua_State *L) olua_startinvoke(L); cocos2d::Bone3D *self = nullptr; - cocos2d::Mat4 arg1; /** m */ + cocos2d::Mat4 *arg1; /** m */ olua_to_object(L, 1, &self, "cc.Bone3D"); olua_check_object(L, 2, &arg1, "cc.Mat4"); // void setOriPose(const cocos2d::Mat4 &m) - self->setOriPose(arg1); + self->setOriPose(*arg1); olua_endinvoke(L); @@ -3403,8 +3520,7 @@ static int _cocos2d_Bone3D_updateWorldMat(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Bone3D(lua_State *L) +static int _cc_Bone3D(lua_State *L) { oluacls_class(L, "cc.Bone3D"); oluacls_func(L, "addChildBone", _cocos2d_Bone3D_addChildBone); @@ -3433,6 +3549,16 @@ OLUA_LIB int luaopen_cocos2d_Bone3D(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Bone3D(lua_State *L) +{ + olua_require(L, "cocos2d_3d", luaopen_cocos2d_3d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Bone3D"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Skeleton3D_addBone(lua_State *L) @@ -3609,8 +3735,7 @@ static int _cocos2d_Skeleton3D_updateBoneMatrix(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Skeleton3D(lua_State *L) +static int _cc_Skeleton3D(lua_State *L) { oluacls_class(L, "cc.Skeleton3D"); oluacls_func(L, "addBone", _cocos2d_Skeleton3D_addBone); @@ -3628,26 +3753,36 @@ OLUA_LIB int luaopen_cocos2d_Skeleton3D(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Skeleton3D(lua_State *L) +{ + olua_require(L, "cocos2d_3d", luaopen_cocos2d_3d); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Skeleton3D"); + } + return 1; +} OLUA_END_DECLS OLUA_BEGIN_DECLS OLUA_LIB int luaopen_cocos2d_3d(lua_State *L) { - olua_require(L, "cc.MeshVertexAttrib", luaopen_cocos2d_MeshVertexAttrib); - olua_require(L, "cc.NTextureData.Usage", luaopen_cocos2d_NTextureData_Usage); - olua_require(L, "cc.VertexKey", luaopen_cocos2d_shaderinfos_VertexKey); - olua_require(L, "cc.Uniformkey", luaopen_cocos2d_shaderinfos_Uniformkey); - olua_require(L, "cc.NTextureData", luaopen_cocos2d_NTextureData); - olua_require(L, "cc.Mesh", luaopen_cocos2d_Mesh); - olua_require(L, "cc.MeshSkin", luaopen_cocos2d_MeshSkin); - olua_require(L, "cc.BillBoard.Mode", luaopen_cocos2d_BillBoard_Mode); - olua_require(L, "cc.BillBoard", luaopen_cocos2d_BillBoard); - olua_require(L, "cc.Sprite3DMaterial.MaterialType", luaopen_cocos2d_Sprite3DMaterial_MaterialType); - olua_require(L, "cc.Sprite3DMaterial", luaopen_cocos2d_Sprite3DMaterial); - olua_require(L, "cc.Sprite3D", luaopen_cocos2d_Sprite3D); - olua_require(L, "cc.AttachNode", luaopen_cocos2d_AttachNode); - olua_require(L, "cc.Bone3D", luaopen_cocos2d_Bone3D); - olua_require(L, "cc.Skeleton3D", luaopen_cocos2d_Skeleton3D); + olua_require(L, "cc.MeshVertexAttrib", _cc_MeshVertexAttrib); + olua_require(L, "cc.NTextureData.Usage", _cc_NTextureData_Usage); + olua_require(L, "cc.VertexKey", _cc_VertexKey); + olua_require(L, "cc.Uniformkey", _cc_Uniformkey); + olua_require(L, "cc.NTextureData", _cc_NTextureData); + olua_require(L, "cc.Mesh", _cc_Mesh); + olua_require(L, "cc.MeshSkin", _cc_MeshSkin); + olua_require(L, "cc.BillBoard.Mode", _cc_BillBoard_Mode); + olua_require(L, "cc.BillBoard", _cc_BillBoard); + olua_require(L, "cc.Sprite3DMaterial.MaterialType", _cc_Sprite3DMaterial_MaterialType); + olua_require(L, "cc.Sprite3DMaterial", _cc_Sprite3DMaterial); + olua_require(L, "cc.Sprite3D", _cc_Sprite3D); + olua_require(L, "cc.AttachNode", _cc_AttachNode); + olua_require(L, "cc.Bone3D", _cc_Bone3D); + olua_require(L, "cc.Skeleton3D", _cc_Skeleton3D); return 0; } diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_3d.h b/frameworks/cclua/src/lua-bindings/lua_cocos2d_3d.h index e27b565b..71540cbf 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_3d.h +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_3d.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_COCOS2D_3D_H__ #define __AUTO_GEN_LUA_COCOS2D_3D_H__ diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_action.cpp b/frameworks/cclua/src/lua-bindings/lua_cocos2d_action.cpp index f3d161eb..2a3fdcec 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_action.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_action.cpp @@ -1,13 +1,12 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_cocos2d_action.h" #include "lua-bindings/lua_cocos2d_types.h" #include "lua-bindings/lua_conv_manual.h" #include "cocos2d.h" -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_tweenfunc_TweenType(lua_State *L) +static int _cc_tweenfunc_TweenType(lua_State *L) { oluacls_class(L, "cc.tweenfunc.TweenType"); oluacls_func(L, "__index", olua_indexerror); @@ -48,6 +47,16 @@ OLUA_LIB int luaopen_cocos2d_tweenfunc_TweenType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_tweenfunc_TweenType(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::tweenfunc::TweenType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Action_as(lua_State *L) @@ -356,8 +365,7 @@ static int _cocos2d_Action_update(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Action(lua_State *L) +static int _cc_Action(lua_State *L) { oluacls_class(L, "cc.Action"); oluacls_func(L, "as", _cocos2d_Action_as); @@ -386,6 +394,16 @@ OLUA_LIB int luaopen_cocos2d_Action(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Action(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Action"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ActionTweenDelegate___gc(lua_State *L) @@ -432,8 +450,7 @@ static int _cocos2d_ActionTweenDelegate_updateTweenAction(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ActionTweenDelegate(lua_State *L) +static int _cc_ActionTweenDelegate(lua_State *L) { oluacls_class(L, "cc.ActionTweenDelegate"); oluacls_func(L, "__gc", _cocos2d_ActionTweenDelegate___gc); @@ -442,6 +459,16 @@ OLUA_LIB int luaopen_cocos2d_ActionTweenDelegate(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ActionTweenDelegate(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ActionTweenDelegate"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FiniteTimeAction_getDuration(lua_State *L) @@ -479,8 +506,7 @@ static int _cocos2d_FiniteTimeAction_setDuration(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FiniteTimeAction(lua_State *L) +static int _cc_FiniteTimeAction(lua_State *L) { oluacls_class(L, "cc.FiniteTimeAction"); oluacls_func(L, "getDuration", _cocos2d_FiniteTimeAction_getDuration); @@ -489,6 +515,16 @@ OLUA_LIB int luaopen_cocos2d_FiniteTimeAction(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FiniteTimeAction(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FiniteTimeAction"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Speed_create(lua_State *L) @@ -589,8 +625,7 @@ static int _cocos2d_Speed_setSpeed(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Speed(lua_State *L) +static int _cc_Speed(lua_State *L) { oluacls_class(L, "cc.Speed"); oluacls_func(L, "create", _cocos2d_Speed_create); @@ -603,6 +638,16 @@ OLUA_LIB int luaopen_cocos2d_Speed(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Speed(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Speed"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Follow_create$1(lua_State *L) @@ -610,13 +655,13 @@ static int _cocos2d_Follow_create$1(lua_State *L) olua_startinvoke(L); cocos2d::Node *arg1 = nullptr; /** followedNode */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ olua_check_object(L, 1, &arg1, "cc.Node"); olua_check_object(L, 2, &arg2, "cc.Rect"); // static cocos2d::Follow *create(cocos2d::Node *followedNode, @optional const cocos2d::Rect &rect) - cocos2d::Follow *ret = cocos2d::Follow::create(arg1, arg2); + cocos2d::Follow *ret = cocos2d::Follow::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.Follow"); olua_endinvoke(L); @@ -671,7 +716,7 @@ static int _cocos2d_Follow_createWithOffset$1(lua_State *L) cocos2d::Node *arg1 = nullptr; /** followedNode */ float arg2 = 0; /** xOffset */ float arg3 = 0; /** yOffset */ - cocos2d::Rect arg4; /** rect */ + cocos2d::Rect *arg4; /** rect */ olua_check_object(L, 1, &arg1, "cc.Node"); olua_check_number(L, 2, &arg2); @@ -679,7 +724,7 @@ static int _cocos2d_Follow_createWithOffset$1(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Rect"); // static cocos2d::Follow *createWithOffset(cocos2d::Node *followedNode, float xOffset, float yOffset, @optional const cocos2d::Rect &rect) - cocos2d::Follow *ret = cocos2d::Follow::createWithOffset(arg1, arg2, arg3, arg4); + cocos2d::Follow *ret = cocos2d::Follow::createWithOffset(arg1, arg2, arg3, *arg4); int num_ret = olua_push_object(L, ret, "cc.Follow"); olua_endinvoke(L); @@ -737,14 +782,14 @@ static int _cocos2d_Follow_initWithTarget$1(lua_State *L) cocos2d::Follow *self = nullptr; cocos2d::Node *arg1 = nullptr; /** followedNode */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ olua_to_object(L, 1, &self, "cc.Follow"); olua_check_object(L, 2, &arg1, "cc.Node"); olua_check_object(L, 3, &arg2, "cc.Rect"); // bool initWithTarget(cocos2d::Node *followedNode, @optional const cocos2d::Rect &rect) - bool ret = self->initWithTarget(arg1, arg2); + bool ret = self->initWithTarget(arg1, *arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -802,7 +847,7 @@ static int _cocos2d_Follow_initWithTargetAndOffset$1(lua_State *L) cocos2d::Node *arg1 = nullptr; /** followedNode */ float arg2 = 0; /** xOffset */ float arg3 = 0; /** yOffset */ - cocos2d::Rect arg4; /** rect */ + cocos2d::Rect *arg4; /** rect */ olua_to_object(L, 1, &self, "cc.Follow"); olua_check_object(L, 2, &arg1, "cc.Node"); @@ -811,7 +856,7 @@ static int _cocos2d_Follow_initWithTargetAndOffset$1(lua_State *L) olua_check_object(L, 5, &arg4, "cc.Rect"); // bool initWithTargetAndOffset(cocos2d::Node *followedNode, float xOffset, float yOffset, @optional const cocos2d::Rect &rect) - bool ret = self->initWithTargetAndOffset(arg1, arg2, arg3, arg4); + bool ret = self->initWithTargetAndOffset(arg1, arg2, arg3, *arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -900,8 +945,7 @@ static int _cocos2d_Follow_setBoundarySet(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Follow(lua_State *L) +static int _cc_Follow(lua_State *L) { oluacls_class(L, "cc.Follow"); oluacls_func(L, "create", _cocos2d_Follow_create); @@ -914,6 +958,16 @@ OLUA_LIB int luaopen_cocos2d_Follow(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Follow(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Follow"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_tweenfunc_backEaseIn(lua_State *L) @@ -1622,8 +1676,7 @@ static int _cocos2d_tweenfunc_tweenTo(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_tweenfunc(lua_State *L) +static int _cc_tweenfunc(lua_State *L) { oluacls_class(L, "cc.tweenfunc", nullptr); oluacls_func(L, "backEaseIn", _cocos2d_tweenfunc_backEaseIn); @@ -1669,6 +1722,16 @@ OLUA_LIB int luaopen_cocos2d_tweenfunc(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_tweenfunc(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::tweenfunc"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ActionInterval_getAmplitudeRate(lua_State *L) @@ -1723,8 +1786,7 @@ static int _cocos2d_ActionInterval_setAmplitudeRate(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ActionInterval(lua_State *L) +static int _cc_ActionInterval(lua_State *L) { oluacls_class(L, "cc.ActionInterval"); oluacls_func(L, "getAmplitudeRate", _cocos2d_ActionInterval_getAmplitudeRate); @@ -1735,6 +1797,16 @@ OLUA_LIB int luaopen_cocos2d_ActionInterval(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ActionInterval(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ActionInterval"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ActionTween_create(lua_State *L) @@ -1760,14 +1832,23 @@ static int _cocos2d_ActionTween_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ActionTween(lua_State *L) +static int _cc_ActionTween(lua_State *L) { oluacls_class(L, "cc.ActionTween"); oluacls_func(L, "create", _cocos2d_ActionTween_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ActionTween(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ActionTween"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Sequence_create$1(lua_State *L) @@ -2696,8 +2777,7 @@ static int _cocos2d_Sequence_createWithTwoActions(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Sequence(lua_State *L) +static int _cc_Sequence(lua_State *L) { oluacls_class(L, "cc.Sequence"); oluacls_func(L, "create", _cocos2d_Sequence_create); @@ -2705,6 +2785,16 @@ OLUA_LIB int luaopen_cocos2d_Sequence(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Sequence(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Sequence"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Repeat_create(lua_State *L) @@ -2770,8 +2860,7 @@ static int _cocos2d_Repeat_setInnerAction(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Repeat(lua_State *L) +static int _cc_Repeat(lua_State *L) { oluacls_class(L, "cc.Repeat"); oluacls_func(L, "create", _cocos2d_Repeat_create); @@ -2781,6 +2870,16 @@ OLUA_LIB int luaopen_cocos2d_Repeat(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Repeat(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Repeat"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_RepeatForever_create(lua_State *L) @@ -2844,8 +2943,7 @@ static int _cocos2d_RepeatForever_setInnerAction(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_RepeatForever(lua_State *L) +static int _cc_RepeatForever(lua_State *L) { oluacls_class(L, "cc.RepeatForever"); oluacls_func(L, "create", _cocos2d_RepeatForever_create); @@ -2855,6 +2953,16 @@ OLUA_LIB int luaopen_cocos2d_RepeatForever(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_RepeatForever(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::RepeatForever"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Spawn_create$1(lua_State *L) @@ -3783,8 +3891,7 @@ static int _cocos2d_Spawn_createWithTwoActions(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Spawn(lua_State *L) +static int _cc_Spawn(lua_State *L) { oluacls_class(L, "cc.Spawn"); oluacls_func(L, "create", _cocos2d_Spawn_create); @@ -3792,6 +3899,16 @@ OLUA_LIB int luaopen_cocos2d_Spawn(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Spawn(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Spawn"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_RotateTo_create$1(lua_State *L) @@ -3839,13 +3956,13 @@ static int _cocos2d_RotateTo_create$3(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Vec3 arg2; /** dstAngle3D */ + cocos2d::Vec3 *arg2; /** dstAngle3D */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Vec3"); // static cocos2d::RotateTo *create(float duration, const cocos2d::Vec3 &dstAngle3D) - cocos2d::RotateTo *ret = cocos2d::RotateTo::create(arg1, arg2); + cocos2d::RotateTo *ret = cocos2d::RotateTo::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.RotateTo"); olua_endinvoke(L); @@ -3881,14 +3998,23 @@ static int _cocos2d_RotateTo_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_RotateTo(lua_State *L) +static int _cc_RotateTo(lua_State *L) { oluacls_class(L, "cc.RotateTo"); oluacls_func(L, "create", _cocos2d_RotateTo_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_RotateTo(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::RotateTo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_RotateFrom_create$1(lua_State *L) @@ -3936,13 +4062,13 @@ static int _cocos2d_RotateFrom_create$3(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Vec3 arg2; /** fromAngle3D */ + cocos2d::Vec3 *arg2; /** fromAngle3D */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Vec3"); // static cocos2d::RotateFrom *create(float duration, const cocos2d::Vec3 &fromAngle3D) - cocos2d::RotateFrom *ret = cocos2d::RotateFrom::create(arg1, arg2); + cocos2d::RotateFrom *ret = cocos2d::RotateFrom::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.RotateFrom"); olua_endinvoke(L); @@ -3978,14 +4104,23 @@ static int _cocos2d_RotateFrom_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_RotateFrom(lua_State *L) +static int _cc_RotateFrom(lua_State *L) { oluacls_class(L, "cc.RotateFrom"); oluacls_func(L, "create", _cocos2d_RotateFrom_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_RotateFrom(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::RotateFrom"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_RotateBy_create$1(lua_State *L) @@ -4033,13 +4168,13 @@ static int _cocos2d_RotateBy_create$3(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Vec3 arg2; /** deltaAngle3D */ + cocos2d::Vec3 *arg2; /** deltaAngle3D */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Vec3"); // static cocos2d::RotateBy *create(float duration, const cocos2d::Vec3 &deltaAngle3D) - cocos2d::RotateBy *ret = cocos2d::RotateBy::create(arg1, arg2); + cocos2d::RotateBy *ret = cocos2d::RotateBy::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.RotateBy"); olua_endinvoke(L); @@ -4075,14 +4210,23 @@ static int _cocos2d_RotateBy_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_RotateBy(lua_State *L) +static int _cc_RotateBy(lua_State *L) { oluacls_class(L, "cc.RotateBy"); oluacls_func(L, "create", _cocos2d_RotateBy_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_RotateBy(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::RotateBy"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_MoveBy_create$1(lua_State *L) @@ -4090,13 +4234,13 @@ static int _cocos2d_MoveBy_create$1(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Vec2 arg2; /** deltaPosition */ + cocos2d::Vec2 *arg2; /** deltaPosition */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Vec2"); // static cocos2d::MoveBy *create(float duration, const cocos2d::Vec2 &deltaPosition) - cocos2d::MoveBy *ret = cocos2d::MoveBy::create(arg1, arg2); + cocos2d::MoveBy *ret = cocos2d::MoveBy::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.MoveBy"); olua_endinvoke(L); @@ -4109,13 +4253,13 @@ static int _cocos2d_MoveBy_create$2(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Vec3 arg2; /** deltaPosition */ + cocos2d::Vec3 *arg2; /** deltaPosition */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Vec3"); // static cocos2d::MoveBy *create(float duration, const cocos2d::Vec3 &deltaPosition) - cocos2d::MoveBy *ret = cocos2d::MoveBy::create(arg1, arg2); + cocos2d::MoveBy *ret = cocos2d::MoveBy::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.MoveBy"); olua_endinvoke(L); @@ -4196,14 +4340,23 @@ static int _cocos2d_MoveBy_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_MoveBy(lua_State *L) +static int _cc_MoveBy(lua_State *L) { oluacls_class(L, "cc.MoveBy"); oluacls_func(L, "create", _cocos2d_MoveBy_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_MoveBy(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::MoveBy"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_MoveTo_create$1(lua_State *L) @@ -4211,13 +4364,13 @@ static int _cocos2d_MoveTo_create$1(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Vec2 arg2; /** position */ + cocos2d::Vec2 *arg2; /** position */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Vec2"); // static cocos2d::MoveTo *create(float duration, const cocos2d::Vec2 &position) - cocos2d::MoveTo *ret = cocos2d::MoveTo::create(arg1, arg2); + cocos2d::MoveTo *ret = cocos2d::MoveTo::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.MoveTo"); olua_endinvoke(L); @@ -4230,13 +4383,13 @@ static int _cocos2d_MoveTo_create$2(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Vec3 arg2; /** position */ + cocos2d::Vec3 *arg2; /** position */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Vec3"); // static cocos2d::MoveTo *create(float duration, const cocos2d::Vec3 &position) - cocos2d::MoveTo *ret = cocos2d::MoveTo::create(arg1, arg2); + cocos2d::MoveTo *ret = cocos2d::MoveTo::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.MoveTo"); olua_endinvoke(L); @@ -4317,14 +4470,23 @@ static int _cocos2d_MoveTo_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_MoveTo(lua_State *L) +static int _cc_MoveTo(lua_State *L) { oluacls_class(L, "cc.MoveTo"); oluacls_func(L, "create", _cocos2d_MoveTo_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_MoveTo(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::MoveTo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_MoveFrom_create$1(lua_State *L) @@ -4332,13 +4494,13 @@ static int _cocos2d_MoveFrom_create$1(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Vec2 arg2; /** position */ + cocos2d::Vec2 *arg2; /** position */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Vec2"); // static cocos2d::MoveFrom *create(float duration, const cocos2d::Vec2 &position) - cocos2d::MoveFrom *ret = cocos2d::MoveFrom::create(arg1, arg2); + cocos2d::MoveFrom *ret = cocos2d::MoveFrom::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.MoveFrom"); olua_endinvoke(L); @@ -4351,13 +4513,13 @@ static int _cocos2d_MoveFrom_create$2(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Vec3 arg2; /** position */ + cocos2d::Vec3 *arg2; /** position */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Vec3"); // static cocos2d::MoveFrom *create(float duration, const cocos2d::Vec3 &position) - cocos2d::MoveFrom *ret = cocos2d::MoveFrom::create(arg1, arg2); + cocos2d::MoveFrom *ret = cocos2d::MoveFrom::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.MoveFrom"); olua_endinvoke(L); @@ -4438,14 +4600,23 @@ static int _cocos2d_MoveFrom_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_MoveFrom(lua_State *L) +static int _cc_MoveFrom(lua_State *L) { oluacls_class(L, "cc.MoveFrom"); oluacls_func(L, "create", _cocos2d_MoveFrom_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_MoveFrom(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::MoveFrom"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_SkewTo_create(lua_State *L) @@ -4469,14 +4640,23 @@ static int _cocos2d_SkewTo_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_SkewTo(lua_State *L) +static int _cc_SkewTo(lua_State *L) { oluacls_class(L, "cc.SkewTo"); oluacls_func(L, "create", _cocos2d_SkewTo_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_SkewTo(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::SkewTo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_SkewBy_create(lua_State *L) @@ -4500,14 +4680,23 @@ static int _cocos2d_SkewBy_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_SkewBy(lua_State *L) +static int _cc_SkewBy(lua_State *L) { oluacls_class(L, "cc.SkewBy"); oluacls_func(L, "create", _cocos2d_SkewBy_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_SkewBy(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::SkewBy"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ResizeTo_create(lua_State *L) @@ -4515,13 +4704,13 @@ static int _cocos2d_ResizeTo_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** final_size */ + cocos2d::Size *arg2; /** final_size */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Size"); // static cocos2d::ResizeTo *create(float duration, const cocos2d::Size &final_size) - cocos2d::ResizeTo *ret = cocos2d::ResizeTo::create(arg1, arg2); + cocos2d::ResizeTo *ret = cocos2d::ResizeTo::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.ResizeTo"); olua_endinvoke(L); @@ -4529,14 +4718,23 @@ static int _cocos2d_ResizeTo_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ResizeTo(lua_State *L) +static int _cc_ResizeTo(lua_State *L) { oluacls_class(L, "cc.ResizeTo"); oluacls_func(L, "create", _cocos2d_ResizeTo_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ResizeTo(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ResizeTo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ResizeBy_create(lua_State *L) @@ -4544,13 +4742,13 @@ static int _cocos2d_ResizeBy_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** deltaSize */ + cocos2d::Size *arg2; /** deltaSize */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Size"); // static cocos2d::ResizeBy *create(float duration, const cocos2d::Size &deltaSize) - cocos2d::ResizeBy *ret = cocos2d::ResizeBy::create(arg1, arg2); + cocos2d::ResizeBy *ret = cocos2d::ResizeBy::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.ResizeBy"); olua_endinvoke(L); @@ -4558,14 +4756,23 @@ static int _cocos2d_ResizeBy_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ResizeBy(lua_State *L) +static int _cc_ResizeBy(lua_State *L) { oluacls_class(L, "cc.ResizeBy"); oluacls_func(L, "create", _cocos2d_ResizeBy_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ResizeBy(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ResizeBy"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_BezierBy_create$1(lua_State *L) @@ -4573,13 +4780,13 @@ static int _cocos2d_BezierBy_create$1(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** t */ - cocos2d::ccBezierConfig arg2; /** c */ + cocos2d::ccBezierConfig *arg2; /** c */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.ccBezierConfig"); // static cocos2d::BezierBy *create(float t, const cocos2d::ccBezierConfig &c) - cocos2d::BezierBy *ret = cocos2d::BezierBy::create(arg1, arg2); + cocos2d::BezierBy *ret = cocos2d::BezierBy::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.BezierBy"); olua_endinvoke(L); @@ -4629,14 +4836,23 @@ static int _cocos2d_BezierBy_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_BezierBy(lua_State *L) +static int _cc_BezierBy(lua_State *L) { oluacls_class(L, "cc.BezierBy"); oluacls_func(L, "create", _cocos2d_BezierBy_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_BezierBy(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::BezierBy"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_BezierTo_create$1(lua_State *L) @@ -4644,13 +4860,13 @@ static int _cocos2d_BezierTo_create$1(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** t */ - cocos2d::ccBezierConfig arg2; /** c */ + cocos2d::ccBezierConfig *arg2; /** c */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.ccBezierConfig"); // static cocos2d::BezierTo *create(float t, const cocos2d::ccBezierConfig &c) - cocos2d::BezierTo *ret = cocos2d::BezierTo::create(arg1, arg2); + cocos2d::BezierTo *ret = cocos2d::BezierTo::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.BezierTo"); olua_endinvoke(L); @@ -4700,14 +4916,23 @@ static int _cocos2d_BezierTo_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_BezierTo(lua_State *L) +static int _cc_BezierTo(lua_State *L) { oluacls_class(L, "cc.BezierTo"); oluacls_func(L, "create", _cocos2d_BezierTo_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_BezierTo(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::BezierTo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_JumpBy_create$1(lua_State *L) @@ -4715,7 +4940,7 @@ static int _cocos2d_JumpBy_create$1(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Vec2 arg2; /** position */ + cocos2d::Vec2 *arg2; /** position */ float arg3 = 0; /** height */ int arg4 = 0; /** jumps */ @@ -4725,7 +4950,7 @@ static int _cocos2d_JumpBy_create$1(lua_State *L) olua_check_integer(L, 4, &arg4); // static cocos2d::JumpBy *create(float duration, const cocos2d::Vec2 &position, float height, int jumps) - cocos2d::JumpBy *ret = cocos2d::JumpBy::create(arg1, arg2, arg3, arg4); + cocos2d::JumpBy *ret = cocos2d::JumpBy::create(arg1, *arg2, arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.JumpBy"); olua_endinvoke(L); @@ -4779,14 +5004,23 @@ static int _cocos2d_JumpBy_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_JumpBy(lua_State *L) +static int _cc_JumpBy(lua_State *L) { oluacls_class(L, "cc.JumpBy"); oluacls_func(L, "create", _cocos2d_JumpBy_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_JumpBy(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::JumpBy"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_JumpTo_create$1(lua_State *L) @@ -4794,7 +5028,7 @@ static int _cocos2d_JumpTo_create$1(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Vec2 arg2; /** position */ + cocos2d::Vec2 *arg2; /** position */ float arg3 = 0; /** height */ int arg4 = 0; /** jumps */ @@ -4804,7 +5038,7 @@ static int _cocos2d_JumpTo_create$1(lua_State *L) olua_check_integer(L, 4, &arg4); // static cocos2d::JumpTo *create(float duration, const cocos2d::Vec2 &position, float height, int jumps) - cocos2d::JumpTo *ret = cocos2d::JumpTo::create(arg1, arg2, arg3, arg4); + cocos2d::JumpTo *ret = cocos2d::JumpTo::create(arg1, *arg2, arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.JumpTo"); olua_endinvoke(L); @@ -4858,14 +5092,23 @@ static int _cocos2d_JumpTo_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_JumpTo(lua_State *L) +static int _cc_JumpTo(lua_State *L) { oluacls_class(L, "cc.JumpTo"); oluacls_func(L, "create", _cocos2d_JumpTo_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_JumpTo(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::JumpTo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ScaleTo_create$1(lua_State *L) @@ -4961,14 +5204,23 @@ static int _cocos2d_ScaleTo_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ScaleTo(lua_State *L) +static int _cc_ScaleTo(lua_State *L) { oluacls_class(L, "cc.ScaleTo"); oluacls_func(L, "create", _cocos2d_ScaleTo_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ScaleTo(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ScaleTo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ScaleBy_create$1(lua_State *L) @@ -5064,14 +5316,23 @@ static int _cocos2d_ScaleBy_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ScaleBy(lua_State *L) +static int _cc_ScaleBy(lua_State *L) { oluacls_class(L, "cc.ScaleBy"); oluacls_func(L, "create", _cocos2d_ScaleBy_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ScaleBy(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ScaleBy"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ScaleFrom_create$1(lua_State *L) @@ -5167,14 +5428,23 @@ static int _cocos2d_ScaleFrom_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ScaleFrom(lua_State *L) +static int _cc_ScaleFrom(lua_State *L) { oluacls_class(L, "cc.ScaleFrom"); oluacls_func(L, "create", _cocos2d_ScaleFrom_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ScaleFrom(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ScaleFrom"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Blink_create(lua_State *L) @@ -5196,14 +5466,23 @@ static int _cocos2d_Blink_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Blink(lua_State *L) +static int _cc_Blink(lua_State *L) { oluacls_class(L, "cc.Blink"); oluacls_func(L, "create", _cocos2d_Blink_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Blink(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Blink"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FadeTo_create(lua_State *L) @@ -5225,14 +5504,23 @@ static int _cocos2d_FadeTo_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FadeTo(lua_State *L) +static int _cc_FadeTo(lua_State *L) { oluacls_class(L, "cc.FadeTo"); oluacls_func(L, "create", _cocos2d_FadeTo_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FadeTo(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FadeTo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FadeFrom_create(lua_State *L) @@ -5254,14 +5542,23 @@ static int _cocos2d_FadeFrom_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FadeFrom(lua_State *L) +static int _cc_FadeFrom(lua_State *L) { oluacls_class(L, "cc.FadeFrom"); oluacls_func(L, "create", _cocos2d_FadeFrom_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FadeFrom(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FadeFrom"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FadeIn_create(lua_State *L) @@ -5281,14 +5578,23 @@ static int _cocos2d_FadeIn_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FadeIn(lua_State *L) +static int _cc_FadeIn(lua_State *L) { oluacls_class(L, "cc.FadeIn"); oluacls_func(L, "create", _cocos2d_FadeIn_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FadeIn(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FadeIn"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FadeOut_create(lua_State *L) @@ -5308,14 +5614,23 @@ static int _cocos2d_FadeOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FadeOut(lua_State *L) +static int _cc_FadeOut(lua_State *L) { oluacls_class(L, "cc.FadeOut"); oluacls_func(L, "create", _cocos2d_FadeOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FadeOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FadeOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TintTo_create$1(lua_State *L) @@ -5383,14 +5698,23 @@ static int _cocos2d_TintTo_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TintTo(lua_State *L) +static int _cc_TintTo(lua_State *L) { oluacls_class(L, "cc.TintTo"); oluacls_func(L, "create", _cocos2d_TintTo_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TintTo(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TintTo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TintBy_create(lua_State *L) @@ -5416,14 +5740,23 @@ static int _cocos2d_TintBy_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TintBy(lua_State *L) +static int _cc_TintBy(lua_State *L) { oluacls_class(L, "cc.TintBy"); oluacls_func(L, "create", _cocos2d_TintBy_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TintBy(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TintBy"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_DelayTime_create(lua_State *L) @@ -5443,14 +5776,23 @@ static int _cocos2d_DelayTime_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_DelayTime(lua_State *L) +static int _cc_DelayTime(lua_State *L) { oluacls_class(L, "cc.DelayTime"); oluacls_func(L, "create", _cocos2d_DelayTime_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_DelayTime(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::DelayTime"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ReverseTime_create(lua_State *L) @@ -5473,14 +5815,23 @@ static int _cocos2d_ReverseTime_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ReverseTime(lua_State *L) +static int _cc_ReverseTime(lua_State *L) { oluacls_class(L, "cc.ReverseTime"); oluacls_func(L, "create", _cocos2d_ReverseTime_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ReverseTime(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ReverseTime"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Animate_create(lua_State *L) @@ -5552,8 +5903,7 @@ static int _cocos2d_Animate_setAnimation(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Animate(lua_State *L) +static int _cc_Animate(lua_State *L) { oluacls_class(L, "cc.Animate"); oluacls_func(L, "create", _cocos2d_Animate_create); @@ -5565,6 +5915,16 @@ OLUA_LIB int luaopen_cocos2d_Animate(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Animate(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Animate"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TargetedAction_create(lua_State *L) @@ -5645,8 +6005,7 @@ static int _cocos2d_TargetedAction_setForcedTarget(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TargetedAction(lua_State *L) +static int _cc_TargetedAction(lua_State *L) { oluacls_class(L, "cc.TargetedAction"); oluacls_func(L, "create", _cocos2d_TargetedAction_create); @@ -5657,6 +6016,16 @@ OLUA_LIB int luaopen_cocos2d_TargetedAction(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TargetedAction(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TargetedAction"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ActionFloat_ActionFloatCallback___call(lua_State *L) @@ -5671,14 +6040,23 @@ static int _cocos2d_ActionFloat_ActionFloatCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ActionFloat_ActionFloatCallback(lua_State *L) +static int _cc_ActionFloat_ActionFloatCallback(lua_State *L) { oluacls_class(L, "cc.ActionFloat.ActionFloatCallback"); oluacls_func(L, "__call", _cocos2d_ActionFloat_ActionFloatCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ActionFloat_ActionFloatCallback(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ActionFloat::ActionFloatCallback"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ActionFloat_create(lua_State *L) @@ -5699,13 +6077,13 @@ static int _cocos2d_ActionFloat_create(lua_State *L) std::string cb_tag = "ActionFloat"; std::string cb_name = olua_setcallback(L, cb_store, 4, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg4 = [cb_store, cb_name, cb_ctx](float arg1) { + arg4 = [cb_store, cb_name, cb_ctx](float cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_number(L, arg1); + olua_push_number(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -5728,14 +6106,23 @@ static int _cocos2d_ActionFloat_create(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ActionFloat(lua_State *L) +static int _cc_ActionFloat(lua_State *L) { oluacls_class(L, "cc.ActionFloat"); oluacls_func(L, "create", _cocos2d_ActionFloat_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ActionFloat(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ActionFloat"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ProgressTo_create(lua_State *L) @@ -5757,14 +6144,23 @@ static int _cocos2d_ProgressTo_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ProgressTo(lua_State *L) +static int _cc_ProgressTo(lua_State *L) { oluacls_class(L, "cc.ProgressTo"); oluacls_func(L, "create", _cocos2d_ProgressTo_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ProgressTo(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ProgressTo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ProgressFromTo_create(lua_State *L) @@ -5788,14 +6184,23 @@ static int _cocos2d_ProgressFromTo_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ProgressFromTo(lua_State *L) +static int _cc_ProgressFromTo(lua_State *L) { oluacls_class(L, "cc.ProgressFromTo"); oluacls_func(L, "create", _cocos2d_ProgressFromTo_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ProgressFromTo(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ProgressFromTo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ActionEase_getInnerAction(lua_State *L) @@ -5818,8 +6223,7 @@ static int _cocos2d_ActionEase_getInnerAction(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ActionEase(lua_State *L) +static int _cc_ActionEase(lua_State *L) { oluacls_class(L, "cc.ActionEase"); oluacls_func(L, "getInnerAction", _cocos2d_ActionEase_getInnerAction); @@ -5827,6 +6231,16 @@ OLUA_LIB int luaopen_cocos2d_ActionEase(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ActionEase(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ActionEase"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseRateAction_create(lua_State *L) @@ -5886,8 +6300,7 @@ static int _cocos2d_EaseRateAction_setRate(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseRateAction(lua_State *L) +static int _cc_EaseRateAction(lua_State *L) { oluacls_class(L, "cc.EaseRateAction"); oluacls_func(L, "create", _cocos2d_EaseRateAction_create); @@ -5897,6 +6310,16 @@ OLUA_LIB int luaopen_cocos2d_EaseRateAction(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseRateAction(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseRateAction"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseExponentialIn_create(lua_State *L) @@ -5919,14 +6342,23 @@ static int _cocos2d_EaseExponentialIn_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseExponentialIn(lua_State *L) +static int _cc_EaseExponentialIn(lua_State *L) { oluacls_class(L, "cc.EaseExponentialIn"); oluacls_func(L, "create", _cocos2d_EaseExponentialIn_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseExponentialIn(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseExponentialIn"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseExponentialOut_create(lua_State *L) @@ -5949,14 +6381,23 @@ static int _cocos2d_EaseExponentialOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseExponentialOut(lua_State *L) +static int _cc_EaseExponentialOut(lua_State *L) { oluacls_class(L, "cc.EaseExponentialOut"); oluacls_func(L, "create", _cocos2d_EaseExponentialOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseExponentialOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseExponentialOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseExponentialInOut_create(lua_State *L) @@ -5979,14 +6420,23 @@ static int _cocos2d_EaseExponentialInOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseExponentialInOut(lua_State *L) +static int _cc_EaseExponentialInOut(lua_State *L) { oluacls_class(L, "cc.EaseExponentialInOut"); oluacls_func(L, "create", _cocos2d_EaseExponentialInOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseExponentialInOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseExponentialInOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseSineIn_create(lua_State *L) @@ -6009,14 +6459,23 @@ static int _cocos2d_EaseSineIn_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseSineIn(lua_State *L) +static int _cc_EaseSineIn(lua_State *L) { oluacls_class(L, "cc.EaseSineIn"); oluacls_func(L, "create", _cocos2d_EaseSineIn_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseSineIn(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseSineIn"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseSineOut_create(lua_State *L) @@ -6039,14 +6498,23 @@ static int _cocos2d_EaseSineOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseSineOut(lua_State *L) +static int _cc_EaseSineOut(lua_State *L) { oluacls_class(L, "cc.EaseSineOut"); oluacls_func(L, "create", _cocos2d_EaseSineOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseSineOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseSineOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseSineInOut_create(lua_State *L) @@ -6069,14 +6537,23 @@ static int _cocos2d_EaseSineInOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseSineInOut(lua_State *L) +static int _cc_EaseSineInOut(lua_State *L) { oluacls_class(L, "cc.EaseSineInOut"); oluacls_func(L, "create", _cocos2d_EaseSineInOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseSineInOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseSineInOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseBounceIn_create(lua_State *L) @@ -6099,14 +6576,23 @@ static int _cocos2d_EaseBounceIn_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseBounceIn(lua_State *L) +static int _cc_EaseBounceIn(lua_State *L) { oluacls_class(L, "cc.EaseBounceIn"); oluacls_func(L, "create", _cocos2d_EaseBounceIn_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseBounceIn(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseBounceIn"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseBounceOut_create(lua_State *L) @@ -6129,14 +6615,23 @@ static int _cocos2d_EaseBounceOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseBounceOut(lua_State *L) +static int _cc_EaseBounceOut(lua_State *L) { oluacls_class(L, "cc.EaseBounceOut"); oluacls_func(L, "create", _cocos2d_EaseBounceOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseBounceOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseBounceOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseBounceInOut_create(lua_State *L) @@ -6159,14 +6654,23 @@ static int _cocos2d_EaseBounceInOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseBounceInOut(lua_State *L) +static int _cc_EaseBounceInOut(lua_State *L) { oluacls_class(L, "cc.EaseBounceInOut"); oluacls_func(L, "create", _cocos2d_EaseBounceInOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseBounceInOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseBounceInOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseBackIn_create(lua_State *L) @@ -6189,14 +6693,23 @@ static int _cocos2d_EaseBackIn_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseBackIn(lua_State *L) +static int _cc_EaseBackIn(lua_State *L) { oluacls_class(L, "cc.EaseBackIn"); oluacls_func(L, "create", _cocos2d_EaseBackIn_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseBackIn(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseBackIn"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseBackOut_create(lua_State *L) @@ -6219,14 +6732,23 @@ static int _cocos2d_EaseBackOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseBackOut(lua_State *L) +static int _cc_EaseBackOut(lua_State *L) { oluacls_class(L, "cc.EaseBackOut"); oluacls_func(L, "create", _cocos2d_EaseBackOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseBackOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseBackOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseBackInOut_create(lua_State *L) @@ -6249,14 +6771,23 @@ static int _cocos2d_EaseBackInOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseBackInOut(lua_State *L) +static int _cc_EaseBackInOut(lua_State *L) { oluacls_class(L, "cc.EaseBackInOut"); oluacls_func(L, "create", _cocos2d_EaseBackInOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseBackInOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseBackInOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseQuadraticActionIn_create(lua_State *L) @@ -6279,14 +6810,23 @@ static int _cocos2d_EaseQuadraticActionIn_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseQuadraticActionIn(lua_State *L) +static int _cc_EaseQuadraticActionIn(lua_State *L) { oluacls_class(L, "cc.EaseQuadraticActionIn"); oluacls_func(L, "create", _cocos2d_EaseQuadraticActionIn_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseQuadraticActionIn(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseQuadraticActionIn"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseQuadraticActionOut_create(lua_State *L) @@ -6309,14 +6849,23 @@ static int _cocos2d_EaseQuadraticActionOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseQuadraticActionOut(lua_State *L) +static int _cc_EaseQuadraticActionOut(lua_State *L) { oluacls_class(L, "cc.EaseQuadraticActionOut"); oluacls_func(L, "create", _cocos2d_EaseQuadraticActionOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseQuadraticActionOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseQuadraticActionOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseQuadraticActionInOut_create(lua_State *L) @@ -6339,14 +6888,23 @@ static int _cocos2d_EaseQuadraticActionInOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseQuadraticActionInOut(lua_State *L) +static int _cc_EaseQuadraticActionInOut(lua_State *L) { oluacls_class(L, "cc.EaseQuadraticActionInOut"); oluacls_func(L, "create", _cocos2d_EaseQuadraticActionInOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseQuadraticActionInOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseQuadraticActionInOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseQuarticActionIn_create(lua_State *L) @@ -6369,14 +6927,23 @@ static int _cocos2d_EaseQuarticActionIn_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseQuarticActionIn(lua_State *L) +static int _cc_EaseQuarticActionIn(lua_State *L) { oluacls_class(L, "cc.EaseQuarticActionIn"); oluacls_func(L, "create", _cocos2d_EaseQuarticActionIn_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseQuarticActionIn(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseQuarticActionIn"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseQuarticActionOut_create(lua_State *L) @@ -6399,14 +6966,23 @@ static int _cocos2d_EaseQuarticActionOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseQuarticActionOut(lua_State *L) +static int _cc_EaseQuarticActionOut(lua_State *L) { oluacls_class(L, "cc.EaseQuarticActionOut"); oluacls_func(L, "create", _cocos2d_EaseQuarticActionOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseQuarticActionOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseQuarticActionOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseQuarticActionInOut_create(lua_State *L) @@ -6429,14 +7005,23 @@ static int _cocos2d_EaseQuarticActionInOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseQuarticActionInOut(lua_State *L) +static int _cc_EaseQuarticActionInOut(lua_State *L) { oluacls_class(L, "cc.EaseQuarticActionInOut"); oluacls_func(L, "create", _cocos2d_EaseQuarticActionInOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseQuarticActionInOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseQuarticActionInOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseQuinticActionIn_create(lua_State *L) @@ -6459,14 +7044,23 @@ static int _cocos2d_EaseQuinticActionIn_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseQuinticActionIn(lua_State *L) +static int _cc_EaseQuinticActionIn(lua_State *L) { oluacls_class(L, "cc.EaseQuinticActionIn"); oluacls_func(L, "create", _cocos2d_EaseQuinticActionIn_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseQuinticActionIn(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseQuinticActionIn"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseQuinticActionOut_create(lua_State *L) @@ -6489,14 +7083,23 @@ static int _cocos2d_EaseQuinticActionOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseQuinticActionOut(lua_State *L) +static int _cc_EaseQuinticActionOut(lua_State *L) { oluacls_class(L, "cc.EaseQuinticActionOut"); oluacls_func(L, "create", _cocos2d_EaseQuinticActionOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseQuinticActionOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseQuinticActionOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseQuinticActionInOut_create(lua_State *L) @@ -6519,14 +7122,23 @@ static int _cocos2d_EaseQuinticActionInOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseQuinticActionInOut(lua_State *L) +static int _cc_EaseQuinticActionInOut(lua_State *L) { oluacls_class(L, "cc.EaseQuinticActionInOut"); oluacls_func(L, "create", _cocos2d_EaseQuinticActionInOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseQuinticActionInOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseQuinticActionInOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseCircleActionIn_create(lua_State *L) @@ -6549,14 +7161,23 @@ static int _cocos2d_EaseCircleActionIn_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseCircleActionIn(lua_State *L) +static int _cc_EaseCircleActionIn(lua_State *L) { oluacls_class(L, "cc.EaseCircleActionIn"); oluacls_func(L, "create", _cocos2d_EaseCircleActionIn_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseCircleActionIn(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseCircleActionIn"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseCircleActionOut_create(lua_State *L) @@ -6579,14 +7200,23 @@ static int _cocos2d_EaseCircleActionOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseCircleActionOut(lua_State *L) +static int _cc_EaseCircleActionOut(lua_State *L) { oluacls_class(L, "cc.EaseCircleActionOut"); oluacls_func(L, "create", _cocos2d_EaseCircleActionOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseCircleActionOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseCircleActionOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseCircleActionInOut_create(lua_State *L) @@ -6609,14 +7239,23 @@ static int _cocos2d_EaseCircleActionInOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseCircleActionInOut(lua_State *L) +static int _cc_EaseCircleActionInOut(lua_State *L) { oluacls_class(L, "cc.EaseCircleActionInOut"); oluacls_func(L, "create", _cocos2d_EaseCircleActionInOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseCircleActionInOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseCircleActionInOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseCubicActionIn_create(lua_State *L) @@ -6639,14 +7278,23 @@ static int _cocos2d_EaseCubicActionIn_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseCubicActionIn(lua_State *L) +static int _cc_EaseCubicActionIn(lua_State *L) { oluacls_class(L, "cc.EaseCubicActionIn"); oluacls_func(L, "create", _cocos2d_EaseCubicActionIn_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseCubicActionIn(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseCubicActionIn"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseCubicActionOut_create(lua_State *L) @@ -6669,14 +7317,23 @@ static int _cocos2d_EaseCubicActionOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseCubicActionOut(lua_State *L) +static int _cc_EaseCubicActionOut(lua_State *L) { oluacls_class(L, "cc.EaseCubicActionOut"); oluacls_func(L, "create", _cocos2d_EaseCubicActionOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseCubicActionOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseCubicActionOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseCubicActionInOut_create(lua_State *L) @@ -6699,14 +7356,23 @@ static int _cocos2d_EaseCubicActionInOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseCubicActionInOut(lua_State *L) +static int _cc_EaseCubicActionInOut(lua_State *L) { oluacls_class(L, "cc.EaseCubicActionInOut"); oluacls_func(L, "create", _cocos2d_EaseCubicActionInOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseCubicActionInOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseCubicActionInOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseIn_create(lua_State *L) @@ -6731,14 +7397,23 @@ static int _cocos2d_EaseIn_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseIn(lua_State *L) +static int _cc_EaseIn(lua_State *L) { oluacls_class(L, "cc.EaseIn"); oluacls_func(L, "create", _cocos2d_EaseIn_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseIn(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseIn"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseOut_create(lua_State *L) @@ -6763,14 +7438,23 @@ static int _cocos2d_EaseOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseOut(lua_State *L) +static int _cc_EaseOut(lua_State *L) { oluacls_class(L, "cc.EaseOut"); oluacls_func(L, "create", _cocos2d_EaseOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseInOut_create(lua_State *L) @@ -6795,14 +7479,23 @@ static int _cocos2d_EaseInOut_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseInOut(lua_State *L) +static int _cc_EaseInOut(lua_State *L) { oluacls_class(L, "cc.EaseInOut"); oluacls_func(L, "create", _cocos2d_EaseInOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseInOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseInOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseElastic_getPeriod(lua_State *L) @@ -6840,8 +7533,7 @@ static int _cocos2d_EaseElastic_setPeriod(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseElastic(lua_State *L) +static int _cc_EaseElastic(lua_State *L) { oluacls_class(L, "cc.EaseElastic"); oluacls_func(L, "getPeriod", _cocos2d_EaseElastic_getPeriod); @@ -6850,6 +7542,16 @@ OLUA_LIB int luaopen_cocos2d_EaseElastic(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseElastic(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseElastic"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseElasticIn_create$1(lua_State *L) @@ -6917,14 +7619,23 @@ static int _cocos2d_EaseElasticIn_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseElasticIn(lua_State *L) +static int _cc_EaseElasticIn(lua_State *L) { oluacls_class(L, "cc.EaseElasticIn"); oluacls_func(L, "create", _cocos2d_EaseElasticIn_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseElasticIn(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseElasticIn"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseElasticOut_create$1(lua_State *L) @@ -6992,14 +7703,23 @@ static int _cocos2d_EaseElasticOut_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseElasticOut(lua_State *L) +static int _cc_EaseElasticOut(lua_State *L) { oluacls_class(L, "cc.EaseElasticOut"); oluacls_func(L, "create", _cocos2d_EaseElasticOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseElasticOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseElasticOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseElasticInOut_create$1(lua_State *L) @@ -7067,14 +7787,23 @@ static int _cocos2d_EaseElasticInOut_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseElasticInOut(lua_State *L) +static int _cc_EaseElasticInOut(lua_State *L) { oluacls_class(L, "cc.EaseElasticInOut"); oluacls_func(L, "create", _cocos2d_EaseElasticInOut_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseElasticInOut(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseElasticInOut"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_EaseBezierAction_create(lua_State *L) @@ -7121,8 +7850,7 @@ static int _cocos2d_EaseBezierAction_setBezierParamer(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EaseBezierAction(lua_State *L) +static int _cc_EaseBezierAction(lua_State *L) { oluacls_class(L, "cc.EaseBezierAction"); oluacls_func(L, "create", _cocos2d_EaseBezierAction_create); @@ -7130,6 +7858,16 @@ OLUA_LIB int luaopen_cocos2d_EaseBezierAction(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EaseBezierAction(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EaseBezierAction"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_PointArray_addControlPoint(lua_State *L) @@ -7137,13 +7875,13 @@ static int _cocos2d_PointArray_addControlPoint(lua_State *L) olua_startinvoke(L); cocos2d::PointArray *self = nullptr; - cocos2d::Vec2 arg1; /** controlPoint */ + cocos2d::Vec2 *arg1; /** controlPoint */ olua_to_object(L, 1, &self, "cc.PointArray"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void addControlPoint(const cocos2d::Vec2 &controlPoint) - self->addControlPoint(arg1); + self->addControlPoint(*arg1); olua_endinvoke(L); @@ -7291,7 +8029,7 @@ static int _cocos2d_PointArray_insertControlPoint(lua_State *L) olua_startinvoke(L); cocos2d::PointArray *self = nullptr; - cocos2d::Vec2 arg1; /** controlPoint */ + cocos2d::Vec2 *arg1; /** controlPoint */ ssize_t arg2 = 0; /** index */ olua_to_object(L, 1, &self, "cc.PointArray"); @@ -7299,7 +8037,7 @@ static int _cocos2d_PointArray_insertControlPoint(lua_State *L) olua_check_integer(L, 3, &arg2); // void insertControlPoint(const cocos2d::Vec2 &controlPoint, ssize_t index) - self->insertControlPoint(arg1, arg2); + self->insertControlPoint(*arg1, arg2); olua_endinvoke(L); @@ -7329,7 +8067,7 @@ static int _cocos2d_PointArray_replaceControlPoint(lua_State *L) olua_startinvoke(L); cocos2d::PointArray *self = nullptr; - cocos2d::Vec2 arg1; /** controlPoint */ + cocos2d::Vec2 *arg1; /** controlPoint */ ssize_t arg2 = 0; /** index */ olua_to_object(L, 1, &self, "cc.PointArray"); @@ -7337,7 +8075,7 @@ static int _cocos2d_PointArray_replaceControlPoint(lua_State *L) olua_check_integer(L, 3, &arg2); // void replaceControlPoint(const cocos2d::Vec2 &controlPoint, ssize_t index) - self->replaceControlPoint(arg1, arg2); + self->replaceControlPoint(*arg1, arg2); olua_endinvoke(L); @@ -7397,8 +8135,7 @@ static int _cocos2d_PointArray_setControlPoints(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PointArray(lua_State *L) +static int _cc_PointArray(lua_State *L) { oluacls_class(L, "cc.PointArray"); oluacls_func(L, "addControlPoint", _cocos2d_PointArray_addControlPoint); @@ -7419,6 +8156,16 @@ OLUA_LIB int luaopen_cocos2d_PointArray(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PointArray(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PointArray"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_CardinalSplineTo_create(lua_State *L) @@ -7482,21 +8229,20 @@ static int _cocos2d_CardinalSplineTo_updatePosition(lua_State *L) olua_startinvoke(L); cocos2d::CardinalSplineTo *self = nullptr; - cocos2d::Vec2 arg1; /** newPos */ + cocos2d::Vec2 *arg1; /** newPos */ olua_to_object(L, 1, &self, "cc.CardinalSplineTo"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void updatePosition(const cocos2d::Vec2 &newPos) - self->updatePosition(arg1); + self->updatePosition(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_CardinalSplineTo(lua_State *L) +static int _cc_CardinalSplineTo(lua_State *L) { oluacls_class(L, "cc.CardinalSplineTo"); oluacls_func(L, "create", _cocos2d_CardinalSplineTo_create); @@ -7507,6 +8253,16 @@ OLUA_LIB int luaopen_cocos2d_CardinalSplineTo(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_CardinalSplineTo(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::CardinalSplineTo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_CardinalSplineBy_create(lua_State *L) @@ -7530,14 +8286,23 @@ static int _cocos2d_CardinalSplineBy_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_CardinalSplineBy(lua_State *L) +static int _cc_CardinalSplineBy(lua_State *L) { oluacls_class(L, "cc.CardinalSplineBy"); oluacls_func(L, "create", _cocos2d_CardinalSplineBy_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_CardinalSplineBy(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::CardinalSplineBy"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_CatmullRomTo_create(lua_State *L) @@ -7559,14 +8324,23 @@ static int _cocos2d_CatmullRomTo_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_CatmullRomTo(lua_State *L) +static int _cc_CatmullRomTo(lua_State *L) { oluacls_class(L, "cc.CatmullRomTo"); oluacls_func(L, "create", _cocos2d_CatmullRomTo_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_CatmullRomTo(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::CatmullRomTo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_CatmullRomBy_create(lua_State *L) @@ -7588,23 +8362,41 @@ static int _cocos2d_CatmullRomBy_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_CatmullRomBy(lua_State *L) +static int _cc_CatmullRomBy(lua_State *L) { oluacls_class(L, "cc.CatmullRomBy"); oluacls_func(L, "create", _cocos2d_CatmullRomBy_create); return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ActionInstant(lua_State *L) +OLUA_LIB int luaopen_cc_CatmullRomBy(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::CatmullRomBy"); + } + return 1; +} +OLUA_END_DECLS + +static int _cc_ActionInstant(lua_State *L) { oluacls_class(L, "cc.ActionInstant"); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ActionInstant(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ActionInstant"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Show_create(lua_State *L) @@ -7620,14 +8412,23 @@ static int _cocos2d_Show_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Show(lua_State *L) +static int _cc_Show(lua_State *L) { oluacls_class(L, "cc.Show"); oluacls_func(L, "create", _cocos2d_Show_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Show(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Show"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Hide_create(lua_State *L) @@ -7643,14 +8444,23 @@ static int _cocos2d_Hide_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Hide(lua_State *L) +static int _cc_Hide(lua_State *L) { oluacls_class(L, "cc.Hide"); oluacls_func(L, "create", _cocos2d_Hide_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Hide(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Hide"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ToggleVisibility_create(lua_State *L) @@ -7666,14 +8476,23 @@ static int _cocos2d_ToggleVisibility_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ToggleVisibility(lua_State *L) +static int _cc_ToggleVisibility(lua_State *L) { oluacls_class(L, "cc.ToggleVisibility"); oluacls_func(L, "create", _cocos2d_ToggleVisibility_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ToggleVisibility(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ToggleVisibility"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_RemoveSelf_create$1(lua_State *L) @@ -7727,14 +8546,23 @@ static int _cocos2d_RemoveSelf_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_RemoveSelf(lua_State *L) +static int _cc_RemoveSelf(lua_State *L) { oluacls_class(L, "cc.RemoveSelf"); oluacls_func(L, "create", _cocos2d_RemoveSelf_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_RemoveSelf(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::RemoveSelf"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FlipX_create(lua_State *L) @@ -7754,14 +8582,23 @@ static int _cocos2d_FlipX_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FlipX(lua_State *L) +static int _cc_FlipX(lua_State *L) { oluacls_class(L, "cc.FlipX"); oluacls_func(L, "create", _cocos2d_FlipX_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FlipX(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FlipX"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FlipY_create(lua_State *L) @@ -7781,26 +8618,35 @@ static int _cocos2d_FlipY_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FlipY(lua_State *L) +static int _cc_FlipY(lua_State *L) { oluacls_class(L, "cc.FlipY"); oluacls_func(L, "create", _cocos2d_FlipY_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FlipY(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FlipY"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Place_create(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** pos */ + cocos2d::Vec2 *arg1; /** pos */ olua_check_object(L, 1, &arg1, "cc.Vec2"); // static cocos2d::Place *create(const cocos2d::Vec2 &pos) - cocos2d::Place *ret = cocos2d::Place::create(arg1); + cocos2d::Place *ret = cocos2d::Place::create(*arg1); int num_ret = olua_push_object(L, ret, "cc.Place"); olua_endinvoke(L); @@ -7808,14 +8654,23 @@ static int _cocos2d_Place_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Place(lua_State *L) +static int _cc_Place(lua_State *L) { oluacls_class(L, "cc.Place"); oluacls_func(L, "create", _cocos2d_Place_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Place(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Place"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_CallFunc_create(lua_State *L) @@ -7874,8 +8729,7 @@ static int _cocos2d_CallFunc_execute(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_CallFunc(lua_State *L) +static int _cc_CallFunc(lua_State *L) { oluacls_class(L, "cc.CallFunc"); oluacls_func(L, "create", _cocos2d_CallFunc_create); @@ -7883,6 +8737,16 @@ OLUA_LIB int luaopen_cocos2d_CallFunc(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_CallFunc(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::CallFunc"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ActionCamera_getCenter(lua_State *L) @@ -7941,13 +8805,13 @@ static int _cocos2d_ActionCamera_setCenter(lua_State *L) olua_startinvoke(L); cocos2d::ActionCamera *self = nullptr; - cocos2d::Vec3 arg1; /** center */ + cocos2d::Vec3 *arg1; /** center */ olua_to_object(L, 1, &self, "cc.ActionCamera"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void setCenter(const cocos2d::Vec3 ¢er) - self->setCenter(arg1); + self->setCenter(*arg1); olua_endinvoke(L); @@ -7959,13 +8823,13 @@ static int _cocos2d_ActionCamera_setEye$1(lua_State *L) olua_startinvoke(L); cocos2d::ActionCamera *self = nullptr; - cocos2d::Vec3 arg1; /** eye */ + cocos2d::Vec3 *arg1; /** eye */ olua_to_object(L, 1, &self, "cc.ActionCamera"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void setEye(const cocos2d::Vec3 &eye) - self->setEye(arg1); + self->setEye(*arg1); olua_endinvoke(L); @@ -8022,21 +8886,20 @@ static int _cocos2d_ActionCamera_setUp(lua_State *L) olua_startinvoke(L); cocos2d::ActionCamera *self = nullptr; - cocos2d::Vec3 arg1; /** up */ + cocos2d::Vec3 *arg1; /** up */ olua_to_object(L, 1, &self, "cc.ActionCamera"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void setUp(const cocos2d::Vec3 &up) - self->setUp(arg1); + self->setUp(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ActionCamera(lua_State *L) +static int _cc_ActionCamera(lua_State *L) { oluacls_class(L, "cc.ActionCamera"); oluacls_func(L, "getCenter", _cocos2d_ActionCamera_getCenter); @@ -8051,6 +8914,16 @@ OLUA_LIB int luaopen_cocos2d_ActionCamera(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ActionCamera(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ActionCamera"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_OrbitCamera_create(lua_State *L) @@ -8104,8 +8977,7 @@ static int _cocos2d_OrbitCamera_sphericalRadius(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_OrbitCamera(lua_State *L) +static int _cc_OrbitCamera(lua_State *L) { oluacls_class(L, "cc.OrbitCamera"); oluacls_func(L, "create", _cocos2d_OrbitCamera_create); @@ -8113,6 +8985,16 @@ OLUA_LIB int luaopen_cocos2d_OrbitCamera(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_OrbitCamera(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::OrbitCamera"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_GridBase_afterBlit(lua_State *L) @@ -8286,13 +9168,13 @@ static int _cocos2d_GridBase_initWithSize$1(lua_State *L) olua_startinvoke(L); cocos2d::GridBase *self = nullptr; - cocos2d::Size arg1; /** gridSize */ + cocos2d::Size *arg1; /** gridSize */ olua_to_object(L, 1, &self, "cc.GridBase"); olua_check_object(L, 2, &arg1, "cc.Size"); // bool initWithSize(const cocos2d::Size &gridSize) - bool ret = self->initWithSize(arg1); + bool ret = self->initWithSize(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -8305,15 +9187,15 @@ static int _cocos2d_GridBase_initWithSize$2(lua_State *L) olua_startinvoke(L); cocos2d::GridBase *self = nullptr; - cocos2d::Size arg1; /** gridSize */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Size *arg1; /** gridSize */ + cocos2d::Rect *arg2; /** rect */ olua_to_object(L, 1, &self, "cc.GridBase"); olua_check_object(L, 2, &arg1, "cc.Size"); olua_check_object(L, 3, &arg2, "cc.Rect"); // bool initWithSize(const cocos2d::Size &gridSize, const cocos2d::Rect &rect) - bool ret = self->initWithSize(arg1, arg2); + bool ret = self->initWithSize(*arg1, *arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -8326,7 +9208,7 @@ static int _cocos2d_GridBase_initWithSize$3(lua_State *L) olua_startinvoke(L); cocos2d::GridBase *self = nullptr; - cocos2d::Size arg1; /** gridSize */ + cocos2d::Size *arg1; /** gridSize */ cocos2d::Texture2D *arg2 = nullptr; /** texture */ bool arg3 = false; /** flipped */ @@ -8336,7 +9218,7 @@ static int _cocos2d_GridBase_initWithSize$3(lua_State *L) olua_check_bool(L, 4, &arg3); // bool initWithSize(const cocos2d::Size &gridSize, cocos2d::Texture2D *texture, bool flipped) - bool ret = self->initWithSize(arg1, arg2, arg3); + bool ret = self->initWithSize(*arg1, arg2, arg3); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -8349,10 +9231,10 @@ static int _cocos2d_GridBase_initWithSize$4(lua_State *L) olua_startinvoke(L); cocos2d::GridBase *self = nullptr; - cocos2d::Size arg1; /** gridSize */ + cocos2d::Size *arg1; /** gridSize */ cocos2d::Texture2D *arg2 = nullptr; /** texture */ bool arg3 = false; /** flipped */ - cocos2d::Rect arg4; /** rect */ + cocos2d::Rect *arg4; /** rect */ olua_to_object(L, 1, &self, "cc.GridBase"); olua_check_object(L, 2, &arg1, "cc.Size"); @@ -8361,7 +9243,7 @@ static int _cocos2d_GridBase_initWithSize$4(lua_State *L) olua_check_object(L, 5, &arg4, "cc.Rect"); // bool initWithSize(const cocos2d::Size &gridSize, cocos2d::Texture2D *texture, bool flipped, const cocos2d::Rect &rect) - bool ret = self->initWithSize(arg1, arg2, arg3, arg4); + bool ret = self->initWithSize(*arg1, arg2, arg3, *arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -8495,13 +9377,13 @@ static int _cocos2d_GridBase_setGridRect(lua_State *L) olua_startinvoke(L); cocos2d::GridBase *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ olua_to_object(L, 1, &self, "cc.GridBase"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setGridRect(const cocos2d::Rect &rect) - self->setGridRect(arg1); + self->setGridRect(*arg1); olua_endinvoke(L); @@ -8513,13 +9395,13 @@ static int _cocos2d_GridBase_setGridSize(lua_State *L) olua_startinvoke(L); cocos2d::GridBase *self = nullptr; - cocos2d::Size arg1; /** gridSize */ + cocos2d::Size *arg1; /** gridSize */ olua_to_object(L, 1, &self, "cc.GridBase"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setGridSize(const cocos2d::Size &gridSize) - self->setGridSize(arg1); + self->setGridSize(*arg1); olua_endinvoke(L); @@ -8549,13 +9431,13 @@ static int _cocos2d_GridBase_setStep(lua_State *L) olua_startinvoke(L); cocos2d::GridBase *self = nullptr; - cocos2d::Vec2 arg1; /** step */ + cocos2d::Vec2 *arg1; /** step */ olua_to_object(L, 1, &self, "cc.GridBase"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setStep(const cocos2d::Vec2 &step) - self->setStep(arg1); + self->setStep(*arg1); olua_endinvoke(L); @@ -8580,8 +9462,7 @@ static int _cocos2d_GridBase_setTextureFlipped(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_GridBase(lua_State *L) +static int _cc_GridBase(lua_State *L) { oluacls_class(L, "cc.GridBase"); oluacls_func(L, "afterBlit", _cocos2d_GridBase_afterBlit); @@ -8614,18 +9495,28 @@ OLUA_LIB int luaopen_cocos2d_GridBase(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_GridBase(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::GridBase"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Grid3D_create$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** gridSize */ + cocos2d::Size *arg1; /** gridSize */ olua_check_object(L, 1, &arg1, "cc.Size"); // static cocos2d::Grid3D *create(const cocos2d::Size &gridSize) - cocos2d::Grid3D *ret = cocos2d::Grid3D::create(arg1); + cocos2d::Grid3D *ret = cocos2d::Grid3D::create(*arg1); int num_ret = olua_push_object(L, ret, "cc.Grid3D"); olua_endinvoke(L); @@ -8637,14 +9528,14 @@ static int _cocos2d_Grid3D_create$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** gridSize */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Size *arg1; /** gridSize */ + cocos2d::Rect *arg2; /** rect */ olua_check_object(L, 1, &arg1, "cc.Size"); olua_check_object(L, 2, &arg2, "cc.Rect"); // static cocos2d::Grid3D *create(const cocos2d::Size &gridSize, const cocos2d::Rect &rect) - cocos2d::Grid3D *ret = cocos2d::Grid3D::create(arg1, arg2); + cocos2d::Grid3D *ret = cocos2d::Grid3D::create(*arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.Grid3D"); olua_endinvoke(L); @@ -8656,7 +9547,7 @@ static int _cocos2d_Grid3D_create$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** gridSize */ + cocos2d::Size *arg1; /** gridSize */ cocos2d::Texture2D *arg2 = nullptr; /** texture */ bool arg3 = false; /** flipped */ @@ -8665,7 +9556,7 @@ static int _cocos2d_Grid3D_create$3(lua_State *L) olua_check_bool(L, 3, &arg3); // static cocos2d::Grid3D *create(const cocos2d::Size &gridSize, cocos2d::Texture2D *texture, bool flipped) - cocos2d::Grid3D *ret = cocos2d::Grid3D::create(arg1, arg2, arg3); + cocos2d::Grid3D *ret = cocos2d::Grid3D::create(*arg1, arg2, arg3); int num_ret = olua_push_object(L, ret, "cc.Grid3D"); olua_endinvoke(L); @@ -8677,10 +9568,10 @@ static int _cocos2d_Grid3D_create$4(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** gridSize */ + cocos2d::Size *arg1; /** gridSize */ cocos2d::Texture2D *arg2 = nullptr; /** texture */ bool arg3 = false; /** flipped */ - cocos2d::Rect arg4; /** rect */ + cocos2d::Rect *arg4; /** rect */ olua_check_object(L, 1, &arg1, "cc.Size"); olua_check_object(L, 2, &arg2, "cc.Texture2D"); @@ -8688,7 +9579,7 @@ static int _cocos2d_Grid3D_create$4(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Rect"); // static cocos2d::Grid3D *create(const cocos2d::Size &gridSize, cocos2d::Texture2D *texture, bool flipped, const cocos2d::Rect &rect) - cocos2d::Grid3D *ret = cocos2d::Grid3D::create(arg1, arg2, arg3, arg4); + cocos2d::Grid3D *ret = cocos2d::Grid3D::create(*arg1, arg2, arg3, *arg4); int num_ret = olua_push_object(L, ret, "cc.Grid3D"); olua_endinvoke(L); @@ -8755,13 +9646,13 @@ static int _cocos2d_Grid3D_getOriginalVertex(lua_State *L) olua_startinvoke(L); cocos2d::Grid3D *self = nullptr; - cocos2d::Vec2 arg1; /** pos */ + cocos2d::Vec2 *arg1; /** pos */ olua_to_object(L, 1, &self, "cc.Grid3D"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec3 getOriginalVertex(const cocos2d::Vec2 &pos) - cocos2d::Vec3 ret = self->getOriginalVertex(arg1); + cocos2d::Vec3 ret = self->getOriginalVertex(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec3"); olua_endinvoke(L); @@ -8774,13 +9665,13 @@ static int _cocos2d_Grid3D_getVertex(lua_State *L) olua_startinvoke(L); cocos2d::Grid3D *self = nullptr; - cocos2d::Vec2 arg1; /** pos */ + cocos2d::Vec2 *arg1; /** pos */ olua_to_object(L, 1, &self, "cc.Grid3D"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec3 getVertex(const cocos2d::Vec2 &pos) - cocos2d::Vec3 ret = self->getVertex(arg1); + cocos2d::Vec3 ret = self->getVertex(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec3"); olua_endinvoke(L); @@ -8811,23 +9702,22 @@ static int _cocos2d_Grid3D_setVertex(lua_State *L) olua_startinvoke(L); cocos2d::Grid3D *self = nullptr; - cocos2d::Vec2 arg1; /** pos */ - cocos2d::Vec3 arg2; /** vertex */ + cocos2d::Vec2 *arg1; /** pos */ + cocos2d::Vec3 *arg2; /** vertex */ olua_to_object(L, 1, &self, "cc.Grid3D"); olua_check_object(L, 2, &arg1, "cc.Vec2"); olua_check_object(L, 3, &arg2, "cc.Vec3"); // void setVertex(const cocos2d::Vec2 &pos, const cocos2d::Vec3 &vertex) - self->setVertex(arg1, arg2); + self->setVertex(*arg1, *arg2); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Grid3D(lua_State *L) +static int _cc_Grid3D(lua_State *L) { oluacls_class(L, "cc.Grid3D"); oluacls_func(L, "create", _cocos2d_Grid3D_create); @@ -8840,18 +9730,28 @@ OLUA_LIB int luaopen_cocos2d_Grid3D(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Grid3D(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Grid3D"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TiledGrid3D_create$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** gridSize */ + cocos2d::Size *arg1; /** gridSize */ olua_check_object(L, 1, &arg1, "cc.Size"); // static cocos2d::TiledGrid3D *create(const cocos2d::Size &gridSize) - cocos2d::TiledGrid3D *ret = cocos2d::TiledGrid3D::create(arg1); + cocos2d::TiledGrid3D *ret = cocos2d::TiledGrid3D::create(*arg1); int num_ret = olua_push_object(L, ret, "cc.TiledGrid3D"); olua_endinvoke(L); @@ -8863,14 +9763,14 @@ static int _cocos2d_TiledGrid3D_create$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** gridSize */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Size *arg1; /** gridSize */ + cocos2d::Rect *arg2; /** rect */ olua_check_object(L, 1, &arg1, "cc.Size"); olua_check_object(L, 2, &arg2, "cc.Rect"); // static cocos2d::TiledGrid3D *create(const cocos2d::Size &gridSize, const cocos2d::Rect &rect) - cocos2d::TiledGrid3D *ret = cocos2d::TiledGrid3D::create(arg1, arg2); + cocos2d::TiledGrid3D *ret = cocos2d::TiledGrid3D::create(*arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.TiledGrid3D"); olua_endinvoke(L); @@ -8882,7 +9782,7 @@ static int _cocos2d_TiledGrid3D_create$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** gridSize */ + cocos2d::Size *arg1; /** gridSize */ cocos2d::Texture2D *arg2 = nullptr; /** texture */ bool arg3 = false; /** flipped */ @@ -8891,7 +9791,7 @@ static int _cocos2d_TiledGrid3D_create$3(lua_State *L) olua_check_bool(L, 3, &arg3); // static cocos2d::TiledGrid3D *create(const cocos2d::Size &gridSize, cocos2d::Texture2D *texture, bool flipped) - cocos2d::TiledGrid3D *ret = cocos2d::TiledGrid3D::create(arg1, arg2, arg3); + cocos2d::TiledGrid3D *ret = cocos2d::TiledGrid3D::create(*arg1, arg2, arg3); int num_ret = olua_push_object(L, ret, "cc.TiledGrid3D"); olua_endinvoke(L); @@ -8903,10 +9803,10 @@ static int _cocos2d_TiledGrid3D_create$4(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** gridSize */ + cocos2d::Size *arg1; /** gridSize */ cocos2d::Texture2D *arg2 = nullptr; /** texture */ bool arg3 = false; /** flipped */ - cocos2d::Rect arg4; /** rect */ + cocos2d::Rect *arg4; /** rect */ olua_check_object(L, 1, &arg1, "cc.Size"); olua_check_object(L, 2, &arg2, "cc.Texture2D"); @@ -8914,7 +9814,7 @@ static int _cocos2d_TiledGrid3D_create$4(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Rect"); // static cocos2d::TiledGrid3D *create(const cocos2d::Size &gridSize, cocos2d::Texture2D *texture, bool flipped, const cocos2d::Rect &rect) - cocos2d::TiledGrid3D *ret = cocos2d::TiledGrid3D::create(arg1, arg2, arg3, arg4); + cocos2d::TiledGrid3D *ret = cocos2d::TiledGrid3D::create(*arg1, arg2, arg3, *arg4); int num_ret = olua_push_object(L, ret, "cc.TiledGrid3D"); olua_endinvoke(L); @@ -8964,13 +9864,13 @@ static int _cocos2d_TiledGrid3D_getOriginalTile(lua_State *L) olua_startinvoke(L); cocos2d::TiledGrid3D *self = nullptr; - cocos2d::Vec2 arg1; /** pos */ + cocos2d::Vec2 *arg1; /** pos */ olua_to_object(L, 1, &self, "cc.TiledGrid3D"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Quad3 getOriginalTile(const cocos2d::Vec2 &pos) - cocos2d::Quad3 ret = self->getOriginalTile(arg1); + cocos2d::Quad3 ret = self->getOriginalTile(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Quad3"); olua_endinvoke(L); @@ -8983,13 +9883,13 @@ static int _cocos2d_TiledGrid3D_getTile(lua_State *L) olua_startinvoke(L); cocos2d::TiledGrid3D *self = nullptr; - cocos2d::Vec2 arg1; /** pos */ + cocos2d::Vec2 *arg1; /** pos */ olua_to_object(L, 1, &self, "cc.TiledGrid3D"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Quad3 getTile(const cocos2d::Vec2 &pos) - cocos2d::Quad3 ret = self->getTile(arg1); + cocos2d::Quad3 ret = self->getTile(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Quad3"); olua_endinvoke(L); @@ -9002,23 +9902,22 @@ static int _cocos2d_TiledGrid3D_setTile(lua_State *L) olua_startinvoke(L); cocos2d::TiledGrid3D *self = nullptr; - cocos2d::Vec2 arg1; /** pos */ - cocos2d::Quad3 arg2; /** coords */ + cocos2d::Vec2 *arg1; /** pos */ + cocos2d::Quad3 *arg2; /** coords */ olua_to_object(L, 1, &self, "cc.TiledGrid3D"); olua_check_object(L, 2, &arg1, "cc.Vec2"); olua_check_object(L, 3, &arg2, "cc.Quad3"); // void setTile(const cocos2d::Vec2 &pos, const cocos2d::Quad3 &coords) - self->setTile(arg1, arg2); + self->setTile(*arg1, *arg2); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TiledGrid3D(lua_State *L) +static int _cc_TiledGrid3D(lua_State *L) { oluacls_class(L, "cc.TiledGrid3D"); oluacls_func(L, "create", _cocos2d_TiledGrid3D_create); @@ -9028,6 +9927,16 @@ OLUA_LIB int luaopen_cocos2d_TiledGrid3D(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TiledGrid3D(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TiledGrid3D"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_NodeGrid_create$1(lua_State *L) @@ -9047,12 +9956,12 @@ static int _cocos2d_NodeGrid_create$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ olua_check_object(L, 1, &arg1, "cc.Rect"); // static cocos2d::NodeGrid *create(const cocos2d::Rect &rect) - cocos2d::NodeGrid *ret = cocos2d::NodeGrid::create(arg1); + cocos2d::NodeGrid *ret = cocos2d::NodeGrid::create(*arg1); int num_ret = olua_push_object(L, ret, "cc.NodeGrid"); olua_endinvoke(L); @@ -9138,13 +10047,13 @@ static int _cocos2d_NodeGrid_setGridRect(lua_State *L) olua_startinvoke(L); cocos2d::NodeGrid *self = nullptr; - cocos2d::Rect arg1; /** gridRect */ + cocos2d::Rect *arg1; /** gridRect */ olua_to_object(L, 1, &self, "cc.NodeGrid"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setGridRect(const cocos2d::Rect &gridRect) - self->setGridRect(arg1); + self->setGridRect(*arg1); olua_endinvoke(L); @@ -9169,8 +10078,7 @@ static int _cocos2d_NodeGrid_setTarget(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_NodeGrid(lua_State *L) +static int _cc_NodeGrid(lua_State *L) { oluacls_class(L, "cc.NodeGrid"); oluacls_func(L, "create", _cocos2d_NodeGrid_create); @@ -9184,6 +10092,16 @@ OLUA_LIB int luaopen_cocos2d_NodeGrid(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_NodeGrid(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::NodeGrid"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_GridAction_getGrid(lua_State *L) @@ -9203,8 +10121,7 @@ static int _cocos2d_GridAction_getGrid(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_GridAction(lua_State *L) +static int _cc_GridAction(lua_State *L) { oluacls_class(L, "cc.GridAction"); oluacls_func(L, "getGrid", _cocos2d_GridAction_getGrid); @@ -9212,6 +10129,16 @@ OLUA_LIB int luaopen_cocos2d_GridAction(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_GridAction(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::GridAction"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Grid3DAction_getGridRect(lua_State *L) @@ -9236,13 +10163,13 @@ static int _cocos2d_Grid3DAction_getOriginalVertex(lua_State *L) olua_startinvoke(L); cocos2d::Grid3DAction *self = nullptr; - cocos2d::Vec2 arg1; /** position */ + cocos2d::Vec2 *arg1; /** position */ olua_to_object(L, 1, &self, "cc.Grid3DAction"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec3 getOriginalVertex(const cocos2d::Vec2 &position) - cocos2d::Vec3 ret = self->getOriginalVertex(arg1); + cocos2d::Vec3 ret = self->getOriginalVertex(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec3"); olua_endinvoke(L); @@ -9255,13 +10182,13 @@ static int _cocos2d_Grid3DAction_getVertex(lua_State *L) olua_startinvoke(L); cocos2d::Grid3DAction *self = nullptr; - cocos2d::Vec2 arg1; /** position */ + cocos2d::Vec2 *arg1; /** position */ olua_to_object(L, 1, &self, "cc.Grid3DAction"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec3 getVertex(const cocos2d::Vec2 &position) - cocos2d::Vec3 ret = self->getVertex(arg1); + cocos2d::Vec3 ret = self->getVertex(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec3"); olua_endinvoke(L); @@ -9274,23 +10201,22 @@ static int _cocos2d_Grid3DAction_setVertex(lua_State *L) olua_startinvoke(L); cocos2d::Grid3DAction *self = nullptr; - cocos2d::Vec2 arg1; /** position */ - cocos2d::Vec3 arg2; /** vertex */ + cocos2d::Vec2 *arg1; /** position */ + cocos2d::Vec3 *arg2; /** vertex */ olua_to_object(L, 1, &self, "cc.Grid3DAction"); olua_check_object(L, 2, &arg1, "cc.Vec2"); olua_check_object(L, 3, &arg2, "cc.Vec3"); // void setVertex(const cocos2d::Vec2 &position, const cocos2d::Vec3 &vertex) - self->setVertex(arg1, arg2); + self->setVertex(*arg1, *arg2); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Grid3DAction(lua_State *L) +static int _cc_Grid3DAction(lua_State *L) { oluacls_class(L, "cc.Grid3DAction"); oluacls_func(L, "getGridRect", _cocos2d_Grid3DAction_getGridRect); @@ -9301,6 +10227,16 @@ OLUA_LIB int luaopen_cocos2d_Grid3DAction(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Grid3DAction(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Grid3DAction"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TiledGrid3DAction_create(lua_State *L) @@ -9308,13 +10244,13 @@ static int _cocos2d_TiledGrid3DAction_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Size"); // static cocos2d::TiledGrid3DAction *create(float duration, const cocos2d::Size &gridSize) - cocos2d::TiledGrid3DAction *ret = cocos2d::TiledGrid3DAction::create(arg1, arg2); + cocos2d::TiledGrid3DAction *ret = cocos2d::TiledGrid3DAction::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.TiledGrid3DAction"); olua_endinvoke(L); @@ -9327,13 +10263,13 @@ static int _cocos2d_TiledGrid3DAction_getOriginalTile(lua_State *L) olua_startinvoke(L); cocos2d::TiledGrid3DAction *self = nullptr; - cocos2d::Vec2 arg1; /** position */ + cocos2d::Vec2 *arg1; /** position */ olua_to_object(L, 1, &self, "cc.TiledGrid3DAction"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Quad3 getOriginalTile(const cocos2d::Vec2 &position) - cocos2d::Quad3 ret = self->getOriginalTile(arg1); + cocos2d::Quad3 ret = self->getOriginalTile(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Quad3"); olua_endinvoke(L); @@ -9346,13 +10282,13 @@ static int _cocos2d_TiledGrid3DAction_getTile(lua_State *L) olua_startinvoke(L); cocos2d::TiledGrid3DAction *self = nullptr; - cocos2d::Vec2 arg1; /** position */ + cocos2d::Vec2 *arg1; /** position */ olua_to_object(L, 1, &self, "cc.TiledGrid3DAction"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Quad3 getTile(const cocos2d::Vec2 &position) - cocos2d::Quad3 ret = self->getTile(arg1); + cocos2d::Quad3 ret = self->getTile(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Quad3"); olua_endinvoke(L); @@ -9365,23 +10301,22 @@ static int _cocos2d_TiledGrid3DAction_setTile(lua_State *L) olua_startinvoke(L); cocos2d::TiledGrid3DAction *self = nullptr; - cocos2d::Vec2 arg1; /** position */ - cocos2d::Quad3 arg2; /** coords */ + cocos2d::Vec2 *arg1; /** position */ + cocos2d::Quad3 *arg2; /** coords */ olua_to_object(L, 1, &self, "cc.TiledGrid3DAction"); olua_check_object(L, 2, &arg1, "cc.Vec2"); olua_check_object(L, 3, &arg2, "cc.Quad3"); // void setTile(const cocos2d::Vec2 &position, const cocos2d::Quad3 &coords) - self->setTile(arg1, arg2); + self->setTile(*arg1, *arg2); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TiledGrid3DAction(lua_State *L) +static int _cc_TiledGrid3DAction(lua_State *L) { oluacls_class(L, "cc.TiledGrid3DAction"); oluacls_func(L, "create", _cocos2d_TiledGrid3DAction_create); @@ -9391,6 +10326,16 @@ OLUA_LIB int luaopen_cocos2d_TiledGrid3DAction(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TiledGrid3DAction(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TiledGrid3DAction"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_AccelDeccelAmplitude_create(lua_State *L) @@ -9447,8 +10392,7 @@ static int _cocos2d_AccelDeccelAmplitude_setRate(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_AccelDeccelAmplitude(lua_State *L) +static int _cc_AccelDeccelAmplitude(lua_State *L) { oluacls_class(L, "cc.AccelDeccelAmplitude"); oluacls_func(L, "create", _cocos2d_AccelDeccelAmplitude_create); @@ -9458,6 +10402,16 @@ OLUA_LIB int luaopen_cocos2d_AccelDeccelAmplitude(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_AccelDeccelAmplitude(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::AccelDeccelAmplitude"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_AccelAmplitude_create(lua_State *L) @@ -9514,8 +10468,7 @@ static int _cocos2d_AccelAmplitude_setRate(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_AccelAmplitude(lua_State *L) +static int _cc_AccelAmplitude(lua_State *L) { oluacls_class(L, "cc.AccelAmplitude"); oluacls_func(L, "create", _cocos2d_AccelAmplitude_create); @@ -9525,6 +10478,16 @@ OLUA_LIB int luaopen_cocos2d_AccelAmplitude(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_AccelAmplitude(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::AccelAmplitude"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_DeccelAmplitude_create(lua_State *L) @@ -9581,8 +10544,7 @@ static int _cocos2d_DeccelAmplitude_setRate(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_DeccelAmplitude(lua_State *L) +static int _cc_DeccelAmplitude(lua_State *L) { oluacls_class(L, "cc.DeccelAmplitude"); oluacls_func(L, "create", _cocos2d_DeccelAmplitude_create); @@ -9592,6 +10554,16 @@ OLUA_LIB int luaopen_cocos2d_DeccelAmplitude(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_DeccelAmplitude(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::DeccelAmplitude"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_StopGrid_create(lua_State *L) @@ -9607,14 +10579,23 @@ static int _cocos2d_StopGrid_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_StopGrid(lua_State *L) +static int _cc_StopGrid(lua_State *L) { oluacls_class(L, "cc.StopGrid"); oluacls_func(L, "create", _cocos2d_StopGrid_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_StopGrid(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::StopGrid"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ReuseGrid_create(lua_State *L) @@ -9653,8 +10634,7 @@ static int _cocos2d_ReuseGrid_initWithTimes(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ReuseGrid(lua_State *L) +static int _cc_ReuseGrid(lua_State *L) { oluacls_class(L, "cc.ReuseGrid"); oluacls_func(L, "create", _cocos2d_ReuseGrid_create); @@ -9662,6 +10642,16 @@ OLUA_LIB int luaopen_cocos2d_ReuseGrid(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ReuseGrid(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ReuseGrid"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Waves3D_create(lua_State *L) @@ -9669,7 +10659,7 @@ static int _cocos2d_Waves3D_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ unsigned int arg3 = 0; /** waves */ float arg4 = 0; /** amplitude */ @@ -9679,7 +10669,7 @@ static int _cocos2d_Waves3D_create(lua_State *L) olua_check_number(L, 4, &arg4); // static cocos2d::Waves3D *create(float duration, const cocos2d::Size &gridSize, unsigned int waves, float amplitude) - cocos2d::Waves3D *ret = cocos2d::Waves3D::create(arg1, arg2, arg3, arg4); + cocos2d::Waves3D *ret = cocos2d::Waves3D::create(arg1, *arg2, arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.Waves3D"); olua_endinvoke(L); @@ -9722,8 +10712,7 @@ static int _cocos2d_Waves3D_setAmplitude(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Waves3D(lua_State *L) +static int _cc_Waves3D(lua_State *L) { oluacls_class(L, "cc.Waves3D"); oluacls_func(L, "create", _cocos2d_Waves3D_create); @@ -9733,6 +10722,16 @@ OLUA_LIB int luaopen_cocos2d_Waves3D(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Waves3D(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Waves3D"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FlipX3D_create(lua_State *L) @@ -9757,7 +10756,7 @@ static int _cocos2d_FlipX3D_initWithSize(lua_State *L) olua_startinvoke(L); cocos2d::FlipX3D *self = nullptr; - cocos2d::Size arg1; /** gridSize */ + cocos2d::Size *arg1; /** gridSize */ float arg2 = 0; /** duration */ olua_to_object(L, 1, &self, "cc.FlipX3D"); @@ -9765,7 +10764,7 @@ static int _cocos2d_FlipX3D_initWithSize(lua_State *L) olua_check_number(L, 3, &arg2); // bool initWithSize(const cocos2d::Size &gridSize, float duration) - bool ret = self->initWithSize(arg1, arg2); + bool ret = self->initWithSize(*arg1, arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -9773,8 +10772,7 @@ static int _cocos2d_FlipX3D_initWithSize(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FlipX3D(lua_State *L) +static int _cc_FlipX3D(lua_State *L) { oluacls_class(L, "cc.FlipX3D"); oluacls_func(L, "create", _cocos2d_FlipX3D_create); @@ -9782,6 +10780,16 @@ OLUA_LIB int luaopen_cocos2d_FlipX3D(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FlipX3D(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FlipX3D"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FlipY3D_create(lua_State *L) @@ -9801,14 +10809,23 @@ static int _cocos2d_FlipY3D_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FlipY3D(lua_State *L) +static int _cc_FlipY3D(lua_State *L) { oluacls_class(L, "cc.FlipY3D"); oluacls_func(L, "create", _cocos2d_FlipY3D_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FlipY3D(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FlipY3D"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Lens3D_create(lua_State *L) @@ -9816,8 +10833,8 @@ static int _cocos2d_Lens3D_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ - cocos2d::Vec2 arg3; /** position */ + cocos2d::Size *arg2; /** gridSize */ + cocos2d::Vec2 *arg3; /** position */ float arg4 = 0; /** radius */ olua_check_number(L, 1, &arg1); @@ -9826,7 +10843,7 @@ static int _cocos2d_Lens3D_create(lua_State *L) olua_check_number(L, 4, &arg4); // static cocos2d::Lens3D *create(float duration, const cocos2d::Size &gridSize, const cocos2d::Vec2 &position, float radius) - cocos2d::Lens3D *ret = cocos2d::Lens3D::create(arg1, arg2, arg3, arg4); + cocos2d::Lens3D *ret = cocos2d::Lens3D::create(arg1, *arg2, *arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.Lens3D"); olua_endinvoke(L); @@ -9909,21 +10926,20 @@ static int _cocos2d_Lens3D_setPosition(lua_State *L) olua_startinvoke(L); cocos2d::Lens3D *self = nullptr; - cocos2d::Vec2 arg1; /** position */ + cocos2d::Vec2 *arg1; /** position */ olua_to_object(L, 1, &self, "cc.Lens3D"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setPosition(const cocos2d::Vec2 &position) - self->setPosition(arg1); + self->setPosition(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Lens3D(lua_State *L) +static int _cc_Lens3D(lua_State *L) { oluacls_class(L, "cc.Lens3D"); oluacls_func(L, "create", _cocos2d_Lens3D_create); @@ -9937,6 +10953,16 @@ OLUA_LIB int luaopen_cocos2d_Lens3D(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Lens3D(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Lens3D"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Ripple3D_create(lua_State *L) @@ -9944,8 +10970,8 @@ static int _cocos2d_Ripple3D_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ - cocos2d::Vec2 arg3; /** position */ + cocos2d::Size *arg2; /** gridSize */ + cocos2d::Vec2 *arg3; /** position */ float arg4 = 0; /** radius */ unsigned int arg5 = 0; /** waves */ float arg6 = 0; /** amplitude */ @@ -9958,7 +10984,7 @@ static int _cocos2d_Ripple3D_create(lua_State *L) olua_check_number(L, 6, &arg6); // static cocos2d::Ripple3D *create(float duration, const cocos2d::Size &gridSize, const cocos2d::Vec2 &position, float radius, unsigned int waves, float amplitude) - cocos2d::Ripple3D *ret = cocos2d::Ripple3D::create(arg1, arg2, arg3, arg4, arg5, arg6); + cocos2d::Ripple3D *ret = cocos2d::Ripple3D::create(arg1, *arg2, *arg3, arg4, arg5, arg6); int num_ret = olua_push_object(L, ret, "cc.Ripple3D"); olua_endinvoke(L); @@ -10023,21 +11049,20 @@ static int _cocos2d_Ripple3D_setPosition(lua_State *L) olua_startinvoke(L); cocos2d::Ripple3D *self = nullptr; - cocos2d::Vec2 arg1; /** position */ + cocos2d::Vec2 *arg1; /** position */ olua_to_object(L, 1, &self, "cc.Ripple3D"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setPosition(const cocos2d::Vec2 &position) - self->setPosition(arg1); + self->setPosition(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Ripple3D(lua_State *L) +static int _cc_Ripple3D(lua_State *L) { oluacls_class(L, "cc.Ripple3D"); oluacls_func(L, "create", _cocos2d_Ripple3D_create); @@ -10050,6 +11075,16 @@ OLUA_LIB int luaopen_cocos2d_Ripple3D(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Ripple3D(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Ripple3D"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Shaky3D_create(lua_State *L) @@ -10057,7 +11092,7 @@ static int _cocos2d_Shaky3D_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** initWithDuration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ int arg3 = 0; /** range */ bool arg4 = false; /** shakeZ */ @@ -10067,7 +11102,7 @@ static int _cocos2d_Shaky3D_create(lua_State *L) olua_check_bool(L, 4, &arg4); // static cocos2d::Shaky3D *create(float initWithDuration, const cocos2d::Size &gridSize, int range, bool shakeZ) - cocos2d::Shaky3D *ret = cocos2d::Shaky3D::create(arg1, arg2, arg3, arg4); + cocos2d::Shaky3D *ret = cocos2d::Shaky3D::create(arg1, *arg2, arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.Shaky3D"); olua_endinvoke(L); @@ -10075,14 +11110,23 @@ static int _cocos2d_Shaky3D_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Shaky3D(lua_State *L) +static int _cc_Shaky3D(lua_State *L) { oluacls_class(L, "cc.Shaky3D"); oluacls_func(L, "create", _cocos2d_Shaky3D_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Shaky3D(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Shaky3D"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Liquid_create(lua_State *L) @@ -10090,7 +11134,7 @@ static int _cocos2d_Liquid_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ unsigned int arg3 = 0; /** waves */ float arg4 = 0; /** amplitude */ @@ -10100,7 +11144,7 @@ static int _cocos2d_Liquid_create(lua_State *L) olua_check_number(L, 4, &arg4); // static cocos2d::Liquid *create(float duration, const cocos2d::Size &gridSize, unsigned int waves, float amplitude) - cocos2d::Liquid *ret = cocos2d::Liquid::create(arg1, arg2, arg3, arg4); + cocos2d::Liquid *ret = cocos2d::Liquid::create(arg1, *arg2, arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.Liquid"); olua_endinvoke(L); @@ -10143,8 +11187,7 @@ static int _cocos2d_Liquid_setAmplitude(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Liquid(lua_State *L) +static int _cc_Liquid(lua_State *L) { oluacls_class(L, "cc.Liquid"); oluacls_func(L, "create", _cocos2d_Liquid_create); @@ -10154,6 +11197,16 @@ OLUA_LIB int luaopen_cocos2d_Liquid(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Liquid(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Liquid"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Waves_create(lua_State *L) @@ -10161,7 +11214,7 @@ static int _cocos2d_Waves_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ unsigned int arg3 = 0; /** waves */ float arg4 = 0; /** amplitude */ bool arg5 = false; /** horizontal */ @@ -10175,7 +11228,7 @@ static int _cocos2d_Waves_create(lua_State *L) olua_check_bool(L, 6, &arg6); // static cocos2d::Waves *create(float duration, const cocos2d::Size &gridSize, unsigned int waves, float amplitude, bool horizontal, bool vertical) - cocos2d::Waves *ret = cocos2d::Waves::create(arg1, arg2, arg3, arg4, arg5, arg6); + cocos2d::Waves *ret = cocos2d::Waves::create(arg1, *arg2, arg3, arg4, arg5, arg6); int num_ret = olua_push_object(L, ret, "cc.Waves"); olua_endinvoke(L); @@ -10218,8 +11271,7 @@ static int _cocos2d_Waves_setAmplitude(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Waves(lua_State *L) +static int _cc_Waves(lua_State *L) { oluacls_class(L, "cc.Waves"); oluacls_func(L, "create", _cocos2d_Waves_create); @@ -10229,6 +11281,16 @@ OLUA_LIB int luaopen_cocos2d_Waves(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Waves(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Waves"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Twirl_create(lua_State *L) @@ -10236,8 +11298,8 @@ static int _cocos2d_Twirl_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ - cocos2d::Vec2 arg3; /** position */ + cocos2d::Size *arg2; /** gridSize */ + cocos2d::Vec2 *arg3; /** position */ unsigned int arg4 = 0; /** twirls */ float arg5 = 0; /** amplitude */ @@ -10248,7 +11310,7 @@ static int _cocos2d_Twirl_create(lua_State *L) olua_check_number(L, 5, &arg5); // static cocos2d::Twirl *create(float duration, const cocos2d::Size &gridSize, const cocos2d::Vec2 &position, unsigned int twirls, float amplitude) - cocos2d::Twirl *ret = cocos2d::Twirl::create(arg1, arg2, arg3, arg4, arg5); + cocos2d::Twirl *ret = cocos2d::Twirl::create(arg1, *arg2, *arg3, arg4, arg5); int num_ret = olua_push_object(L, ret, "cc.Twirl"); olua_endinvoke(L); @@ -10313,21 +11375,20 @@ static int _cocos2d_Twirl_setPosition(lua_State *L) olua_startinvoke(L); cocos2d::Twirl *self = nullptr; - cocos2d::Vec2 arg1; /** position */ + cocos2d::Vec2 *arg1; /** position */ olua_to_object(L, 1, &self, "cc.Twirl"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setPosition(const cocos2d::Vec2 &position) - self->setPosition(arg1); + self->setPosition(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Twirl(lua_State *L) +static int _cc_Twirl(lua_State *L) { oluacls_class(L, "cc.Twirl"); oluacls_func(L, "create", _cocos2d_Twirl_create); @@ -10340,6 +11401,16 @@ OLUA_LIB int luaopen_cocos2d_Twirl(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Twirl(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Twirl"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_PageTurn3D_create(lua_State *L) @@ -10347,13 +11418,13 @@ static int _cocos2d_PageTurn3D_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Size"); // static cocos2d::PageTurn3D *create(float duration, const cocos2d::Size &gridSize) - cocos2d::PageTurn3D *ret = cocos2d::PageTurn3D::create(arg1, arg2); + cocos2d::PageTurn3D *ret = cocos2d::PageTurn3D::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.PageTurn3D"); olua_endinvoke(L); @@ -10361,14 +11432,23 @@ static int _cocos2d_PageTurn3D_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PageTurn3D(lua_State *L) +static int _cc_PageTurn3D(lua_State *L) { oluacls_class(L, "cc.PageTurn3D"); oluacls_func(L, "create", _cocos2d_PageTurn3D_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PageTurn3D(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PageTurn3D"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ShakyTiles3D_create(lua_State *L) @@ -10376,7 +11456,7 @@ static int _cocos2d_ShakyTiles3D_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ int arg3 = 0; /** range */ bool arg4 = false; /** shakeZ */ @@ -10386,7 +11466,7 @@ static int _cocos2d_ShakyTiles3D_create(lua_State *L) olua_check_bool(L, 4, &arg4); // static cocos2d::ShakyTiles3D *create(float duration, const cocos2d::Size &gridSize, int range, bool shakeZ) - cocos2d::ShakyTiles3D *ret = cocos2d::ShakyTiles3D::create(arg1, arg2, arg3, arg4); + cocos2d::ShakyTiles3D *ret = cocos2d::ShakyTiles3D::create(arg1, *arg2, arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.ShakyTiles3D"); olua_endinvoke(L); @@ -10394,14 +11474,23 @@ static int _cocos2d_ShakyTiles3D_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ShakyTiles3D(lua_State *L) +static int _cc_ShakyTiles3D(lua_State *L) { oluacls_class(L, "cc.ShakyTiles3D"); oluacls_func(L, "create", _cocos2d_ShakyTiles3D_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ShakyTiles3D(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ShakyTiles3D"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ShatteredTiles3D_create(lua_State *L) @@ -10409,7 +11498,7 @@ static int _cocos2d_ShatteredTiles3D_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ int arg3 = 0; /** range */ bool arg4 = false; /** shatterZ */ @@ -10419,7 +11508,7 @@ static int _cocos2d_ShatteredTiles3D_create(lua_State *L) olua_check_bool(L, 4, &arg4); // static cocos2d::ShatteredTiles3D *create(float duration, const cocos2d::Size &gridSize, int range, bool shatterZ) - cocos2d::ShatteredTiles3D *ret = cocos2d::ShatteredTiles3D::create(arg1, arg2, arg3, arg4); + cocos2d::ShatteredTiles3D *ret = cocos2d::ShatteredTiles3D::create(arg1, *arg2, arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.ShatteredTiles3D"); olua_endinvoke(L); @@ -10427,14 +11516,23 @@ static int _cocos2d_ShatteredTiles3D_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ShatteredTiles3D(lua_State *L) +static int _cc_ShatteredTiles3D(lua_State *L) { oluacls_class(L, "cc.ShatteredTiles3D"); oluacls_func(L, "create", _cocos2d_ShatteredTiles3D_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ShatteredTiles3D(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ShatteredTiles3D"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ShuffleTiles_create(lua_State *L) @@ -10442,7 +11540,7 @@ static int _cocos2d_ShuffleTiles_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ unsigned int arg3 = 0; /** seed */ olua_check_number(L, 1, &arg1); @@ -10450,7 +11548,7 @@ static int _cocos2d_ShuffleTiles_create(lua_State *L) olua_check_integer(L, 3, &arg3); // static cocos2d::ShuffleTiles *create(float duration, const cocos2d::Size &gridSize, unsigned int seed) - cocos2d::ShuffleTiles *ret = cocos2d::ShuffleTiles::create(arg1, arg2, arg3); + cocos2d::ShuffleTiles *ret = cocos2d::ShuffleTiles::create(arg1, *arg2, arg3); int num_ret = olua_push_object(L, ret, "cc.ShuffleTiles"); olua_endinvoke(L); @@ -10463,13 +11561,13 @@ static int _cocos2d_ShuffleTiles_getDelta(lua_State *L) olua_startinvoke(L); cocos2d::ShuffleTiles *self = nullptr; - cocos2d::Size arg1; /** pos */ + cocos2d::Size *arg1; /** pos */ olua_to_object(L, 1, &self, "cc.ShuffleTiles"); olua_check_object(L, 2, &arg1, "cc.Size"); // cocos2d::Size getDelta(const cocos2d::Size &pos) - cocos2d::Size ret = self->getDelta(arg1); + cocos2d::Size ret = self->getDelta(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Size"); olua_endinvoke(L); @@ -10497,8 +11595,7 @@ static int _cocos2d_ShuffleTiles_shuffle(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ShuffleTiles(lua_State *L) +static int _cc_ShuffleTiles(lua_State *L) { oluacls_class(L, "cc.ShuffleTiles"); oluacls_func(L, "create", _cocos2d_ShuffleTiles_create); @@ -10507,6 +11604,16 @@ OLUA_LIB int luaopen_cocos2d_ShuffleTiles(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ShuffleTiles(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ShuffleTiles"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FadeOutTRTiles_create(lua_State *L) @@ -10514,13 +11621,13 @@ static int _cocos2d_FadeOutTRTiles_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Size"); // static cocos2d::FadeOutTRTiles *create(float duration, const cocos2d::Size &gridSize) - cocos2d::FadeOutTRTiles *ret = cocos2d::FadeOutTRTiles::create(arg1, arg2); + cocos2d::FadeOutTRTiles *ret = cocos2d::FadeOutTRTiles::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.FadeOutTRTiles"); olua_endinvoke(L); @@ -10533,7 +11640,7 @@ static int _cocos2d_FadeOutTRTiles_testFunc(lua_State *L) olua_startinvoke(L); cocos2d::FadeOutTRTiles *self = nullptr; - cocos2d::Size arg1; /** pos */ + cocos2d::Size *arg1; /** pos */ float arg2 = 0; /** time */ olua_to_object(L, 1, &self, "cc.FadeOutTRTiles"); @@ -10541,7 +11648,7 @@ static int _cocos2d_FadeOutTRTiles_testFunc(lua_State *L) olua_check_number(L, 3, &arg2); // float testFunc(const cocos2d::Size &pos, float time) - float ret = self->testFunc(arg1, arg2); + float ret = self->testFunc(*arg1, arg2); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -10554,7 +11661,7 @@ static int _cocos2d_FadeOutTRTiles_transformTile(lua_State *L) olua_startinvoke(L); cocos2d::FadeOutTRTiles *self = nullptr; - cocos2d::Vec2 arg1; /** pos */ + cocos2d::Vec2 *arg1; /** pos */ float arg2 = 0; /** distance */ olua_to_object(L, 1, &self, "cc.FadeOutTRTiles"); @@ -10562,7 +11669,7 @@ static int _cocos2d_FadeOutTRTiles_transformTile(lua_State *L) olua_check_number(L, 3, &arg2); // void transformTile(const cocos2d::Vec2 &pos, float distance) - self->transformTile(arg1, arg2); + self->transformTile(*arg1, arg2); olua_endinvoke(L); @@ -10574,13 +11681,13 @@ static int _cocos2d_FadeOutTRTiles_turnOffTile(lua_State *L) olua_startinvoke(L); cocos2d::FadeOutTRTiles *self = nullptr; - cocos2d::Vec2 arg1; /** pos */ + cocos2d::Vec2 *arg1; /** pos */ olua_to_object(L, 1, &self, "cc.FadeOutTRTiles"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void turnOffTile(const cocos2d::Vec2 &pos) - self->turnOffTile(arg1); + self->turnOffTile(*arg1); olua_endinvoke(L); @@ -10592,21 +11699,20 @@ static int _cocos2d_FadeOutTRTiles_turnOnTile(lua_State *L) olua_startinvoke(L); cocos2d::FadeOutTRTiles *self = nullptr; - cocos2d::Vec2 arg1; /** pos */ + cocos2d::Vec2 *arg1; /** pos */ olua_to_object(L, 1, &self, "cc.FadeOutTRTiles"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void turnOnTile(const cocos2d::Vec2 &pos) - self->turnOnTile(arg1); + self->turnOnTile(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FadeOutTRTiles(lua_State *L) +static int _cc_FadeOutTRTiles(lua_State *L) { oluacls_class(L, "cc.FadeOutTRTiles"); oluacls_func(L, "create", _cocos2d_FadeOutTRTiles_create); @@ -10617,6 +11723,16 @@ OLUA_LIB int luaopen_cocos2d_FadeOutTRTiles(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FadeOutTRTiles(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FadeOutTRTiles"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FadeOutBLTiles_create(lua_State *L) @@ -10624,13 +11740,13 @@ static int _cocos2d_FadeOutBLTiles_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Size"); // static cocos2d::FadeOutBLTiles *create(float duration, const cocos2d::Size &gridSize) - cocos2d::FadeOutBLTiles *ret = cocos2d::FadeOutBLTiles::create(arg1, arg2); + cocos2d::FadeOutBLTiles *ret = cocos2d::FadeOutBLTiles::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.FadeOutBLTiles"); olua_endinvoke(L); @@ -10638,14 +11754,23 @@ static int _cocos2d_FadeOutBLTiles_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FadeOutBLTiles(lua_State *L) +static int _cc_FadeOutBLTiles(lua_State *L) { oluacls_class(L, "cc.FadeOutBLTiles"); oluacls_func(L, "create", _cocos2d_FadeOutBLTiles_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FadeOutBLTiles(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FadeOutBLTiles"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FadeOutUpTiles_create(lua_State *L) @@ -10653,13 +11778,13 @@ static int _cocos2d_FadeOutUpTiles_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Size"); // static cocos2d::FadeOutUpTiles *create(float duration, const cocos2d::Size &gridSize) - cocos2d::FadeOutUpTiles *ret = cocos2d::FadeOutUpTiles::create(arg1, arg2); + cocos2d::FadeOutUpTiles *ret = cocos2d::FadeOutUpTiles::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.FadeOutUpTiles"); olua_endinvoke(L); @@ -10667,14 +11792,23 @@ static int _cocos2d_FadeOutUpTiles_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FadeOutUpTiles(lua_State *L) +static int _cc_FadeOutUpTiles(lua_State *L) { oluacls_class(L, "cc.FadeOutUpTiles"); oluacls_func(L, "create", _cocos2d_FadeOutUpTiles_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FadeOutUpTiles(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FadeOutUpTiles"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_FadeOutDownTiles_create(lua_State *L) @@ -10682,13 +11816,13 @@ static int _cocos2d_FadeOutDownTiles_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Size"); // static cocos2d::FadeOutDownTiles *create(float duration, const cocos2d::Size &gridSize) - cocos2d::FadeOutDownTiles *ret = cocos2d::FadeOutDownTiles::create(arg1, arg2); + cocos2d::FadeOutDownTiles *ret = cocos2d::FadeOutDownTiles::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.FadeOutDownTiles"); olua_endinvoke(L); @@ -10696,14 +11830,23 @@ static int _cocos2d_FadeOutDownTiles_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_FadeOutDownTiles(lua_State *L) +static int _cc_FadeOutDownTiles(lua_State *L) { oluacls_class(L, "cc.FadeOutDownTiles"); oluacls_func(L, "create", _cocos2d_FadeOutDownTiles_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_FadeOutDownTiles(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::FadeOutDownTiles"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TurnOffTiles_create$1(lua_State *L) @@ -10711,13 +11854,13 @@ static int _cocos2d_TurnOffTiles_create$1(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Size"); // static cocos2d::TurnOffTiles *create(float duration, const cocos2d::Size &gridSize) - cocos2d::TurnOffTiles *ret = cocos2d::TurnOffTiles::create(arg1, arg2); + cocos2d::TurnOffTiles *ret = cocos2d::TurnOffTiles::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.TurnOffTiles"); olua_endinvoke(L); @@ -10730,7 +11873,7 @@ static int _cocos2d_TurnOffTiles_create$2(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ unsigned int arg3 = 0; /** seed */ olua_check_number(L, 1, &arg1); @@ -10738,7 +11881,7 @@ static int _cocos2d_TurnOffTiles_create$2(lua_State *L) olua_check_integer(L, 3, &arg3); // static cocos2d::TurnOffTiles *create(float duration, const cocos2d::Size &gridSize, unsigned int seed) - cocos2d::TurnOffTiles *ret = cocos2d::TurnOffTiles::create(arg1, arg2, arg3); + cocos2d::TurnOffTiles *ret = cocos2d::TurnOffTiles::create(arg1, *arg2, arg3); int num_ret = olua_push_object(L, ret, "cc.TurnOffTiles"); olua_endinvoke(L); @@ -10794,13 +11937,13 @@ static int _cocos2d_TurnOffTiles_turnOffTile(lua_State *L) olua_startinvoke(L); cocos2d::TurnOffTiles *self = nullptr; - cocos2d::Vec2 arg1; /** pos */ + cocos2d::Vec2 *arg1; /** pos */ olua_to_object(L, 1, &self, "cc.TurnOffTiles"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void turnOffTile(const cocos2d::Vec2 &pos) - self->turnOffTile(arg1); + self->turnOffTile(*arg1); olua_endinvoke(L); @@ -10812,21 +11955,20 @@ static int _cocos2d_TurnOffTiles_turnOnTile(lua_State *L) olua_startinvoke(L); cocos2d::TurnOffTiles *self = nullptr; - cocos2d::Vec2 arg1; /** pos */ + cocos2d::Vec2 *arg1; /** pos */ olua_to_object(L, 1, &self, "cc.TurnOffTiles"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void turnOnTile(const cocos2d::Vec2 &pos) - self->turnOnTile(arg1); + self->turnOnTile(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TurnOffTiles(lua_State *L) +static int _cc_TurnOffTiles(lua_State *L) { oluacls_class(L, "cc.TurnOffTiles"); oluacls_func(L, "create", _cocos2d_TurnOffTiles_create); @@ -10836,6 +11978,16 @@ OLUA_LIB int luaopen_cocos2d_TurnOffTiles(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TurnOffTiles(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TurnOffTiles"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_WavesTiles3D_create(lua_State *L) @@ -10843,7 +11995,7 @@ static int _cocos2d_WavesTiles3D_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ unsigned int arg3 = 0; /** waves */ float arg4 = 0; /** amplitude */ @@ -10853,7 +12005,7 @@ static int _cocos2d_WavesTiles3D_create(lua_State *L) olua_check_number(L, 4, &arg4); // static cocos2d::WavesTiles3D *create(float duration, const cocos2d::Size &gridSize, unsigned int waves, float amplitude) - cocos2d::WavesTiles3D *ret = cocos2d::WavesTiles3D::create(arg1, arg2, arg3, arg4); + cocos2d::WavesTiles3D *ret = cocos2d::WavesTiles3D::create(arg1, *arg2, arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.WavesTiles3D"); olua_endinvoke(L); @@ -10896,8 +12048,7 @@ static int _cocos2d_WavesTiles3D_setAmplitude(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_WavesTiles3D(lua_State *L) +static int _cc_WavesTiles3D(lua_State *L) { oluacls_class(L, "cc.WavesTiles3D"); oluacls_func(L, "create", _cocos2d_WavesTiles3D_create); @@ -10907,6 +12058,16 @@ OLUA_LIB int luaopen_cocos2d_WavesTiles3D(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_WavesTiles3D(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::WavesTiles3D"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_JumpTiles3D_create(lua_State *L) @@ -10914,7 +12075,7 @@ static int _cocos2d_JumpTiles3D_create(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** duration */ - cocos2d::Size arg2; /** gridSize */ + cocos2d::Size *arg2; /** gridSize */ unsigned int arg3 = 0; /** numberOfJumps */ float arg4 = 0; /** amplitude */ @@ -10924,7 +12085,7 @@ static int _cocos2d_JumpTiles3D_create(lua_State *L) olua_check_number(L, 4, &arg4); // static cocos2d::JumpTiles3D *create(float duration, const cocos2d::Size &gridSize, unsigned int numberOfJumps, float amplitude) - cocos2d::JumpTiles3D *ret = cocos2d::JumpTiles3D::create(arg1, arg2, arg3, arg4); + cocos2d::JumpTiles3D *ret = cocos2d::JumpTiles3D::create(arg1, *arg2, arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.JumpTiles3D"); olua_endinvoke(L); @@ -10967,8 +12128,7 @@ static int _cocos2d_JumpTiles3D_setAmplitude(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_JumpTiles3D(lua_State *L) +static int _cc_JumpTiles3D(lua_State *L) { oluacls_class(L, "cc.JumpTiles3D"); oluacls_func(L, "create", _cocos2d_JumpTiles3D_create); @@ -10978,6 +12138,16 @@ OLUA_LIB int luaopen_cocos2d_JumpTiles3D(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_JumpTiles3D(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::JumpTiles3D"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_SplitRows_create(lua_State *L) @@ -10999,14 +12169,23 @@ static int _cocos2d_SplitRows_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_SplitRows(lua_State *L) +static int _cc_SplitRows(lua_State *L) { oluacls_class(L, "cc.SplitRows"); oluacls_func(L, "create", _cocos2d_SplitRows_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_SplitRows(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::SplitRows"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_SplitCols_create(lua_State *L) @@ -11028,14 +12207,23 @@ static int _cocos2d_SplitCols_create(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_SplitCols(lua_State *L) +static int _cc_SplitCols(lua_State *L) { oluacls_class(L, "cc.SplitCols"); oluacls_func(L, "create", _cocos2d_SplitCols_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_SplitCols(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::SplitCols"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_LuaTweenNode_as(lua_State *L) @@ -11078,14 +12266,14 @@ static int _cocos2d_LuaTweenNode_create(lua_State *L) std::string cb_tag = "ActionTween"; std::string cb_name = olua_setcallback(L, cb_store, 1, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](float arg1, const std::string &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](float cb_arg1, const std::string &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_number(L, arg1); - olua_push_string(L, arg2); + olua_push_number(L, cb_arg1); + olua_push_string(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -11128,8 +12316,7 @@ static int _cocos2d_LuaTweenNode_updateTweenAction(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_LuaTweenNode(lua_State *L) +static int _cc_LuaTweenNode(lua_State *L) { oluacls_class(L, "cc.LuaTweenNode"); oluacls_func(L, "as", _cocos2d_LuaTweenNode_as); @@ -11138,144 +12325,154 @@ OLUA_LIB int luaopen_cocos2d_LuaTweenNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_LuaTweenNode(lua_State *L) +{ + olua_require(L, "cocos2d_action", luaopen_cocos2d_action); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::LuaTweenNode"); + } + return 1; +} OLUA_END_DECLS OLUA_BEGIN_DECLS OLUA_LIB int luaopen_cocos2d_action(lua_State *L) { - olua_require(L, "cc.tweenfunc.TweenType", luaopen_cocos2d_tweenfunc_TweenType); - olua_require(L, "cc.Action", luaopen_cocos2d_Action); - olua_require(L, "cc.ActionTweenDelegate", luaopen_cocos2d_ActionTweenDelegate); - olua_require(L, "cc.FiniteTimeAction", luaopen_cocos2d_FiniteTimeAction); - olua_require(L, "cc.Speed", luaopen_cocos2d_Speed); - olua_require(L, "cc.Follow", luaopen_cocos2d_Follow); - olua_require(L, "cc.tweenfunc", luaopen_cocos2d_tweenfunc); - olua_require(L, "cc.ActionInterval", luaopen_cocos2d_ActionInterval); - olua_require(L, "cc.ActionTween", luaopen_cocos2d_ActionTween); - olua_require(L, "cc.Sequence", luaopen_cocos2d_Sequence); - olua_require(L, "cc.Repeat", luaopen_cocos2d_Repeat); - olua_require(L, "cc.RepeatForever", luaopen_cocos2d_RepeatForever); - olua_require(L, "cc.Spawn", luaopen_cocos2d_Spawn); - olua_require(L, "cc.RotateTo", luaopen_cocos2d_RotateTo); - olua_require(L, "cc.RotateFrom", luaopen_cocos2d_RotateFrom); - olua_require(L, "cc.RotateBy", luaopen_cocos2d_RotateBy); - olua_require(L, "cc.MoveBy", luaopen_cocos2d_MoveBy); - olua_require(L, "cc.MoveTo", luaopen_cocos2d_MoveTo); - olua_require(L, "cc.MoveFrom", luaopen_cocos2d_MoveFrom); - olua_require(L, "cc.SkewTo", luaopen_cocos2d_SkewTo); - olua_require(L, "cc.SkewBy", luaopen_cocos2d_SkewBy); - olua_require(L, "cc.ResizeTo", luaopen_cocos2d_ResizeTo); - olua_require(L, "cc.ResizeBy", luaopen_cocos2d_ResizeBy); - olua_require(L, "cc.BezierBy", luaopen_cocos2d_BezierBy); - olua_require(L, "cc.BezierTo", luaopen_cocos2d_BezierTo); - olua_require(L, "cc.JumpBy", luaopen_cocos2d_JumpBy); - olua_require(L, "cc.JumpTo", luaopen_cocos2d_JumpTo); - olua_require(L, "cc.ScaleTo", luaopen_cocos2d_ScaleTo); - olua_require(L, "cc.ScaleBy", luaopen_cocos2d_ScaleBy); - olua_require(L, "cc.ScaleFrom", luaopen_cocos2d_ScaleFrom); - olua_require(L, "cc.Blink", luaopen_cocos2d_Blink); - olua_require(L, "cc.FadeTo", luaopen_cocos2d_FadeTo); - olua_require(L, "cc.FadeFrom", luaopen_cocos2d_FadeFrom); - olua_require(L, "cc.FadeIn", luaopen_cocos2d_FadeIn); - olua_require(L, "cc.FadeOut", luaopen_cocos2d_FadeOut); - olua_require(L, "cc.TintTo", luaopen_cocos2d_TintTo); - olua_require(L, "cc.TintBy", luaopen_cocos2d_TintBy); - olua_require(L, "cc.DelayTime", luaopen_cocos2d_DelayTime); - olua_require(L, "cc.ReverseTime", luaopen_cocos2d_ReverseTime); - olua_require(L, "cc.Animate", luaopen_cocos2d_Animate); - olua_require(L, "cc.TargetedAction", luaopen_cocos2d_TargetedAction); - olua_require(L, "cc.ActionFloat.ActionFloatCallback", luaopen_cocos2d_ActionFloat_ActionFloatCallback); - olua_require(L, "cc.ActionFloat", luaopen_cocos2d_ActionFloat); - olua_require(L, "cc.ProgressTo", luaopen_cocos2d_ProgressTo); - olua_require(L, "cc.ProgressFromTo", luaopen_cocos2d_ProgressFromTo); - olua_require(L, "cc.ActionEase", luaopen_cocos2d_ActionEase); - olua_require(L, "cc.EaseRateAction", luaopen_cocos2d_EaseRateAction); - olua_require(L, "cc.EaseExponentialIn", luaopen_cocos2d_EaseExponentialIn); - olua_require(L, "cc.EaseExponentialOut", luaopen_cocos2d_EaseExponentialOut); - olua_require(L, "cc.EaseExponentialInOut", luaopen_cocos2d_EaseExponentialInOut); - olua_require(L, "cc.EaseSineIn", luaopen_cocos2d_EaseSineIn); - olua_require(L, "cc.EaseSineOut", luaopen_cocos2d_EaseSineOut); - olua_require(L, "cc.EaseSineInOut", luaopen_cocos2d_EaseSineInOut); - olua_require(L, "cc.EaseBounceIn", luaopen_cocos2d_EaseBounceIn); - olua_require(L, "cc.EaseBounceOut", luaopen_cocos2d_EaseBounceOut); - olua_require(L, "cc.EaseBounceInOut", luaopen_cocos2d_EaseBounceInOut); - olua_require(L, "cc.EaseBackIn", luaopen_cocos2d_EaseBackIn); - olua_require(L, "cc.EaseBackOut", luaopen_cocos2d_EaseBackOut); - olua_require(L, "cc.EaseBackInOut", luaopen_cocos2d_EaseBackInOut); - olua_require(L, "cc.EaseQuadraticActionIn", luaopen_cocos2d_EaseQuadraticActionIn); - olua_require(L, "cc.EaseQuadraticActionOut", luaopen_cocos2d_EaseQuadraticActionOut); - olua_require(L, "cc.EaseQuadraticActionInOut", luaopen_cocos2d_EaseQuadraticActionInOut); - olua_require(L, "cc.EaseQuarticActionIn", luaopen_cocos2d_EaseQuarticActionIn); - olua_require(L, "cc.EaseQuarticActionOut", luaopen_cocos2d_EaseQuarticActionOut); - olua_require(L, "cc.EaseQuarticActionInOut", luaopen_cocos2d_EaseQuarticActionInOut); - olua_require(L, "cc.EaseQuinticActionIn", luaopen_cocos2d_EaseQuinticActionIn); - olua_require(L, "cc.EaseQuinticActionOut", luaopen_cocos2d_EaseQuinticActionOut); - olua_require(L, "cc.EaseQuinticActionInOut", luaopen_cocos2d_EaseQuinticActionInOut); - olua_require(L, "cc.EaseCircleActionIn", luaopen_cocos2d_EaseCircleActionIn); - olua_require(L, "cc.EaseCircleActionOut", luaopen_cocos2d_EaseCircleActionOut); - olua_require(L, "cc.EaseCircleActionInOut", luaopen_cocos2d_EaseCircleActionInOut); - olua_require(L, "cc.EaseCubicActionIn", luaopen_cocos2d_EaseCubicActionIn); - olua_require(L, "cc.EaseCubicActionOut", luaopen_cocos2d_EaseCubicActionOut); - olua_require(L, "cc.EaseCubicActionInOut", luaopen_cocos2d_EaseCubicActionInOut); - olua_require(L, "cc.EaseIn", luaopen_cocos2d_EaseIn); - olua_require(L, "cc.EaseOut", luaopen_cocos2d_EaseOut); - olua_require(L, "cc.EaseInOut", luaopen_cocos2d_EaseInOut); - olua_require(L, "cc.EaseElastic", luaopen_cocos2d_EaseElastic); - olua_require(L, "cc.EaseElasticIn", luaopen_cocos2d_EaseElasticIn); - olua_require(L, "cc.EaseElasticOut", luaopen_cocos2d_EaseElasticOut); - olua_require(L, "cc.EaseElasticInOut", luaopen_cocos2d_EaseElasticInOut); - olua_require(L, "cc.EaseBezierAction", luaopen_cocos2d_EaseBezierAction); - olua_require(L, "cc.PointArray", luaopen_cocos2d_PointArray); - olua_require(L, "cc.CardinalSplineTo", luaopen_cocos2d_CardinalSplineTo); - olua_require(L, "cc.CardinalSplineBy", luaopen_cocos2d_CardinalSplineBy); - olua_require(L, "cc.CatmullRomTo", luaopen_cocos2d_CatmullRomTo); - olua_require(L, "cc.CatmullRomBy", luaopen_cocos2d_CatmullRomBy); - olua_require(L, "cc.ActionInstant", luaopen_cocos2d_ActionInstant); - olua_require(L, "cc.Show", luaopen_cocos2d_Show); - olua_require(L, "cc.Hide", luaopen_cocos2d_Hide); - olua_require(L, "cc.ToggleVisibility", luaopen_cocos2d_ToggleVisibility); - olua_require(L, "cc.RemoveSelf", luaopen_cocos2d_RemoveSelf); - olua_require(L, "cc.FlipX", luaopen_cocos2d_FlipX); - olua_require(L, "cc.FlipY", luaopen_cocos2d_FlipY); - olua_require(L, "cc.Place", luaopen_cocos2d_Place); - olua_require(L, "cc.CallFunc", luaopen_cocos2d_CallFunc); - olua_require(L, "cc.ActionCamera", luaopen_cocos2d_ActionCamera); - olua_require(L, "cc.OrbitCamera", luaopen_cocos2d_OrbitCamera); - olua_require(L, "cc.GridBase", luaopen_cocos2d_GridBase); - olua_require(L, "cc.Grid3D", luaopen_cocos2d_Grid3D); - olua_require(L, "cc.TiledGrid3D", luaopen_cocos2d_TiledGrid3D); - olua_require(L, "cc.NodeGrid", luaopen_cocos2d_NodeGrid); - olua_require(L, "cc.GridAction", luaopen_cocos2d_GridAction); - olua_require(L, "cc.Grid3DAction", luaopen_cocos2d_Grid3DAction); - olua_require(L, "cc.TiledGrid3DAction", luaopen_cocos2d_TiledGrid3DAction); - olua_require(L, "cc.AccelDeccelAmplitude", luaopen_cocos2d_AccelDeccelAmplitude); - olua_require(L, "cc.AccelAmplitude", luaopen_cocos2d_AccelAmplitude); - olua_require(L, "cc.DeccelAmplitude", luaopen_cocos2d_DeccelAmplitude); - olua_require(L, "cc.StopGrid", luaopen_cocos2d_StopGrid); - olua_require(L, "cc.ReuseGrid", luaopen_cocos2d_ReuseGrid); - olua_require(L, "cc.Waves3D", luaopen_cocos2d_Waves3D); - olua_require(L, "cc.FlipX3D", luaopen_cocos2d_FlipX3D); - olua_require(L, "cc.FlipY3D", luaopen_cocos2d_FlipY3D); - olua_require(L, "cc.Lens3D", luaopen_cocos2d_Lens3D); - olua_require(L, "cc.Ripple3D", luaopen_cocos2d_Ripple3D); - olua_require(L, "cc.Shaky3D", luaopen_cocos2d_Shaky3D); - olua_require(L, "cc.Liquid", luaopen_cocos2d_Liquid); - olua_require(L, "cc.Waves", luaopen_cocos2d_Waves); - olua_require(L, "cc.Twirl", luaopen_cocos2d_Twirl); - olua_require(L, "cc.PageTurn3D", luaopen_cocos2d_PageTurn3D); - olua_require(L, "cc.ShakyTiles3D", luaopen_cocos2d_ShakyTiles3D); - olua_require(L, "cc.ShatteredTiles3D", luaopen_cocos2d_ShatteredTiles3D); - olua_require(L, "cc.ShuffleTiles", luaopen_cocos2d_ShuffleTiles); - olua_require(L, "cc.FadeOutTRTiles", luaopen_cocos2d_FadeOutTRTiles); - olua_require(L, "cc.FadeOutBLTiles", luaopen_cocos2d_FadeOutBLTiles); - olua_require(L, "cc.FadeOutUpTiles", luaopen_cocos2d_FadeOutUpTiles); - olua_require(L, "cc.FadeOutDownTiles", luaopen_cocos2d_FadeOutDownTiles); - olua_require(L, "cc.TurnOffTiles", luaopen_cocos2d_TurnOffTiles); - olua_require(L, "cc.WavesTiles3D", luaopen_cocos2d_WavesTiles3D); - olua_require(L, "cc.JumpTiles3D", luaopen_cocos2d_JumpTiles3D); - olua_require(L, "cc.SplitRows", luaopen_cocos2d_SplitRows); - olua_require(L, "cc.SplitCols", luaopen_cocos2d_SplitCols); - olua_require(L, "cc.LuaTweenNode", luaopen_cocos2d_LuaTweenNode); + olua_require(L, "cc.tweenfunc.TweenType", _cc_tweenfunc_TweenType); + olua_require(L, "cc.Action", _cc_Action); + olua_require(L, "cc.ActionTweenDelegate", _cc_ActionTweenDelegate); + olua_require(L, "cc.FiniteTimeAction", _cc_FiniteTimeAction); + olua_require(L, "cc.Speed", _cc_Speed); + olua_require(L, "cc.Follow", _cc_Follow); + olua_require(L, "cc.tweenfunc", _cc_tweenfunc); + olua_require(L, "cc.ActionInterval", _cc_ActionInterval); + olua_require(L, "cc.ActionTween", _cc_ActionTween); + olua_require(L, "cc.Sequence", _cc_Sequence); + olua_require(L, "cc.Repeat", _cc_Repeat); + olua_require(L, "cc.RepeatForever", _cc_RepeatForever); + olua_require(L, "cc.Spawn", _cc_Spawn); + olua_require(L, "cc.RotateTo", _cc_RotateTo); + olua_require(L, "cc.RotateFrom", _cc_RotateFrom); + olua_require(L, "cc.RotateBy", _cc_RotateBy); + olua_require(L, "cc.MoveBy", _cc_MoveBy); + olua_require(L, "cc.MoveTo", _cc_MoveTo); + olua_require(L, "cc.MoveFrom", _cc_MoveFrom); + olua_require(L, "cc.SkewTo", _cc_SkewTo); + olua_require(L, "cc.SkewBy", _cc_SkewBy); + olua_require(L, "cc.ResizeTo", _cc_ResizeTo); + olua_require(L, "cc.ResizeBy", _cc_ResizeBy); + olua_require(L, "cc.BezierBy", _cc_BezierBy); + olua_require(L, "cc.BezierTo", _cc_BezierTo); + olua_require(L, "cc.JumpBy", _cc_JumpBy); + olua_require(L, "cc.JumpTo", _cc_JumpTo); + olua_require(L, "cc.ScaleTo", _cc_ScaleTo); + olua_require(L, "cc.ScaleBy", _cc_ScaleBy); + olua_require(L, "cc.ScaleFrom", _cc_ScaleFrom); + olua_require(L, "cc.Blink", _cc_Blink); + olua_require(L, "cc.FadeTo", _cc_FadeTo); + olua_require(L, "cc.FadeFrom", _cc_FadeFrom); + olua_require(L, "cc.FadeIn", _cc_FadeIn); + olua_require(L, "cc.FadeOut", _cc_FadeOut); + olua_require(L, "cc.TintTo", _cc_TintTo); + olua_require(L, "cc.TintBy", _cc_TintBy); + olua_require(L, "cc.DelayTime", _cc_DelayTime); + olua_require(L, "cc.ReverseTime", _cc_ReverseTime); + olua_require(L, "cc.Animate", _cc_Animate); + olua_require(L, "cc.TargetedAction", _cc_TargetedAction); + olua_require(L, "cc.ActionFloat.ActionFloatCallback", _cc_ActionFloat_ActionFloatCallback); + olua_require(L, "cc.ActionFloat", _cc_ActionFloat); + olua_require(L, "cc.ProgressTo", _cc_ProgressTo); + olua_require(L, "cc.ProgressFromTo", _cc_ProgressFromTo); + olua_require(L, "cc.ActionEase", _cc_ActionEase); + olua_require(L, "cc.EaseRateAction", _cc_EaseRateAction); + olua_require(L, "cc.EaseExponentialIn", _cc_EaseExponentialIn); + olua_require(L, "cc.EaseExponentialOut", _cc_EaseExponentialOut); + olua_require(L, "cc.EaseExponentialInOut", _cc_EaseExponentialInOut); + olua_require(L, "cc.EaseSineIn", _cc_EaseSineIn); + olua_require(L, "cc.EaseSineOut", _cc_EaseSineOut); + olua_require(L, "cc.EaseSineInOut", _cc_EaseSineInOut); + olua_require(L, "cc.EaseBounceIn", _cc_EaseBounceIn); + olua_require(L, "cc.EaseBounceOut", _cc_EaseBounceOut); + olua_require(L, "cc.EaseBounceInOut", _cc_EaseBounceInOut); + olua_require(L, "cc.EaseBackIn", _cc_EaseBackIn); + olua_require(L, "cc.EaseBackOut", _cc_EaseBackOut); + olua_require(L, "cc.EaseBackInOut", _cc_EaseBackInOut); + olua_require(L, "cc.EaseQuadraticActionIn", _cc_EaseQuadraticActionIn); + olua_require(L, "cc.EaseQuadraticActionOut", _cc_EaseQuadraticActionOut); + olua_require(L, "cc.EaseQuadraticActionInOut", _cc_EaseQuadraticActionInOut); + olua_require(L, "cc.EaseQuarticActionIn", _cc_EaseQuarticActionIn); + olua_require(L, "cc.EaseQuarticActionOut", _cc_EaseQuarticActionOut); + olua_require(L, "cc.EaseQuarticActionInOut", _cc_EaseQuarticActionInOut); + olua_require(L, "cc.EaseQuinticActionIn", _cc_EaseQuinticActionIn); + olua_require(L, "cc.EaseQuinticActionOut", _cc_EaseQuinticActionOut); + olua_require(L, "cc.EaseQuinticActionInOut", _cc_EaseQuinticActionInOut); + olua_require(L, "cc.EaseCircleActionIn", _cc_EaseCircleActionIn); + olua_require(L, "cc.EaseCircleActionOut", _cc_EaseCircleActionOut); + olua_require(L, "cc.EaseCircleActionInOut", _cc_EaseCircleActionInOut); + olua_require(L, "cc.EaseCubicActionIn", _cc_EaseCubicActionIn); + olua_require(L, "cc.EaseCubicActionOut", _cc_EaseCubicActionOut); + olua_require(L, "cc.EaseCubicActionInOut", _cc_EaseCubicActionInOut); + olua_require(L, "cc.EaseIn", _cc_EaseIn); + olua_require(L, "cc.EaseOut", _cc_EaseOut); + olua_require(L, "cc.EaseInOut", _cc_EaseInOut); + olua_require(L, "cc.EaseElastic", _cc_EaseElastic); + olua_require(L, "cc.EaseElasticIn", _cc_EaseElasticIn); + olua_require(L, "cc.EaseElasticOut", _cc_EaseElasticOut); + olua_require(L, "cc.EaseElasticInOut", _cc_EaseElasticInOut); + olua_require(L, "cc.EaseBezierAction", _cc_EaseBezierAction); + olua_require(L, "cc.PointArray", _cc_PointArray); + olua_require(L, "cc.CardinalSplineTo", _cc_CardinalSplineTo); + olua_require(L, "cc.CardinalSplineBy", _cc_CardinalSplineBy); + olua_require(L, "cc.CatmullRomTo", _cc_CatmullRomTo); + olua_require(L, "cc.CatmullRomBy", _cc_CatmullRomBy); + olua_require(L, "cc.ActionInstant", _cc_ActionInstant); + olua_require(L, "cc.Show", _cc_Show); + olua_require(L, "cc.Hide", _cc_Hide); + olua_require(L, "cc.ToggleVisibility", _cc_ToggleVisibility); + olua_require(L, "cc.RemoveSelf", _cc_RemoveSelf); + olua_require(L, "cc.FlipX", _cc_FlipX); + olua_require(L, "cc.FlipY", _cc_FlipY); + olua_require(L, "cc.Place", _cc_Place); + olua_require(L, "cc.CallFunc", _cc_CallFunc); + olua_require(L, "cc.ActionCamera", _cc_ActionCamera); + olua_require(L, "cc.OrbitCamera", _cc_OrbitCamera); + olua_require(L, "cc.GridBase", _cc_GridBase); + olua_require(L, "cc.Grid3D", _cc_Grid3D); + olua_require(L, "cc.TiledGrid3D", _cc_TiledGrid3D); + olua_require(L, "cc.NodeGrid", _cc_NodeGrid); + olua_require(L, "cc.GridAction", _cc_GridAction); + olua_require(L, "cc.Grid3DAction", _cc_Grid3DAction); + olua_require(L, "cc.TiledGrid3DAction", _cc_TiledGrid3DAction); + olua_require(L, "cc.AccelDeccelAmplitude", _cc_AccelDeccelAmplitude); + olua_require(L, "cc.AccelAmplitude", _cc_AccelAmplitude); + olua_require(L, "cc.DeccelAmplitude", _cc_DeccelAmplitude); + olua_require(L, "cc.StopGrid", _cc_StopGrid); + olua_require(L, "cc.ReuseGrid", _cc_ReuseGrid); + olua_require(L, "cc.Waves3D", _cc_Waves3D); + olua_require(L, "cc.FlipX3D", _cc_FlipX3D); + olua_require(L, "cc.FlipY3D", _cc_FlipY3D); + olua_require(L, "cc.Lens3D", _cc_Lens3D); + olua_require(L, "cc.Ripple3D", _cc_Ripple3D); + olua_require(L, "cc.Shaky3D", _cc_Shaky3D); + olua_require(L, "cc.Liquid", _cc_Liquid); + olua_require(L, "cc.Waves", _cc_Waves); + olua_require(L, "cc.Twirl", _cc_Twirl); + olua_require(L, "cc.PageTurn3D", _cc_PageTurn3D); + olua_require(L, "cc.ShakyTiles3D", _cc_ShakyTiles3D); + olua_require(L, "cc.ShatteredTiles3D", _cc_ShatteredTiles3D); + olua_require(L, "cc.ShuffleTiles", _cc_ShuffleTiles); + olua_require(L, "cc.FadeOutTRTiles", _cc_FadeOutTRTiles); + olua_require(L, "cc.FadeOutBLTiles", _cc_FadeOutBLTiles); + olua_require(L, "cc.FadeOutUpTiles", _cc_FadeOutUpTiles); + olua_require(L, "cc.FadeOutDownTiles", _cc_FadeOutDownTiles); + olua_require(L, "cc.TurnOffTiles", _cc_TurnOffTiles); + olua_require(L, "cc.WavesTiles3D", _cc_WavesTiles3D); + olua_require(L, "cc.JumpTiles3D", _cc_JumpTiles3D); + olua_require(L, "cc.SplitRows", _cc_SplitRows); + olua_require(L, "cc.SplitCols", _cc_SplitCols); + olua_require(L, "cc.LuaTweenNode", _cc_LuaTweenNode); return 0; } diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_action.h b/frameworks/cclua/src/lua-bindings/lua_cocos2d_action.h index d1177512..e1ac3123 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_action.h +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_action.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_COCOS2D_ACTION_H__ #define __AUTO_GEN_LUA_COCOS2D_ACTION_H__ diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_backend.cpp b/frameworks/cclua/src/lua-bindings/lua_cocos2d_backend.cpp index 1b71afbf..743c70d8 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_backend.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_backend.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_cocos2d_backend.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -116,8 +116,7 @@ static int _cocos2d_backend_UniformLocation_shaderStage(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_UniformLocation(lua_State *L) +static int _ccb_UniformLocation(lua_State *L) { oluacls_class(L, "ccb.UniformLocation"); oluacls_func(L, "__gc", _cocos2d_backend_UniformLocation___gc); @@ -128,10 +127,19 @@ OLUA_LIB int luaopen_cocos2d_backend_UniformLocation(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_BufferUsage(lua_State *L) +OLUA_LIB int luaopen_ccb_UniformLocation(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::UniformLocation"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_BufferUsage(lua_State *L) { oluacls_class(L, "ccb.BufferUsage"); oluacls_func(L, "__index", olua_indexerror); @@ -141,10 +149,19 @@ OLUA_LIB int luaopen_cocos2d_backend_BufferUsage(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_BufferType(lua_State *L) +OLUA_LIB int luaopen_ccb_BufferUsage(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::BufferUsage"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_BufferType(lua_State *L) { oluacls_class(L, "ccb.BufferType"); oluacls_func(L, "__index", olua_indexerror); @@ -154,10 +171,19 @@ OLUA_LIB int luaopen_cocos2d_backend_BufferType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_ShaderStage(lua_State *L) +OLUA_LIB int luaopen_ccb_BufferType(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::BufferType"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_ShaderStage(lua_State *L) { oluacls_class(L, "ccb.ShaderStage"); oluacls_func(L, "__index", olua_indexerror); @@ -168,10 +194,19 @@ OLUA_LIB int luaopen_cocos2d_backend_ShaderStage(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_VertexFormat(lua_State *L) +OLUA_LIB int luaopen_ccb_ShaderStage(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::ShaderStage"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_VertexFormat(lua_State *L) { oluacls_class(L, "ccb.VertexFormat"); oluacls_func(L, "__index", olua_indexerror); @@ -190,10 +225,19 @@ OLUA_LIB int luaopen_cocos2d_backend_VertexFormat(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_PixelFormat(lua_State *L) +OLUA_LIB int luaopen_ccb_VertexFormat(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::VertexFormat"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_PixelFormat(lua_State *L) { oluacls_class(L, "ccb.PixelFormat"); oluacls_func(L, "__index", olua_indexerror); @@ -228,10 +272,19 @@ OLUA_LIB int luaopen_cocos2d_backend_PixelFormat(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_TextureUsage(lua_State *L) +OLUA_LIB int luaopen_ccb_PixelFormat(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::PixelFormat"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_TextureUsage(lua_State *L) { oluacls_class(L, "ccb.TextureUsage"); oluacls_func(L, "__index", olua_indexerror); @@ -242,10 +295,19 @@ OLUA_LIB int luaopen_cocos2d_backend_TextureUsage(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_IndexFormat(lua_State *L) +OLUA_LIB int luaopen_ccb_TextureUsage(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::TextureUsage"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_IndexFormat(lua_State *L) { oluacls_class(L, "ccb.IndexFormat"); oluacls_func(L, "__index", olua_indexerror); @@ -255,10 +317,19 @@ OLUA_LIB int luaopen_cocos2d_backend_IndexFormat(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_VertexStepMode(lua_State *L) +OLUA_LIB int luaopen_ccb_IndexFormat(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::IndexFormat"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_VertexStepMode(lua_State *L) { oluacls_class(L, "ccb.VertexStepMode"); oluacls_func(L, "__index", olua_indexerror); @@ -268,10 +339,19 @@ OLUA_LIB int luaopen_cocos2d_backend_VertexStepMode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_PrimitiveType(lua_State *L) +OLUA_LIB int luaopen_ccb_VertexStepMode(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::VertexStepMode"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_PrimitiveType(lua_State *L) { oluacls_class(L, "ccb.PrimitiveType"); oluacls_func(L, "__index", olua_indexerror); @@ -284,10 +364,19 @@ OLUA_LIB int luaopen_cocos2d_backend_PrimitiveType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_TextureType(lua_State *L) +OLUA_LIB int luaopen_ccb_PrimitiveType(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::PrimitiveType"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_TextureType(lua_State *L) { oluacls_class(L, "ccb.TextureType"); oluacls_func(L, "__index", olua_indexerror); @@ -297,10 +386,19 @@ OLUA_LIB int luaopen_cocos2d_backend_TextureType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_SamplerAddressMode(lua_State *L) +OLUA_LIB int luaopen_ccb_TextureType(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::TextureType"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_SamplerAddressMode(lua_State *L) { oluacls_class(L, "ccb.SamplerAddressMode"); oluacls_func(L, "__index", olua_indexerror); @@ -312,10 +410,19 @@ OLUA_LIB int luaopen_cocos2d_backend_SamplerAddressMode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_SamplerFilter(lua_State *L) +OLUA_LIB int luaopen_ccb_SamplerAddressMode(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::SamplerAddressMode"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_SamplerFilter(lua_State *L) { oluacls_class(L, "ccb.SamplerFilter"); oluacls_func(L, "__index", olua_indexerror); @@ -330,10 +437,19 @@ OLUA_LIB int luaopen_cocos2d_backend_SamplerFilter(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_StencilOperation(lua_State *L) +OLUA_LIB int luaopen_ccb_SamplerFilter(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::SamplerFilter"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_StencilOperation(lua_State *L) { oluacls_class(L, "ccb.StencilOperation"); oluacls_func(L, "__index", olua_indexerror); @@ -347,10 +463,19 @@ OLUA_LIB int luaopen_cocos2d_backend_StencilOperation(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_CompareFunction(lua_State *L) +OLUA_LIB int luaopen_ccb_StencilOperation(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::StencilOperation"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_CompareFunction(lua_State *L) { oluacls_class(L, "ccb.CompareFunction"); oluacls_func(L, "__index", olua_indexerror); @@ -366,10 +491,19 @@ OLUA_LIB int luaopen_cocos2d_backend_CompareFunction(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_BlendOperation(lua_State *L) +OLUA_LIB int luaopen_ccb_CompareFunction(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::CompareFunction"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_BlendOperation(lua_State *L) { oluacls_class(L, "ccb.BlendOperation"); oluacls_func(L, "__index", olua_indexerror); @@ -380,10 +514,19 @@ OLUA_LIB int luaopen_cocos2d_backend_BlendOperation(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_BlendFactor(lua_State *L) +OLUA_LIB int luaopen_ccb_BlendOperation(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::BlendOperation"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_BlendFactor(lua_State *L) { oluacls_class(L, "ccb.BlendFactor"); oluacls_func(L, "__index", olua_indexerror); @@ -405,10 +548,19 @@ OLUA_LIB int luaopen_cocos2d_backend_BlendFactor(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_ColorWriteMask(lua_State *L) +OLUA_LIB int luaopen_ccb_BlendFactor(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::BlendFactor"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_ColorWriteMask(lua_State *L) { oluacls_class(L, "ccb.ColorWriteMask"); oluacls_func(L, "__index", olua_indexerror); @@ -422,10 +574,19 @@ OLUA_LIB int luaopen_cocos2d_backend_ColorWriteMask(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_CullMode(lua_State *L) +OLUA_LIB int luaopen_ccb_ColorWriteMask(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::ColorWriteMask"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_CullMode(lua_State *L) { oluacls_class(L, "ccb.CullMode"); oluacls_func(L, "__index", olua_indexerror); @@ -436,10 +597,19 @@ OLUA_LIB int luaopen_cocos2d_backend_CullMode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_Winding(lua_State *L) +OLUA_LIB int luaopen_ccb_CullMode(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::CullMode"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_Winding(lua_State *L) { oluacls_class(L, "ccb.Winding"); oluacls_func(L, "__index", olua_indexerror); @@ -449,10 +619,19 @@ OLUA_LIB int luaopen_cocos2d_backend_Winding(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_TextureCubeFace(lua_State *L) +OLUA_LIB int luaopen_ccb_Winding(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::Winding"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_TextureCubeFace(lua_State *L) { oluacls_class(L, "ccb.TextureCubeFace"); oluacls_func(L, "__index", olua_indexerror); @@ -466,10 +645,19 @@ OLUA_LIB int luaopen_cocos2d_backend_TextureCubeFace(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_ProgramType(lua_State *L) +OLUA_LIB int luaopen_ccb_TextureCubeFace(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::TextureCubeFace"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_ProgramType(lua_State *L) { oluacls_class(L, "ccb.ProgramType"); oluacls_func(L, "__index", olua_indexerror); @@ -508,10 +696,19 @@ OLUA_LIB int luaopen_cocos2d_backend_ProgramType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_Uniform(lua_State *L) +OLUA_LIB int luaopen_ccb_ProgramType(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::ProgramType"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_Uniform(lua_State *L) { oluacls_class(L, "ccb.Uniform"); oluacls_func(L, "__index", olua_indexerror); @@ -528,10 +725,19 @@ OLUA_LIB int luaopen_cocos2d_backend_Uniform(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_Attribute(lua_State *L) +OLUA_LIB int luaopen_ccb_Uniform(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::Uniform"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_Attribute(lua_State *L) { oluacls_class(L, "ccb.Attribute"); oluacls_func(L, "__index", olua_indexerror); @@ -546,10 +752,19 @@ OLUA_LIB int luaopen_cocos2d_backend_Attribute(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_FeatureType(lua_State *L) +OLUA_LIB int luaopen_ccb_Attribute(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::Attribute"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_FeatureType(lua_State *L) { oluacls_class(L, "ccb.FeatureType"); oluacls_func(L, "__index", olua_indexerror); @@ -568,6 +783,16 @@ OLUA_LIB int luaopen_cocos2d_backend_FeatureType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_FeatureType(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::FeatureType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_Buffer_getSize(lua_State *L) @@ -647,8 +872,7 @@ static int _cocos2d_backend_Buffer_usingDefaultStoredData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_Buffer(lua_State *L) +static int _ccb_Buffer(lua_State *L) { oluacls_class(L, "ccb.Buffer"); oluacls_func(L, "getSize", _cocos2d_backend_Buffer_getSize); @@ -659,24 +883,52 @@ OLUA_LIB int luaopen_cocos2d_backend_Buffer(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_RenderPipeline(lua_State *L) +OLUA_LIB int luaopen_ccb_Buffer(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::Buffer"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_RenderPipeline(lua_State *L) { oluacls_class(L, "ccb.RenderPipeline"); return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_DepthStencilState(lua_State *L) +OLUA_LIB int luaopen_ccb_RenderPipeline(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::RenderPipeline"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccb_DepthStencilState(lua_State *L) { oluacls_class(L, "ccb.DepthStencilState"); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_DepthStencilState(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::DepthStencilState"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_VertexLayout___gc(lua_State *L) @@ -832,8 +1084,7 @@ static int _cocos2d_backend_VertexLayout_setLayout(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_VertexLayout(lua_State *L) +static int _ccb_VertexLayout(lua_State *L) { oluacls_class(L, "ccb.VertexLayout"); oluacls_func(L, "__gc", _cocos2d_backend_VertexLayout___gc); @@ -852,6 +1103,16 @@ OLUA_LIB int luaopen_cocos2d_backend_VertexLayout(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_VertexLayout(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::VertexLayout"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_CommandBuffer_beginFrame(lua_State *L) @@ -884,15 +1145,15 @@ static int _cocos2d_backend_CommandBuffer_captureScreen(lua_State *L) std::string cb_tag = "captureScreen"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const unsigned char *arg1, int arg2, int arg3) { + arg1 = [cb_store, cb_name, cb_ctx](const unsigned char *cb_arg1, int cb_arg2, int cb_arg3) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_string(L, arg1); - olua_push_integer(L, arg2); - olua_push_integer(L, arg3); + olua_push_string(L, cb_arg1); + olua_push_integer(L, cb_arg2); + olua_push_integer(L, cb_arg3); olua_callback(L, cb_store, cb_name.c_str(), 3); @@ -1243,8 +1504,7 @@ static int _cocos2d_backend_CommandBuffer_setWinding(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_CommandBuffer(lua_State *L) +static int _ccb_CommandBuffer(lua_State *L) { oluacls_class(L, "ccb.CommandBuffer"); oluacls_func(L, "beginFrame", _cocos2d_backend_CommandBuffer_beginFrame); @@ -1267,6 +1527,16 @@ OLUA_LIB int luaopen_cocos2d_backend_CommandBuffer(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_CommandBuffer(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::CommandBuffer"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_Device_createDepthStencilState(lua_State *L) @@ -1274,13 +1544,13 @@ static int _cocos2d_backend_Device_createDepthStencilState(lua_State *L) olua_startinvoke(L); cocos2d::backend::Device *self = nullptr; - cocos2d::backend::DepthStencilDescriptor arg1; /** descriptor */ + cocos2d::backend::DepthStencilDescriptor *arg1; /** descriptor */ olua_to_object(L, 1, &self, "ccb.Device"); olua_check_object(L, 2, &arg1, "ccb.DepthStencilDescriptor"); // cocos2d::backend::DepthStencilState *createDepthStencilState(const cocos2d::backend::DepthStencilDescriptor &descriptor) - cocos2d::backend::DepthStencilState *ret = self->createDepthStencilState(arg1); + cocos2d::backend::DepthStencilState *ret = self->createDepthStencilState(*arg1); int num_ret = olua_push_object(L, ret, "ccb.DepthStencilState"); olua_endinvoke(L); @@ -1413,13 +1683,13 @@ static int _cocos2d_backend_Device_newTexture(lua_State *L) olua_startinvoke(L); cocos2d::backend::Device *self = nullptr; - cocos2d::backend::TextureDescriptor arg1; /** descriptor */ + cocos2d::backend::TextureDescriptor *arg1; /** descriptor */ olua_to_object(L, 1, &self, "ccb.Device"); olua_check_object(L, 2, &arg1, "ccb.TextureDescriptor"); // @postnew cocos2d::backend::TextureBackend *newTexture(const cocos2d::backend::TextureDescriptor &descriptor) - cocos2d::backend::TextureBackend *ret = self->newTexture(arg1); + cocos2d::backend::TextureBackend *ret = self->newTexture(*arg1); int num_ret = olua_push_object(L, ret, "ccb.TextureBackend"); // insert code after call @@ -1448,8 +1718,7 @@ static int _cocos2d_backend_Device_setFrameBufferOnly(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_Device(lua_State *L) +static int _ccb_Device(lua_State *L) { oluacls_class(L, "ccb.Device"); oluacls_func(L, "createDepthStencilState", _cocos2d_backend_Device_createDepthStencilState); @@ -1466,6 +1735,16 @@ OLUA_LIB int luaopen_cocos2d_backend_Device(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_Device(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::Device"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_DeviceInfo___gc(lua_State *L) @@ -1664,8 +1943,7 @@ static int _cocos2d_backend_DeviceInfo_init(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_DeviceInfo(lua_State *L) +static int _ccb_DeviceInfo(lua_State *L) { oluacls_class(L, "ccb.DeviceInfo"); oluacls_func(L, "__gc", _cocos2d_backend_DeviceInfo___gc); @@ -1691,6 +1969,16 @@ OLUA_LIB int luaopen_cocos2d_backend_DeviceInfo(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_DeviceInfo(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::DeviceInfo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_ShaderCache_destroyInstance(lua_State *L) @@ -1768,8 +2056,7 @@ static int _cocos2d_backend_ShaderCache_removeUnusedShader(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_ShaderCache(lua_State *L) +static int _ccb_ShaderCache(lua_State *L) { oluacls_class(L, "ccb.ShaderCache"); oluacls_func(L, "destroyInstance", _cocos2d_backend_ShaderCache_destroyInstance); @@ -1781,6 +2068,16 @@ OLUA_LIB int luaopen_cocos2d_backend_ShaderCache(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_ShaderCache(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::ShaderCache"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_ShaderModule_getHashValue(lua_State *L) @@ -1817,8 +2114,7 @@ static int _cocos2d_backend_ShaderModule_getShaderStage(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_ShaderModule(lua_State *L) +static int _ccb_ShaderModule(lua_State *L) { oluacls_class(L, "ccb.ShaderModule"); oluacls_func(L, "getHashValue", _cocos2d_backend_ShaderModule_getHashValue); @@ -1828,6 +2124,16 @@ OLUA_LIB int luaopen_cocos2d_backend_ShaderModule(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_ShaderModule(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::ShaderModule"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_ProgramCache_addCustomProgram(lua_State *L) @@ -1963,8 +2269,7 @@ static int _cocos2d_backend_ProgramCache_removeUnusedProgram(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_ProgramCache(lua_State *L) +static int _ccb_ProgramCache(lua_State *L) { oluacls_class(L, "ccb.ProgramCache"); oluacls_func(L, "addCustomProgram", _cocos2d_backend_ProgramCache_addCustomProgram); @@ -1979,6 +2284,16 @@ OLUA_LIB int luaopen_cocos2d_backend_ProgramCache(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_ProgramCache(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::ProgramCache"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_ProgramState_clone(lua_State *L) @@ -2229,7 +2544,7 @@ static int _cocos2d_backend_ProgramState_setTexture(lua_State *L) olua_startinvoke(L); cocos2d::backend::ProgramState *self = nullptr; - cocos2d::backend::UniformLocation arg1; /** uniformLocation */ + cocos2d::backend::UniformLocation *arg1; /** uniformLocation */ uint32_t arg2 = 0; /** slot */ cocos2d::backend::TextureBackend *arg3 = nullptr; /** texture */ @@ -2239,7 +2554,7 @@ static int _cocos2d_backend_ProgramState_setTexture(lua_State *L) olua_check_object(L, 4, &arg3, "ccb.TextureBackend"); // void setTexture(const cocos2d::backend::UniformLocation &uniformLocation, uint32_t slot, cocos2d::backend::TextureBackend *texture) - self->setTexture(arg1, arg2, arg3); + self->setTexture(*arg1, arg2, arg3); olua_endinvoke(L); @@ -2251,7 +2566,7 @@ static int _cocos2d_backend_ProgramState_setTextureArray(lua_State *L) olua_startinvoke(L); cocos2d::backend::ProgramState *self = nullptr; - cocos2d::backend::UniformLocation arg1; /** uniformLocation */ + cocos2d::backend::UniformLocation *arg1; /** uniformLocation */ std::vector arg2; /** slots */ std::vector arg3; /** textures */ @@ -2265,7 +2580,7 @@ static int _cocos2d_backend_ProgramState_setTextureArray(lua_State *L) }); // void setTextureArray(const cocos2d::backend::UniformLocation &uniformLocation, const std::vector &slots, const std::vector textures) - self->setTextureArray(arg1, arg2, arg3); + self->setTextureArray(*arg1, arg2, arg3); olua_endinvoke(L); @@ -2277,7 +2592,7 @@ static int _cocos2d_backend_ProgramState_setUniform(lua_State *L) olua_startinvoke(L); cocos2d::backend::ProgramState *self = nullptr; - cocos2d::backend::UniformLocation arg1; /** uniformLocation */ + cocos2d::backend::UniformLocation *arg1; /** uniformLocation */ void *arg2 = nullptr; /** data */ std::size_t arg3 = 0; /** size */ @@ -2287,15 +2602,14 @@ static int _cocos2d_backend_ProgramState_setUniform(lua_State *L) olua_check_integer(L, 4, &arg3); // void setUniform(const cocos2d::backend::UniformLocation &uniformLocation, const void *data, std::size_t size) - self->setUniform(arg1, arg2, arg3); + self->setUniform(*arg1, arg2, arg3); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_ProgramState(lua_State *L) +static int _ccb_ProgramState(lua_State *L) { oluacls_class(L, "ccb.ProgramState"); oluacls_func(L, "clone", _cocos2d_backend_ProgramState_clone); @@ -2316,6 +2630,16 @@ OLUA_LIB int luaopen_cocos2d_backend_ProgramState(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_ProgramState(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::ProgramState"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_Program_getActiveAttributes(lua_State *L) @@ -2620,8 +2944,7 @@ static int _cocos2d_backend_Program_getVertexShader(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_Program(lua_State *L) +static int _ccb_Program(lua_State *L) { oluacls_class(L, "ccb.Program"); oluacls_func(L, "getActiveAttributes", _cocos2d_backend_Program_getActiveAttributes); @@ -2645,6 +2968,16 @@ OLUA_LIB int luaopen_cocos2d_backend_Program(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_Program(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::Program"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_TextureBackend_generateMipmaps(lua_State *L) @@ -2687,15 +3020,15 @@ static int _cocos2d_backend_TextureBackend_getBytes(lua_State *L) std::string cb_tag = "Bytes"; std::string cb_name = olua_setcallback(L, cb_store, 7, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg6 = [cb_store, cb_name, cb_ctx](const unsigned char *arg1, std::size_t arg2, std::size_t arg3) { + arg6 = [cb_store, cb_name, cb_ctx](const unsigned char *cb_arg1, std::size_t cb_arg2, std::size_t cb_arg3) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_string(L, arg1); - olua_push_integer(L, arg2); - olua_push_integer(L, arg3); + olua_push_string(L, cb_arg1); + olua_push_integer(L, cb_arg2); + olua_push_integer(L, cb_arg3); olua_callback(L, cb_store, cb_name.c_str(), 3); @@ -2786,13 +3119,13 @@ static int _cocos2d_backend_TextureBackend_updateSamplerDescriptor(lua_State *L) olua_startinvoke(L); cocos2d::backend::TextureBackend *self = nullptr; - cocos2d::backend::SamplerDescriptor arg1; /** sampler */ + cocos2d::backend::SamplerDescriptor *arg1; /** sampler */ olua_to_object(L, 1, &self, "ccb.TextureBackend"); olua_check_object(L, 2, &arg1, "ccb.SamplerDescriptor"); // void updateSamplerDescriptor(const cocos2d::backend::SamplerDescriptor &sampler) - self->updateSamplerDescriptor(arg1); + self->updateSamplerDescriptor(*arg1); olua_endinvoke(L); @@ -2804,21 +3137,20 @@ static int _cocos2d_backend_TextureBackend_updateTextureDescriptor(lua_State *L) olua_startinvoke(L); cocos2d::backend::TextureBackend *self = nullptr; - cocos2d::backend::TextureDescriptor arg1; /** descriptor */ + cocos2d::backend::TextureDescriptor *arg1; /** descriptor */ olua_to_object(L, 1, &self, "ccb.TextureBackend"); olua_check_object(L, 2, &arg1, "ccb.TextureDescriptor"); // void updateTextureDescriptor(const cocos2d::backend::TextureDescriptor &descriptor) - self->updateTextureDescriptor(arg1); + self->updateTextureDescriptor(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_TextureBackend(lua_State *L) +static int _ccb_TextureBackend(lua_State *L) { oluacls_class(L, "ccb.TextureBackend"); oluacls_func(L, "generateMipmaps", _cocos2d_backend_TextureBackend_generateMipmaps); @@ -2835,6 +3167,16 @@ OLUA_LIB int luaopen_cocos2d_backend_TextureBackend(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_TextureBackend(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::TextureBackend"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_Texture2DBackend_getHeight(lua_State *L) @@ -2979,8 +3321,7 @@ static int _cocos2d_backend_Texture2DBackend_updateSubData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_Texture2DBackend(lua_State *L) +static int _ccb_Texture2DBackend(lua_State *L) { oluacls_class(L, "ccb.Texture2DBackend"); oluacls_func(L, "getHeight", _cocos2d_backend_Texture2DBackend_getHeight); @@ -2994,6 +3335,16 @@ OLUA_LIB int luaopen_cocos2d_backend_Texture2DBackend(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_Texture2DBackend(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::Texture2DBackend"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_TextureCubemapBackend_updateFaceData(lua_State *L) @@ -3016,59 +3367,68 @@ static int _cocos2d_backend_TextureCubemapBackend_updateFaceData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_TextureCubemapBackend(lua_State *L) +static int _ccb_TextureCubemapBackend(lua_State *L) { oluacls_class(L, "ccb.TextureCubemapBackend"); oluacls_func(L, "updateFaceData", _cocos2d_backend_TextureCubemapBackend_updateFaceData); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_TextureCubemapBackend(lua_State *L) +{ + olua_require(L, "cocos2d_backend", luaopen_cocos2d_backend); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::TextureCubemapBackend"); + } + return 1; +} OLUA_END_DECLS OLUA_BEGIN_DECLS OLUA_LIB int luaopen_cocos2d_backend(lua_State *L) { - olua_require(L, "ccb.UniformLocation", luaopen_cocos2d_backend_UniformLocation); - olua_require(L, "ccb.BufferUsage", luaopen_cocos2d_backend_BufferUsage); - olua_require(L, "ccb.BufferType", luaopen_cocos2d_backend_BufferType); - olua_require(L, "ccb.ShaderStage", luaopen_cocos2d_backend_ShaderStage); - olua_require(L, "ccb.VertexFormat", luaopen_cocos2d_backend_VertexFormat); - olua_require(L, "ccb.PixelFormat", luaopen_cocos2d_backend_PixelFormat); - olua_require(L, "ccb.TextureUsage", luaopen_cocos2d_backend_TextureUsage); - olua_require(L, "ccb.IndexFormat", luaopen_cocos2d_backend_IndexFormat); - olua_require(L, "ccb.VertexStepMode", luaopen_cocos2d_backend_VertexStepMode); - olua_require(L, "ccb.PrimitiveType", luaopen_cocos2d_backend_PrimitiveType); - olua_require(L, "ccb.TextureType", luaopen_cocos2d_backend_TextureType); - olua_require(L, "ccb.SamplerAddressMode", luaopen_cocos2d_backend_SamplerAddressMode); - olua_require(L, "ccb.SamplerFilter", luaopen_cocos2d_backend_SamplerFilter); - olua_require(L, "ccb.StencilOperation", luaopen_cocos2d_backend_StencilOperation); - olua_require(L, "ccb.CompareFunction", luaopen_cocos2d_backend_CompareFunction); - olua_require(L, "ccb.BlendOperation", luaopen_cocos2d_backend_BlendOperation); - olua_require(L, "ccb.BlendFactor", luaopen_cocos2d_backend_BlendFactor); - olua_require(L, "ccb.ColorWriteMask", luaopen_cocos2d_backend_ColorWriteMask); - olua_require(L, "ccb.CullMode", luaopen_cocos2d_backend_CullMode); - olua_require(L, "ccb.Winding", luaopen_cocos2d_backend_Winding); - olua_require(L, "ccb.TextureCubeFace", luaopen_cocos2d_backend_TextureCubeFace); - olua_require(L, "ccb.ProgramType", luaopen_cocos2d_backend_ProgramType); - olua_require(L, "ccb.Uniform", luaopen_cocos2d_backend_Uniform); - olua_require(L, "ccb.Attribute", luaopen_cocos2d_backend_Attribute); - olua_require(L, "ccb.FeatureType", luaopen_cocos2d_backend_FeatureType); - olua_require(L, "ccb.Buffer", luaopen_cocos2d_backend_Buffer); - olua_require(L, "ccb.RenderPipeline", luaopen_cocos2d_backend_RenderPipeline); - olua_require(L, "ccb.DepthStencilState", luaopen_cocos2d_backend_DepthStencilState); - olua_require(L, "ccb.VertexLayout", luaopen_cocos2d_backend_VertexLayout); - olua_require(L, "ccb.CommandBuffer", luaopen_cocos2d_backend_CommandBuffer); - olua_require(L, "ccb.Device", luaopen_cocos2d_backend_Device); - olua_require(L, "ccb.DeviceInfo", luaopen_cocos2d_backend_DeviceInfo); - olua_require(L, "ccb.ShaderCache", luaopen_cocos2d_backend_ShaderCache); - olua_require(L, "ccb.ShaderModule", luaopen_cocos2d_backend_ShaderModule); - olua_require(L, "ccb.ProgramCache", luaopen_cocos2d_backend_ProgramCache); - olua_require(L, "ccb.ProgramState", luaopen_cocos2d_backend_ProgramState); - olua_require(L, "ccb.Program", luaopen_cocos2d_backend_Program); - olua_require(L, "ccb.TextureBackend", luaopen_cocos2d_backend_TextureBackend); - olua_require(L, "ccb.Texture2DBackend", luaopen_cocos2d_backend_Texture2DBackend); - olua_require(L, "ccb.TextureCubemapBackend", luaopen_cocos2d_backend_TextureCubemapBackend); + olua_require(L, "ccb.UniformLocation", _ccb_UniformLocation); + olua_require(L, "ccb.BufferUsage", _ccb_BufferUsage); + olua_require(L, "ccb.BufferType", _ccb_BufferType); + olua_require(L, "ccb.ShaderStage", _ccb_ShaderStage); + olua_require(L, "ccb.VertexFormat", _ccb_VertexFormat); + olua_require(L, "ccb.PixelFormat", _ccb_PixelFormat); + olua_require(L, "ccb.TextureUsage", _ccb_TextureUsage); + olua_require(L, "ccb.IndexFormat", _ccb_IndexFormat); + olua_require(L, "ccb.VertexStepMode", _ccb_VertexStepMode); + olua_require(L, "ccb.PrimitiveType", _ccb_PrimitiveType); + olua_require(L, "ccb.TextureType", _ccb_TextureType); + olua_require(L, "ccb.SamplerAddressMode", _ccb_SamplerAddressMode); + olua_require(L, "ccb.SamplerFilter", _ccb_SamplerFilter); + olua_require(L, "ccb.StencilOperation", _ccb_StencilOperation); + olua_require(L, "ccb.CompareFunction", _ccb_CompareFunction); + olua_require(L, "ccb.BlendOperation", _ccb_BlendOperation); + olua_require(L, "ccb.BlendFactor", _ccb_BlendFactor); + olua_require(L, "ccb.ColorWriteMask", _ccb_ColorWriteMask); + olua_require(L, "ccb.CullMode", _ccb_CullMode); + olua_require(L, "ccb.Winding", _ccb_Winding); + olua_require(L, "ccb.TextureCubeFace", _ccb_TextureCubeFace); + olua_require(L, "ccb.ProgramType", _ccb_ProgramType); + olua_require(L, "ccb.Uniform", _ccb_Uniform); + olua_require(L, "ccb.Attribute", _ccb_Attribute); + olua_require(L, "ccb.FeatureType", _ccb_FeatureType); + olua_require(L, "ccb.Buffer", _ccb_Buffer); + olua_require(L, "ccb.RenderPipeline", _ccb_RenderPipeline); + olua_require(L, "ccb.DepthStencilState", _ccb_DepthStencilState); + olua_require(L, "ccb.VertexLayout", _ccb_VertexLayout); + olua_require(L, "ccb.CommandBuffer", _ccb_CommandBuffer); + olua_require(L, "ccb.Device", _ccb_Device); + olua_require(L, "ccb.DeviceInfo", _ccb_DeviceInfo); + olua_require(L, "ccb.ShaderCache", _ccb_ShaderCache); + olua_require(L, "ccb.ShaderModule", _ccb_ShaderModule); + olua_require(L, "ccb.ProgramCache", _ccb_ProgramCache); + olua_require(L, "ccb.ProgramState", _ccb_ProgramState); + olua_require(L, "ccb.Program", _ccb_Program); + olua_require(L, "ccb.TextureBackend", _ccb_TextureBackend); + olua_require(L, "ccb.Texture2DBackend", _ccb_Texture2DBackend); + olua_require(L, "ccb.TextureCubemapBackend", _ccb_TextureCubemapBackend); return 0; } diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_backend.h b/frameworks/cclua/src/lua-bindings/lua_cocos2d_backend.h index 755826c9..fa866165 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_backend.h +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_backend.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_COCOS2D_BACKEND_H__ #define __AUTO_GEN_LUA_COCOS2D_BACKEND_H__ diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_physics.cpp b/frameworks/cclua/src/lua-bindings/lua_cocos2d_physics.cpp index d81ba475..17fc18c8 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_physics.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_physics.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_cocos2d_physics.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -256,8 +256,7 @@ static int _cocos2d_PhysicsMaterial_restitution(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsMaterial(lua_State *L) +static int _cc_PhysicsMaterial(lua_State *L) { oluacls_class(L, "cc.PhysicsMaterial"); oluacls_func(L, "__gc", _cocos2d_PhysicsMaterial___gc); @@ -269,6 +268,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsMaterial(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsMaterial(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsMaterial"); + } + return 1; +} OLUA_END_DECLS #endif @@ -285,14 +294,23 @@ static int _cocos2d_PhysicsRayCastCallbackFunc___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsRayCastCallbackFunc(lua_State *L) +static int _cc_PhysicsRayCastCallbackFunc(lua_State *L) { oluacls_class(L, "cc.PhysicsRayCastCallbackFunc"); oluacls_func(L, "__call", _cocos2d_PhysicsRayCastCallbackFunc___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsRayCastCallbackFunc(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsRayCastCallbackFunc"); + } + return 1; +} OLUA_END_DECLS #endif @@ -309,14 +327,23 @@ static int _cocos2d_PhysicsQueryRectCallbackFunc___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsQueryRectCallbackFunc(lua_State *L) +static int _cc_PhysicsQueryRectCallbackFunc(lua_State *L) { oluacls_class(L, "cc.PhysicsQueryRectCallbackFunc"); oluacls_func(L, "__call", _cocos2d_PhysicsQueryRectCallbackFunc___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsQueryRectCallbackFunc(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsQueryRectCallbackFunc"); + } + return 1; +} OLUA_END_DECLS #endif @@ -333,14 +360,23 @@ static int _cocos2d_PhysicsQueryPointCallbackFunc___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsQueryPointCallbackFunc(lua_State *L) +static int _cc_PhysicsQueryPointCallbackFunc(lua_State *L) { oluacls_class(L, "cc.PhysicsQueryPointCallbackFunc"); oluacls_func(L, "__call", _cocos2d_PhysicsQueryPointCallbackFunc___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsQueryPointCallbackFunc(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsQueryPointCallbackFunc"); + } + return 1; +} OLUA_END_DECLS #endif @@ -397,7 +433,7 @@ static int _cocos2d_EventListenerPhysicsContact_onContactBegin$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::PhysicsContact &arg1) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::PhysicsContact &cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); bool ret = false; /** ret */ @@ -405,7 +441,7 @@ static int _cocos2d_EventListenerPhysicsContact_onContactBegin$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, &arg1, "cc.PhysicsContact"); + olua_push_object(L, &cb_arg1, "cc.PhysicsContact"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -493,7 +529,7 @@ static int _cocos2d_EventListenerPhysicsContact_onContactPostSolve$2(lua_State * if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::PhysicsContact &arg1, const cocos2d::PhysicsContactPostSolve &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::PhysicsContact &cb_arg1, const cocos2d::PhysicsContactPostSolve &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -501,8 +537,8 @@ static int _cocos2d_EventListenerPhysicsContact_onContactPostSolve$2(lua_State * int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, &arg1, "cc.PhysicsContact"); - olua_push_object(L, arg2, "cc.PhysicsContactPostSolve"); + olua_push_object(L, &cb_arg1, "cc.PhysicsContact"); + olua_push_object(L, cb_arg2, "cc.PhysicsContactPostSolve"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -585,7 +621,7 @@ static int _cocos2d_EventListenerPhysicsContact_onContactPreSolve$2(lua_State *L if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::PhysicsContact &arg1, cocos2d::PhysicsContactPreSolve &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::PhysicsContact &cb_arg1, cocos2d::PhysicsContactPreSolve &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); bool ret = false; /** ret */ @@ -593,8 +629,8 @@ static int _cocos2d_EventListenerPhysicsContact_onContactPreSolve$2(lua_State *L int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, &arg1, "cc.PhysicsContact"); - olua_push_object(L, &arg2, "cc.PhysicsContactPreSolve"); + olua_push_object(L, &cb_arg1, "cc.PhysicsContact"); + olua_push_object(L, &cb_arg2, "cc.PhysicsContactPreSolve"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -682,7 +718,7 @@ static int _cocos2d_EventListenerPhysicsContact_onContactSeparate$2(lua_State *L if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::PhysicsContact &arg1) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::PhysicsContact &cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -690,7 +726,7 @@ static int _cocos2d_EventListenerPhysicsContact_onContactSeparate$2(lua_State *L int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, &arg1, "cc.PhysicsContact"); + olua_push_object(L, &cb_arg1, "cc.PhysicsContact"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -734,8 +770,7 @@ static int _cocos2d_EventListenerPhysicsContact_onContactSeparate(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListenerPhysicsContact(lua_State *L) +static int _cc_EventListenerPhysicsContact(lua_State *L) { oluacls_class(L, "cc.EventListenerPhysicsContact"); oluacls_func(L, "create", _cocos2d_EventListenerPhysicsContact_create); @@ -746,6 +781,16 @@ OLUA_LIB int luaopen_cocos2d_EventListenerPhysicsContact(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventListenerPhysicsContact(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListenerPhysicsContact"); + } + return 1; +} OLUA_END_DECLS #endif @@ -788,8 +833,7 @@ static int _cocos2d_EventListenerPhysicsContactWithGroup_hitTest(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListenerPhysicsContactWithGroup(lua_State *L) +static int _cc_EventListenerPhysicsContactWithGroup(lua_State *L) { oluacls_class(L, "cc.EventListenerPhysicsContactWithGroup"); oluacls_func(L, "create", _cocos2d_EventListenerPhysicsContactWithGroup_create); @@ -797,6 +841,16 @@ OLUA_LIB int luaopen_cocos2d_EventListenerPhysicsContactWithGroup(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventListenerPhysicsContactWithGroup(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListenerPhysicsContactWithGroup"); + } + return 1; +} OLUA_END_DECLS #endif @@ -841,8 +895,7 @@ static int _cocos2d_EventListenerPhysicsContactWithBodies_hitTest(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListenerPhysicsContactWithBodies(lua_State *L) +static int _cc_EventListenerPhysicsContactWithBodies(lua_State *L) { oluacls_class(L, "cc.EventListenerPhysicsContactWithBodies"); oluacls_func(L, "create", _cocos2d_EventListenerPhysicsContactWithBodies_create); @@ -850,6 +903,16 @@ OLUA_LIB int luaopen_cocos2d_EventListenerPhysicsContactWithBodies(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventListenerPhysicsContactWithBodies(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListenerPhysicsContactWithBodies"); + } + return 1; +} OLUA_END_DECLS #endif @@ -894,8 +957,7 @@ static int _cocos2d_EventListenerPhysicsContactWithShapes_hitTest(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_EventListenerPhysicsContactWithShapes(lua_State *L) +static int _cc_EventListenerPhysicsContactWithShapes(lua_State *L) { oluacls_class(L, "cc.EventListenerPhysicsContactWithShapes"); oluacls_func(L, "create", _cocos2d_EventListenerPhysicsContactWithShapes_create); @@ -903,6 +965,16 @@ OLUA_LIB int luaopen_cocos2d_EventListenerPhysicsContactWithShapes(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_EventListenerPhysicsContactWithShapes(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::EventListenerPhysicsContactWithShapes"); + } + return 1; +} OLUA_END_DECLS #endif @@ -1011,15 +1083,15 @@ static int _cocos2d_PhysicsBody_applyForce$1(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsBody *self = nullptr; - cocos2d::Vec2 arg1; /** force */ - cocos2d::Vec2 arg2; /** offset */ + cocos2d::Vec2 *arg1; /** force */ + cocos2d::Vec2 *arg2; /** offset */ olua_to_object(L, 1, &self, "cc.PhysicsBody"); olua_check_object(L, 2, &arg1, "cc.Vec2"); olua_check_object(L, 3, &arg2, "cc.Vec2"); // void applyForce(const cocos2d::Vec2 &force, @optional const cocos2d::Vec2 &offset) - self->applyForce(arg1, arg2); + self->applyForce(*arg1, *arg2); olua_endinvoke(L); @@ -1031,13 +1103,13 @@ static int _cocos2d_PhysicsBody_applyForce$2(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsBody *self = nullptr; - cocos2d::Vec2 arg1; /** force */ + cocos2d::Vec2 *arg1; /** force */ olua_to_object(L, 1, &self, "cc.PhysicsBody"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void applyForce(const cocos2d::Vec2 &force) - self->applyForce(arg1); + self->applyForce(*arg1); olua_endinvoke(L); @@ -1072,15 +1144,15 @@ static int _cocos2d_PhysicsBody_applyImpulse$1(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsBody *self = nullptr; - cocos2d::Vec2 arg1; /** impulse */ - cocos2d::Vec2 arg2; /** offset */ + cocos2d::Vec2 *arg1; /** impulse */ + cocos2d::Vec2 *arg2; /** offset */ olua_to_object(L, 1, &self, "cc.PhysicsBody"); olua_check_object(L, 2, &arg1, "cc.Vec2"); olua_check_object(L, 3, &arg2, "cc.Vec2"); // void applyImpulse(const cocos2d::Vec2 &impulse, @optional const cocos2d::Vec2 &offset) - self->applyImpulse(arg1, arg2); + self->applyImpulse(*arg1, *arg2); olua_endinvoke(L); @@ -1092,13 +1164,13 @@ static int _cocos2d_PhysicsBody_applyImpulse$2(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsBody *self = nullptr; - cocos2d::Vec2 arg1; /** impulse */ + cocos2d::Vec2 *arg1; /** impulse */ olua_to_object(L, 1, &self, "cc.PhysicsBody"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void applyImpulse(const cocos2d::Vec2 &impulse) - self->applyImpulse(arg1); + self->applyImpulse(*arg1); olua_endinvoke(L); @@ -1227,16 +1299,16 @@ static int _cocos2d_PhysicsBody_createBox$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ - cocos2d::PhysicsMaterial arg2; /** material */ - cocos2d::Vec2 arg3; /** offset */ + cocos2d::Size *arg1; /** size */ + cocos2d::PhysicsMaterial *arg2; /** material */ + cocos2d::Vec2 *arg3; /** offset */ olua_check_object(L, 1, &arg1, "cc.Size"); olua_check_object(L, 2, &arg2, "cc.PhysicsMaterial"); olua_check_object(L, 3, &arg3, "cc.Vec2"); // static cocos2d::PhysicsBody *createBox(const cocos2d::Size &size, @optional const cocos2d::PhysicsMaterial &material, @optional const cocos2d::Vec2 &offset) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createBox(arg1, arg2, arg3); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createBox(*arg1, *arg2, *arg3); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1248,12 +1320,12 @@ static int _cocos2d_PhysicsBody_createBox$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_check_object(L, 1, &arg1, "cc.Size"); // static cocos2d::PhysicsBody *createBox(const cocos2d::Size &size) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createBox(arg1); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createBox(*arg1); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1265,14 +1337,14 @@ static int _cocos2d_PhysicsBody_createBox$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ - cocos2d::PhysicsMaterial arg2; /** material */ + cocos2d::Size *arg1; /** size */ + cocos2d::PhysicsMaterial *arg2; /** material */ olua_check_object(L, 1, &arg1, "cc.Size"); olua_check_object(L, 2, &arg2, "cc.PhysicsMaterial"); // static cocos2d::PhysicsBody *createBox(const cocos2d::Size &size, @optional const cocos2d::PhysicsMaterial &material) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createBox(arg1, arg2); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createBox(*arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1315,15 +1387,15 @@ static int _cocos2d_PhysicsBody_createCircle$1(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** radius */ - cocos2d::PhysicsMaterial arg2; /** material */ - cocos2d::Vec2 arg3; /** offset */ + cocos2d::PhysicsMaterial *arg2; /** material */ + cocos2d::Vec2 *arg3; /** offset */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.PhysicsMaterial"); olua_check_object(L, 3, &arg3, "cc.Vec2"); // static cocos2d::PhysicsBody *createCircle(float radius, @optional const cocos2d::PhysicsMaterial &material, @optional const cocos2d::Vec2 &offset) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createCircle(arg1, arg2, arg3); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createCircle(arg1, *arg2, *arg3); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1353,13 +1425,13 @@ static int _cocos2d_PhysicsBody_createCircle$3(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** radius */ - cocos2d::PhysicsMaterial arg2; /** material */ + cocos2d::PhysicsMaterial *arg2; /** material */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.PhysicsMaterial"); // static cocos2d::PhysicsBody *createCircle(float radius, @optional const cocos2d::PhysicsMaterial &material) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createCircle(arg1, arg2); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createCircle(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1401,10 +1473,10 @@ static int _cocos2d_PhysicsBody_createEdgeBox$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ - cocos2d::PhysicsMaterial arg2; /** material */ + cocos2d::Size *arg1; /** size */ + cocos2d::PhysicsMaterial *arg2; /** material */ float arg3 = 0; /** border */ - cocos2d::Vec2 arg4; /** offset */ + cocos2d::Vec2 *arg4; /** offset */ olua_check_object(L, 1, &arg1, "cc.Size"); olua_check_object(L, 2, &arg2, "cc.PhysicsMaterial"); @@ -1412,7 +1484,7 @@ static int _cocos2d_PhysicsBody_createEdgeBox$1(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec2"); // static cocos2d::PhysicsBody *createEdgeBox(const cocos2d::Size &size, @optional const cocos2d::PhysicsMaterial &material, @optional float border, @optional const cocos2d::Vec2 &offset) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeBox(arg1, arg2, arg3, arg4); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeBox(*arg1, *arg2, arg3, *arg4); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1424,12 +1496,12 @@ static int _cocos2d_PhysicsBody_createEdgeBox$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_check_object(L, 1, &arg1, "cc.Size"); // static cocos2d::PhysicsBody *createEdgeBox(const cocos2d::Size &size) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeBox(arg1); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeBox(*arg1); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1441,14 +1513,14 @@ static int _cocos2d_PhysicsBody_createEdgeBox$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ - cocos2d::PhysicsMaterial arg2; /** material */ + cocos2d::Size *arg1; /** size */ + cocos2d::PhysicsMaterial *arg2; /** material */ olua_check_object(L, 1, &arg1, "cc.Size"); olua_check_object(L, 2, &arg2, "cc.PhysicsMaterial"); // static cocos2d::PhysicsBody *createEdgeBox(const cocos2d::Size &size, @optional const cocos2d::PhysicsMaterial &material) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeBox(arg1, arg2); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeBox(*arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1460,8 +1532,8 @@ static int _cocos2d_PhysicsBody_createEdgeBox$4(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ - cocos2d::PhysicsMaterial arg2; /** material */ + cocos2d::Size *arg1; /** size */ + cocos2d::PhysicsMaterial *arg2; /** material */ float arg3 = 0; /** border */ olua_check_object(L, 1, &arg1, "cc.Size"); @@ -1469,7 +1541,7 @@ static int _cocos2d_PhysicsBody_createEdgeBox$4(lua_State *L) olua_check_number(L, 3, &arg3); // static cocos2d::PhysicsBody *createEdgeBox(const cocos2d::Size &size, @optional const cocos2d::PhysicsMaterial &material, @optional float border) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeBox(arg1, arg2, arg3); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeBox(*arg1, *arg2, arg3); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1520,7 +1592,7 @@ static int _cocos2d_PhysicsBody_createEdgeChain$1(lua_State *L) cocos2d::Vec2 *arg1 = nullptr; /** points */ int arg2 = 0; /** count */ - cocos2d::PhysicsMaterial arg3; /** material */ + cocos2d::PhysicsMaterial *arg3; /** material */ float arg4 = 0; /** border */ olua_check_object(L, 1, &arg1, "cc.Vec2"); @@ -1529,7 +1601,7 @@ static int _cocos2d_PhysicsBody_createEdgeChain$1(lua_State *L) olua_check_number(L, 4, &arg4); // static cocos2d::PhysicsBody *createEdgeChain(const cocos2d::Vec2 *points, int count, @optional const cocos2d::PhysicsMaterial &material, @optional float border) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeChain(arg1, arg2, arg3, arg4); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeChain(arg1, arg2, *arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1562,14 +1634,14 @@ static int _cocos2d_PhysicsBody_createEdgeChain$3(lua_State *L) cocos2d::Vec2 *arg1 = nullptr; /** points */ int arg2 = 0; /** count */ - cocos2d::PhysicsMaterial arg3; /** material */ + cocos2d::PhysicsMaterial *arg3; /** material */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_integer(L, 2, &arg2); olua_check_object(L, 3, &arg3, "cc.PhysicsMaterial"); // static cocos2d::PhysicsBody *createEdgeChain(const cocos2d::Vec2 *points, int count, @optional const cocos2d::PhysicsMaterial &material) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeChain(arg1, arg2, arg3); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeChain(arg1, arg2, *arg3); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1613,7 +1685,7 @@ static int _cocos2d_PhysicsBody_createEdgePolygon$1(lua_State *L) cocos2d::Vec2 *arg1 = nullptr; /** points */ int arg2 = 0; /** count */ - cocos2d::PhysicsMaterial arg3; /** material */ + cocos2d::PhysicsMaterial *arg3; /** material */ float arg4 = 0; /** border */ olua_check_object(L, 1, &arg1, "cc.Vec2"); @@ -1622,7 +1694,7 @@ static int _cocos2d_PhysicsBody_createEdgePolygon$1(lua_State *L) olua_check_number(L, 4, &arg4); // static cocos2d::PhysicsBody *createEdgePolygon(const cocos2d::Vec2 *points, int count, @optional const cocos2d::PhysicsMaterial &material, @optional float border) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgePolygon(arg1, arg2, arg3, arg4); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgePolygon(arg1, arg2, *arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1655,14 +1727,14 @@ static int _cocos2d_PhysicsBody_createEdgePolygon$3(lua_State *L) cocos2d::Vec2 *arg1 = nullptr; /** points */ int arg2 = 0; /** count */ - cocos2d::PhysicsMaterial arg3; /** material */ + cocos2d::PhysicsMaterial *arg3; /** material */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_integer(L, 2, &arg2); olua_check_object(L, 3, &arg3, "cc.PhysicsMaterial"); // static cocos2d::PhysicsBody *createEdgePolygon(const cocos2d::Vec2 *points, int count, @optional const cocos2d::PhysicsMaterial &material) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgePolygon(arg1, arg2, arg3); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgePolygon(arg1, arg2, *arg3); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1704,9 +1776,9 @@ static int _cocos2d_PhysicsBody_createEdgeSegment$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** a */ - cocos2d::Vec2 arg2; /** b */ - cocos2d::PhysicsMaterial arg3; /** material */ + cocos2d::Vec2 *arg1; /** a */ + cocos2d::Vec2 *arg2; /** b */ + cocos2d::PhysicsMaterial *arg3; /** material */ float arg4 = 0; /** border */ olua_check_object(L, 1, &arg1, "cc.Vec2"); @@ -1715,7 +1787,7 @@ static int _cocos2d_PhysicsBody_createEdgeSegment$1(lua_State *L) olua_check_number(L, 4, &arg4); // static cocos2d::PhysicsBody *createEdgeSegment(const cocos2d::Vec2 &a, const cocos2d::Vec2 &b, @optional const cocos2d::PhysicsMaterial &material, @optional float border) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeSegment(arg1, arg2, arg3, arg4); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeSegment(*arg1, *arg2, *arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1727,14 +1799,14 @@ static int _cocos2d_PhysicsBody_createEdgeSegment$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** a */ - cocos2d::Vec2 arg2; /** b */ + cocos2d::Vec2 *arg1; /** a */ + cocos2d::Vec2 *arg2; /** b */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_object(L, 2, &arg2, "cc.Vec2"); // static cocos2d::PhysicsBody *createEdgeSegment(const cocos2d::Vec2 &a, const cocos2d::Vec2 &b) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeSegment(arg1, arg2); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeSegment(*arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1746,16 +1818,16 @@ static int _cocos2d_PhysicsBody_createEdgeSegment$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** a */ - cocos2d::Vec2 arg2; /** b */ - cocos2d::PhysicsMaterial arg3; /** material */ + cocos2d::Vec2 *arg1; /** a */ + cocos2d::Vec2 *arg2; /** b */ + cocos2d::PhysicsMaterial *arg3; /** material */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_object(L, 2, &arg2, "cc.Vec2"); olua_check_object(L, 3, &arg3, "cc.PhysicsMaterial"); // static cocos2d::PhysicsBody *createEdgeSegment(const cocos2d::Vec2 &a, const cocos2d::Vec2 &b, @optional const cocos2d::PhysicsMaterial &material) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeSegment(arg1, arg2, arg3); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createEdgeSegment(*arg1, *arg2, *arg3); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1799,8 +1871,8 @@ static int _cocos2d_PhysicsBody_createPolygon$1(lua_State *L) cocos2d::Vec2 *arg1 = nullptr; /** points */ int arg2 = 0; /** count */ - cocos2d::PhysicsMaterial arg3; /** material */ - cocos2d::Vec2 arg4; /** offset */ + cocos2d::PhysicsMaterial *arg3; /** material */ + cocos2d::Vec2 *arg4; /** offset */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_integer(L, 2, &arg2); @@ -1808,7 +1880,7 @@ static int _cocos2d_PhysicsBody_createPolygon$1(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec2"); // static cocos2d::PhysicsBody *createPolygon(const cocos2d::Vec2 *points, int count, @optional const cocos2d::PhysicsMaterial &material, @optional const cocos2d::Vec2 &offset) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createPolygon(arg1, arg2, arg3, arg4); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createPolygon(arg1, arg2, *arg3, *arg4); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -1841,14 +1913,14 @@ static int _cocos2d_PhysicsBody_createPolygon$3(lua_State *L) cocos2d::Vec2 *arg1 = nullptr; /** points */ int arg2 = 0; /** count */ - cocos2d::PhysicsMaterial arg3; /** material */ + cocos2d::PhysicsMaterial *arg3; /** material */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_integer(L, 2, &arg2); olua_check_object(L, 3, &arg3, "cc.PhysicsMaterial"); // static cocos2d::PhysicsBody *createPolygon(const cocos2d::Vec2 *points, int count, @optional const cocos2d::PhysicsMaterial &material) - cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createPolygon(arg1, arg2, arg3); + cocos2d::PhysicsBody *ret = cocos2d::PhysicsBody::createPolygon(arg1, arg2, *arg3); int num_ret = olua_push_object(L, ret, "cc.PhysicsBody"); olua_endinvoke(L); @@ -2254,13 +2326,13 @@ static int _cocos2d_PhysicsBody_getVelocityAtLocalPoint(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsBody *self = nullptr; - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ olua_to_object(L, 1, &self, "cc.PhysicsBody"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 getVelocityAtLocalPoint(const cocos2d::Vec2 &point) - cocos2d::Vec2 ret = self->getVelocityAtLocalPoint(arg1); + cocos2d::Vec2 ret = self->getVelocityAtLocalPoint(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -2273,13 +2345,13 @@ static int _cocos2d_PhysicsBody_getVelocityAtWorldPoint(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsBody *self = nullptr; - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ olua_to_object(L, 1, &self, "cc.PhysicsBody"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 getVelocityAtWorldPoint(const cocos2d::Vec2 &point) - cocos2d::Vec2 ret = self->getVelocityAtWorldPoint(arg1); + cocos2d::Vec2 ret = self->getVelocityAtWorldPoint(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -2394,13 +2466,13 @@ static int _cocos2d_PhysicsBody_local2World(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsBody *self = nullptr; - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ olua_to_object(L, 1, &self, "cc.PhysicsBody"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 local2World(const cocos2d::Vec2 &point) - cocos2d::Vec2 ret = self->local2World(arg1); + cocos2d::Vec2 ret = self->local2World(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -2825,13 +2897,13 @@ static int _cocos2d_PhysicsBody_setPositionOffset(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsBody *self = nullptr; - cocos2d::Vec2 arg1; /** position */ + cocos2d::Vec2 *arg1; /** position */ olua_to_object(L, 1, &self, "cc.PhysicsBody"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setPositionOffset(const cocos2d::Vec2 &position) - self->setPositionOffset(arg1); + self->setPositionOffset(*arg1); olua_endinvoke(L); @@ -2915,13 +2987,13 @@ static int _cocos2d_PhysicsBody_setVelocity(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsBody *self = nullptr; - cocos2d::Vec2 arg1; /** velocity */ + cocos2d::Vec2 *arg1; /** velocity */ olua_to_object(L, 1, &self, "cc.PhysicsBody"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setVelocity(const cocos2d::Vec2 &velocity) - self->setVelocity(arg1); + self->setVelocity(*arg1); olua_endinvoke(L); @@ -2951,13 +3023,13 @@ static int _cocos2d_PhysicsBody_world2Local(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsBody *self = nullptr; - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ olua_to_object(L, 1, &self, "cc.PhysicsBody"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 world2Local(const cocos2d::Vec2 &point) - cocos2d::Vec2 ret = self->world2Local(arg1); + cocos2d::Vec2 ret = self->world2Local(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -2965,8 +3037,7 @@ static int _cocos2d_PhysicsBody_world2Local(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsBody(lua_State *L) +static int _cc_PhysicsBody(lua_State *L) { oluacls_class(L, "cc.PhysicsBody"); oluacls_func(L, "addMass", _cocos2d_PhysicsBody_addMass); @@ -3067,12 +3138,21 @@ OLUA_LIB int luaopen_cocos2d_PhysicsBody(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsBody(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsBody"); + } + return 1; +} OLUA_END_DECLS #endif #if CC_USE_PHYSICS -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsContact_EventCode(lua_State *L) +static int _cc_PhysicsContact_EventCode(lua_State *L) { oluacls_class(L, "cc.PhysicsContact.EventCode"); oluacls_func(L, "__index", olua_indexerror); @@ -3085,6 +3165,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsContact_EventCode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsContact_EventCode(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsContact::EventCode"); + } + return 1; +} OLUA_END_DECLS #endif @@ -3175,8 +3265,7 @@ static int _cocos2d_PhysicsContact_setData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsContact(lua_State *L) +static int _cc_PhysicsContact(lua_State *L) { oluacls_class(L, "cc.PhysicsContact"); oluacls_func(L, "getData", _cocos2d_PhysicsContact_getData); @@ -3191,6 +3280,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsContact(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsContact(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsContact"); + } + return 1; +} OLUA_END_DECLS #endif @@ -3258,8 +3357,7 @@ static int _cocos2d_PhysicsContactPostSolve_getSurfaceVelocity(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsContactPostSolve(lua_State *L) +static int _cc_PhysicsContactPostSolve(lua_State *L) { oluacls_class(L, "cc.PhysicsContactPostSolve"); oluacls_func(L, "__olua_move", _cocos2d_PhysicsContactPostSolve___olua_move); @@ -3272,6 +3370,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsContactPostSolve(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsContactPostSolve(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsContactPostSolve"); + } + return 1; +} OLUA_END_DECLS #endif @@ -3396,21 +3504,20 @@ static int _cocos2d_PhysicsContactPreSolve_setSurfaceVelocity(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsContactPreSolve *self = nullptr; - cocos2d::Vec2 arg1; /** velocity */ + cocos2d::Vec2 *arg1; /** velocity */ olua_to_object(L, 1, &self, "cc.PhysicsContactPreSolve"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setSurfaceVelocity(const cocos2d::Vec2 &velocity) - self->setSurfaceVelocity(arg1); + self->setSurfaceVelocity(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsContactPreSolve(lua_State *L) +static int _cc_PhysicsContactPreSolve(lua_State *L) { oluacls_class(L, "cc.PhysicsContactPreSolve"); oluacls_func(L, "__olua_move", _cocos2d_PhysicsContactPreSolve___olua_move); @@ -3427,6 +3534,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsContactPreSolve(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsContactPreSolve(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsContactPreSolve"); + } + return 1; +} OLUA_END_DECLS #endif @@ -3650,8 +3767,7 @@ static int _cocos2d_PhysicsJoint_setTag(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsJoint(lua_State *L) +static int _cc_PhysicsJoint(lua_State *L) { oluacls_class(L, "cc.PhysicsJoint"); oluacls_func(L, "__olua_move", _cocos2d_PhysicsJoint___olua_move); @@ -3677,6 +3793,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsJoint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsJoint(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsJoint"); + } + return 1; +} OLUA_END_DECLS #endif @@ -3687,8 +3813,8 @@ static int _cocos2d_PhysicsJointDistance_construct(lua_State *L) cocos2d::PhysicsBody *arg1 = nullptr; /** a */ cocos2d::PhysicsBody *arg2 = nullptr; /** b */ - cocos2d::Vec2 arg3; /** anchr1 */ - cocos2d::Vec2 arg4; /** anchr2 */ + cocos2d::Vec2 *arg3; /** anchr1 */ + cocos2d::Vec2 *arg4; /** anchr2 */ olua_check_object(L, 1, &arg1, "cc.PhysicsBody"); olua_check_object(L, 2, &arg2, "cc.PhysicsBody"); @@ -3696,7 +3822,7 @@ static int _cocos2d_PhysicsJointDistance_construct(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec2"); // static cocos2d::PhysicsJointDistance *construct(cocos2d::PhysicsBody *a, cocos2d::PhysicsBody *b, const cocos2d::Vec2 &anchr1, const cocos2d::Vec2 &anchr2) - cocos2d::PhysicsJointDistance *ret = cocos2d::PhysicsJointDistance::construct(arg1, arg2, arg3, arg4); + cocos2d::PhysicsJointDistance *ret = cocos2d::PhysicsJointDistance::construct(arg1, arg2, *arg3, *arg4); int num_ret = olua_push_object(L, ret, "cc.PhysicsJointDistance"); olua_endinvoke(L); @@ -3756,8 +3882,7 @@ static int _cocos2d_PhysicsJointDistance_setDistance(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsJointDistance(lua_State *L) +static int _cc_PhysicsJointDistance(lua_State *L) { oluacls_class(L, "cc.PhysicsJointDistance"); oluacls_func(L, "construct", _cocos2d_PhysicsJointDistance_construct); @@ -3768,6 +3893,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsJointDistance(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsJointDistance(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsJointDistance"); + } + return 1; +} OLUA_END_DECLS #endif @@ -3778,14 +3913,14 @@ static int _cocos2d_PhysicsJointFixed_construct(lua_State *L) cocos2d::PhysicsBody *arg1 = nullptr; /** a */ cocos2d::PhysicsBody *arg2 = nullptr; /** b */ - cocos2d::Vec2 arg3; /** anchr */ + cocos2d::Vec2 *arg3; /** anchr */ olua_check_object(L, 1, &arg1, "cc.PhysicsBody"); olua_check_object(L, 2, &arg2, "cc.PhysicsBody"); olua_check_object(L, 3, &arg3, "cc.Vec2"); // static cocos2d::PhysicsJointFixed *construct(cocos2d::PhysicsBody *a, cocos2d::PhysicsBody *b, const cocos2d::Vec2 &anchr) - cocos2d::PhysicsJointFixed *ret = cocos2d::PhysicsJointFixed::construct(arg1, arg2, arg3); + cocos2d::PhysicsJointFixed *ret = cocos2d::PhysicsJointFixed::construct(arg1, arg2, *arg3); int num_ret = olua_push_object(L, ret, "cc.PhysicsJointFixed"); olua_endinvoke(L); @@ -3810,8 +3945,7 @@ static int _cocos2d_PhysicsJointFixed_createConstraints(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsJointFixed(lua_State *L) +static int _cc_PhysicsJointFixed(lua_State *L) { oluacls_class(L, "cc.PhysicsJointFixed"); oluacls_func(L, "construct", _cocos2d_PhysicsJointFixed_construct); @@ -3819,6 +3953,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsJointFixed(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsJointFixed(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsJointFixed"); + } + return 1; +} OLUA_END_DECLS #endif @@ -3933,8 +4077,7 @@ static int _cocos2d_PhysicsJointGear_setRatio(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsJointGear(lua_State *L) +static int _cc_PhysicsJointGear(lua_State *L) { oluacls_class(L, "cc.PhysicsJointGear"); oluacls_func(L, "construct", _cocos2d_PhysicsJointGear_construct); @@ -3948,6 +4091,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsJointGear(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsJointGear(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsJointGear"); + } + return 1; +} OLUA_END_DECLS #endif @@ -3958,9 +4111,9 @@ static int _cocos2d_PhysicsJointGroove_construct(lua_State *L) cocos2d::PhysicsBody *arg1 = nullptr; /** a */ cocos2d::PhysicsBody *arg2 = nullptr; /** b */ - cocos2d::Vec2 arg3; /** grooveA */ - cocos2d::Vec2 arg4; /** grooveB */ - cocos2d::Vec2 arg5; /** anchr2 */ + cocos2d::Vec2 *arg3; /** grooveA */ + cocos2d::Vec2 *arg4; /** grooveB */ + cocos2d::Vec2 *arg5; /** anchr2 */ olua_check_object(L, 1, &arg1, "cc.PhysicsBody"); olua_check_object(L, 2, &arg2, "cc.PhysicsBody"); @@ -3969,7 +4122,7 @@ static int _cocos2d_PhysicsJointGroove_construct(lua_State *L) olua_check_object(L, 5, &arg5, "cc.Vec2"); // static cocos2d::PhysicsJointGroove *construct(cocos2d::PhysicsBody *a, cocos2d::PhysicsBody *b, const cocos2d::Vec2 &grooveA, const cocos2d::Vec2 &grooveB, const cocos2d::Vec2 &anchr2) - cocos2d::PhysicsJointGroove *ret = cocos2d::PhysicsJointGroove::construct(arg1, arg2, arg3, arg4, arg5); + cocos2d::PhysicsJointGroove *ret = cocos2d::PhysicsJointGroove::construct(arg1, arg2, *arg3, *arg4, *arg5); int num_ret = olua_push_object(L, ret, "cc.PhysicsJointGroove"); olua_endinvoke(L); @@ -4050,13 +4203,13 @@ static int _cocos2d_PhysicsJointGroove_setAnchr2(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsJointGroove *self = nullptr; - cocos2d::Vec2 arg1; /** anchr2 */ + cocos2d::Vec2 *arg1; /** anchr2 */ olua_to_object(L, 1, &self, "cc.PhysicsJointGroove"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setAnchr2(const cocos2d::Vec2 &anchr2) - self->setAnchr2(arg1); + self->setAnchr2(*arg1); olua_endinvoke(L); @@ -4068,13 +4221,13 @@ static int _cocos2d_PhysicsJointGroove_setGrooveA(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsJointGroove *self = nullptr; - cocos2d::Vec2 arg1; /** grooveA */ + cocos2d::Vec2 *arg1; /** grooveA */ olua_to_object(L, 1, &self, "cc.PhysicsJointGroove"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setGrooveA(const cocos2d::Vec2 &grooveA) - self->setGrooveA(arg1); + self->setGrooveA(*arg1); olua_endinvoke(L); @@ -4086,21 +4239,20 @@ static int _cocos2d_PhysicsJointGroove_setGrooveB(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsJointGroove *self = nullptr; - cocos2d::Vec2 arg1; /** grooveB */ + cocos2d::Vec2 *arg1; /** grooveB */ olua_to_object(L, 1, &self, "cc.PhysicsJointGroove"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setGrooveB(const cocos2d::Vec2 &grooveB) - self->setGrooveB(arg1); + self->setGrooveB(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsJointGroove(lua_State *L) +static int _cc_PhysicsJointGroove(lua_State *L) { oluacls_class(L, "cc.PhysicsJointGroove"); oluacls_func(L, "construct", _cocos2d_PhysicsJointGroove_construct); @@ -4117,6 +4269,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsJointGroove(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsJointGroove(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsJointGroove"); + } + return 1; +} OLUA_END_DECLS #endif @@ -4127,8 +4289,8 @@ static int _cocos2d_PhysicsJointLimit_construct$1(lua_State *L) cocos2d::PhysicsBody *arg1 = nullptr; /** a */ cocos2d::PhysicsBody *arg2 = nullptr; /** b */ - cocos2d::Vec2 arg3; /** anchr1 */ - cocos2d::Vec2 arg4; /** anchr2 */ + cocos2d::Vec2 *arg3; /** anchr1 */ + cocos2d::Vec2 *arg4; /** anchr2 */ olua_check_object(L, 1, &arg1, "cc.PhysicsBody"); olua_check_object(L, 2, &arg2, "cc.PhysicsBody"); @@ -4136,7 +4298,7 @@ static int _cocos2d_PhysicsJointLimit_construct$1(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec2"); // static cocos2d::PhysicsJointLimit *construct(cocos2d::PhysicsBody *a, cocos2d::PhysicsBody *b, const cocos2d::Vec2 &anchr1, const cocos2d::Vec2 &anchr2) - cocos2d::PhysicsJointLimit *ret = cocos2d::PhysicsJointLimit::construct(arg1, arg2, arg3, arg4); + cocos2d::PhysicsJointLimit *ret = cocos2d::PhysicsJointLimit::construct(arg1, arg2, *arg3, *arg4); int num_ret = olua_push_object(L, ret, "cc.PhysicsJointLimit"); olua_endinvoke(L); @@ -4150,8 +4312,8 @@ static int _cocos2d_PhysicsJointLimit_construct$2(lua_State *L) cocos2d::PhysicsBody *arg1 = nullptr; /** a */ cocos2d::PhysicsBody *arg2 = nullptr; /** b */ - cocos2d::Vec2 arg3; /** anchr1 */ - cocos2d::Vec2 arg4; /** anchr2 */ + cocos2d::Vec2 *arg3; /** anchr1 */ + cocos2d::Vec2 *arg4; /** anchr2 */ float arg5 = 0; /** min */ float arg6 = 0; /** max */ @@ -4163,7 +4325,7 @@ static int _cocos2d_PhysicsJointLimit_construct$2(lua_State *L) olua_check_number(L, 6, &arg6); // static cocos2d::PhysicsJointLimit *construct(cocos2d::PhysicsBody *a, cocos2d::PhysicsBody *b, const cocos2d::Vec2 &anchr1, const cocos2d::Vec2 &anchr2, float min, float max) - cocos2d::PhysicsJointLimit *ret = cocos2d::PhysicsJointLimit::construct(arg1, arg2, arg3, arg4, arg5, arg6); + cocos2d::PhysicsJointLimit *ret = cocos2d::PhysicsJointLimit::construct(arg1, arg2, *arg3, *arg4, arg5, arg6); int num_ret = olua_push_object(L, ret, "cc.PhysicsJointLimit"); olua_endinvoke(L); @@ -4284,13 +4446,13 @@ static int _cocos2d_PhysicsJointLimit_setAnchr1(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsJointLimit *self = nullptr; - cocos2d::Vec2 arg1; /** anchr1 */ + cocos2d::Vec2 *arg1; /** anchr1 */ olua_to_object(L, 1, &self, "cc.PhysicsJointLimit"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setAnchr1(const cocos2d::Vec2 &anchr1) - self->setAnchr1(arg1); + self->setAnchr1(*arg1); olua_endinvoke(L); @@ -4302,13 +4464,13 @@ static int _cocos2d_PhysicsJointLimit_setAnchr2(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsJointLimit *self = nullptr; - cocos2d::Vec2 arg1; /** anchr2 */ + cocos2d::Vec2 *arg1; /** anchr2 */ olua_to_object(L, 1, &self, "cc.PhysicsJointLimit"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setAnchr2(const cocos2d::Vec2 &anchr2) - self->setAnchr2(arg1); + self->setAnchr2(*arg1); olua_endinvoke(L); @@ -4351,8 +4513,7 @@ static int _cocos2d_PhysicsJointLimit_setMin(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsJointLimit(lua_State *L) +static int _cc_PhysicsJointLimit(lua_State *L) { oluacls_class(L, "cc.PhysicsJointLimit"); oluacls_func(L, "construct", _cocos2d_PhysicsJointLimit_construct); @@ -4372,6 +4533,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsJointLimit(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsJointLimit(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsJointLimit"); + } + return 1; +} OLUA_END_DECLS #endif @@ -4449,8 +4620,7 @@ static int _cocos2d_PhysicsJointMotor_setRate(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsJointMotor(lua_State *L) +static int _cc_PhysicsJointMotor(lua_State *L) { oluacls_class(L, "cc.PhysicsJointMotor"); oluacls_func(L, "construct", _cocos2d_PhysicsJointMotor_construct); @@ -4461,6 +4631,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsJointMotor(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsJointMotor(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsJointMotor"); + } + return 1; +} OLUA_END_DECLS #endif @@ -4471,14 +4651,14 @@ static int _cocos2d_PhysicsJointPin_construct$1(lua_State *L) cocos2d::PhysicsBody *arg1 = nullptr; /** a */ cocos2d::PhysicsBody *arg2 = nullptr; /** b */ - cocos2d::Vec2 arg3; /** pivot */ + cocos2d::Vec2 *arg3; /** pivot */ olua_check_object(L, 1, &arg1, "cc.PhysicsBody"); olua_check_object(L, 2, &arg2, "cc.PhysicsBody"); olua_check_object(L, 3, &arg3, "cc.Vec2"); // static cocos2d::PhysicsJointPin *construct(cocos2d::PhysicsBody *a, cocos2d::PhysicsBody *b, const cocos2d::Vec2 &pivot) - cocos2d::PhysicsJointPin *ret = cocos2d::PhysicsJointPin::construct(arg1, arg2, arg3); + cocos2d::PhysicsJointPin *ret = cocos2d::PhysicsJointPin::construct(arg1, arg2, *arg3); int num_ret = olua_push_object(L, ret, "cc.PhysicsJointPin"); olua_endinvoke(L); @@ -4492,8 +4672,8 @@ static int _cocos2d_PhysicsJointPin_construct$2(lua_State *L) cocos2d::PhysicsBody *arg1 = nullptr; /** a */ cocos2d::PhysicsBody *arg2 = nullptr; /** b */ - cocos2d::Vec2 arg3; /** anchr1 */ - cocos2d::Vec2 arg4; /** anchr2 */ + cocos2d::Vec2 *arg3; /** anchr1 */ + cocos2d::Vec2 *arg4; /** anchr2 */ olua_check_object(L, 1, &arg1, "cc.PhysicsBody"); olua_check_object(L, 2, &arg2, "cc.PhysicsBody"); @@ -4501,7 +4681,7 @@ static int _cocos2d_PhysicsJointPin_construct$2(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec2"); // static cocos2d::PhysicsJointPin *construct(cocos2d::PhysicsBody *a, cocos2d::PhysicsBody *b, const cocos2d::Vec2 &anchr1, const cocos2d::Vec2 &anchr2) - cocos2d::PhysicsJointPin *ret = cocos2d::PhysicsJointPin::construct(arg1, arg2, arg3, arg4); + cocos2d::PhysicsJointPin *ret = cocos2d::PhysicsJointPin::construct(arg1, arg2, *arg3, *arg4); int num_ret = olua_push_object(L, ret, "cc.PhysicsJointPin"); olua_endinvoke(L); @@ -4549,8 +4729,7 @@ static int _cocos2d_PhysicsJointPin_createConstraints(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsJointPin(lua_State *L) +static int _cc_PhysicsJointPin(lua_State *L) { oluacls_class(L, "cc.PhysicsJointPin"); oluacls_func(L, "construct", _cocos2d_PhysicsJointPin_construct); @@ -4558,6 +4737,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsJointPin(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsJointPin(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsJointPin"); + } + return 1; +} OLUA_END_DECLS #endif @@ -4707,8 +4896,7 @@ static int _cocos2d_PhysicsJointRatchet_setRatchet(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsJointRatchet(lua_State *L) +static int _cc_PhysicsJointRatchet(lua_State *L) { oluacls_class(L, "cc.PhysicsJointRatchet"); oluacls_func(L, "construct", _cocos2d_PhysicsJointRatchet_construct); @@ -4725,6 +4913,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsJointRatchet(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsJointRatchet(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsJointRatchet"); + } + return 1; +} OLUA_END_DECLS #endif @@ -4881,8 +5079,7 @@ static int _cocos2d_PhysicsJointRotaryLimit_setMin(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsJointRotaryLimit(lua_State *L) +static int _cc_PhysicsJointRotaryLimit(lua_State *L) { oluacls_class(L, "cc.PhysicsJointRotaryLimit"); oluacls_func(L, "construct", _cocos2d_PhysicsJointRotaryLimit_construct); @@ -4896,6 +5093,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsJointRotaryLimit(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsJointRotaryLimit(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsJointRotaryLimit"); + } + return 1; +} OLUA_END_DECLS #endif @@ -5045,8 +5252,7 @@ static int _cocos2d_PhysicsJointRotarySpring_setStiffness(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsJointRotarySpring(lua_State *L) +static int _cc_PhysicsJointRotarySpring(lua_State *L) { oluacls_class(L, "cc.PhysicsJointRotarySpring"); oluacls_func(L, "construct", _cocos2d_PhysicsJointRotarySpring_construct); @@ -5063,6 +5269,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsJointRotarySpring(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsJointRotarySpring(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsJointRotarySpring"); + } + return 1; +} OLUA_END_DECLS #endif @@ -5073,8 +5289,8 @@ static int _cocos2d_PhysicsJointSpring_construct(lua_State *L) cocos2d::PhysicsBody *arg1 = nullptr; /** a */ cocos2d::PhysicsBody *arg2 = nullptr; /** b */ - cocos2d::Vec2 arg3; /** anchr1 */ - cocos2d::Vec2 arg4; /** anchr2 */ + cocos2d::Vec2 *arg3; /** anchr1 */ + cocos2d::Vec2 *arg4; /** anchr2 */ float arg5 = 0; /** stiffness */ float arg6 = 0; /** damping */ @@ -5086,7 +5302,7 @@ static int _cocos2d_PhysicsJointSpring_construct(lua_State *L) olua_check_number(L, 6, &arg6); // static cocos2d::PhysicsJointSpring *construct(cocos2d::PhysicsBody *a, cocos2d::PhysicsBody *b, const cocos2d::Vec2 &anchr1, const cocos2d::Vec2 &anchr2, float stiffness, float damping) - cocos2d::PhysicsJointSpring *ret = cocos2d::PhysicsJointSpring::construct(arg1, arg2, arg3, arg4, arg5, arg6); + cocos2d::PhysicsJointSpring *ret = cocos2d::PhysicsJointSpring::construct(arg1, arg2, *arg3, *arg4, arg5, arg6); int num_ret = olua_push_object(L, ret, "cc.PhysicsJointSpring"); olua_endinvoke(L); @@ -5201,13 +5417,13 @@ static int _cocos2d_PhysicsJointSpring_setAnchr1(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsJointSpring *self = nullptr; - cocos2d::Vec2 arg1; /** anchr1 */ + cocos2d::Vec2 *arg1; /** anchr1 */ olua_to_object(L, 1, &self, "cc.PhysicsJointSpring"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setAnchr1(const cocos2d::Vec2 &anchr1) - self->setAnchr1(arg1); + self->setAnchr1(*arg1); olua_endinvoke(L); @@ -5219,13 +5435,13 @@ static int _cocos2d_PhysicsJointSpring_setAnchr2(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsJointSpring *self = nullptr; - cocos2d::Vec2 arg1; /** anchr2 */ + cocos2d::Vec2 *arg1; /** anchr2 */ olua_to_object(L, 1, &self, "cc.PhysicsJointSpring"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setAnchr2(const cocos2d::Vec2 &anchr2) - self->setAnchr2(arg1); + self->setAnchr2(*arg1); olua_endinvoke(L); @@ -5286,8 +5502,7 @@ static int _cocos2d_PhysicsJointSpring_setStiffness(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsJointSpring(lua_State *L) +static int _cc_PhysicsJointSpring(lua_State *L) { oluacls_class(L, "cc.PhysicsJointSpring"); oluacls_func(L, "construct", _cocos2d_PhysicsJointSpring_construct); @@ -5310,12 +5525,21 @@ OLUA_LIB int luaopen_cocos2d_PhysicsJointSpring(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsJointSpring(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsJointSpring"); + } + return 1; +} OLUA_END_DECLS #endif #if CC_USE_PHYSICS -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsShape_Type(lua_State *L) +static int _cc_PhysicsShape_Type(lua_State *L) { oluacls_class(L, "cc.PhysicsShape.Type"); oluacls_func(L, "__index", olua_indexerror); @@ -5333,6 +5557,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsShape_Type(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsShape_Type(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsShape::Type"); + } + return 1; +} OLUA_END_DECLS #endif @@ -5359,13 +5593,13 @@ static int _cocos2d_PhysicsShape_containsPoint(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsShape *self = nullptr; - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ olua_to_object(L, 1, &self, "cc.PhysicsShape"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // bool containsPoint(const cocos2d::Vec2 &point) - bool ret = self->containsPoint(arg1); + bool ret = self->containsPoint(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -5687,14 +5921,14 @@ static int _cocos2d_PhysicsShape_recenterPoints$1(lua_State *L) cocos2d::Vec2 *arg1 = nullptr; /** points */ int arg2 = 0; /** count */ - cocos2d::Vec2 arg3; /** center */ + cocos2d::Vec2 *arg3; /** center */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_integer(L, 2, &arg2); olua_check_object(L, 3, &arg3, "cc.Vec2"); // static void recenterPoints(cocos2d::Vec2 *points, int count, @optional const cocos2d::Vec2 ¢er) - cocos2d::PhysicsShape::recenterPoints(arg1, arg2, arg3); + cocos2d::PhysicsShape::recenterPoints(arg1, arg2, *arg3); olua_endinvoke(L); @@ -5873,13 +6107,13 @@ static int _cocos2d_PhysicsShape_setMaterial(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsShape *self = nullptr; - cocos2d::PhysicsMaterial arg1; /** material */ + cocos2d::PhysicsMaterial *arg1; /** material */ olua_to_object(L, 1, &self, "cc.PhysicsShape"); olua_check_object(L, 2, &arg1, "cc.PhysicsMaterial"); // void setMaterial(const cocos2d::PhysicsMaterial &material) - self->setMaterial(arg1); + self->setMaterial(*arg1); olua_endinvoke(L); @@ -5958,8 +6192,7 @@ static int _cocos2d_PhysicsShape_setTag(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsShape(lua_State *L) +static int _cc_PhysicsShape(lua_State *L) { oluacls_class(L, "cc.PhysicsShape"); oluacls_func(L, "calculateDefaultMoment", _cocos2d_PhysicsShape_calculateDefaultMoment); @@ -6015,6 +6248,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsShape(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsShape(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsShape"); + } + return 1; +} OLUA_END_DECLS #endif @@ -6045,7 +6288,7 @@ static int _cocos2d_PhysicsShapePolygon_calculateMoment$1(lua_State *L) float arg1 = 0; /** mass */ cocos2d::Vec2 *arg2 = nullptr; /** points */ int arg3 = 0; /** count */ - cocos2d::Vec2 arg4; /** offset */ + cocos2d::Vec2 *arg4; /** offset */ float arg5 = 0; /** radius */ olua_check_number(L, 1, &arg1); @@ -6055,7 +6298,7 @@ static int _cocos2d_PhysicsShapePolygon_calculateMoment$1(lua_State *L) olua_check_number(L, 5, &arg5); // static float calculateMoment(float mass, const cocos2d::Vec2 *points, int count, @optional const cocos2d::Vec2 &offset, @optional float radius) - float ret = cocos2d::PhysicsShapePolygon::calculateMoment(arg1, arg2, arg3, arg4, arg5); + float ret = cocos2d::PhysicsShapePolygon::calculateMoment(arg1, arg2, arg3, *arg4, arg5); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -6091,7 +6334,7 @@ static int _cocos2d_PhysicsShapePolygon_calculateMoment$3(lua_State *L) float arg1 = 0; /** mass */ cocos2d::Vec2 *arg2 = nullptr; /** points */ int arg3 = 0; /** count */ - cocos2d::Vec2 arg4; /** offset */ + cocos2d::Vec2 *arg4; /** offset */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Vec2"); @@ -6099,7 +6342,7 @@ static int _cocos2d_PhysicsShapePolygon_calculateMoment$3(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec2"); // static float calculateMoment(float mass, const cocos2d::Vec2 *points, int count, @optional const cocos2d::Vec2 &offset) - float ret = cocos2d::PhysicsShapePolygon::calculateMoment(arg1, arg2, arg3, arg4); + float ret = cocos2d::PhysicsShapePolygon::calculateMoment(arg1, arg2, arg3, *arg4); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -6143,8 +6386,8 @@ static int _cocos2d_PhysicsShapePolygon_create$1(lua_State *L) cocos2d::Vec2 *arg1 = nullptr; /** points */ int arg2 = 0; /** count */ - cocos2d::PhysicsMaterial arg3; /** material */ - cocos2d::Vec2 arg4; /** offset */ + cocos2d::PhysicsMaterial *arg3; /** material */ + cocos2d::Vec2 *arg4; /** offset */ float arg5 = 0; /** radius */ olua_check_object(L, 1, &arg1, "cc.Vec2"); @@ -6154,7 +6397,7 @@ static int _cocos2d_PhysicsShapePolygon_create$1(lua_State *L) olua_check_number(L, 5, &arg5); // static cocos2d::PhysicsShapePolygon *create(const cocos2d::Vec2 *points, int count, @optional const cocos2d::PhysicsMaterial &material, @optional const cocos2d::Vec2 &offset, @optional float radius) - cocos2d::PhysicsShapePolygon *ret = cocos2d::PhysicsShapePolygon::create(arg1, arg2, arg3, arg4, arg5); + cocos2d::PhysicsShapePolygon *ret = cocos2d::PhysicsShapePolygon::create(arg1, arg2, *arg3, *arg4, arg5); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapePolygon"); olua_endinvoke(L); @@ -6187,14 +6430,14 @@ static int _cocos2d_PhysicsShapePolygon_create$3(lua_State *L) cocos2d::Vec2 *arg1 = nullptr; /** points */ int arg2 = 0; /** count */ - cocos2d::PhysicsMaterial arg3; /** material */ + cocos2d::PhysicsMaterial *arg3; /** material */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_integer(L, 2, &arg2); olua_check_object(L, 3, &arg3, "cc.PhysicsMaterial"); // static cocos2d::PhysicsShapePolygon *create(const cocos2d::Vec2 *points, int count, @optional const cocos2d::PhysicsMaterial &material) - cocos2d::PhysicsShapePolygon *ret = cocos2d::PhysicsShapePolygon::create(arg1, arg2, arg3); + cocos2d::PhysicsShapePolygon *ret = cocos2d::PhysicsShapePolygon::create(arg1, arg2, *arg3); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapePolygon"); olua_endinvoke(L); @@ -6208,8 +6451,8 @@ static int _cocos2d_PhysicsShapePolygon_create$4(lua_State *L) cocos2d::Vec2 *arg1 = nullptr; /** points */ int arg2 = 0; /** count */ - cocos2d::PhysicsMaterial arg3; /** material */ - cocos2d::Vec2 arg4; /** offset */ + cocos2d::PhysicsMaterial *arg3; /** material */ + cocos2d::Vec2 *arg4; /** offset */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_integer(L, 2, &arg2); @@ -6217,7 +6460,7 @@ static int _cocos2d_PhysicsShapePolygon_create$4(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec2"); // static cocos2d::PhysicsShapePolygon *create(const cocos2d::Vec2 *points, int count, @optional const cocos2d::PhysicsMaterial &material, @optional const cocos2d::Vec2 &offset) - cocos2d::PhysicsShapePolygon *ret = cocos2d::PhysicsShapePolygon::create(arg1, arg2, arg3, arg4); + cocos2d::PhysicsShapePolygon *ret = cocos2d::PhysicsShapePolygon::create(arg1, arg2, *arg3, *arg4); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapePolygon"); olua_endinvoke(L); @@ -6316,8 +6559,7 @@ static int _cocos2d_PhysicsShapePolygon_getPointsCount(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsShapePolygon(lua_State *L) +static int _cc_PhysicsShapePolygon(lua_State *L) { oluacls_class(L, "cc.PhysicsShapePolygon"); oluacls_func(L, "calculateArea", _cocos2d_PhysicsShapePolygon_calculateArea); @@ -6330,6 +6572,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsShapePolygon(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsShapePolygon(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsShapePolygon"); + } + return 1; +} OLUA_END_DECLS #endif @@ -6340,7 +6592,7 @@ static int _cocos2d_PhysicsShapeEdgePolygon_create$1(lua_State *L) cocos2d::Vec2 *arg1 = nullptr; /** points */ int arg2 = 0; /** count */ - cocos2d::PhysicsMaterial arg3; /** material */ + cocos2d::PhysicsMaterial *arg3; /** material */ float arg4 = 0; /** border */ olua_check_object(L, 1, &arg1, "cc.Vec2"); @@ -6349,7 +6601,7 @@ static int _cocos2d_PhysicsShapeEdgePolygon_create$1(lua_State *L) olua_check_number(L, 4, &arg4); // static cocos2d::PhysicsShapeEdgePolygon *create(const cocos2d::Vec2 *points, int count, @optional const cocos2d::PhysicsMaterial &material, @optional float border) - cocos2d::PhysicsShapeEdgePolygon *ret = cocos2d::PhysicsShapeEdgePolygon::create(arg1, arg2, arg3, arg4); + cocos2d::PhysicsShapeEdgePolygon *ret = cocos2d::PhysicsShapeEdgePolygon::create(arg1, arg2, *arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeEdgePolygon"); olua_endinvoke(L); @@ -6382,14 +6634,14 @@ static int _cocos2d_PhysicsShapeEdgePolygon_create$3(lua_State *L) cocos2d::Vec2 *arg1 = nullptr; /** points */ int arg2 = 0; /** count */ - cocos2d::PhysicsMaterial arg3; /** material */ + cocos2d::PhysicsMaterial *arg3; /** material */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_integer(L, 2, &arg2); olua_check_object(L, 3, &arg3, "cc.PhysicsMaterial"); // static cocos2d::PhysicsShapeEdgePolygon *create(const cocos2d::Vec2 *points, int count, @optional const cocos2d::PhysicsMaterial &material) - cocos2d::PhysicsShapeEdgePolygon *ret = cocos2d::PhysicsShapeEdgePolygon::create(arg1, arg2, arg3); + cocos2d::PhysicsShapeEdgePolygon *ret = cocos2d::PhysicsShapeEdgePolygon::create(arg1, arg2, *arg3); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeEdgePolygon"); olua_endinvoke(L); @@ -6462,8 +6714,7 @@ static int _cocos2d_PhysicsShapeEdgePolygon_getPointsCount(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsShapeEdgePolygon(lua_State *L) +static int _cc_PhysicsShapeEdgePolygon(lua_State *L) { oluacls_class(L, "cc.PhysicsShapeEdgePolygon"); oluacls_func(L, "create", _cocos2d_PhysicsShapeEdgePolygon_create); @@ -6473,6 +6724,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsShapeEdgePolygon(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsShapeEdgePolygon(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsShapeEdgePolygon"); + } + return 1; +} OLUA_END_DECLS #endif @@ -6481,9 +6742,9 @@ static int _cocos2d_PhysicsShapeBox_create$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ - cocos2d::PhysicsMaterial arg2; /** material */ - cocos2d::Vec2 arg3; /** offset */ + cocos2d::Size *arg1; /** size */ + cocos2d::PhysicsMaterial *arg2; /** material */ + cocos2d::Vec2 *arg3; /** offset */ float arg4 = 0; /** radius */ olua_check_object(L, 1, &arg1, "cc.Size"); @@ -6492,7 +6753,7 @@ static int _cocos2d_PhysicsShapeBox_create$1(lua_State *L) olua_check_number(L, 4, &arg4); // static cocos2d::PhysicsShapeBox *create(const cocos2d::Size &size, @optional const cocos2d::PhysicsMaterial &material, @optional const cocos2d::Vec2 &offset, @optional float radius) - cocos2d::PhysicsShapeBox *ret = cocos2d::PhysicsShapeBox::create(arg1, arg2, arg3, arg4); + cocos2d::PhysicsShapeBox *ret = cocos2d::PhysicsShapeBox::create(*arg1, *arg2, *arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeBox"); olua_endinvoke(L); @@ -6504,12 +6765,12 @@ static int _cocos2d_PhysicsShapeBox_create$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_check_object(L, 1, &arg1, "cc.Size"); // static cocos2d::PhysicsShapeBox *create(const cocos2d::Size &size) - cocos2d::PhysicsShapeBox *ret = cocos2d::PhysicsShapeBox::create(arg1); + cocos2d::PhysicsShapeBox *ret = cocos2d::PhysicsShapeBox::create(*arg1); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeBox"); olua_endinvoke(L); @@ -6521,14 +6782,14 @@ static int _cocos2d_PhysicsShapeBox_create$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ - cocos2d::PhysicsMaterial arg2; /** material */ + cocos2d::Size *arg1; /** size */ + cocos2d::PhysicsMaterial *arg2; /** material */ olua_check_object(L, 1, &arg1, "cc.Size"); olua_check_object(L, 2, &arg2, "cc.PhysicsMaterial"); // static cocos2d::PhysicsShapeBox *create(const cocos2d::Size &size, @optional const cocos2d::PhysicsMaterial &material) - cocos2d::PhysicsShapeBox *ret = cocos2d::PhysicsShapeBox::create(arg1, arg2); + cocos2d::PhysicsShapeBox *ret = cocos2d::PhysicsShapeBox::create(*arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeBox"); olua_endinvoke(L); @@ -6540,16 +6801,16 @@ static int _cocos2d_PhysicsShapeBox_create$4(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ - cocos2d::PhysicsMaterial arg2; /** material */ - cocos2d::Vec2 arg3; /** offset */ + cocos2d::Size *arg1; /** size */ + cocos2d::PhysicsMaterial *arg2; /** material */ + cocos2d::Vec2 *arg3; /** offset */ olua_check_object(L, 1, &arg1, "cc.Size"); olua_check_object(L, 2, &arg2, "cc.PhysicsMaterial"); olua_check_object(L, 3, &arg3, "cc.Vec2"); // static cocos2d::PhysicsShapeBox *create(const cocos2d::Size &size, @optional const cocos2d::PhysicsMaterial &material, @optional const cocos2d::Vec2 &offset) - cocos2d::PhysicsShapeBox *ret = cocos2d::PhysicsShapeBox::create(arg1, arg2, arg3); + cocos2d::PhysicsShapeBox *ret = cocos2d::PhysicsShapeBox::create(*arg1, *arg2, *arg3); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeBox"); olua_endinvoke(L); @@ -6611,8 +6872,7 @@ static int _cocos2d_PhysicsShapeBox_getSize(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsShapeBox(lua_State *L) +static int _cc_PhysicsShapeBox(lua_State *L) { oluacls_class(L, "cc.PhysicsShapeBox"); oluacls_func(L, "create", _cocos2d_PhysicsShapeBox_create); @@ -6621,6 +6881,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsShapeBox(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsShapeBox(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsShapeBox"); + } + return 1; +} OLUA_END_DECLS #endif @@ -6648,14 +6918,14 @@ static int _cocos2d_PhysicsShapeCircle_calculateMoment$1(lua_State *L) float arg1 = 0; /** mass */ float arg2 = 0; /** radius */ - cocos2d::Vec2 arg3; /** offset */ + cocos2d::Vec2 *arg3; /** offset */ olua_check_number(L, 1, &arg1); olua_check_number(L, 2, &arg2); olua_check_object(L, 3, &arg3, "cc.Vec2"); // static float calculateMoment(float mass, float radius, @optional const cocos2d::Vec2 &offset) - float ret = cocos2d::PhysicsShapeCircle::calculateMoment(arg1, arg2, arg3); + float ret = cocos2d::PhysicsShapeCircle::calculateMoment(arg1, arg2, *arg3); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -6710,15 +6980,15 @@ static int _cocos2d_PhysicsShapeCircle_create$1(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** radius */ - cocos2d::PhysicsMaterial arg2; /** material */ - cocos2d::Vec2 arg3; /** offset */ + cocos2d::PhysicsMaterial *arg2; /** material */ + cocos2d::Vec2 *arg3; /** offset */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.PhysicsMaterial"); olua_check_object(L, 3, &arg3, "cc.Vec2"); // static cocos2d::PhysicsShapeCircle *create(float radius, @optional const cocos2d::PhysicsMaterial &material, @optional const cocos2d::Vec2 &offset) - cocos2d::PhysicsShapeCircle *ret = cocos2d::PhysicsShapeCircle::create(arg1, arg2, arg3); + cocos2d::PhysicsShapeCircle *ret = cocos2d::PhysicsShapeCircle::create(arg1, *arg2, *arg3); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeCircle"); olua_endinvoke(L); @@ -6748,13 +7018,13 @@ static int _cocos2d_PhysicsShapeCircle_create$3(lua_State *L) olua_startinvoke(L); float arg1 = 0; /** radius */ - cocos2d::PhysicsMaterial arg2; /** material */ + cocos2d::PhysicsMaterial *arg2; /** material */ olua_check_number(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.PhysicsMaterial"); // static cocos2d::PhysicsShapeCircle *create(float radius, @optional const cocos2d::PhysicsMaterial &material) - cocos2d::PhysicsShapeCircle *ret = cocos2d::PhysicsShapeCircle::create(arg1, arg2); + cocos2d::PhysicsShapeCircle *ret = cocos2d::PhysicsShapeCircle::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeCircle"); olua_endinvoke(L); @@ -6809,8 +7079,7 @@ static int _cocos2d_PhysicsShapeCircle_getRadius(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsShapeCircle(lua_State *L) +static int _cc_PhysicsShapeCircle(lua_State *L) { oluacls_class(L, "cc.PhysicsShapeCircle"); oluacls_func(L, "calculateArea", _cocos2d_PhysicsShapeCircle_calculateArea); @@ -6821,6 +7090,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsShapeCircle(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsShapeCircle(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsShapeCircle"); + } + return 1; +} OLUA_END_DECLS #endif @@ -6829,10 +7108,10 @@ static int _cocos2d_PhysicsShapeEdgeBox_create$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ - cocos2d::PhysicsMaterial arg2; /** material */ + cocos2d::Size *arg1; /** size */ + cocos2d::PhysicsMaterial *arg2; /** material */ float arg3 = 0; /** border */ - cocos2d::Vec2 arg4; /** offset */ + cocos2d::Vec2 *arg4; /** offset */ olua_check_object(L, 1, &arg1, "cc.Size"); olua_check_object(L, 2, &arg2, "cc.PhysicsMaterial"); @@ -6840,7 +7119,7 @@ static int _cocos2d_PhysicsShapeEdgeBox_create$1(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec2"); // static cocos2d::PhysicsShapeEdgeBox *create(const cocos2d::Size &size, @optional const cocos2d::PhysicsMaterial &material, @optional float border, @optional const cocos2d::Vec2 &offset) - cocos2d::PhysicsShapeEdgeBox *ret = cocos2d::PhysicsShapeEdgeBox::create(arg1, arg2, arg3, arg4); + cocos2d::PhysicsShapeEdgeBox *ret = cocos2d::PhysicsShapeEdgeBox::create(*arg1, *arg2, arg3, *arg4); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeEdgeBox"); olua_endinvoke(L); @@ -6852,12 +7131,12 @@ static int _cocos2d_PhysicsShapeEdgeBox_create$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_check_object(L, 1, &arg1, "cc.Size"); // static cocos2d::PhysicsShapeEdgeBox *create(const cocos2d::Size &size) - cocos2d::PhysicsShapeEdgeBox *ret = cocos2d::PhysicsShapeEdgeBox::create(arg1); + cocos2d::PhysicsShapeEdgeBox *ret = cocos2d::PhysicsShapeEdgeBox::create(*arg1); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeEdgeBox"); olua_endinvoke(L); @@ -6869,14 +7148,14 @@ static int _cocos2d_PhysicsShapeEdgeBox_create$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ - cocos2d::PhysicsMaterial arg2; /** material */ + cocos2d::Size *arg1; /** size */ + cocos2d::PhysicsMaterial *arg2; /** material */ olua_check_object(L, 1, &arg1, "cc.Size"); olua_check_object(L, 2, &arg2, "cc.PhysicsMaterial"); // static cocos2d::PhysicsShapeEdgeBox *create(const cocos2d::Size &size, @optional const cocos2d::PhysicsMaterial &material) - cocos2d::PhysicsShapeEdgeBox *ret = cocos2d::PhysicsShapeEdgeBox::create(arg1, arg2); + cocos2d::PhysicsShapeEdgeBox *ret = cocos2d::PhysicsShapeEdgeBox::create(*arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeEdgeBox"); olua_endinvoke(L); @@ -6888,8 +7167,8 @@ static int _cocos2d_PhysicsShapeEdgeBox_create$4(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ - cocos2d::PhysicsMaterial arg2; /** material */ + cocos2d::Size *arg1; /** size */ + cocos2d::PhysicsMaterial *arg2; /** material */ float arg3 = 0; /** border */ olua_check_object(L, 1, &arg1, "cc.Size"); @@ -6897,7 +7176,7 @@ static int _cocos2d_PhysicsShapeEdgeBox_create$4(lua_State *L) olua_check_number(L, 3, &arg3); // static cocos2d::PhysicsShapeEdgeBox *create(const cocos2d::Size &size, @optional const cocos2d::PhysicsMaterial &material, @optional float border) - cocos2d::PhysicsShapeEdgeBox *ret = cocos2d::PhysicsShapeEdgeBox::create(arg1, arg2, arg3); + cocos2d::PhysicsShapeEdgeBox *ret = cocos2d::PhysicsShapeEdgeBox::create(*arg1, *arg2, arg3); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeEdgeBox"); olua_endinvoke(L); @@ -6942,14 +7221,23 @@ static int _cocos2d_PhysicsShapeEdgeBox_create(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsShapeEdgeBox(lua_State *L) +static int _cc_PhysicsShapeEdgeBox(lua_State *L) { oluacls_class(L, "cc.PhysicsShapeEdgeBox"); oluacls_func(L, "create", _cocos2d_PhysicsShapeEdgeBox_create); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsShapeEdgeBox(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsShapeEdgeBox"); + } + return 1; +} OLUA_END_DECLS #endif @@ -6960,7 +7248,7 @@ static int _cocos2d_PhysicsShapeEdgeChain_create$1(lua_State *L) cocos2d::Vec2 *arg1 = nullptr; /** points */ int arg2 = 0; /** count */ - cocos2d::PhysicsMaterial arg3; /** material */ + cocos2d::PhysicsMaterial *arg3; /** material */ float arg4 = 0; /** border */ olua_check_object(L, 1, &arg1, "cc.Vec2"); @@ -6969,7 +7257,7 @@ static int _cocos2d_PhysicsShapeEdgeChain_create$1(lua_State *L) olua_check_number(L, 4, &arg4); // static cocos2d::PhysicsShapeEdgeChain *create(const cocos2d::Vec2 *points, int count, @optional const cocos2d::PhysicsMaterial &material, @optional float border) - cocos2d::PhysicsShapeEdgeChain *ret = cocos2d::PhysicsShapeEdgeChain::create(arg1, arg2, arg3, arg4); + cocos2d::PhysicsShapeEdgeChain *ret = cocos2d::PhysicsShapeEdgeChain::create(arg1, arg2, *arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeEdgeChain"); olua_endinvoke(L); @@ -7002,14 +7290,14 @@ static int _cocos2d_PhysicsShapeEdgeChain_create$3(lua_State *L) cocos2d::Vec2 *arg1 = nullptr; /** points */ int arg2 = 0; /** count */ - cocos2d::PhysicsMaterial arg3; /** material */ + cocos2d::PhysicsMaterial *arg3; /** material */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_integer(L, 2, &arg2); olua_check_object(L, 3, &arg3, "cc.PhysicsMaterial"); // static cocos2d::PhysicsShapeEdgeChain *create(const cocos2d::Vec2 *points, int count, @optional const cocos2d::PhysicsMaterial &material) - cocos2d::PhysicsShapeEdgeChain *ret = cocos2d::PhysicsShapeEdgeChain::create(arg1, arg2, arg3); + cocos2d::PhysicsShapeEdgeChain *ret = cocos2d::PhysicsShapeEdgeChain::create(arg1, arg2, *arg3); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeEdgeChain"); olua_endinvoke(L); @@ -7082,8 +7370,7 @@ static int _cocos2d_PhysicsShapeEdgeChain_getPointsCount(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsShapeEdgeChain(lua_State *L) +static int _cc_PhysicsShapeEdgeChain(lua_State *L) { oluacls_class(L, "cc.PhysicsShapeEdgeChain"); oluacls_func(L, "create", _cocos2d_PhysicsShapeEdgeChain_create); @@ -7093,6 +7380,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsShapeEdgeChain(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsShapeEdgeChain(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsShapeEdgeChain"); + } + return 1; +} OLUA_END_DECLS #endif @@ -7101,9 +7398,9 @@ static int _cocos2d_PhysicsShapeEdgeSegment_create$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** a */ - cocos2d::Vec2 arg2; /** b */ - cocos2d::PhysicsMaterial arg3; /** material */ + cocos2d::Vec2 *arg1; /** a */ + cocos2d::Vec2 *arg2; /** b */ + cocos2d::PhysicsMaterial *arg3; /** material */ float arg4 = 0; /** border */ olua_check_object(L, 1, &arg1, "cc.Vec2"); @@ -7112,7 +7409,7 @@ static int _cocos2d_PhysicsShapeEdgeSegment_create$1(lua_State *L) olua_check_number(L, 4, &arg4); // static cocos2d::PhysicsShapeEdgeSegment *create(const cocos2d::Vec2 &a, const cocos2d::Vec2 &b, @optional const cocos2d::PhysicsMaterial &material, @optional float border) - cocos2d::PhysicsShapeEdgeSegment *ret = cocos2d::PhysicsShapeEdgeSegment::create(arg1, arg2, arg3, arg4); + cocos2d::PhysicsShapeEdgeSegment *ret = cocos2d::PhysicsShapeEdgeSegment::create(*arg1, *arg2, *arg3, arg4); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeEdgeSegment"); olua_endinvoke(L); @@ -7124,14 +7421,14 @@ static int _cocos2d_PhysicsShapeEdgeSegment_create$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** a */ - cocos2d::Vec2 arg2; /** b */ + cocos2d::Vec2 *arg1; /** a */ + cocos2d::Vec2 *arg2; /** b */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_object(L, 2, &arg2, "cc.Vec2"); // static cocos2d::PhysicsShapeEdgeSegment *create(const cocos2d::Vec2 &a, const cocos2d::Vec2 &b) - cocos2d::PhysicsShapeEdgeSegment *ret = cocos2d::PhysicsShapeEdgeSegment::create(arg1, arg2); + cocos2d::PhysicsShapeEdgeSegment *ret = cocos2d::PhysicsShapeEdgeSegment::create(*arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeEdgeSegment"); olua_endinvoke(L); @@ -7143,16 +7440,16 @@ static int _cocos2d_PhysicsShapeEdgeSegment_create$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** a */ - cocos2d::Vec2 arg2; /** b */ - cocos2d::PhysicsMaterial arg3; /** material */ + cocos2d::Vec2 *arg1; /** a */ + cocos2d::Vec2 *arg2; /** b */ + cocos2d::PhysicsMaterial *arg3; /** material */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_object(L, 2, &arg2, "cc.Vec2"); olua_check_object(L, 3, &arg3, "cc.PhysicsMaterial"); // static cocos2d::PhysicsShapeEdgeSegment *create(const cocos2d::Vec2 &a, const cocos2d::Vec2 &b, @optional const cocos2d::PhysicsMaterial &material) - cocos2d::PhysicsShapeEdgeSegment *ret = cocos2d::PhysicsShapeEdgeSegment::create(arg1, arg2, arg3); + cocos2d::PhysicsShapeEdgeSegment *ret = cocos2d::PhysicsShapeEdgeSegment::create(*arg1, *arg2, *arg3); int num_ret = olua_push_object(L, ret, "cc.PhysicsShapeEdgeSegment"); olua_endinvoke(L); @@ -7224,8 +7521,7 @@ static int _cocos2d_PhysicsShapeEdgeSegment_getPointB(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsShapeEdgeSegment(lua_State *L) +static int _cc_PhysicsShapeEdgeSegment(lua_State *L) { oluacls_class(L, "cc.PhysicsShapeEdgeSegment"); oluacls_func(L, "create", _cocos2d_PhysicsShapeEdgeSegment_create); @@ -7236,6 +7532,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsShapeEdgeSegment(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsShapeEdgeSegment(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsShapeEdgeSegment"); + } + return 1; +} OLUA_END_DECLS #endif @@ -7286,13 +7592,13 @@ static int _cocos2d_PhysicsRayCastInfo_contact$2(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsRayCastInfo *self = nullptr; - cocos2d::Vec2 arg1; /** contact */ + cocos2d::Vec2 *arg1; /** contact */ olua_to_object(L, 1, &self, "cc.PhysicsRayCastInfo"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 contact - self->contact = arg1; + self->contact = *arg1; olua_endinvoke(L); @@ -7398,13 +7704,13 @@ static int _cocos2d_PhysicsRayCastInfo_end$2(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsRayCastInfo *self = nullptr; - cocos2d::Vec2 arg1; /** end */ + cocos2d::Vec2 *arg1; /** end */ olua_to_object(L, 1, &self, "cc.PhysicsRayCastInfo"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 end - self->end = arg1; + self->end = *arg1; olua_endinvoke(L); @@ -7510,13 +7816,13 @@ static int _cocos2d_PhysicsRayCastInfo_normal$2(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsRayCastInfo *self = nullptr; - cocos2d::Vec2 arg1; /** normal */ + cocos2d::Vec2 *arg1; /** normal */ olua_to_object(L, 1, &self, "cc.PhysicsRayCastInfo"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 normal - self->normal = arg1; + self->normal = *arg1; olua_endinvoke(L); @@ -7622,13 +7928,13 @@ static int _cocos2d_PhysicsRayCastInfo_start$2(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsRayCastInfo *self = nullptr; - cocos2d::Vec2 arg1; /** start */ + cocos2d::Vec2 *arg1; /** start */ olua_to_object(L, 1, &self, "cc.PhysicsRayCastInfo"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 start - self->start = arg1; + self->start = *arg1; olua_endinvoke(L); @@ -7656,8 +7962,7 @@ static int _cocos2d_PhysicsRayCastInfo_start(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsRayCastInfo(lua_State *L) +static int _cc_PhysicsRayCastInfo(lua_State *L) { oluacls_class(L, "cc.PhysicsRayCastInfo"); oluacls_func(L, "__gc", _cocos2d_PhysicsRayCastInfo___gc); @@ -7672,6 +7977,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsRayCastInfo(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsRayCastInfo(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsRayCastInfo"); + } + return 1; +} OLUA_END_DECLS #endif @@ -7817,13 +8132,13 @@ static int _cocos2d_PhysicsWorld_getShape(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsWorld *self = nullptr; - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ olua_to_object(L, 1, &self, "cc.PhysicsWorld"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::PhysicsShape *getShape(const cocos2d::Vec2 &point) - cocos2d::PhysicsShape *ret = self->getShape(arg1); + cocos2d::PhysicsShape *ret = self->getShape(*arg1); int num_ret = olua_push_object(L, ret, "cc.PhysicsShape"); olua_endinvoke(L); @@ -7836,13 +8151,13 @@ static int _cocos2d_PhysicsWorld_getShapes(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsWorld *self = nullptr; - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ olua_to_object(L, 1, &self, "cc.PhysicsWorld"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vector getShapes(const cocos2d::Vec2 &point) - cocos2d::Vector ret = self->getShapes(arg1); + cocos2d::Vector ret = self->getShapes(*arg1); int num_ret = olua_push_array(L, ret, [L](cocos2d::PhysicsShape *arg1) { olua_push_object(L, arg1, "cc.PhysicsShape"); }); @@ -7926,7 +8241,7 @@ static int _cocos2d_PhysicsWorld_queryPoint(lua_State *L) cocos2d::PhysicsWorld *self = nullptr; cocos2d::PhysicsQueryPointCallbackFunc arg1; /** func */ - cocos2d::Vec2 arg2; /** point */ + cocos2d::Vec2 *arg2; /** point */ void *arg3 = nullptr; /** data */ olua_to_object(L, 1, &self, "cc.PhysicsWorld"); @@ -7938,7 +8253,7 @@ static int _cocos2d_PhysicsWorld_queryPoint(lua_State *L) std::string cb_tag = "queryPoint"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::PhysicsWorld &arg1, cocos2d::PhysicsShape &arg2, void *arg3) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::PhysicsWorld &cb_arg1, cocos2d::PhysicsShape &cb_arg2, void *cb_arg3) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); bool ret = false; /** ret */ @@ -7946,9 +8261,9 @@ static int _cocos2d_PhysicsWorld_queryPoint(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, &arg1, "cc.PhysicsWorld"); - olua_push_object(L, &arg2, "cc.PhysicsShape"); - olua_push_object(L, arg3, "void *"); + olua_push_object(L, &cb_arg1, "cc.PhysicsWorld"); + olua_push_object(L, &cb_arg2, "cc.PhysicsShape"); + olua_push_object(L, cb_arg3, "void *"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 3); @@ -7965,7 +8280,7 @@ static int _cocos2d_PhysicsWorld_queryPoint(lua_State *L) }; // void queryPoint(cocos2d::PhysicsQueryPointCallbackFunc func, const cocos2d::Vec2 &point, void *data) - self->queryPoint(arg1, arg2, arg3); + self->queryPoint(arg1, *arg2, arg3); olua_endinvoke(L); @@ -7978,7 +8293,7 @@ static int _cocos2d_PhysicsWorld_queryRect(lua_State *L) cocos2d::PhysicsWorld *self = nullptr; cocos2d::PhysicsQueryRectCallbackFunc arg1; /** func */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ void *arg3 = nullptr; /** data */ olua_to_object(L, 1, &self, "cc.PhysicsWorld"); @@ -7990,7 +8305,7 @@ static int _cocos2d_PhysicsWorld_queryRect(lua_State *L) std::string cb_tag = "queryRect"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::PhysicsWorld &arg1, cocos2d::PhysicsShape &arg2, void *arg3) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::PhysicsWorld &cb_arg1, cocos2d::PhysicsShape &cb_arg2, void *cb_arg3) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); bool ret = false; /** ret */ @@ -7998,9 +8313,9 @@ static int _cocos2d_PhysicsWorld_queryRect(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, &arg1, "cc.PhysicsWorld"); - olua_push_object(L, &arg2, "cc.PhysicsShape"); - olua_push_object(L, arg3, "void *"); + olua_push_object(L, &cb_arg1, "cc.PhysicsWorld"); + olua_push_object(L, &cb_arg2, "cc.PhysicsShape"); + olua_push_object(L, cb_arg3, "void *"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 3); @@ -8017,7 +8332,7 @@ static int _cocos2d_PhysicsWorld_queryRect(lua_State *L) }; // void queryRect(cocos2d::PhysicsQueryRectCallbackFunc func, const cocos2d::Rect &rect, void *data) - self->queryRect(arg1, arg2, arg3); + self->queryRect(arg1, *arg2, arg3); olua_endinvoke(L); @@ -8030,8 +8345,8 @@ static int _cocos2d_PhysicsWorld_rayCast(lua_State *L) cocos2d::PhysicsWorld *self = nullptr; cocos2d::PhysicsRayCastCallbackFunc arg1; /** func */ - cocos2d::Vec2 arg2; /** start */ - cocos2d::Vec2 arg3; /** end_ */ + cocos2d::Vec2 *arg2; /** start */ + cocos2d::Vec2 *arg3; /** end_ */ void *arg4 = nullptr; /** data */ olua_to_object(L, 1, &self, "cc.PhysicsWorld"); @@ -8044,7 +8359,7 @@ static int _cocos2d_PhysicsWorld_rayCast(lua_State *L) std::string cb_tag = "rayCast"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::PhysicsWorld &arg1, const cocos2d::PhysicsRayCastInfo &arg2, void *arg3) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::PhysicsWorld &cb_arg1, const cocos2d::PhysicsRayCastInfo &cb_arg2, void *cb_arg3) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); bool ret = false; /** ret */ @@ -8052,9 +8367,9 @@ static int _cocos2d_PhysicsWorld_rayCast(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, &arg1, "cc.PhysicsWorld"); - olua_push_object(L, arg2, "cc.PhysicsRayCastInfo"); - olua_push_object(L, arg3, "void *"); + olua_push_object(L, &cb_arg1, "cc.PhysicsWorld"); + olua_push_object(L, cb_arg2, "cc.PhysicsRayCastInfo"); + olua_push_object(L, cb_arg3, "void *"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 3); @@ -8071,7 +8386,7 @@ static int _cocos2d_PhysicsWorld_rayCast(lua_State *L) }; // void rayCast(cocos2d::PhysicsRayCastCallbackFunc func, const cocos2d::Vec2 &start, const cocos2d::Vec2 &end_, void *data) - self->rayCast(arg1, arg2, arg3, arg4); + self->rayCast(arg1, *arg2, *arg3, arg4); olua_endinvoke(L); @@ -8326,13 +8641,13 @@ static int _cocos2d_PhysicsWorld_setGravity(lua_State *L) olua_startinvoke(L); cocos2d::PhysicsWorld *self = nullptr; - cocos2d::Vec2 arg1; /** gravity */ + cocos2d::Vec2 *arg1; /** gravity */ olua_to_object(L, 1, &self, "cc.PhysicsWorld"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setGravity(const cocos2d::Vec2 &gravity) - self->setGravity(arg1); + self->setGravity(*arg1); olua_endinvoke(L); @@ -8497,8 +8812,7 @@ static int _cocos2d_PhysicsWorld_step(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_PhysicsWorld(lua_State *L) +static int _cc_PhysicsWorld(lua_State *L) { oluacls_class(L, "cc.PhysicsWorld"); oluacls_func(L, "__olua_move", _cocos2d_PhysicsWorld___olua_move); @@ -8549,6 +8863,16 @@ OLUA_LIB int luaopen_cocos2d_PhysicsWorld(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_PhysicsWorld(lua_State *L) +{ + olua_require(L, "cocos2d_physics", luaopen_cocos2d_physics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::PhysicsWorld"); + } + return 1; +} OLUA_END_DECLS #endif @@ -8556,42 +8880,42 @@ OLUA_BEGIN_DECLS OLUA_LIB int luaopen_cocos2d_physics(lua_State *L) { #if CC_USE_PHYSICS - olua_require(L, "cc.PhysicsMaterial", luaopen_cocos2d_PhysicsMaterial); - olua_require(L, "cc.PhysicsRayCastCallbackFunc", luaopen_cocos2d_PhysicsRayCastCallbackFunc); - olua_require(L, "cc.PhysicsQueryRectCallbackFunc", luaopen_cocos2d_PhysicsQueryRectCallbackFunc); - olua_require(L, "cc.PhysicsQueryPointCallbackFunc", luaopen_cocos2d_PhysicsQueryPointCallbackFunc); - olua_require(L, "cc.EventListenerPhysicsContact", luaopen_cocos2d_EventListenerPhysicsContact); - olua_require(L, "cc.EventListenerPhysicsContactWithGroup", luaopen_cocos2d_EventListenerPhysicsContactWithGroup); - olua_require(L, "cc.EventListenerPhysicsContactWithBodies", luaopen_cocos2d_EventListenerPhysicsContactWithBodies); - olua_require(L, "cc.EventListenerPhysicsContactWithShapes", luaopen_cocos2d_EventListenerPhysicsContactWithShapes); - olua_require(L, "cc.PhysicsBody", luaopen_cocos2d_PhysicsBody); - olua_require(L, "cc.PhysicsContact.EventCode", luaopen_cocos2d_PhysicsContact_EventCode); - olua_require(L, "cc.PhysicsContact", luaopen_cocos2d_PhysicsContact); - olua_require(L, "cc.PhysicsContactPostSolve", luaopen_cocos2d_PhysicsContactPostSolve); - olua_require(L, "cc.PhysicsContactPreSolve", luaopen_cocos2d_PhysicsContactPreSolve); - olua_require(L, "cc.PhysicsJoint", luaopen_cocos2d_PhysicsJoint); - olua_require(L, "cc.PhysicsJointDistance", luaopen_cocos2d_PhysicsJointDistance); - olua_require(L, "cc.PhysicsJointFixed", luaopen_cocos2d_PhysicsJointFixed); - olua_require(L, "cc.PhysicsJointGear", luaopen_cocos2d_PhysicsJointGear); - olua_require(L, "cc.PhysicsJointGroove", luaopen_cocos2d_PhysicsJointGroove); - olua_require(L, "cc.PhysicsJointLimit", luaopen_cocos2d_PhysicsJointLimit); - olua_require(L, "cc.PhysicsJointMotor", luaopen_cocos2d_PhysicsJointMotor); - olua_require(L, "cc.PhysicsJointPin", luaopen_cocos2d_PhysicsJointPin); - olua_require(L, "cc.PhysicsJointRatchet", luaopen_cocos2d_PhysicsJointRatchet); - olua_require(L, "cc.PhysicsJointRotaryLimit", luaopen_cocos2d_PhysicsJointRotaryLimit); - olua_require(L, "cc.PhysicsJointRotarySpring", luaopen_cocos2d_PhysicsJointRotarySpring); - olua_require(L, "cc.PhysicsJointSpring", luaopen_cocos2d_PhysicsJointSpring); - olua_require(L, "cc.PhysicsShape.Type", luaopen_cocos2d_PhysicsShape_Type); - olua_require(L, "cc.PhysicsShape", luaopen_cocos2d_PhysicsShape); - olua_require(L, "cc.PhysicsShapePolygon", luaopen_cocos2d_PhysicsShapePolygon); - olua_require(L, "cc.PhysicsShapeEdgePolygon", luaopen_cocos2d_PhysicsShapeEdgePolygon); - olua_require(L, "cc.PhysicsShapeBox", luaopen_cocos2d_PhysicsShapeBox); - olua_require(L, "cc.PhysicsShapeCircle", luaopen_cocos2d_PhysicsShapeCircle); - olua_require(L, "cc.PhysicsShapeEdgeBox", luaopen_cocos2d_PhysicsShapeEdgeBox); - olua_require(L, "cc.PhysicsShapeEdgeChain", luaopen_cocos2d_PhysicsShapeEdgeChain); - olua_require(L, "cc.PhysicsShapeEdgeSegment", luaopen_cocos2d_PhysicsShapeEdgeSegment); - olua_require(L, "cc.PhysicsRayCastInfo", luaopen_cocos2d_PhysicsRayCastInfo); - olua_require(L, "cc.PhysicsWorld", luaopen_cocos2d_PhysicsWorld); + olua_require(L, "cc.PhysicsMaterial", _cc_PhysicsMaterial); + olua_require(L, "cc.PhysicsRayCastCallbackFunc", _cc_PhysicsRayCastCallbackFunc); + olua_require(L, "cc.PhysicsQueryRectCallbackFunc", _cc_PhysicsQueryRectCallbackFunc); + olua_require(L, "cc.PhysicsQueryPointCallbackFunc", _cc_PhysicsQueryPointCallbackFunc); + olua_require(L, "cc.EventListenerPhysicsContact", _cc_EventListenerPhysicsContact); + olua_require(L, "cc.EventListenerPhysicsContactWithGroup", _cc_EventListenerPhysicsContactWithGroup); + olua_require(L, "cc.EventListenerPhysicsContactWithBodies", _cc_EventListenerPhysicsContactWithBodies); + olua_require(L, "cc.EventListenerPhysicsContactWithShapes", _cc_EventListenerPhysicsContactWithShapes); + olua_require(L, "cc.PhysicsBody", _cc_PhysicsBody); + olua_require(L, "cc.PhysicsContact.EventCode", _cc_PhysicsContact_EventCode); + olua_require(L, "cc.PhysicsContact", _cc_PhysicsContact); + olua_require(L, "cc.PhysicsContactPostSolve", _cc_PhysicsContactPostSolve); + olua_require(L, "cc.PhysicsContactPreSolve", _cc_PhysicsContactPreSolve); + olua_require(L, "cc.PhysicsJoint", _cc_PhysicsJoint); + olua_require(L, "cc.PhysicsJointDistance", _cc_PhysicsJointDistance); + olua_require(L, "cc.PhysicsJointFixed", _cc_PhysicsJointFixed); + olua_require(L, "cc.PhysicsJointGear", _cc_PhysicsJointGear); + olua_require(L, "cc.PhysicsJointGroove", _cc_PhysicsJointGroove); + olua_require(L, "cc.PhysicsJointLimit", _cc_PhysicsJointLimit); + olua_require(L, "cc.PhysicsJointMotor", _cc_PhysicsJointMotor); + olua_require(L, "cc.PhysicsJointPin", _cc_PhysicsJointPin); + olua_require(L, "cc.PhysicsJointRatchet", _cc_PhysicsJointRatchet); + olua_require(L, "cc.PhysicsJointRotaryLimit", _cc_PhysicsJointRotaryLimit); + olua_require(L, "cc.PhysicsJointRotarySpring", _cc_PhysicsJointRotarySpring); + olua_require(L, "cc.PhysicsJointSpring", _cc_PhysicsJointSpring); + olua_require(L, "cc.PhysicsShape.Type", _cc_PhysicsShape_Type); + olua_require(L, "cc.PhysicsShape", _cc_PhysicsShape); + olua_require(L, "cc.PhysicsShapePolygon", _cc_PhysicsShapePolygon); + olua_require(L, "cc.PhysicsShapeEdgePolygon", _cc_PhysicsShapeEdgePolygon); + olua_require(L, "cc.PhysicsShapeBox", _cc_PhysicsShapeBox); + olua_require(L, "cc.PhysicsShapeCircle", _cc_PhysicsShapeCircle); + olua_require(L, "cc.PhysicsShapeEdgeBox", _cc_PhysicsShapeEdgeBox); + olua_require(L, "cc.PhysicsShapeEdgeChain", _cc_PhysicsShapeEdgeChain); + olua_require(L, "cc.PhysicsShapeEdgeSegment", _cc_PhysicsShapeEdgeSegment); + olua_require(L, "cc.PhysicsRayCastInfo", _cc_PhysicsRayCastInfo); + olua_require(L, "cc.PhysicsWorld", _cc_PhysicsWorld); #endif cclua::runtime::registerFeature("physics", true); diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_physics.h b/frameworks/cclua/src/lua-bindings/lua_cocos2d_physics.h index 8b3f378c..7b2bd0d4 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_physics.h +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_physics.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_COCOS2D_PHYSICS_H__ #define __AUTO_GEN_LUA_COCOS2D_PHYSICS_H__ diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_studio.cpp b/frameworks/cclua/src/lua-bindings/lua_cocos2d_studio.cpp index fddff0ec..82b45435 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_studio.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_studio.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_cocos2d_studio.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -356,8 +356,7 @@ static int _cocostudio_timeline_AnimationInfo_startIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_AnimationInfo(lua_State *L) +static int _ccs_timeline_AnimationInfo(lua_State *L) { oluacls_class(L, "ccs.timeline.AnimationInfo"); oluacls_func(L, "__gc", _cocostudio_timeline_AnimationInfo___gc); @@ -370,6 +369,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_AnimationInfo(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_AnimationInfo(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::AnimationInfo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_CSLoader___gc(lua_State *L) @@ -452,7 +461,7 @@ static int _cocos2d_CSLoader_createNode$2(lua_State *L) std::string cb_tag = "createNode"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -460,7 +469,7 @@ static int _cocos2d_CSLoader_createNode$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Ref"); + olua_push_object(L, cb_arg1, "cc.Ref"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -513,7 +522,7 @@ static int _cocos2d_CSLoader_createNode$4(lua_State *L) std::string cb_tag = "createNode"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -521,7 +530,7 @@ static int _cocos2d_CSLoader_createNode$4(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Ref"); + olua_push_object(L, cb_arg1, "cc.Ref"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -664,7 +673,7 @@ static int _cocos2d_CSLoader_createNodeWithVisibleSize$2(lua_State *L) std::string cb_tag = "createNodeWithVisibleSize"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -672,7 +681,7 @@ static int _cocos2d_CSLoader_createNodeWithVisibleSize$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Ref"); + olua_push_object(L, cb_arg1, "cc.Ref"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -958,8 +967,7 @@ static int _cocos2d_CSLoader_setRecordJsonPath(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_CSLoader(lua_State *L) +static int _cc_CSLoader(lua_State *L) { oluacls_class(L, "cc.CSLoader"); oluacls_func(L, "__gc", _cocos2d_CSLoader___gc); @@ -988,10 +996,19 @@ OLUA_LIB int luaopen_cocos2d_CSLoader(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_MovementEventType(lua_State *L) +OLUA_LIB int luaopen_cc_CSLoader(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::CSLoader"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccs_MovementEventType(lua_State *L) { oluacls_class(L, "ccs.MovementEventType"); oluacls_func(L, "__index", olua_indexerror); @@ -1002,10 +1019,19 @@ OLUA_LIB int luaopen_cocostudio_MovementEventType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_DisplayType(lua_State *L) +OLUA_LIB int luaopen_ccs_MovementEventType(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::MovementEventType"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccs_DisplayType(lua_State *L) { oluacls_class(L, "ccs.DisplayType"); oluacls_func(L, "__index", olua_indexerror); @@ -1017,6 +1043,16 @@ OLUA_LIB int luaopen_cocostudio_DisplayType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_DisplayType(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::DisplayType"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ActionFrame_getAction$1(lua_State *L) @@ -1262,8 +1298,7 @@ static int _cocostudio_ActionFrame_setFrameType(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ActionFrame(lua_State *L) +static int _ccs_ActionFrame(lua_State *L) { oluacls_class(L, "ccs.ActionFrame"); oluacls_func(L, "getAction", _cocostudio_ActionFrame_getAction); @@ -1284,6 +1319,16 @@ OLUA_LIB int luaopen_cocostudio_ActionFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ActionFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ActionFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ActionFadeFrame_getOpacity(lua_State *L) @@ -1335,8 +1380,7 @@ static int _cocostudio_ActionFadeFrame_setOpacity(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ActionFadeFrame(lua_State *L) +static int _ccs_ActionFadeFrame(lua_State *L) { oluacls_class(L, "ccs.ActionFadeFrame"); oluacls_func(L, "getOpacity", _cocostudio_ActionFadeFrame_getOpacity); @@ -1346,6 +1390,16 @@ OLUA_LIB int luaopen_cocostudio_ActionFadeFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ActionFadeFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ActionFadeFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ActionFrameEasing_bounceTime(lua_State *L) @@ -1400,8 +1454,7 @@ static int _cocostudio_ActionFrameEasing_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ActionFrameEasing(lua_State *L) +static int _ccs_ActionFrameEasing(lua_State *L) { oluacls_class(L, "ccs.ActionFrameEasing"); oluacls_func(L, "bounceTime", _cocostudio_ActionFrameEasing_bounceTime); @@ -1410,6 +1463,16 @@ OLUA_LIB int luaopen_cocostudio_ActionFrameEasing(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ActionFrameEasing(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ActionFrameEasing"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ActionMoveFrame_getPosition(lua_State *L) @@ -1448,21 +1511,20 @@ static int _cocostudio_ActionMoveFrame_setPosition(lua_State *L) olua_startinvoke(L); cocostudio::ActionMoveFrame *self = nullptr; - cocos2d::Vec2 arg1; /** pos */ + cocos2d::Vec2 *arg1; /** pos */ olua_to_object(L, 1, &self, "ccs.ActionMoveFrame"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setPosition(cocos2d::Vec2 pos) - self->setPosition(arg1); + self->setPosition(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ActionMoveFrame(lua_State *L) +static int _ccs_ActionMoveFrame(lua_State *L) { oluacls_class(L, "ccs.ActionMoveFrame"); oluacls_func(L, "getPosition", _cocostudio_ActionMoveFrame_getPosition); @@ -1472,6 +1534,16 @@ OLUA_LIB int luaopen_cocostudio_ActionMoveFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ActionMoveFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ActionMoveFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ActionRotationFrame_getRotation(lua_State *L) @@ -1523,8 +1595,7 @@ static int _cocostudio_ActionRotationFrame_setRotation(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ActionRotationFrame(lua_State *L) +static int _ccs_ActionRotationFrame(lua_State *L) { oluacls_class(L, "ccs.ActionRotationFrame"); oluacls_func(L, "getRotation", _cocostudio_ActionRotationFrame_getRotation); @@ -1534,6 +1605,16 @@ OLUA_LIB int luaopen_cocostudio_ActionRotationFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ActionRotationFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ActionRotationFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ActionScaleFrame_getScaleX(lua_State *L) @@ -1620,8 +1701,7 @@ static int _cocostudio_ActionScaleFrame_setScaleY(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ActionScaleFrame(lua_State *L) +static int _ccs_ActionScaleFrame(lua_State *L) { oluacls_class(L, "ccs.ActionScaleFrame"); oluacls_func(L, "getScaleX", _cocostudio_ActionScaleFrame_getScaleX); @@ -1634,6 +1714,16 @@ OLUA_LIB int luaopen_cocostudio_ActionScaleFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ActionScaleFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ActionScaleFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ActionTintFrame_getColor(lua_State *L) @@ -1685,8 +1775,7 @@ static int _cocostudio_ActionTintFrame_setColor(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ActionTintFrame(lua_State *L) +static int _ccs_ActionTintFrame(lua_State *L) { oluacls_class(L, "ccs.ActionTintFrame"); oluacls_func(L, "getColor", _cocostudio_ActionTintFrame_getColor); @@ -1696,6 +1785,16 @@ OLUA_LIB int luaopen_cocostudio_ActionTintFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ActionTintFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ActionTintFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_AnimationData_addMovement(lua_State *L) @@ -1957,8 +2056,7 @@ static int _cocostudio_AnimationData_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_AnimationData(lua_State *L) +static int _ccs_AnimationData(lua_State *L) { oluacls_class(L, "ccs.AnimationData"); oluacls_func(L, "addMovement", _cocostudio_AnimationData_addMovement); @@ -1973,6 +2071,16 @@ OLUA_LIB int luaopen_cocostudio_AnimationData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_AnimationData(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::AnimationData"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_Armature_addBone(lua_State *L) @@ -2494,13 +2602,13 @@ static int _cocostudio_Armature_setBlendFunc(lua_State *L) olua_startinvoke(L); cocostudio::Armature *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "ccs.Armature"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -2559,8 +2667,7 @@ static int _cocostudio_Armature_updateOffsetPoint(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_Armature(lua_State *L) +static int _ccs_Armature(lua_State *L) { oluacls_class(L, "ccs.Armature"); oluacls_func(L, "addBone", _cocostudio_Armature_addBone); @@ -2600,6 +2707,16 @@ OLUA_LIB int luaopen_cocostudio_Armature(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_Armature(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::Armature"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ProcessBase_getCurrentFrameIndex(lua_State *L) @@ -2897,8 +3014,7 @@ static int _cocostudio_ProcessBase_update(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ProcessBase(lua_State *L) +static int _ccs_ProcessBase(lua_State *L) { oluacls_class(L, "ccs.ProcessBase"); oluacls_func(L, "getCurrentFrameIndex", _cocostudio_ProcessBase_getCurrentFrameIndex); @@ -2921,13 +3037,22 @@ OLUA_LIB int luaopen_cocostudio_ProcessBase(lua_State *L) oluacls_prop(L, "complete", _cocostudio_ProcessBase_isComplete, nullptr); oluacls_prop(L, "currentFrameIndex", _cocostudio_ProcessBase_getCurrentFrameIndex, nullptr); oluacls_prop(L, "currentPercent", _cocostudio_ProcessBase_getCurrentPercent, nullptr); - oluacls_prop(L, "pause", _cocostudio_ProcessBase_isPause, nullptr); oluacls_prop(L, "playing", _cocostudio_ProcessBase_isPlaying, nullptr); oluacls_prop(L, "processScale", _cocostudio_ProcessBase_getProcessScale, _cocostudio_ProcessBase_setProcessScale); oluacls_prop(L, "rawDuration", _cocostudio_ProcessBase_getRawDuration, nullptr); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ProcessBase(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ProcessBase"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ActionManagerEx_destroyInstance(lua_State *L) @@ -3111,8 +3236,7 @@ static int _cocostudio_ActionManagerEx_stopActionByName(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ActionManagerEx(lua_State *L) +static int _ccs_ActionManagerEx(lua_State *L) { oluacls_class(L, "ccs.ActionManagerEx"); oluacls_func(L, "destroyInstance", _cocostudio_ActionManagerEx_destroyInstance); @@ -3128,6 +3252,16 @@ OLUA_LIB int luaopen_cocostudio_ActionManagerEx(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ActionManagerEx(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ActionManagerEx"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ActionNode_addFrame(lua_State *L) @@ -3423,8 +3557,7 @@ static int _cocostudio_ActionNode_updateActionToTimeLine(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ActionNode(lua_State *L) +static int _ccs_ActionNode(lua_State *L) { oluacls_class(L, "ccs.ActionNode"); oluacls_func(L, "addFrame", _cocostudio_ActionNode_addFrame); @@ -3453,6 +3586,16 @@ OLUA_LIB int luaopen_cocostudio_ActionNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ActionNode(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ActionNode"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ActionObject_addActionNode(lua_State *L) @@ -3802,8 +3945,7 @@ static int _cocostudio_ActionObject_updateToFrameByTime(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ActionObject(lua_State *L) +static int _ccs_ActionObject(lua_State *L) { oluacls_class(L, "ccs.ActionObject"); oluacls_func(L, "addActionNode", _cocostudio_ActionObject_addActionNode); @@ -3833,6 +3975,16 @@ OLUA_LIB int luaopen_cocostudio_ActionObject(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ActionObject(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ActionObject"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ArmatureAnimation_create(lua_State *L) @@ -4445,7 +4597,7 @@ static int _cocostudio_ArmatureAnimation_setFrameEventCallFunc(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocostudio::Bone *arg1, const std::string &arg2, int arg3, int arg4) { + arg1 = [cb_store, cb_name, cb_ctx](cocostudio::Bone *cb_arg1, const std::string &cb_arg2, int cb_arg3, int cb_arg4) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -4453,10 +4605,10 @@ static int _cocostudio_ArmatureAnimation_setFrameEventCallFunc(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "ccs.Bone"); - olua_push_string(L, arg2); - olua_push_integer(L, arg3); - olua_push_integer(L, arg4); + olua_push_object(L, cb_arg1, "ccs.Bone"); + olua_push_string(L, cb_arg2); + olua_push_integer(L, cb_arg3); + olua_push_integer(L, cb_arg4); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 4); @@ -4497,7 +4649,7 @@ static int _cocostudio_ArmatureAnimation_setMovementEventCallFunc(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocostudio::Armature *arg1, cocostudio::MovementEventType arg2, const std::string &arg3) { + arg1 = [cb_store, cb_name, cb_ctx](cocostudio::Armature *cb_arg1, cocostudio::MovementEventType cb_arg2, const std::string &cb_arg3) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -4505,9 +4657,9 @@ static int _cocostudio_ArmatureAnimation_setMovementEventCallFunc(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "ccs.Armature"); - olua_push_enum(L, arg2); - olua_push_string(L, arg3); + olua_push_object(L, cb_arg1, "ccs.Armature"); + olua_push_enum(L, cb_arg2); + olua_push_string(L, cb_arg3); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 3); @@ -4566,8 +4718,7 @@ static int _cocostudio_ArmatureAnimation_setUserObject(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ArmatureAnimation(lua_State *L) +static int _ccs_ArmatureAnimation(lua_State *L) { oluacls_class(L, "ccs.ArmatureAnimation"); oluacls_func(L, "create", _cocostudio_ArmatureAnimation_create); @@ -4597,6 +4748,16 @@ OLUA_LIB int luaopen_cocostudio_ArmatureAnimation(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ArmatureAnimation(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ArmatureAnimation"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ArmatureData_addBoneData(lua_State *L) @@ -4854,8 +5015,7 @@ static int _cocostudio_ArmatureData_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ArmatureData(lua_State *L) +static int _ccs_ArmatureData(lua_State *L) { oluacls_class(L, "ccs.ArmatureData"); oluacls_func(L, "addBoneData", _cocostudio_ArmatureData_addBoneData); @@ -4869,6 +5029,16 @@ OLUA_LIB int luaopen_cocostudio_ArmatureData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ArmatureData(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ArmatureData"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ArmatureDataManager_addAnimationData$1(lua_State *L) @@ -5442,8 +5612,7 @@ static int _cocostudio_ArmatureDataManager_removeTextureData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ArmatureDataManager(lua_State *L) +static int _ccs_ArmatureDataManager(lua_State *L) { oluacls_class(L, "ccs.ArmatureDataManager"); oluacls_func(L, "addAnimationData", _cocostudio_ArmatureDataManager_addAnimationData); @@ -5473,6 +5642,16 @@ OLUA_LIB int luaopen_cocostudio_ArmatureDataManager(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ArmatureDataManager(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ArmatureDataManager"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_DisplayData_changeDisplayToTexture(lua_State *L) @@ -5649,8 +5828,7 @@ static int _cocostudio_DisplayData_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_DisplayData(lua_State *L) +static int _ccs_DisplayData(lua_State *L) { oluacls_class(L, "ccs.DisplayData"); oluacls_func(L, "changeDisplayToTexture", _cocostudio_DisplayData_changeDisplayToTexture); @@ -5662,6 +5840,16 @@ OLUA_LIB int luaopen_cocostudio_DisplayData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_DisplayData(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::DisplayData"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ArmatureDisplayData_create(lua_State *L) @@ -5691,8 +5879,7 @@ static int _cocostudio_ArmatureDisplayData_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ArmatureDisplayData(lua_State *L) +static int _ccs_ArmatureDisplayData(lua_State *L) { oluacls_class(L, "ccs.ArmatureDisplayData"); oluacls_func(L, "create", _cocostudio_ArmatureDisplayData_create); @@ -5700,15 +5887,34 @@ OLUA_LIB int luaopen_cocostudio_ArmatureDisplayData(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ArmatureMovementDispatcher(lua_State *L) +OLUA_LIB int luaopen_ccs_ArmatureDisplayData(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ArmatureDisplayData"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccs_ArmatureMovementDispatcher(lua_State *L) { oluacls_class(L, "ccs.ArmatureMovementDispatcher"); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ArmatureMovementDispatcher(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ArmatureMovementDispatcher"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_BaseData_a$1(lua_State *L) @@ -6541,8 +6747,7 @@ static int _cocostudio_BaseData_zOrder(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_BaseData(lua_State *L) +static int _ccs_BaseData(lua_State *L) { oluacls_class(L, "ccs.BaseData"); oluacls_func(L, "copy", _cocostudio_BaseData_copy); @@ -6568,6 +6773,16 @@ OLUA_LIB int luaopen_cocostudio_BaseData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_BaseData(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::BaseData"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_BaseTriggerAction_done(lua_State *L) @@ -6619,8 +6834,7 @@ static int _cocostudio_BaseTriggerAction_removeAll(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_BaseTriggerAction(lua_State *L) +static int _ccs_BaseTriggerAction(lua_State *L) { oluacls_class(L, "ccs.BaseTriggerAction"); oluacls_func(L, "done", _cocostudio_BaseTriggerAction_done); @@ -6629,6 +6843,16 @@ OLUA_LIB int luaopen_cocostudio_BaseTriggerAction(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_BaseTriggerAction(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::BaseTriggerAction"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_BaseTriggerCondition_detect(lua_State *L) @@ -6681,8 +6905,7 @@ static int _cocostudio_BaseTriggerCondition_removeAll(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_BaseTriggerCondition(lua_State *L) +static int _ccs_BaseTriggerCondition(lua_State *L) { oluacls_class(L, "ccs.BaseTriggerCondition"); oluacls_func(L, "detect", _cocostudio_BaseTriggerCondition_detect); @@ -6691,6 +6914,16 @@ OLUA_LIB int luaopen_cocostudio_BaseTriggerCondition(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_BaseTriggerCondition(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::BaseTriggerCondition"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_BatchNode_create(lua_State *L) @@ -6720,8 +6953,7 @@ static int _cocostudio_BatchNode_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_BatchNode(lua_State *L) +static int _ccs_BatchNode(lua_State *L) { oluacls_class(L, "ccs.BatchNode"); oluacls_func(L, "create", _cocostudio_BatchNode_create); @@ -6729,6 +6961,16 @@ OLUA_LIB int luaopen_cocostudio_BatchNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_BatchNode(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::BatchNode"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_Bone_addChildBone(lua_State *L) @@ -7398,13 +7640,13 @@ static int _cocostudio_Bone_setBlendFunc(lua_State *L) olua_startinvoke(L); cocostudio::Bone *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "ccs.Bone"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -7551,8 +7793,7 @@ static int _cocostudio_Bone_updateZOrder(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_Bone(lua_State *L) +static int _ccs_Bone(lua_State *L) { oluacls_class(L, "ccs.Bone"); oluacls_func(L, "addChildBone", _cocostudio_Bone_addChildBone); @@ -7611,6 +7852,16 @@ OLUA_LIB int luaopen_cocostudio_Bone(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_Bone(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::Bone"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_BoneData_addDisplayData(lua_State *L) @@ -7653,13 +7904,13 @@ static int _cocostudio_BoneData_boneDataTransform$2(lua_State *L) olua_startinvoke(L); cocostudio::BoneData *self = nullptr; - cocos2d::AffineTransform arg1; /** boneDataTransform */ + cocos2d::AffineTransform *arg1; /** boneDataTransform */ olua_to_object(L, 1, &self, "ccs.BoneData"); olua_check_object(L, 2, &arg1, "cc.AffineTransform"); // cocos2d::AffineTransform boneDataTransform - self->boneDataTransform = arg1; + self->boneDataTransform = *arg1; olua_endinvoke(L); @@ -7922,8 +8173,7 @@ static int _cocostudio_BoneData_parentName(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_BoneData(lua_State *L) +static int _ccs_BoneData(lua_State *L) { oluacls_class(L, "ccs.BoneData"); oluacls_func(L, "addDisplayData", _cocostudio_BoneData_addDisplayData); @@ -7938,6 +8188,16 @@ OLUA_LIB int luaopen_cocostudio_BoneData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_BoneData(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::BoneData"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_CocoLoader___gc(lua_State *L) @@ -7964,8 +8224,7 @@ static int _cocostudio_CocoLoader___olua_move(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_CocoLoader(lua_State *L) +static int _ccs_CocoLoader(lua_State *L) { oluacls_class(L, "ccs.CocoLoader"); oluacls_func(L, "__gc", _cocostudio_CocoLoader___gc); @@ -7973,6 +8232,16 @@ OLUA_LIB int luaopen_cocostudio_CocoLoader(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_CocoLoader(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::CocoLoader"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ColliderBody_getCalculatedVertexList(lua_State *L) @@ -8029,8 +8298,7 @@ static int _cocostudio_ColliderBody_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ColliderBody(lua_State *L) +static int _ccs_ColliderBody(lua_State *L) { oluacls_class(L, "ccs.ColliderBody"); oluacls_func(L, "getCalculatedVertexList", _cocostudio_ColliderBody_getCalculatedVertexList); @@ -8041,6 +8309,16 @@ OLUA_LIB int luaopen_cocostudio_ColliderBody(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ColliderBody(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ColliderBody"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ColliderDetector_addContourData(lua_State *L) @@ -8344,8 +8622,7 @@ static int _cocostudio_ColliderDetector_updateTransform(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ColliderDetector(lua_State *L) +static int _ccs_ColliderDetector(lua_State *L) { oluacls_class(L, "ccs.ColliderDetector"); oluacls_func(L, "addContourData", _cocostudio_ColliderDetector_addContourData); @@ -8367,6 +8644,16 @@ OLUA_LIB int luaopen_cocostudio_ColliderDetector(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ColliderDetector(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ColliderDetector"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ColliderFilter___gc(lua_State *L) @@ -8393,8 +8680,7 @@ static int _cocostudio_ColliderFilter___olua_move(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ColliderFilter(lua_State *L) +static int _ccs_ColliderFilter(lua_State *L) { oluacls_class(L, "ccs.ColliderFilter"); oluacls_func(L, "__gc", _cocostudio_ColliderFilter___gc); @@ -8402,6 +8688,16 @@ OLUA_LIB int luaopen_cocostudio_ColliderFilter(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ColliderFilter(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ColliderFilter"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ComAttribute_create(lua_State *L) @@ -8795,8 +9091,7 @@ static int _cocostudio_ComAttribute_setString(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ComAttribute(lua_State *L) +static int _ccs_ComAttribute(lua_State *L) { oluacls_class(L, "ccs.ComAttribute"); oluacls_func(L, "create", _cocostudio_ComAttribute_create); @@ -8815,6 +9110,16 @@ OLUA_LIB int luaopen_cocostudio_ComAttribute(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ComAttribute(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ComAttribute"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ComAudio_as(lua_State *L) @@ -9533,8 +9838,7 @@ static int _cocostudio_ComAudio_willPlayBackgroundMusic(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ComAudio(lua_State *L) +static int _ccs_ComAudio(lua_State *L) { oluacls_class(L, "ccs.ComAudio"); oluacls_func(L, "as", _cocostudio_ComAudio_as); @@ -9578,6 +9882,16 @@ OLUA_LIB int luaopen_cocostudio_ComAudio(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ComAudio(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ComAudio"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ComController_as(lua_State *L) @@ -10052,8 +10366,7 @@ static int _cocostudio_ComController_setTouchPriority(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ComController(lua_State *L) +static int _ccs_ComController(lua_State *L) { oluacls_class(L, "ccs.ComController"); oluacls_func(L, "as", _cocostudio_ComController_as); @@ -10090,6 +10403,16 @@ OLUA_LIB int luaopen_cocostudio_ComController(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ComController(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ComController"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ComRender_create$1(lua_State *L) @@ -10248,8 +10571,7 @@ static int _cocostudio_ComRender_setNode(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ComRender(lua_State *L) +static int _ccs_ComRender(lua_State *L) { oluacls_class(L, "ccs.ComRender"); oluacls_func(L, "create", _cocostudio_ComRender_create); @@ -10262,9 +10584,19 @@ OLUA_LIB int luaopen_cocostudio_ComRender(lua_State *L) return 1; } -OLUA_END_DECLS -static int _cocostudio_ContourData_addVertex(lua_State *L) +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ComRender(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ComRender"); + } + return 1; +} +OLUA_END_DECLS + +static int _cocostudio_ContourData_addVertex(lua_State *L) { olua_startinvoke(L); @@ -10386,8 +10718,7 @@ static int _cocostudio_ContourData_vertexList(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ContourData(lua_State *L) +static int _ccs_ContourData(lua_State *L) { oluacls_class(L, "ccs.ContourData"); oluacls_func(L, "addVertex", _cocostudio_ContourData_addVertex); @@ -10398,6 +10729,16 @@ OLUA_LIB int luaopen_cocostudio_ContourData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_ContourData(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ContourData"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_DataReaderHelper___gc(lua_State *L) @@ -10546,8 +10887,7 @@ static int _cocostudio_DataReaderHelper_setPositionReadScale(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_DataReaderHelper(lua_State *L) +static int _ccs_DataReaderHelper(lua_State *L) { oluacls_class(L, "ccs.DataReaderHelper"); oluacls_func(L, "__gc", _cocostudio_DataReaderHelper___gc); @@ -10565,6 +10905,16 @@ OLUA_LIB int luaopen_cocostudio_DataReaderHelper(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_DataReaderHelper(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::DataReaderHelper"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_DecorativeDisplay_create(lua_State *L) @@ -10716,8 +11066,7 @@ static int _cocostudio_DecorativeDisplay_setDisplayData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_DecorativeDisplay(lua_State *L) +static int _ccs_DecorativeDisplay(lua_State *L) { oluacls_class(L, "ccs.DecorativeDisplay"); oluacls_func(L, "create", _cocostudio_DecorativeDisplay_create); @@ -10735,6 +11084,16 @@ OLUA_LIB int luaopen_cocostudio_DecorativeDisplay(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_DecorativeDisplay(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::DecorativeDisplay"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_DisplayFactory___gc(lua_State *L) @@ -10995,8 +11354,7 @@ static int _cocostudio_DisplayFactory_updateParticleDisplay(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_DisplayFactory(lua_State *L) +static int _ccs_DisplayFactory(lua_State *L) { oluacls_class(L, "ccs.DisplayFactory"); oluacls_func(L, "__gc", _cocostudio_DisplayFactory___gc); @@ -11016,6 +11374,16 @@ OLUA_LIB int luaopen_cocostudio_DisplayFactory(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_DisplayFactory(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::DisplayFactory"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_DisplayManager_addDisplay$1(lua_State *L) @@ -11530,8 +11898,7 @@ static int _cocostudio_DisplayManager_setVisible(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_DisplayManager(lua_State *L) +static int _ccs_DisplayManager(lua_State *L) { oluacls_class(L, "ccs.DisplayManager"); oluacls_func(L, "addDisplay", _cocostudio_DisplayManager_addDisplay); @@ -11572,6 +11939,16 @@ OLUA_LIB int luaopen_cocostudio_DisplayManager(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_DisplayManager(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::DisplayManager"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_FrameData_blendFunc$1(lua_State *L) @@ -11596,13 +11973,13 @@ static int _cocostudio_FrameData_blendFunc$2(lua_State *L) olua_startinvoke(L); cocostudio::FrameData *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "ccs.FrameData"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // cocos2d::BlendFunc blendFunc - self->blendFunc = arg1; + self->blendFunc = *arg1; olua_endinvoke(L); @@ -12273,8 +12650,7 @@ static int _cocostudio_FrameData_tweenEasing(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_FrameData(lua_State *L) +static int _ccs_FrameData(lua_State *L) { oluacls_class(L, "ccs.FrameData"); oluacls_func(L, "create", _cocostudio_FrameData_create); @@ -12294,6 +12670,16 @@ OLUA_LIB int luaopen_cocostudio_FrameData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_FrameData(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::FrameData"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_GUIReader_destroyInstance(lua_State *L) @@ -12400,14 +12786,14 @@ static int _cocostudio_GUIReader_storeFileDesignSize(lua_State *L) cocostudio::GUIReader *self = nullptr; const char *arg1 = nullptr; /** fileName */ - cocos2d::Size arg2; /** size */ + cocos2d::Size *arg2; /** size */ olua_to_object(L, 1, &self, "ccs.GUIReader"); olua_check_string(L, 2, &arg1); olua_check_object(L, 3, &arg2, "cc.Size"); // void storeFileDesignSize(const char *fileName, const cocos2d::Size &size) - self->storeFileDesignSize(arg1, arg2); + self->storeFileDesignSize(arg1, *arg2); olua_endinvoke(L); @@ -12452,8 +12838,7 @@ static int _cocostudio_GUIReader_widgetFromJsonFile(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_GUIReader(lua_State *L) +static int _ccs_GUIReader(lua_State *L) { oluacls_class(L, "ccs.GUIReader"); oluacls_func(L, "destroyInstance", _cocostudio_GUIReader_destroyInstance); @@ -12470,6 +12855,16 @@ OLUA_LIB int luaopen_cocostudio_GUIReader(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_GUIReader(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::GUIReader"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_InputDelegate___gc(lua_State *L) @@ -12914,8 +13309,7 @@ static int _cocostudio_InputDelegate_setTouchPriority(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_InputDelegate(lua_State *L) +static int _ccs_InputDelegate(lua_State *L) { oluacls_class(L, "ccs.InputDelegate"); oluacls_func(L, "__gc", _cocostudio_InputDelegate___gc); @@ -12950,6 +13344,16 @@ OLUA_LIB int luaopen_cocostudio_InputDelegate(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_InputDelegate(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::InputDelegate"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_MovementBoneData_addFrameData(lua_State *L) @@ -13317,8 +13721,7 @@ static int _cocostudio_MovementBoneData_scale(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_MovementBoneData(lua_State *L) +static int _ccs_MovementBoneData(lua_State *L) { oluacls_class(L, "ccs.MovementBoneData"); oluacls_func(L, "addFrameData", _cocostudio_MovementBoneData_addFrameData); @@ -13334,6 +13737,16 @@ OLUA_LIB int luaopen_cocostudio_MovementBoneData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_MovementBoneData(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::MovementBoneData"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_MovementData_addMovementBoneData(lua_State *L) @@ -13854,8 +14267,7 @@ static int _cocostudio_MovementData_tweenEasing(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_MovementData(lua_State *L) +static int _ccs_MovementData(lua_State *L) { oluacls_class(L, "ccs.MovementData"); oluacls_func(L, "addMovementBoneData", _cocostudio_MovementData_addMovementBoneData); @@ -13873,6 +14285,16 @@ OLUA_LIB int luaopen_cocostudio_MovementData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_MovementData(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::MovementData"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_ParticleDisplayData_create(lua_State *L) @@ -13902,8 +14324,7 @@ static int _cocostudio_ParticleDisplayData_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_ParticleDisplayData(lua_State *L) +static int _ccs_ParticleDisplayData(lua_State *L) { oluacls_class(L, "ccs.ParticleDisplayData"); oluacls_func(L, "create", _cocostudio_ParticleDisplayData_create); @@ -13911,10 +14332,19 @@ OLUA_LIB int luaopen_cocostudio_ParticleDisplayData(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_SceneReader_AttachComponentType(lua_State *L) +OLUA_LIB int luaopen_ccs_ParticleDisplayData(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::ParticleDisplayData"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccs_SceneReader_AttachComponentType(lua_State *L) { oluacls_class(L, "ccs.SceneReader.AttachComponentType"); oluacls_func(L, "__index", olua_indexerror); @@ -13925,6 +14355,16 @@ OLUA_LIB int luaopen_cocostudio_SceneReader_AttachComponentType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_SceneReader_AttachComponentType(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::SceneReader::AttachComponentType"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_SceneReader___gc(lua_State *L) @@ -14120,7 +14560,7 @@ static int _cocostudio_SceneReader_setTarget(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *arg1, void *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *cb_arg1, void *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -14128,8 +14568,8 @@ static int _cocostudio_SceneReader_setTarget(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "cc.Ref"); - olua_push_object(L, arg2, "void *"); + olua_push_object(L, cb_arg1, "cc.Ref"); + olua_push_object(L, cb_arg2, "void *"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -14152,8 +14592,7 @@ static int _cocostudio_SceneReader_setTarget(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_SceneReader(lua_State *L) +static int _ccs_SceneReader(lua_State *L) { oluacls_class(L, "ccs.SceneReader"); oluacls_func(L, "__gc", _cocostudio_SceneReader___gc); @@ -14171,6 +14610,16 @@ OLUA_LIB int luaopen_cocostudio_SceneReader(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_SceneReader(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::SceneReader"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_Skin_create$1(lua_State *L) @@ -14346,13 +14795,13 @@ static int _cocostudio_Skin_setSkinData(lua_State *L) olua_startinvoke(L); cocostudio::Skin *self = nullptr; - cocostudio::BaseData arg1; /** data */ + cocostudio::BaseData *arg1; /** data */ olua_to_object(L, 1, &self, "ccs.Skin"); olua_check_object(L, 2, &arg1, "ccs.BaseData"); // void setSkinData(const cocostudio::BaseData &data) - self->setSkinData(arg1); + self->setSkinData(*arg1); olua_endinvoke(L); @@ -14375,8 +14824,7 @@ static int _cocostudio_Skin_updateArmatureTransform(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_Skin(lua_State *L) +static int _ccs_Skin(lua_State *L) { oluacls_class(L, "ccs.Skin"); oluacls_func(L, "create", _cocostudio_Skin_create); @@ -14396,6 +14844,16 @@ OLUA_LIB int luaopen_cocostudio_Skin(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_Skin(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::Skin"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_SpriteDisplayData_create(lua_State *L) @@ -14447,13 +14905,13 @@ static int _cocostudio_SpriteDisplayData_skinData$2(lua_State *L) olua_startinvoke(L); cocostudio::SpriteDisplayData *self = nullptr; - cocostudio::BaseData arg1; /** skinData */ + cocostudio::BaseData *arg1; /** skinData */ olua_to_object(L, 1, &self, "ccs.SpriteDisplayData"); olua_check_object(L, 2, &arg1, "ccs.BaseData"); // cocostudio::BaseData skinData - self->skinData = arg1; + self->skinData = *arg1; olua_endinvoke(L); @@ -14481,8 +14939,7 @@ static int _cocostudio_SpriteDisplayData_skinData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_SpriteDisplayData(lua_State *L) +static int _ccs_SpriteDisplayData(lua_State *L) { oluacls_class(L, "ccs.SpriteDisplayData"); oluacls_func(L, "create", _cocostudio_SpriteDisplayData_create); @@ -14491,6 +14948,16 @@ OLUA_LIB int luaopen_cocostudio_SpriteDisplayData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_SpriteDisplayData(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::SpriteDisplayData"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_SpriteFrameCacheHelper___olua_move(lua_State *L) @@ -14568,8 +15035,7 @@ static int _cocostudio_SpriteFrameCacheHelper_removeSpriteFrameFromFile(lua_Stat return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_SpriteFrameCacheHelper(lua_State *L) +static int _ccs_SpriteFrameCacheHelper(lua_State *L) { oluacls_class(L, "ccs.SpriteFrameCacheHelper"); oluacls_func(L, "__olua_move", _cocostudio_SpriteFrameCacheHelper___olua_move); @@ -14581,6 +15047,16 @@ OLUA_LIB int luaopen_cocostudio_SpriteFrameCacheHelper(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_SpriteFrameCacheHelper(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::SpriteFrameCacheHelper"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_TextureData_addContourData(lua_State *L) @@ -15004,8 +15480,7 @@ static int _cocostudio_TextureData_width(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_TextureData(lua_State *L) +static int _ccs_TextureData(lua_State *L) { oluacls_class(L, "ccs.TextureData"); oluacls_func(L, "addContourData", _cocostudio_TextureData_addContourData); @@ -15022,6 +15497,16 @@ OLUA_LIB int luaopen_cocostudio_TextureData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_TextureData(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::TextureData"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_Tween_create(lua_State *L) @@ -15253,8 +15738,7 @@ static int _cocostudio_Tween_setMovementBoneData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_Tween(lua_State *L) +static int _ccs_Tween(lua_State *L) { oluacls_class(L, "ccs.Tween"); oluacls_func(L, "create", _cocostudio_Tween_create); @@ -15272,10 +15756,19 @@ OLUA_LIB int luaopen_cocostudio_Tween(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_InnerActionType(lua_State *L) +OLUA_LIB int luaopen_ccs_Tween(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::Tween"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccs_timeline_InnerActionType(lua_State *L) { oluacls_class(L, "ccs.timeline.InnerActionType"); oluacls_func(L, "__index", olua_indexerror); @@ -15286,6 +15779,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_InnerActionType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_InnerActionType(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::InnerActionType"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_Frame_apply(lua_State *L) @@ -15586,8 +16089,7 @@ static int _cocostudio_timeline_Frame_setTweenType(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_Frame(lua_State *L) +static int _ccs_timeline_Frame(lua_State *L) { oluacls_class(L, "ccs.timeline.Frame"); oluacls_func(L, "apply", _cocostudio_timeline_Frame_apply); @@ -15616,6 +16118,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_Frame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_Frame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::Frame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_AlphaFrame_create(lua_State *L) @@ -15680,8 +16192,7 @@ static int _cocostudio_timeline_AlphaFrame_setAlpha(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_AlphaFrame(lua_State *L) +static int _ccs_timeline_AlphaFrame(lua_State *L) { oluacls_class(L, "ccs.timeline.AlphaFrame"); oluacls_func(L, "create", _cocostudio_timeline_AlphaFrame_create); @@ -15692,6 +16203,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_AlphaFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_AlphaFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::AlphaFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_AnchorPointFrame_create(lua_State *L) @@ -15743,21 +16264,20 @@ static int _cocostudio_timeline_AnchorPointFrame_setAnchorPoint(lua_State *L) olua_startinvoke(L); cocostudio::timeline::AnchorPointFrame *self = nullptr; - cocos2d::Point arg1; /** point */ + cocos2d::Point *arg1; /** point */ olua_to_object(L, 1, &self, "ccs.timeline.AnchorPointFrame"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setAnchorPoint(const cocos2d::Point &point) - self->setAnchorPoint(arg1); + self->setAnchorPoint(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_AnchorPointFrame(lua_State *L) +static int _ccs_timeline_AnchorPointFrame(lua_State *L) { oluacls_class(L, "ccs.timeline.AnchorPointFrame"); oluacls_func(L, "create", _cocostudio_timeline_AnchorPointFrame_create); @@ -15768,6 +16288,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_AnchorPointFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_AnchorPointFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::AnchorPointFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_BlendFuncFrame_create(lua_State *L) @@ -15819,21 +16349,20 @@ static int _cocostudio_timeline_BlendFuncFrame_setBlendFunc(lua_State *L) olua_startinvoke(L); cocostudio::timeline::BlendFuncFrame *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "ccs.timeline.BlendFuncFrame"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(cocos2d::BlendFunc blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_BlendFuncFrame(lua_State *L) +static int _ccs_timeline_BlendFuncFrame(lua_State *L) { oluacls_class(L, "ccs.timeline.BlendFuncFrame"); oluacls_func(L, "create", _cocostudio_timeline_BlendFuncFrame_create); @@ -15844,6 +16373,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_BlendFuncFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_BlendFuncFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::BlendFuncFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_ColorFrame_create(lua_State *L) @@ -15908,8 +16447,7 @@ static int _cocostudio_timeline_ColorFrame_setColor(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_ColorFrame(lua_State *L) +static int _ccs_timeline_ColorFrame(lua_State *L) { oluacls_class(L, "ccs.timeline.ColorFrame"); oluacls_func(L, "create", _cocostudio_timeline_ColorFrame_create); @@ -15920,6 +16458,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_ColorFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_ColorFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::ColorFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_EventFrame_create(lua_State *L) @@ -16000,8 +16548,7 @@ static int _cocostudio_timeline_EventFrame_setEvent(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_EventFrame(lua_State *L) +static int _ccs_timeline_EventFrame(lua_State *L) { oluacls_class(L, "ccs.timeline.EventFrame"); oluacls_func(L, "create", _cocostudio_timeline_EventFrame_create); @@ -16013,6 +16560,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_EventFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_EventFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::EventFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_InnerActionFrame_create(lua_State *L) @@ -16218,8 +16775,7 @@ static int _cocostudio_timeline_InnerActionFrame_setStartFrameIndex(lua_State *L return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_InnerActionFrame(lua_State *L) +static int _ccs_timeline_InnerActionFrame(lua_State *L) { oluacls_class(L, "ccs.timeline.InnerActionFrame"); oluacls_func(L, "create", _cocostudio_timeline_InnerActionFrame_create); @@ -16242,6 +16798,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_InnerActionFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_InnerActionFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::InnerActionFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_PlayableFrame_create(lua_State *L) @@ -16306,8 +16872,7 @@ static int _cocostudio_timeline_PlayableFrame_setPlayableAct(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_PlayableFrame(lua_State *L) +static int _ccs_timeline_PlayableFrame(lua_State *L) { oluacls_class(L, "ccs.timeline.PlayableFrame"); oluacls_func(L, "create", _cocostudio_timeline_PlayableFrame_create); @@ -16319,6 +16884,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_PlayableFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_PlayableFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::PlayableFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_PositionFrame_create(lua_State *L) @@ -16404,13 +16979,13 @@ static int _cocostudio_timeline_PositionFrame_setPosition(lua_State *L) olua_startinvoke(L); cocostudio::timeline::PositionFrame *self = nullptr; - cocos2d::Point arg1; /** position */ + cocos2d::Point *arg1; /** position */ olua_to_object(L, 1, &self, "ccs.timeline.PositionFrame"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setPosition(const cocos2d::Point &position) - self->setPosition(arg1); + self->setPosition(*arg1); olua_endinvoke(L); @@ -16453,8 +17028,7 @@ static int _cocostudio_timeline_PositionFrame_setY(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_PositionFrame(lua_State *L) +static int _ccs_timeline_PositionFrame(lua_State *L) { oluacls_class(L, "ccs.timeline.PositionFrame"); oluacls_func(L, "create", _cocostudio_timeline_PositionFrame_create); @@ -16471,6 +17045,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_PositionFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_PositionFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::PositionFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_RotationFrame_create(lua_State *L) @@ -16535,8 +17119,7 @@ static int _cocostudio_timeline_RotationFrame_setRotation(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_RotationFrame(lua_State *L) +static int _ccs_timeline_RotationFrame(lua_State *L) { oluacls_class(L, "ccs.timeline.RotationFrame"); oluacls_func(L, "create", _cocostudio_timeline_RotationFrame_create); @@ -16547,6 +17130,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_RotationFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_RotationFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::RotationFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_SkewFrame_create(lua_State *L) @@ -16646,8 +17239,7 @@ static int _cocostudio_timeline_SkewFrame_setSkewY(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_SkewFrame(lua_State *L) +static int _ccs_timeline_SkewFrame(lua_State *L) { oluacls_class(L, "ccs.timeline.SkewFrame"); oluacls_func(L, "create", _cocostudio_timeline_SkewFrame_create); @@ -16661,6 +17253,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_SkewFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_SkewFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::SkewFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_RotationSkewFrame_create(lua_State *L) @@ -16690,8 +17292,7 @@ static int _cocostudio_timeline_RotationSkewFrame_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_RotationSkewFrame(lua_State *L) +static int _ccs_timeline_RotationSkewFrame(lua_State *L) { oluacls_class(L, "ccs.timeline.RotationSkewFrame"); oluacls_func(L, "create", _cocostudio_timeline_RotationSkewFrame_create); @@ -16699,6 +17300,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_RotationSkewFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_RotationSkewFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::RotationSkewFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_ScaleFrame_create(lua_State *L) @@ -16816,8 +17427,7 @@ static int _cocostudio_timeline_ScaleFrame_setScaleY(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_ScaleFrame(lua_State *L) +static int _ccs_timeline_ScaleFrame(lua_State *L) { oluacls_class(L, "ccs.timeline.ScaleFrame"); oluacls_func(L, "create", _cocostudio_timeline_ScaleFrame_create); @@ -16832,6 +17442,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_ScaleFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_ScaleFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::ScaleFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_TextureFrame_create(lua_State *L) @@ -16896,8 +17516,7 @@ static int _cocostudio_timeline_TextureFrame_setTextureName(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_TextureFrame(lua_State *L) +static int _ccs_timeline_TextureFrame(lua_State *L) { oluacls_class(L, "ccs.timeline.TextureFrame"); oluacls_func(L, "create", _cocostudio_timeline_TextureFrame_create); @@ -16908,6 +17527,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_TextureFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_TextureFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::TextureFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_VisibleFrame_create(lua_State *L) @@ -16972,8 +17601,7 @@ static int _cocostudio_timeline_VisibleFrame_setVisible(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_VisibleFrame(lua_State *L) +static int _ccs_timeline_VisibleFrame(lua_State *L) { oluacls_class(L, "ccs.timeline.VisibleFrame"); oluacls_func(L, "create", _cocostudio_timeline_VisibleFrame_create); @@ -16984,6 +17612,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_VisibleFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_VisibleFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::VisibleFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_ZOrderFrame_create(lua_State *L) @@ -17048,8 +17686,7 @@ static int _cocostudio_timeline_ZOrderFrame_setZOrder(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_ZOrderFrame(lua_State *L) +static int _ccs_timeline_ZOrderFrame(lua_State *L) { oluacls_class(L, "ccs.timeline.ZOrderFrame"); oluacls_func(L, "create", _cocostudio_timeline_ZOrderFrame_create); @@ -17060,6 +17697,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_ZOrderFrame(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_ZOrderFrame(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::ZOrderFrame"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_ActionTimelineCache___gc(lua_State *L) @@ -17357,8 +18004,7 @@ static int _cocostudio_timeline_ActionTimelineCache_removeAction(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_ActionTimelineCache(lua_State *L) +static int _ccs_timeline_ActionTimelineCache(lua_State *L) { oluacls_class(L, "ccs.timeline.ActionTimelineCache"); oluacls_func(L, "__gc", _cocostudio_timeline_ActionTimelineCache___gc); @@ -17382,6 +18028,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_ActionTimelineCache(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_ActionTimelineCache(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::ActionTimelineCache"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_ActionTimelineData_create(lua_State *L) @@ -17469,8 +18125,7 @@ static int _cocostudio_timeline_ActionTimelineData_setActionTag(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_ActionTimelineData(lua_State *L) +static int _ccs_timeline_ActionTimelineData(lua_State *L) { oluacls_class(L, "ccs.timeline.ActionTimelineData"); oluacls_func(L, "create", _cocostudio_timeline_ActionTimelineData_create); @@ -17482,6 +18137,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_ActionTimelineData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_ActionTimelineData(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::ActionTimelineData"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_ActionTimelineNode_create(lua_State *L) @@ -17658,8 +18323,7 @@ static int _cocostudio_timeline_ActionTimelineNode_setRoot(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_ActionTimelineNode(lua_State *L) +static int _ccs_timeline_ActionTimelineNode(lua_State *L) { oluacls_class(L, "ccs.timeline.ActionTimelineNode"); oluacls_func(L, "create", _cocostudio_timeline_ActionTimelineNode_create); @@ -17674,6 +18338,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_ActionTimelineNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_ActionTimelineNode(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::ActionTimelineNode"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_BoneNode_addSkin$1(lua_State *L) @@ -18138,13 +18812,13 @@ static int _cocostudio_timeline_BoneNode_setBlendFunc(lua_State *L) olua_startinvoke(L); cocostudio::timeline::BoneNode *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "ccs.timeline.BoneNode"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -18241,8 +18915,7 @@ static int _cocostudio_timeline_BoneNode_setLocalZOrder(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_BoneNode(lua_State *L) +static int _ccs_timeline_BoneNode(lua_State *L) { oluacls_class(L, "ccs.timeline.BoneNode"); oluacls_func(L, "addSkin", _cocostudio_timeline_BoneNode_addSkin); @@ -18283,6 +18956,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_BoneNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_BoneNode(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::BoneNode"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_SkeletonNode_addSkinGroup(lua_State *L) @@ -18440,8 +19123,7 @@ static int _cocostudio_timeline_SkeletonNode_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_SkeletonNode(lua_State *L) +static int _ccs_timeline_SkeletonNode(lua_State *L) { oluacls_class(L, "ccs.timeline.SkeletonNode"); oluacls_func(L, "addSkinGroup", _cocostudio_timeline_SkeletonNode_addSkinGroup); @@ -18454,6 +19136,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_SkeletonNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_SkeletonNode(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::SkeletonNode"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_Timeline_addFrame(lua_State *L) @@ -18740,8 +19432,7 @@ static int _cocostudio_timeline_Timeline_stepToFrame(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_Timeline(lua_State *L) +static int _ccs_timeline_Timeline(lua_State *L) { oluacls_class(L, "ccs.timeline.Timeline"); oluacls_func(L, "addFrame", _cocostudio_timeline_Timeline_addFrame); @@ -18766,6 +19457,16 @@ OLUA_LIB int luaopen_cocostudio_timeline_Timeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_Timeline(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::Timeline"); + } + return 1; +} OLUA_END_DECLS static int _cocostudio_timeline_ActionTimeline_IsAnimationInfoExists(lua_State *L) @@ -18792,7 +19493,7 @@ static int _cocostudio_timeline_ActionTimeline_addAnimationInfo(lua_State *L) olua_startinvoke(L); cocostudio::timeline::ActionTimeline *self = nullptr; - cocostudio::timeline::AnimationInfo arg1; /** animationInfo */ + cocostudio::timeline::AnimationInfo *arg1; /** animationInfo */ olua_to_object(L, 1, &self, "ccs.timeline.ActionTimeline"); olua_check_object(L, 2, &arg1, "ccs.timeline.AnimationInfo"); @@ -18818,7 +19519,7 @@ static int _cocostudio_timeline_ActionTimeline_addAnimationInfo(lua_State *L) } // void addAnimationInfo(const cocostudio::timeline::AnimationInfo &animationInfo) - self->addAnimationInfo(arg1); + self->addAnimationInfo(*arg1); olua_endinvoke(L); @@ -19520,7 +20221,7 @@ static int _cocostudio_timeline_ActionTimeline_setFrameEventCallFunc(lua_State * if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocostudio::timeline::Frame *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](cocostudio::timeline::Frame *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -19528,7 +20229,7 @@ static int _cocostudio_timeline_ActionTimeline_setFrameEventCallFunc(lua_State * int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "ccs.timeline.Frame"); + olua_push_object(L, cb_arg1, "ccs.timeline.Frame"); olua_disable_objpool(L); // insert code before call @@ -19638,8 +20339,7 @@ static int _cocostudio_timeline_ActionTimeline_start(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocostudio_timeline_ActionTimeline(lua_State *L) +static int _ccs_timeline_ActionTimeline(lua_State *L) { oluacls_class(L, "ccs.timeline.ActionTimeline"); oluacls_func(L, "IsAnimationInfoExists", _cocostudio_timeline_ActionTimeline_IsAnimationInfoExists); @@ -19686,90 +20386,100 @@ OLUA_LIB int luaopen_cocostudio_timeline_ActionTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccs_timeline_ActionTimeline(lua_State *L) +{ + olua_require(L, "cocos2d_studio", luaopen_cocos2d_studio); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocostudio::timeline::ActionTimeline"); + } + return 1; +} OLUA_END_DECLS OLUA_BEGIN_DECLS OLUA_LIB int luaopen_cocos2d_studio(lua_State *L) { - olua_require(L, "ccs.timeline.AnimationInfo", luaopen_cocostudio_timeline_AnimationInfo); - olua_require(L, "cc.CSLoader", luaopen_cocos2d_CSLoader); - olua_require(L, "ccs.MovementEventType", luaopen_cocostudio_MovementEventType); - olua_require(L, "ccs.DisplayType", luaopen_cocostudio_DisplayType); - olua_require(L, "ccs.ActionFrame", luaopen_cocostudio_ActionFrame); - olua_require(L, "ccs.ActionFadeFrame", luaopen_cocostudio_ActionFadeFrame); - olua_require(L, "ccs.ActionFrameEasing", luaopen_cocostudio_ActionFrameEasing); - olua_require(L, "ccs.ActionMoveFrame", luaopen_cocostudio_ActionMoveFrame); - olua_require(L, "ccs.ActionRotationFrame", luaopen_cocostudio_ActionRotationFrame); - olua_require(L, "ccs.ActionScaleFrame", luaopen_cocostudio_ActionScaleFrame); - olua_require(L, "ccs.ActionTintFrame", luaopen_cocostudio_ActionTintFrame); - olua_require(L, "ccs.AnimationData", luaopen_cocostudio_AnimationData); - olua_require(L, "ccs.Armature", luaopen_cocostudio_Armature); - olua_require(L, "ccs.ProcessBase", luaopen_cocostudio_ProcessBase); - olua_require(L, "ccs.ActionManagerEx", luaopen_cocostudio_ActionManagerEx); - olua_require(L, "ccs.ActionNode", luaopen_cocostudio_ActionNode); - olua_require(L, "ccs.ActionObject", luaopen_cocostudio_ActionObject); - olua_require(L, "ccs.ArmatureAnimation", luaopen_cocostudio_ArmatureAnimation); - olua_require(L, "ccs.ArmatureData", luaopen_cocostudio_ArmatureData); - olua_require(L, "ccs.ArmatureDataManager", luaopen_cocostudio_ArmatureDataManager); - olua_require(L, "ccs.DisplayData", luaopen_cocostudio_DisplayData); - olua_require(L, "ccs.ArmatureDisplayData", luaopen_cocostudio_ArmatureDisplayData); - olua_require(L, "ccs.ArmatureMovementDispatcher", luaopen_cocostudio_ArmatureMovementDispatcher); - olua_require(L, "ccs.BaseData", luaopen_cocostudio_BaseData); - olua_require(L, "ccs.BaseTriggerAction", luaopen_cocostudio_BaseTriggerAction); - olua_require(L, "ccs.BaseTriggerCondition", luaopen_cocostudio_BaseTriggerCondition); - olua_require(L, "ccs.BatchNode", luaopen_cocostudio_BatchNode); - olua_require(L, "ccs.Bone", luaopen_cocostudio_Bone); - olua_require(L, "ccs.BoneData", luaopen_cocostudio_BoneData); - olua_require(L, "ccs.CocoLoader", luaopen_cocostudio_CocoLoader); - olua_require(L, "ccs.ColliderBody", luaopen_cocostudio_ColliderBody); - olua_require(L, "ccs.ColliderDetector", luaopen_cocostudio_ColliderDetector); - olua_require(L, "ccs.ColliderFilter", luaopen_cocostudio_ColliderFilter); - olua_require(L, "ccs.ComAttribute", luaopen_cocostudio_ComAttribute); - olua_require(L, "ccs.ComAudio", luaopen_cocostudio_ComAudio); - olua_require(L, "ccs.ComController", luaopen_cocostudio_ComController); - olua_require(L, "ccs.ComRender", luaopen_cocostudio_ComRender); - olua_require(L, "ccs.ContourData", luaopen_cocostudio_ContourData); - olua_require(L, "ccs.DataReaderHelper", luaopen_cocostudio_DataReaderHelper); - olua_require(L, "ccs.DecorativeDisplay", luaopen_cocostudio_DecorativeDisplay); - olua_require(L, "ccs.DisplayFactory", luaopen_cocostudio_DisplayFactory); - olua_require(L, "ccs.DisplayManager", luaopen_cocostudio_DisplayManager); - olua_require(L, "ccs.FrameData", luaopen_cocostudio_FrameData); - olua_require(L, "ccs.GUIReader", luaopen_cocostudio_GUIReader); - olua_require(L, "ccs.InputDelegate", luaopen_cocostudio_InputDelegate); - olua_require(L, "ccs.MovementBoneData", luaopen_cocostudio_MovementBoneData); - olua_require(L, "ccs.MovementData", luaopen_cocostudio_MovementData); - olua_require(L, "ccs.ParticleDisplayData", luaopen_cocostudio_ParticleDisplayData); - olua_require(L, "ccs.SceneReader.AttachComponentType", luaopen_cocostudio_SceneReader_AttachComponentType); - olua_require(L, "ccs.SceneReader", luaopen_cocostudio_SceneReader); - olua_require(L, "ccs.Skin", luaopen_cocostudio_Skin); - olua_require(L, "ccs.SpriteDisplayData", luaopen_cocostudio_SpriteDisplayData); - olua_require(L, "ccs.SpriteFrameCacheHelper", luaopen_cocostudio_SpriteFrameCacheHelper); - olua_require(L, "ccs.TextureData", luaopen_cocostudio_TextureData); - olua_require(L, "ccs.Tween", luaopen_cocostudio_Tween); - olua_require(L, "ccs.timeline.InnerActionType", luaopen_cocostudio_timeline_InnerActionType); - olua_require(L, "ccs.timeline.Frame", luaopen_cocostudio_timeline_Frame); - olua_require(L, "ccs.timeline.AlphaFrame", luaopen_cocostudio_timeline_AlphaFrame); - olua_require(L, "ccs.timeline.AnchorPointFrame", luaopen_cocostudio_timeline_AnchorPointFrame); - olua_require(L, "ccs.timeline.BlendFuncFrame", luaopen_cocostudio_timeline_BlendFuncFrame); - olua_require(L, "ccs.timeline.ColorFrame", luaopen_cocostudio_timeline_ColorFrame); - olua_require(L, "ccs.timeline.EventFrame", luaopen_cocostudio_timeline_EventFrame); - olua_require(L, "ccs.timeline.InnerActionFrame", luaopen_cocostudio_timeline_InnerActionFrame); - olua_require(L, "ccs.timeline.PlayableFrame", luaopen_cocostudio_timeline_PlayableFrame); - olua_require(L, "ccs.timeline.PositionFrame", luaopen_cocostudio_timeline_PositionFrame); - olua_require(L, "ccs.timeline.RotationFrame", luaopen_cocostudio_timeline_RotationFrame); - olua_require(L, "ccs.timeline.SkewFrame", luaopen_cocostudio_timeline_SkewFrame); - olua_require(L, "ccs.timeline.RotationSkewFrame", luaopen_cocostudio_timeline_RotationSkewFrame); - olua_require(L, "ccs.timeline.ScaleFrame", luaopen_cocostudio_timeline_ScaleFrame); - olua_require(L, "ccs.timeline.TextureFrame", luaopen_cocostudio_timeline_TextureFrame); - olua_require(L, "ccs.timeline.VisibleFrame", luaopen_cocostudio_timeline_VisibleFrame); - olua_require(L, "ccs.timeline.ZOrderFrame", luaopen_cocostudio_timeline_ZOrderFrame); - olua_require(L, "ccs.timeline.ActionTimelineCache", luaopen_cocostudio_timeline_ActionTimelineCache); - olua_require(L, "ccs.timeline.ActionTimelineData", luaopen_cocostudio_timeline_ActionTimelineData); - olua_require(L, "ccs.timeline.ActionTimelineNode", luaopen_cocostudio_timeline_ActionTimelineNode); - olua_require(L, "ccs.timeline.BoneNode", luaopen_cocostudio_timeline_BoneNode); - olua_require(L, "ccs.timeline.SkeletonNode", luaopen_cocostudio_timeline_SkeletonNode); - olua_require(L, "ccs.timeline.Timeline", luaopen_cocostudio_timeline_Timeline); - olua_require(L, "ccs.timeline.ActionTimeline", luaopen_cocostudio_timeline_ActionTimeline); + olua_require(L, "ccs.timeline.AnimationInfo", _ccs_timeline_AnimationInfo); + olua_require(L, "cc.CSLoader", _cc_CSLoader); + olua_require(L, "ccs.MovementEventType", _ccs_MovementEventType); + olua_require(L, "ccs.DisplayType", _ccs_DisplayType); + olua_require(L, "ccs.ActionFrame", _ccs_ActionFrame); + olua_require(L, "ccs.ActionFadeFrame", _ccs_ActionFadeFrame); + olua_require(L, "ccs.ActionFrameEasing", _ccs_ActionFrameEasing); + olua_require(L, "ccs.ActionMoveFrame", _ccs_ActionMoveFrame); + olua_require(L, "ccs.ActionRotationFrame", _ccs_ActionRotationFrame); + olua_require(L, "ccs.ActionScaleFrame", _ccs_ActionScaleFrame); + olua_require(L, "ccs.ActionTintFrame", _ccs_ActionTintFrame); + olua_require(L, "ccs.AnimationData", _ccs_AnimationData); + olua_require(L, "ccs.Armature", _ccs_Armature); + olua_require(L, "ccs.ProcessBase", _ccs_ProcessBase); + olua_require(L, "ccs.ActionManagerEx", _ccs_ActionManagerEx); + olua_require(L, "ccs.ActionNode", _ccs_ActionNode); + olua_require(L, "ccs.ActionObject", _ccs_ActionObject); + olua_require(L, "ccs.ArmatureAnimation", _ccs_ArmatureAnimation); + olua_require(L, "ccs.ArmatureData", _ccs_ArmatureData); + olua_require(L, "ccs.ArmatureDataManager", _ccs_ArmatureDataManager); + olua_require(L, "ccs.DisplayData", _ccs_DisplayData); + olua_require(L, "ccs.ArmatureDisplayData", _ccs_ArmatureDisplayData); + olua_require(L, "ccs.ArmatureMovementDispatcher", _ccs_ArmatureMovementDispatcher); + olua_require(L, "ccs.BaseData", _ccs_BaseData); + olua_require(L, "ccs.BaseTriggerAction", _ccs_BaseTriggerAction); + olua_require(L, "ccs.BaseTriggerCondition", _ccs_BaseTriggerCondition); + olua_require(L, "ccs.BatchNode", _ccs_BatchNode); + olua_require(L, "ccs.Bone", _ccs_Bone); + olua_require(L, "ccs.BoneData", _ccs_BoneData); + olua_require(L, "ccs.CocoLoader", _ccs_CocoLoader); + olua_require(L, "ccs.ColliderBody", _ccs_ColliderBody); + olua_require(L, "ccs.ColliderDetector", _ccs_ColliderDetector); + olua_require(L, "ccs.ColliderFilter", _ccs_ColliderFilter); + olua_require(L, "ccs.ComAttribute", _ccs_ComAttribute); + olua_require(L, "ccs.ComAudio", _ccs_ComAudio); + olua_require(L, "ccs.ComController", _ccs_ComController); + olua_require(L, "ccs.ComRender", _ccs_ComRender); + olua_require(L, "ccs.ContourData", _ccs_ContourData); + olua_require(L, "ccs.DataReaderHelper", _ccs_DataReaderHelper); + olua_require(L, "ccs.DecorativeDisplay", _ccs_DecorativeDisplay); + olua_require(L, "ccs.DisplayFactory", _ccs_DisplayFactory); + olua_require(L, "ccs.DisplayManager", _ccs_DisplayManager); + olua_require(L, "ccs.FrameData", _ccs_FrameData); + olua_require(L, "ccs.GUIReader", _ccs_GUIReader); + olua_require(L, "ccs.InputDelegate", _ccs_InputDelegate); + olua_require(L, "ccs.MovementBoneData", _ccs_MovementBoneData); + olua_require(L, "ccs.MovementData", _ccs_MovementData); + olua_require(L, "ccs.ParticleDisplayData", _ccs_ParticleDisplayData); + olua_require(L, "ccs.SceneReader.AttachComponentType", _ccs_SceneReader_AttachComponentType); + olua_require(L, "ccs.SceneReader", _ccs_SceneReader); + olua_require(L, "ccs.Skin", _ccs_Skin); + olua_require(L, "ccs.SpriteDisplayData", _ccs_SpriteDisplayData); + olua_require(L, "ccs.SpriteFrameCacheHelper", _ccs_SpriteFrameCacheHelper); + olua_require(L, "ccs.TextureData", _ccs_TextureData); + olua_require(L, "ccs.Tween", _ccs_Tween); + olua_require(L, "ccs.timeline.InnerActionType", _ccs_timeline_InnerActionType); + olua_require(L, "ccs.timeline.Frame", _ccs_timeline_Frame); + olua_require(L, "ccs.timeline.AlphaFrame", _ccs_timeline_AlphaFrame); + olua_require(L, "ccs.timeline.AnchorPointFrame", _ccs_timeline_AnchorPointFrame); + olua_require(L, "ccs.timeline.BlendFuncFrame", _ccs_timeline_BlendFuncFrame); + olua_require(L, "ccs.timeline.ColorFrame", _ccs_timeline_ColorFrame); + olua_require(L, "ccs.timeline.EventFrame", _ccs_timeline_EventFrame); + olua_require(L, "ccs.timeline.InnerActionFrame", _ccs_timeline_InnerActionFrame); + olua_require(L, "ccs.timeline.PlayableFrame", _ccs_timeline_PlayableFrame); + olua_require(L, "ccs.timeline.PositionFrame", _ccs_timeline_PositionFrame); + olua_require(L, "ccs.timeline.RotationFrame", _ccs_timeline_RotationFrame); + olua_require(L, "ccs.timeline.SkewFrame", _ccs_timeline_SkewFrame); + olua_require(L, "ccs.timeline.RotationSkewFrame", _ccs_timeline_RotationSkewFrame); + olua_require(L, "ccs.timeline.ScaleFrame", _ccs_timeline_ScaleFrame); + olua_require(L, "ccs.timeline.TextureFrame", _ccs_timeline_TextureFrame); + olua_require(L, "ccs.timeline.VisibleFrame", _ccs_timeline_VisibleFrame); + olua_require(L, "ccs.timeline.ZOrderFrame", _ccs_timeline_ZOrderFrame); + olua_require(L, "ccs.timeline.ActionTimelineCache", _ccs_timeline_ActionTimelineCache); + olua_require(L, "ccs.timeline.ActionTimelineData", _ccs_timeline_ActionTimelineData); + olua_require(L, "ccs.timeline.ActionTimelineNode", _ccs_timeline_ActionTimelineNode); + olua_require(L, "ccs.timeline.BoneNode", _ccs_timeline_BoneNode); + olua_require(L, "ccs.timeline.SkeletonNode", _ccs_timeline_SkeletonNode); + olua_require(L, "ccs.timeline.Timeline", _ccs_timeline_Timeline); + olua_require(L, "ccs.timeline.ActionTimeline", _ccs_timeline_ActionTimeline); cclua::runtime::registerFeature("cocostudio", true); diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_studio.h b/frameworks/cclua/src/lua-bindings/lua_cocos2d_studio.h index 5c6788f9..2ea4d2f0 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_studio.h +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_studio.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_COCOS2D_STUDIO_H__ #define __AUTO_GEN_LUA_COCOS2D_STUDIO_H__ diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_types.cpp b/frameworks/cclua/src/lua-bindings/lua_cocos2d_types.cpp index f8fb4fbb..a5b88c05 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_types.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_types.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_cocos2d_types.h" @@ -168,9 +168,9 @@ OLUA_LIB void olua_pack_object(lua_State *L, int idx, cocos2d::ccBezierConfig *v { idx = lua_absindex(L, idx); - cocos2d::Vec2 arg1; /** endPosition */ - cocos2d::Vec2 arg2; /** controlPoint_1 */ - cocos2d::Vec2 arg3; /** controlPoint_2 */ + cocos2d::Vec2 *arg1; /** endPosition */ + cocos2d::Vec2 *arg2; /** controlPoint_1 */ + cocos2d::Vec2 *arg3; /** controlPoint_2 */ olua_check_object(L, idx + 0, &arg1, "cc.Vec2"); value->endPosition = arg1; @@ -225,13 +225,13 @@ static int _cocos2d_Vec2_add$1(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** v */ + cocos2d::Vec2 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void add(const cocos2d::Vec2 &v) - self->add(arg1); + self->add(*arg1); olua_endinvoke(L); @@ -242,8 +242,8 @@ static int _cocos2d_Vec2_add$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** v1 */ - cocos2d::Vec2 arg2; /** v2 */ + cocos2d::Vec2 *arg1; /** v1 */ + cocos2d::Vec2 *arg2; /** v2 */ cocos2d::Vec2 *arg3 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Vec2"); @@ -251,7 +251,7 @@ static int _cocos2d_Vec2_add$2(lua_State *L) olua_check_object(L, 3, &arg3, "cc.Vec2"); // static void add(const cocos2d::Vec2 &v1, const cocos2d::Vec2 &v2, cocos2d::Vec2 *dst) - cocos2d::Vec2::add(arg1, arg2, arg3); + cocos2d::Vec2::add(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -285,14 +285,14 @@ static int _cocos2d_Vec2_angle(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** v1 */ - cocos2d::Vec2 arg2; /** v2 */ + cocos2d::Vec2 *arg1; /** v1 */ + cocos2d::Vec2 *arg2; /** v2 */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_object(L, 2, &arg2, "cc.Vec2"); // static float angle(const cocos2d::Vec2 &v1, const cocos2d::Vec2 &v2) - float ret = cocos2d::Vec2::angle(arg1, arg2); + float ret = cocos2d::Vec2::angle(*arg1, *arg2); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -305,15 +305,15 @@ static int _cocos2d_Vec2_clamp$1(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** min */ - cocos2d::Vec2 arg2; /** max */ + cocos2d::Vec2 *arg1; /** min */ + cocos2d::Vec2 *arg2; /** max */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); olua_check_object(L, 3, &arg2, "cc.Vec2"); // void clamp(const cocos2d::Vec2 &min, const cocos2d::Vec2 &max) - self->clamp(arg1, arg2); + self->clamp(*arg1, *arg2); olua_endinvoke(L); @@ -324,9 +324,9 @@ static int _cocos2d_Vec2_clamp$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** v */ - cocos2d::Vec2 arg2; /** min */ - cocos2d::Vec2 arg3; /** max */ + cocos2d::Vec2 *arg1; /** v */ + cocos2d::Vec2 *arg2; /** min */ + cocos2d::Vec2 *arg3; /** max */ cocos2d::Vec2 *arg4 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Vec2"); @@ -335,7 +335,7 @@ static int _cocos2d_Vec2_clamp$2(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec2"); // static void clamp(const cocos2d::Vec2 &v, const cocos2d::Vec2 &min, const cocos2d::Vec2 &max, cocos2d::Vec2 *dst) - cocos2d::Vec2::clamp(arg1, arg2, arg3, arg4); + cocos2d::Vec2::clamp(*arg1, *arg2, *arg3, arg4); olua_endinvoke(L); @@ -379,13 +379,13 @@ static int _cocos2d_Vec2_compOp(lua_State *L) std::string cb_tag = "compOp"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](float arg1) { + arg1 = [cb_store, cb_name, cb_ctx](float cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); float ret = 0; /** ret */ if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_number(L, arg1); + olua_push_number(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -412,13 +412,13 @@ static int _cocos2d_Vec2_cross(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** other */ + cocos2d::Vec2 *arg1; /** other */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // float cross(const cocos2d::Vec2 &other) - float ret = self->cross(arg1); + float ret = self->cross(*arg1); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -431,13 +431,13 @@ static int _cocos2d_Vec2_distance(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** v */ + cocos2d::Vec2 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // float distance(const cocos2d::Vec2 &v) - float ret = self->distance(arg1); + float ret = self->distance(*arg1); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -450,13 +450,13 @@ static int _cocos2d_Vec2_distanceSquared(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** v */ + cocos2d::Vec2 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // float distanceSquared(const cocos2d::Vec2 &v) - float ret = self->distanceSquared(arg1); + float ret = self->distanceSquared(*arg1); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -469,13 +469,13 @@ static int _cocos2d_Vec2_dot$1(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** v */ + cocos2d::Vec2 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // float dot(const cocos2d::Vec2 &v) - float ret = self->dot(arg1); + float ret = self->dot(*arg1); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -487,14 +487,14 @@ static int _cocos2d_Vec2_dot$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** v1 */ - cocos2d::Vec2 arg2; /** v2 */ + cocos2d::Vec2 *arg1; /** v1 */ + cocos2d::Vec2 *arg2; /** v2 */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_object(L, 2, &arg2, "cc.Vec2"); // static float dot(const cocos2d::Vec2 &v1, const cocos2d::Vec2 &v2) - float ret = cocos2d::Vec2::dot(arg1, arg2); + float ret = cocos2d::Vec2::dot(*arg1, *arg2); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -530,13 +530,13 @@ static int _cocos2d_Vec2_equals(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** target */ + cocos2d::Vec2 *arg1; /** target */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // bool equals(const cocos2d::Vec2 &target) - bool ret = self->equals(arg1); + bool ret = self->equals(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -566,7 +566,7 @@ static int _cocos2d_Vec2_fuzzyEquals(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** target */ + cocos2d::Vec2 *arg1; /** target */ float arg2 = 0; /** variance */ olua_to_object(L, 1, &self, "cc.Vec2"); @@ -574,7 +574,7 @@ static int _cocos2d_Vec2_fuzzyEquals(lua_State *L) olua_check_number(L, 3, &arg2); // bool fuzzyEquals(const cocos2d::Vec2 &target, float variance) - bool ret = self->fuzzyEquals(arg1, arg2); + bool ret = self->fuzzyEquals(*arg1, arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -604,13 +604,13 @@ static int _cocos2d_Vec2_getAngle$2(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** other */ + cocos2d::Vec2 *arg1; /** other */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // float getAngle(const cocos2d::Vec2 &other) - float ret = self->getAngle(arg1); + float ret = self->getAngle(*arg1); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -644,15 +644,15 @@ static int _cocos2d_Vec2_getClampPoint(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** min_inclusive */ - cocos2d::Vec2 arg2; /** max_inclusive */ + cocos2d::Vec2 *arg1; /** min_inclusive */ + cocos2d::Vec2 *arg2; /** max_inclusive */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); olua_check_object(L, 3, &arg2, "cc.Vec2"); // cocos2d::Vec2 getClampPoint(const cocos2d::Vec2 &min_inclusive, const cocos2d::Vec2 &max_inclusive) - cocos2d::Vec2 ret = self->getClampPoint(arg1, arg2); + cocos2d::Vec2 ret = self->getClampPoint(*arg1, *arg2); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -665,13 +665,13 @@ static int _cocos2d_Vec2_getDistance(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** other */ + cocos2d::Vec2 *arg1; /** other */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // float getDistance(const cocos2d::Vec2 &other) - float ret = self->getDistance(arg1); + float ret = self->getDistance(*arg1); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -684,13 +684,13 @@ static int _cocos2d_Vec2_getDistanceSq(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** other */ + cocos2d::Vec2 *arg1; /** other */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // float getDistanceSq(const cocos2d::Vec2 &other) - float ret = self->getDistanceSq(arg1); + float ret = self->getDistanceSq(*arg1); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -702,10 +702,10 @@ static int _cocos2d_Vec2_getIntersectPoint(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** A */ - cocos2d::Vec2 arg2; /** B */ - cocos2d::Vec2 arg3; /** C */ - cocos2d::Vec2 arg4; /** D */ + cocos2d::Vec2 *arg1; /** A */ + cocos2d::Vec2 *arg2; /** B */ + cocos2d::Vec2 *arg3; /** C */ + cocos2d::Vec2 *arg4; /** D */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_object(L, 2, &arg2, "cc.Vec2"); @@ -713,7 +713,7 @@ static int _cocos2d_Vec2_getIntersectPoint(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec2"); // static cocos2d::Vec2 getIntersectPoint(const cocos2d::Vec2 &A, const cocos2d::Vec2 &B, const cocos2d::Vec2 &C, const cocos2d::Vec2 &D) - cocos2d::Vec2 ret = cocos2d::Vec2::getIntersectPoint(arg1, arg2, arg3, arg4); + cocos2d::Vec2 ret = cocos2d::Vec2::getIntersectPoint(*arg1, *arg2, *arg3, *arg4); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -760,13 +760,13 @@ static int _cocos2d_Vec2_getMidpoint(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** other */ + cocos2d::Vec2 *arg1; /** other */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 getMidpoint(const cocos2d::Vec2 &other) - cocos2d::Vec2 ret = self->getMidpoint(arg1); + cocos2d::Vec2 ret = self->getMidpoint(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -829,10 +829,10 @@ static int _cocos2d_Vec2_isLineIntersect$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** A */ - cocos2d::Vec2 arg2; /** B */ - cocos2d::Vec2 arg3; /** C */ - cocos2d::Vec2 arg4; /** D */ + cocos2d::Vec2 *arg1; /** A */ + cocos2d::Vec2 *arg2; /** B */ + cocos2d::Vec2 *arg3; /** C */ + cocos2d::Vec2 *arg4; /** D */ float *arg5 = nullptr; /** S */ float *arg6 = nullptr; /** T */ @@ -844,7 +844,7 @@ static int _cocos2d_Vec2_isLineIntersect$1(lua_State *L) olua_check_pointer(L, 6, &arg6, "olua.float"); // static bool isLineIntersect(const cocos2d::Vec2 &A, const cocos2d::Vec2 &B, const cocos2d::Vec2 &C, const cocos2d::Vec2 &D, @optional float *S, @optional float *T) - bool ret = cocos2d::Vec2::isLineIntersect(arg1, arg2, arg3, arg4, arg5, arg6); + bool ret = cocos2d::Vec2::isLineIntersect(*arg1, *arg2, *arg3, *arg4, arg5, arg6); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -856,10 +856,10 @@ static int _cocos2d_Vec2_isLineIntersect$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** A */ - cocos2d::Vec2 arg2; /** B */ - cocos2d::Vec2 arg3; /** C */ - cocos2d::Vec2 arg4; /** D */ + cocos2d::Vec2 *arg1; /** A */ + cocos2d::Vec2 *arg2; /** B */ + cocos2d::Vec2 *arg3; /** C */ + cocos2d::Vec2 *arg4; /** D */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_object(L, 2, &arg2, "cc.Vec2"); @@ -867,7 +867,7 @@ static int _cocos2d_Vec2_isLineIntersect$2(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec2"); // static bool isLineIntersect(const cocos2d::Vec2 &A, const cocos2d::Vec2 &B, const cocos2d::Vec2 &C, const cocos2d::Vec2 &D) - bool ret = cocos2d::Vec2::isLineIntersect(arg1, arg2, arg3, arg4); + bool ret = cocos2d::Vec2::isLineIntersect(*arg1, *arg2, *arg3, *arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -879,10 +879,10 @@ static int _cocos2d_Vec2_isLineIntersect$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** A */ - cocos2d::Vec2 arg2; /** B */ - cocos2d::Vec2 arg3; /** C */ - cocos2d::Vec2 arg4; /** D */ + cocos2d::Vec2 *arg1; /** A */ + cocos2d::Vec2 *arg2; /** B */ + cocos2d::Vec2 *arg3; /** C */ + cocos2d::Vec2 *arg4; /** D */ float *arg5 = nullptr; /** S */ olua_check_object(L, 1, &arg1, "cc.Vec2"); @@ -892,7 +892,7 @@ static int _cocos2d_Vec2_isLineIntersect$3(lua_State *L) olua_check_pointer(L, 5, &arg5, "olua.float"); // static bool isLineIntersect(const cocos2d::Vec2 &A, const cocos2d::Vec2 &B, const cocos2d::Vec2 &C, const cocos2d::Vec2 &D, @optional float *S) - bool ret = cocos2d::Vec2::isLineIntersect(arg1, arg2, arg3, arg4, arg5); + bool ret = cocos2d::Vec2::isLineIntersect(*arg1, *arg2, *arg3, *arg4, arg5); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -934,10 +934,10 @@ static int _cocos2d_Vec2_isLineOverlap(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** A */ - cocos2d::Vec2 arg2; /** B */ - cocos2d::Vec2 arg3; /** C */ - cocos2d::Vec2 arg4; /** D */ + cocos2d::Vec2 *arg1; /** A */ + cocos2d::Vec2 *arg2; /** B */ + cocos2d::Vec2 *arg3; /** C */ + cocos2d::Vec2 *arg4; /** D */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_object(L, 2, &arg2, "cc.Vec2"); @@ -945,7 +945,7 @@ static int _cocos2d_Vec2_isLineOverlap(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec2"); // static bool isLineOverlap(const cocos2d::Vec2 &A, const cocos2d::Vec2 &B, const cocos2d::Vec2 &C, const cocos2d::Vec2 &D) - bool ret = cocos2d::Vec2::isLineOverlap(arg1, arg2, arg3, arg4); + bool ret = cocos2d::Vec2::isLineOverlap(*arg1, *arg2, *arg3, *arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -957,10 +957,10 @@ static int _cocos2d_Vec2_isLineParallel(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** A */ - cocos2d::Vec2 arg2; /** B */ - cocos2d::Vec2 arg3; /** C */ - cocos2d::Vec2 arg4; /** D */ + cocos2d::Vec2 *arg1; /** A */ + cocos2d::Vec2 *arg2; /** B */ + cocos2d::Vec2 *arg3; /** C */ + cocos2d::Vec2 *arg4; /** D */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_object(L, 2, &arg2, "cc.Vec2"); @@ -968,7 +968,7 @@ static int _cocos2d_Vec2_isLineParallel(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec2"); // static bool isLineParallel(const cocos2d::Vec2 &A, const cocos2d::Vec2 &B, const cocos2d::Vec2 &C, const cocos2d::Vec2 &D) - bool ret = cocos2d::Vec2::isLineParallel(arg1, arg2, arg3, arg4); + bool ret = cocos2d::Vec2::isLineParallel(*arg1, *arg2, *arg3, *arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -997,10 +997,10 @@ static int _cocos2d_Vec2_isSegmentIntersect(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** A */ - cocos2d::Vec2 arg2; /** B */ - cocos2d::Vec2 arg3; /** C */ - cocos2d::Vec2 arg4; /** D */ + cocos2d::Vec2 *arg1; /** A */ + cocos2d::Vec2 *arg2; /** B */ + cocos2d::Vec2 *arg3; /** C */ + cocos2d::Vec2 *arg4; /** D */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_object(L, 2, &arg2, "cc.Vec2"); @@ -1008,7 +1008,7 @@ static int _cocos2d_Vec2_isSegmentIntersect(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec2"); // static bool isSegmentIntersect(const cocos2d::Vec2 &A, const cocos2d::Vec2 &B, const cocos2d::Vec2 &C, const cocos2d::Vec2 &D) - bool ret = cocos2d::Vec2::isSegmentIntersect(arg1, arg2, arg3, arg4); + bool ret = cocos2d::Vec2::isSegmentIntersect(*arg1, *arg2, *arg3, *arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -1020,10 +1020,10 @@ static int _cocos2d_Vec2_isSegmentOverlap$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** A */ - cocos2d::Vec2 arg2; /** B */ - cocos2d::Vec2 arg3; /** C */ - cocos2d::Vec2 arg4; /** D */ + cocos2d::Vec2 *arg1; /** A */ + cocos2d::Vec2 *arg2; /** B */ + cocos2d::Vec2 *arg3; /** C */ + cocos2d::Vec2 *arg4; /** D */ cocos2d::Vec2 *arg5 = nullptr; /** S */ cocos2d::Vec2 *arg6 = nullptr; /** E */ @@ -1035,7 +1035,7 @@ static int _cocos2d_Vec2_isSegmentOverlap$1(lua_State *L) olua_check_object(L, 6, &arg6, "cc.Vec2"); // static bool isSegmentOverlap(const cocos2d::Vec2 &A, const cocos2d::Vec2 &B, const cocos2d::Vec2 &C, const cocos2d::Vec2 &D, @optional cocos2d::Vec2 *S, @optional cocos2d::Vec2 *E) - bool ret = cocos2d::Vec2::isSegmentOverlap(arg1, arg2, arg3, arg4, arg5, arg6); + bool ret = cocos2d::Vec2::isSegmentOverlap(*arg1, *arg2, *arg3, *arg4, arg5, arg6); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -1047,10 +1047,10 @@ static int _cocos2d_Vec2_isSegmentOverlap$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** A */ - cocos2d::Vec2 arg2; /** B */ - cocos2d::Vec2 arg3; /** C */ - cocos2d::Vec2 arg4; /** D */ + cocos2d::Vec2 *arg1; /** A */ + cocos2d::Vec2 *arg2; /** B */ + cocos2d::Vec2 *arg3; /** C */ + cocos2d::Vec2 *arg4; /** D */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_object(L, 2, &arg2, "cc.Vec2"); @@ -1058,7 +1058,7 @@ static int _cocos2d_Vec2_isSegmentOverlap$2(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec2"); // static bool isSegmentOverlap(const cocos2d::Vec2 &A, const cocos2d::Vec2 &B, const cocos2d::Vec2 &C, const cocos2d::Vec2 &D) - bool ret = cocos2d::Vec2::isSegmentOverlap(arg1, arg2, arg3, arg4); + bool ret = cocos2d::Vec2::isSegmentOverlap(*arg1, *arg2, *arg3, *arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -1070,10 +1070,10 @@ static int _cocos2d_Vec2_isSegmentOverlap$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** A */ - cocos2d::Vec2 arg2; /** B */ - cocos2d::Vec2 arg3; /** C */ - cocos2d::Vec2 arg4; /** D */ + cocos2d::Vec2 *arg1; /** A */ + cocos2d::Vec2 *arg2; /** B */ + cocos2d::Vec2 *arg3; /** C */ + cocos2d::Vec2 *arg4; /** D */ cocos2d::Vec2 *arg5 = nullptr; /** S */ olua_check_object(L, 1, &arg1, "cc.Vec2"); @@ -1083,7 +1083,7 @@ static int _cocos2d_Vec2_isSegmentOverlap$3(lua_State *L) olua_check_object(L, 5, &arg5, "cc.Vec2"); // static bool isSegmentOverlap(const cocos2d::Vec2 &A, const cocos2d::Vec2 &B, const cocos2d::Vec2 &C, const cocos2d::Vec2 &D, @optional cocos2d::Vec2 *S) - bool ret = cocos2d::Vec2::isSegmentOverlap(arg1, arg2, arg3, arg4, arg5); + bool ret = cocos2d::Vec2::isSegmentOverlap(*arg1, *arg2, *arg3, *arg4, arg5); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -1177,7 +1177,7 @@ static int _cocos2d_Vec2_lerp(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** other */ + cocos2d::Vec2 *arg1; /** other */ float arg2 = 0; /** alpha */ olua_to_object(L, 1, &self, "cc.Vec2"); @@ -1185,7 +1185,7 @@ static int _cocos2d_Vec2_lerp(lua_State *L) olua_check_number(L, 3, &arg2); // cocos2d::Vec2 lerp(const cocos2d::Vec2 &other, float alpha) - cocos2d::Vec2 ret = self->lerp(arg1, arg2); + cocos2d::Vec2 ret = self->lerp(*arg1, arg2); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -1265,14 +1265,14 @@ static int _cocos2d_Vec2_new$4(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** p1 */ - cocos2d::Vec2 arg2; /** p2 */ + cocos2d::Vec2 *arg1; /** p1 */ + cocos2d::Vec2 *arg2; /** p2 */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_object(L, 2, &arg2, "cc.Vec2"); // cocos2d::Vec2(const cocos2d::Vec2 &p1, const cocos2d::Vec2 &p2) - cocos2d::Vec2 *ret = new cocos2d::Vec2(arg1, arg2); + cocos2d::Vec2 *ret = new cocos2d::Vec2(*arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.Vec2"); olua_postnew(L, ret); @@ -1335,13 +1335,13 @@ static int _cocos2d_Vec2_project(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** other */ + cocos2d::Vec2 *arg1; /** other */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 project(const cocos2d::Vec2 &other) - cocos2d::Vec2 ret = self->project(arg1); + cocos2d::Vec2 ret = self->project(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -1354,7 +1354,7 @@ static int _cocos2d_Vec2_rotate$1(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ float arg2 = 0; /** angle */ olua_to_object(L, 1, &self, "cc.Vec2"); @@ -1362,7 +1362,7 @@ static int _cocos2d_Vec2_rotate$1(lua_State *L) olua_check_number(L, 3, &arg2); // void rotate(const cocos2d::Vec2 &point, float angle) - self->rotate(arg1, arg2); + self->rotate(*arg1, arg2); olua_endinvoke(L); @@ -1374,13 +1374,13 @@ static int _cocos2d_Vec2_rotate$2(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** other */ + cocos2d::Vec2 *arg1; /** other */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 rotate(const cocos2d::Vec2 &other) - cocos2d::Vec2 ret = self->rotate(arg1); + cocos2d::Vec2 ret = self->rotate(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -1416,7 +1416,7 @@ static int _cocos2d_Vec2_rotateByAngle(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** pivot */ + cocos2d::Vec2 *arg1; /** pivot */ float arg2 = 0; /** angle */ olua_to_object(L, 1, &self, "cc.Vec2"); @@ -1424,7 +1424,7 @@ static int _cocos2d_Vec2_rotateByAngle(lua_State *L) olua_check_number(L, 3, &arg2); // cocos2d::Vec2 rotateByAngle(const cocos2d::Vec2 &pivot, float angle) - cocos2d::Vec2 ret = self->rotateByAngle(arg1, arg2); + cocos2d::Vec2 ret = self->rotateByAngle(*arg1, arg2); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -1455,13 +1455,13 @@ static int _cocos2d_Vec2_scale$2(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** scale */ + cocos2d::Vec2 *arg1; /** scale */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void scale(const cocos2d::Vec2 &scale) - self->scale(arg1); + self->scale(*arg1); olua_endinvoke(L); @@ -1532,13 +1532,13 @@ static int _cocos2d_Vec2_set$3(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** v */ + cocos2d::Vec2 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void set(const cocos2d::Vec2 &v) - self->set(arg1); + self->set(*arg1); olua_endinvoke(L); @@ -1550,15 +1550,15 @@ static int _cocos2d_Vec2_set$4(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** p1 */ - cocos2d::Vec2 arg2; /** p2 */ + cocos2d::Vec2 *arg1; /** p1 */ + cocos2d::Vec2 *arg2; /** p2 */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); olua_check_object(L, 3, &arg2, "cc.Vec2"); // void set(const cocos2d::Vec2 &p1, const cocos2d::Vec2 &p2) - self->set(arg1, arg2); + self->set(*arg1, *arg2); olua_endinvoke(L); @@ -1639,7 +1639,7 @@ static int _cocos2d_Vec2_smooth(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** target */ + cocos2d::Vec2 *arg1; /** target */ float arg2 = 0; /** elapsedTime */ float arg3 = 0; /** responseTime */ @@ -1649,7 +1649,7 @@ static int _cocos2d_Vec2_smooth(lua_State *L) olua_check_number(L, 4, &arg3); // void smooth(const cocos2d::Vec2 &target, float elapsedTime, float responseTime) - self->smooth(arg1, arg2, arg3); + self->smooth(*arg1, arg2, arg3); olua_endinvoke(L); @@ -1661,13 +1661,13 @@ static int _cocos2d_Vec2_subtract$1(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** v */ + cocos2d::Vec2 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void subtract(const cocos2d::Vec2 &v) - self->subtract(arg1); + self->subtract(*arg1); olua_endinvoke(L); @@ -1678,8 +1678,8 @@ static int _cocos2d_Vec2_subtract$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** v1 */ - cocos2d::Vec2 arg2; /** v2 */ + cocos2d::Vec2 *arg1; /** v1 */ + cocos2d::Vec2 *arg2; /** v2 */ cocos2d::Vec2 *arg3 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Vec2"); @@ -1687,7 +1687,7 @@ static int _cocos2d_Vec2_subtract$2(lua_State *L) olua_check_object(L, 3, &arg3, "cc.Vec2"); // static void subtract(const cocos2d::Vec2 &v1, const cocos2d::Vec2 &v2, cocos2d::Vec2 *dst) - cocos2d::Vec2::subtract(arg1, arg2, arg3); + cocos2d::Vec2::subtract(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -1722,13 +1722,13 @@ static int _cocos2d_Vec2_unrotate(lua_State *L) olua_startinvoke(L); cocos2d::Vec2 *self = nullptr; - cocos2d::Vec2 arg1; /** other */ + cocos2d::Vec2 *arg1; /** other */ olua_to_object(L, 1, &self, "cc.Vec2"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 unrotate(const cocos2d::Vec2 &other) - cocos2d::Vec2 ret = self->unrotate(arg1); + cocos2d::Vec2 ret = self->unrotate(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -1848,8 +1848,7 @@ static int _cocos2d_Vec2_y(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Vec2(lua_State *L) +static int _cc_Vec2(lua_State *L) { oluacls_class(L, "cc.Vec2"); oluacls_func(L, "__gc", _cocos2d_Vec2___gc); @@ -1899,7 +1898,6 @@ OLUA_LIB int luaopen_cocos2d_Vec2(lua_State *L) oluacls_func(L, "smooth", _cocos2d_Vec2_smooth); oluacls_func(L, "subtract", _cocos2d_Vec2_subtract); oluacls_func(L, "unrotate", _cocos2d_Vec2_unrotate); - oluacls_prop(L, "length", _cocos2d_Vec2_getLength, nullptr); oluacls_prop(L, "lengthSq", _cocos2d_Vec2_getLengthSq, nullptr); oluacls_prop(L, "normalized", _cocos2d_Vec2_getNormalized, nullptr); oluacls_prop(L, "one", _cocos2d_Vec2_isOne, nullptr); @@ -1924,6 +1922,16 @@ OLUA_LIB int luaopen_cocos2d_Vec2(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Vec2(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Vec2"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Vec3___gc(lua_State *L) @@ -1955,13 +1963,13 @@ static int _cocos2d_Vec3_add$1(lua_State *L) olua_startinvoke(L); cocos2d::Vec3 *self = nullptr; - cocos2d::Vec3 arg1; /** v */ + cocos2d::Vec3 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec3"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void add(const cocos2d::Vec3 &v) - self->add(arg1); + self->add(*arg1); olua_endinvoke(L); @@ -1994,8 +2002,8 @@ static int _cocos2d_Vec3_add$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** v1 */ - cocos2d::Vec3 arg2; /** v2 */ + cocos2d::Vec3 *arg1; /** v1 */ + cocos2d::Vec3 *arg2; /** v2 */ cocos2d::Vec3 *arg3 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Vec3"); @@ -2003,7 +2011,7 @@ static int _cocos2d_Vec3_add$3(lua_State *L) olua_check_object(L, 3, &arg3, "cc.Vec3"); // static void add(const cocos2d::Vec3 &v1, const cocos2d::Vec3 &v2, cocos2d::Vec3 *dst) - cocos2d::Vec3::add(arg1, arg2, arg3); + cocos2d::Vec3::add(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -2042,14 +2050,14 @@ static int _cocos2d_Vec3_angle(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** v1 */ - cocos2d::Vec3 arg2; /** v2 */ + cocos2d::Vec3 *arg1; /** v1 */ + cocos2d::Vec3 *arg2; /** v2 */ olua_check_object(L, 1, &arg1, "cc.Vec3"); olua_check_object(L, 2, &arg2, "cc.Vec3"); // static float angle(const cocos2d::Vec3 &v1, const cocos2d::Vec3 &v2) - float ret = cocos2d::Vec3::angle(arg1, arg2); + float ret = cocos2d::Vec3::angle(*arg1, *arg2); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -2062,15 +2070,15 @@ static int _cocos2d_Vec3_clamp$1(lua_State *L) olua_startinvoke(L); cocos2d::Vec3 *self = nullptr; - cocos2d::Vec3 arg1; /** min */ - cocos2d::Vec3 arg2; /** max */ + cocos2d::Vec3 *arg1; /** min */ + cocos2d::Vec3 *arg2; /** max */ olua_to_object(L, 1, &self, "cc.Vec3"); olua_check_object(L, 2, &arg1, "cc.Vec3"); olua_check_object(L, 3, &arg2, "cc.Vec3"); // void clamp(const cocos2d::Vec3 &min, const cocos2d::Vec3 &max) - self->clamp(arg1, arg2); + self->clamp(*arg1, *arg2); olua_endinvoke(L); @@ -2081,9 +2089,9 @@ static int _cocos2d_Vec3_clamp$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** v */ - cocos2d::Vec3 arg2; /** min */ - cocos2d::Vec3 arg3; /** max */ + cocos2d::Vec3 *arg1; /** v */ + cocos2d::Vec3 *arg2; /** min */ + cocos2d::Vec3 *arg3; /** max */ cocos2d::Vec3 *arg4 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Vec3"); @@ -2092,7 +2100,7 @@ static int _cocos2d_Vec3_clamp$2(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec3"); // static void clamp(const cocos2d::Vec3 &v, const cocos2d::Vec3 &min, const cocos2d::Vec3 &max, cocos2d::Vec3 *dst) - cocos2d::Vec3::clamp(arg1, arg2, arg3, arg4); + cocos2d::Vec3::clamp(*arg1, *arg2, *arg3, arg4); olua_endinvoke(L); @@ -2127,13 +2135,13 @@ static int _cocos2d_Vec3_cross$1(lua_State *L) olua_startinvoke(L); cocos2d::Vec3 *self = nullptr; - cocos2d::Vec3 arg1; /** v */ + cocos2d::Vec3 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec3"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void cross(const cocos2d::Vec3 &v) - self->cross(arg1); + self->cross(*arg1); olua_endinvoke(L); @@ -2144,8 +2152,8 @@ static int _cocos2d_Vec3_cross$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** v1 */ - cocos2d::Vec3 arg2; /** v2 */ + cocos2d::Vec3 *arg1; /** v1 */ + cocos2d::Vec3 *arg2; /** v2 */ cocos2d::Vec3 *arg3 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Vec3"); @@ -2153,7 +2161,7 @@ static int _cocos2d_Vec3_cross$2(lua_State *L) olua_check_object(L, 3, &arg3, "cc.Vec3"); // static void cross(const cocos2d::Vec3 &v1, const cocos2d::Vec3 &v2, cocos2d::Vec3 *dst) - cocos2d::Vec3::cross(arg1, arg2, arg3); + cocos2d::Vec3::cross(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -2188,13 +2196,13 @@ static int _cocos2d_Vec3_distance(lua_State *L) olua_startinvoke(L); cocos2d::Vec3 *self = nullptr; - cocos2d::Vec3 arg1; /** v */ + cocos2d::Vec3 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec3"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // float distance(const cocos2d::Vec3 &v) - float ret = self->distance(arg1); + float ret = self->distance(*arg1); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -2207,13 +2215,13 @@ static int _cocos2d_Vec3_distanceSquared(lua_State *L) olua_startinvoke(L); cocos2d::Vec3 *self = nullptr; - cocos2d::Vec3 arg1; /** v */ + cocos2d::Vec3 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec3"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // float distanceSquared(const cocos2d::Vec3 &v) - float ret = self->distanceSquared(arg1); + float ret = self->distanceSquared(*arg1); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -2226,13 +2234,13 @@ static int _cocos2d_Vec3_dot$1(lua_State *L) olua_startinvoke(L); cocos2d::Vec3 *self = nullptr; - cocos2d::Vec3 arg1; /** v */ + cocos2d::Vec3 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec3"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // float dot(const cocos2d::Vec3 &v) - float ret = self->dot(arg1); + float ret = self->dot(*arg1); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -2244,14 +2252,14 @@ static int _cocos2d_Vec3_dot$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** v1 */ - cocos2d::Vec3 arg2; /** v2 */ + cocos2d::Vec3 *arg1; /** v1 */ + cocos2d::Vec3 *arg2; /** v2 */ olua_check_object(L, 1, &arg1, "cc.Vec3"); olua_check_object(L, 2, &arg2, "cc.Vec3"); // static float dot(const cocos2d::Vec3 &v1, const cocos2d::Vec3 &v2) - float ret = cocos2d::Vec3::dot(arg1, arg2); + float ret = cocos2d::Vec3::dot(*arg1, *arg2); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -2389,7 +2397,7 @@ static int _cocos2d_Vec3_lerp(lua_State *L) olua_startinvoke(L); cocos2d::Vec3 *self = nullptr; - cocos2d::Vec3 arg1; /** target */ + cocos2d::Vec3 *arg1; /** target */ float arg2 = 0; /** alpha */ olua_to_object(L, 1, &self, "cc.Vec3"); @@ -2397,7 +2405,7 @@ static int _cocos2d_Vec3_lerp(lua_State *L) olua_check_number(L, 3, &arg2); // cocos2d::Vec3 lerp(const cocos2d::Vec3 &target, float alpha) - cocos2d::Vec3 ret = self->lerp(arg1, arg2); + cocos2d::Vec3 ret = self->lerp(*arg1, arg2); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec3"); olua_endinvoke(L); @@ -2479,14 +2487,14 @@ static int _cocos2d_Vec3_new$4(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** p1 */ - cocos2d::Vec3 arg2; /** p2 */ + cocos2d::Vec3 *arg1; /** p1 */ + cocos2d::Vec3 *arg2; /** p2 */ olua_check_object(L, 1, &arg1, "cc.Vec3"); olua_check_object(L, 2, &arg2, "cc.Vec3"); // cocos2d::Vec3(const cocos2d::Vec3 &p1, const cocos2d::Vec3 &p2) - cocos2d::Vec3 *ret = new cocos2d::Vec3(arg1, arg2); + cocos2d::Vec3 *ret = new cocos2d::Vec3(*arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.Vec3"); olua_postnew(L, ret); @@ -2609,13 +2617,13 @@ static int _cocos2d_Vec3_set$3(lua_State *L) olua_startinvoke(L); cocos2d::Vec3 *self = nullptr; - cocos2d::Vec3 arg1; /** v */ + cocos2d::Vec3 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec3"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void set(const cocos2d::Vec3 &v) - self->set(arg1); + self->set(*arg1); olua_endinvoke(L); @@ -2627,15 +2635,15 @@ static int _cocos2d_Vec3_set$4(lua_State *L) olua_startinvoke(L); cocos2d::Vec3 *self = nullptr; - cocos2d::Vec3 arg1; /** p1 */ - cocos2d::Vec3 arg2; /** p2 */ + cocos2d::Vec3 *arg1; /** p1 */ + cocos2d::Vec3 *arg2; /** p2 */ olua_to_object(L, 1, &self, "cc.Vec3"); olua_check_object(L, 2, &arg1, "cc.Vec3"); olua_check_object(L, 3, &arg2, "cc.Vec3"); // void set(const cocos2d::Vec3 &p1, const cocos2d::Vec3 &p2) - self->set(arg1, arg2); + self->set(*arg1, *arg2); olua_endinvoke(L); @@ -2698,7 +2706,7 @@ static int _cocos2d_Vec3_smooth(lua_State *L) olua_startinvoke(L); cocos2d::Vec3 *self = nullptr; - cocos2d::Vec3 arg1; /** target */ + cocos2d::Vec3 *arg1; /** target */ float arg2 = 0; /** elapsedTime */ float arg3 = 0; /** responseTime */ @@ -2708,7 +2716,7 @@ static int _cocos2d_Vec3_smooth(lua_State *L) olua_check_number(L, 4, &arg3); // void smooth(const cocos2d::Vec3 &target, float elapsedTime, float responseTime) - self->smooth(arg1, arg2, arg3); + self->smooth(*arg1, arg2, arg3); olua_endinvoke(L); @@ -2720,13 +2728,13 @@ static int _cocos2d_Vec3_subtract$1(lua_State *L) olua_startinvoke(L); cocos2d::Vec3 *self = nullptr; - cocos2d::Vec3 arg1; /** v */ + cocos2d::Vec3 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec3"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void subtract(const cocos2d::Vec3 &v) - self->subtract(arg1); + self->subtract(*arg1); olua_endinvoke(L); @@ -2737,8 +2745,8 @@ static int _cocos2d_Vec3_subtract$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** v1 */ - cocos2d::Vec3 arg2; /** v2 */ + cocos2d::Vec3 *arg1; /** v1 */ + cocos2d::Vec3 *arg2; /** v2 */ cocos2d::Vec3 *arg3 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Vec3"); @@ -2746,7 +2754,7 @@ static int _cocos2d_Vec3_subtract$2(lua_State *L) olua_check_object(L, 3, &arg3, "cc.Vec3"); // static void subtract(const cocos2d::Vec3 &v1, const cocos2d::Vec3 &v2, cocos2d::Vec3 *dst) - cocos2d::Vec3::subtract(arg1, arg2, arg3); + cocos2d::Vec3::subtract(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -2944,8 +2952,7 @@ static int _cocos2d_Vec3_z(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Vec3(lua_State *L) +static int _cc_Vec3(lua_State *L) { oluacls_class(L, "cc.Vec3"); oluacls_func(L, "__gc", _cocos2d_Vec3___gc); @@ -2986,6 +2993,16 @@ OLUA_LIB int luaopen_cocos2d_Vec3(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Vec3(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Vec3"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Vec4___gc(lua_State *L) @@ -3017,13 +3034,13 @@ static int _cocos2d_Vec4_add$1(lua_State *L) olua_startinvoke(L); cocos2d::Vec4 *self = nullptr; - cocos2d::Vec4 arg1; /** v */ + cocos2d::Vec4 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec4"); olua_check_object(L, 2, &arg1, "cc.Vec4"); // void add(const cocos2d::Vec4 &v) - self->add(arg1); + self->add(*arg1); olua_endinvoke(L); @@ -3034,8 +3051,8 @@ static int _cocos2d_Vec4_add$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec4 arg1; /** v1 */ - cocos2d::Vec4 arg2; /** v2 */ + cocos2d::Vec4 *arg1; /** v1 */ + cocos2d::Vec4 *arg2; /** v2 */ cocos2d::Vec4 *arg3 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Vec4"); @@ -3043,7 +3060,7 @@ static int _cocos2d_Vec4_add$2(lua_State *L) olua_check_object(L, 3, &arg3, "cc.Vec4"); // static void add(const cocos2d::Vec4 &v1, const cocos2d::Vec4 &v2, cocos2d::Vec4 *dst) - cocos2d::Vec4::add(arg1, arg2, arg3); + cocos2d::Vec4::add(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -3077,14 +3094,14 @@ static int _cocos2d_Vec4_angle(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec4 arg1; /** v1 */ - cocos2d::Vec4 arg2; /** v2 */ + cocos2d::Vec4 *arg1; /** v1 */ + cocos2d::Vec4 *arg2; /** v2 */ olua_check_object(L, 1, &arg1, "cc.Vec4"); olua_check_object(L, 2, &arg2, "cc.Vec4"); // static float angle(const cocos2d::Vec4 &v1, const cocos2d::Vec4 &v2) - float ret = cocos2d::Vec4::angle(arg1, arg2); + float ret = cocos2d::Vec4::angle(*arg1, *arg2); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -3097,15 +3114,15 @@ static int _cocos2d_Vec4_clamp$1(lua_State *L) olua_startinvoke(L); cocos2d::Vec4 *self = nullptr; - cocos2d::Vec4 arg1; /** min */ - cocos2d::Vec4 arg2; /** max */ + cocos2d::Vec4 *arg1; /** min */ + cocos2d::Vec4 *arg2; /** max */ olua_to_object(L, 1, &self, "cc.Vec4"); olua_check_object(L, 2, &arg1, "cc.Vec4"); olua_check_object(L, 3, &arg2, "cc.Vec4"); // void clamp(const cocos2d::Vec4 &min, const cocos2d::Vec4 &max) - self->clamp(arg1, arg2); + self->clamp(*arg1, *arg2); olua_endinvoke(L); @@ -3116,9 +3133,9 @@ static int _cocos2d_Vec4_clamp$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec4 arg1; /** v */ - cocos2d::Vec4 arg2; /** min */ - cocos2d::Vec4 arg3; /** max */ + cocos2d::Vec4 *arg1; /** v */ + cocos2d::Vec4 *arg2; /** min */ + cocos2d::Vec4 *arg3; /** max */ cocos2d::Vec4 *arg4 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Vec4"); @@ -3127,7 +3144,7 @@ static int _cocos2d_Vec4_clamp$2(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Vec4"); // static void clamp(const cocos2d::Vec4 &v, const cocos2d::Vec4 &min, const cocos2d::Vec4 &max, cocos2d::Vec4 *dst) - cocos2d::Vec4::clamp(arg1, arg2, arg3, arg4); + cocos2d::Vec4::clamp(*arg1, *arg2, *arg3, arg4); olua_endinvoke(L); @@ -3162,13 +3179,13 @@ static int _cocos2d_Vec4_distance(lua_State *L) olua_startinvoke(L); cocos2d::Vec4 *self = nullptr; - cocos2d::Vec4 arg1; /** v */ + cocos2d::Vec4 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec4"); olua_check_object(L, 2, &arg1, "cc.Vec4"); // float distance(const cocos2d::Vec4 &v) - float ret = self->distance(arg1); + float ret = self->distance(*arg1); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -3181,13 +3198,13 @@ static int _cocos2d_Vec4_distanceSquared(lua_State *L) olua_startinvoke(L); cocos2d::Vec4 *self = nullptr; - cocos2d::Vec4 arg1; /** v */ + cocos2d::Vec4 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec4"); olua_check_object(L, 2, &arg1, "cc.Vec4"); // float distanceSquared(const cocos2d::Vec4 &v) - float ret = self->distanceSquared(arg1); + float ret = self->distanceSquared(*arg1); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -3200,13 +3217,13 @@ static int _cocos2d_Vec4_dot$1(lua_State *L) olua_startinvoke(L); cocos2d::Vec4 *self = nullptr; - cocos2d::Vec4 arg1; /** v */ + cocos2d::Vec4 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec4"); olua_check_object(L, 2, &arg1, "cc.Vec4"); // float dot(const cocos2d::Vec4 &v) - float ret = self->dot(arg1); + float ret = self->dot(*arg1); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -3218,14 +3235,14 @@ static int _cocos2d_Vec4_dot$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec4 arg1; /** v1 */ - cocos2d::Vec4 arg2; /** v2 */ + cocos2d::Vec4 *arg1; /** v1 */ + cocos2d::Vec4 *arg2; /** v2 */ olua_check_object(L, 1, &arg1, "cc.Vec4"); olua_check_object(L, 2, &arg2, "cc.Vec4"); // static float dot(const cocos2d::Vec4 &v1, const cocos2d::Vec4 &v2) - float ret = cocos2d::Vec4::dot(arg1, arg2); + float ret = cocos2d::Vec4::dot(*arg1, *arg2); int num_ret = olua_push_number(L, ret); olua_endinvoke(L); @@ -3434,14 +3451,14 @@ static int _cocos2d_Vec4_new$4(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec4 arg1; /** p1 */ - cocos2d::Vec4 arg2; /** p2 */ + cocos2d::Vec4 *arg1; /** p1 */ + cocos2d::Vec4 *arg2; /** p2 */ olua_check_object(L, 1, &arg1, "cc.Vec4"); olua_check_object(L, 2, &arg2, "cc.Vec4"); // cocos2d::Vec4(const cocos2d::Vec4 &p1, const cocos2d::Vec4 &p2) - cocos2d::Vec4 *ret = new cocos2d::Vec4(arg1, arg2); + cocos2d::Vec4 *ret = new cocos2d::Vec4(*arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.Vec4"); olua_postnew(L, ret); @@ -3566,13 +3583,13 @@ static int _cocos2d_Vec4_set$3(lua_State *L) olua_startinvoke(L); cocos2d::Vec4 *self = nullptr; - cocos2d::Vec4 arg1; /** v */ + cocos2d::Vec4 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec4"); olua_check_object(L, 2, &arg1, "cc.Vec4"); // void set(const cocos2d::Vec4 &v) - self->set(arg1); + self->set(*arg1); olua_endinvoke(L); @@ -3584,15 +3601,15 @@ static int _cocos2d_Vec4_set$4(lua_State *L) olua_startinvoke(L); cocos2d::Vec4 *self = nullptr; - cocos2d::Vec4 arg1; /** p1 */ - cocos2d::Vec4 arg2; /** p2 */ + cocos2d::Vec4 *arg1; /** p1 */ + cocos2d::Vec4 *arg2; /** p2 */ olua_to_object(L, 1, &self, "cc.Vec4"); olua_check_object(L, 2, &arg1, "cc.Vec4"); olua_check_object(L, 3, &arg2, "cc.Vec4"); // void set(const cocos2d::Vec4 &p1, const cocos2d::Vec4 &p2) - self->set(arg1, arg2); + self->set(*arg1, *arg2); olua_endinvoke(L); @@ -3639,13 +3656,13 @@ static int _cocos2d_Vec4_subtract$1(lua_State *L) olua_startinvoke(L); cocos2d::Vec4 *self = nullptr; - cocos2d::Vec4 arg1; /** v */ + cocos2d::Vec4 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec4"); olua_check_object(L, 2, &arg1, "cc.Vec4"); // void subtract(const cocos2d::Vec4 &v) - self->subtract(arg1); + self->subtract(*arg1); olua_endinvoke(L); @@ -3656,8 +3673,8 @@ static int _cocos2d_Vec4_subtract$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec4 arg1; /** v1 */ - cocos2d::Vec4 arg2; /** v2 */ + cocos2d::Vec4 *arg1; /** v1 */ + cocos2d::Vec4 *arg2; /** v2 */ cocos2d::Vec4 *arg3 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Vec4"); @@ -3665,7 +3682,7 @@ static int _cocos2d_Vec4_subtract$2(lua_State *L) olua_check_object(L, 3, &arg3, "cc.Vec4"); // static void subtract(const cocos2d::Vec4 &v1, const cocos2d::Vec4 &v2, cocos2d::Vec4 *dst) - cocos2d::Vec4::subtract(arg1, arg2, arg3); + cocos2d::Vec4::subtract(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -3919,8 +3936,7 @@ static int _cocos2d_Vec4_z(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Vec4(lua_State *L) +static int _cc_Vec4(lua_State *L) { oluacls_class(L, "cc.Vec4"); oluacls_func(L, "__gc", _cocos2d_Vec4___gc); @@ -3959,6 +3975,16 @@ OLUA_LIB int luaopen_cocos2d_Vec4(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Vec4(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Vec4"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Size___gc(lua_State *L) @@ -3990,13 +4016,13 @@ static int _cocos2d_Size_equals(lua_State *L) olua_startinvoke(L); cocos2d::Size *self = nullptr; - cocos2d::Size arg1; /** target */ + cocos2d::Size *arg1; /** target */ olua_to_object(L, 1, &self, "cc.Size"); olua_check_object(L, 2, &arg1, "cc.Size"); // bool equals(const cocos2d::Size &target) - bool ret = self->equals(arg1); + bool ret = self->equals(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -4098,12 +4124,12 @@ static int _cocos2d_Size_new$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ olua_check_object(L, 1, &arg1, "cc.Vec2"); // cocos2d::Size(const cocos2d::Vec2 &point) - cocos2d::Size *ret = new cocos2d::Size(arg1); + cocos2d::Size *ret = new cocos2d::Size(*arg1); int num_ret = olua_push_object(L, ret, "cc.Size"); olua_postnew(L, ret); @@ -4216,8 +4242,7 @@ static int _cocos2d_Size_width(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Size(lua_State *L) +static int _cc_Size(lua_State *L) { oluacls_class(L, "cc.Size"); oluacls_func(L, "__gc", _cocos2d_Size___gc); @@ -4231,6 +4256,16 @@ OLUA_LIB int luaopen_cocos2d_Size(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Size(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Size"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Rect___call(lua_State *L) @@ -4274,13 +4309,13 @@ static int _cocos2d_Rect_containsPoint(lua_State *L) olua_startinvoke(L); cocos2d::Rect *self = nullptr; - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ olua_to_object(L, 1, &self, "cc.Rect"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // bool containsPoint(const cocos2d::Vec2 &point) - bool ret = self->containsPoint(arg1); + bool ret = self->containsPoint(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -4293,13 +4328,13 @@ static int _cocos2d_Rect_equals(lua_State *L) olua_startinvoke(L); cocos2d::Rect *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ olua_to_object(L, 1, &self, "cc.Rect"); olua_check_object(L, 2, &arg1, "cc.Rect"); // bool equals(const cocos2d::Rect &rect) - bool ret = self->equals(arg1); + bool ret = self->equals(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -4414,7 +4449,7 @@ static int _cocos2d_Rect_intersectsCircle(lua_State *L) olua_startinvoke(L); cocos2d::Rect *self = nullptr; - cocos2d::Vec2 arg1; /** center */ + cocos2d::Vec2 *arg1; /** center */ float arg2 = 0; /** radius */ olua_to_object(L, 1, &self, "cc.Rect"); @@ -4422,7 +4457,7 @@ static int _cocos2d_Rect_intersectsCircle(lua_State *L) olua_check_number(L, 3, &arg2); // bool intersectsCircle(const cocos2d::Vec2 ¢er, float radius) - bool ret = self->intersectsCircle(arg1, arg2); + bool ret = self->intersectsCircle(*arg1, arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -4435,13 +4470,13 @@ static int _cocos2d_Rect_intersectsRect(lua_State *L) olua_startinvoke(L); cocos2d::Rect *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ olua_to_object(L, 1, &self, "cc.Rect"); olua_check_object(L, 2, &arg1, "cc.Rect"); // bool intersectsRect(const cocos2d::Rect &rect) - bool ret = self->intersectsRect(arg1); + bool ret = self->intersectsRect(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -4454,13 +4489,13 @@ static int _cocos2d_Rect_merge(lua_State *L) olua_startinvoke(L); cocos2d::Rect *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ olua_to_object(L, 1, &self, "cc.Rect"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void merge(const cocos2d::Rect &rect) - self->merge(arg1); + self->merge(*arg1); olua_endinvoke(L); @@ -4509,14 +4544,14 @@ static int _cocos2d_Rect_new$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** pos */ - cocos2d::Size arg2; /** dimension */ + cocos2d::Vec2 *arg1; /** pos */ + cocos2d::Size *arg2; /** dimension */ olua_check_object(L, 1, &arg1, "cc.Vec2"); olua_check_object(L, 2, &arg2, "cc.Size"); // cocos2d::Rect(const cocos2d::Vec2 &pos, const cocos2d::Size &dimension) - cocos2d::Rect *ret = new cocos2d::Rect(arg1, arg2); + cocos2d::Rect *ret = new cocos2d::Rect(*arg1, *arg2); int num_ret = olua_push_object(L, ret, "cc.Rect"); olua_postnew(L, ret); @@ -4575,13 +4610,13 @@ static int _cocos2d_Rect_origin$2(lua_State *L) olua_startinvoke(L); cocos2d::Rect *self = nullptr; - cocos2d::Vec2 arg1; /** origin */ + cocos2d::Vec2 *arg1; /** origin */ olua_to_object(L, 1, &self, "cc.Rect"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 origin - self->origin = arg1; + self->origin = *arg1; olua_endinvoke(L); @@ -4655,13 +4690,13 @@ static int _cocos2d_Rect_size$2(lua_State *L) olua_startinvoke(L); cocos2d::Rect *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_to_object(L, 1, &self, "cc.Rect"); olua_check_object(L, 2, &arg1, "cc.Size"); // cocos2d::Size size - self->size = arg1; + self->size = *arg1; olua_endinvoke(L); @@ -4694,13 +4729,13 @@ static int _cocos2d_Rect_unionWithRect(lua_State *L) olua_startinvoke(L); cocos2d::Rect *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ olua_to_object(L, 1, &self, "cc.Rect"); olua_check_object(L, 2, &arg1, "cc.Rect"); // cocos2d::Rect unionWithRect(const cocos2d::Rect &rect) - cocos2d::Rect ret = self->unionWithRect(arg1); + cocos2d::Rect ret = self->unionWithRect(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Rect"); olua_endinvoke(L); @@ -4708,8 +4743,7 @@ static int _cocos2d_Rect_unionWithRect(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Rect(lua_State *L) +static int _cc_Rect(lua_State *L) { oluacls_class(L, "cc.Rect"); oluacls_func(L, "__call", _cocos2d_Rect___call); @@ -4741,6 +4775,16 @@ OLUA_LIB int luaopen_cocos2d_Rect(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Rect(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Rect"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Bounds___gc(lua_State *L) @@ -5005,8 +5049,7 @@ static int _cocos2d_Bounds_top(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Bounds(lua_State *L) +static int _cc_Bounds(lua_State *L) { oluacls_class(L, "cc.Bounds"); oluacls_func(L, "__gc", _cocos2d_Bounds___gc); @@ -5019,6 +5062,16 @@ OLUA_LIB int luaopen_cocos2d_Bounds(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Bounds(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Bounds"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Mat4___add(lua_State *L) @@ -5154,13 +5207,13 @@ static int _cocos2d_Mat4_add$3(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *self = nullptr; - cocos2d::Mat4 arg1; /** mat */ + cocos2d::Mat4 *arg1; /** mat */ olua_to_object(L, 1, &self, "cc.Mat4"); olua_check_object(L, 2, &arg1, "cc.Mat4"); // void add(const cocos2d::Mat4 &mat) - self->add(arg1); + self->add(*arg1); olua_endinvoke(L); @@ -5171,8 +5224,8 @@ static int _cocos2d_Mat4_add$4(lua_State *L) { olua_startinvoke(L); - cocos2d::Mat4 arg1; /** m1 */ - cocos2d::Mat4 arg2; /** m2 */ + cocos2d::Mat4 *arg1; /** m1 */ + cocos2d::Mat4 *arg2; /** m2 */ cocos2d::Mat4 *arg3 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Mat4"); @@ -5180,7 +5233,7 @@ static int _cocos2d_Mat4_add$4(lua_State *L) olua_check_object(L, 3, &arg3, "cc.Mat4"); // static void add(const cocos2d::Mat4 &m1, const cocos2d::Mat4 &m2, cocos2d::Mat4 *dst) - cocos2d::Mat4::add(arg1, arg2, arg3); + cocos2d::Mat4::add(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -5226,9 +5279,9 @@ static int _cocos2d_Mat4_createBillboard$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** objectPosition */ - cocos2d::Vec3 arg2; /** cameraPosition */ - cocos2d::Vec3 arg3; /** cameraUpVector */ + cocos2d::Vec3 *arg1; /** objectPosition */ + cocos2d::Vec3 *arg2; /** cameraPosition */ + cocos2d::Vec3 *arg3; /** cameraUpVector */ cocos2d::Mat4 *arg4 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Vec3"); @@ -5237,7 +5290,7 @@ static int _cocos2d_Mat4_createBillboard$1(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Mat4"); // static void createBillboard(const cocos2d::Vec3 &objectPosition, const cocos2d::Vec3 &cameraPosition, const cocos2d::Vec3 &cameraUpVector, cocos2d::Mat4 *dst) - cocos2d::Mat4::createBillboard(arg1, arg2, arg3, arg4); + cocos2d::Mat4::createBillboard(*arg1, *arg2, *arg3, arg4); olua_endinvoke(L); @@ -5248,10 +5301,10 @@ static int _cocos2d_Mat4_createBillboard$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** objectPosition */ - cocos2d::Vec3 arg2; /** cameraPosition */ - cocos2d::Vec3 arg3; /** cameraUpVector */ - cocos2d::Vec3 arg4; /** cameraForwardVector */ + cocos2d::Vec3 *arg1; /** objectPosition */ + cocos2d::Vec3 *arg2; /** cameraPosition */ + cocos2d::Vec3 *arg3; /** cameraUpVector */ + cocos2d::Vec3 *arg4; /** cameraForwardVector */ cocos2d::Mat4 *arg5 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Vec3"); @@ -5261,7 +5314,7 @@ static int _cocos2d_Mat4_createBillboard$2(lua_State *L) olua_check_object(L, 5, &arg5, "cc.Mat4"); // static void createBillboard(const cocos2d::Vec3 &objectPosition, const cocos2d::Vec3 &cameraPosition, const cocos2d::Vec3 &cameraUpVector, const cocos2d::Vec3 &cameraForwardVector, cocos2d::Mat4 *dst) - cocos2d::Mat4::createBillboard(arg1, arg2, arg3, arg4, arg5); + cocos2d::Mat4::createBillboard(*arg1, *arg2, *arg3, *arg4, arg5); olua_endinvoke(L); @@ -5295,9 +5348,9 @@ static int _cocos2d_Mat4_createLookAt$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** eyePosition */ - cocos2d::Vec3 arg2; /** targetPosition */ - cocos2d::Vec3 arg3; /** up */ + cocos2d::Vec3 *arg1; /** eyePosition */ + cocos2d::Vec3 *arg2; /** targetPosition */ + cocos2d::Vec3 *arg3; /** up */ cocos2d::Mat4 *arg4 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Vec3"); @@ -5306,7 +5359,7 @@ static int _cocos2d_Mat4_createLookAt$1(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Mat4"); // static void createLookAt(const cocos2d::Vec3 &eyePosition, const cocos2d::Vec3 &targetPosition, const cocos2d::Vec3 &up, cocos2d::Mat4 *dst) - cocos2d::Mat4::createLookAt(arg1, arg2, arg3, arg4); + cocos2d::Mat4::createLookAt(*arg1, *arg2, *arg3, arg4); olua_endinvoke(L); @@ -5450,14 +5503,14 @@ static int _cocos2d_Mat4_createRotation$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Quaternion arg1; /** quat */ + cocos2d::Quaternion *arg1; /** quat */ cocos2d::Mat4 *arg2 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Quaternion"); olua_check_object(L, 2, &arg2, "cc.Mat4"); // static void createRotation(const cocos2d::Quaternion &quat, cocos2d::Mat4 *dst) - cocos2d::Mat4::createRotation(arg1, arg2); + cocos2d::Mat4::createRotation(*arg1, arg2); olua_endinvoke(L); @@ -5468,7 +5521,7 @@ static int _cocos2d_Mat4_createRotation$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** axis */ + cocos2d::Vec3 *arg1; /** axis */ float arg2 = 0; /** angle */ cocos2d::Mat4 *arg3 = nullptr; /** dst */ @@ -5477,7 +5530,7 @@ static int _cocos2d_Mat4_createRotation$2(lua_State *L) olua_check_object(L, 3, &arg3, "cc.Mat4"); // static void createRotation(const cocos2d::Vec3 &axis, float angle, cocos2d::Mat4 *dst) - cocos2d::Mat4::createRotation(arg1, arg2, arg3); + cocos2d::Mat4::createRotation(*arg1, arg2, arg3); olua_endinvoke(L); @@ -5565,14 +5618,14 @@ static int _cocos2d_Mat4_createScale$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** scale */ + cocos2d::Vec3 *arg1; /** scale */ cocos2d::Mat4 *arg2 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Vec3"); olua_check_object(L, 2, &arg2, "cc.Mat4"); // static void createScale(const cocos2d::Vec3 &scale, cocos2d::Mat4 *dst) - cocos2d::Mat4::createScale(arg1, arg2); + cocos2d::Mat4::createScale(*arg1, arg2); olua_endinvoke(L); @@ -5628,14 +5681,14 @@ static int _cocos2d_Mat4_createTranslation$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** translation */ + cocos2d::Vec3 *arg1; /** translation */ cocos2d::Mat4 *arg2 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Vec3"); olua_check_object(L, 2, &arg2, "cc.Mat4"); // static void createTranslation(const cocos2d::Vec3 &translation, cocos2d::Mat4 *dst) - cocos2d::Mat4::createTranslation(arg1, arg2); + cocos2d::Mat4::createTranslation(*arg1, arg2); olua_endinvoke(L); @@ -6017,7 +6070,7 @@ static int _cocos2d_Mat4_multiply$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Mat4 arg1; /** mat */ + cocos2d::Mat4 *arg1; /** mat */ float arg2 = 0; /** scalar */ cocos2d::Mat4 *arg3 = nullptr; /** dst */ @@ -6026,7 +6079,7 @@ static int _cocos2d_Mat4_multiply$3(lua_State *L) olua_check_object(L, 3, &arg3, "cc.Mat4"); // static void multiply(const cocos2d::Mat4 &mat, float scalar, cocos2d::Mat4 *dst) - cocos2d::Mat4::multiply(arg1, arg2, arg3); + cocos2d::Mat4::multiply(*arg1, arg2, arg3); olua_endinvoke(L); @@ -6038,13 +6091,13 @@ static int _cocos2d_Mat4_multiply$4(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *self = nullptr; - cocos2d::Mat4 arg1; /** mat */ + cocos2d::Mat4 *arg1; /** mat */ olua_to_object(L, 1, &self, "cc.Mat4"); olua_check_object(L, 2, &arg1, "cc.Mat4"); // void multiply(const cocos2d::Mat4 &mat) - self->multiply(arg1); + self->multiply(*arg1); olua_endinvoke(L); @@ -6055,8 +6108,8 @@ static int _cocos2d_Mat4_multiply$5(lua_State *L) { olua_startinvoke(L); - cocos2d::Mat4 arg1; /** m1 */ - cocos2d::Mat4 arg2; /** m2 */ + cocos2d::Mat4 *arg1; /** m1 */ + cocos2d::Mat4 *arg2; /** m2 */ cocos2d::Mat4 *arg3 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Mat4"); @@ -6064,7 +6117,7 @@ static int _cocos2d_Mat4_multiply$5(lua_State *L) olua_check_object(L, 3, &arg3, "cc.Mat4"); // static void multiply(const cocos2d::Mat4 &m1, const cocos2d::Mat4 &m2, cocos2d::Mat4 *dst) - cocos2d::Mat4::multiply(arg1, arg2, arg3); + cocos2d::Mat4::multiply(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -6240,13 +6293,13 @@ static int _cocos2d_Mat4_rotate$1(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *self = nullptr; - cocos2d::Quaternion arg1; /** q */ + cocos2d::Quaternion *arg1; /** q */ olua_to_object(L, 1, &self, "cc.Mat4"); olua_check_object(L, 2, &arg1, "cc.Quaternion"); // void rotate(const cocos2d::Quaternion &q) - self->rotate(arg1); + self->rotate(*arg1); olua_endinvoke(L); @@ -6258,7 +6311,7 @@ static int _cocos2d_Mat4_rotate$2(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *self = nullptr; - cocos2d::Quaternion arg1; /** q */ + cocos2d::Quaternion *arg1; /** q */ cocos2d::Mat4 *arg2 = nullptr; /** dst */ olua_to_object(L, 1, &self, "cc.Mat4"); @@ -6266,7 +6319,7 @@ static int _cocos2d_Mat4_rotate$2(lua_State *L) olua_check_object(L, 3, &arg2, "cc.Mat4"); // void rotate(const cocos2d::Quaternion &q, cocos2d::Mat4 *dst) - self->rotate(arg1, arg2); + self->rotate(*arg1, arg2); olua_endinvoke(L); @@ -6278,7 +6331,7 @@ static int _cocos2d_Mat4_rotate$3(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *self = nullptr; - cocos2d::Vec3 arg1; /** axis */ + cocos2d::Vec3 *arg1; /** axis */ float arg2 = 0; /** angle */ olua_to_object(L, 1, &self, "cc.Mat4"); @@ -6286,7 +6339,7 @@ static int _cocos2d_Mat4_rotate$3(lua_State *L) olua_check_number(L, 3, &arg2); // void rotate(const cocos2d::Vec3 &axis, float angle) - self->rotate(arg1, arg2); + self->rotate(*arg1, arg2); olua_endinvoke(L); @@ -6298,7 +6351,7 @@ static int _cocos2d_Mat4_rotate$4(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *self = nullptr; - cocos2d::Vec3 arg1; /** axis */ + cocos2d::Vec3 *arg1; /** axis */ float arg2 = 0; /** angle */ cocos2d::Mat4 *arg3 = nullptr; /** dst */ @@ -6308,7 +6361,7 @@ static int _cocos2d_Mat4_rotate$4(lua_State *L) olua_check_object(L, 4, &arg3, "cc.Mat4"); // void rotate(const cocos2d::Vec3 &axis, float angle, cocos2d::Mat4 *dst) - self->rotate(arg1, arg2, arg3); + self->rotate(*arg1, arg2, arg3); olua_endinvoke(L); @@ -6622,13 +6675,13 @@ static int _cocos2d_Mat4_scale$5(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *self = nullptr; - cocos2d::Vec3 arg1; /** s */ + cocos2d::Vec3 *arg1; /** s */ olua_to_object(L, 1, &self, "cc.Mat4"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void scale(const cocos2d::Vec3 &s) - self->scale(arg1); + self->scale(*arg1); olua_endinvoke(L); @@ -6640,7 +6693,7 @@ static int _cocos2d_Mat4_scale$6(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *self = nullptr; - cocos2d::Vec3 arg1; /** s */ + cocos2d::Vec3 *arg1; /** s */ cocos2d::Mat4 *arg2 = nullptr; /** dst */ olua_to_object(L, 1, &self, "cc.Mat4"); @@ -6648,7 +6701,7 @@ static int _cocos2d_Mat4_scale$6(lua_State *L) olua_check_object(L, 3, &arg2, "cc.Mat4"); // void scale(const cocos2d::Vec3 &s, cocos2d::Mat4 *dst) - self->scale(arg1, arg2); + self->scale(*arg1, arg2); olua_endinvoke(L); @@ -6773,13 +6826,13 @@ static int _cocos2d_Mat4_set$3(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *self = nullptr; - cocos2d::Mat4 arg1; /** mat */ + cocos2d::Mat4 *arg1; /** mat */ olua_to_object(L, 1, &self, "cc.Mat4"); olua_check_object(L, 2, &arg1, "cc.Mat4"); // void set(const cocos2d::Mat4 &mat) - self->set(arg1); + self->set(*arg1); olua_endinvoke(L); @@ -6851,13 +6904,13 @@ static int _cocos2d_Mat4_subtract$1(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *self = nullptr; - cocos2d::Mat4 arg1; /** mat */ + cocos2d::Mat4 *arg1; /** mat */ olua_to_object(L, 1, &self, "cc.Mat4"); olua_check_object(L, 2, &arg1, "cc.Mat4"); // void subtract(const cocos2d::Mat4 &mat) - self->subtract(arg1); + self->subtract(*arg1); olua_endinvoke(L); @@ -6868,8 +6921,8 @@ static int _cocos2d_Mat4_subtract$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Mat4 arg1; /** m1 */ - cocos2d::Mat4 arg2; /** m2 */ + cocos2d::Mat4 *arg1; /** m1 */ + cocos2d::Mat4 *arg2; /** m2 */ cocos2d::Mat4 *arg3 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Mat4"); @@ -6877,7 +6930,7 @@ static int _cocos2d_Mat4_subtract$2(lua_State *L) olua_check_object(L, 3, &arg3, "cc.Mat4"); // static void subtract(const cocos2d::Mat4 &m1, const cocos2d::Mat4 &m2, cocos2d::Mat4 *dst) - cocos2d::Mat4::subtract(arg1, arg2, arg3); + cocos2d::Mat4::subtract(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -6912,13 +6965,13 @@ static int _cocos2d_Mat4_transform$1(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *arg1 = nullptr; /** mat */ - cocos2d::Vec4 arg2; /** p */ + cocos2d::Vec4 *arg2; /** p */ olua_check_object(L, 1, &arg1, "cc.Mat4"); olua_check_object(L, 2, &arg2, "cc.Vec4"); // @extend(cocos2d::Mat4Extend) static cocos2d::Vec4 transform(cocos2d::Mat4 *mat, const cocos2d::Vec4 &p) - cocos2d::Vec4 ret = cocos2d::Mat4Extend::transform(arg1, arg2); + cocos2d::Vec4 ret = cocos2d::Mat4Extend::transform(arg1, *arg2); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec4"); olua_endinvoke(L); @@ -6931,13 +6984,13 @@ static int _cocos2d_Mat4_transform$2(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *arg1 = nullptr; /** mat */ - cocos2d::Vec3 arg2; /** p */ + cocos2d::Vec3 *arg2; /** p */ olua_check_object(L, 1, &arg1, "cc.Mat4"); olua_check_object(L, 2, &arg2, "cc.Vec3"); // @extend(cocos2d::Mat4Extend) static cocos2d::Vec3 transform(cocos2d::Mat4 *mat, const cocos2d::Vec3 &p) - cocos2d::Vec3 ret = cocos2d::Mat4Extend::transform(arg1, arg2); + cocos2d::Vec3 ret = cocos2d::Mat4Extend::transform(arg1, *arg2); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec3"); olua_endinvoke(L); @@ -6950,13 +7003,13 @@ static int _cocos2d_Mat4_transform$3(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *arg1 = nullptr; /** mat */ - cocos2d::Vec2 arg2; /** p */ + cocos2d::Vec2 *arg2; /** p */ olua_check_object(L, 1, &arg1, "cc.Mat4"); olua_check_object(L, 2, &arg2, "cc.Vec2"); // @extend(cocos2d::Mat4Extend) static cocos2d::Vec2 transform(cocos2d::Mat4 *mat, const cocos2d::Vec2 &p) - cocos2d::Vec2 ret = cocos2d::Mat4Extend::transform(arg1, arg2); + cocos2d::Vec2 ret = cocos2d::Mat4Extend::transform(arg1, *arg2); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -7025,7 +7078,7 @@ static int _cocos2d_Mat4_transform(lua_State *L) { int num_args = lua_gettop(L); - if (num_args == 2) { + if (num_args == 1) { if ((olua_is_object(L, 1, "cc.Mat4")) && (olua_is_object(L, 2, "cc.Vec4"))) { // @extend(cocos2d::Mat4Extend) static cocos2d::Vec4 transform(cocos2d::Mat4 *mat, const cocos2d::Vec4 &p) return _cocos2d_Mat4_transform$1(L); @@ -7042,21 +7095,21 @@ static int _cocos2d_Mat4_transform(lua_State *L) // } } - if (num_args == 3) { + if (num_args == 2) { // if ((olua_is_object(L, 1, "cc.Mat4")) && (olua_canpack_object(L, 2, (cocos2d::Vec2 *)nullptr))) { // @extend(cocos2d::Mat4Extend) @unpack static cocos2d::Vec2 transform(cocos2d::Mat4 *mat, @pack const cocos2d::Vec2 &p) return _cocos2d_Mat4_transform$6(L); // } } - if (num_args == 4) { + if (num_args == 3) { // if ((olua_is_object(L, 1, "cc.Mat4")) && (olua_canpack_object(L, 2, (cocos2d::Vec3 *)nullptr))) { // @extend(cocos2d::Mat4Extend) @unpack static cocos2d::Vec3 transform(cocos2d::Mat4 *mat, @pack const cocos2d::Vec3 &p) return _cocos2d_Mat4_transform$5(L); // } } - if (num_args == 5) { + if (num_args == 4) { // if ((olua_is_object(L, 1, "cc.Mat4")) && (olua_canpack_object(L, 2, (cocos2d::Vec4 *)nullptr))) { // @extend(cocos2d::Mat4Extend) @unpack static cocos2d::Vec4 transform(cocos2d::Mat4 *mat, @pack const cocos2d::Vec4 &p) return _cocos2d_Mat4_transform$4(L); @@ -7091,7 +7144,7 @@ static int _cocos2d_Mat4_transformPoint$2(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *self = nullptr; - cocos2d::Vec3 arg1; /** point */ + cocos2d::Vec3 *arg1; /** point */ cocos2d::Vec3 *arg2 = nullptr; /** dst */ olua_to_object(L, 1, &self, "cc.Mat4"); @@ -7099,7 +7152,7 @@ static int _cocos2d_Mat4_transformPoint$2(lua_State *L) olua_check_object(L, 3, &arg2, "cc.Vec3"); // void transformPoint(const cocos2d::Vec3 &point, cocos2d::Vec3 *dst) - self->transformPoint(arg1, arg2); + self->transformPoint(*arg1, arg2); olua_endinvoke(L); @@ -7152,7 +7205,7 @@ static int _cocos2d_Mat4_transformVector$2(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *self = nullptr; - cocos2d::Vec3 arg1; /** vector */ + cocos2d::Vec3 *arg1; /** vector */ cocos2d::Vec3 *arg2 = nullptr; /** dst */ olua_to_object(L, 1, &self, "cc.Mat4"); @@ -7160,7 +7213,7 @@ static int _cocos2d_Mat4_transformVector$2(lua_State *L) olua_check_object(L, 3, &arg2, "cc.Vec3"); // void transformVector(const cocos2d::Vec3 &vector, cocos2d::Vec3 *dst) - self->transformVector(arg1, arg2); + self->transformVector(*arg1, arg2); olua_endinvoke(L); @@ -7216,7 +7269,7 @@ static int _cocos2d_Mat4_transformVector$5(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *self = nullptr; - cocos2d::Vec4 arg1; /** vector */ + cocos2d::Vec4 *arg1; /** vector */ cocos2d::Vec4 *arg2 = nullptr; /** dst */ olua_to_object(L, 1, &self, "cc.Mat4"); @@ -7224,7 +7277,7 @@ static int _cocos2d_Mat4_transformVector$5(lua_State *L) olua_check_object(L, 3, &arg2, "cc.Vec4"); // void transformVector(const cocos2d::Vec4 &vector, cocos2d::Vec4 *dst) - self->transformVector(arg1, arg2); + self->transformVector(*arg1, arg2); olua_endinvoke(L); @@ -7322,13 +7375,13 @@ static int _cocos2d_Mat4_translate$3(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *self = nullptr; - cocos2d::Vec3 arg1; /** t */ + cocos2d::Vec3 *arg1; /** t */ olua_to_object(L, 1, &self, "cc.Mat4"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void translate(const cocos2d::Vec3 &t) - self->translate(arg1); + self->translate(*arg1); olua_endinvoke(L); @@ -7340,7 +7393,7 @@ static int _cocos2d_Mat4_translate$4(lua_State *L) olua_startinvoke(L); cocos2d::Mat4 *self = nullptr; - cocos2d::Vec3 arg1; /** t */ + cocos2d::Vec3 *arg1; /** t */ cocos2d::Mat4 *arg2 = nullptr; /** dst */ olua_to_object(L, 1, &self, "cc.Mat4"); @@ -7348,7 +7401,7 @@ static int _cocos2d_Mat4_translate$4(lua_State *L) olua_check_object(L, 3, &arg2, "cc.Mat4"); // void translate(const cocos2d::Vec3 &t, cocos2d::Mat4 *dst) - self->translate(arg1, arg2); + self->translate(*arg1, arg2); olua_endinvoke(L); @@ -7408,8 +7461,7 @@ static int _cocos2d_Mat4_transpose(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Mat4(lua_State *L) +static int _cc_Mat4(lua_State *L) { oluacls_class(L, "cc.Mat4"); oluacls_func(L, "__add", _cocos2d_Mat4___add); @@ -7471,6 +7523,16 @@ OLUA_LIB int luaopen_cocos2d_Mat4(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Mat4(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Mat4"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Viewport___gc(lua_State *L) @@ -7721,8 +7783,7 @@ static int _cocos2d_Viewport_y(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Viewport(lua_State *L) +static int _cc_Viewport(lua_State *L) { oluacls_class(L, "cc.Viewport"); oluacls_func(L, "__gc", _cocos2d_Viewport___gc); @@ -7734,6 +7795,16 @@ OLUA_LIB int luaopen_cocos2d_Viewport(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Viewport(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Viewport"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ScissorRect___gc(lua_State *L) @@ -7984,8 +8055,7 @@ static int _cocos2d_ScissorRect_y(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ScissorRect(lua_State *L) +static int _cc_ScissorRect(lua_State *L) { oluacls_class(L, "cc.ScissorRect"); oluacls_func(L, "__gc", _cocos2d_ScissorRect___gc); @@ -7997,6 +8067,16 @@ OLUA_LIB int luaopen_cocos2d_ScissorRect(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ScissorRect(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ScissorRect"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Quaternion___gc(lua_State *L) @@ -8043,7 +8123,7 @@ static int _cocos2d_Quaternion_createFromAxisAngle(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** axis */ + cocos2d::Vec3 *arg1; /** axis */ float arg2 = 0; /** angle */ cocos2d::Quaternion *arg3 = nullptr; /** dst */ @@ -8052,7 +8132,7 @@ static int _cocos2d_Quaternion_createFromAxisAngle(lua_State *L) olua_check_object(L, 3, &arg3, "cc.Quaternion"); // static void createFromAxisAngle(const cocos2d::Vec3 &axis, float angle, cocos2d::Quaternion *dst) - cocos2d::Quaternion::createFromAxisAngle(arg1, arg2, arg3); + cocos2d::Quaternion::createFromAxisAngle(*arg1, arg2, arg3); olua_endinvoke(L); @@ -8063,14 +8143,14 @@ static int _cocos2d_Quaternion_createFromRotationMatrix(lua_State *L) { olua_startinvoke(L); - cocos2d::Mat4 arg1; /** m */ + cocos2d::Mat4 *arg1; /** m */ cocos2d::Quaternion *arg2 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Mat4"); olua_check_object(L, 2, &arg2, "cc.Quaternion"); // static void createFromRotationMatrix(const cocos2d::Mat4 &m, cocos2d::Quaternion *dst) - cocos2d::Quaternion::createFromRotationMatrix(arg1, arg2); + cocos2d::Quaternion::createFromRotationMatrix(*arg1, arg2); olua_endinvoke(L); @@ -8196,8 +8276,8 @@ static int _cocos2d_Quaternion_lerp(lua_State *L) { olua_startinvoke(L); - cocos2d::Quaternion arg1; /** q1 */ - cocos2d::Quaternion arg2; /** q2 */ + cocos2d::Quaternion *arg1; /** q1 */ + cocos2d::Quaternion *arg2; /** q2 */ float arg3 = 0; /** t */ cocos2d::Quaternion *arg4 = nullptr; /** dst */ @@ -8207,7 +8287,7 @@ static int _cocos2d_Quaternion_lerp(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Quaternion"); // static void lerp(const cocos2d::Quaternion &q1, const cocos2d::Quaternion &q2, float t, cocos2d::Quaternion *dst) - cocos2d::Quaternion::lerp(arg1, arg2, arg3, arg4); + cocos2d::Quaternion::lerp(*arg1, *arg2, arg3, arg4); olua_endinvoke(L); @@ -8219,13 +8299,13 @@ static int _cocos2d_Quaternion_multiply$1(lua_State *L) olua_startinvoke(L); cocos2d::Quaternion *self = nullptr; - cocos2d::Quaternion arg1; /** q */ + cocos2d::Quaternion *arg1; /** q */ olua_to_object(L, 1, &self, "cc.Quaternion"); olua_check_object(L, 2, &arg1, "cc.Quaternion"); // void multiply(const cocos2d::Quaternion &q) - self->multiply(arg1); + self->multiply(*arg1); olua_endinvoke(L); @@ -8236,8 +8316,8 @@ static int _cocos2d_Quaternion_multiply$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Quaternion arg1; /** q1 */ - cocos2d::Quaternion arg2; /** q2 */ + cocos2d::Quaternion *arg1; /** q1 */ + cocos2d::Quaternion *arg2; /** q2 */ cocos2d::Quaternion *arg3 = nullptr; /** dst */ olua_check_object(L, 1, &arg1, "cc.Quaternion"); @@ -8245,7 +8325,7 @@ static int _cocos2d_Quaternion_multiply$2(lua_State *L) olua_check_object(L, 3, &arg3, "cc.Quaternion"); // static void multiply(const cocos2d::Quaternion &q1, const cocos2d::Quaternion &q2, cocos2d::Quaternion *dst) - cocos2d::Quaternion::multiply(arg1, arg2, arg3); + cocos2d::Quaternion::multiply(*arg1, *arg2, arg3); olua_endinvoke(L); @@ -8335,12 +8415,12 @@ static int _cocos2d_Quaternion_new$4(lua_State *L) { olua_startinvoke(L); - cocos2d::Mat4 arg1; /** m */ + cocos2d::Mat4 *arg1; /** m */ olua_check_object(L, 1, &arg1, "cc.Mat4"); // cocos2d::Quaternion(const cocos2d::Mat4 &m) - cocos2d::Quaternion *ret = new cocos2d::Quaternion(arg1); + cocos2d::Quaternion *ret = new cocos2d::Quaternion(*arg1); int num_ret = olua_push_object(L, ret, "cc.Quaternion"); olua_postnew(L, ret); @@ -8353,14 +8433,14 @@ static int _cocos2d_Quaternion_new$5(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** axis */ + cocos2d::Vec3 *arg1; /** axis */ float arg2 = 0; /** angle */ olua_check_object(L, 1, &arg1, "cc.Vec3"); olua_check_number(L, 2, &arg2); // cocos2d::Quaternion(const cocos2d::Vec3 &axis, float angle) - cocos2d::Quaternion *ret = new cocos2d::Quaternion(arg1, arg2); + cocos2d::Quaternion *ret = new cocos2d::Quaternion(*arg1, arg2); int num_ret = olua_push_object(L, ret, "cc.Quaternion"); olua_postnew(L, ret); @@ -8472,13 +8552,13 @@ static int _cocos2d_Quaternion_set$3(lua_State *L) olua_startinvoke(L); cocos2d::Quaternion *self = nullptr; - cocos2d::Mat4 arg1; /** m */ + cocos2d::Mat4 *arg1; /** m */ olua_to_object(L, 1, &self, "cc.Quaternion"); olua_check_object(L, 2, &arg1, "cc.Mat4"); // void set(const cocos2d::Mat4 &m) - self->set(arg1); + self->set(*arg1); olua_endinvoke(L); @@ -8490,7 +8570,7 @@ static int _cocos2d_Quaternion_set$4(lua_State *L) olua_startinvoke(L); cocos2d::Quaternion *self = nullptr; - cocos2d::Vec3 arg1; /** axis */ + cocos2d::Vec3 *arg1; /** axis */ float arg2 = 0; /** angle */ olua_to_object(L, 1, &self, "cc.Quaternion"); @@ -8498,7 +8578,7 @@ static int _cocos2d_Quaternion_set$4(lua_State *L) olua_check_number(L, 3, &arg2); // void set(const cocos2d::Vec3 &axis, float angle) - self->set(arg1, arg2); + self->set(*arg1, arg2); olua_endinvoke(L); @@ -8510,13 +8590,13 @@ static int _cocos2d_Quaternion_set$5(lua_State *L) olua_startinvoke(L); cocos2d::Quaternion *self = nullptr; - cocos2d::Quaternion arg1; /** q */ + cocos2d::Quaternion *arg1; /** q */ olua_to_object(L, 1, &self, "cc.Quaternion"); olua_check_object(L, 2, &arg1, "cc.Quaternion"); // void set(const cocos2d::Quaternion &q) - self->set(arg1); + self->set(*arg1); olua_endinvoke(L); @@ -8583,8 +8663,8 @@ static int _cocos2d_Quaternion_slerp(lua_State *L) { olua_startinvoke(L); - cocos2d::Quaternion arg1; /** q1 */ - cocos2d::Quaternion arg2; /** q2 */ + cocos2d::Quaternion *arg1; /** q1 */ + cocos2d::Quaternion *arg2; /** q2 */ float arg3 = 0; /** t */ cocos2d::Quaternion *arg4 = nullptr; /** dst */ @@ -8594,7 +8674,7 @@ static int _cocos2d_Quaternion_slerp(lua_State *L) olua_check_object(L, 4, &arg4, "cc.Quaternion"); // static void slerp(const cocos2d::Quaternion &q1, const cocos2d::Quaternion &q2, float t, cocos2d::Quaternion *dst) - cocos2d::Quaternion::slerp(arg1, arg2, arg3, arg4); + cocos2d::Quaternion::slerp(*arg1, *arg2, arg3, arg4); olua_endinvoke(L); @@ -8605,10 +8685,10 @@ static int _cocos2d_Quaternion_squad(lua_State *L) { olua_startinvoke(L); - cocos2d::Quaternion arg1; /** q1 */ - cocos2d::Quaternion arg2; /** q2 */ - cocos2d::Quaternion arg3; /** s1 */ - cocos2d::Quaternion arg4; /** s2 */ + cocos2d::Quaternion *arg1; /** q1 */ + cocos2d::Quaternion *arg2; /** q2 */ + cocos2d::Quaternion *arg3; /** s1 */ + cocos2d::Quaternion *arg4; /** s2 */ float arg5 = 0; /** t */ cocos2d::Quaternion *arg6 = nullptr; /** dst */ @@ -8620,7 +8700,7 @@ static int _cocos2d_Quaternion_squad(lua_State *L) olua_check_object(L, 6, &arg6, "cc.Quaternion"); // static void squad(const cocos2d::Quaternion &q1, const cocos2d::Quaternion &q2, const cocos2d::Quaternion &s1, const cocos2d::Quaternion &s2, float t, cocos2d::Quaternion *dst) - cocos2d::Quaternion::squad(arg1, arg2, arg3, arg4, arg5, arg6); + cocos2d::Quaternion::squad(*arg1, *arg2, *arg3, *arg4, arg5, arg6); olua_endinvoke(L); @@ -8883,8 +8963,7 @@ static int _cocos2d_Quaternion_zero(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Quaternion(lua_State *L) +static int _cc_Quaternion(lua_State *L) { oluacls_class(L, "cc.Quaternion"); oluacls_func(L, "__gc", _cocos2d_Quaternion___gc); @@ -8910,10 +8989,8 @@ OLUA_LIB int luaopen_cocos2d_Quaternion(lua_State *L) oluacls_func(L, "toAxisAngle", _cocos2d_Quaternion_toAxisAngle); oluacls_func(L, "zero", _cocos2d_Quaternion_zero); oluacls_prop(L, "conjugated", _cocos2d_Quaternion_getConjugated, nullptr); - oluacls_prop(L, "identity", _cocos2d_Quaternion_isIdentity, _cocos2d_Quaternion_setIdentity); oluacls_prop(L, "inversed", _cocos2d_Quaternion_getInversed, nullptr); oluacls_prop(L, "normalized", _cocos2d_Quaternion_getNormalized, nullptr); - oluacls_prop(L, "zero", _cocos2d_Quaternion_isZero, nullptr); oluacls_prop(L, "w", _cocos2d_Quaternion_w, _cocos2d_Quaternion_w); oluacls_prop(L, "x", _cocos2d_Quaternion_x, _cocos2d_Quaternion_x); oluacls_prop(L, "y", _cocos2d_Quaternion_y, _cocos2d_Quaternion_y); @@ -8922,6 +8999,16 @@ OLUA_LIB int luaopen_cocos2d_Quaternion(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Quaternion(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Quaternion"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_AffineTransform___gc(lua_State *L) @@ -9284,8 +9371,7 @@ static int _cocos2d_AffineTransform_ty(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_AffineTransform(lua_State *L) +static int _cc_AffineTransform(lua_State *L) { oluacls_class(L, "cc.AffineTransform"); oluacls_func(L, "__gc", _cocos2d_AffineTransform___gc); @@ -9300,6 +9386,16 @@ OLUA_LIB int luaopen_cocos2d_AffineTransform(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_AffineTransform(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::AffineTransform"); + } + return 1; +} OLUA_END_DECLS static int _GLContextAttrs___gc(lua_State *L) @@ -9718,8 +9814,7 @@ static int _GLContextAttrs_stencilBits(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_GLContextAttrs(lua_State *L) +static int _cc_GLContextAttrs(lua_State *L) { oluacls_class(L, "cc.GLContextAttrs"); oluacls_func(L, "__gc", _GLContextAttrs___gc); @@ -9734,6 +9829,16 @@ OLUA_LIB int luaopen_GLContextAttrs(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_GLContextAttrs(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: GLContextAttrs"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Tex2F___gc(lua_State *L) @@ -9927,8 +10032,7 @@ static int _cocos2d_Tex2F_v(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Tex2F(lua_State *L) +static int _cc_Tex2F(lua_State *L) { oluacls_class(L, "cc.Tex2F"); oluacls_func(L, "__gc", _cocos2d_Tex2F___gc); @@ -9939,6 +10043,16 @@ OLUA_LIB int luaopen_cocos2d_Tex2F(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Tex2F(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Tex2F"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_T2F_Quad___gc(lua_State *L) @@ -9987,13 +10101,13 @@ static int _cocos2d_T2F_Quad_bl$2(lua_State *L) olua_startinvoke(L); cocos2d::T2F_Quad *self = nullptr; - cocos2d::Tex2F arg1; /** bl */ + cocos2d::Tex2F *arg1; /** bl */ olua_to_object(L, 1, &self, "cc.T2F_Quad"); olua_check_object(L, 2, &arg1, "cc.Tex2F"); // cocos2d::Tex2F bl - self->bl = arg1; + self->bl = *arg1; olua_endinvoke(L); @@ -10043,13 +10157,13 @@ static int _cocos2d_T2F_Quad_br$2(lua_State *L) olua_startinvoke(L); cocos2d::T2F_Quad *self = nullptr; - cocos2d::Tex2F arg1; /** br */ + cocos2d::Tex2F *arg1; /** br */ olua_to_object(L, 1, &self, "cc.T2F_Quad"); olua_check_object(L, 2, &arg1, "cc.Tex2F"); // cocos2d::Tex2F br - self->br = arg1; + self->br = *arg1; olua_endinvoke(L); @@ -10099,13 +10213,13 @@ static int _cocos2d_T2F_Quad_tl$2(lua_State *L) olua_startinvoke(L); cocos2d::T2F_Quad *self = nullptr; - cocos2d::Tex2F arg1; /** tl */ + cocos2d::Tex2F *arg1; /** tl */ olua_to_object(L, 1, &self, "cc.T2F_Quad"); olua_check_object(L, 2, &arg1, "cc.Tex2F"); // cocos2d::Tex2F tl - self->tl = arg1; + self->tl = *arg1; olua_endinvoke(L); @@ -10155,13 +10269,13 @@ static int _cocos2d_T2F_Quad_tr$2(lua_State *L) olua_startinvoke(L); cocos2d::T2F_Quad *self = nullptr; - cocos2d::Tex2F arg1; /** tr */ + cocos2d::Tex2F *arg1; /** tr */ olua_to_object(L, 1, &self, "cc.T2F_Quad"); olua_check_object(L, 2, &arg1, "cc.Tex2F"); // cocos2d::Tex2F tr - self->tr = arg1; + self->tr = *arg1; olua_endinvoke(L); @@ -10189,8 +10303,7 @@ static int _cocos2d_T2F_Quad_tr(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_T2F_Quad(lua_State *L) +static int _cc_T2F_Quad(lua_State *L) { oluacls_class(L, "cc.T2F_Quad"); oluacls_func(L, "__gc", _cocos2d_T2F_Quad___gc); @@ -10202,6 +10315,16 @@ OLUA_LIB int luaopen_cocos2d_T2F_Quad(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_T2F_Quad(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::T2F_Quad"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ccBezierConfig___gc(lua_State *L) @@ -10250,13 +10373,13 @@ static int _cocos2d_ccBezierConfig_controlPoint_1$2(lua_State *L) olua_startinvoke(L); cocos2d::ccBezierConfig *self = nullptr; - cocos2d::Vec2 arg1; /** controlPoint_1 */ + cocos2d::Vec2 *arg1; /** controlPoint_1 */ olua_to_object(L, 1, &self, "cc.ccBezierConfig"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 controlPoint_1 - self->controlPoint_1 = arg1; + self->controlPoint_1 = *arg1; olua_endinvoke(L); @@ -10306,13 +10429,13 @@ static int _cocos2d_ccBezierConfig_controlPoint_2$2(lua_State *L) olua_startinvoke(L); cocos2d::ccBezierConfig *self = nullptr; - cocos2d::Vec2 arg1; /** controlPoint_2 */ + cocos2d::Vec2 *arg1; /** controlPoint_2 */ olua_to_object(L, 1, &self, "cc.ccBezierConfig"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 controlPoint_2 - self->controlPoint_2 = arg1; + self->controlPoint_2 = *arg1; olua_endinvoke(L); @@ -10362,13 +10485,13 @@ static int _cocos2d_ccBezierConfig_endPosition$2(lua_State *L) olua_startinvoke(L); cocos2d::ccBezierConfig *self = nullptr; - cocos2d::Vec2 arg1; /** endPosition */ + cocos2d::Vec2 *arg1; /** endPosition */ olua_to_object(L, 1, &self, "cc.ccBezierConfig"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 endPosition - self->endPosition = arg1; + self->endPosition = *arg1; olua_endinvoke(L); @@ -10396,8 +10519,7 @@ static int _cocos2d_ccBezierConfig_endPosition(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ccBezierConfig(lua_State *L) +static int _cc_ccBezierConfig(lua_State *L) { oluacls_class(L, "cc.ccBezierConfig"); oluacls_func(L, "__gc", _cocos2d_ccBezierConfig___gc); @@ -10408,6 +10530,16 @@ OLUA_LIB int luaopen_cocos2d_ccBezierConfig(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ccBezierConfig(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ccBezierConfig"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_TTFConfig___gc(lua_State *L) @@ -10994,8 +11126,7 @@ static int _cocos2d_TTFConfig_underline(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_TTFConfig(lua_State *L) +static int _cc_TTFConfig(lua_State *L) { oluacls_class(L, "cc.TTFConfig"); oluacls_func(L, "__gc", _cocos2d_TTFConfig___gc); @@ -11013,6 +11144,16 @@ OLUA_LIB int luaopen_cocos2d_TTFConfig(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TTFConfig(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::TTFConfig"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_BlendFunc___gc(lua_State *L) @@ -11151,8 +11292,7 @@ static int _cocos2d_BlendFunc_src(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_BlendFunc(lua_State *L) +static int _cc_BlendFunc(lua_State *L) { oluacls_class(L, "cc.BlendFunc"); oluacls_func(L, "__gc", _cocos2d_BlendFunc___gc); @@ -11166,6 +11306,16 @@ OLUA_LIB int luaopen_cocos2d_BlendFunc(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_BlendFunc(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::BlendFunc"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_Margin___gc(lua_State *L) @@ -11253,13 +11403,13 @@ static int _cocos2d_ui_Margin_equals(lua_State *L) olua_startinvoke(L); cocos2d::ui::Margin *self = nullptr; - cocos2d::ui::Margin arg1; /** target */ + cocos2d::ui::Margin *arg1; /** target */ olua_to_object(L, 1, &self, "cc.ui.Margin"); olua_check_object(L, 2, &arg1, "cc.ui.Margin"); // bool equals(const cocos2d::ui::Margin &target) - bool ret = self->equals(arg1); + bool ret = self->equals(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -11518,8 +11668,7 @@ static int _cocos2d_ui_Margin_top(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Margin(lua_State *L) +static int _cc_ui_Margin(lua_State *L) { oluacls_class(L, "cc.ui.Margin"); oluacls_func(L, "__gc", _cocos2d_ui_Margin___gc); @@ -11535,6 +11684,16 @@ OLUA_LIB int luaopen_cocos2d_ui_Margin(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ui_Margin(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Margin"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ResourceData___gc(lua_State *L) @@ -11786,8 +11945,7 @@ static int _cocos2d_ResourceData_type(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ResourceData(lua_State *L) +static int _cc_ResourceData(lua_State *L) { oluacls_class(L, "cc.ResourceData"); oluacls_func(L, "__gc", _cocos2d_ResourceData___gc); @@ -11799,6 +11957,16 @@ OLUA_LIB int luaopen_cocos2d_ResourceData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ResourceData(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ResourceData"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Quad3___gc(lua_State *L) @@ -11847,13 +12015,13 @@ static int _cocos2d_Quad3_bl$2(lua_State *L) olua_startinvoke(L); cocos2d::Quad3 *self = nullptr; - cocos2d::Vec3 arg1; /** bl */ + cocos2d::Vec3 *arg1; /** bl */ olua_to_object(L, 1, &self, "cc.Quad3"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // cocos2d::Vec3 bl - self->bl = arg1; + self->bl = *arg1; olua_endinvoke(L); @@ -11903,13 +12071,13 @@ static int _cocos2d_Quad3_br$2(lua_State *L) olua_startinvoke(L); cocos2d::Quad3 *self = nullptr; - cocos2d::Vec3 arg1; /** br */ + cocos2d::Vec3 *arg1; /** br */ olua_to_object(L, 1, &self, "cc.Quad3"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // cocos2d::Vec3 br - self->br = arg1; + self->br = *arg1; olua_endinvoke(L); @@ -11959,13 +12127,13 @@ static int _cocos2d_Quad3_tl$2(lua_State *L) olua_startinvoke(L); cocos2d::Quad3 *self = nullptr; - cocos2d::Vec3 arg1; /** tl */ + cocos2d::Vec3 *arg1; /** tl */ olua_to_object(L, 1, &self, "cc.Quad3"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // cocos2d::Vec3 tl - self->tl = arg1; + self->tl = *arg1; olua_endinvoke(L); @@ -12015,13 +12183,13 @@ static int _cocos2d_Quad3_tr$2(lua_State *L) olua_startinvoke(L); cocos2d::Quad3 *self = nullptr; - cocos2d::Vec3 arg1; /** tr */ + cocos2d::Vec3 *arg1; /** tr */ olua_to_object(L, 1, &self, "cc.Quad3"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // cocos2d::Vec3 tr - self->tr = arg1; + self->tr = *arg1; olua_endinvoke(L); @@ -12049,8 +12217,7 @@ static int _cocos2d_Quad3_tr(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Quad3(lua_State *L) +static int _cc_Quad3(lua_State *L) { oluacls_class(L, "cc.Quad3"); oluacls_func(L, "__gc", _cocos2d_Quad3___gc); @@ -12062,6 +12229,16 @@ OLUA_LIB int luaopen_cocos2d_Quad3(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Quad3(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Quad3"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Texture2D_PixelFormatInfo___gc(lua_State *L) @@ -12278,8 +12455,7 @@ static int _cocos2d_Texture2D_PixelFormatInfo_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Texture2D_PixelFormatInfo(lua_State *L) +static int _cc_Texture2D_PixelFormatInfo(lua_State *L) { oluacls_class(L, "cc.Texture2D.PixelFormatInfo"); oluacls_func(L, "__gc", _cocos2d_Texture2D_PixelFormatInfo___gc); @@ -12291,6 +12467,16 @@ OLUA_LIB int luaopen_cocos2d_Texture2D_PixelFormatInfo(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Texture2D_PixelFormatInfo(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Texture2D::PixelFormatInfo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_Controller_KeyStatus___gc(lua_State *L) @@ -12485,8 +12671,7 @@ static int _cocos2d_Controller_KeyStatus_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_Controller_KeyStatus(lua_State *L) +static int _cc_Controller_KeyStatus(lua_State *L) { oluacls_class(L, "cc.Controller.KeyStatus"); oluacls_func(L, "__gc", _cocos2d_Controller_KeyStatus___gc); @@ -12497,6 +12682,16 @@ OLUA_LIB int luaopen_cocos2d_Controller_KeyStatus(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Controller_KeyStatus(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::Controller::KeyStatus"); + } + return 1; +} OLUA_END_DECLS #if CC_USE_NAVMESH @@ -13098,8 +13293,7 @@ static int _cocos2d_NavMeshAgentParam_updateFlags(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_NavMeshAgentParam(lua_State *L) +static int _cc_NavMeshAgentParam(lua_State *L) { oluacls_class(L, "cc.NavMeshAgentParam"); oluacls_func(L, "__gc", _cocos2d_NavMeshAgentParam___gc); @@ -13118,6 +13312,16 @@ OLUA_LIB int luaopen_cocos2d_NavMeshAgentParam(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_NavMeshAgentParam(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::NavMeshAgentParam"); + } + return 1; +} OLUA_END_DECLS #endif @@ -13168,13 +13372,13 @@ static int _cocos2d_OffMeshLinkData_endPosition$2(lua_State *L) olua_startinvoke(L); cocos2d::OffMeshLinkData *self = nullptr; - cocos2d::Vec3 arg1; /** endPosition */ + cocos2d::Vec3 *arg1; /** endPosition */ olua_to_object(L, 1, &self, "cc.OffMeshLinkData"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // cocos2d::Vec3 endPosition - self->endPosition = arg1; + self->endPosition = *arg1; olua_endinvoke(L); @@ -13224,13 +13428,13 @@ static int _cocos2d_OffMeshLinkData_startPosition$2(lua_State *L) olua_startinvoke(L); cocos2d::OffMeshLinkData *self = nullptr; - cocos2d::Vec3 arg1; /** startPosition */ + cocos2d::Vec3 *arg1; /** startPosition */ olua_to_object(L, 1, &self, "cc.OffMeshLinkData"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // cocos2d::Vec3 startPosition - self->startPosition = arg1; + self->startPosition = *arg1; olua_endinvoke(L); @@ -13258,8 +13462,7 @@ static int _cocos2d_OffMeshLinkData_startPosition(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_OffMeshLinkData(lua_State *L) +static int _cc_OffMeshLinkData(lua_State *L) { oluacls_class(L, "cc.OffMeshLinkData"); oluacls_func(L, "__gc", _cocos2d_OffMeshLinkData___gc); @@ -13269,6 +13472,16 @@ OLUA_LIB int luaopen_cocos2d_OffMeshLinkData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_OffMeshLinkData(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::OffMeshLinkData"); + } + return 1; +} OLUA_END_DECLS #endif @@ -13744,8 +13957,7 @@ static int _cocos2d_backend_BlendDescriptor_writeMask(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_BlendDescriptor(lua_State *L) +static int _ccb_BlendDescriptor(lua_State *L) { oluacls_class(L, "ccb.BlendDescriptor"); oluacls_func(L, "__gc", _cocos2d_backend_BlendDescriptor___gc); @@ -13761,6 +13973,16 @@ OLUA_LIB int luaopen_cocos2d_backend_BlendDescriptor(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_BlendDescriptor(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::BlendDescriptor"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_SamplerDescriptor___gc(lua_State *L) @@ -14070,8 +14292,7 @@ static int _cocos2d_backend_SamplerDescriptor_tAddressMode(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_SamplerDescriptor(lua_State *L) +static int _ccb_SamplerDescriptor(lua_State *L) { oluacls_class(L, "ccb.SamplerDescriptor"); oluacls_func(L, "__gc", _cocos2d_backend_SamplerDescriptor___gc); @@ -14084,6 +14305,16 @@ OLUA_LIB int luaopen_cocos2d_backend_SamplerDescriptor(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_SamplerDescriptor(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::SamplerDescriptor"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_TextureInfo___gc(lua_State *L) @@ -14321,8 +14552,7 @@ static int _cocos2d_backend_TextureInfo_textures(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_TextureInfo(lua_State *L) +static int _ccb_TextureInfo(lua_State *L) { oluacls_class(L, "ccb.TextureInfo"); oluacls_func(L, "__gc", _cocos2d_backend_TextureInfo___gc); @@ -14335,6 +14565,16 @@ OLUA_LIB int luaopen_cocos2d_backend_TextureInfo(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_TextureInfo(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::TextureInfo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_AttributeBindInfo___gc(lua_State *L) @@ -14585,8 +14825,7 @@ static int _cocos2d_backend_AttributeBindInfo_type(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_AttributeBindInfo(lua_State *L) +static int _ccb_AttributeBindInfo(lua_State *L) { oluacls_class(L, "ccb.AttributeBindInfo"); oluacls_func(L, "__gc", _cocos2d_backend_AttributeBindInfo___gc); @@ -14598,6 +14837,16 @@ OLUA_LIB int luaopen_cocos2d_backend_AttributeBindInfo(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_AttributeBindInfo(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::AttributeBindInfo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_UniformInfo___gc(lua_State *L) @@ -15072,8 +15321,7 @@ static int _cocos2d_backend_UniformInfo_type(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_UniformInfo(lua_State *L) +static int _ccb_UniformInfo(lua_State *L) { oluacls_class(L, "ccb.UniformInfo"); oluacls_func(L, "__gc", _cocos2d_backend_UniformInfo___gc); @@ -15089,6 +15337,16 @@ OLUA_LIB int luaopen_cocos2d_backend_UniformInfo(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_UniformInfo(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::UniformInfo"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_TextureDescriptor___gc(lua_State *L) @@ -15305,13 +15563,13 @@ static int _cocos2d_backend_TextureDescriptor_samplerDescriptor$2(lua_State *L) olua_startinvoke(L); cocos2d::backend::TextureDescriptor *self = nullptr; - cocos2d::backend::SamplerDescriptor arg1; /** samplerDescriptor */ + cocos2d::backend::SamplerDescriptor *arg1; /** samplerDescriptor */ olua_to_object(L, 1, &self, "ccb.TextureDescriptor"); olua_check_object(L, 2, &arg1, "ccb.SamplerDescriptor"); // cocos2d::backend::SamplerDescriptor samplerDescriptor - self->samplerDescriptor = arg1; + self->samplerDescriptor = *arg1; olua_endinvoke(L); @@ -15563,8 +15821,7 @@ static int _cocos2d_backend_TextureDescriptor_width(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_TextureDescriptor(lua_State *L) +static int _ccb_TextureDescriptor(lua_State *L) { oluacls_class(L, "ccb.TextureDescriptor"); oluacls_func(L, "__gc", _cocos2d_backend_TextureDescriptor___gc); @@ -15580,6 +15837,16 @@ OLUA_LIB int luaopen_cocos2d_backend_TextureDescriptor(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_TextureDescriptor(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::TextureDescriptor"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_StencilDescriptor___gc(lua_State *L) @@ -15942,8 +16209,7 @@ static int _cocos2d_backend_StencilDescriptor_writeMask(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_StencilDescriptor(lua_State *L) +static int _ccb_StencilDescriptor(lua_State *L) { oluacls_class(L, "ccb.StencilDescriptor"); oluacls_func(L, "__gc", _cocos2d_backend_StencilDescriptor___gc); @@ -15957,6 +16223,16 @@ OLUA_LIB int luaopen_cocos2d_backend_StencilDescriptor(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_StencilDescriptor(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::StencilDescriptor"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_DepthStencilDescriptor___gc(lua_State *L) @@ -16005,13 +16281,13 @@ static int _cocos2d_backend_DepthStencilDescriptor_backFaceStencil$2(lua_State * olua_startinvoke(L); cocos2d::backend::DepthStencilDescriptor *self = nullptr; - cocos2d::backend::StencilDescriptor arg1; /** backFaceStencil */ + cocos2d::backend::StencilDescriptor *arg1; /** backFaceStencil */ olua_to_object(L, 1, &self, "ccb.DepthStencilDescriptor"); olua_check_object(L, 2, &arg1, "ccb.StencilDescriptor"); // cocos2d::backend::StencilDescriptor backFaceStencil - self->backFaceStencil = arg1; + self->backFaceStencil = *arg1; olua_endinvoke(L); @@ -16229,13 +16505,13 @@ static int _cocos2d_backend_DepthStencilDescriptor_frontFaceStencil$2(lua_State olua_startinvoke(L); cocos2d::backend::DepthStencilDescriptor *self = nullptr; - cocos2d::backend::StencilDescriptor arg1; /** frontFaceStencil */ + cocos2d::backend::StencilDescriptor *arg1; /** frontFaceStencil */ olua_to_object(L, 1, &self, "ccb.DepthStencilDescriptor"); olua_check_object(L, 2, &arg1, "ccb.StencilDescriptor"); // cocos2d::backend::StencilDescriptor frontFaceStencil - self->frontFaceStencil = arg1; + self->frontFaceStencil = *arg1; olua_endinvoke(L); @@ -16319,8 +16595,7 @@ static int _cocos2d_backend_DepthStencilDescriptor_stencilTestEnabled(lua_State return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_DepthStencilDescriptor(lua_State *L) +static int _ccb_DepthStencilDescriptor(lua_State *L) { oluacls_class(L, "ccb.DepthStencilDescriptor"); oluacls_func(L, "__gc", _cocos2d_backend_DepthStencilDescriptor___gc); @@ -16334,6 +16609,16 @@ OLUA_LIB int luaopen_cocos2d_backend_DepthStencilDescriptor(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_DepthStencilDescriptor(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::DepthStencilDescriptor"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_backend_VertexLayout_Attribute___gc(lua_State *L) @@ -16701,8 +16986,7 @@ static int _cocos2d_backend_VertexLayout_Attribute_offset(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_backend_VertexLayout_Attribute(lua_State *L) +static int _ccb_VertexLayout_Attribute(lua_State *L) { oluacls_class(L, "ccb.VertexLayout.Attribute"); oluacls_func(L, "__gc", _cocos2d_backend_VertexLayout_Attribute___gc); @@ -16716,6 +17000,16 @@ OLUA_LIB int luaopen_cocos2d_backend_VertexLayout_Attribute(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccb_VertexLayout_Attribute(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::backend::VertexLayout::Attribute"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_types_VectorString___gc(lua_State *L) @@ -17189,8 +17483,7 @@ static int _cocos2d_types_VectorString_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_types_VectorString(lua_State *L) +static int _cc_VectorString(lua_State *L) { oluacls_class(L, "cc.VectorString"); oluacls_func(L, "__gc", _cocos2d_types_VectorString___gc); @@ -17210,6 +17503,16 @@ OLUA_LIB int luaopen_cocos2d_types_VectorString(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_VectorString(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::types::VectorString"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_types_VectorInt___gc(lua_State *L) @@ -17683,8 +17986,7 @@ static int _cocos2d_types_VectorInt_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_types_VectorInt(lua_State *L) +static int _cc_VectorInt(lua_State *L) { oluacls_class(L, "cc.VectorInt"); oluacls_func(L, "__gc", _cocos2d_types_VectorInt___gc); @@ -17704,6 +18006,16 @@ OLUA_LIB int luaopen_cocos2d_types_VectorInt(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_VectorInt(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::types::VectorInt"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_types_ValueMap___gc(lua_State *L) @@ -18169,8 +18481,7 @@ static int _cocos2d_types_ValueMap_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_types_ValueMap(lua_State *L) +static int _cc_ValueMap(lua_State *L) { oluacls_class(L, "cc.ValueMap"); oluacls_func(L, "__gc", _cocos2d_types_ValueMap___gc); @@ -18190,6 +18501,16 @@ OLUA_LIB int luaopen_cocos2d_types_ValueMap(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_ValueMap(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::types::ValueMap"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_types_TMXTileFlags___gc(lua_State *L) @@ -18655,8 +18976,7 @@ static int _cocos2d_types_TMXTileFlags_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_types_TMXTileFlags(lua_State *L) +static int _cc_TMXTileFlags(lua_State *L) { oluacls_class(L, "cc.TMXTileFlags"); oluacls_func(L, "__gc", _cocos2d_types_TMXTileFlags___gc); @@ -18676,6 +18996,16 @@ OLUA_LIB int luaopen_cocos2d_types_TMXTileFlags(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_TMXTileFlags(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::types::TMXTileFlags"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_types_Vec2Array___gc(lua_State *L) @@ -18719,14 +19049,14 @@ static int _cocos2d_types_Vec2Array___newindex(lua_State *L) cocos2d::types::Vec2Array *self = nullptr; unsigned int arg1 = 0; /** idx */ - cocos2d::Vec2 arg2; /** v */ + cocos2d::Vec2 *arg2; /** v */ olua_to_object(L, 1, &self, "cc.Vec2Array"); olua_check_integer(L, 2, &arg1); olua_check_object(L, 3, &arg2, "cc.Vec2"); // void __newindex(unsigned int idx, const cocos2d::Vec2 &v) - self->__newindex(arg1, arg2); + self->__newindex(arg1, *arg2); olua_endinvoke(L); @@ -19107,13 +19437,13 @@ static int _cocos2d_types_Vec2Array_value$2(lua_State *L) olua_startinvoke(L); cocos2d::types::Vec2Array *self = nullptr; - cocos2d::Vec2 arg1; /** v */ + cocos2d::Vec2 *arg1; /** v */ olua_to_object(L, 1, &self, "cc.Vec2Array"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // @setter @name(value) void value(const cocos2d::Vec2 &v) - self->value(arg1); + self->value(*arg1); olua_endinvoke(L); @@ -19141,8 +19471,7 @@ static int _cocos2d_types_Vec2Array_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_types_Vec2Array(lua_State *L) +static int _cc_Vec2Array(lua_State *L) { oluacls_class(L, "cc.Vec2Array"); oluacls_func(L, "__gc", _cocos2d_types_Vec2Array___gc); @@ -19162,51 +19491,61 @@ OLUA_LIB int luaopen_cocos2d_types_Vec2Array(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cc_Vec2Array(lua_State *L) +{ + olua_require(L, "cocos2d_types", luaopen_cocos2d_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::types::Vec2Array"); + } + return 1; +} OLUA_END_DECLS OLUA_BEGIN_DECLS OLUA_LIB int luaopen_cocos2d_types(lua_State *L) { - olua_require(L, "cc.Vec2", luaopen_cocos2d_Vec2); - olua_require(L, "cc.Vec3", luaopen_cocos2d_Vec3); - olua_require(L, "cc.Vec4", luaopen_cocos2d_Vec4); - olua_require(L, "cc.Size", luaopen_cocos2d_Size); - olua_require(L, "cc.Rect", luaopen_cocos2d_Rect); - olua_require(L, "cc.Bounds", luaopen_cocos2d_Bounds); - olua_require(L, "cc.Mat4", luaopen_cocos2d_Mat4); - olua_require(L, "cc.Viewport", luaopen_cocos2d_Viewport); - olua_require(L, "cc.ScissorRect", luaopen_cocos2d_ScissorRect); - olua_require(L, "cc.Quaternion", luaopen_cocos2d_Quaternion); - olua_require(L, "cc.AffineTransform", luaopen_cocos2d_AffineTransform); - olua_require(L, "cc.GLContextAttrs", luaopen_GLContextAttrs); - olua_require(L, "cc.Tex2F", luaopen_cocos2d_Tex2F); - olua_require(L, "cc.T2F_Quad", luaopen_cocos2d_T2F_Quad); - olua_require(L, "cc.ccBezierConfig", luaopen_cocos2d_ccBezierConfig); - olua_require(L, "cc.TTFConfig", luaopen_cocos2d_TTFConfig); - olua_require(L, "cc.BlendFunc", luaopen_cocos2d_BlendFunc); - olua_require(L, "cc.ui.Margin", luaopen_cocos2d_ui_Margin); - olua_require(L, "cc.ResourceData", luaopen_cocos2d_ResourceData); - olua_require(L, "cc.Quad3", luaopen_cocos2d_Quad3); - olua_require(L, "cc.Texture2D.PixelFormatInfo", luaopen_cocos2d_Texture2D_PixelFormatInfo); - olua_require(L, "cc.Controller.KeyStatus", luaopen_cocos2d_Controller_KeyStatus); + olua_require(L, "cc.Vec2", _cc_Vec2); + olua_require(L, "cc.Vec3", _cc_Vec3); + olua_require(L, "cc.Vec4", _cc_Vec4); + olua_require(L, "cc.Size", _cc_Size); + olua_require(L, "cc.Rect", _cc_Rect); + olua_require(L, "cc.Bounds", _cc_Bounds); + olua_require(L, "cc.Mat4", _cc_Mat4); + olua_require(L, "cc.Viewport", _cc_Viewport); + olua_require(L, "cc.ScissorRect", _cc_ScissorRect); + olua_require(L, "cc.Quaternion", _cc_Quaternion); + olua_require(L, "cc.AffineTransform", _cc_AffineTransform); + olua_require(L, "cc.GLContextAttrs", _cc_GLContextAttrs); + olua_require(L, "cc.Tex2F", _cc_Tex2F); + olua_require(L, "cc.T2F_Quad", _cc_T2F_Quad); + olua_require(L, "cc.ccBezierConfig", _cc_ccBezierConfig); + olua_require(L, "cc.TTFConfig", _cc_TTFConfig); + olua_require(L, "cc.BlendFunc", _cc_BlendFunc); + olua_require(L, "cc.ui.Margin", _cc_ui_Margin); + olua_require(L, "cc.ResourceData", _cc_ResourceData); + olua_require(L, "cc.Quad3", _cc_Quad3); + olua_require(L, "cc.Texture2D.PixelFormatInfo", _cc_Texture2D_PixelFormatInfo); + olua_require(L, "cc.Controller.KeyStatus", _cc_Controller_KeyStatus); #if CC_USE_NAVMESH - olua_require(L, "cc.NavMeshAgentParam", luaopen_cocos2d_NavMeshAgentParam); - olua_require(L, "cc.OffMeshLinkData", luaopen_cocos2d_OffMeshLinkData); + olua_require(L, "cc.NavMeshAgentParam", _cc_NavMeshAgentParam); + olua_require(L, "cc.OffMeshLinkData", _cc_OffMeshLinkData); #endif - olua_require(L, "ccb.BlendDescriptor", luaopen_cocos2d_backend_BlendDescriptor); - olua_require(L, "ccb.SamplerDescriptor", luaopen_cocos2d_backend_SamplerDescriptor); - olua_require(L, "ccb.TextureInfo", luaopen_cocos2d_backend_TextureInfo); - olua_require(L, "ccb.AttributeBindInfo", luaopen_cocos2d_backend_AttributeBindInfo); - olua_require(L, "ccb.UniformInfo", luaopen_cocos2d_backend_UniformInfo); - olua_require(L, "ccb.TextureDescriptor", luaopen_cocos2d_backend_TextureDescriptor); - olua_require(L, "ccb.StencilDescriptor", luaopen_cocos2d_backend_StencilDescriptor); - olua_require(L, "ccb.DepthStencilDescriptor", luaopen_cocos2d_backend_DepthStencilDescriptor); - olua_require(L, "ccb.VertexLayout.Attribute", luaopen_cocos2d_backend_VertexLayout_Attribute); - olua_require(L, "cc.VectorString", luaopen_cocos2d_types_VectorString); - olua_require(L, "cc.VectorInt", luaopen_cocos2d_types_VectorInt); - olua_require(L, "cc.ValueMap", luaopen_cocos2d_types_ValueMap); - olua_require(L, "cc.TMXTileFlags", luaopen_cocos2d_types_TMXTileFlags); - olua_require(L, "cc.Vec2Array", luaopen_cocos2d_types_Vec2Array); + olua_require(L, "ccb.BlendDescriptor", _ccb_BlendDescriptor); + olua_require(L, "ccb.SamplerDescriptor", _ccb_SamplerDescriptor); + olua_require(L, "ccb.TextureInfo", _ccb_TextureInfo); + olua_require(L, "ccb.AttributeBindInfo", _ccb_AttributeBindInfo); + olua_require(L, "ccb.UniformInfo", _ccb_UniformInfo); + olua_require(L, "ccb.TextureDescriptor", _ccb_TextureDescriptor); + olua_require(L, "ccb.StencilDescriptor", _ccb_StencilDescriptor); + olua_require(L, "ccb.DepthStencilDescriptor", _ccb_DepthStencilDescriptor); + olua_require(L, "ccb.VertexLayout.Attribute", _ccb_VertexLayout_Attribute); + olua_require(L, "cc.VectorString", _cc_VectorString); + olua_require(L, "cc.VectorInt", _cc_VectorInt); + olua_require(L, "cc.ValueMap", _cc_ValueMap); + olua_require(L, "cc.TMXTileFlags", _cc_TMXTileFlags); + olua_require(L, "cc.Vec2Array", _cc_Vec2Array); return 0; } diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_types.h b/frameworks/cclua/src/lua-bindings/lua_cocos2d_types.h index bdcda8cf..9e4d5d4a 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_types.h +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_types.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_COCOS2D_TYPES_H__ #define __AUTO_GEN_LUA_COCOS2D_TYPES_H__ diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_ui.cpp b/frameworks/cclua/src/lua-bindings/lua_cocos2d_ui.cpp index 10ad1773..aae0db8a 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_ui.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_ui.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_cocos2d_ui.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -9,8 +9,7 @@ #include "ui/UIScrollViewBar.h" #include "ui/UILayoutManager.h" -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Widget_FocusDirection(lua_State *L) +static int _ccui_Widget_FocusDirection(lua_State *L) { oluacls_class(L, "ccui.Widget.FocusDirection"); oluacls_func(L, "__index", olua_indexerror); @@ -22,10 +21,19 @@ OLUA_LIB int luaopen_cocos2d_ui_Widget_FocusDirection(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Widget_PositionType(lua_State *L) +OLUA_LIB int luaopen_ccui_Widget_FocusDirection(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Widget::FocusDirection"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_Widget_PositionType(lua_State *L) { oluacls_class(L, "ccui.Widget.PositionType"); oluacls_func(L, "__index", olua_indexerror); @@ -35,10 +43,19 @@ OLUA_LIB int luaopen_cocos2d_ui_Widget_PositionType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Widget_SizeType(lua_State *L) +OLUA_LIB int luaopen_ccui_Widget_PositionType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Widget::PositionType"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_Widget_SizeType(lua_State *L) { oluacls_class(L, "ccui.Widget.SizeType"); oluacls_func(L, "__index", olua_indexerror); @@ -48,10 +65,19 @@ OLUA_LIB int luaopen_cocos2d_ui_Widget_SizeType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Widget_TouchEventType(lua_State *L) +OLUA_LIB int luaopen_ccui_Widget_SizeType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Widget::SizeType"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_Widget_TouchEventType(lua_State *L) { oluacls_class(L, "ccui.Widget.TouchEventType"); oluacls_func(L, "__index", olua_indexerror); @@ -63,10 +89,19 @@ OLUA_LIB int luaopen_cocos2d_ui_Widget_TouchEventType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Widget_TextureResType(lua_State *L) +OLUA_LIB int luaopen_ccui_Widget_TouchEventType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Widget::TouchEventType"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_Widget_TextureResType(lua_State *L) { oluacls_class(L, "ccui.Widget.TextureResType"); oluacls_func(L, "__index", olua_indexerror); @@ -76,10 +111,19 @@ OLUA_LIB int luaopen_cocos2d_ui_Widget_TextureResType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Widget_BrightStyle(lua_State *L) +OLUA_LIB int luaopen_ccui_Widget_TextureResType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Widget::TextureResType"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_Widget_BrightStyle(lua_State *L) { oluacls_class(L, "ccui.Widget.BrightStyle"); oluacls_func(L, "__index", olua_indexerror); @@ -90,6 +134,16 @@ OLUA_LIB int luaopen_cocos2d_ui_Widget_BrightStyle(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_Widget_BrightStyle(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Widget::BrightStyle"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_Widget_ccWidgetTouchCallback___call(lua_State *L) @@ -104,14 +158,23 @@ static int _cocos2d_ui_Widget_ccWidgetTouchCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Widget_ccWidgetTouchCallback(lua_State *L) +static int _ccui_Widget_ccWidgetTouchCallback(lua_State *L) { oluacls_class(L, "ccui.Widget.ccWidgetTouchCallback"); oluacls_func(L, "__call", _cocos2d_ui_Widget_ccWidgetTouchCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_Widget_ccWidgetTouchCallback(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Widget::ccWidgetTouchCallback"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_Widget_ccWidgetClickCallback___call(lua_State *L) @@ -126,14 +189,23 @@ static int _cocos2d_ui_Widget_ccWidgetClickCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Widget_ccWidgetClickCallback(lua_State *L) +static int _ccui_Widget_ccWidgetClickCallback(lua_State *L) { oluacls_class(L, "ccui.Widget.ccWidgetClickCallback"); oluacls_func(L, "__call", _cocos2d_ui_Widget_ccWidgetClickCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_Widget_ccWidgetClickCallback(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Widget::ccWidgetClickCallback"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_Widget_ccWidgetEventCallback___call(lua_State *L) @@ -148,14 +220,23 @@ static int _cocos2d_ui_Widget_ccWidgetEventCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Widget_ccWidgetEventCallback(lua_State *L) +static int _ccui_Widget_ccWidgetEventCallback(lua_State *L) { oluacls_class(L, "ccui.Widget.ccWidgetEventCallback"); oluacls_func(L, "__call", _cocos2d_ui_Widget_ccWidgetEventCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_Widget_ccWidgetEventCallback(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Widget::ccWidgetEventCallback"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_LayoutManager_doLayout(lua_State *L) @@ -176,14 +257,23 @@ static int _cocos2d_ui_LayoutManager_doLayout(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_LayoutManager(lua_State *L) +static int _ccui_LayoutManager(lua_State *L) { oluacls_class(L, "ccui.LayoutManager"); oluacls_func(L, "doLayout", _cocos2d_ui_LayoutManager_doLayout); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_LayoutManager(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::LayoutManager"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_LayoutParameterProtocol___gc(lua_State *L) @@ -227,8 +317,7 @@ static int _cocos2d_ui_LayoutParameterProtocol_getLayoutParameter(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_LayoutParameterProtocol(lua_State *L) +static int _ccui_LayoutParameterProtocol(lua_State *L) { oluacls_class(L, "ccui.LayoutParameterProtocol"); oluacls_func(L, "__gc", _cocos2d_ui_LayoutParameterProtocol___gc); @@ -238,6 +327,16 @@ OLUA_LIB int luaopen_cocos2d_ui_LayoutParameterProtocol(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_LayoutParameterProtocol(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::LayoutParameterProtocol"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_LayoutProtocol___gc(lua_State *L) @@ -333,8 +432,7 @@ static int _cocos2d_ui_LayoutProtocol_getLayoutElements(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_LayoutProtocol(lua_State *L) +static int _ccui_LayoutProtocol(lua_State *L) { oluacls_class(L, "ccui.LayoutProtocol"); oluacls_func(L, "__gc", _cocos2d_ui_LayoutProtocol___gc); @@ -348,6 +446,16 @@ OLUA_LIB int luaopen_cocos2d_ui_LayoutProtocol(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_LayoutProtocol(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::LayoutProtocol"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_Widget_addCCSEventListener(lua_State *L) @@ -368,14 +476,14 @@ static int _cocos2d_ui_Widget_addCCSEventListener(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *arg1, int arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *cb_arg1, int cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.Ref"); - olua_push_integer(L, arg2); + olua_push_object(L, cb_arg1, "cc.Ref"); + olua_push_integer(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -413,13 +521,13 @@ static int _cocos2d_ui_Widget_addClickEventListener(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.Ref"); + olua_push_object(L, cb_arg1, "cc.Ref"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -457,14 +565,14 @@ static int _cocos2d_ui_Widget_addTouchEventListener(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *arg1, cocos2d::ui::Widget::TouchEventType arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *cb_arg1, cocos2d::ui::Widget::TouchEventType cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.Ref"); - olua_push_enum(L, arg2); + olua_push_object(L, cb_arg1, "cc.Ref"); + olua_push_enum(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -966,7 +1074,7 @@ static int _cocos2d_ui_Widget_hitTest(lua_State *L) olua_startinvoke(L); cocos2d::ui::Widget *self = nullptr; - cocos2d::Vec2 arg1; /** pt */ + cocos2d::Vec2 *arg1; /** pt */ cocos2d::Camera *arg2 = nullptr; /** camera */ cocos2d::Vec3 *arg3 = nullptr; /** p */ @@ -976,7 +1084,7 @@ static int _cocos2d_ui_Widget_hitTest(lua_State *L) olua_check_object(L, 4, &arg3, "cc.Vec3"); // bool hitTest(const cocos2d::Vec2 &pt, const cocos2d::Camera *camera, cocos2d::Vec3 *p) - bool ret = self->hitTest(arg1, arg2, arg3); + bool ret = self->hitTest(*arg1, arg2, arg3); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -1046,13 +1154,13 @@ static int _cocos2d_ui_Widget_isClippingParentContainsPoint(lua_State *L) olua_startinvoke(L); cocos2d::ui::Widget *self = nullptr; - cocos2d::Vec2 arg1; /** pt */ + cocos2d::Vec2 *arg1; /** pt */ olua_to_object(L, 1, &self, "ccui.Widget"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // bool isClippingParentContainsPoint(const cocos2d::Vec2 &pt) - bool ret = self->isClippingParentContainsPoint(arg1); + bool ret = self->isClippingParentContainsPoint(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -1341,7 +1449,7 @@ static int _cocos2d_ui_Widget_onFocusChanged$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::Widget *arg1, cocos2d::ui::Widget *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::Widget *cb_arg1, cocos2d::ui::Widget *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -1349,8 +1457,8 @@ static int _cocos2d_ui_Widget_onFocusChanged$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "ccui.Widget"); - olua_push_object(L, arg2, "ccui.Widget"); + olua_push_object(L, cb_arg1, "ccui.Widget"); + olua_push_object(L, cb_arg2, "ccui.Widget"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -1433,13 +1541,13 @@ static int _cocos2d_ui_Widget_onNextFocusedWidget$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::Widget::FocusDirection arg1) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::Widget::FocusDirection cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); cocos2d::ui::Widget *ret = nullptr; /** ret */ if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_enum(L, arg1); + olua_push_enum(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -1843,13 +1951,13 @@ static int _cocos2d_ui_Widget_setPositionPercent(lua_State *L) olua_startinvoke(L); cocos2d::ui::Widget *self = nullptr; - cocos2d::Vec2 arg1; /** percent */ + cocos2d::Vec2 *arg1; /** percent */ olua_to_object(L, 1, &self, "ccui.Widget"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setPositionPercent(const cocos2d::Vec2 &percent) - self->setPositionPercent(arg1); + self->setPositionPercent(*arg1); olua_endinvoke(L); @@ -1897,13 +2005,13 @@ static int _cocos2d_ui_Widget_setSizePercent(lua_State *L) olua_startinvoke(L); cocos2d::ui::Widget *self = nullptr; - cocos2d::Vec2 arg1; /** percent */ + cocos2d::Vec2 *arg1; /** percent */ olua_to_object(L, 1, &self, "ccui.Widget"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setSizePercent(const cocos2d::Vec2 &percent) - self->setSizePercent(arg1); + self->setSizePercent(*arg1); olua_endinvoke(L); @@ -2003,13 +2111,13 @@ static int _cocos2d_ui_Widget_updateSizeAndPosition$2(lua_State *L) olua_startinvoke(L); cocos2d::ui::Widget *self = nullptr; - cocos2d::Size arg1; /** parentSize */ + cocos2d::Size *arg1; /** parentSize */ olua_to_object(L, 1, &self, "ccui.Widget"); olua_check_object(L, 2, &arg1, "cc.Size"); // void updateSizeAndPosition(const cocos2d::Size &parentSize) - self->updateSizeAndPosition(arg1); + self->updateSizeAndPosition(*arg1); olua_endinvoke(L); @@ -2037,8 +2145,7 @@ static int _cocos2d_ui_Widget_updateSizeAndPosition(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Widget(lua_State *L) +static int _ccui_Widget(lua_State *L) { oluacls_class(L, "ccui.Widget"); oluacls_func(L, "addCCSEventListener", _cocos2d_ui_Widget_addCCSEventListener); @@ -2131,7 +2238,6 @@ OLUA_LIB int luaopen_cocos2d_ui_Widget(lua_State *L) oluacls_prop(L, "focusEnabled", _cocos2d_ui_Widget_isFocusEnabled, _cocos2d_ui_Widget_setFocusEnabled); oluacls_prop(L, "focused", _cocos2d_ui_Widget_isFocused, _cocos2d_ui_Widget_setFocused); oluacls_prop(L, "highlighted", _cocos2d_ui_Widget_isHighlighted, _cocos2d_ui_Widget_setHighlighted); - oluacls_prop(L, "ignoreContentAdaptWithSize", _cocos2d_ui_Widget_isIgnoreContentAdaptWithSize, nullptr); oluacls_prop(L, "layoutComponentEnabled", _cocos2d_ui_Widget_isLayoutComponentEnabled, _cocos2d_ui_Widget_setLayoutComponentEnabled); oluacls_prop(L, "layoutParameter", _cocos2d_ui_Widget_getLayoutParameter, _cocos2d_ui_Widget_setLayoutParameter); oluacls_prop(L, "layoutSize", _cocos2d_ui_Widget_getLayoutSize, nullptr); @@ -2157,6 +2263,16 @@ OLUA_LIB int luaopen_cocos2d_ui_Widget(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_Widget(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Widget"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_Helper___gc(lua_State *L) @@ -2257,14 +2373,14 @@ static int _cocos2d_ui_Helper_restrictCapInsetRect(lua_State *L) { olua_startinvoke(L); - cocos2d::Rect arg1; /** capInsets */ - cocos2d::Size arg2; /** textureSize */ + cocos2d::Rect *arg1; /** capInsets */ + cocos2d::Size *arg2; /** textureSize */ olua_check_object(L, 1, &arg1, "cc.Rect"); olua_check_object(L, 2, &arg2, "cc.Size"); // static cocos2d::Rect restrictCapInsetRect(const cocos2d::Rect &capInsets, const cocos2d::Size &textureSize) - cocos2d::Rect ret = cocos2d::ui::Helper::restrictCapInsetRect(arg1, arg2); + cocos2d::Rect ret = cocos2d::ui::Helper::restrictCapInsetRect(*arg1, *arg2); int num_ret = olua_pushcopy_object(L, ret, "cc.Rect"); olua_endinvoke(L); @@ -2329,8 +2445,7 @@ static int _cocos2d_ui_Helper_seekWidgetByTag(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Helper(lua_State *L) +static int _ccui_Helper(lua_State *L) { oluacls_class(L, "ccui.Helper"); oluacls_func(L, "__gc", _cocos2d_ui_Helper___gc); @@ -2346,10 +2461,19 @@ OLUA_LIB int luaopen_cocos2d_ui_Helper(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Scale9Sprite_State(lua_State *L) +OLUA_LIB int luaopen_ccui_Helper(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Helper"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_Scale9Sprite_State(lua_State *L) { oluacls_class(L, "ccui.Scale9Sprite.State"); oluacls_func(L, "__index", olua_indexerror); @@ -2359,10 +2483,19 @@ OLUA_LIB int luaopen_cocos2d_ui_Scale9Sprite_State(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Scale9Sprite_RenderingType(lua_State *L) +OLUA_LIB int luaopen_ccui_Scale9Sprite_State(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Scale9Sprite::State"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_Scale9Sprite_RenderingType(lua_State *L) { oluacls_class(L, "ccui.Scale9Sprite.RenderingType"); oluacls_func(L, "__index", olua_indexerror); @@ -2372,6 +2505,16 @@ OLUA_LIB int luaopen_cocos2d_ui_Scale9Sprite_RenderingType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_Scale9Sprite_RenderingType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Scale9Sprite::RenderingType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_Scale9Sprite_copyTo(lua_State *L) @@ -2410,15 +2553,15 @@ static int _cocos2d_ui_Scale9Sprite_create$2(lua_State *L) olua_startinvoke(L); std::string arg1; /** file */ - cocos2d::Rect arg2; /** rect */ - cocos2d::Rect arg3; /** capInsets */ + cocos2d::Rect *arg2; /** rect */ + cocos2d::Rect *arg3; /** capInsets */ olua_check_string(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Rect"); olua_check_object(L, 3, &arg3, "cc.Rect"); // static cocos2d::ui::Scale9Sprite *create(const std::string &file, const cocos2d::Rect &rect, const cocos2d::Rect &capInsets) - cocos2d::ui::Scale9Sprite *ret = cocos2d::ui::Scale9Sprite::create(arg1, arg2, arg3); + cocos2d::ui::Scale9Sprite *ret = cocos2d::ui::Scale9Sprite::create(arg1, *arg2, *arg3); int num_ret = olua_push_object(L, ret, "ccui.Scale9Sprite"); olua_endinvoke(L); @@ -2430,14 +2573,14 @@ static int _cocos2d_ui_Scale9Sprite_create$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ std::string arg2; /** file */ olua_check_object(L, 1, &arg1, "cc.Rect"); olua_check_string(L, 2, &arg2); // static cocos2d::ui::Scale9Sprite *create(const cocos2d::Rect &capInsets, const std::string &file) - cocos2d::ui::Scale9Sprite *ret = cocos2d::ui::Scale9Sprite::create(arg1, arg2); + cocos2d::ui::Scale9Sprite *ret = cocos2d::ui::Scale9Sprite::create(*arg1, arg2); int num_ret = olua_push_object(L, ret, "ccui.Scale9Sprite"); olua_endinvoke(L); @@ -2450,13 +2593,13 @@ static int _cocos2d_ui_Scale9Sprite_create$4(lua_State *L) olua_startinvoke(L); std::string arg1; /** file */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ olua_check_string(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Rect"); // static cocos2d::ui::Scale9Sprite *create(const std::string &file, const cocos2d::Rect &rect) - cocos2d::ui::Scale9Sprite *ret = cocos2d::ui::Scale9Sprite::create(arg1, arg2); + cocos2d::ui::Scale9Sprite *ret = cocos2d::ui::Scale9Sprite::create(arg1, *arg2); int num_ret = olua_push_object(L, ret, "ccui.Scale9Sprite"); olua_endinvoke(L); @@ -2543,13 +2686,13 @@ static int _cocos2d_ui_Scale9Sprite_createWithSpriteFrame$2(lua_State *L) olua_startinvoke(L); cocos2d::SpriteFrame *arg1 = nullptr; /** spriteFrame */ - cocos2d::Rect arg2; /** capInsets */ + cocos2d::Rect *arg2; /** capInsets */ olua_check_object(L, 1, &arg1, "cc.SpriteFrame"); olua_check_object(L, 2, &arg2, "cc.Rect"); // static cocos2d::ui::Scale9Sprite *createWithSpriteFrame(cocos2d::SpriteFrame *spriteFrame, const cocos2d::Rect &capInsets) - cocos2d::ui::Scale9Sprite *ret = cocos2d::ui::Scale9Sprite::createWithSpriteFrame(arg1, arg2); + cocos2d::ui::Scale9Sprite *ret = cocos2d::ui::Scale9Sprite::createWithSpriteFrame(arg1, *arg2); int num_ret = olua_push_object(L, ret, "ccui.Scale9Sprite"); olua_endinvoke(L); @@ -2602,13 +2745,13 @@ static int _cocos2d_ui_Scale9Sprite_createWithSpriteFrameName$2(lua_State *L) olua_startinvoke(L); std::string arg1; /** spriteFrameName */ - cocos2d::Rect arg2; /** capInsets */ + cocos2d::Rect *arg2; /** capInsets */ olua_check_string(L, 1, &arg1); olua_check_object(L, 2, &arg2, "cc.Rect"); // static cocos2d::ui::Scale9Sprite *createWithSpriteFrameName(const std::string &spriteFrameName, const cocos2d::Rect &capInsets) - cocos2d::ui::Scale9Sprite *ret = cocos2d::ui::Scale9Sprite::createWithSpriteFrameName(arg1, arg2); + cocos2d::ui::Scale9Sprite *ret = cocos2d::ui::Scale9Sprite::createWithSpriteFrameName(arg1, *arg2); int num_ret = olua_push_object(L, ret, "ccui.Scale9Sprite"); olua_endinvoke(L); @@ -2832,9 +2975,9 @@ static int _cocos2d_ui_Scale9Sprite_init$2(lua_State *L) cocos2d::ui::Scale9Sprite *self = nullptr; cocos2d::Sprite *arg1 = nullptr; /** sprite */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ bool arg3 = false; /** rotated */ - cocos2d::Rect arg4; /** capInsets */ + cocos2d::Rect *arg4; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Scale9Sprite"); olua_check_object(L, 2, &arg1, "cc.Sprite"); @@ -2843,7 +2986,7 @@ static int _cocos2d_ui_Scale9Sprite_init$2(lua_State *L) olua_check_object(L, 5, &arg4, "cc.Rect"); // bool init(cocos2d::Sprite *sprite, const cocos2d::Rect &rect, bool rotated, const cocos2d::Rect &capInsets) - bool ret = self->init(arg1, arg2, arg3, arg4); + bool ret = self->init(arg1, *arg2, arg3, *arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -2857,8 +3000,8 @@ static int _cocos2d_ui_Scale9Sprite_init$3(lua_State *L) cocos2d::ui::Scale9Sprite *self = nullptr; cocos2d::Sprite *arg1 = nullptr; /** sprite */ - cocos2d::Rect arg2; /** rect */ - cocos2d::Rect arg3; /** capInsets */ + cocos2d::Rect *arg2; /** rect */ + cocos2d::Rect *arg3; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Scale9Sprite"); olua_check_object(L, 2, &arg1, "cc.Sprite"); @@ -2866,7 +3009,7 @@ static int _cocos2d_ui_Scale9Sprite_init$3(lua_State *L) olua_check_object(L, 4, &arg3, "cc.Rect"); // bool init(cocos2d::Sprite *sprite, const cocos2d::Rect &rect, const cocos2d::Rect &capInsets) - bool ret = self->init(arg1, arg2, arg3); + bool ret = self->init(arg1, *arg2, *arg3); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -2880,11 +3023,11 @@ static int _cocos2d_ui_Scale9Sprite_init$4(lua_State *L) cocos2d::ui::Scale9Sprite *self = nullptr; cocos2d::Sprite *arg1 = nullptr; /** sprite */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ bool arg3 = false; /** rotated */ - cocos2d::Vec2 arg4; /** offset */ - cocos2d::Size arg5; /** originalSize */ - cocos2d::Rect arg6; /** capInsets */ + cocos2d::Vec2 *arg4; /** offset */ + cocos2d::Size *arg5; /** originalSize */ + cocos2d::Rect *arg6; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Scale9Sprite"); olua_check_object(L, 2, &arg1, "cc.Sprite"); @@ -2895,7 +3038,7 @@ static int _cocos2d_ui_Scale9Sprite_init$4(lua_State *L) olua_check_object(L, 7, &arg6, "cc.Rect"); // bool init(cocos2d::Sprite *sprite, const cocos2d::Rect &rect, bool rotated, const cocos2d::Vec2 &offset, const cocos2d::Size &originalSize, const cocos2d::Rect &capInsets) - bool ret = self->init(arg1, arg2, arg3, arg4, arg5, arg6); + bool ret = self->init(arg1, *arg2, arg3, *arg4, *arg5, *arg6); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -2944,8 +3087,8 @@ static int _cocos2d_ui_Scale9Sprite_initWithFile$1(lua_State *L) cocos2d::ui::Scale9Sprite *self = nullptr; std::string arg1; /** file */ - cocos2d::Rect arg2; /** rect */ - cocos2d::Rect arg3; /** capInsets */ + cocos2d::Rect *arg2; /** rect */ + cocos2d::Rect *arg3; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Scale9Sprite"); olua_check_string(L, 2, &arg1); @@ -2953,7 +3096,7 @@ static int _cocos2d_ui_Scale9Sprite_initWithFile$1(lua_State *L) olua_check_object(L, 4, &arg3, "cc.Rect"); // bool initWithFile(const std::string &file, const cocos2d::Rect &rect, const cocos2d::Rect &capInsets) - bool ret = self->initWithFile(arg1, arg2, arg3); + bool ret = self->initWithFile(arg1, *arg2, *arg3); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -2966,7 +3109,7 @@ static int _cocos2d_ui_Scale9Sprite_initWithFile$2(lua_State *L) olua_startinvoke(L); cocos2d::ui::Scale9Sprite *self = nullptr; - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ std::string arg2; /** file */ olua_to_object(L, 1, &self, "ccui.Scale9Sprite"); @@ -2974,7 +3117,7 @@ static int _cocos2d_ui_Scale9Sprite_initWithFile$2(lua_State *L) olua_check_string(L, 3, &arg2); // bool initWithFile(const cocos2d::Rect &capInsets, const std::string &file) - bool ret = self->initWithFile(arg1, arg2); + bool ret = self->initWithFile(*arg1, arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -2988,14 +3131,14 @@ static int _cocos2d_ui_Scale9Sprite_initWithFile$3(lua_State *L) cocos2d::ui::Scale9Sprite *self = nullptr; std::string arg1; /** file */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ olua_to_object(L, 1, &self, "ccui.Scale9Sprite"); olua_check_string(L, 2, &arg1); olua_check_object(L, 3, &arg2, "cc.Rect"); // @using bool initWithFile(const std::string &file, const cocos2d::Rect &rect) - bool ret = self->initWithFile(arg1, arg2); + bool ret = self->initWithFile(arg1, *arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -3063,14 +3206,14 @@ static int _cocos2d_ui_Scale9Sprite_initWithSpriteFrame$1(lua_State *L) cocos2d::ui::Scale9Sprite *self = nullptr; cocos2d::SpriteFrame *arg1 = nullptr; /** spriteFrame */ - cocos2d::Rect arg2; /** capInsets */ + cocos2d::Rect *arg2; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Scale9Sprite"); olua_check_object(L, 2, &arg1, "cc.SpriteFrame"); olua_check_object(L, 3, &arg2, "cc.Rect"); // bool initWithSpriteFrame(cocos2d::SpriteFrame *spriteFrame, const cocos2d::Rect &capInsets) - bool ret = self->initWithSpriteFrame(arg1, arg2); + bool ret = self->initWithSpriteFrame(arg1, *arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -3126,14 +3269,14 @@ static int _cocos2d_ui_Scale9Sprite_initWithSpriteFrameName$1(lua_State *L) cocos2d::ui::Scale9Sprite *self = nullptr; std::string arg1; /** spriteFrameName */ - cocos2d::Rect arg2; /** capInsets */ + cocos2d::Rect *arg2; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Scale9Sprite"); olua_check_string(L, 2, &arg1); olua_check_object(L, 3, &arg2, "cc.Rect"); // bool initWithSpriteFrameName(const std::string &spriteFrameName, const cocos2d::Rect &capInsets) - bool ret = self->initWithSpriteFrameName(arg1, arg2); + bool ret = self->initWithSpriteFrameName(arg1, *arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -3235,13 +3378,13 @@ static int _cocos2d_ui_Scale9Sprite_resizableSpriteWithCapInsets(lua_State *L) olua_startinvoke(L); cocos2d::ui::Scale9Sprite *self = nullptr; - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Scale9Sprite"); olua_check_object(L, 2, &arg1, "cc.Rect"); // cocos2d::ui::Scale9Sprite *resizableSpriteWithCapInsets(const cocos2d::Rect &capInsets) - cocos2d::ui::Scale9Sprite *ret = self->resizableSpriteWithCapInsets(arg1); + cocos2d::ui::Scale9Sprite *ret = self->resizableSpriteWithCapInsets(*arg1); int num_ret = olua_push_object(L, ret, "ccui.Scale9Sprite"); olua_endinvoke(L); @@ -3254,13 +3397,13 @@ static int _cocos2d_ui_Scale9Sprite_setCapInsets(lua_State *L) olua_startinvoke(L); cocos2d::ui::Scale9Sprite *self = nullptr; - cocos2d::Rect arg1; /** insets */ + cocos2d::Rect *arg1; /** insets */ olua_to_object(L, 1, &self, "ccui.Scale9Sprite"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCapInsets(const cocos2d::Rect &insets) - self->setCapInsets(arg1); + self->setCapInsets(*arg1); olua_endinvoke(L); @@ -3344,13 +3487,13 @@ static int _cocos2d_ui_Scale9Sprite_setPreferredSize(lua_State *L) olua_startinvoke(L); cocos2d::ui::Scale9Sprite *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_to_object(L, 1, &self, "ccui.Scale9Sprite"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setPreferredSize(const cocos2d::Size &size) - self->setPreferredSize(arg1); + self->setPreferredSize(*arg1); olua_endinvoke(L); @@ -3399,14 +3542,14 @@ static int _cocos2d_ui_Scale9Sprite_setSpriteFrame$1(lua_State *L) cocos2d::ui::Scale9Sprite *self = nullptr; cocos2d::SpriteFrame *arg1 = nullptr; /** spriteFrame */ - cocos2d::Rect arg2; /** capInsets */ + cocos2d::Rect *arg2; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Scale9Sprite"); olua_check_object(L, 2, &arg1, "cc.SpriteFrame"); olua_check_object(L, 3, &arg2, "cc.Rect"); // void setSpriteFrame(cocos2d::SpriteFrame *spriteFrame, const cocos2d::Rect &capInsets) - self->setSpriteFrame(arg1, arg2); + self->setSpriteFrame(arg1, *arg2); olua_endinvoke(L); @@ -3501,9 +3644,9 @@ static int _cocos2d_ui_Scale9Sprite_updateWithSprite$1(lua_State *L) cocos2d::ui::Scale9Sprite *self = nullptr; cocos2d::Sprite *arg1 = nullptr; /** sprite */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ bool arg3 = false; /** rotated */ - cocos2d::Rect arg4; /** capInsets */ + cocos2d::Rect *arg4; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Scale9Sprite"); olua_check_object(L, 2, &arg1, "cc.Sprite"); @@ -3512,7 +3655,7 @@ static int _cocos2d_ui_Scale9Sprite_updateWithSprite$1(lua_State *L) olua_check_object(L, 5, &arg4, "cc.Rect"); // bool updateWithSprite(cocos2d::Sprite *sprite, const cocos2d::Rect &rect, bool rotated, const cocos2d::Rect &capInsets) - bool ret = self->updateWithSprite(arg1, arg2, arg3, arg4); + bool ret = self->updateWithSprite(arg1, *arg2, arg3, *arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -3526,11 +3669,11 @@ static int _cocos2d_ui_Scale9Sprite_updateWithSprite$2(lua_State *L) cocos2d::ui::Scale9Sprite *self = nullptr; cocos2d::Sprite *arg1 = nullptr; /** sprite */ - cocos2d::Rect arg2; /** rect */ + cocos2d::Rect *arg2; /** rect */ bool arg3 = false; /** rotated */ - cocos2d::Vec2 arg4; /** offset */ - cocos2d::Size arg5; /** originalSize */ - cocos2d::Rect arg6; /** capInsets */ + cocos2d::Vec2 *arg4; /** offset */ + cocos2d::Size *arg5; /** originalSize */ + cocos2d::Rect *arg6; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Scale9Sprite"); olua_check_object(L, 2, &arg1, "cc.Sprite"); @@ -3541,7 +3684,7 @@ static int _cocos2d_ui_Scale9Sprite_updateWithSprite$2(lua_State *L) olua_check_object(L, 7, &arg6, "cc.Rect"); // bool updateWithSprite(cocos2d::Sprite *sprite, const cocos2d::Rect &rect, bool rotated, const cocos2d::Vec2 &offset, const cocos2d::Size &originalSize, const cocos2d::Rect &capInsets) - bool ret = self->updateWithSprite(arg1, arg2, arg3, arg4, arg5, arg6); + bool ret = self->updateWithSprite(arg1, *arg2, arg3, *arg4, *arg5, *arg6); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -3572,8 +3715,7 @@ static int _cocos2d_ui_Scale9Sprite_updateWithSprite(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Scale9Sprite(lua_State *L) +static int _ccui_Scale9Sprite(lua_State *L) { oluacls_class(L, "ccui.Scale9Sprite"); oluacls_func(L, "copyTo", _cocos2d_ui_Scale9Sprite_copyTo); @@ -3623,10 +3765,19 @@ OLUA_LIB int luaopen_cocos2d_ui_Scale9Sprite(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_LayoutComponent_HorizontalEdge(lua_State *L) +OLUA_LIB int luaopen_ccui_Scale9Sprite(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Scale9Sprite"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_LayoutComponent_HorizontalEdge(lua_State *L) { oluacls_class(L, "ccui.LayoutComponent.HorizontalEdge"); oluacls_func(L, "__index", olua_indexerror); @@ -3638,10 +3789,19 @@ OLUA_LIB int luaopen_cocos2d_ui_LayoutComponent_HorizontalEdge(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_LayoutComponent_VerticalEdge(lua_State *L) +OLUA_LIB int luaopen_ccui_LayoutComponent_HorizontalEdge(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::LayoutComponent::HorizontalEdge"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_LayoutComponent_VerticalEdge(lua_State *L) { oluacls_class(L, "ccui.LayoutComponent.VerticalEdge"); oluacls_func(L, "__index", olua_indexerror); @@ -3653,6 +3813,16 @@ OLUA_LIB int luaopen_cocos2d_ui_LayoutComponent_VerticalEdge(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_LayoutComponent_VerticalEdge(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::LayoutComponent::VerticalEdge"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_LayoutComponent_bindLayoutComponent(lua_State *L) @@ -4129,13 +4299,13 @@ static int _cocos2d_ui_LayoutComponent_setAnchorPosition(lua_State *L) olua_startinvoke(L); cocos2d::ui::LayoutComponent *self = nullptr; - cocos2d::Point arg1; /** point */ + cocos2d::Point *arg1; /** point */ olua_to_object(L, 1, &self, "ccui.LayoutComponent"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setAnchorPosition(const cocos2d::Point &point) - self->setAnchorPosition(arg1); + self->setAnchorPosition(*arg1); olua_endinvoke(L); @@ -4201,13 +4371,13 @@ static int _cocos2d_ui_LayoutComponent_setPercentContentSize(lua_State *L) olua_startinvoke(L); cocos2d::ui::LayoutComponent *self = nullptr; - cocos2d::Vec2 arg1; /** percent */ + cocos2d::Vec2 *arg1; /** percent */ olua_to_object(L, 1, &self, "ccui.LayoutComponent"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setPercentContentSize(const cocos2d::Vec2 &percent) - self->setPercentContentSize(arg1); + self->setPercentContentSize(*arg1); olua_endinvoke(L); @@ -4309,13 +4479,13 @@ static int _cocos2d_ui_LayoutComponent_setPosition(lua_State *L) olua_startinvoke(L); cocos2d::ui::LayoutComponent *self = nullptr; - cocos2d::Point arg1; /** position */ + cocos2d::Point *arg1; /** position */ olua_to_object(L, 1, &self, "ccui.LayoutComponent"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setPosition(const cocos2d::Point &position) - self->setPosition(arg1); + self->setPosition(*arg1); olua_endinvoke(L); @@ -4417,13 +4587,13 @@ static int _cocos2d_ui_LayoutComponent_setSize(lua_State *L) olua_startinvoke(L); cocos2d::ui::LayoutComponent *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_to_object(L, 1, &self, "ccui.LayoutComponent"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setSize(const cocos2d::Size &size) - self->setSize(arg1); + self->setSize(*arg1); olua_endinvoke(L); @@ -4556,8 +4726,7 @@ static int _cocos2d_ui_LayoutComponent_setVerticalEdge(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_LayoutComponent(lua_State *L) +static int _ccui_LayoutComponent(lua_State *L) { oluacls_class(L, "ccui.LayoutComponent"); oluacls_func(L, "bindLayoutComponent", _cocos2d_ui_LayoutComponent_bindLayoutComponent); @@ -4638,10 +4807,19 @@ OLUA_LIB int luaopen_cocos2d_ui_LayoutComponent(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_LayoutParameter_Type(lua_State *L) +OLUA_LIB int luaopen_ccui_LayoutComponent(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::LayoutComponent"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_LayoutParameter_Type(lua_State *L) { oluacls_class(L, "ccui.LayoutParameter.Type"); oluacls_func(L, "__index", olua_indexerror); @@ -4652,6 +4830,16 @@ OLUA_LIB int luaopen_cocos2d_ui_LayoutParameter_Type(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_LayoutParameter_Type(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::LayoutParameter::Type"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_LayoutParameter_clone(lua_State *L) @@ -4772,21 +4960,20 @@ static int _cocos2d_ui_LayoutParameter_setMargin(lua_State *L) olua_startinvoke(L); cocos2d::ui::LayoutParameter *self = nullptr; - cocos2d::ui::Margin arg1; /** margin */ + cocos2d::ui::Margin *arg1; /** margin */ olua_to_object(L, 1, &self, "ccui.LayoutParameter"); olua_check_object(L, 2, &arg1, "cc.ui.Margin"); // void setMargin(const cocos2d::ui::Margin &margin) - self->setMargin(arg1); + self->setMargin(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_LayoutParameter(lua_State *L) +static int _ccui_LayoutParameter(lua_State *L) { oluacls_class(L, "ccui.LayoutParameter"); oluacls_func(L, "clone", _cocos2d_ui_LayoutParameter_clone); @@ -4802,10 +4989,19 @@ OLUA_LIB int luaopen_cocos2d_ui_LayoutParameter(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_LinearLayoutParameter_LinearGravity(lua_State *L) +OLUA_LIB int luaopen_ccui_LayoutParameter(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::LayoutParameter"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_LinearLayoutParameter_LinearGravity(lua_State *L) { oluacls_class(L, "ccui.LinearLayoutParameter.LinearGravity"); oluacls_func(L, "__index", olua_indexerror); @@ -4820,6 +5016,16 @@ OLUA_LIB int luaopen_cocos2d_ui_LinearLayoutParameter_LinearGravity(lua_State *L return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_LinearLayoutParameter_LinearGravity(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::LinearLayoutParameter::LinearGravity"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_LinearLayoutParameter_create(lua_State *L) @@ -4884,8 +5090,7 @@ static int _cocos2d_ui_LinearLayoutParameter_setGravity(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_LinearLayoutParameter(lua_State *L) +static int _ccui_LinearLayoutParameter(lua_State *L) { oluacls_class(L, "ccui.LinearLayoutParameter"); oluacls_func(L, "create", _cocos2d_ui_LinearLayoutParameter_create); @@ -4896,10 +5101,19 @@ OLUA_LIB int luaopen_cocos2d_ui_LinearLayoutParameter(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RelativeLayoutParameter_RelativeAlign(lua_State *L) +OLUA_LIB int luaopen_ccui_LinearLayoutParameter(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::LinearLayoutParameter"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_RelativeLayoutParameter_RelativeAlign(lua_State *L) { oluacls_class(L, "ccui.RelativeLayoutParameter.RelativeAlign"); oluacls_func(L, "__index", olua_indexerror); @@ -4929,6 +5143,16 @@ OLUA_LIB int luaopen_cocos2d_ui_RelativeLayoutParameter_RelativeAlign(lua_State return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_RelativeLayoutParameter_RelativeAlign(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RelativeLayoutParameter::RelativeAlign"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_RelativeLayoutParameter_create(lua_State *L) @@ -5063,8 +5287,7 @@ static int _cocos2d_ui_RelativeLayoutParameter_setRelativeToWidgetName(lua_State return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RelativeLayoutParameter(lua_State *L) +static int _ccui_RelativeLayoutParameter(lua_State *L) { oluacls_class(L, "ccui.RelativeLayoutParameter"); oluacls_func(L, "create", _cocos2d_ui_RelativeLayoutParameter_create); @@ -5081,10 +5304,19 @@ OLUA_LIB int luaopen_cocos2d_ui_RelativeLayoutParameter(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Layout_Type(lua_State *L) +OLUA_LIB int luaopen_ccui_RelativeLayoutParameter(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RelativeLayoutParameter"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_Layout_Type(lua_State *L) { oluacls_class(L, "ccui.Layout.Type"); oluacls_func(L, "__index", olua_indexerror); @@ -5096,10 +5328,19 @@ OLUA_LIB int luaopen_cocos2d_ui_Layout_Type(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Layout_ClippingType(lua_State *L) +OLUA_LIB int luaopen_ccui_Layout_Type(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Layout::Type"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_Layout_ClippingType(lua_State *L) { oluacls_class(L, "ccui.Layout.ClippingType"); oluacls_func(L, "__index", olua_indexerror); @@ -5109,10 +5350,19 @@ OLUA_LIB int luaopen_cocos2d_ui_Layout_ClippingType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Layout_BackGroundColorType(lua_State *L) +OLUA_LIB int luaopen_ccui_Layout_ClippingType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Layout::ClippingType"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_Layout_BackGroundColorType(lua_State *L) { oluacls_class(L, "ccui.Layout.BackGroundColorType"); oluacls_func(L, "__index", olua_indexerror); @@ -5123,6 +5373,16 @@ OLUA_LIB int luaopen_cocos2d_ui_Layout_BackGroundColorType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_Layout_BackGroundColorType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Layout::BackGroundColorType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_Layout_as(lua_State *L) @@ -5541,7 +5801,7 @@ static int _cocos2d_ui_Layout_onPassFocusToChild$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::Widget::FocusDirection arg1, cocos2d::ui::Widget *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::Widget::FocusDirection cb_arg1, cocos2d::ui::Widget *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); int ret = 0; /** ret */ @@ -5549,8 +5809,8 @@ static int _cocos2d_ui_Layout_onPassFocusToChild$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_enum(L, arg1); - olua_push_object(L, arg2, "ccui.Widget"); + olua_push_enum(L, cb_arg1); + olua_push_object(L, cb_arg2, "ccui.Widget"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -5733,13 +5993,13 @@ static int _cocos2d_ui_Layout_setBackGroundColorVector(lua_State *L) olua_startinvoke(L); cocos2d::ui::Layout *self = nullptr; - cocos2d::Vec2 arg1; /** vector */ + cocos2d::Vec2 *arg1; /** vector */ olua_to_object(L, 1, &self, "ccui.Layout"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setBackGroundColorVector(const cocos2d::Vec2 &vector) - self->setBackGroundColorVector(arg1); + self->setBackGroundColorVector(*arg1); olua_endinvoke(L); @@ -5812,13 +6072,13 @@ static int _cocos2d_ui_Layout_setBackGroundImageCapInsets(lua_State *L) olua_startinvoke(L); cocos2d::ui::Layout *self = nullptr; - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Layout"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setBackGroundImageCapInsets(const cocos2d::Rect &capInsets) - self->setBackGroundImageCapInsets(arg1); + self->setBackGroundImageCapInsets(*arg1); olua_endinvoke(L); @@ -5969,8 +6229,7 @@ static int _cocos2d_ui_Layout_setPassFocusToChild(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Layout(lua_State *L) +static int _ccui_Layout(lua_State *L) { oluacls_class(L, "ccui.Layout"); oluacls_func(L, "as", _cocos2d_ui_Layout_as); @@ -6032,6 +6291,16 @@ OLUA_LIB int luaopen_cocos2d_ui_Layout(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_Layout(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Layout"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_HBox_create$1(lua_State *L) @@ -6051,12 +6320,12 @@ static int _cocos2d_ui_HBox_create$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_check_object(L, 1, &arg1, "cc.Size"); // static cocos2d::ui::HBox *create(const cocos2d::Size &size) - cocos2d::ui::HBox *ret = cocos2d::ui::HBox::create(arg1); + cocos2d::ui::HBox *ret = cocos2d::ui::HBox::create(*arg1); int num_ret = olua_push_object(L, ret, "ccui.HBox"); olua_endinvoke(L); @@ -6090,13 +6359,13 @@ static int _cocos2d_ui_HBox_initWithSize(lua_State *L) olua_startinvoke(L); cocos2d::ui::HBox *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_to_object(L, 1, &self, "ccui.HBox"); olua_check_object(L, 2, &arg1, "cc.Size"); // bool initWithSize(const cocos2d::Size &size) - bool ret = self->initWithSize(arg1); + bool ret = self->initWithSize(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -6118,8 +6387,7 @@ static int _cocos2d_ui_HBox_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_HBox(lua_State *L) +static int _ccui_HBox(lua_State *L) { oluacls_class(L, "ccui.HBox"); oluacls_func(L, "create", _cocos2d_ui_HBox_create); @@ -6128,6 +6396,16 @@ OLUA_LIB int luaopen_cocos2d_ui_HBox(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_HBox(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::HBox"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_VBox_create$1(lua_State *L) @@ -6147,12 +6425,12 @@ static int _cocos2d_ui_VBox_create$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_check_object(L, 1, &arg1, "cc.Size"); // static cocos2d::ui::VBox *create(const cocos2d::Size &size) - cocos2d::ui::VBox *ret = cocos2d::ui::VBox::create(arg1); + cocos2d::ui::VBox *ret = cocos2d::ui::VBox::create(*arg1); int num_ret = olua_push_object(L, ret, "ccui.VBox"); olua_endinvoke(L); @@ -6186,13 +6464,13 @@ static int _cocos2d_ui_VBox_initWithSize(lua_State *L) olua_startinvoke(L); cocos2d::ui::VBox *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_to_object(L, 1, &self, "ccui.VBox"); olua_check_object(L, 2, &arg1, "cc.Size"); // bool initWithSize(const cocos2d::Size &size) - bool ret = self->initWithSize(arg1); + bool ret = self->initWithSize(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -6214,8 +6492,7 @@ static int _cocos2d_ui_VBox_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_VBox(lua_State *L) +static int _ccui_VBox(lua_State *L) { oluacls_class(L, "ccui.VBox"); oluacls_func(L, "create", _cocos2d_ui_VBox_create); @@ -6224,6 +6501,16 @@ OLUA_LIB int luaopen_cocos2d_ui_VBox(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_VBox(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::VBox"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_RelativeBox_create$1(lua_State *L) @@ -6243,12 +6530,12 @@ static int _cocos2d_ui_RelativeBox_create$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_check_object(L, 1, &arg1, "cc.Size"); // static cocos2d::ui::RelativeBox *create(const cocos2d::Size &size) - cocos2d::ui::RelativeBox *ret = cocos2d::ui::RelativeBox::create(arg1); + cocos2d::ui::RelativeBox *ret = cocos2d::ui::RelativeBox::create(*arg1); int num_ret = olua_push_object(L, ret, "ccui.RelativeBox"); olua_endinvoke(L); @@ -6282,13 +6569,13 @@ static int _cocos2d_ui_RelativeBox_initWithSize(lua_State *L) olua_startinvoke(L); cocos2d::ui::RelativeBox *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_to_object(L, 1, &self, "ccui.RelativeBox"); olua_check_object(L, 2, &arg1, "cc.Size"); // bool initWithSize(const cocos2d::Size &size) - bool ret = self->initWithSize(arg1); + bool ret = self->initWithSize(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -6310,8 +6597,7 @@ static int _cocos2d_ui_RelativeBox_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RelativeBox(lua_State *L) +static int _ccui_RelativeBox(lua_State *L) { oluacls_class(L, "ccui.RelativeBox"); oluacls_func(L, "create", _cocos2d_ui_RelativeBox_create); @@ -6320,6 +6606,16 @@ OLUA_LIB int luaopen_cocos2d_ui_RelativeBox(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_RelativeBox(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RelativeBox"); + } + return 1; +} OLUA_END_DECLS #if defined(CCLUA_OS_IOS) || defined(CCLUA_OS_ANDROID) @@ -6335,14 +6631,23 @@ static int _cocos2d_ui_WebView_ccWebViewCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_WebView_ccWebViewCallback(lua_State *L) +static int _ccui_WebView_ccWebViewCallback(lua_State *L) { oluacls_class(L, "ccui.WebView.ccWebViewCallback"); oluacls_func(L, "__call", _cocos2d_ui_WebView_ccWebViewCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_WebView_ccWebViewCallback(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::WebView::ccWebViewCallback"); + } + return 1; +} OLUA_END_DECLS #endif @@ -6809,14 +7114,14 @@ static int _cocos2d_ui_WebView_setOnDidFailLoading(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::WebView *arg1, const std::string &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::WebView *cb_arg1, const std::string &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "ccui.WebView"); - olua_push_string(L, arg2); + olua_push_object(L, cb_arg1, "ccui.WebView"); + olua_push_string(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -6854,14 +7159,14 @@ static int _cocos2d_ui_WebView_setOnDidFinishLoading(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::WebView *arg1, const std::string &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::WebView *cb_arg1, const std::string &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "ccui.WebView"); - olua_push_string(L, arg2); + olua_push_object(L, cb_arg1, "ccui.WebView"); + olua_push_string(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -6899,14 +7204,14 @@ static int _cocos2d_ui_WebView_setOnJSCallback(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::WebView *arg1, const std::string &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::WebView *cb_arg1, const std::string &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "ccui.WebView"); - olua_push_string(L, arg2); + olua_push_object(L, cb_arg1, "ccui.WebView"); + olua_push_string(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -6944,14 +7249,14 @@ static int _cocos2d_ui_WebView_setOnShouldStartLoading(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::WebView *arg1, const std::string &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::WebView *cb_arg1, const std::string &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); bool ret = false; /** ret */ if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "ccui.WebView"); - olua_push_string(L, arg2); + olua_push_object(L, cb_arg1, "ccui.WebView"); + olua_push_string(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -7028,8 +7333,7 @@ static int _cocos2d_ui_WebView_stopLoading(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_WebView(lua_State *L) +static int _ccui_WebView(lua_State *L) { oluacls_class(L, "ccui.WebView"); oluacls_func(L, "canGoBack", _cocos2d_ui_WebView_canGoBack); @@ -7067,12 +7371,21 @@ OLUA_LIB int luaopen_cocos2d_ui_WebView(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_WebView(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::WebView"); + } + return 1; +} OLUA_END_DECLS #endif #if defined(CCLUA_OS_IOS) || defined(CCLUA_OS_ANDROID) -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_VideoPlayer_EventType(lua_State *L) +static int _ccui_VideoPlayer_EventType(lua_State *L) { oluacls_class(L, "ccui.VideoPlayer.EventType"); oluacls_func(L, "__index", olua_indexerror); @@ -7085,6 +7398,16 @@ OLUA_LIB int luaopen_cocos2d_ui_VideoPlayer_EventType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_VideoPlayer_EventType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::VideoPlayer::EventType"); + } + return 1; +} OLUA_END_DECLS #endif @@ -7101,20 +7424,28 @@ static int _cocos2d_ui_VideoPlayer_ccVideoPlayerCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_VideoPlayer_ccVideoPlayerCallback(lua_State *L) +static int _ccui_VideoPlayer_ccVideoPlayerCallback(lua_State *L) { oluacls_class(L, "ccui.VideoPlayer.ccVideoPlayerCallback"); oluacls_func(L, "__call", _cocos2d_ui_VideoPlayer_ccVideoPlayerCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_VideoPlayer_ccVideoPlayerCallback(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::VideoPlayer::ccVideoPlayerCallback"); + } + return 1; +} OLUA_END_DECLS #endif #if defined(CCLUA_OS_IOS) || defined(CCLUA_OS_ANDROID) -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_VideoPlayer_StyleType(lua_State *L) +static int _ccui_VideoPlayer_StyleType(lua_State *L) { oluacls_class(L, "ccui.VideoPlayer.StyleType"); oluacls_func(L, "__index", olua_indexerror); @@ -7124,6 +7455,16 @@ OLUA_LIB int luaopen_cocos2d_ui_VideoPlayer_StyleType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_VideoPlayer_StyleType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::VideoPlayer::StyleType"); + } + return 1; +} OLUA_END_DECLS #endif @@ -7142,14 +7483,14 @@ static int _cocos2d_ui_VideoPlayer_addEventListener(lua_State *L) std::string cb_tag = "videoPlayerCallback"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *arg1, cocos2d::ui::VideoPlayer::EventType arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *cb_arg1, cocos2d::ui::VideoPlayer::EventType cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.Ref"); - olua_push_enum(L, arg2); + olua_push_object(L, cb_arg1, "cc.Ref"); + olua_push_enum(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -7505,8 +7846,7 @@ static int _cocos2d_ui_VideoPlayer_stop(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_VideoPlayer(lua_State *L) +static int _ccui_VideoPlayer(lua_State *L) { oluacls_class(L, "ccui.VideoPlayer"); oluacls_func(L, "addEventListener", _cocos2d_ui_VideoPlayer_addEventListener); @@ -7540,6 +7880,16 @@ OLUA_LIB int luaopen_cocos2d_ui_VideoPlayer(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_VideoPlayer(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::VideoPlayer"); + } + return 1; +} OLUA_END_DECLS #endif @@ -8281,8 +8631,7 @@ static int _cocos2d_ui_AbstractCheckButton_setZoomScale(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_AbstractCheckButton(lua_State *L) +static int _ccui_AbstractCheckButton(lua_State *L) { oluacls_class(L, "ccui.AbstractCheckButton"); oluacls_func(L, "getBackDisabledFile", _cocos2d_ui_AbstractCheckButton_getBackDisabledFile); @@ -8321,10 +8670,19 @@ OLUA_LIB int luaopen_cocos2d_ui_AbstractCheckButton(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_TabHeader_EventType(lua_State *L) +OLUA_LIB int luaopen_ccui_AbstractCheckButton(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::AbstractCheckButton"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_TabHeader_EventType(lua_State *L) { oluacls_class(L, "ccui.TabHeader.EventType"); oluacls_func(L, "__index", olua_indexerror); @@ -8334,6 +8692,16 @@ OLUA_LIB int luaopen_cocos2d_ui_TabHeader_EventType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_TabHeader_EventType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::TabHeader::EventType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_TabHeader_create$1(lua_State *L) @@ -8668,8 +9036,7 @@ static int _cocos2d_ui_TabHeader_setTitleText(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_TabHeader(lua_State *L) +static int _ccui_TabHeader(lua_State *L) { oluacls_class(L, "ccui.TabHeader"); oluacls_func(L, "create", _cocos2d_ui_TabHeader_create); @@ -8692,10 +9059,19 @@ OLUA_LIB int luaopen_cocos2d_ui_TabHeader(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_TabControl_Dock(lua_State *L) +OLUA_LIB int luaopen_ccui_TabHeader(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::TabHeader"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_TabControl_Dock(lua_State *L) { oluacls_class(L, "ccui.TabControl.Dock"); oluacls_func(L, "__index", olua_indexerror); @@ -8707,10 +9083,19 @@ OLUA_LIB int luaopen_cocos2d_ui_TabControl_Dock(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_TabControl_EventType(lua_State *L) +OLUA_LIB int luaopen_ccui_TabControl_Dock(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::TabControl::Dock"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_TabControl_EventType(lua_State *L) { oluacls_class(L, "ccui.TabControl.EventType"); oluacls_func(L, "__index", olua_indexerror); @@ -8719,6 +9104,16 @@ OLUA_LIB int luaopen_cocos2d_ui_TabControl_EventType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_TabControl_EventType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::TabControl::EventType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_TabControl_ccTabControlCallback___call(lua_State *L) @@ -8733,14 +9128,23 @@ static int _cocos2d_ui_TabControl_ccTabControlCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_TabControl_ccTabControlCallback(lua_State *L) +static int _ccui_TabControl_ccTabControlCallback(lua_State *L) { oluacls_class(L, "ccui.TabControl.ccTabControlCallback"); oluacls_func(L, "__call", _cocos2d_ui_TabControl_ccTabControlCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_TabControl_ccTabControlCallback(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::TabControl::ccTabControlCallback"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_TabControl_create(lua_State *L) @@ -9153,14 +9557,14 @@ static int _cocos2d_ui_TabControl_setTabChangedEventListener(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](int arg1, cocos2d::ui::TabControl::EventType arg2) { + arg1 = [cb_store, cb_name, cb_ctx](int cb_arg1, cocos2d::ui::TabControl::EventType cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_integer(L, arg1); - olua_push_enum(L, arg2); + olua_push_integer(L, cb_arg1); + olua_push_enum(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -9180,8 +9584,7 @@ static int _cocos2d_ui_TabControl_setTabChangedEventListener(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_TabControl(lua_State *L) +static int _ccui_TabControl(lua_State *L) { oluacls_class(L, "ccui.TabControl"); oluacls_func(L, "create", _cocos2d_ui_TabControl_create); @@ -9208,16 +9611,24 @@ OLUA_LIB int luaopen_cocos2d_ui_TabControl(lua_State *L) oluacls_prop(L, "headerHeight", _cocos2d_ui_TabControl_getHeaderHeight, _cocos2d_ui_TabControl_setHeaderHeight); oluacls_prop(L, "headerSelectedZoom", _cocos2d_ui_TabControl_getHeaderSelectedZoom, _cocos2d_ui_TabControl_setHeaderSelectedZoom); oluacls_prop(L, "headerWidth", _cocos2d_ui_TabControl_getHeaderWidth, _cocos2d_ui_TabControl_setHeaderWidth); - oluacls_prop(L, "ignoreHeadersTextureSize", _cocos2d_ui_TabControl_isIgnoreHeadersTextureSize, nullptr); oluacls_prop(L, "selectedTabIndex", _cocos2d_ui_TabControl_getSelectedTabIndex, nullptr); oluacls_prop(L, "tabCount", _cocos2d_ui_TabControl_getTabCount, nullptr); return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_ScrollView_Direction(lua_State *L) +OLUA_LIB int luaopen_ccui_TabControl(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::TabControl"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_ScrollView_Direction(lua_State *L) { oluacls_class(L, "ccui.ScrollView.Direction"); oluacls_func(L, "__index", olua_indexerror); @@ -9229,10 +9640,19 @@ OLUA_LIB int luaopen_cocos2d_ui_ScrollView_Direction(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_ScrollView_EventType(lua_State *L) +OLUA_LIB int luaopen_ccui_ScrollView_Direction(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::ScrollView::Direction"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_ScrollView_EventType(lua_State *L) { oluacls_class(L, "ccui.ScrollView.EventType"); oluacls_func(L, "__index", olua_indexerror); @@ -9253,6 +9673,16 @@ OLUA_LIB int luaopen_cocos2d_ui_ScrollView_EventType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_ScrollView_EventType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::ScrollView::EventType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_ScrollView_ccScrollViewCallback___call(lua_State *L) @@ -9267,14 +9697,23 @@ static int _cocos2d_ui_ScrollView_ccScrollViewCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_ScrollView_ccScrollViewCallback(lua_State *L) +static int _ccui_ScrollView_ccScrollViewCallback(lua_State *L) { oluacls_class(L, "ccui.ScrollView.ccScrollViewCallback"); oluacls_func(L, "__call", _cocos2d_ui_ScrollView_ccScrollViewCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_ScrollView_ccScrollViewCallback(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::ScrollView::ccScrollViewCallback"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_ScrollView_addEventListener(lua_State *L) @@ -9291,14 +9730,14 @@ static int _cocos2d_ui_ScrollView_addEventListener(lua_State *L) std::string cb_tag = "scrollViewCallback"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *arg1, cocos2d::ui::ScrollView::EventType arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *cb_arg1, cocos2d::ui::ScrollView::EventType cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.Ref"); - olua_push_enum(L, arg2); + olua_push_object(L, cb_arg1, "cc.Ref"); + olua_push_enum(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -9752,13 +10191,13 @@ static int _cocos2d_ui_ScrollView_jumpToPercentBothDirection(lua_State *L) olua_startinvoke(L); cocos2d::ui::ScrollView *self = nullptr; - cocos2d::Vec2 arg1; /** percent */ + cocos2d::Vec2 *arg1; /** percent */ olua_to_object(L, 1, &self, "ccui.ScrollView"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void jumpToPercentBothDirection(const cocos2d::Vec2 &percent) - self->jumpToPercentBothDirection(arg1); + self->jumpToPercentBothDirection(*arg1); olua_endinvoke(L); @@ -9964,7 +10403,7 @@ static int _cocos2d_ui_ScrollView_scrollToPercentBothDirection(lua_State *L) olua_startinvoke(L); cocos2d::ui::ScrollView *self = nullptr; - cocos2d::Vec2 arg1; /** percent */ + cocos2d::Vec2 *arg1; /** percent */ float arg2 = 0; /** timeInSec */ bool arg3 = false; /** attenuated */ @@ -9974,7 +10413,7 @@ static int _cocos2d_ui_ScrollView_scrollToPercentBothDirection(lua_State *L) olua_check_bool(L, 4, &arg3); // void scrollToPercentBothDirection(const cocos2d::Vec2 &percent, float timeInSec, bool attenuated) - self->scrollToPercentBothDirection(arg1, arg2, arg3); + self->scrollToPercentBothDirection(*arg1, arg2, arg3); olua_endinvoke(L); @@ -10164,13 +10603,13 @@ static int _cocos2d_ui_ScrollView_setInnerContainerPosition(lua_State *L) olua_startinvoke(L); cocos2d::ui::ScrollView *self = nullptr; - cocos2d::Vec2 arg1; /** pos */ + cocos2d::Vec2 *arg1; /** pos */ olua_to_object(L, 1, &self, "ccui.ScrollView"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setInnerContainerPosition(const cocos2d::Vec2 &pos) - self->setInnerContainerPosition(arg1); + self->setInnerContainerPosition(*arg1); olua_endinvoke(L); @@ -10182,13 +10621,13 @@ static int _cocos2d_ui_ScrollView_setInnerContainerSize(lua_State *L) olua_startinvoke(L); cocos2d::ui::ScrollView *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_to_object(L, 1, &self, "ccui.ScrollView"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setInnerContainerSize(const cocos2d::Size &size) - self->setInnerContainerSize(arg1); + self->setInnerContainerSize(*arg1); olua_endinvoke(L); @@ -10290,13 +10729,13 @@ static int _cocos2d_ui_ScrollView_setScrollBarPositionFromCorner(lua_State *L) olua_startinvoke(L); cocos2d::ui::ScrollView *self = nullptr; - cocos2d::Vec2 arg1; /** positionFromCorner */ + cocos2d::Vec2 *arg1; /** positionFromCorner */ olua_to_object(L, 1, &self, "ccui.ScrollView"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setScrollBarPositionFromCorner(const cocos2d::Vec2 &positionFromCorner) - self->setScrollBarPositionFromCorner(arg1); + self->setScrollBarPositionFromCorner(*arg1); olua_endinvoke(L); @@ -10308,13 +10747,13 @@ static int _cocos2d_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal(lu olua_startinvoke(L); cocos2d::ui::ScrollView *self = nullptr; - cocos2d::Vec2 arg1; /** positionFromCorner */ + cocos2d::Vec2 *arg1; /** positionFromCorner */ olua_to_object(L, 1, &self, "ccui.ScrollView"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setScrollBarPositionFromCornerForHorizontal(const cocos2d::Vec2 &positionFromCorner) - self->setScrollBarPositionFromCornerForHorizontal(arg1); + self->setScrollBarPositionFromCornerForHorizontal(*arg1); olua_endinvoke(L); @@ -10326,13 +10765,13 @@ static int _cocos2d_ui_ScrollView_setScrollBarPositionFromCornerForVertical(lua_ olua_startinvoke(L); cocos2d::ui::ScrollView *self = nullptr; - cocos2d::Vec2 arg1; /** positionFromCorner */ + cocos2d::Vec2 *arg1; /** positionFromCorner */ olua_to_object(L, 1, &self, "ccui.ScrollView"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setScrollBarPositionFromCornerForVertical(const cocos2d::Vec2 &positionFromCorner) - self->setScrollBarPositionFromCornerForVertical(arg1); + self->setScrollBarPositionFromCornerForVertical(*arg1); olua_endinvoke(L); @@ -10423,8 +10862,7 @@ static int _cocos2d_ui_ScrollView_stopScroll(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_ScrollView(lua_State *L) +static int _ccui_ScrollView(lua_State *L) { oluacls_class(L, "ccui.ScrollView"); oluacls_func(L, "addEventListener", _cocos2d_ui_ScrollView_addEventListener); @@ -10514,10 +10952,19 @@ OLUA_LIB int luaopen_cocos2d_ui_ScrollView(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_ListView_Gravity(lua_State *L) +OLUA_LIB int luaopen_ccui_ScrollView(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::ScrollView"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_ListView_Gravity(lua_State *L) { oluacls_class(L, "ccui.ListView.Gravity"); oluacls_func(L, "__index", olua_indexerror); @@ -10531,10 +10978,19 @@ OLUA_LIB int luaopen_cocos2d_ui_ListView_Gravity(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_ListView_EventType(lua_State *L) +OLUA_LIB int luaopen_ccui_ListView_Gravity(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::ListView::Gravity"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_ListView_EventType(lua_State *L) { oluacls_class(L, "ccui.ListView.EventType"); oluacls_func(L, "__index", olua_indexerror); @@ -10544,10 +11000,19 @@ OLUA_LIB int luaopen_cocos2d_ui_ListView_EventType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_ListView_MagneticType(lua_State *L) +OLUA_LIB int luaopen_ccui_ListView_EventType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::ListView::EventType"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_ListView_MagneticType(lua_State *L) { oluacls_class(L, "ccui.ListView.MagneticType"); oluacls_func(L, "__index", olua_indexerror); @@ -10562,6 +11027,16 @@ OLUA_LIB int luaopen_cocos2d_ui_ListView_MagneticType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_ListView_MagneticType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::ListView::MagneticType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_ListView_ccListViewCallback___call(lua_State *L) @@ -10576,14 +11051,23 @@ static int _cocos2d_ui_ListView_ccListViewCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_ListView_ccListViewCallback(lua_State *L) +static int _ccui_ListView_ccListViewCallback(lua_State *L) { oluacls_class(L, "ccui.ListView.ccListViewCallback"); oluacls_func(L, "__call", _cocos2d_ui_ListView_ccListViewCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_ListView_ccListViewCallback(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::ListView::ccListViewCallback"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_ListView_addEventListener$1(lua_State *L) @@ -10600,14 +11084,14 @@ static int _cocos2d_ui_ListView_addEventListener$1(lua_State *L) std::string cb_tag = "ListViewCallback"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *arg1, cocos2d::ui::ListView::EventType arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *cb_arg1, cocos2d::ui::ListView::EventType cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.Ref"); - olua_push_enum(L, arg2); + olua_push_object(L, cb_arg1, "cc.Ref"); + olua_push_enum(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -10637,14 +11121,14 @@ static int _cocos2d_ui_ListView_addEventListener$2(lua_State *L) std::string cb_tag = "scrollViewCallback" + std::string(".using"); std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *arg1, cocos2d::ui::ScrollView::EventType arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *cb_arg1, cocos2d::ui::ScrollView::EventType cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.Ref"); - olua_push_enum(L, arg2); + olua_push_object(L, cb_arg1, "cc.Ref"); + olua_push_enum(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -10779,15 +11263,15 @@ static int _cocos2d_ui_ListView_getClosestItemToPosition(lua_State *L) olua_startinvoke(L); cocos2d::ui::ListView *self = nullptr; - cocos2d::Vec2 arg1; /** targetPosition */ - cocos2d::Vec2 arg2; /** itemAnchorPoint */ + cocos2d::Vec2 *arg1; /** targetPosition */ + cocos2d::Vec2 *arg2; /** itemAnchorPoint */ olua_to_object(L, 1, &self, "ccui.ListView"); olua_check_object(L, 2, &arg1, "cc.Vec2"); olua_check_object(L, 3, &arg2, "cc.Vec2"); // cocos2d::ui::Widget *getClosestItemToPosition(const cocos2d::Vec2 &targetPosition, const cocos2d::Vec2 &itemAnchorPoint) - cocos2d::ui::Widget *ret = self->getClosestItemToPosition(arg1, arg2); + cocos2d::ui::Widget *ret = self->getClosestItemToPosition(*arg1, *arg2); int num_ret = olua_push_object(L, ret, "ccui.Widget"); olua_endinvoke(L); @@ -10800,15 +11284,15 @@ static int _cocos2d_ui_ListView_getClosestItemToPositionInCurrentView(lua_State olua_startinvoke(L); cocos2d::ui::ListView *self = nullptr; - cocos2d::Vec2 arg1; /** positionRatioInView */ - cocos2d::Vec2 arg2; /** itemAnchorPoint */ + cocos2d::Vec2 *arg1; /** positionRatioInView */ + cocos2d::Vec2 *arg2; /** itemAnchorPoint */ olua_to_object(L, 1, &self, "ccui.ListView"); olua_check_object(L, 2, &arg1, "cc.Vec2"); olua_check_object(L, 3, &arg2, "cc.Vec2"); // cocos2d::ui::Widget *getClosestItemToPositionInCurrentView(const cocos2d::Vec2 &positionRatioInView, const cocos2d::Vec2 &itemAnchorPoint) - cocos2d::ui::Widget *ret = self->getClosestItemToPositionInCurrentView(arg1, arg2); + cocos2d::ui::Widget *ret = self->getClosestItemToPositionInCurrentView(*arg1, *arg2); int num_ret = olua_push_object(L, ret, "ccui.Widget"); olua_endinvoke(L); @@ -11113,8 +11597,8 @@ static int _cocos2d_ui_ListView_jumpToItem(lua_State *L) cocos2d::ui::ListView *self = nullptr; ssize_t arg1 = 0; /** itemIndex */ - cocos2d::Vec2 arg2; /** positionRatioInView */ - cocos2d::Vec2 arg3; /** itemAnchorPoint */ + cocos2d::Vec2 *arg2; /** positionRatioInView */ + cocos2d::Vec2 *arg3; /** itemAnchorPoint */ olua_to_object(L, 1, &self, "ccui.ListView"); olua_check_integer(L, 2, &arg1); @@ -11122,7 +11606,7 @@ static int _cocos2d_ui_ListView_jumpToItem(lua_State *L) olua_check_object(L, 4, &arg3, "cc.Vec2"); // void jumpToItem(ssize_t itemIndex, const cocos2d::Vec2 &positionRatioInView, const cocos2d::Vec2 &itemAnchorPoint) - self->jumpToItem(arg1, arg2, arg3); + self->jumpToItem(arg1, *arg2, *arg3); olua_endinvoke(L); @@ -11254,8 +11738,8 @@ static int _cocos2d_ui_ListView_scrollToItem$1(lua_State *L) cocos2d::ui::ListView *self = nullptr; ssize_t arg1 = 0; /** itemIndex */ - cocos2d::Vec2 arg2; /** positionRatioInView */ - cocos2d::Vec2 arg3; /** itemAnchorPoint */ + cocos2d::Vec2 *arg2; /** positionRatioInView */ + cocos2d::Vec2 *arg3; /** itemAnchorPoint */ olua_to_object(L, 1, &self, "ccui.ListView"); olua_check_integer(L, 2, &arg1); @@ -11263,7 +11747,7 @@ static int _cocos2d_ui_ListView_scrollToItem$1(lua_State *L) olua_check_object(L, 4, &arg3, "cc.Vec2"); // void scrollToItem(ssize_t itemIndex, const cocos2d::Vec2 &positionRatioInView, const cocos2d::Vec2 &itemAnchorPoint) - self->scrollToItem(arg1, arg2, arg3); + self->scrollToItem(arg1, *arg2, *arg3); olua_endinvoke(L); @@ -11276,8 +11760,8 @@ static int _cocos2d_ui_ListView_scrollToItem$2(lua_State *L) cocos2d::ui::ListView *self = nullptr; ssize_t arg1 = 0; /** itemIndex */ - cocos2d::Vec2 arg2; /** positionRatioInView */ - cocos2d::Vec2 arg3; /** itemAnchorPoint */ + cocos2d::Vec2 *arg2; /** positionRatioInView */ + cocos2d::Vec2 *arg3; /** itemAnchorPoint */ float arg4 = 0; /** timeInSec */ olua_to_object(L, 1, &self, "ccui.ListView"); @@ -11287,7 +11771,7 @@ static int _cocos2d_ui_ListView_scrollToItem$2(lua_State *L) olua_check_number(L, 5, &arg4); // void scrollToItem(ssize_t itemIndex, const cocos2d::Vec2 &positionRatioInView, const cocos2d::Vec2 &itemAnchorPoint, float timeInSec) - self->scrollToItem(arg1, arg2, arg3, arg4); + self->scrollToItem(arg1, *arg2, *arg3, arg4); olua_endinvoke(L); @@ -11539,8 +12023,7 @@ static int _cocos2d_ui_ListView_setTopPadding(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_ListView(lua_State *L) +static int _ccui_ListView(lua_State *L) { oluacls_class(L, "ccui.ListView"); oluacls_func(L, "addEventListener", _cocos2d_ui_ListView_addEventListener); @@ -11606,10 +12089,19 @@ OLUA_LIB int luaopen_cocos2d_ui_ListView(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_LoadingBar_Direction(lua_State *L) +OLUA_LIB int luaopen_ccui_ListView(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::ListView"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_LoadingBar_Direction(lua_State *L) { oluacls_class(L, "ccui.LoadingBar.Direction"); oluacls_func(L, "__index", olua_indexerror); @@ -11619,6 +12111,16 @@ OLUA_LIB int luaopen_cocos2d_ui_LoadingBar_Direction(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_LoadingBar_Direction(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::LoadingBar::Direction"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_LoadingBar_create$1(lua_State *L) @@ -11928,13 +12430,13 @@ static int _cocos2d_ui_LoadingBar_setCapInsets(lua_State *L) olua_startinvoke(L); cocos2d::ui::LoadingBar *self = nullptr; - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ olua_to_object(L, 1, &self, "ccui.LoadingBar"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCapInsets(const cocos2d::Rect &capInsets) - self->setCapInsets(arg1); + self->setCapInsets(*arg1); olua_endinvoke(L); @@ -11995,8 +12497,7 @@ static int _cocos2d_ui_LoadingBar_setScale9Enabled(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_LoadingBar(lua_State *L) +static int _ccui_LoadingBar(lua_State *L) { oluacls_class(L, "ccui.LoadingBar"); oluacls_func(L, "create", _cocos2d_ui_LoadingBar_create); @@ -12020,10 +12521,19 @@ OLUA_LIB int luaopen_cocos2d_ui_LoadingBar(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_PageView_EventType(lua_State *L) +OLUA_LIB int luaopen_ccui_LoadingBar(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::LoadingBar"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_PageView_EventType(lua_State *L) { oluacls_class(L, "ccui.PageView.EventType"); oluacls_func(L, "__index", olua_indexerror); @@ -12032,10 +12542,19 @@ OLUA_LIB int luaopen_cocos2d_ui_PageView_EventType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_PageView_TouchDirection(lua_State *L) +OLUA_LIB int luaopen_ccui_PageView_EventType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::PageView::EventType"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_PageView_TouchDirection(lua_State *L) { oluacls_class(L, "ccui.PageView.TouchDirection"); oluacls_func(L, "__index", olua_indexerror); @@ -12047,6 +12566,16 @@ OLUA_LIB int luaopen_cocos2d_ui_PageView_TouchDirection(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_PageView_TouchDirection(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::PageView::TouchDirection"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_PageView_ccPageViewCallback___call(lua_State *L) @@ -12061,14 +12590,23 @@ static int _cocos2d_ui_PageView_ccPageViewCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_PageView_ccPageViewCallback(lua_State *L) +static int _ccui_PageView_ccPageViewCallback(lua_State *L) { oluacls_class(L, "ccui.PageView.ccPageViewCallback"); oluacls_func(L, "__call", _cocos2d_ui_PageView_ccPageViewCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_PageView_ccPageViewCallback(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::PageView::ccPageViewCallback"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_PageView_addEventListener$1(lua_State *L) @@ -12085,14 +12623,14 @@ static int _cocos2d_ui_PageView_addEventListener$1(lua_State *L) std::string cb_tag = "PageViewCallback"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *arg1, cocos2d::ui::PageView::EventType arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *cb_arg1, cocos2d::ui::PageView::EventType cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.Ref"); - olua_push_enum(L, arg2); + olua_push_object(L, cb_arg1, "cc.Ref"); + olua_push_enum(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -12122,14 +12660,14 @@ static int _cocos2d_ui_PageView_addEventListener$2(lua_State *L) std::string cb_tag = "scrollViewCallback" + std::string(".using"); std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *arg1, cocos2d::ui::ScrollView::EventType arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *cb_arg1, cocos2d::ui::ScrollView::EventType cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.Ref"); - olua_push_enum(L, arg2); + olua_push_object(L, cb_arg1, "cc.Ref"); + olua_push_enum(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -12780,13 +13318,13 @@ static int _cocos2d_ui_PageView_setIndicatorPosition(lua_State *L) olua_startinvoke(L); cocos2d::ui::PageView *self = nullptr; - cocos2d::Vec2 arg1; /** position */ + cocos2d::Vec2 *arg1; /** position */ olua_to_object(L, 1, &self, "ccui.PageView"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setIndicatorPosition(const cocos2d::Vec2 &position) - self->setIndicatorPosition(arg1); + self->setIndicatorPosition(*arg1); olua_endinvoke(L); @@ -12798,13 +13336,13 @@ static int _cocos2d_ui_PageView_setIndicatorPositionAsAnchorPoint(lua_State *L) olua_startinvoke(L); cocos2d::ui::PageView *self = nullptr; - cocos2d::Vec2 arg1; /** positionAsAnchorPoint */ + cocos2d::Vec2 *arg1; /** positionAsAnchorPoint */ olua_to_object(L, 1, &self, "ccui.PageView"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setIndicatorPositionAsAnchorPoint(const cocos2d::Vec2 &positionAsAnchorPoint) - self->setIndicatorPositionAsAnchorPoint(arg1); + self->setIndicatorPositionAsAnchorPoint(*arg1); olua_endinvoke(L); @@ -12865,8 +13403,7 @@ static int _cocos2d_ui_PageView_setIndicatorSpaceBetweenIndexNodes(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_PageView(lua_State *L) +static int _ccui_PageView(lua_State *L) { oluacls_class(L, "ccui.PageView"); oluacls_func(L, "addEventListener", _cocos2d_ui_PageView_addEventListener); @@ -12915,10 +13452,19 @@ OLUA_LIB int luaopen_cocos2d_ui_PageView(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RichElement_Type(lua_State *L) +OLUA_LIB int luaopen_ccui_PageView(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::PageView"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_RichElement_Type(lua_State *L) { oluacls_class(L, "ccui.RichElement.Type"); oluacls_func(L, "__index", olua_indexerror); @@ -12930,6 +13476,16 @@ OLUA_LIB int luaopen_cocos2d_ui_RichElement_Type(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_RichElement_Type(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RichElement::Type"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_RichElement_equalType(lua_State *L) @@ -13006,8 +13562,7 @@ static int _cocos2d_ui_RichElement_setColor(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RichElement(lua_State *L) +static int _ccui_RichElement(lua_State *L) { oluacls_class(L, "ccui.RichElement"); oluacls_func(L, "equalType", _cocos2d_ui_RichElement_equalType); @@ -13017,6 +13572,16 @@ OLUA_LIB int luaopen_cocos2d_ui_RichElement(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_RichElement(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RichElement"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_RichElementText_create$1(lua_State *L) @@ -13034,7 +13599,7 @@ static int _cocos2d_ui_RichElementText_create$1(lua_State *L) cocos2d::Color3B arg9; /** outlineColor */ int arg10 = 0; /** outlineSize */ cocos2d::Color3B arg11; /** shadowColor */ - cocos2d::Size arg12; /** shadowOffset */ + cocos2d::Size *arg12; /** shadowOffset */ int arg13 = 0; /** shadowBlurRadius */ cocos2d::Color3B arg14; /** glowColor */ @@ -13054,7 +13619,7 @@ static int _cocos2d_ui_RichElementText_create$1(lua_State *L) olua_check_cocos2d_Color3B(L, 14, &arg14); // static cocos2d::ui::RichElementText *create(int tag, const cocos2d::Color3B &color, uint8_t opacity, const std::string &text, const std::string &fontName, float fontSize, @optional uint32_t flags, @optional const std::string &url, @optional const cocos2d::Color3B &outlineColor, @optional int outlineSize, @optional const cocos2d::Color3B &shadowColor, @optional const cocos2d::Size &shadowOffset, @optional int shadowBlurRadius, @optional const cocos2d::Color3B &glowColor) - cocos2d::ui::RichElementText *ret = cocos2d::ui::RichElementText::create(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14); + cocos2d::ui::RichElementText *ret = cocos2d::ui::RichElementText::create(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, *arg12, arg13, arg14); int num_ret = olua_push_object(L, ret, "ccui.RichElementText"); olua_endinvoke(L); @@ -13269,7 +13834,7 @@ static int _cocos2d_ui_RichElementText_create$8(lua_State *L) cocos2d::Color3B arg9; /** outlineColor */ int arg10 = 0; /** outlineSize */ cocos2d::Color3B arg11; /** shadowColor */ - cocos2d::Size arg12; /** shadowOffset */ + cocos2d::Size *arg12; /** shadowOffset */ olua_check_integer(L, 1, &arg1); olua_check_cocos2d_Color3B(L, 2, &arg2); @@ -13285,7 +13850,7 @@ static int _cocos2d_ui_RichElementText_create$8(lua_State *L) olua_check_object(L, 12, &arg12, "cc.Size"); // static cocos2d::ui::RichElementText *create(int tag, const cocos2d::Color3B &color, uint8_t opacity, const std::string &text, const std::string &fontName, float fontSize, @optional uint32_t flags, @optional const std::string &url, @optional const cocos2d::Color3B &outlineColor, @optional int outlineSize, @optional const cocos2d::Color3B &shadowColor, @optional const cocos2d::Size &shadowOffset) - cocos2d::ui::RichElementText *ret = cocos2d::ui::RichElementText::create(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); + cocos2d::ui::RichElementText *ret = cocos2d::ui::RichElementText::create(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, *arg12); int num_ret = olua_push_object(L, ret, "ccui.RichElementText"); olua_endinvoke(L); @@ -13308,7 +13873,7 @@ static int _cocos2d_ui_RichElementText_create$9(lua_State *L) cocos2d::Color3B arg9; /** outlineColor */ int arg10 = 0; /** outlineSize */ cocos2d::Color3B arg11; /** shadowColor */ - cocos2d::Size arg12; /** shadowOffset */ + cocos2d::Size *arg12; /** shadowOffset */ int arg13 = 0; /** shadowBlurRadius */ olua_check_integer(L, 1, &arg1); @@ -13326,7 +13891,7 @@ static int _cocos2d_ui_RichElementText_create$9(lua_State *L) olua_check_integer(L, 13, &arg13); // static cocos2d::ui::RichElementText *create(int tag, const cocos2d::Color3B &color, uint8_t opacity, const std::string &text, const std::string &fontName, float fontSize, @optional uint32_t flags, @optional const std::string &url, @optional const cocos2d::Color3B &outlineColor, @optional int outlineSize, @optional const cocos2d::Color3B &shadowColor, @optional const cocos2d::Size &shadowOffset, @optional int shadowBlurRadius) - cocos2d::ui::RichElementText *ret = cocos2d::ui::RichElementText::create(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); + cocos2d::ui::RichElementText *ret = cocos2d::ui::RichElementText::create(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, *arg12, arg13); int num_ret = olua_push_object(L, ret, "ccui.RichElementText"); olua_endinvoke(L); @@ -13422,7 +13987,7 @@ static int _cocos2d_ui_RichElementText_init$1(lua_State *L) cocos2d::Color3B arg9; /** outlineColor */ int arg10 = 0; /** outlineSize */ cocos2d::Color3B arg11; /** shadowColor */ - cocos2d::Size arg12; /** shadowOffset */ + cocos2d::Size *arg12; /** shadowOffset */ int arg13 = 0; /** shadowBlurRadius */ cocos2d::Color3B arg14; /** glowColor */ @@ -13443,7 +14008,7 @@ static int _cocos2d_ui_RichElementText_init$1(lua_State *L) olua_check_cocos2d_Color3B(L, 15, &arg14); // bool init(int tag, const cocos2d::Color3B &color, uint8_t opacity, const std::string &text, const std::string &fontName, float fontSize, uint32_t flags, const std::string &url, @optional const cocos2d::Color3B &outlineColor, @optional int outlineSize, @optional const cocos2d::Color3B &shadowColor, @optional const cocos2d::Size &shadowOffset, @optional int shadowBlurRadius, @optional const cocos2d::Color3B &glowColor) - bool ret = self->init(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14); + bool ret = self->init(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, *arg12, arg13, arg14); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -13611,7 +14176,7 @@ static int _cocos2d_ui_RichElementText_init$6(lua_State *L) cocos2d::Color3B arg9; /** outlineColor */ int arg10 = 0; /** outlineSize */ cocos2d::Color3B arg11; /** shadowColor */ - cocos2d::Size arg12; /** shadowOffset */ + cocos2d::Size *arg12; /** shadowOffset */ olua_to_object(L, 1, &self, "ccui.RichElementText"); olua_check_integer(L, 2, &arg1); @@ -13628,7 +14193,7 @@ static int _cocos2d_ui_RichElementText_init$6(lua_State *L) olua_check_object(L, 13, &arg12, "cc.Size"); // bool init(int tag, const cocos2d::Color3B &color, uint8_t opacity, const std::string &text, const std::string &fontName, float fontSize, uint32_t flags, const std::string &url, @optional const cocos2d::Color3B &outlineColor, @optional int outlineSize, @optional const cocos2d::Color3B &shadowColor, @optional const cocos2d::Size &shadowOffset) - bool ret = self->init(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); + bool ret = self->init(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, *arg12); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -13652,7 +14217,7 @@ static int _cocos2d_ui_RichElementText_init$7(lua_State *L) cocos2d::Color3B arg9; /** outlineColor */ int arg10 = 0; /** outlineSize */ cocos2d::Color3B arg11; /** shadowColor */ - cocos2d::Size arg12; /** shadowOffset */ + cocos2d::Size *arg12; /** shadowOffset */ int arg13 = 0; /** shadowBlurRadius */ olua_to_object(L, 1, &self, "ccui.RichElementText"); @@ -13671,7 +14236,7 @@ static int _cocos2d_ui_RichElementText_init$7(lua_State *L) olua_check_integer(L, 14, &arg13); // bool init(int tag, const cocos2d::Color3B &color, uint8_t opacity, const std::string &text, const std::string &fontName, float fontSize, uint32_t flags, const std::string &url, @optional const cocos2d::Color3B &outlineColor, @optional int outlineSize, @optional const cocos2d::Color3B &shadowColor, @optional const cocos2d::Size &shadowOffset, @optional int shadowBlurRadius) - bool ret = self->init(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); + bool ret = self->init(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, *arg12, arg13); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -13751,8 +14316,7 @@ static int _cocos2d_ui_RichElementText_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RichElementText(lua_State *L) +static int _ccui_RichElementText(lua_State *L) { oluacls_class(L, "ccui.RichElementText"); oluacls_func(L, "create", _cocos2d_ui_RichElementText_create); @@ -13761,6 +14325,16 @@ OLUA_LIB int luaopen_cocos2d_ui_RichElementText(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_RichElementText(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RichElementText"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_RichElementImage_create$1(lua_State *L) @@ -14047,8 +14621,7 @@ static int _cocos2d_ui_RichElementImage_setWidth(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RichElementImage(lua_State *L) +static int _ccui_RichElementImage(lua_State *L) { oluacls_class(L, "ccui.RichElementImage"); oluacls_func(L, "create", _cocos2d_ui_RichElementImage_create); @@ -14060,6 +14633,16 @@ OLUA_LIB int luaopen_cocos2d_ui_RichElementImage(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_RichElementImage(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RichElementImage"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_RichElementCustomNode_create(lua_State *L) @@ -14124,8 +14707,7 @@ static int _cocos2d_ui_RichElementCustomNode_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RichElementCustomNode(lua_State *L) +static int _ccui_RichElementCustomNode(lua_State *L) { oluacls_class(L, "ccui.RichElementCustomNode"); oluacls_func(L, "create", _cocos2d_ui_RichElementCustomNode_create); @@ -14134,6 +14716,16 @@ OLUA_LIB int luaopen_cocos2d_ui_RichElementCustomNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_RichElementCustomNode(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RichElementCustomNode"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_RichElementNewLine_create(lua_State *L) @@ -14171,8 +14763,7 @@ static int _cocos2d_ui_RichElementNewLine_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RichElementNewLine(lua_State *L) +static int _ccui_RichElementNewLine(lua_State *L) { oluacls_class(L, "ccui.RichElementNewLine"); oluacls_func(L, "create", _cocos2d_ui_RichElementNewLine_create); @@ -14180,10 +14771,19 @@ OLUA_LIB int luaopen_cocos2d_ui_RichElementNewLine(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RichText_WrapMode(lua_State *L) +OLUA_LIB int luaopen_ccui_RichElementNewLine(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RichElementNewLine"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_RichText_WrapMode(lua_State *L) { oluacls_class(L, "ccui.RichText.WrapMode"); oluacls_func(L, "__index", olua_indexerror); @@ -14193,10 +14793,19 @@ OLUA_LIB int luaopen_cocos2d_ui_RichText_WrapMode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RichText_HorizontalAlignment(lua_State *L) +OLUA_LIB int luaopen_ccui_RichText_WrapMode(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RichText::WrapMode"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_RichText_HorizontalAlignment(lua_State *L) { oluacls_class(L, "ccui.RichText.HorizontalAlignment"); oluacls_func(L, "__index", olua_indexerror); @@ -14207,6 +14816,16 @@ OLUA_LIB int luaopen_cocos2d_ui_RichText_HorizontalAlignment(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_RichText_HorizontalAlignment(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RichText::HorizontalAlignment"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_RichText_OpenUrlHandler___call(lua_State *L) @@ -14221,14 +14840,23 @@ static int _cocos2d_ui_RichText_OpenUrlHandler___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RichText_OpenUrlHandler(lua_State *L) +static int _ccui_RichText_OpenUrlHandler(lua_State *L) { oluacls_class(L, "ccui.RichText.OpenUrlHandler"); oluacls_func(L, "__call", _cocos2d_ui_RichText_OpenUrlHandler___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_RichText_OpenUrlHandler(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RichText::OpenUrlHandler"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_RichText_color3BWithString(lua_State *L) @@ -14281,13 +14909,13 @@ static int _cocos2d_ui_RichText_createWithXML$1(lua_State *L) if (olua_isfunction(L, 3)) { cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg3 = [cb_store, cb_name, cb_ctx](const std::string &arg1) { + arg3 = [cb_store, cb_name, cb_ctx](const std::string &cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_string(L, arg1); + olua_push_string(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -15144,7 +15772,7 @@ static int _cocos2d_ui_RichText_setAnchorTextShadow$1(lua_State *L) cocos2d::ui::RichText *self = nullptr; bool arg1 = false; /** enable */ cocos2d::Color3B arg2; /** shadowColor */ - cocos2d::Size arg3; /** offset */ + cocos2d::Size *arg3; /** offset */ int arg4 = 0; /** blurRadius */ olua_to_object(L, 1, &self, "ccui.RichText"); @@ -15154,7 +15782,7 @@ static int _cocos2d_ui_RichText_setAnchorTextShadow$1(lua_State *L) olua_check_integer(L, 5, &arg4); // void setAnchorTextShadow(bool enable, @optional const cocos2d::Color3B &shadowColor, @optional const cocos2d::Size &offset, @optional int blurRadius) - self->setAnchorTextShadow(arg1, arg2, arg3, arg4); + self->setAnchorTextShadow(arg1, arg2, *arg3, arg4); olua_endinvoke(L); @@ -15206,7 +15834,7 @@ static int _cocos2d_ui_RichText_setAnchorTextShadow$4(lua_State *L) cocos2d::ui::RichText *self = nullptr; bool arg1 = false; /** enable */ cocos2d::Color3B arg2; /** shadowColor */ - cocos2d::Size arg3; /** offset */ + cocos2d::Size *arg3; /** offset */ olua_to_object(L, 1, &self, "ccui.RichText"); olua_check_bool(L, 2, &arg1); @@ -15214,7 +15842,7 @@ static int _cocos2d_ui_RichText_setAnchorTextShadow$4(lua_State *L) olua_check_object(L, 4, &arg3, "cc.Size"); // void setAnchorTextShadow(bool enable, @optional const cocos2d::Color3B &shadowColor, @optional const cocos2d::Size &offset) - self->setAnchorTextShadow(arg1, arg2, arg3); + self->setAnchorTextShadow(arg1, arg2, *arg3); olua_endinvoke(L); @@ -15380,13 +16008,13 @@ static int _cocos2d_ui_RichText_setOpenUrlHandler(lua_State *L) std::string cb_tag = "OpenUrlHandler"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::string &arg1) { + arg1 = [cb_store, cb_name, cb_ctx](const std::string &cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_string(L, arg1); + olua_push_string(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -15476,8 +16104,7 @@ static int _cocos2d_ui_RichText_stringWithColor4B(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RichText(lua_State *L) +static int _ccui_RichText(lua_State *L) { oluacls_class(L, "ccui.RichText"); oluacls_func(L, "color3BWithString", _cocos2d_ui_RichText_color3BWithString); @@ -15594,6 +16221,16 @@ OLUA_LIB int luaopen_cocos2d_ui_RichText(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_RichText(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RichText"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_ScrollViewBar_create(lua_State *L) @@ -15708,13 +16345,13 @@ static int _cocos2d_ui_ScrollViewBar_onScrolled(lua_State *L) olua_startinvoke(L); cocos2d::ui::ScrollViewBar *self = nullptr; - cocos2d::Vec2 arg1; /** outOfBoundary */ + cocos2d::Vec2 *arg1; /** outOfBoundary */ olua_to_object(L, 1, &self, "ccui.ScrollViewBar"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void onScrolled(const cocos2d::Vec2 &outOfBoundary) - self->onScrolled(arg1); + self->onScrolled(*arg1); olua_endinvoke(L); @@ -15794,13 +16431,13 @@ static int _cocos2d_ui_ScrollViewBar_setPositionFromCorner(lua_State *L) olua_startinvoke(L); cocos2d::ui::ScrollViewBar *self = nullptr; - cocos2d::Vec2 arg1; /** positionFromCorner */ + cocos2d::Vec2 *arg1; /** positionFromCorner */ olua_to_object(L, 1, &self, "ccui.ScrollViewBar"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setPositionFromCorner(const cocos2d::Vec2 &positionFromCorner) - self->setPositionFromCorner(arg1); + self->setPositionFromCorner(*arg1); olua_endinvoke(L); @@ -15825,8 +16462,7 @@ static int _cocos2d_ui_ScrollViewBar_setWidth(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_ScrollViewBar(lua_State *L) +static int _ccui_ScrollViewBar(lua_State *L) { oluacls_class(L, "ccui.ScrollViewBar"); oluacls_func(L, "create", _cocos2d_ui_ScrollViewBar_create); @@ -15849,10 +16485,19 @@ OLUA_LIB int luaopen_cocos2d_ui_ScrollViewBar(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Slider_EventType(lua_State *L) +OLUA_LIB int luaopen_ccui_ScrollViewBar(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::ScrollViewBar"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_Slider_EventType(lua_State *L) { oluacls_class(L, "ccui.Slider.EventType"); oluacls_func(L, "__index", olua_indexerror); @@ -15864,6 +16509,16 @@ OLUA_LIB int luaopen_cocos2d_ui_Slider_EventType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_Slider_EventType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Slider::EventType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_Slider_ccSliderCallback___call(lua_State *L) @@ -15878,14 +16533,23 @@ static int _cocos2d_ui_Slider_ccSliderCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Slider_ccSliderCallback(lua_State *L) +static int _ccui_Slider_ccSliderCallback(lua_State *L) { oluacls_class(L, "ccui.Slider.ccSliderCallback"); oluacls_func(L, "__call", _cocos2d_ui_Slider_ccSliderCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_Slider_ccSliderCallback(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Slider::ccSliderCallback"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_Slider_addEventListener(lua_State *L) @@ -15902,14 +16566,14 @@ static int _cocos2d_ui_Slider_addEventListener(lua_State *L) std::string cb_tag = "sliderCallback"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *arg1, cocos2d::ui::Slider::EventType arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *cb_arg1, cocos2d::ui::Slider::EventType cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.Ref"); - olua_push_enum(L, arg2); + olua_push_object(L, cb_arg1, "cc.Ref"); + olua_push_enum(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -16731,13 +17395,13 @@ static int _cocos2d_ui_Slider_setCapInsetProgressBarRenderer(lua_State *L) olua_startinvoke(L); cocos2d::ui::Slider *self = nullptr; - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Slider"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCapInsetProgressBarRenderer(const cocos2d::Rect &capInsets) - self->setCapInsetProgressBarRenderer(arg1); + self->setCapInsetProgressBarRenderer(*arg1); olua_endinvoke(L); @@ -16749,13 +17413,13 @@ static int _cocos2d_ui_Slider_setCapInsets(lua_State *L) olua_startinvoke(L); cocos2d::ui::Slider *self = nullptr; - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Slider"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCapInsets(const cocos2d::Rect &capInsets) - self->setCapInsets(arg1); + self->setCapInsets(*arg1); olua_endinvoke(L); @@ -16767,13 +17431,13 @@ static int _cocos2d_ui_Slider_setCapInsetsBarRenderer(lua_State *L) olua_startinvoke(L); cocos2d::ui::Slider *self = nullptr; - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Slider"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCapInsetsBarRenderer(const cocos2d::Rect &capInsets) - self->setCapInsetsBarRenderer(arg1); + self->setCapInsetsBarRenderer(*arg1); olua_endinvoke(L); @@ -16868,8 +17532,7 @@ static int _cocos2d_ui_Slider_updateVisualSlider(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Slider(lua_State *L) +static int _ccui_Slider(lua_State *L) { oluacls_class(L, "ccui.Slider"); oluacls_func(L, "addEventListener", _cocos2d_ui_Slider_addEventListener); @@ -16923,10 +17586,19 @@ OLUA_LIB int luaopen_cocos2d_ui_Slider(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Text_Type(lua_State *L) +OLUA_LIB int luaopen_ccui_Slider(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Slider"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_Text_Type(lua_State *L) { oluacls_class(L, "ccui.Text.Type"); oluacls_func(L, "__index", olua_indexerror); @@ -16936,6 +17608,16 @@ OLUA_LIB int luaopen_cocos2d_ui_Text_Type(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_Text_Type(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Text::Type"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_Text_as(lua_State *L) @@ -17178,7 +17860,7 @@ static int _cocos2d_ui_Text_enableShadow$1(lua_State *L) cocos2d::ui::Text *self = nullptr; cocos2d::Color4B arg1; /** shadowColor */ - cocos2d::Size arg2; /** offset */ + cocos2d::Size *arg2; /** offset */ int arg3 = 0; /** blurRadius */ olua_to_object(L, 1, &self, "ccui.Text"); @@ -17187,7 +17869,7 @@ static int _cocos2d_ui_Text_enableShadow$1(lua_State *L) olua_check_integer(L, 4, &arg3); // void enableShadow(@optional const cocos2d::Color4B &shadowColor, @optional const cocos2d::Size &offset, @optional int blurRadius) - self->enableShadow(arg1, arg2, arg3); + self->enableShadow(arg1, *arg2, arg3); olua_endinvoke(L); @@ -17234,14 +17916,14 @@ static int _cocos2d_ui_Text_enableShadow$4(lua_State *L) cocos2d::ui::Text *self = nullptr; cocos2d::Color4B arg1; /** shadowColor */ - cocos2d::Size arg2; /** offset */ + cocos2d::Size *arg2; /** offset */ olua_to_object(L, 1, &self, "ccui.Text"); olua_check_cocos2d_Color4B(L, 2, &arg1); olua_check_object(L, 3, &arg2, "cc.Size"); // void enableShadow(@optional const cocos2d::Color4B &shadowColor, @optional const cocos2d::Size &offset) - self->enableShadow(arg1, arg2); + self->enableShadow(arg1, *arg2); olua_endinvoke(L); @@ -17705,13 +18387,13 @@ static int _cocos2d_ui_Text_setBlendFunc(lua_State *L) olua_startinvoke(L); cocos2d::ui::Text *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "ccui.Text"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -17777,13 +18459,13 @@ static int _cocos2d_ui_Text_setTextAreaSize(lua_State *L) olua_startinvoke(L); cocos2d::ui::Text *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_to_object(L, 1, &self, "ccui.Text"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setTextAreaSize(const cocos2d::Size &size) - self->setTextAreaSize(arg1); + self->setTextAreaSize(*arg1); olua_endinvoke(L); @@ -17862,8 +18544,7 @@ static int _cocos2d_ui_Text_setTouchScaleChangeEnabled(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Text(lua_State *L) +static int _ccui_Text(lua_State *L) { oluacls_class(L, "ccui.Text"); oluacls_func(L, "as", _cocos2d_ui_Text_as); @@ -17926,6 +18607,16 @@ OLUA_LIB int luaopen_cocos2d_ui_Text(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_Text(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Text"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_TextAtlas_adaptRenderers(lua_State *L) @@ -18125,8 +18816,7 @@ static int _cocos2d_ui_TextAtlas_setString(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_TextAtlas(lua_State *L) +static int _ccui_TextAtlas(lua_State *L) { oluacls_class(L, "ccui.TextAtlas"); oluacls_func(L, "adaptRenderers", _cocos2d_ui_TextAtlas_adaptRenderers); @@ -18144,6 +18834,16 @@ OLUA_LIB int luaopen_cocos2d_ui_TextAtlas(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_TextAtlas(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::TextAtlas"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_TextBMFont_create$1(lua_State *L) @@ -18329,8 +19029,7 @@ static int _cocos2d_ui_TextBMFont_setString(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_TextBMFont(lua_State *L) +static int _ccui_TextBMFont(lua_State *L) { oluacls_class(L, "ccui.TextBMFont"); oluacls_func(L, "create", _cocos2d_ui_TextBMFont_create); @@ -18348,6 +19047,16 @@ OLUA_LIB int luaopen_cocos2d_ui_TextBMFont(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_TextBMFont(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::TextBMFont"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_UICCTextField_as(lua_State *L) @@ -18705,7 +19414,7 @@ static int _cocos2d_ui_UICCTextField_onVisit(lua_State *L) cocos2d::ui::UICCTextField *self = nullptr; cocos2d::TextFieldTTF *arg1 = nullptr; /** sender */ cocos2d::Renderer *arg2 = nullptr; /** renderer */ - cocos2d::Mat4 arg3; /** transform */ + cocos2d::Mat4 *arg3; /** transform */ uint32_t arg4 = 0; /** flags */ olua_to_object(L, 1, &self, "ccui.UICCTextField"); @@ -18715,7 +19424,7 @@ static int _cocos2d_ui_UICCTextField_onVisit(lua_State *L) olua_check_integer(L, 5, &arg4); // @copyfrom(cocos2d::TextFieldDelegate) bool onVisit(cocos2d::TextFieldTTF *sender, cocos2d::Renderer *renderer, const cocos2d::Mat4 &transform, uint32_t flags) - bool ret = self->onVisit(arg1, arg2, arg3, arg4); + bool ret = self->onVisit(arg1, arg2, *arg3, arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -18901,8 +19610,7 @@ static int _cocos2d_ui_UICCTextField_setPasswordText(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_UICCTextField(lua_State *L) +static int _ccui_UICCTextField(lua_State *L) { oluacls_class(L, "ccui.UICCTextField"); oluacls_func(L, "as", _cocos2d_ui_UICCTextField_as); @@ -18935,17 +19643,25 @@ OLUA_LIB int luaopen_cocos2d_ui_UICCTextField(lua_State *L) oluacls_prop(L, "attachWithIME", _cocos2d_ui_UICCTextField_getAttachWithIME, _cocos2d_ui_UICCTextField_setAttachWithIME); oluacls_prop(L, "deleteBackward", _cocos2d_ui_UICCTextField_getDeleteBackward, _cocos2d_ui_UICCTextField_setDeleteBackward); oluacls_prop(L, "detachWithIME", _cocos2d_ui_UICCTextField_getDetachWithIME, _cocos2d_ui_UICCTextField_setDetachWithIME); - oluacls_prop(L, "insertText", _cocos2d_ui_UICCTextField_getInsertText, _cocos2d_ui_UICCTextField_setInsertText); oluacls_prop(L, "maxLength", _cocos2d_ui_UICCTextField_getMaxLength, _cocos2d_ui_UICCTextField_setMaxLength); oluacls_prop(L, "maxLengthEnabled", _cocos2d_ui_UICCTextField_isMaxLengthEnabled, _cocos2d_ui_UICCTextField_setMaxLengthEnabled); oluacls_prop(L, "passwordEnabled", _cocos2d_ui_UICCTextField_isPasswordEnabled, _cocos2d_ui_UICCTextField_setPasswordEnabled); return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_TextField_EventType(lua_State *L) +OLUA_LIB int luaopen_ccui_UICCTextField(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::UICCTextField"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_TextField_EventType(lua_State *L) { oluacls_class(L, "ccui.TextField.EventType"); oluacls_func(L, "__index", olua_indexerror); @@ -18957,6 +19673,16 @@ OLUA_LIB int luaopen_cocos2d_ui_TextField_EventType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_TextField_EventType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::TextField::EventType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_TextField_ccTextFieldCallback___call(lua_State *L) @@ -18971,14 +19697,23 @@ static int _cocos2d_ui_TextField_ccTextFieldCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_TextField_ccTextFieldCallback(lua_State *L) +static int _ccui_TextField_ccTextFieldCallback(lua_State *L) { oluacls_class(L, "ccui.TextField.ccTextFieldCallback"); oluacls_func(L, "__call", _cocos2d_ui_TextField_ccTextFieldCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_TextField_ccTextFieldCallback(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::TextField::ccTextFieldCallback"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_TextField_addEventListener(lua_State *L) @@ -18995,14 +19730,14 @@ static int _cocos2d_ui_TextField_addEventListener(lua_State *L) std::string cb_tag = "textFieldCallback"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *arg1, cocos2d::ui::TextField::EventType arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *cb_arg1, cocos2d::ui::TextField::EventType cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.Ref"); - olua_push_enum(L, arg2); + olua_push_object(L, cb_arg1, "cc.Ref"); + olua_push_enum(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -19514,7 +20249,7 @@ static int _cocos2d_ui_TextField_setCursorFromPoint(lua_State *L) olua_startinvoke(L); cocos2d::ui::TextField *self = nullptr; - cocos2d::Vec2 arg1; /** point */ + cocos2d::Vec2 *arg1; /** point */ cocos2d::Camera *arg2 = nullptr; /** camera */ olua_to_object(L, 1, &self, "ccui.TextField"); @@ -19522,7 +20257,7 @@ static int _cocos2d_ui_TextField_setCursorFromPoint(lua_State *L) olua_check_object(L, 3, &arg2, "cc.Camera"); // void setCursorFromPoint(const cocos2d::Vec2 &point, const cocos2d::Camera *camera) - self->setCursorFromPoint(arg1, arg2); + self->setCursorFromPoint(*arg1, arg2); olua_endinvoke(L); @@ -19807,13 +20542,13 @@ static int _cocos2d_ui_TextField_setTextAreaSize(lua_State *L) olua_startinvoke(L); cocos2d::ui::TextField *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_to_object(L, 1, &self, "ccui.TextField"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setTextAreaSize(const cocos2d::Size &size) - self->setTextAreaSize(arg1); + self->setTextAreaSize(*arg1); olua_endinvoke(L); @@ -19897,21 +20632,20 @@ static int _cocos2d_ui_TextField_setTouchSize(lua_State *L) olua_startinvoke(L); cocos2d::ui::TextField *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ olua_to_object(L, 1, &self, "ccui.TextField"); olua_check_object(L, 2, &arg1, "cc.Size"); // void setTouchSize(const cocos2d::Size &size) - self->setTouchSize(arg1); + self->setTouchSize(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_TextField(lua_State *L) +static int _ccui_TextField(lua_State *L) { oluacls_class(L, "ccui.TextField"); oluacls_func(L, "addEventListener", _cocos2d_ui_TextField_addEventListener); @@ -19962,7 +20696,6 @@ OLUA_LIB int luaopen_cocos2d_ui_TextField(lua_State *L) oluacls_func(L, "setTextVerticalAlignment", _cocos2d_ui_TextField_setTextVerticalAlignment); oluacls_func(L, "setTouchAreaEnabled", _cocos2d_ui_TextField_setTouchAreaEnabled); oluacls_func(L, "setTouchSize", _cocos2d_ui_TextField_setTouchSize); - oluacls_prop(L, "attachWithIME", _cocos2d_ui_TextField_getAttachWithIME, _cocos2d_ui_TextField_setAttachWithIME); oluacls_prop(L, "autoRenderSize", _cocos2d_ui_TextField_getAutoRenderSize, nullptr); oluacls_prop(L, "deleteBackward", _cocos2d_ui_TextField_getDeleteBackward, _cocos2d_ui_TextField_setDeleteBackward); oluacls_prop(L, "detachWithIME", _cocos2d_ui_TextField_getDetachWithIME, _cocos2d_ui_TextField_setDetachWithIME); @@ -19984,6 +20717,16 @@ OLUA_LIB int luaopen_cocos2d_ui_TextField(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_TextField(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::TextField"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_Button_create$1(lua_State *L) @@ -20948,13 +21691,13 @@ static int _cocos2d_ui_Button_setCapInsets(lua_State *L) olua_startinvoke(L); cocos2d::ui::Button *self = nullptr; - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Button"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCapInsets(const cocos2d::Rect &capInsets) - self->setCapInsets(arg1); + self->setCapInsets(*arg1); olua_endinvoke(L); @@ -20966,13 +21709,13 @@ static int _cocos2d_ui_Button_setCapInsetsDisabledRenderer(lua_State *L) olua_startinvoke(L); cocos2d::ui::Button *self = nullptr; - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Button"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCapInsetsDisabledRenderer(const cocos2d::Rect &capInsets) - self->setCapInsetsDisabledRenderer(arg1); + self->setCapInsetsDisabledRenderer(*arg1); olua_endinvoke(L); @@ -20984,13 +21727,13 @@ static int _cocos2d_ui_Button_setCapInsetsNormalRenderer(lua_State *L) olua_startinvoke(L); cocos2d::ui::Button *self = nullptr; - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Button"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCapInsetsNormalRenderer(const cocos2d::Rect &capInsets) - self->setCapInsetsNormalRenderer(arg1); + self->setCapInsetsNormalRenderer(*arg1); olua_endinvoke(L); @@ -21002,13 +21745,13 @@ static int _cocos2d_ui_Button_setCapInsetsPressedRenderer(lua_State *L) olua_startinvoke(L); cocos2d::ui::Button *self = nullptr; - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ olua_to_object(L, 1, &self, "ccui.Button"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCapInsetsPressedRenderer(const cocos2d::Rect &capInsets) - self->setCapInsetsPressedRenderer(arg1); + self->setCapInsetsPressedRenderer(*arg1); olua_endinvoke(L); @@ -21223,8 +21966,7 @@ static int _cocos2d_ui_Button_setZoomScale(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_Button(lua_State *L) +static int _ccui_Button(lua_State *L) { oluacls_class(L, "ccui.Button"); oluacls_func(L, "create", _cocos2d_ui_Button_create); @@ -21290,10 +22032,19 @@ OLUA_LIB int luaopen_cocos2d_ui_Button(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_CheckBox_EventType(lua_State *L) +OLUA_LIB int luaopen_ccui_Button(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::Button"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_CheckBox_EventType(lua_State *L) { oluacls_class(L, "ccui.CheckBox.EventType"); oluacls_func(L, "__index", olua_indexerror); @@ -21303,6 +22054,16 @@ OLUA_LIB int luaopen_cocos2d_ui_CheckBox_EventType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_CheckBox_EventType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::CheckBox::EventType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_CheckBox_ccCheckBoxCallback___call(lua_State *L) @@ -21317,14 +22078,23 @@ static int _cocos2d_ui_CheckBox_ccCheckBoxCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_CheckBox_ccCheckBoxCallback(lua_State *L) +static int _ccui_CheckBox_ccCheckBoxCallback(lua_State *L) { oluacls_class(L, "ccui.CheckBox.ccCheckBoxCallback"); oluacls_func(L, "__call", _cocos2d_ui_CheckBox_ccCheckBoxCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_CheckBox_ccCheckBoxCallback(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::CheckBox::ccCheckBoxCallback"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_CheckBox_addEventListener(lua_State *L) @@ -21341,14 +22111,14 @@ static int _cocos2d_ui_CheckBox_addEventListener(lua_State *L) std::string cb_tag = "checkBoxCallback"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *arg1, cocos2d::ui::CheckBox::EventType arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::Ref *cb_arg1, cocos2d::ui::CheckBox::EventType cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "cc.Ref"); - olua_push_enum(L, arg2); + olua_push_object(L, cb_arg1, "cc.Ref"); + olua_push_enum(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -21538,8 +22308,7 @@ static int _cocos2d_ui_CheckBox_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_CheckBox(lua_State *L) +static int _ccui_CheckBox(lua_State *L) { oluacls_class(L, "ccui.CheckBox"); oluacls_func(L, "addEventListener", _cocos2d_ui_CheckBox_addEventListener); @@ -21549,10 +22318,19 @@ OLUA_LIB int luaopen_cocos2d_ui_CheckBox(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RadioButton_EventType(lua_State *L) +OLUA_LIB int luaopen_ccui_CheckBox(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::CheckBox"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_RadioButton_EventType(lua_State *L) { oluacls_class(L, "ccui.RadioButton.EventType"); oluacls_func(L, "__index", olua_indexerror); @@ -21562,6 +22340,16 @@ OLUA_LIB int luaopen_cocos2d_ui_RadioButton_EventType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_RadioButton_EventType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RadioButton::EventType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_RadioButton_ccRadioButtonCallback___call(lua_State *L) @@ -21576,14 +22364,23 @@ static int _cocos2d_ui_RadioButton_ccRadioButtonCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RadioButton_ccRadioButtonCallback(lua_State *L) +static int _ccui_RadioButton_ccRadioButtonCallback(lua_State *L) { oluacls_class(L, "ccui.RadioButton.ccRadioButtonCallback"); oluacls_func(L, "__call", _cocos2d_ui_RadioButton_ccRadioButtonCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_RadioButton_ccRadioButtonCallback(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RadioButton::ccRadioButtonCallback"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_RadioButton_addEventListener(lua_State *L) @@ -21600,14 +22397,14 @@ static int _cocos2d_ui_RadioButton_addEventListener(lua_State *L) std::string cb_tag = "radioButtonCallback"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::RadioButton *arg1, cocos2d::ui::RadioButton::EventType arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::RadioButton *cb_arg1, cocos2d::ui::RadioButton::EventType cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "ccui.RadioButton"); - olua_push_enum(L, arg2); + olua_push_object(L, cb_arg1, "ccui.RadioButton"); + olua_push_enum(L, cb_arg2); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -21797,8 +22594,7 @@ static int _cocos2d_ui_RadioButton_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RadioButton(lua_State *L) +static int _ccui_RadioButton(lua_State *L) { oluacls_class(L, "ccui.RadioButton"); oluacls_func(L, "addEventListener", _cocos2d_ui_RadioButton_addEventListener); @@ -21808,10 +22604,19 @@ OLUA_LIB int luaopen_cocos2d_ui_RadioButton(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RadioButtonGroup_EventType(lua_State *L) +OLUA_LIB int luaopen_ccui_RadioButton(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RadioButton"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_RadioButtonGroup_EventType(lua_State *L) { oluacls_class(L, "ccui.RadioButtonGroup.EventType"); oluacls_func(L, "__index", olua_indexerror); @@ -21820,6 +22625,16 @@ OLUA_LIB int luaopen_cocos2d_ui_RadioButtonGroup_EventType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_RadioButtonGroup_EventType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RadioButtonGroup::EventType"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_RadioButtonGroup_ccRadioButtonGroupCallback___call(lua_State *L) @@ -21834,14 +22649,23 @@ static int _cocos2d_ui_RadioButtonGroup_ccRadioButtonGroupCallback___call(lua_St return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RadioButtonGroup_ccRadioButtonGroupCallback(lua_State *L) +static int _ccui_RadioButtonGroup_ccRadioButtonGroupCallback(lua_State *L) { oluacls_class(L, "ccui.RadioButtonGroup.ccRadioButtonGroupCallback"); oluacls_func(L, "__call", _cocos2d_ui_RadioButtonGroup_ccRadioButtonGroupCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_RadioButtonGroup_ccRadioButtonGroupCallback(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RadioButtonGroup::ccRadioButtonGroupCallback"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_RadioButtonGroup_addEventListener(lua_State *L) @@ -21858,15 +22682,15 @@ static int _cocos2d_ui_RadioButtonGroup_addEventListener(lua_State *L) std::string cb_tag = "radioButtonCallback"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::RadioButton *arg1, int arg2, cocos2d::ui::RadioButtonGroup::EventType arg3) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::RadioButton *cb_arg1, int cb_arg2, cocos2d::ui::RadioButtonGroup::EventType cb_arg3) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "ccui.RadioButton"); - olua_push_integer(L, arg2); - olua_push_enum(L, arg3); + olua_push_object(L, cb_arg1, "ccui.RadioButton"); + olua_push_integer(L, cb_arg2); + olua_push_enum(L, cb_arg3); olua_callback(L, cb_store, cb_name.c_str(), 3); @@ -22163,8 +22987,7 @@ static int _cocos2d_ui_RadioButtonGroup_setSelectedButtonWithoutEvent(lua_State return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_RadioButtonGroup(lua_State *L) +static int _ccui_RadioButtonGroup(lua_State *L) { oluacls_class(L, "ccui.RadioButtonGroup"); oluacls_func(L, "addEventListener", _cocos2d_ui_RadioButtonGroup_addEventListener); @@ -22186,6 +23009,16 @@ OLUA_LIB int luaopen_cocos2d_ui_RadioButtonGroup(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_RadioButtonGroup(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::RadioButtonGroup"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_ImageView_as(lua_State *L) @@ -22543,13 +23376,13 @@ static int _cocos2d_ui_ImageView_setBlendFunc(lua_State *L) olua_startinvoke(L); cocos2d::ui::ImageView *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "ccui.ImageView"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -22561,13 +23394,13 @@ static int _cocos2d_ui_ImageView_setCapInsets(lua_State *L) olua_startinvoke(L); cocos2d::ui::ImageView *self = nullptr; - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ olua_to_object(L, 1, &self, "ccui.ImageView"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCapInsets(const cocos2d::Rect &capInsets) - self->setCapInsets(arg1); + self->setCapInsets(*arg1); olua_endinvoke(L); @@ -22597,21 +23430,20 @@ static int _cocos2d_ui_ImageView_setTextureRect(lua_State *L) olua_startinvoke(L); cocos2d::ui::ImageView *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ olua_to_object(L, 1, &self, "ccui.ImageView"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setTextureRect(const cocos2d::Rect &rect) - self->setTextureRect(arg1); + self->setTextureRect(*arg1); olua_endinvoke(L); return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_ImageView(lua_State *L) +static int _ccui_ImageView(lua_State *L) { oluacls_class(L, "ccui.ImageView"); oluacls_func(L, "as", _cocos2d_ui_ImageView_as); @@ -22635,10 +23467,19 @@ OLUA_LIB int luaopen_cocos2d_ui_ImageView(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_EditBoxDelegate_EditBoxEndAction(lua_State *L) +OLUA_LIB int luaopen_ccui_ImageView(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::ImageView"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_EditBoxDelegate_EditBoxEndAction(lua_State *L) { oluacls_class(L, "ccui.EditBoxDelegate.EditBoxEndAction"); oluacls_func(L, "__index", olua_indexerror); @@ -22650,6 +23491,16 @@ OLUA_LIB int luaopen_cocos2d_ui_EditBoxDelegate_EditBoxEndAction(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_EditBoxDelegate_EditBoxEndAction(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::EditBoxDelegate::EditBoxEndAction"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_EditBoxDelegate___gc(lua_State *L) @@ -22752,8 +23603,7 @@ static int _cocos2d_ui_EditBoxDelegate_editBoxTextChanged(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_EditBoxDelegate(lua_State *L) +static int _ccui_EditBoxDelegate(lua_State *L) { oluacls_class(L, "ccui.EditBoxDelegate"); oluacls_func(L, "__gc", _cocos2d_ui_EditBoxDelegate___gc); @@ -22765,6 +23615,16 @@ OLUA_LIB int luaopen_cocos2d_ui_EditBoxDelegate(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_EditBoxDelegate(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::EditBoxDelegate"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_LuaEditBoxDelegate_new(lua_State *L) @@ -22820,7 +23680,7 @@ static int _cocos2d_ui_LuaEditBoxDelegate_onEditingDidBegin$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::EditBox *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::EditBox *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -22828,7 +23688,7 @@ static int _cocos2d_ui_LuaEditBoxDelegate_onEditingDidBegin$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "ccui.EditBox"); + olua_push_object(L, cb_arg1, "ccui.EditBox"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -22911,7 +23771,7 @@ static int _cocos2d_ui_LuaEditBoxDelegate_onEditingDidEndWithAction$2(lua_State if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::EditBox *arg1, cocos2d::ui::EditBoxDelegate::EditBoxEndAction arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::EditBox *cb_arg1, cocos2d::ui::EditBoxDelegate::EditBoxEndAction cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -22919,8 +23779,8 @@ static int _cocos2d_ui_LuaEditBoxDelegate_onEditingDidEndWithAction$2(lua_State int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "ccui.EditBox"); - olua_push_enum(L, arg2); + olua_push_object(L, cb_arg1, "ccui.EditBox"); + olua_push_enum(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -23003,7 +23863,7 @@ static int _cocos2d_ui_LuaEditBoxDelegate_onReturn$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::EditBox *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::EditBox *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -23011,7 +23871,7 @@ static int _cocos2d_ui_LuaEditBoxDelegate_onReturn$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "ccui.EditBox"); + olua_push_object(L, cb_arg1, "ccui.EditBox"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -23094,7 +23954,7 @@ static int _cocos2d_ui_LuaEditBoxDelegate_onTextChanged$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::EditBox *arg1, const std::string &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](cocos2d::ui::EditBox *cb_arg1, const std::string &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -23102,8 +23962,8 @@ static int _cocos2d_ui_LuaEditBoxDelegate_onTextChanged$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "ccui.EditBox"); - olua_push_string(L, arg2); + olua_push_object(L, cb_arg1, "ccui.EditBox"); + olua_push_string(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -23147,8 +24007,7 @@ static int _cocos2d_ui_LuaEditBoxDelegate_onTextChanged(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_LuaEditBoxDelegate(lua_State *L) +static int _ccui_LuaEditBoxDelegate(lua_State *L) { oluacls_class(L, "ccui.LuaEditBoxDelegate"); oluacls_func(L, "new", _cocos2d_ui_LuaEditBoxDelegate_new); @@ -23159,10 +24018,19 @@ OLUA_LIB int luaopen_cocos2d_ui_LuaEditBoxDelegate(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_EditBox_KeyboardReturnType(lua_State *L) +OLUA_LIB int luaopen_ccui_LuaEditBoxDelegate(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::LuaEditBoxDelegate"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_EditBox_KeyboardReturnType(lua_State *L) { oluacls_class(L, "ccui.EditBox.KeyboardReturnType"); oluacls_func(L, "__index", olua_indexerror); @@ -23176,10 +24044,19 @@ OLUA_LIB int luaopen_cocos2d_ui_EditBox_KeyboardReturnType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_EditBox_InputMode(lua_State *L) +OLUA_LIB int luaopen_ccui_EditBox_KeyboardReturnType(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::EditBox::KeyboardReturnType"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_EditBox_InputMode(lua_State *L) { oluacls_class(L, "ccui.EditBox.InputMode"); oluacls_func(L, "__index", olua_indexerror); @@ -23194,10 +24071,19 @@ OLUA_LIB int luaopen_cocos2d_ui_EditBox_InputMode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_EditBox_InputFlag(lua_State *L) +OLUA_LIB int luaopen_ccui_EditBox_InputMode(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::EditBox::InputMode"); + } + return 1; +} +OLUA_END_DECLS + +static int _ccui_EditBox_InputFlag(lua_State *L) { oluacls_class(L, "ccui.EditBox.InputFlag"); oluacls_func(L, "__index", olua_indexerror); @@ -23211,6 +24097,16 @@ OLUA_LIB int luaopen_cocos2d_ui_EditBox_InputFlag(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_EditBox_InputFlag(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::EditBox::InputFlag"); + } + return 1; +} OLUA_END_DECLS static int _cocos2d_ui_EditBox_as(lua_State *L) @@ -23266,7 +24162,7 @@ static int _cocos2d_ui_EditBox_create$1(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ cocos2d::ui::Scale9Sprite *arg2 = nullptr; /** normalSprite */ cocos2d::ui::Scale9Sprite *arg3 = nullptr; /** pressedSprite */ cocos2d::ui::Scale9Sprite *arg4 = nullptr; /** disabledSprite */ @@ -23277,7 +24173,7 @@ static int _cocos2d_ui_EditBox_create$1(lua_State *L) olua_check_object(L, 4, &arg4, "ccui.Scale9Sprite"); // static cocos2d::ui::EditBox *create(const cocos2d::Size &size, cocos2d::ui::Scale9Sprite *normalSprite, @optional cocos2d::ui::Scale9Sprite *pressedSprite, @optional cocos2d::ui::Scale9Sprite *disabledSprite) - cocos2d::ui::EditBox *ret = cocos2d::ui::EditBox::create(arg1, arg2, arg3, arg4); + cocos2d::ui::EditBox *ret = cocos2d::ui::EditBox::create(*arg1, arg2, arg3, arg4); int num_ret = olua_push_object(L, ret, "ccui.EditBox"); olua_endinvoke(L); @@ -23289,14 +24185,14 @@ static int _cocos2d_ui_EditBox_create$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ cocos2d::ui::Scale9Sprite *arg2 = nullptr; /** normalSprite */ olua_check_object(L, 1, &arg1, "cc.Size"); olua_check_object(L, 2, &arg2, "ccui.Scale9Sprite"); // static cocos2d::ui::EditBox *create(const cocos2d::Size &size, cocos2d::ui::Scale9Sprite *normalSprite) - cocos2d::ui::EditBox *ret = cocos2d::ui::EditBox::create(arg1, arg2); + cocos2d::ui::EditBox *ret = cocos2d::ui::EditBox::create(*arg1, arg2); int num_ret = olua_push_object(L, ret, "ccui.EditBox"); olua_endinvoke(L); @@ -23308,7 +24204,7 @@ static int _cocos2d_ui_EditBox_create$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ cocos2d::ui::Scale9Sprite *arg2 = nullptr; /** normalSprite */ cocos2d::ui::Scale9Sprite *arg3 = nullptr; /** pressedSprite */ @@ -23317,7 +24213,7 @@ static int _cocos2d_ui_EditBox_create$3(lua_State *L) olua_check_object(L, 3, &arg3, "ccui.Scale9Sprite"); // static cocos2d::ui::EditBox *create(const cocos2d::Size &size, cocos2d::ui::Scale9Sprite *normalSprite, @optional cocos2d::ui::Scale9Sprite *pressedSprite) - cocos2d::ui::EditBox *ret = cocos2d::ui::EditBox::create(arg1, arg2, arg3); + cocos2d::ui::EditBox *ret = cocos2d::ui::EditBox::create(*arg1, arg2, arg3); int num_ret = olua_push_object(L, ret, "ccui.EditBox"); olua_endinvoke(L); @@ -23329,7 +24225,7 @@ static int _cocos2d_ui_EditBox_create$4(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ std::string arg2; /** normalImage */ cocos2d::ui::Widget::TextureResType arg3 = (cocos2d::ui::Widget::TextureResType)0; /** texType */ @@ -23338,7 +24234,7 @@ static int _cocos2d_ui_EditBox_create$4(lua_State *L) olua_check_enum(L, 3, &arg3); // static cocos2d::ui::EditBox *create(const cocos2d::Size &size, const std::string &normalImage, cocos2d::ui::Widget::TextureResType texType) - cocos2d::ui::EditBox *ret = cocos2d::ui::EditBox::create(arg1, arg2, arg3); + cocos2d::ui::EditBox *ret = cocos2d::ui::EditBox::create(*arg1, arg2, arg3); int num_ret = olua_push_object(L, ret, "ccui.EditBox"); olua_endinvoke(L); @@ -23350,7 +24246,7 @@ static int _cocos2d_ui_EditBox_create$5(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ std::string arg2; /** normalImage */ std::string arg3; /** pressedImage */ std::string arg4; /** disabledImage */ @@ -23363,7 +24259,7 @@ static int _cocos2d_ui_EditBox_create$5(lua_State *L) olua_check_enum(L, 5, &arg5); // static cocos2d::ui::EditBox *create(const cocos2d::Size &size, const std::string &normalImage, @optional const std::string &pressedImage, @optional const std::string &disabledImage, @optional cocos2d::ui::Widget::TextureResType texType) - cocos2d::ui::EditBox *ret = cocos2d::ui::EditBox::create(arg1, arg2, arg3, arg4, arg5); + cocos2d::ui::EditBox *ret = cocos2d::ui::EditBox::create(*arg1, arg2, arg3, arg4, arg5); int num_ret = olua_push_object(L, ret, "ccui.EditBox"); olua_endinvoke(L); @@ -23375,14 +24271,14 @@ static int _cocos2d_ui_EditBox_create$6(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ std::string arg2; /** normalImage */ olua_check_object(L, 1, &arg1, "cc.Size"); olua_check_string(L, 2, &arg2); // static cocos2d::ui::EditBox *create(const cocos2d::Size &size, const std::string &normalImage) - cocos2d::ui::EditBox *ret = cocos2d::ui::EditBox::create(arg1, arg2); + cocos2d::ui::EditBox *ret = cocos2d::ui::EditBox::create(*arg1, arg2); int num_ret = olua_push_object(L, ret, "ccui.EditBox"); olua_endinvoke(L); @@ -23394,7 +24290,7 @@ static int _cocos2d_ui_EditBox_create$7(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ std::string arg2; /** normalImage */ std::string arg3; /** pressedImage */ @@ -23403,7 +24299,7 @@ static int _cocos2d_ui_EditBox_create$7(lua_State *L) olua_check_string(L, 3, &arg3); // static cocos2d::ui::EditBox *create(const cocos2d::Size &size, const std::string &normalImage, @optional const std::string &pressedImage) - cocos2d::ui::EditBox *ret = cocos2d::ui::EditBox::create(arg1, arg2, arg3); + cocos2d::ui::EditBox *ret = cocos2d::ui::EditBox::create(*arg1, arg2, arg3); int num_ret = olua_push_object(L, ret, "ccui.EditBox"); olua_endinvoke(L); @@ -23415,7 +24311,7 @@ static int _cocos2d_ui_EditBox_create$8(lua_State *L) { olua_startinvoke(L); - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ std::string arg2; /** normalImage */ std::string arg3; /** pressedImage */ std::string arg4; /** disabledImage */ @@ -23426,7 +24322,7 @@ static int _cocos2d_ui_EditBox_create$8(lua_State *L) olua_check_string(L, 4, &arg4); // static cocos2d::ui::EditBox *create(const cocos2d::Size &size, const std::string &normalImage, @optional const std::string &pressedImage, @optional const std::string &disabledImage) - cocos2d::ui::EditBox *ret = cocos2d::ui::EditBox::create(arg1, arg2, arg3, arg4); + cocos2d::ui::EditBox *ret = cocos2d::ui::EditBox::create(*arg1, arg2, arg3, arg4); int num_ret = olua_push_object(L, ret, "ccui.EditBox"); olua_endinvoke(L); @@ -23805,7 +24701,7 @@ static int _cocos2d_ui_EditBox_initWithSizeAndBackgroundSprite$1(lua_State *L) olua_startinvoke(L); cocos2d::ui::EditBox *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ std::string arg2; /** normal9SpriteBg */ cocos2d::ui::Widget::TextureResType arg3 = (cocos2d::ui::Widget::TextureResType)0; /** texType */ @@ -23815,7 +24711,7 @@ static int _cocos2d_ui_EditBox_initWithSizeAndBackgroundSprite$1(lua_State *L) olua_check_enum(L, 4, &arg3); // bool initWithSizeAndBackgroundSprite(const cocos2d::Size &size, const std::string &normal9SpriteBg, @optional cocos2d::ui::Widget::TextureResType texType) - bool ret = self->initWithSizeAndBackgroundSprite(arg1, arg2, arg3); + bool ret = self->initWithSizeAndBackgroundSprite(*arg1, arg2, arg3); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -23828,7 +24724,7 @@ static int _cocos2d_ui_EditBox_initWithSizeAndBackgroundSprite$2(lua_State *L) olua_startinvoke(L); cocos2d::ui::EditBox *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ std::string arg2; /** normal9SpriteBg */ olua_to_object(L, 1, &self, "ccui.EditBox"); @@ -23836,7 +24732,7 @@ static int _cocos2d_ui_EditBox_initWithSizeAndBackgroundSprite$2(lua_State *L) olua_check_string(L, 3, &arg2); // bool initWithSizeAndBackgroundSprite(const cocos2d::Size &size, const std::string &normal9SpriteBg) - bool ret = self->initWithSizeAndBackgroundSprite(arg1, arg2); + bool ret = self->initWithSizeAndBackgroundSprite(*arg1, arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -23849,7 +24745,7 @@ static int _cocos2d_ui_EditBox_initWithSizeAndBackgroundSprite$3(lua_State *L) olua_startinvoke(L); cocos2d::ui::EditBox *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ cocos2d::ui::Scale9Sprite *arg2 = nullptr; /** normal9SpriteBg */ olua_to_object(L, 1, &self, "ccui.EditBox"); @@ -23857,7 +24753,7 @@ static int _cocos2d_ui_EditBox_initWithSizeAndBackgroundSprite$3(lua_State *L) olua_check_object(L, 3, &arg2, "ccui.Scale9Sprite"); // bool initWithSizeAndBackgroundSprite(const cocos2d::Size &size, cocos2d::ui::Scale9Sprite *normal9SpriteBg) - bool ret = self->initWithSizeAndBackgroundSprite(arg1, arg2); + bool ret = self->initWithSizeAndBackgroundSprite(*arg1, arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -23870,7 +24766,7 @@ static int _cocos2d_ui_EditBox_initWithSizeAndBackgroundSprite$4(lua_State *L) olua_startinvoke(L); cocos2d::ui::EditBox *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ cocos2d::ui::Scale9Sprite *arg2 = nullptr; /** normalSprite */ cocos2d::ui::Scale9Sprite *arg3 = nullptr; /** pressedSprite */ cocos2d::ui::Scale9Sprite *arg4 = nullptr; /** disabledSprite */ @@ -23882,7 +24778,7 @@ static int _cocos2d_ui_EditBox_initWithSizeAndBackgroundSprite$4(lua_State *L) olua_check_object(L, 5, &arg4, "ccui.Scale9Sprite"); // bool initWithSizeAndBackgroundSprite(const cocos2d::Size &size, cocos2d::ui::Scale9Sprite *normalSprite, cocos2d::ui::Scale9Sprite *pressedSprite, cocos2d::ui::Scale9Sprite *disabledSprite) - bool ret = self->initWithSizeAndBackgroundSprite(arg1, arg2, arg3, arg4); + bool ret = self->initWithSizeAndBackgroundSprite(*arg1, arg2, arg3, arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -23930,7 +24826,7 @@ static int _cocos2d_ui_EditBox_initWithSizeAndTexture$1(lua_State *L) olua_startinvoke(L); cocos2d::ui::EditBox *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ std::string arg2; /** normalImage */ std::string arg3; /** pressedImage */ std::string arg4; /** disabledImage */ @@ -23944,7 +24840,7 @@ static int _cocos2d_ui_EditBox_initWithSizeAndTexture$1(lua_State *L) olua_check_enum(L, 6, &arg5); // bool initWithSizeAndTexture(const cocos2d::Size &size, const std::string &normalImage, @optional const std::string &pressedImage, @optional const std::string &disabledImage, @optional cocos2d::ui::Widget::TextureResType texType) - bool ret = self->initWithSizeAndTexture(arg1, arg2, arg3, arg4, arg5); + bool ret = self->initWithSizeAndTexture(*arg1, arg2, arg3, arg4, arg5); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -23957,7 +24853,7 @@ static int _cocos2d_ui_EditBox_initWithSizeAndTexture$2(lua_State *L) olua_startinvoke(L); cocos2d::ui::EditBox *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ std::string arg2; /** normalImage */ olua_to_object(L, 1, &self, "ccui.EditBox"); @@ -23965,7 +24861,7 @@ static int _cocos2d_ui_EditBox_initWithSizeAndTexture$2(lua_State *L) olua_check_string(L, 3, &arg2); // bool initWithSizeAndTexture(const cocos2d::Size &size, const std::string &normalImage) - bool ret = self->initWithSizeAndTexture(arg1, arg2); + bool ret = self->initWithSizeAndTexture(*arg1, arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -23978,7 +24874,7 @@ static int _cocos2d_ui_EditBox_initWithSizeAndTexture$3(lua_State *L) olua_startinvoke(L); cocos2d::ui::EditBox *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ std::string arg2; /** normalImage */ std::string arg3; /** pressedImage */ @@ -23988,7 +24884,7 @@ static int _cocos2d_ui_EditBox_initWithSizeAndTexture$3(lua_State *L) olua_check_string(L, 4, &arg3); // bool initWithSizeAndTexture(const cocos2d::Size &size, const std::string &normalImage, @optional const std::string &pressedImage) - bool ret = self->initWithSizeAndTexture(arg1, arg2, arg3); + bool ret = self->initWithSizeAndTexture(*arg1, arg2, arg3); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -24001,7 +24897,7 @@ static int _cocos2d_ui_EditBox_initWithSizeAndTexture$4(lua_State *L) olua_startinvoke(L); cocos2d::ui::EditBox *self = nullptr; - cocos2d::Size arg1; /** size */ + cocos2d::Size *arg1; /** size */ std::string arg2; /** normalImage */ std::string arg3; /** pressedImage */ std::string arg4; /** disabledImage */ @@ -24013,7 +24909,7 @@ static int _cocos2d_ui_EditBox_initWithSizeAndTexture$4(lua_State *L) olua_check_string(L, 5, &arg4); // bool initWithSizeAndTexture(const cocos2d::Size &size, const std::string &normalImage, @optional const std::string &pressedImage, @optional const std::string &disabledImage) - bool ret = self->initWithSizeAndTexture(arg1, arg2, arg3, arg4); + bool ret = self->initWithSizeAndTexture(*arg1, arg2, arg3, arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -24372,13 +25268,13 @@ static int _cocos2d_ui_EditBox_setCapInsets(lua_State *L) olua_startinvoke(L); cocos2d::ui::EditBox *self = nullptr; - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ olua_to_object(L, 1, &self, "ccui.EditBox"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCapInsets(const cocos2d::Rect &capInsets) - self->setCapInsets(arg1); + self->setCapInsets(*arg1); olua_endinvoke(L); @@ -24390,13 +25286,13 @@ static int _cocos2d_ui_EditBox_setCapInsetsDisabledRenderer(lua_State *L) olua_startinvoke(L); cocos2d::ui::EditBox *self = nullptr; - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ olua_to_object(L, 1, &self, "ccui.EditBox"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCapInsetsDisabledRenderer(const cocos2d::Rect &capInsets) - self->setCapInsetsDisabledRenderer(arg1); + self->setCapInsetsDisabledRenderer(*arg1); olua_endinvoke(L); @@ -24408,13 +25304,13 @@ static int _cocos2d_ui_EditBox_setCapInsetsNormalRenderer(lua_State *L) olua_startinvoke(L); cocos2d::ui::EditBox *self = nullptr; - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ olua_to_object(L, 1, &self, "ccui.EditBox"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCapInsetsNormalRenderer(const cocos2d::Rect &capInsets) - self->setCapInsetsNormalRenderer(arg1); + self->setCapInsetsNormalRenderer(*arg1); olua_endinvoke(L); @@ -24426,13 +25322,13 @@ static int _cocos2d_ui_EditBox_setCapInsetsPressedRenderer(lua_State *L) olua_startinvoke(L); cocos2d::ui::EditBox *self = nullptr; - cocos2d::Rect arg1; /** capInsets */ + cocos2d::Rect *arg1; /** capInsets */ olua_to_object(L, 1, &self, "ccui.EditBox"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setCapInsetsPressedRenderer(const cocos2d::Rect &capInsets) - self->setCapInsetsPressedRenderer(arg1); + self->setCapInsetsPressedRenderer(*arg1); olua_endinvoke(L); @@ -24812,8 +25708,7 @@ static int _cocos2d_ui_EditBox_setTextHorizontalAlignment(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cocos2d_ui_EditBox(lua_State *L) +static int _ccui_EditBox(lua_State *L) { oluacls_class(L, "ccui.EditBox"); oluacls_func(L, "as", _cocos2d_ui_EditBox_as); @@ -24885,114 +25780,124 @@ OLUA_LIB int luaopen_cocos2d_ui_EditBox(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_ccui_EditBox(lua_State *L) +{ + olua_require(L, "cocos2d_ui", luaopen_cocos2d_ui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cocos2d::ui::EditBox"); + } + return 1; +} OLUA_END_DECLS OLUA_BEGIN_DECLS OLUA_LIB int luaopen_cocos2d_ui(lua_State *L) { - olua_require(L, "ccui.Widget.FocusDirection", luaopen_cocos2d_ui_Widget_FocusDirection); - olua_require(L, "ccui.Widget.PositionType", luaopen_cocos2d_ui_Widget_PositionType); - olua_require(L, "ccui.Widget.SizeType", luaopen_cocos2d_ui_Widget_SizeType); - olua_require(L, "ccui.Widget.TouchEventType", luaopen_cocos2d_ui_Widget_TouchEventType); - olua_require(L, "ccui.Widget.TextureResType", luaopen_cocos2d_ui_Widget_TextureResType); - olua_require(L, "ccui.Widget.BrightStyle", luaopen_cocos2d_ui_Widget_BrightStyle); - olua_require(L, "ccui.Widget.ccWidgetTouchCallback", luaopen_cocos2d_ui_Widget_ccWidgetTouchCallback); - olua_require(L, "ccui.Widget.ccWidgetClickCallback", luaopen_cocos2d_ui_Widget_ccWidgetClickCallback); - olua_require(L, "ccui.Widget.ccWidgetEventCallback", luaopen_cocos2d_ui_Widget_ccWidgetEventCallback); - olua_require(L, "ccui.LayoutManager", luaopen_cocos2d_ui_LayoutManager); - olua_require(L, "ccui.LayoutParameterProtocol", luaopen_cocos2d_ui_LayoutParameterProtocol); - olua_require(L, "ccui.LayoutProtocol", luaopen_cocos2d_ui_LayoutProtocol); - olua_require(L, "ccui.Widget", luaopen_cocos2d_ui_Widget); - olua_require(L, "ccui.Helper", luaopen_cocos2d_ui_Helper); - olua_require(L, "ccui.Scale9Sprite.State", luaopen_cocos2d_ui_Scale9Sprite_State); - olua_require(L, "ccui.Scale9Sprite.RenderingType", luaopen_cocos2d_ui_Scale9Sprite_RenderingType); - olua_require(L, "ccui.Scale9Sprite", luaopen_cocos2d_ui_Scale9Sprite); - olua_require(L, "ccui.LayoutComponent.HorizontalEdge", luaopen_cocos2d_ui_LayoutComponent_HorizontalEdge); - olua_require(L, "ccui.LayoutComponent.VerticalEdge", luaopen_cocos2d_ui_LayoutComponent_VerticalEdge); - olua_require(L, "ccui.LayoutComponent", luaopen_cocos2d_ui_LayoutComponent); - olua_require(L, "ccui.LayoutParameter.Type", luaopen_cocos2d_ui_LayoutParameter_Type); - olua_require(L, "ccui.LayoutParameter", luaopen_cocos2d_ui_LayoutParameter); - olua_require(L, "ccui.LinearLayoutParameter.LinearGravity", luaopen_cocos2d_ui_LinearLayoutParameter_LinearGravity); - olua_require(L, "ccui.LinearLayoutParameter", luaopen_cocos2d_ui_LinearLayoutParameter); - olua_require(L, "ccui.RelativeLayoutParameter.RelativeAlign", luaopen_cocos2d_ui_RelativeLayoutParameter_RelativeAlign); - olua_require(L, "ccui.RelativeLayoutParameter", luaopen_cocos2d_ui_RelativeLayoutParameter); - olua_require(L, "ccui.Layout.Type", luaopen_cocos2d_ui_Layout_Type); - olua_require(L, "ccui.Layout.ClippingType", luaopen_cocos2d_ui_Layout_ClippingType); - olua_require(L, "ccui.Layout.BackGroundColorType", luaopen_cocos2d_ui_Layout_BackGroundColorType); - olua_require(L, "ccui.Layout", luaopen_cocos2d_ui_Layout); - olua_require(L, "ccui.HBox", luaopen_cocos2d_ui_HBox); - olua_require(L, "ccui.VBox", luaopen_cocos2d_ui_VBox); - olua_require(L, "ccui.RelativeBox", luaopen_cocos2d_ui_RelativeBox); + olua_require(L, "ccui.Widget.FocusDirection", _ccui_Widget_FocusDirection); + olua_require(L, "ccui.Widget.PositionType", _ccui_Widget_PositionType); + olua_require(L, "ccui.Widget.SizeType", _ccui_Widget_SizeType); + olua_require(L, "ccui.Widget.TouchEventType", _ccui_Widget_TouchEventType); + olua_require(L, "ccui.Widget.TextureResType", _ccui_Widget_TextureResType); + olua_require(L, "ccui.Widget.BrightStyle", _ccui_Widget_BrightStyle); + olua_require(L, "ccui.Widget.ccWidgetTouchCallback", _ccui_Widget_ccWidgetTouchCallback); + olua_require(L, "ccui.Widget.ccWidgetClickCallback", _ccui_Widget_ccWidgetClickCallback); + olua_require(L, "ccui.Widget.ccWidgetEventCallback", _ccui_Widget_ccWidgetEventCallback); + olua_require(L, "ccui.LayoutManager", _ccui_LayoutManager); + olua_require(L, "ccui.LayoutParameterProtocol", _ccui_LayoutParameterProtocol); + olua_require(L, "ccui.LayoutProtocol", _ccui_LayoutProtocol); + olua_require(L, "ccui.Widget", _ccui_Widget); + olua_require(L, "ccui.Helper", _ccui_Helper); + olua_require(L, "ccui.Scale9Sprite.State", _ccui_Scale9Sprite_State); + olua_require(L, "ccui.Scale9Sprite.RenderingType", _ccui_Scale9Sprite_RenderingType); + olua_require(L, "ccui.Scale9Sprite", _ccui_Scale9Sprite); + olua_require(L, "ccui.LayoutComponent.HorizontalEdge", _ccui_LayoutComponent_HorizontalEdge); + olua_require(L, "ccui.LayoutComponent.VerticalEdge", _ccui_LayoutComponent_VerticalEdge); + olua_require(L, "ccui.LayoutComponent", _ccui_LayoutComponent); + olua_require(L, "ccui.LayoutParameter.Type", _ccui_LayoutParameter_Type); + olua_require(L, "ccui.LayoutParameter", _ccui_LayoutParameter); + olua_require(L, "ccui.LinearLayoutParameter.LinearGravity", _ccui_LinearLayoutParameter_LinearGravity); + olua_require(L, "ccui.LinearLayoutParameter", _ccui_LinearLayoutParameter); + olua_require(L, "ccui.RelativeLayoutParameter.RelativeAlign", _ccui_RelativeLayoutParameter_RelativeAlign); + olua_require(L, "ccui.RelativeLayoutParameter", _ccui_RelativeLayoutParameter); + olua_require(L, "ccui.Layout.Type", _ccui_Layout_Type); + olua_require(L, "ccui.Layout.ClippingType", _ccui_Layout_ClippingType); + olua_require(L, "ccui.Layout.BackGroundColorType", _ccui_Layout_BackGroundColorType); + olua_require(L, "ccui.Layout", _ccui_Layout); + olua_require(L, "ccui.HBox", _ccui_HBox); + olua_require(L, "ccui.VBox", _ccui_VBox); + olua_require(L, "ccui.RelativeBox", _ccui_RelativeBox); #if defined(CCLUA_OS_IOS) || defined(CCLUA_OS_ANDROID) - olua_require(L, "ccui.WebView.ccWebViewCallback", luaopen_cocos2d_ui_WebView_ccWebViewCallback); - olua_require(L, "ccui.WebView", luaopen_cocos2d_ui_WebView); - olua_require(L, "ccui.VideoPlayer.EventType", luaopen_cocos2d_ui_VideoPlayer_EventType); - olua_require(L, "ccui.VideoPlayer.ccVideoPlayerCallback", luaopen_cocos2d_ui_VideoPlayer_ccVideoPlayerCallback); - olua_require(L, "ccui.VideoPlayer.StyleType", luaopen_cocos2d_ui_VideoPlayer_StyleType); - olua_require(L, "ccui.VideoPlayer", luaopen_cocos2d_ui_VideoPlayer); + olua_require(L, "ccui.WebView.ccWebViewCallback", _ccui_WebView_ccWebViewCallback); + olua_require(L, "ccui.WebView", _ccui_WebView); + olua_require(L, "ccui.VideoPlayer.EventType", _ccui_VideoPlayer_EventType); + olua_require(L, "ccui.VideoPlayer.ccVideoPlayerCallback", _ccui_VideoPlayer_ccVideoPlayerCallback); + olua_require(L, "ccui.VideoPlayer.StyleType", _ccui_VideoPlayer_StyleType); + olua_require(L, "ccui.VideoPlayer", _ccui_VideoPlayer); #endif - olua_require(L, "ccui.AbstractCheckButton", luaopen_cocos2d_ui_AbstractCheckButton); - olua_require(L, "ccui.TabHeader.EventType", luaopen_cocos2d_ui_TabHeader_EventType); - olua_require(L, "ccui.TabHeader", luaopen_cocos2d_ui_TabHeader); - olua_require(L, "ccui.TabControl.Dock", luaopen_cocos2d_ui_TabControl_Dock); - olua_require(L, "ccui.TabControl.EventType", luaopen_cocos2d_ui_TabControl_EventType); - olua_require(L, "ccui.TabControl.ccTabControlCallback", luaopen_cocos2d_ui_TabControl_ccTabControlCallback); - olua_require(L, "ccui.TabControl", luaopen_cocos2d_ui_TabControl); - olua_require(L, "ccui.ScrollView.Direction", luaopen_cocos2d_ui_ScrollView_Direction); - olua_require(L, "ccui.ScrollView.EventType", luaopen_cocos2d_ui_ScrollView_EventType); - olua_require(L, "ccui.ScrollView.ccScrollViewCallback", luaopen_cocos2d_ui_ScrollView_ccScrollViewCallback); - olua_require(L, "ccui.ScrollView", luaopen_cocos2d_ui_ScrollView); - olua_require(L, "ccui.ListView.Gravity", luaopen_cocos2d_ui_ListView_Gravity); - olua_require(L, "ccui.ListView.EventType", luaopen_cocos2d_ui_ListView_EventType); - olua_require(L, "ccui.ListView.MagneticType", luaopen_cocos2d_ui_ListView_MagneticType); - olua_require(L, "ccui.ListView.ccListViewCallback", luaopen_cocos2d_ui_ListView_ccListViewCallback); - olua_require(L, "ccui.ListView", luaopen_cocos2d_ui_ListView); - olua_require(L, "ccui.LoadingBar.Direction", luaopen_cocos2d_ui_LoadingBar_Direction); - olua_require(L, "ccui.LoadingBar", luaopen_cocos2d_ui_LoadingBar); - olua_require(L, "ccui.PageView.EventType", luaopen_cocos2d_ui_PageView_EventType); - olua_require(L, "ccui.PageView.TouchDirection", luaopen_cocos2d_ui_PageView_TouchDirection); - olua_require(L, "ccui.PageView.ccPageViewCallback", luaopen_cocos2d_ui_PageView_ccPageViewCallback); - olua_require(L, "ccui.PageView", luaopen_cocos2d_ui_PageView); - olua_require(L, "ccui.RichElement.Type", luaopen_cocos2d_ui_RichElement_Type); - olua_require(L, "ccui.RichElement", luaopen_cocos2d_ui_RichElement); - olua_require(L, "ccui.RichElementText", luaopen_cocos2d_ui_RichElementText); - olua_require(L, "ccui.RichElementImage", luaopen_cocos2d_ui_RichElementImage); - olua_require(L, "ccui.RichElementCustomNode", luaopen_cocos2d_ui_RichElementCustomNode); - olua_require(L, "ccui.RichElementNewLine", luaopen_cocos2d_ui_RichElementNewLine); - olua_require(L, "ccui.RichText.WrapMode", luaopen_cocos2d_ui_RichText_WrapMode); - olua_require(L, "ccui.RichText.HorizontalAlignment", luaopen_cocos2d_ui_RichText_HorizontalAlignment); - olua_require(L, "ccui.RichText.OpenUrlHandler", luaopen_cocos2d_ui_RichText_OpenUrlHandler); - olua_require(L, "ccui.RichText", luaopen_cocos2d_ui_RichText); - olua_require(L, "ccui.ScrollViewBar", luaopen_cocos2d_ui_ScrollViewBar); - olua_require(L, "ccui.Slider.EventType", luaopen_cocos2d_ui_Slider_EventType); - olua_require(L, "ccui.Slider.ccSliderCallback", luaopen_cocos2d_ui_Slider_ccSliderCallback); - olua_require(L, "ccui.Slider", luaopen_cocos2d_ui_Slider); - olua_require(L, "ccui.Text.Type", luaopen_cocos2d_ui_Text_Type); - olua_require(L, "ccui.Text", luaopen_cocos2d_ui_Text); - olua_require(L, "ccui.TextAtlas", luaopen_cocos2d_ui_TextAtlas); - olua_require(L, "ccui.TextBMFont", luaopen_cocos2d_ui_TextBMFont); - olua_require(L, "ccui.UICCTextField", luaopen_cocos2d_ui_UICCTextField); - olua_require(L, "ccui.TextField.EventType", luaopen_cocos2d_ui_TextField_EventType); - olua_require(L, "ccui.TextField.ccTextFieldCallback", luaopen_cocos2d_ui_TextField_ccTextFieldCallback); - olua_require(L, "ccui.TextField", luaopen_cocos2d_ui_TextField); - olua_require(L, "ccui.Button", luaopen_cocos2d_ui_Button); - olua_require(L, "ccui.CheckBox.EventType", luaopen_cocos2d_ui_CheckBox_EventType); - olua_require(L, "ccui.CheckBox.ccCheckBoxCallback", luaopen_cocos2d_ui_CheckBox_ccCheckBoxCallback); - olua_require(L, "ccui.CheckBox", luaopen_cocos2d_ui_CheckBox); - olua_require(L, "ccui.RadioButton.EventType", luaopen_cocos2d_ui_RadioButton_EventType); - olua_require(L, "ccui.RadioButton.ccRadioButtonCallback", luaopen_cocos2d_ui_RadioButton_ccRadioButtonCallback); - olua_require(L, "ccui.RadioButton", luaopen_cocos2d_ui_RadioButton); - olua_require(L, "ccui.RadioButtonGroup.EventType", luaopen_cocos2d_ui_RadioButtonGroup_EventType); - olua_require(L, "ccui.RadioButtonGroup.ccRadioButtonGroupCallback", luaopen_cocos2d_ui_RadioButtonGroup_ccRadioButtonGroupCallback); - olua_require(L, "ccui.RadioButtonGroup", luaopen_cocos2d_ui_RadioButtonGroup); - olua_require(L, "ccui.ImageView", luaopen_cocos2d_ui_ImageView); - olua_require(L, "ccui.EditBoxDelegate.EditBoxEndAction", luaopen_cocos2d_ui_EditBoxDelegate_EditBoxEndAction); - olua_require(L, "ccui.EditBoxDelegate", luaopen_cocos2d_ui_EditBoxDelegate); - olua_require(L, "ccui.LuaEditBoxDelegate", luaopen_cocos2d_ui_LuaEditBoxDelegate); - olua_require(L, "ccui.EditBox.KeyboardReturnType", luaopen_cocos2d_ui_EditBox_KeyboardReturnType); - olua_require(L, "ccui.EditBox.InputMode", luaopen_cocos2d_ui_EditBox_InputMode); - olua_require(L, "ccui.EditBox.InputFlag", luaopen_cocos2d_ui_EditBox_InputFlag); - olua_require(L, "ccui.EditBox", luaopen_cocos2d_ui_EditBox); + olua_require(L, "ccui.AbstractCheckButton", _ccui_AbstractCheckButton); + olua_require(L, "ccui.TabHeader.EventType", _ccui_TabHeader_EventType); + olua_require(L, "ccui.TabHeader", _ccui_TabHeader); + olua_require(L, "ccui.TabControl.Dock", _ccui_TabControl_Dock); + olua_require(L, "ccui.TabControl.EventType", _ccui_TabControl_EventType); + olua_require(L, "ccui.TabControl.ccTabControlCallback", _ccui_TabControl_ccTabControlCallback); + olua_require(L, "ccui.TabControl", _ccui_TabControl); + olua_require(L, "ccui.ScrollView.Direction", _ccui_ScrollView_Direction); + olua_require(L, "ccui.ScrollView.EventType", _ccui_ScrollView_EventType); + olua_require(L, "ccui.ScrollView.ccScrollViewCallback", _ccui_ScrollView_ccScrollViewCallback); + olua_require(L, "ccui.ScrollView", _ccui_ScrollView); + olua_require(L, "ccui.ListView.Gravity", _ccui_ListView_Gravity); + olua_require(L, "ccui.ListView.EventType", _ccui_ListView_EventType); + olua_require(L, "ccui.ListView.MagneticType", _ccui_ListView_MagneticType); + olua_require(L, "ccui.ListView.ccListViewCallback", _ccui_ListView_ccListViewCallback); + olua_require(L, "ccui.ListView", _ccui_ListView); + olua_require(L, "ccui.LoadingBar.Direction", _ccui_LoadingBar_Direction); + olua_require(L, "ccui.LoadingBar", _ccui_LoadingBar); + olua_require(L, "ccui.PageView.EventType", _ccui_PageView_EventType); + olua_require(L, "ccui.PageView.TouchDirection", _ccui_PageView_TouchDirection); + olua_require(L, "ccui.PageView.ccPageViewCallback", _ccui_PageView_ccPageViewCallback); + olua_require(L, "ccui.PageView", _ccui_PageView); + olua_require(L, "ccui.RichElement.Type", _ccui_RichElement_Type); + olua_require(L, "ccui.RichElement", _ccui_RichElement); + olua_require(L, "ccui.RichElementText", _ccui_RichElementText); + olua_require(L, "ccui.RichElementImage", _ccui_RichElementImage); + olua_require(L, "ccui.RichElementCustomNode", _ccui_RichElementCustomNode); + olua_require(L, "ccui.RichElementNewLine", _ccui_RichElementNewLine); + olua_require(L, "ccui.RichText.WrapMode", _ccui_RichText_WrapMode); + olua_require(L, "ccui.RichText.HorizontalAlignment", _ccui_RichText_HorizontalAlignment); + olua_require(L, "ccui.RichText.OpenUrlHandler", _ccui_RichText_OpenUrlHandler); + olua_require(L, "ccui.RichText", _ccui_RichText); + olua_require(L, "ccui.ScrollViewBar", _ccui_ScrollViewBar); + olua_require(L, "ccui.Slider.EventType", _ccui_Slider_EventType); + olua_require(L, "ccui.Slider.ccSliderCallback", _ccui_Slider_ccSliderCallback); + olua_require(L, "ccui.Slider", _ccui_Slider); + olua_require(L, "ccui.Text.Type", _ccui_Text_Type); + olua_require(L, "ccui.Text", _ccui_Text); + olua_require(L, "ccui.TextAtlas", _ccui_TextAtlas); + olua_require(L, "ccui.TextBMFont", _ccui_TextBMFont); + olua_require(L, "ccui.UICCTextField", _ccui_UICCTextField); + olua_require(L, "ccui.TextField.EventType", _ccui_TextField_EventType); + olua_require(L, "ccui.TextField.ccTextFieldCallback", _ccui_TextField_ccTextFieldCallback); + olua_require(L, "ccui.TextField", _ccui_TextField); + olua_require(L, "ccui.Button", _ccui_Button); + olua_require(L, "ccui.CheckBox.EventType", _ccui_CheckBox_EventType); + olua_require(L, "ccui.CheckBox.ccCheckBoxCallback", _ccui_CheckBox_ccCheckBoxCallback); + olua_require(L, "ccui.CheckBox", _ccui_CheckBox); + olua_require(L, "ccui.RadioButton.EventType", _ccui_RadioButton_EventType); + olua_require(L, "ccui.RadioButton.ccRadioButtonCallback", _ccui_RadioButton_ccRadioButtonCallback); + olua_require(L, "ccui.RadioButton", _ccui_RadioButton); + olua_require(L, "ccui.RadioButtonGroup.EventType", _ccui_RadioButtonGroup_EventType); + olua_require(L, "ccui.RadioButtonGroup.ccRadioButtonGroupCallback", _ccui_RadioButtonGroup_ccRadioButtonGroupCallback); + olua_require(L, "ccui.RadioButtonGroup", _ccui_RadioButtonGroup); + olua_require(L, "ccui.ImageView", _ccui_ImageView); + olua_require(L, "ccui.EditBoxDelegate.EditBoxEndAction", _ccui_EditBoxDelegate_EditBoxEndAction); + olua_require(L, "ccui.EditBoxDelegate", _ccui_EditBoxDelegate); + olua_require(L, "ccui.LuaEditBoxDelegate", _ccui_LuaEditBoxDelegate); + olua_require(L, "ccui.EditBox.KeyboardReturnType", _ccui_EditBox_KeyboardReturnType); + olua_require(L, "ccui.EditBox.InputMode", _ccui_EditBox_InputMode); + olua_require(L, "ccui.EditBox.InputFlag", _ccui_EditBox_InputFlag); + olua_require(L, "ccui.EditBox", _ccui_EditBox); return 0; } diff --git a/frameworks/cclua/src/lua-bindings/lua_cocos2d_ui.h b/frameworks/cclua/src/lua-bindings/lua_cocos2d_ui.h index 47558427..83b706e8 100644 --- a/frameworks/cclua/src/lua-bindings/lua_cocos2d_ui.h +++ b/frameworks/cclua/src/lua-bindings/lua_cocos2d_ui.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_COCOS2D_UI_H__ #define __AUTO_GEN_LUA_COCOS2D_UI_H__ diff --git a/frameworks/cclua/src/lua-bindings/lua_dragonbones.cpp b/frameworks/cclua/src/lua-bindings/lua_dragonbones.cpp index a5ae9a18..88c3611d 100644 --- a/frameworks/cclua/src/lua-bindings/lua_dragonbones.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_dragonbones.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_dragonbones.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -285,8 +285,7 @@ static int _dragonBones_Rectangle_y(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_Rectangle(lua_State *L) +static int _db_Rectangle(lua_State *L) { oluacls_class(L, "db.Rectangle"); oluacls_func(L, "__gc", _dragonBones_Rectangle___gc); @@ -300,10 +299,19 @@ OLUA_LIB int luaopen_dragonBones_Rectangle(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_BinaryOffset(lua_State *L) +OLUA_LIB int luaopen_db_Rectangle(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::Rectangle"); + } + return 1; +} +OLUA_END_DECLS + +static int _db_BinaryOffset(lua_State *L) { oluacls_class(L, "db.BinaryOffset"); oluacls_func(L, "__index", olua_indexerror); @@ -334,10 +342,19 @@ OLUA_LIB int luaopen_dragonBones_BinaryOffset(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_ArmatureType(lua_State *L) +OLUA_LIB int luaopen_db_BinaryOffset(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::BinaryOffset"); + } + return 1; +} +OLUA_END_DECLS + +static int _db_ArmatureType(lua_State *L) { oluacls_class(L, "db.ArmatureType"); oluacls_func(L, "__index", olua_indexerror); @@ -348,10 +365,19 @@ OLUA_LIB int luaopen_dragonBones_ArmatureType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_OffsetMode(lua_State *L) +OLUA_LIB int luaopen_db_ArmatureType(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::ArmatureType"); + } + return 1; +} +OLUA_END_DECLS + +static int _db_OffsetMode(lua_State *L) { oluacls_class(L, "db.OffsetMode"); oluacls_func(L, "__index", olua_indexerror); @@ -362,10 +388,19 @@ OLUA_LIB int luaopen_dragonBones_OffsetMode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_DisplayType(lua_State *L) +OLUA_LIB int luaopen_db_OffsetMode(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::OffsetMode"); + } + return 1; +} +OLUA_END_DECLS + +static int _db_DisplayType(lua_State *L) { oluacls_class(L, "db.DisplayType"); oluacls_func(L, "__index", olua_indexerror); @@ -378,10 +413,19 @@ OLUA_LIB int luaopen_dragonBones_DisplayType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_BoundingBoxType(lua_State *L) +OLUA_LIB int luaopen_db_DisplayType(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::DisplayType"); + } + return 1; +} +OLUA_END_DECLS + +static int _db_BoundingBoxType(lua_State *L) { oluacls_class(L, "db.BoundingBoxType"); oluacls_func(L, "__index", olua_indexerror); @@ -392,10 +436,19 @@ OLUA_LIB int luaopen_dragonBones_BoundingBoxType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_ActionType(lua_State *L) +OLUA_LIB int luaopen_db_BoundingBoxType(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::BoundingBoxType"); + } + return 1; +} +OLUA_END_DECLS + +static int _db_ActionType(lua_State *L) { oluacls_class(L, "db.ActionType"); oluacls_func(L, "__index", olua_indexerror); @@ -406,10 +459,19 @@ OLUA_LIB int luaopen_dragonBones_ActionType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_BlendMode(lua_State *L) +OLUA_LIB int luaopen_db_ActionType(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::ActionType"); + } + return 1; +} +OLUA_END_DECLS + +static int _db_BlendMode(lua_State *L) { oluacls_class(L, "db.BlendMode"); oluacls_func(L, "__index", olua_indexerror); @@ -431,10 +493,19 @@ OLUA_LIB int luaopen_dragonBones_BlendMode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_TweenType(lua_State *L) +OLUA_LIB int luaopen_db_BlendMode(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::BlendMode"); + } + return 1; +} +OLUA_END_DECLS + +static int _db_TweenType(lua_State *L) { oluacls_class(L, "db.TweenType"); oluacls_func(L, "__index", olua_indexerror); @@ -448,10 +519,19 @@ OLUA_LIB int luaopen_dragonBones_TweenType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_TimelineType(lua_State *L) +OLUA_LIB int luaopen_db_TweenType(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::TweenType"); + } + return 1; +} +OLUA_END_DECLS + +static int _db_TimelineType(lua_State *L) { oluacls_class(L, "db.TimelineType"); oluacls_func(L, "__index", olua_indexerror); @@ -471,10 +551,19 @@ OLUA_LIB int luaopen_dragonBones_TimelineType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_AnimationFadeOutMode(lua_State *L) +OLUA_LIB int luaopen_db_TimelineType(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::TimelineType"); + } + return 1; +} +OLUA_END_DECLS + +static int _db_AnimationFadeOutMode(lua_State *L) { oluacls_class(L, "db.AnimationFadeOutMode"); oluacls_func(L, "__index", olua_indexerror); @@ -488,10 +577,19 @@ OLUA_LIB int luaopen_dragonBones_AnimationFadeOutMode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_TextureFormat(lua_State *L) +OLUA_LIB int luaopen_db_AnimationFadeOutMode(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::AnimationFadeOutMode"); + } + return 1; +} +OLUA_END_DECLS + +static int _db_TextureFormat(lua_State *L) { oluacls_class(L, "db.TextureFormat"); oluacls_func(L, "__index", olua_indexerror); @@ -506,6 +604,16 @@ OLUA_LIB int luaopen_dragonBones_TextureFormat(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_TextureFormat(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::TextureFormat"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_DragonBones___gc(lua_State *L) @@ -838,8 +946,7 @@ static int _dragonBones_DragonBones_yDown(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_DragonBones(lua_State *L) +static int _db_DragonBones(lua_State *L) { oluacls_class(L, "db.DragonBones"); oluacls_func(L, "__gc", _dragonBones_DragonBones___gc); @@ -860,6 +967,16 @@ OLUA_LIB int luaopen_dragonBones_DragonBones(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_DragonBones(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::DragonBones"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_BaseObject___gc(lua_State *L) @@ -1003,8 +1120,7 @@ static int _dragonBones_BaseObject_setMaxCount(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_BaseObject(lua_State *L) +static int _db_BaseObject(lua_State *L) { oluacls_class(L, "db.BaseObject"); oluacls_func(L, "__gc", _dragonBones_BaseObject___gc); @@ -1018,6 +1134,16 @@ OLUA_LIB int luaopen_dragonBones_BaseObject(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_BaseObject(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::BaseObject"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_EventObject_COMPLETE$1(lua_State *L) @@ -2106,8 +2232,7 @@ static int _dragonBones_EventObject_type(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_EventObject(lua_State *L) +static int _db_EventObject(lua_State *L) { oluacls_class(L, "db.EventObject"); oluacls_func(L, "actionDataToInstance", _dragonBones_EventObject_actionDataToInstance); @@ -2118,11 +2243,6 @@ OLUA_LIB int luaopen_dragonBones_EventObject(lua_State *L) oluacls_func(L, "getSlot", _dragonBones_EventObject_getSlot); oluacls_func(L, "getTypeIndex", _dragonBones_EventObject_getTypeIndex); oluacls_func(L, "new", _dragonBones_EventObject_new); - oluacls_prop(L, "animationState", _dragonBones_EventObject_getAnimationState, nullptr); - oluacls_prop(L, "armature", _dragonBones_EventObject_getArmature, nullptr); - oluacls_prop(L, "bone", _dragonBones_EventObject_getBone, nullptr); - oluacls_prop(L, "data", _dragonBones_EventObject_getData, nullptr); - oluacls_prop(L, "slot", _dragonBones_EventObject_getSlot, nullptr); oluacls_prop(L, "typeIndex", _dragonBones_EventObject_getTypeIndex, nullptr); oluacls_prop(L, "COMPLETE", _dragonBones_EventObject_COMPLETE, _dragonBones_EventObject_COMPLETE); oluacls_prop(L, "FADE_IN", _dragonBones_EventObject_FADE_IN, _dragonBones_EventObject_FADE_IN); @@ -2145,6 +2265,16 @@ OLUA_LIB int luaopen_dragonBones_EventObject(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_EventObject(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::EventObject"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_TransformObject_getArmature(lua_State *L) @@ -2236,8 +2366,7 @@ static int _dragonBones_TransformObject_userData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_TransformObject(lua_State *L) +static int _db_TransformObject(lua_State *L) { oluacls_class(L, "db.TransformObject"); oluacls_func(L, "getArmature", _dragonBones_TransformObject_getArmature); @@ -2247,6 +2376,16 @@ OLUA_LIB int luaopen_dragonBones_TransformObject(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_TransformObject(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::TransformObject"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_Point___gc(lua_State *L) @@ -2358,12 +2497,12 @@ static int _dragonBones_Point_helpPointA$2(lua_State *L) { olua_startinvoke(L); - dragonBones::Point arg1; /** helpPointA */ + dragonBones::Point *arg1; /** helpPointA */ olua_check_object(L, 1, &arg1, "db.Point"); // static dragonBones::Point helpPointA - dragonBones::Point::helpPointA = arg1; + dragonBones::Point::helpPointA = *arg1; olua_endinvoke(L); @@ -2408,12 +2547,12 @@ static int _dragonBones_Point_helpPointB$2(lua_State *L) { olua_startinvoke(L); - dragonBones::Point arg1; /** helpPointB */ + dragonBones::Point *arg1; /** helpPointB */ olua_check_object(L, 1, &arg1, "db.Point"); // static dragonBones::Point helpPointB - dragonBones::Point::helpPointB = arg1; + dragonBones::Point::helpPointB = *arg1; olua_endinvoke(L); @@ -2458,12 +2597,12 @@ static int _dragonBones_Point_helpPointC$2(lua_State *L) { olua_startinvoke(L); - dragonBones::Point arg1; /** helpPointC */ + dragonBones::Point *arg1; /** helpPointC */ olua_check_object(L, 1, &arg1, "db.Point"); // static dragonBones::Point helpPointC - dragonBones::Point::helpPointC = arg1; + dragonBones::Point::helpPointC = *arg1; olua_endinvoke(L); @@ -2508,12 +2647,12 @@ static int _dragonBones_Point_helpPointD$2(lua_State *L) { olua_startinvoke(L); - dragonBones::Point arg1; /** helpPointD */ + dragonBones::Point *arg1; /** helpPointD */ olua_check_object(L, 1, &arg1, "db.Point"); // static dragonBones::Point helpPointD - dragonBones::Point::helpPointD = arg1; + dragonBones::Point::helpPointD = *arg1; olua_endinvoke(L); @@ -2667,8 +2806,7 @@ static int _dragonBones_Point_y(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_Point(lua_State *L) +static int _db_Point(lua_State *L) { oluacls_class(L, "db.Point"); oluacls_func(L, "__gc", _dragonBones_Point___gc); @@ -2679,10 +2817,6 @@ OLUA_LIB int luaopen_dragonBones_Point(lua_State *L) oluacls_func(L, "getHelpPointC", _dragonBones_Point_getHelpPointC); oluacls_func(L, "getHelpPointD", _dragonBones_Point_getHelpPointD); oluacls_func(L, "new", _dragonBones_Point_new); - oluacls_prop(L, "helpPointA", _dragonBones_Point_getHelpPointA, nullptr); - oluacls_prop(L, "helpPointB", _dragonBones_Point_getHelpPointB, nullptr); - oluacls_prop(L, "helpPointC", _dragonBones_Point_getHelpPointC, nullptr); - oluacls_prop(L, "helpPointD", _dragonBones_Point_getHelpPointD, nullptr); oluacls_prop(L, "helpPointA", _dragonBones_Point_helpPointA, _dragonBones_Point_helpPointA); oluacls_prop(L, "helpPointB", _dragonBones_Point_helpPointB, _dragonBones_Point_helpPointB); oluacls_prop(L, "helpPointC", _dragonBones_Point_helpPointC, _dragonBones_Point_helpPointC); @@ -2692,6 +2826,16 @@ OLUA_LIB int luaopen_dragonBones_Point(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_Point(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::Point"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_ConstraintData_bone$1(lua_State *L) @@ -3079,8 +3223,7 @@ static int _dragonBones_ConstraintData_target(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_ConstraintData(lua_State *L) +static int _db_ConstraintData(lua_State *L) { oluacls_class(L, "db.ConstraintData"); oluacls_func(L, "getBone", _dragonBones_ConstraintData_getBone); @@ -3089,9 +3232,6 @@ OLUA_LIB int luaopen_dragonBones_ConstraintData(lua_State *L) oluacls_func(L, "setBone", _dragonBones_ConstraintData_setBone); oluacls_func(L, "setRoot", _dragonBones_ConstraintData_setRoot); oluacls_func(L, "setTarget", _dragonBones_ConstraintData_setTarget); - oluacls_prop(L, "bone", _dragonBones_ConstraintData_getBone, _dragonBones_ConstraintData_setBone); - oluacls_prop(L, "root", _dragonBones_ConstraintData_getRoot, _dragonBones_ConstraintData_setRoot); - oluacls_prop(L, "target", _dragonBones_ConstraintData_getTarget, _dragonBones_ConstraintData_setTarget); oluacls_prop(L, "bone", _dragonBones_ConstraintData_bone, _dragonBones_ConstraintData_bone); oluacls_prop(L, "name", _dragonBones_ConstraintData_name, _dragonBones_ConstraintData_name); oluacls_prop(L, "order", _dragonBones_ConstraintData_order, _dragonBones_ConstraintData_order); @@ -3100,6 +3240,16 @@ OLUA_LIB int luaopen_dragonBones_ConstraintData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_ConstraintData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::ConstraintData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_IKConstraintData_bendPositive$1(lua_State *L) @@ -3297,8 +3447,7 @@ static int _dragonBones_IKConstraintData_weight(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_IKConstraintData(lua_State *L) +static int _db_IKConstraintData(lua_State *L) { oluacls_class(L, "db.IKConstraintData"); oluacls_func(L, "getTypeIndex", _dragonBones_IKConstraintData_getTypeIndex); @@ -3310,6 +3459,16 @@ OLUA_LIB int luaopen_dragonBones_IKConstraintData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_IKConstraintData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::IKConstraintData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_TimelineData_frameIndicesOffset$1(lua_State *L) @@ -3542,15 +3701,13 @@ static int _dragonBones_TimelineData_type(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_TimelineData(lua_State *L) +static int _db_TimelineData(lua_State *L) { oluacls_class(L, "db.TimelineData"); oluacls_func(L, "getType", _dragonBones_TimelineData_getType); oluacls_func(L, "getTypeIndex", _dragonBones_TimelineData_getTypeIndex); oluacls_func(L, "new", _dragonBones_TimelineData_new); oluacls_func(L, "setType", _dragonBones_TimelineData_setType); - oluacls_prop(L, "type", _dragonBones_TimelineData_getType, _dragonBones_TimelineData_setType); oluacls_prop(L, "typeIndex", _dragonBones_TimelineData_getTypeIndex, nullptr); oluacls_prop(L, "frameIndicesOffset", _dragonBones_TimelineData_frameIndicesOffset, _dragonBones_TimelineData_frameIndicesOffset); oluacls_prop(L, "offset", _dragonBones_TimelineData_offset, _dragonBones_TimelineData_offset); @@ -3558,6 +3715,16 @@ OLUA_LIB int luaopen_dragonBones_TimelineData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_TimelineData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::TimelineData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_IAnimatable___gc(lua_State *L) @@ -3637,8 +3804,7 @@ static int _dragonBones_IAnimatable_setClock(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_IAnimatable(lua_State *L) +static int _db_IAnimatable(lua_State *L) { oluacls_class(L, "db.IAnimatable"); oluacls_func(L, "__gc", _dragonBones_IAnimatable___gc); @@ -3650,6 +3816,16 @@ OLUA_LIB int luaopen_dragonBones_IAnimatable(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_IAnimatable(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::IAnimatable"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_WorldClock_add(lua_State *L) @@ -3703,12 +3879,12 @@ static int _dragonBones_WorldClock_clock$2(lua_State *L) { olua_startinvoke(L); - dragonBones::WorldClock arg1; /** clock */ + dragonBones::WorldClock *arg1; /** clock */ olua_check_object(L, 1, &arg1, "db.WorldClock"); // static dragonBones::WorldClock clock - dragonBones::WorldClock::clock = arg1; + dragonBones::WorldClock::clock = *arg1; olua_endinvoke(L); @@ -3951,8 +4127,7 @@ static int _dragonBones_WorldClock_timeScale(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_WorldClock(lua_State *L) +static int _db_WorldClock(lua_State *L) { oluacls_class(L, "db.WorldClock"); oluacls_func(L, "add", _dragonBones_WorldClock_add); @@ -3968,6 +4143,16 @@ OLUA_LIB int luaopen_dragonBones_WorldClock(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_WorldClock(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::WorldClock"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_Slot_containsPoint(lua_State *L) @@ -4534,8 +4719,7 @@ static int _dragonBones_Slot_updateTransformAndMatrix(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_Slot(lua_State *L) +static int _db_Slot(lua_State *L) { oluacls_class(L, "db.Slot"); oluacls_func(L, "containsPoint", _dragonBones_Slot_containsPoint); @@ -4572,6 +4756,16 @@ OLUA_LIB int luaopen_dragonBones_Slot(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_Slot(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::Slot"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_Bone_contains(lua_State *L) @@ -4867,8 +5061,7 @@ static int _dragonBones_Bone_updateByConstraint(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_Bone(lua_State *L) +static int _db_Bone(lua_State *L) { oluacls_class(L, "db.Bone"); oluacls_func(L, "contains", _dragonBones_Bone_contains); @@ -4887,7 +5080,6 @@ OLUA_LIB int luaopen_dragonBones_Bone(lua_State *L) oluacls_func(L, "updateByConstraint", _dragonBones_Bone_updateByConstraint); oluacls_prop(L, "boneData", _dragonBones_Bone_getBoneData, nullptr); oluacls_prop(L, "name", _dragonBones_Bone_getName, nullptr); - oluacls_prop(L, "offsetMode", _dragonBones_Bone_getOffsetMode, _dragonBones_Bone_setOffsetMode); oluacls_prop(L, "parent", _dragonBones_Bone_getParent, nullptr); oluacls_prop(L, "typeIndex", _dragonBones_Bone_getTypeIndex, nullptr); oluacls_prop(L, "visible", _dragonBones_Bone_getVisible, _dragonBones_Bone_setVisible); @@ -4895,6 +5087,16 @@ OLUA_LIB int luaopen_dragonBones_Bone(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_Bone(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::Bone"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_DisplayData_getParent(lua_State *L) @@ -5191,16 +5393,13 @@ static int _dragonBones_DisplayData_type(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_DisplayData(lua_State *L) +static int _db_DisplayData(lua_State *L) { oluacls_class(L, "db.DisplayData"); oluacls_func(L, "getParent", _dragonBones_DisplayData_getParent); oluacls_func(L, "getType", _dragonBones_DisplayData_getType); oluacls_func(L, "setParent", _dragonBones_DisplayData_setParent); oluacls_func(L, "setType", _dragonBones_DisplayData_setType); - oluacls_prop(L, "parent", _dragonBones_DisplayData_getParent, _dragonBones_DisplayData_setParent); - oluacls_prop(L, "type", _dragonBones_DisplayData_getType, _dragonBones_DisplayData_setType); oluacls_prop(L, "name", _dragonBones_DisplayData_name, _dragonBones_DisplayData_name); oluacls_prop(L, "parent", _dragonBones_DisplayData_parent, _dragonBones_DisplayData_parent); oluacls_prop(L, "path", _dragonBones_DisplayData_path, _dragonBones_DisplayData_path); @@ -5208,6 +5407,16 @@ OLUA_LIB int luaopen_dragonBones_DisplayData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_DisplayData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::DisplayData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_ActionData_bone$1(lua_State *L) @@ -5657,8 +5866,7 @@ static int _dragonBones_ActionData_type(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_ActionData(lua_State *L) +static int _db_ActionData(lua_State *L) { oluacls_class(L, "db.ActionData"); oluacls_func(L, "getBone", _dragonBones_ActionData_getBone); @@ -5671,10 +5879,6 @@ OLUA_LIB int luaopen_dragonBones_ActionData(lua_State *L) oluacls_func(L, "setData", _dragonBones_ActionData_setData); oluacls_func(L, "setSlot", _dragonBones_ActionData_setSlot); oluacls_func(L, "setType", _dragonBones_ActionData_setType); - oluacls_prop(L, "bone", _dragonBones_ActionData_getBone, _dragonBones_ActionData_setBone); - oluacls_prop(L, "data", _dragonBones_ActionData_getData, _dragonBones_ActionData_setData); - oluacls_prop(L, "slot", _dragonBones_ActionData_getSlot, _dragonBones_ActionData_setSlot); - oluacls_prop(L, "type", _dragonBones_ActionData_getType, _dragonBones_ActionData_setType); oluacls_prop(L, "typeIndex", _dragonBones_ActionData_getTypeIndex, nullptr); oluacls_prop(L, "bone", _dragonBones_ActionData_bone, _dragonBones_ActionData_bone); oluacls_prop(L, "data", _dragonBones_ActionData_data, _dragonBones_ActionData_data); @@ -5684,6 +5888,16 @@ OLUA_LIB int luaopen_dragonBones_ActionData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_ActionData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::ActionData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_UserData_addFloat(lua_State *L) @@ -6061,8 +6275,7 @@ static int _dragonBones_UserData_strings(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_UserData(lua_State *L) +static int _db_UserData(lua_State *L) { oluacls_class(L, "db.UserData"); oluacls_func(L, "addFloat", _dragonBones_UserData_addFloat); @@ -6076,9 +6289,6 @@ OLUA_LIB int luaopen_dragonBones_UserData(lua_State *L) oluacls_func(L, "getStrings", _dragonBones_UserData_getStrings); oluacls_func(L, "getTypeIndex", _dragonBones_UserData_getTypeIndex); oluacls_func(L, "new", _dragonBones_UserData_new); - oluacls_prop(L, "floats", _dragonBones_UserData_getFloats, nullptr); - oluacls_prop(L, "ints", _dragonBones_UserData_getInts, nullptr); - oluacls_prop(L, "strings", _dragonBones_UserData_getStrings, nullptr); oluacls_prop(L, "typeIndex", _dragonBones_UserData_getTypeIndex, nullptr); oluacls_prop(L, "floats", _dragonBones_UserData_floats, _dragonBones_UserData_floats); oluacls_prop(L, "ints", _dragonBones_UserData_ints, _dragonBones_UserData_ints); @@ -6086,6 +6296,16 @@ OLUA_LIB int luaopen_dragonBones_UserData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_UserData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::UserData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_BoundingBoxData_color$1(lua_State *L) @@ -6517,15 +6737,13 @@ static int _dragonBones_BoundingBoxData_width(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_BoundingBoxData(lua_State *L) +static int _db_BoundingBoxData(lua_State *L) { oluacls_class(L, "db.BoundingBoxData"); oluacls_func(L, "containsPoint", _dragonBones_BoundingBoxData_containsPoint); oluacls_func(L, "getType", _dragonBones_BoundingBoxData_getType); oluacls_func(L, "intersectsSegment", _dragonBones_BoundingBoxData_intersectsSegment); oluacls_func(L, "setType", _dragonBones_BoundingBoxData_setType); - oluacls_prop(L, "type", _dragonBones_BoundingBoxData_getType, _dragonBones_BoundingBoxData_setType); oluacls_prop(L, "color", _dragonBones_BoundingBoxData_color, _dragonBones_BoundingBoxData_color); oluacls_prop(L, "height", _dragonBones_BoundingBoxData_height, _dragonBones_BoundingBoxData_height); oluacls_prop(L, "type", _dragonBones_BoundingBoxData_type, _dragonBones_BoundingBoxData_type); @@ -6533,6 +6751,16 @@ OLUA_LIB int luaopen_dragonBones_BoundingBoxData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_BoundingBoxData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::BoundingBoxData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_BoundingBoxDisplayData_boundingBox$1(lua_State *L) @@ -6653,20 +6881,28 @@ static int _dragonBones_BoundingBoxDisplayData_setBoundingBox(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_BoundingBoxDisplayData(lua_State *L) +static int _db_BoundingBoxDisplayData(lua_State *L) { oluacls_class(L, "db.BoundingBoxDisplayData"); oluacls_func(L, "getBoundingBox", _dragonBones_BoundingBoxDisplayData_getBoundingBox); oluacls_func(L, "getTypeIndex", _dragonBones_BoundingBoxDisplayData_getTypeIndex); oluacls_func(L, "new", _dragonBones_BoundingBoxDisplayData_new); oluacls_func(L, "setBoundingBox", _dragonBones_BoundingBoxDisplayData_setBoundingBox); - oluacls_prop(L, "boundingBox", _dragonBones_BoundingBoxDisplayData_getBoundingBox, _dragonBones_BoundingBoxDisplayData_setBoundingBox); oluacls_prop(L, "typeIndex", _dragonBones_BoundingBoxDisplayData_getTypeIndex, nullptr); oluacls_prop(L, "boundingBox", _dragonBones_BoundingBoxDisplayData_boundingBox, _dragonBones_BoundingBoxDisplayData_boundingBox); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_BoundingBoxDisplayData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::BoundingBoxDisplayData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_CanvasData_aabb$1(lua_State *L) @@ -6691,13 +6927,13 @@ static int _dragonBones_CanvasData_aabb$2(lua_State *L) olua_startinvoke(L); dragonBones::CanvasData *self = nullptr; - dragonBones::Rectangle arg1; /** aabb */ + dragonBones::Rectangle *arg1; /** aabb */ olua_to_object(L, 1, &self, "db.CanvasData"); olua_check_object(L, 2, &arg1, "db.Rectangle"); // dragonBones::Rectangle aabb - self->aabb = arg1; + self->aabb = *arg1; olua_endinvoke(L); @@ -6864,8 +7100,7 @@ static int _dragonBones_CanvasData_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_CanvasData(lua_State *L) +static int _db_CanvasData(lua_State *L) { oluacls_class(L, "db.CanvasData"); oluacls_func(L, "getTypeIndex", _dragonBones_CanvasData_getTypeIndex); @@ -6877,6 +7112,16 @@ OLUA_LIB int luaopen_dragonBones_CanvasData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_CanvasData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::CanvasData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_TextureAtlasData_addTexture(lua_State *L) @@ -7407,15 +7652,13 @@ static int _dragonBones_TextureAtlasData_width(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_TextureAtlasData(lua_State *L) +static int _db_TextureAtlasData(lua_State *L) { oluacls_class(L, "db.TextureAtlasData"); oluacls_func(L, "addTexture", _dragonBones_TextureAtlasData_addTexture); oluacls_func(L, "createTexture", _dragonBones_TextureAtlasData_createTexture); oluacls_func(L, "getTexture", _dragonBones_TextureAtlasData_getTexture); oluacls_func(L, "getTextures", _dragonBones_TextureAtlasData_getTextures); - oluacls_prop(L, "textures", _dragonBones_TextureAtlasData_getTextures, nullptr); oluacls_prop(L, "autoSearch", _dragonBones_TextureAtlasData_autoSearch, _dragonBones_TextureAtlasData_autoSearch); oluacls_prop(L, "format", _dragonBones_TextureAtlasData_format, _dragonBones_TextureAtlasData_format); oluacls_prop(L, "height", _dragonBones_TextureAtlasData_height, _dragonBones_TextureAtlasData_height); @@ -7427,6 +7670,16 @@ OLUA_LIB int luaopen_dragonBones_TextureAtlasData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_TextureAtlasData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::TextureAtlasData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_TextureData_createRectangle(lua_State *L) @@ -7683,13 +7936,13 @@ static int _dragonBones_TextureData_region$2(lua_State *L) olua_startinvoke(L); dragonBones::TextureData *self = nullptr; - dragonBones::Rectangle arg1; /** region */ + dragonBones::Rectangle *arg1; /** region */ olua_to_object(L, 1, &self, "db.TextureData"); olua_check_object(L, 2, &arg1, "db.Rectangle"); // dragonBones::Rectangle region - self->region = arg1; + self->region = *arg1; olua_endinvoke(L); @@ -7809,8 +8062,7 @@ static int _dragonBones_TextureData_setParent(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_TextureData(lua_State *L) +static int _db_TextureData(lua_State *L) { oluacls_class(L, "db.TextureData"); oluacls_func(L, "createRectangle", _dragonBones_TextureData_createRectangle); @@ -7819,9 +8071,6 @@ OLUA_LIB int luaopen_dragonBones_TextureData(lua_State *L) oluacls_func(L, "getRegion", _dragonBones_TextureData_getRegion); oluacls_func(L, "setFrame", _dragonBones_TextureData_setFrame); oluacls_func(L, "setParent", _dragonBones_TextureData_setParent); - oluacls_prop(L, "frame", _dragonBones_TextureData_getFrame, _dragonBones_TextureData_setFrame); - oluacls_prop(L, "parent", _dragonBones_TextureData_getParent, _dragonBones_TextureData_setParent); - oluacls_prop(L, "region", _dragonBones_TextureData_getRegion, nullptr); oluacls_prop(L, "frame", _dragonBones_TextureData_frame, _dragonBones_TextureData_frame); oluacls_prop(L, "name", _dragonBones_TextureData_name, _dragonBones_TextureData_name); oluacls_prop(L, "parent", _dragonBones_TextureData_parent, _dragonBones_TextureData_parent); @@ -7830,6 +8079,16 @@ OLUA_LIB int luaopen_dragonBones_TextureData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_TextureData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::TextureData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_ArmatureData_aabb$1(lua_State *L) @@ -7854,13 +8113,13 @@ static int _dragonBones_ArmatureData_aabb$2(lua_State *L) olua_startinvoke(L); dragonBones::ArmatureData *self = nullptr; - dragonBones::Rectangle arg1; /** aabb */ + dragonBones::Rectangle *arg1; /** aabb */ olua_to_object(L, 1, &self, "db.ArmatureData"); olua_check_object(L, 2, &arg1, "db.Rectangle"); // dragonBones::Rectangle aabb - self->aabb = arg1; + self->aabb = *arg1; olua_endinvoke(L); @@ -9611,8 +9870,7 @@ static int _dragonBones_ArmatureData_userData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_ArmatureData(lua_State *L) +static int _db_ArmatureData(lua_State *L) { oluacls_class(L, "db.ArmatureData"); oluacls_func(L, "addAction", _dragonBones_ArmatureData_addAction); @@ -9646,18 +9904,7 @@ OLUA_LIB int luaopen_dragonBones_ArmatureData(lua_State *L) oluacls_func(L, "setType", _dragonBones_ArmatureData_setType); oluacls_func(L, "setUserData", _dragonBones_ArmatureData_setUserData); oluacls_func(L, "sortBones", _dragonBones_ArmatureData_sortBones); - oluacls_prop(L, "aabb", _dragonBones_ArmatureData_getAABB, nullptr); - oluacls_prop(L, "actions", _dragonBones_ArmatureData_getActions, nullptr); - oluacls_prop(L, "animationNames", _dragonBones_ArmatureData_getAnimationNames, nullptr); - oluacls_prop(L, "defaultActions", _dragonBones_ArmatureData_getDefaultActions, nullptr); - oluacls_prop(L, "defaultAnimation", _dragonBones_ArmatureData_getDefaultAnimation, _dragonBones_ArmatureData_setDefaultAnimation); - oluacls_prop(L, "defaultSkin", _dragonBones_ArmatureData_getDefaultSkin, _dragonBones_ArmatureData_setDefaultSkin); - oluacls_prop(L, "parent", _dragonBones_ArmatureData_getParent, _dragonBones_ArmatureData_setParent); - oluacls_prop(L, "sortedBones", _dragonBones_ArmatureData_getSortedBones, nullptr); - oluacls_prop(L, "sortedSlots", _dragonBones_ArmatureData_getSortedSlots, nullptr); - oluacls_prop(L, "type", _dragonBones_ArmatureData_getType, _dragonBones_ArmatureData_setType); oluacls_prop(L, "typeIndex", _dragonBones_ArmatureData_getTypeIndex, nullptr); - oluacls_prop(L, "userData", _dragonBones_ArmatureData_getUserData, _dragonBones_ArmatureData_setUserData); oluacls_prop(L, "aabb", _dragonBones_ArmatureData_aabb, _dragonBones_ArmatureData_aabb); oluacls_prop(L, "actions", _dragonBones_ArmatureData_actions, _dragonBones_ArmatureData_actions); oluacls_prop(L, "animationNames", _dragonBones_ArmatureData_animationNames, _dragonBones_ArmatureData_animationNames); @@ -9682,6 +9929,16 @@ OLUA_LIB int luaopen_dragonBones_ArmatureData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_ArmatureData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::ArmatureData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_SkinData_addDisplay(lua_State *L) @@ -9864,8 +10121,7 @@ static int _dragonBones_SkinData_parent(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_SkinData(lua_State *L) +static int _db_SkinData(lua_State *L) { oluacls_class(L, "db.SkinData"); oluacls_func(L, "addDisplay", _dragonBones_SkinData_addDisplay); @@ -9878,6 +10134,16 @@ OLUA_LIB int luaopen_dragonBones_SkinData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_SkinData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::SkinData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_BoneData_getParent(lua_State *L) @@ -10425,8 +10691,7 @@ static int _dragonBones_BoneData_userData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_BoneData(lua_State *L) +static int _db_BoneData(lua_State *L) { oluacls_class(L, "db.BoneData"); oluacls_func(L, "getParent", _dragonBones_BoneData_getParent); @@ -10435,9 +10700,7 @@ OLUA_LIB int luaopen_dragonBones_BoneData(lua_State *L) oluacls_func(L, "new", _dragonBones_BoneData_new); oluacls_func(L, "setParent", _dragonBones_BoneData_setParent); oluacls_func(L, "setUserData", _dragonBones_BoneData_setUserData); - oluacls_prop(L, "parent", _dragonBones_BoneData_getParent, _dragonBones_BoneData_setParent); oluacls_prop(L, "typeIndex", _dragonBones_BoneData_getTypeIndex, nullptr); - oluacls_prop(L, "userData", _dragonBones_BoneData_getUserData, _dragonBones_BoneData_setUserData); oluacls_prop(L, "inheritReflection", _dragonBones_BoneData_inheritReflection, _dragonBones_BoneData_inheritReflection); oluacls_prop(L, "inheritRotation", _dragonBones_BoneData_inheritRotation, _dragonBones_BoneData_inheritRotation); oluacls_prop(L, "inheritScale", _dragonBones_BoneData_inheritScale, _dragonBones_BoneData_inheritScale); @@ -10449,6 +10712,16 @@ OLUA_LIB int luaopen_dragonBones_BoneData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_BoneData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::BoneData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_SlotData_blendMode$1(lua_State *L) @@ -10919,8 +11192,7 @@ static int _dragonBones_SlotData_zOrder(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_SlotData(lua_State *L) +static int _db_SlotData(lua_State *L) { oluacls_class(L, "db.SlotData"); oluacls_func(L, "getBlendMode", _dragonBones_SlotData_getBlendMode); @@ -10931,10 +11203,7 @@ OLUA_LIB int luaopen_dragonBones_SlotData(lua_State *L) oluacls_func(L, "setBlendMode", _dragonBones_SlotData_setBlendMode); oluacls_func(L, "setParent", _dragonBones_SlotData_setParent); oluacls_func(L, "setUserData", _dragonBones_SlotData_setUserData); - oluacls_prop(L, "blendMode", _dragonBones_SlotData_getBlendMode, _dragonBones_SlotData_setBlendMode); - oluacls_prop(L, "parent", _dragonBones_SlotData_getParent, _dragonBones_SlotData_setParent); oluacls_prop(L, "typeIndex", _dragonBones_SlotData_getTypeIndex, nullptr); - oluacls_prop(L, "userData", _dragonBones_SlotData_getUserData, _dragonBones_SlotData_setUserData); oluacls_prop(L, "blendMode", _dragonBones_SlotData_blendMode, _dragonBones_SlotData_blendMode); oluacls_prop(L, "displayIndex", _dragonBones_SlotData_displayIndex, _dragonBones_SlotData_displayIndex); oluacls_prop(L, "name", _dragonBones_SlotData_name, _dragonBones_SlotData_name); @@ -10944,6 +11213,16 @@ OLUA_LIB int luaopen_dragonBones_SlotData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_SlotData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::SlotData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_AnimationState_actionEnabled$1(lua_State *L) @@ -12125,8 +12404,7 @@ static int _dragonBones_AnimationState_weight(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_AnimationState(lua_State *L) +static int _db_AnimationState(lua_State *L) { oluacls_class(L, "db.AnimationState"); oluacls_func(L, "addBoneMask", _dragonBones_AnimationState_addBoneMask); @@ -12157,8 +12435,6 @@ OLUA_LIB int luaopen_dragonBones_AnimationState(lua_State *L) oluacls_prop(L, "currentTime", _dragonBones_AnimationState_getCurrentTime, _dragonBones_AnimationState_setCurrentTime); oluacls_prop(L, "fadeComplete", _dragonBones_AnimationState_isFadeComplete, nullptr); oluacls_prop(L, "fadeIn", _dragonBones_AnimationState_isFadeIn, nullptr); - oluacls_prop(L, "fadeOut", _dragonBones_AnimationState_isFadeOut, nullptr); - oluacls_prop(L, "name", _dragonBones_AnimationState_getName, nullptr); oluacls_prop(L, "playing", _dragonBones_AnimationState_isPlaying, nullptr); oluacls_prop(L, "totalTime", _dragonBones_AnimationState_getTotalTime, nullptr); oluacls_prop(L, "typeIndex", _dragonBones_AnimationState_getTypeIndex, nullptr); @@ -12177,6 +12453,16 @@ OLUA_LIB int luaopen_dragonBones_AnimationState(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_AnimationState(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::AnimationState"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_AnimationData_actionTimeline$1(lua_State *L) @@ -13177,8 +13463,7 @@ static int _dragonBones_AnimationData_zOrderTimeline(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_AnimationData(lua_State *L) +static int _db_AnimationData(lua_State *L) { oluacls_class(L, "db.AnimationData"); oluacls_func(L, "addBoneTimeline", _dragonBones_AnimationData_addBoneTimeline); @@ -13193,10 +13478,7 @@ OLUA_LIB int luaopen_dragonBones_AnimationData(lua_State *L) oluacls_func(L, "setActionTimeline", _dragonBones_AnimationData_setActionTimeline); oluacls_func(L, "setParent", _dragonBones_AnimationData_setParent); oluacls_func(L, "setZOrderTimeline", _dragonBones_AnimationData_setZOrderTimeline); - oluacls_prop(L, "actionTimeline", _dragonBones_AnimationData_getActionTimeline, _dragonBones_AnimationData_setActionTimeline); - oluacls_prop(L, "parent", _dragonBones_AnimationData_getParent, _dragonBones_AnimationData_setParent); oluacls_prop(L, "typeIndex", _dragonBones_AnimationData_getTypeIndex, nullptr); - oluacls_prop(L, "zOrderTimeline", _dragonBones_AnimationData_getZOrderTimeline, _dragonBones_AnimationData_setZOrderTimeline); oluacls_prop(L, "actionTimeline", _dragonBones_AnimationData_actionTimeline, _dragonBones_AnimationData_actionTimeline); oluacls_prop(L, "cacheFrameRate", _dragonBones_AnimationData_cacheFrameRate, _dragonBones_AnimationData_cacheFrameRate); oluacls_prop(L, "cachedFrames", _dragonBones_AnimationData_cachedFrames, _dragonBones_AnimationData_cachedFrames); @@ -13214,6 +13496,16 @@ OLUA_LIB int luaopen_dragonBones_AnimationData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_AnimationData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::AnimationData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_AnimationConfig_actionEnabled$1(lua_State *L) @@ -14681,8 +14973,7 @@ static int _dragonBones_AnimationConfig_weight(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_AnimationConfig(lua_State *L) +static int _db_AnimationConfig(lua_State *L) { oluacls_class(L, "db.AnimationConfig"); oluacls_func(L, "addBoneMask", _dragonBones_AnimationConfig_addBoneMask); @@ -14698,9 +14989,6 @@ OLUA_LIB int luaopen_dragonBones_AnimationConfig(lua_State *L) oluacls_func(L, "setFadeInTweenType", _dragonBones_AnimationConfig_setFadeInTweenType); oluacls_func(L, "setFadeOutMode", _dragonBones_AnimationConfig_setFadeOutMode); oluacls_func(L, "setFadeOutTweenType", _dragonBones_AnimationConfig_setFadeOutTweenType); - oluacls_prop(L, "fadeInTweenType", _dragonBones_AnimationConfig_getFadeInTweenType, _dragonBones_AnimationConfig_setFadeInTweenType); - oluacls_prop(L, "fadeOutMode", _dragonBones_AnimationConfig_getFadeOutMode, _dragonBones_AnimationConfig_setFadeOutMode); - oluacls_prop(L, "fadeOutTweenType", _dragonBones_AnimationConfig_getFadeOutTweenType, _dragonBones_AnimationConfig_setFadeOutTweenType); oluacls_prop(L, "typeIndex", _dragonBones_AnimationConfig_getTypeIndex, nullptr); oluacls_prop(L, "actionEnabled", _dragonBones_AnimationConfig_actionEnabled, _dragonBones_AnimationConfig_actionEnabled); oluacls_prop(L, "additiveBlending", _dragonBones_AnimationConfig_additiveBlending, _dragonBones_AnimationConfig_additiveBlending); @@ -14727,6 +15015,16 @@ OLUA_LIB int luaopen_dragonBones_AnimationConfig(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_AnimationConfig(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::AnimationConfig"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_DragonBonesData_addArmature(lua_State *L) @@ -15761,8 +16059,7 @@ static int _dragonBones_DragonBonesData_version(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_DragonBonesData(lua_State *L) +static int _db_DragonBonesData(lua_State *L) { oluacls_class(L, "db.DragonBonesData"); oluacls_func(L, "addArmature", _dragonBones_DragonBonesData_addArmature); @@ -15772,9 +16069,7 @@ OLUA_LIB int luaopen_dragonBones_DragonBonesData(lua_State *L) oluacls_func(L, "getUserData", _dragonBones_DragonBonesData_getUserData); oluacls_func(L, "new", _dragonBones_DragonBonesData_new); oluacls_func(L, "setUserData", _dragonBones_DragonBonesData_setUserData); - oluacls_prop(L, "armatureNames", _dragonBones_DragonBonesData_getArmatureNames, nullptr); oluacls_prop(L, "typeIndex", _dragonBones_DragonBonesData_getTypeIndex, nullptr); - oluacls_prop(L, "userData", _dragonBones_DragonBonesData_getUserData, _dragonBones_DragonBonesData_setUserData); oluacls_prop(L, "armatureNames", _dragonBones_DragonBonesData_armatureNames, _dragonBones_DragonBonesData_armatureNames); oluacls_prop(L, "armatures", _dragonBones_DragonBonesData_armatures, _dragonBones_DragonBonesData_armatures); oluacls_prop(L, "autoSearch", _dragonBones_DragonBonesData_autoSearch, _dragonBones_DragonBonesData_autoSearch); @@ -15794,6 +16089,16 @@ OLUA_LIB int luaopen_dragonBones_DragonBonesData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_DragonBonesData(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::DragonBonesData"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_BaseFactory___gc(lua_State *L) @@ -16970,8 +17275,7 @@ static int _dragonBones_BaseFactory_replaceSlotDisplayList(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_BaseFactory(lua_State *L) +static int _db_BaseFactory(lua_State *L) { oluacls_class(L, "db.BaseFactory"); oluacls_func(L, "__gc", _dragonBones_BaseFactory___gc); @@ -17000,6 +17304,16 @@ OLUA_LIB int luaopen_dragonBones_BaseFactory(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_BaseFactory(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::BaseFactory"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_Armature_as(lua_State *L) @@ -17968,8 +18282,7 @@ static int _dragonBones_Armature_userData(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_Armature(lua_State *L) +static int _db_Armature(lua_State *L) { oluacls_class(L, "db.Armature"); oluacls_func(L, "as", _dragonBones_Armature_as); @@ -18027,6 +18340,16 @@ OLUA_LIB int luaopen_dragonBones_Armature(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_Armature(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::Armature"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_Animation_advanceTime(lua_State *L) @@ -19151,8 +19474,7 @@ static int _dragonBones_Animation_timeScale(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_Animation(lua_State *L) +static int _db_Animation(lua_State *L) { oluacls_class(L, "db.Animation"); oluacls_func(L, "advanceTime", _dragonBones_Animation_advanceTime); @@ -19194,6 +19516,16 @@ OLUA_LIB int luaopen_dragonBones_Animation(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_Animation(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::Animation"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_CCFactory_buildArmatureDisplay$1(lua_State *L) @@ -19627,8 +19959,7 @@ static int _dragonBones_CCFactory_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_CCFactory(lua_State *L) +static int _db_Factory(lua_State *L) { oluacls_class(L, "db.Factory"); oluacls_func(L, "buildArmatureDisplay", _dragonBones_CCFactory_buildArmatureDisplay); @@ -19645,6 +19976,16 @@ OLUA_LIB int luaopen_dragonBones_CCFactory(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_Factory(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::CCFactory"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_IEventDispatcher___gc(lua_State *L) @@ -19687,7 +20028,7 @@ static int _dragonBones_IEventDispatcher_addDBEventListener(lua_State *L) std::string cb_tag = "addDBEventListener"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](dragonBones::EventObject *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](dragonBones::EventObject *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -19695,7 +20036,7 @@ static int _dragonBones_IEventDispatcher_addDBEventListener(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "db.EventObject"); + olua_push_object(L, cb_arg1, "db.EventObject"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -19769,7 +20110,7 @@ static int _dragonBones_IEventDispatcher_removeDBEventListener(lua_State *L) std::string cb_tag = "removeDBEventListener"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](dragonBones::EventObject *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](dragonBones::EventObject *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -19777,7 +20118,7 @@ static int _dragonBones_IEventDispatcher_removeDBEventListener(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "db.EventObject"); + olua_push_object(L, cb_arg1, "db.EventObject"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -19796,8 +20137,7 @@ static int _dragonBones_IEventDispatcher_removeDBEventListener(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_IEventDispatcher(lua_State *L) +static int _db_IEventDispatcher(lua_State *L) { oluacls_class(L, "db.IEventDispatcher"); oluacls_func(L, "__gc", _dragonBones_IEventDispatcher___gc); @@ -19809,6 +20149,16 @@ OLUA_LIB int luaopen_dragonBones_IEventDispatcher(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_IEventDispatcher(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::IEventDispatcher"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_IArmatureProxy_dbClear(lua_State *L) @@ -19913,8 +20263,7 @@ static int _dragonBones_IArmatureProxy_getArmature(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_IArmatureProxy(lua_State *L) +static int _db_IArmatureProxy(lua_State *L) { oluacls_class(L, "db.IArmatureProxy"); oluacls_func(L, "dbClear", _dragonBones_IArmatureProxy_dbClear); @@ -19928,6 +20277,16 @@ OLUA_LIB int luaopen_dragonBones_IArmatureProxy(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_IArmatureProxy(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::IArmatureProxy"); + } + return 1; +} OLUA_END_DECLS static int _dragonBones_CCArmatureDisplay_addDBEventListener(lua_State *L) @@ -19946,7 +20305,7 @@ static int _dragonBones_CCArmatureDisplay_addDBEventListener(lua_State *L) std::string cb_tag = (arg1); std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](dragonBones::EventObject *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](dragonBones::EventObject *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -19954,7 +20313,7 @@ static int _dragonBones_CCArmatureDisplay_addDBEventListener(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "db.EventObject"); + olua_push_object(L, cb_arg1, "db.EventObject"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -20292,8 +20651,7 @@ static int _dragonBones_CCArmatureDisplay_removeDBEventListener(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_dragonBones_CCArmatureDisplay(lua_State *L) +static int _db_ArmatureDisplay(lua_State *L) { oluacls_class(L, "db.ArmatureDisplay"); oluacls_func(L, "addDBEventListener", _dragonBones_CCArmatureDisplay_addDBEventListener); @@ -20315,58 +20673,68 @@ OLUA_LIB int luaopen_dragonBones_CCArmatureDisplay(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_db_ArmatureDisplay(lua_State *L) +{ + olua_require(L, "dragonbones", luaopen_dragonbones); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: dragonBones::CCArmatureDisplay"); + } + return 1; +} OLUA_END_DECLS OLUA_BEGIN_DECLS OLUA_LIB int luaopen_dragonbones(lua_State *L) { - olua_require(L, "db.Rectangle", luaopen_dragonBones_Rectangle); - olua_require(L, "db.BinaryOffset", luaopen_dragonBones_BinaryOffset); - olua_require(L, "db.ArmatureType", luaopen_dragonBones_ArmatureType); - olua_require(L, "db.OffsetMode", luaopen_dragonBones_OffsetMode); - olua_require(L, "db.DisplayType", luaopen_dragonBones_DisplayType); - olua_require(L, "db.BoundingBoxType", luaopen_dragonBones_BoundingBoxType); - olua_require(L, "db.ActionType", luaopen_dragonBones_ActionType); - olua_require(L, "db.BlendMode", luaopen_dragonBones_BlendMode); - olua_require(L, "db.TweenType", luaopen_dragonBones_TweenType); - olua_require(L, "db.TimelineType", luaopen_dragonBones_TimelineType); - olua_require(L, "db.AnimationFadeOutMode", luaopen_dragonBones_AnimationFadeOutMode); - olua_require(L, "db.TextureFormat", luaopen_dragonBones_TextureFormat); - olua_require(L, "db.DragonBones", luaopen_dragonBones_DragonBones); - olua_require(L, "db.BaseObject", luaopen_dragonBones_BaseObject); - olua_require(L, "db.EventObject", luaopen_dragonBones_EventObject); - olua_require(L, "db.TransformObject", luaopen_dragonBones_TransformObject); - olua_require(L, "db.Point", luaopen_dragonBones_Point); - olua_require(L, "db.ConstraintData", luaopen_dragonBones_ConstraintData); - olua_require(L, "db.IKConstraintData", luaopen_dragonBones_IKConstraintData); - olua_require(L, "db.TimelineData", luaopen_dragonBones_TimelineData); - olua_require(L, "db.IAnimatable", luaopen_dragonBones_IAnimatable); - olua_require(L, "db.WorldClock", luaopen_dragonBones_WorldClock); - olua_require(L, "db.Slot", luaopen_dragonBones_Slot); - olua_require(L, "db.Bone", luaopen_dragonBones_Bone); - olua_require(L, "db.DisplayData", luaopen_dragonBones_DisplayData); - olua_require(L, "db.ActionData", luaopen_dragonBones_ActionData); - olua_require(L, "db.UserData", luaopen_dragonBones_UserData); - olua_require(L, "db.BoundingBoxData", luaopen_dragonBones_BoundingBoxData); - olua_require(L, "db.BoundingBoxDisplayData", luaopen_dragonBones_BoundingBoxDisplayData); - olua_require(L, "db.CanvasData", luaopen_dragonBones_CanvasData); - olua_require(L, "db.TextureAtlasData", luaopen_dragonBones_TextureAtlasData); - olua_require(L, "db.TextureData", luaopen_dragonBones_TextureData); - olua_require(L, "db.ArmatureData", luaopen_dragonBones_ArmatureData); - olua_require(L, "db.SkinData", luaopen_dragonBones_SkinData); - olua_require(L, "db.BoneData", luaopen_dragonBones_BoneData); - olua_require(L, "db.SlotData", luaopen_dragonBones_SlotData); - olua_require(L, "db.AnimationState", luaopen_dragonBones_AnimationState); - olua_require(L, "db.AnimationData", luaopen_dragonBones_AnimationData); - olua_require(L, "db.AnimationConfig", luaopen_dragonBones_AnimationConfig); - olua_require(L, "db.DragonBonesData", luaopen_dragonBones_DragonBonesData); - olua_require(L, "db.BaseFactory", luaopen_dragonBones_BaseFactory); - olua_require(L, "db.Armature", luaopen_dragonBones_Armature); - olua_require(L, "db.Animation", luaopen_dragonBones_Animation); - olua_require(L, "db.Factory", luaopen_dragonBones_CCFactory); - olua_require(L, "db.IEventDispatcher", luaopen_dragonBones_IEventDispatcher); - olua_require(L, "db.IArmatureProxy", luaopen_dragonBones_IArmatureProxy); - olua_require(L, "db.ArmatureDisplay", luaopen_dragonBones_CCArmatureDisplay); + olua_require(L, "db.Rectangle", _db_Rectangle); + olua_require(L, "db.BinaryOffset", _db_BinaryOffset); + olua_require(L, "db.ArmatureType", _db_ArmatureType); + olua_require(L, "db.OffsetMode", _db_OffsetMode); + olua_require(L, "db.DisplayType", _db_DisplayType); + olua_require(L, "db.BoundingBoxType", _db_BoundingBoxType); + olua_require(L, "db.ActionType", _db_ActionType); + olua_require(L, "db.BlendMode", _db_BlendMode); + olua_require(L, "db.TweenType", _db_TweenType); + olua_require(L, "db.TimelineType", _db_TimelineType); + olua_require(L, "db.AnimationFadeOutMode", _db_AnimationFadeOutMode); + olua_require(L, "db.TextureFormat", _db_TextureFormat); + olua_require(L, "db.DragonBones", _db_DragonBones); + olua_require(L, "db.BaseObject", _db_BaseObject); + olua_require(L, "db.EventObject", _db_EventObject); + olua_require(L, "db.TransformObject", _db_TransformObject); + olua_require(L, "db.Point", _db_Point); + olua_require(L, "db.ConstraintData", _db_ConstraintData); + olua_require(L, "db.IKConstraintData", _db_IKConstraintData); + olua_require(L, "db.TimelineData", _db_TimelineData); + olua_require(L, "db.IAnimatable", _db_IAnimatable); + olua_require(L, "db.WorldClock", _db_WorldClock); + olua_require(L, "db.Slot", _db_Slot); + olua_require(L, "db.Bone", _db_Bone); + olua_require(L, "db.DisplayData", _db_DisplayData); + olua_require(L, "db.ActionData", _db_ActionData); + olua_require(L, "db.UserData", _db_UserData); + olua_require(L, "db.BoundingBoxData", _db_BoundingBoxData); + olua_require(L, "db.BoundingBoxDisplayData", _db_BoundingBoxDisplayData); + olua_require(L, "db.CanvasData", _db_CanvasData); + olua_require(L, "db.TextureAtlasData", _db_TextureAtlasData); + olua_require(L, "db.TextureData", _db_TextureData); + olua_require(L, "db.ArmatureData", _db_ArmatureData); + olua_require(L, "db.SkinData", _db_SkinData); + olua_require(L, "db.BoneData", _db_BoneData); + olua_require(L, "db.SlotData", _db_SlotData); + olua_require(L, "db.AnimationState", _db_AnimationState); + olua_require(L, "db.AnimationData", _db_AnimationData); + olua_require(L, "db.AnimationConfig", _db_AnimationConfig); + olua_require(L, "db.DragonBonesData", _db_DragonBonesData); + olua_require(L, "db.BaseFactory", _db_BaseFactory); + olua_require(L, "db.Armature", _db_Armature); + olua_require(L, "db.Animation", _db_Animation); + olua_require(L, "db.Factory", _db_Factory); + olua_require(L, "db.IEventDispatcher", _db_IEventDispatcher); + olua_require(L, "db.IArmatureProxy", _db_IArmatureProxy); + olua_require(L, "db.ArmatureDisplay", _db_ArmatureDisplay); cclua::runtime::registerFeature("dragonbones", true); diff --git a/frameworks/cclua/src/lua-bindings/lua_dragonbones.h b/frameworks/cclua/src/lua-bindings/lua_dragonbones.h index e96bc316..3c4f6c75 100644 --- a/frameworks/cclua/src/lua-bindings/lua_dragonbones.h +++ b/frameworks/cclua/src/lua-bindings/lua_dragonbones.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_DRAGONBONES_H__ #define __AUTO_GEN_LUA_DRAGONBONES_H__ diff --git a/frameworks/cclua/src/lua-bindings/lua_fairygui.cpp b/frameworks/cclua/src/lua-bindings/lua_fairygui.cpp index 79944d78..ae036329 100644 --- a/frameworks/cclua/src/lua-bindings/lua_fairygui.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_fairygui.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_fairygui.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -501,8 +501,7 @@ static int _fairygui_VectorTreeNode_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_VectorTreeNode(lua_State *L) +static int _fgui_VectorTreeNode(lua_State *L) { oluacls_class(L, "fgui.VectorTreeNode"); oluacls_func(L, "__gc", _fairygui_VectorTreeNode___gc); @@ -522,6 +521,16 @@ OLUA_LIB int luaopen_fairygui_VectorTreeNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_VectorTreeNode(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::VectorTreeNode"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_Margin___gc(lua_State *L) @@ -609,13 +618,13 @@ static int _fairygui_Margin_equals(lua_State *L) olua_startinvoke(L); fairygui::Margin *self = nullptr; - fairygui::Margin arg1; /** target */ + fairygui::Margin *arg1; /** target */ olua_to_object(L, 1, &self, "fgui.Margin"); olua_check_object(L, 2, &arg1, "fgui.Margin"); // bool equals(const fairygui::Margin &target) - bool ret = self->equals(arg1); + bool ret = self->equals(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -874,8 +883,7 @@ static int _fairygui_Margin_top(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_Margin(lua_State *L) +static int _fgui_Margin(lua_State *L) { oluacls_class(L, "fgui.Margin"); oluacls_func(L, "__gc", _fairygui_Margin___gc); @@ -891,6 +899,16 @@ OLUA_LIB int luaopen_fairygui_Margin(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_Margin(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::Margin"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_HtmlParseOptions___gc(lua_State *L) @@ -1143,8 +1161,7 @@ static int _fairygui_HtmlParseOptions_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_HtmlParseOptions(lua_State *L) +static int _fgui_HtmlParseOptions(lua_State *L) { oluacls_class(L, "fgui.HtmlParseOptions"); oluacls_func(L, "__gc", _fairygui_HtmlParseOptions___gc); @@ -1157,6 +1174,16 @@ OLUA_LIB int luaopen_fairygui_HtmlParseOptions(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_HtmlParseOptions(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::HtmlParseOptions"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_TweenValue___gc(lua_State *L) @@ -1344,13 +1371,13 @@ static int _fairygui_TweenValue_setVec2(lua_State *L) olua_startinvoke(L); fairygui::TweenValue *self = nullptr; - cocos2d::Vec2 arg1; /** value */ + cocos2d::Vec2 *arg1; /** value */ olua_to_object(L, 1, &self, "fgui.TweenValue"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // void setVec2(const cocos2d::Vec2 &value) - self->setVec2(arg1); + self->setVec2(*arg1); olua_endinvoke(L); @@ -1362,13 +1389,13 @@ static int _fairygui_TweenValue_setVec3(lua_State *L) olua_startinvoke(L); fairygui::TweenValue *self = nullptr; - cocos2d::Vec3 arg1; /** value */ + cocos2d::Vec3 *arg1; /** value */ olua_to_object(L, 1, &self, "fgui.TweenValue"); olua_check_object(L, 2, &arg1, "cc.Vec3"); // void setVec3(const cocos2d::Vec3 &value) - self->setVec3(arg1); + self->setVec3(*arg1); olua_endinvoke(L); @@ -1380,13 +1407,13 @@ static int _fairygui_TweenValue_setVec4(lua_State *L) olua_startinvoke(L); fairygui::TweenValue *self = nullptr; - cocos2d::Vec4 arg1; /** value */ + cocos2d::Vec4 *arg1; /** value */ olua_to_object(L, 1, &self, "fgui.TweenValue"); olua_check_object(L, 2, &arg1, "cc.Vec4"); // void setVec4(const cocos2d::Vec4 &value) - self->setVec4(arg1); + self->setVec4(*arg1); olua_endinvoke(L); @@ -1633,8 +1660,7 @@ static int _fairygui_TweenValue_z(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_TweenValue(lua_State *L) +static int _fgui_TweenValue(lua_State *L) { oluacls_class(L, "fgui.TweenValue"); oluacls_func(L, "__gc", _fairygui_TweenValue___gc); @@ -1661,6 +1687,16 @@ OLUA_LIB int luaopen_fairygui_TweenValue(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_TweenValue(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::TweenValue"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_UIEventType___gc(lua_State *L) @@ -1687,8 +1723,7 @@ static int _fairygui_UIEventType___olua_move(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_UIEventType(lua_State *L) +static int _fgui_UIEventType(lua_State *L) { oluacls_class(L, "fgui.UIEventType"); oluacls_func(L, "__index", olua_indexerror); @@ -1727,6 +1762,16 @@ OLUA_LIB int luaopen_fairygui_UIEventType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_UIEventType(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::UIEventType"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_EventCallback___call(lua_State *L) @@ -1741,14 +1786,23 @@ static int _fairygui_EventCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_EventCallback(lua_State *L) +static int _fgui_EventCallback(lua_State *L) { oluacls_class(L, "fgui.EventCallback"); oluacls_func(L, "__call", _fairygui_EventCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_EventCallback(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::EventCallback"); + } + return 1; +} OLUA_END_DECLS static std::string makeListenerTag(lua_State *L, lua_Integer type, int tagidx) @@ -1788,7 +1842,7 @@ static int _fairygui_UIEventDispatcher_addEventListener$1(lua_State *L) std::string cb_tag = makeListenerTag(L, arg1, 0); std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](fairygui::EventContext *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](fairygui::EventContext *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -1796,7 +1850,7 @@ static int _fairygui_UIEventDispatcher_addEventListener$1(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "fgui.EventContext"); + olua_push_object(L, cb_arg1, "fgui.EventContext"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -1833,7 +1887,7 @@ static int _fairygui_UIEventDispatcher_addEventListener$2(lua_State *L) std::string cb_tag = makeListenerTag(L, arg1, 4); std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](fairygui::EventContext *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](fairygui::EventContext *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -1841,7 +1895,7 @@ static int _fairygui_UIEventDispatcher_addEventListener$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "fgui.EventContext"); + olua_push_object(L, cb_arg1, "fgui.EventContext"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -2254,8 +2308,7 @@ static int _fairygui_UIEventDispatcher_removeEventListeners(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_UIEventDispatcher(lua_State *L) +static int _fgui_UIEventDispatcher(lua_State *L) { oluacls_class(L, "fgui.UIEventDispatcher"); oluacls_func(L, "addEventListener", _fairygui_UIEventDispatcher_addEventListener); @@ -2269,6 +2322,16 @@ OLUA_LIB int luaopen_fairygui_UIEventDispatcher(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_UIEventDispatcher(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::UIEventDispatcher"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_EventContext___gc(lua_State *L) @@ -2475,8 +2538,7 @@ static int _fairygui_EventContext_uncaptureTouch(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_EventContext(lua_State *L) +static int _fgui_EventContext(lua_State *L) { oluacls_class(L, "fgui.EventContext"); oluacls_func(L, "__gc", _fairygui_EventContext___gc); @@ -2501,6 +2563,16 @@ OLUA_LIB int luaopen_fairygui_EventContext(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_EventContext(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::EventContext"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_IHitTest___gc(lua_State *L) @@ -2533,14 +2605,14 @@ static int _fairygui_IHitTest_hitTest(lua_State *L) fairygui::IHitTest *self = nullptr; fairygui::GComponent *arg1 = nullptr; /** obj */ - cocos2d::Vec2 arg2; /** localPoint */ + cocos2d::Vec2 *arg2; /** localPoint */ olua_to_object(L, 1, &self, "fgui.IHitTest"); olua_check_object(L, 2, &arg1, "fgui.GComponent"); olua_check_object(L, 3, &arg2, "cc.Vec2"); // bool hitTest(fairygui::GComponent *obj, const cocos2d::Vec2 &localPoint) - bool ret = self->hitTest(arg1, arg2); + bool ret = self->hitTest(arg1, *arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -2548,8 +2620,7 @@ static int _fairygui_IHitTest_hitTest(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_IHitTest(lua_State *L) +static int _fgui_IHitTest(lua_State *L) { oluacls_class(L, "fgui.IHitTest"); oluacls_func(L, "__gc", _fairygui_IHitTest___gc); @@ -2558,6 +2629,16 @@ OLUA_LIB int luaopen_fairygui_IHitTest(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_IHitTest(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::IHitTest"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_PixelHitTest_new(lua_State *L) @@ -2806,8 +2887,7 @@ static int _fairygui_PixelHitTest_scaleY(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_PixelHitTest(lua_State *L) +static int _fgui_PixelHitTest(lua_State *L) { oluacls_class(L, "fgui.PixelHitTest"); oluacls_func(L, "new", _fairygui_PixelHitTest_new); @@ -2818,6 +2898,16 @@ OLUA_LIB int luaopen_fairygui_PixelHitTest(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_PixelHitTest(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::PixelHitTest"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_PixelHitTestData___gc(lua_State *L) @@ -3082,8 +3172,7 @@ static int _fairygui_PixelHitTestData_scale(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_PixelHitTestData(lua_State *L) +static int _fgui_PixelHitTestData(lua_State *L) { oluacls_class(L, "fgui.PixelHitTestData"); oluacls_func(L, "__gc", _fairygui_PixelHitTestData___gc); @@ -3096,6 +3185,16 @@ OLUA_LIB int luaopen_fairygui_PixelHitTestData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_PixelHitTestData(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::PixelHitTestData"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_InputProcessor_CaptureEventCallback___call(lua_State *L) @@ -3110,14 +3209,23 @@ static int _fairygui_InputProcessor_CaptureEventCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_InputProcessor_CaptureEventCallback(lua_State *L) +static int _fgui_InputProcessor_CaptureEventCallback(lua_State *L) { oluacls_class(L, "fgui.InputProcessor.CaptureEventCallback"); oluacls_func(L, "__call", _fairygui_InputProcessor_CaptureEventCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_InputProcessor_CaptureEventCallback(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::InputProcessor::CaptureEventCallback"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_InputProcessor___gc(lua_State *L) @@ -3301,13 +3409,13 @@ static int _fairygui_InputProcessor_setCaptureCallback(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](int arg1) { + arg1 = [cb_store, cb_name, cb_ctx](int cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_integer(L, arg1); + olua_push_integer(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -3449,8 +3557,7 @@ static int _fairygui_InputProcessor_touchUp(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_InputProcessor(lua_State *L) +static int _fgui_InputProcessor(lua_State *L) { oluacls_class(L, "fgui.InputProcessor"); oluacls_func(L, "__gc", _fairygui_InputProcessor___gc); @@ -3473,6 +3580,16 @@ OLUA_LIB int luaopen_fairygui_InputProcessor(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_InputProcessor(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::InputProcessor"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_InputEvent___gc(lua_State *L) @@ -3751,8 +3868,7 @@ static int _fairygui_InputEvent_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_InputEvent(lua_State *L) +static int _fgui_InputEvent(lua_State *L) { oluacls_class(L, "fgui.InputEvent"); oluacls_func(L, "__gc", _fairygui_InputEvent___gc); @@ -3789,6 +3905,16 @@ OLUA_LIB int luaopen_fairygui_InputEvent(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_InputEvent(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::InputEvent"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_TextFormat___gc(lua_State *L) @@ -4561,13 +4687,13 @@ static int _fairygui_TextFormat_setFormat(lua_State *L) olua_startinvoke(L); fairygui::TextFormat *self = nullptr; - fairygui::TextFormat arg1; /** format */ + fairygui::TextFormat *arg1; /** format */ olua_to_object(L, 1, &self, "fgui.TextFormat"); olua_check_object(L, 2, &arg1, "fgui.TextFormat"); // void setFormat(const fairygui::TextFormat &format) - self->setFormat(arg1); + self->setFormat(*arg1); olua_endinvoke(L); @@ -4708,13 +4834,13 @@ static int _fairygui_TextFormat_shadowOffset$2(lua_State *L) olua_startinvoke(L); fairygui::TextFormat *self = nullptr; - cocos2d::Size arg1; /** shadowOffset */ + cocos2d::Size *arg1; /** shadowOffset */ olua_to_object(L, 1, &self, "fgui.TextFormat"); olua_check_object(L, 2, &arg1, "cc.Size"); // cocos2d::Size shadowOffset - self->shadowOffset = arg1; + self->shadowOffset = *arg1; olua_endinvoke(L); @@ -4854,8 +4980,7 @@ static int _fairygui_TextFormat_verticalAlign(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_TextFormat(lua_State *L) +static int _fgui_TextFormat(lua_State *L) { oluacls_class(L, "fgui.TextFormat"); oluacls_func(L, "__gc", _fairygui_TextFormat___gc); @@ -4888,10 +5013,19 @@ OLUA_LIB int luaopen_fairygui_TextFormat(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_EaseType(lua_State *L) +OLUA_LIB int luaopen_fgui_TextFormat(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::TextFormat"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_EaseType(lua_State *L) { oluacls_class(L, "fgui.EaseType"); oluacls_func(L, "__index", olua_indexerror); @@ -4931,6 +5065,16 @@ OLUA_LIB int luaopen_fairygui_EaseType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_EaseType(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::EaseType"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_EaseManager___gc(lua_State *L) @@ -4982,8 +5126,7 @@ static int _fairygui_EaseManager_evaluate(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_EaseManager(lua_State *L) +static int _fgui_EaseManager(lua_State *L) { oluacls_class(L, "fgui.EaseManager"); oluacls_func(L, "__gc", _fairygui_EaseManager___gc); @@ -4992,10 +5135,19 @@ OLUA_LIB int luaopen_fairygui_EaseManager(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_TweenPropType(lua_State *L) +OLUA_LIB int luaopen_fgui_EaseManager(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::EaseManager"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_TweenPropType(lua_State *L) { oluacls_class(L, "fgui.TweenPropType"); oluacls_func(L, "__index", olua_indexerror); @@ -5016,6 +5168,16 @@ OLUA_LIB int luaopen_fairygui_TweenPropType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_TweenPropType(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::TweenPropType"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GPath___gc(lua_State *L) @@ -5042,8 +5204,7 @@ static int _fairygui_GPath___olua_move(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GPath(lua_State *L) +static int _fgui_GPath(lua_State *L) { oluacls_class(L, "fgui.GPath"); oluacls_func(L, "__gc", _fairygui_GPath___gc); @@ -5051,6 +5212,16 @@ OLUA_LIB int luaopen_fairygui_GPath(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GPath(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GPath"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GTweener_GTweenCallback___call(lua_State *L) @@ -5065,14 +5236,23 @@ static int _fairygui_GTweener_GTweenCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GTweener_GTweenCallback(lua_State *L) +static int _fgui_GTweener_GTweenCallback(lua_State *L) { oluacls_class(L, "fgui.GTweener.GTweenCallback"); oluacls_func(L, "__call", _fairygui_GTweener_GTweenCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GTweener_GTweenCallback(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GTweener::GTweenCallback"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GTweener_GTweenCallback0___call(lua_State *L) @@ -5087,14 +5267,23 @@ static int _fairygui_GTweener_GTweenCallback0___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GTweener_GTweenCallback0(lua_State *L) +static int _fgui_GTweener_GTweenCallback0(lua_State *L) { oluacls_class(L, "fgui.GTweener.GTweenCallback0"); oluacls_func(L, "__call", _fairygui_GTweener_GTweenCallback0___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GTweener_GTweenCallback0(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GTweener::GTweenCallback0"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GTweener_allCompleted(lua_State *L) @@ -5136,13 +5325,13 @@ static int _fairygui_GTweener_deltaValue$2(lua_State *L) olua_startinvoke(L); fairygui::GTweener *self = nullptr; - fairygui::TweenValue arg1; /** deltaValue */ + fairygui::TweenValue *arg1; /** deltaValue */ olua_to_object(L, 1, &self, "fgui.GTweener"); olua_check_object(L, 2, &arg1, "fgui.TweenValue"); // fairygui::TweenValue deltaValue - self->deltaValue = arg1; + self->deltaValue = *arg1; olua_endinvoke(L); @@ -5192,13 +5381,13 @@ static int _fairygui_GTweener_endValue$2(lua_State *L) olua_startinvoke(L); fairygui::GTweener *self = nullptr; - fairygui::TweenValue arg1; /** endValue */ + fairygui::TweenValue *arg1; /** endValue */ olua_to_object(L, 1, &self, "fgui.GTweener"); olua_check_object(L, 2, &arg1, "fgui.TweenValue"); // fairygui::TweenValue endValue - self->endValue = arg1; + self->endValue = *arg1; olua_endinvoke(L); @@ -5464,13 +5653,13 @@ static int _fairygui_GTweener_onComplete1(lua_State *L) std::string cb_tag = "onComplete1"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](fairygui::GTweener *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](fairygui::GTweener *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "fgui.GTweener"); + olua_push_object(L, cb_arg1, "fgui.GTweener"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -5501,13 +5690,13 @@ static int _fairygui_GTweener_onStart(lua_State *L) std::string cb_tag = "onStart"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](fairygui::GTweener *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](fairygui::GTweener *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "fgui.GTweener"); + olua_push_object(L, cb_arg1, "fgui.GTweener"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -5538,13 +5727,13 @@ static int _fairygui_GTweener_onUpdate(lua_State *L) std::string cb_tag = "onUpdate"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](fairygui::GTweener *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](fairygui::GTweener *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "fgui.GTweener"); + olua_push_object(L, cb_arg1, "fgui.GTweener"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -5955,13 +6144,13 @@ static int _fairygui_GTweener_startValue$2(lua_State *L) olua_startinvoke(L); fairygui::GTweener *self = nullptr; - fairygui::TweenValue arg1; /** startValue */ + fairygui::TweenValue *arg1; /** startValue */ olua_to_object(L, 1, &self, "fgui.GTweener"); olua_check_object(L, 2, &arg1, "fgui.TweenValue"); // fairygui::TweenValue startValue - self->startValue = arg1; + self->startValue = *arg1; olua_endinvoke(L); @@ -6011,13 +6200,13 @@ static int _fairygui_GTweener_value$2(lua_State *L) olua_startinvoke(L); fairygui::GTweener *self = nullptr; - fairygui::TweenValue arg1; /** value */ + fairygui::TweenValue *arg1; /** value */ olua_to_object(L, 1, &self, "fgui.GTweener"); olua_check_object(L, 2, &arg1, "fgui.TweenValue"); // fairygui::TweenValue value - self->value = arg1; + self->value = *arg1; olua_endinvoke(L); @@ -6045,8 +6234,7 @@ static int _fairygui_GTweener_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GTweener(lua_State *L) +static int _fgui_GTweener(lua_State *L) { oluacls_class(L, "fgui.GTweener"); oluacls_func(L, "allCompleted", _fairygui_GTweener_allCompleted); @@ -6092,6 +6280,16 @@ OLUA_LIB int luaopen_fairygui_GTweener(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GTweener(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GTweener"); + } + return 1; +} OLUA_END_DECLS static bool should_del_tweener_ref(lua_State *L, int idx) @@ -6390,7 +6588,7 @@ static int _fairygui_GTween_shake(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** startValue */ + cocos2d::Vec2 *arg1; /** startValue */ float arg2 = 0; /** amplitude */ float arg3 = 0; /** duration */ @@ -6399,7 +6597,7 @@ static int _fairygui_GTween_shake(lua_State *L) olua_check_number(L, 3, &arg3); // static fairygui::GTweener *shake(const cocos2d::Vec2 &startValue, float amplitude, float duration) - fairygui::GTweener *ret = fairygui::GTween::shake(arg1, arg2, arg3); + fairygui::GTweener *ret = fairygui::GTween::shake(*arg1, arg2, arg3); int num_ret = olua_push_object(L, ret, "fgui.GTweener"); // insert code after call @@ -6444,8 +6642,8 @@ static int _fairygui_GTween_to$2(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec2 arg1; /** startValue */ - cocos2d::Vec2 arg2; /** endValue */ + cocos2d::Vec2 *arg1; /** startValue */ + cocos2d::Vec2 *arg2; /** endValue */ float arg3 = 0; /** duration */ olua_check_object(L, 1, &arg1, "cc.Vec2"); @@ -6453,7 +6651,7 @@ static int _fairygui_GTween_to$2(lua_State *L) olua_check_number(L, 3, &arg3); // static fairygui::GTweener *to(const cocos2d::Vec2 &startValue, const cocos2d::Vec2 &endValue, float duration) - fairygui::GTweener *ret = fairygui::GTween::to(arg1, arg2, arg3); + fairygui::GTweener *ret = fairygui::GTween::to(*arg1, *arg2, arg3); int num_ret = olua_push_object(L, ret, "fgui.GTweener"); // insert code after call @@ -6471,8 +6669,8 @@ static int _fairygui_GTween_to$3(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec3 arg1; /** startValue */ - cocos2d::Vec3 arg2; /** endValue */ + cocos2d::Vec3 *arg1; /** startValue */ + cocos2d::Vec3 *arg2; /** endValue */ float arg3 = 0; /** duration */ olua_check_object(L, 1, &arg1, "cc.Vec3"); @@ -6480,7 +6678,7 @@ static int _fairygui_GTween_to$3(lua_State *L) olua_check_number(L, 3, &arg3); // static fairygui::GTweener *to(const cocos2d::Vec3 &startValue, const cocos2d::Vec3 &endValue, float duration) - fairygui::GTweener *ret = fairygui::GTween::to(arg1, arg2, arg3); + fairygui::GTweener *ret = fairygui::GTween::to(*arg1, *arg2, arg3); int num_ret = olua_push_object(L, ret, "fgui.GTweener"); // insert code after call @@ -6498,8 +6696,8 @@ static int _fairygui_GTween_to$4(lua_State *L) { olua_startinvoke(L); - cocos2d::Vec4 arg1; /** startValue */ - cocos2d::Vec4 arg2; /** endValue */ + cocos2d::Vec4 *arg1; /** startValue */ + cocos2d::Vec4 *arg2; /** endValue */ float arg3 = 0; /** duration */ olua_check_object(L, 1, &arg1, "cc.Vec4"); @@ -6507,7 +6705,7 @@ static int _fairygui_GTween_to$4(lua_State *L) olua_check_number(L, 3, &arg3); // static fairygui::GTweener *to(const cocos2d::Vec4 &startValue, const cocos2d::Vec4 &endValue, float duration) - fairygui::GTweener *ret = fairygui::GTween::to(arg1, arg2, arg3); + fairygui::GTweener *ret = fairygui::GTween::to(*arg1, *arg2, arg3); int num_ret = olua_push_object(L, ret, "fgui.GTweener"); // insert code after call @@ -6638,8 +6836,7 @@ static int _fairygui_GTween_toDouble(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GTween(lua_State *L) +static int _fgui_GTween(lua_State *L) { oluacls_class(L, "fgui.GTween"); oluacls_func(L, "__gc", _fairygui_GTween___gc); @@ -6656,6 +6853,16 @@ OLUA_LIB int luaopen_fairygui_GTween(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GTween(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GTween"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_UIPackage_addPackage(lua_State *L) @@ -7137,8 +7344,7 @@ static int _fairygui_UIPackage_setVar(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_UIPackage(lua_State *L) +static int _fgui_UIPackage(lua_State *L) { oluacls_class(L, "fgui.UIPackage"); oluacls_func(L, "addPackage", _fairygui_UIPackage_addPackage); @@ -7171,6 +7377,16 @@ OLUA_LIB int luaopen_fairygui_UIPackage(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_UIPackage(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::UIPackage"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_PackageItem_animation$1(lua_State *L) @@ -8301,8 +8517,7 @@ static int _fairygui_PackageItem_width(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_PackageItem(lua_State *L) +static int _fgui_PackageItem(lua_State *L) { oluacls_class(L, "fgui.PackageItem"); oluacls_func(L, "getBranch", _fairygui_PackageItem_getBranch); @@ -8333,10 +8548,19 @@ OLUA_LIB int luaopen_fairygui_PackageItem(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_PackageItemType(lua_State *L) +OLUA_LIB int luaopen_fgui_PackageItem(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::PackageItem"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_PackageItemType(lua_State *L) { oluacls_class(L, "fgui.PackageItemType"); oluacls_func(L, "__index", olua_indexerror); @@ -8355,10 +8579,19 @@ OLUA_LIB int luaopen_fairygui_PackageItemType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_ObjectType(lua_State *L) +OLUA_LIB int luaopen_fgui_PackageItemType(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::PackageItemType"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_ObjectType(lua_State *L) { oluacls_class(L, "fgui.ObjectType"); oluacls_func(L, "__index", olua_indexerror); @@ -8385,10 +8618,19 @@ OLUA_LIB int luaopen_fairygui_ObjectType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_ButtonMode(lua_State *L) +OLUA_LIB int luaopen_fgui_ObjectType(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::ObjectType"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_ButtonMode(lua_State *L) { oluacls_class(L, "fgui.ButtonMode"); oluacls_func(L, "__index", olua_indexerror); @@ -8399,10 +8641,19 @@ OLUA_LIB int luaopen_fairygui_ButtonMode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_ChildrenRenderOrder(lua_State *L) +OLUA_LIB int luaopen_fgui_ButtonMode(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::ButtonMode"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_ChildrenRenderOrder(lua_State *L) { oluacls_class(L, "fgui.ChildrenRenderOrder"); oluacls_func(L, "__index", olua_indexerror); @@ -8413,10 +8664,19 @@ OLUA_LIB int luaopen_fairygui_ChildrenRenderOrder(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_OverflowType(lua_State *L) +OLUA_LIB int luaopen_fgui_ChildrenRenderOrder(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::ChildrenRenderOrder"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_OverflowType(lua_State *L) { oluacls_class(L, "fgui.OverflowType"); oluacls_func(L, "__index", olua_indexerror); @@ -8427,10 +8687,19 @@ OLUA_LIB int luaopen_fairygui_OverflowType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_ScrollType(lua_State *L) +OLUA_LIB int luaopen_fgui_OverflowType(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::OverflowType"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_ScrollType(lua_State *L) { oluacls_class(L, "fgui.ScrollType"); oluacls_func(L, "__index", olua_indexerror); @@ -8441,10 +8710,19 @@ OLUA_LIB int luaopen_fairygui_ScrollType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_ScrollBarDisplayType(lua_State *L) +OLUA_LIB int luaopen_fgui_ScrollType(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::ScrollType"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_ScrollBarDisplayType(lua_State *L) { oluacls_class(L, "fgui.ScrollBarDisplayType"); oluacls_func(L, "__index", olua_indexerror); @@ -8456,10 +8734,19 @@ OLUA_LIB int luaopen_fairygui_ScrollBarDisplayType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_LoaderFillType(lua_State *L) +OLUA_LIB int luaopen_fgui_ScrollBarDisplayType(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::ScrollBarDisplayType"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_LoaderFillType(lua_State *L) { oluacls_class(L, "fgui.LoaderFillType"); oluacls_func(L, "__index", olua_indexerror); @@ -8473,10 +8760,19 @@ OLUA_LIB int luaopen_fairygui_LoaderFillType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_ProgressTitleType(lua_State *L) +OLUA_LIB int luaopen_fgui_LoaderFillType(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::LoaderFillType"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_ProgressTitleType(lua_State *L) { oluacls_class(L, "fgui.ProgressTitleType"); oluacls_func(L, "__index", olua_indexerror); @@ -8488,10 +8784,19 @@ OLUA_LIB int luaopen_fairygui_ProgressTitleType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_ListLayoutType(lua_State *L) +OLUA_LIB int luaopen_fgui_ProgressTitleType(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::ProgressTitleType"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_ListLayoutType(lua_State *L) { oluacls_class(L, "fgui.ListLayoutType"); oluacls_func(L, "__index", olua_indexerror); @@ -8504,10 +8809,19 @@ OLUA_LIB int luaopen_fairygui_ListLayoutType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_ListSelectionMode(lua_State *L) +OLUA_LIB int luaopen_fgui_ListLayoutType(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::ListLayoutType"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_ListSelectionMode(lua_State *L) { oluacls_class(L, "fgui.ListSelectionMode"); oluacls_func(L, "__index", olua_indexerror); @@ -8519,10 +8833,19 @@ OLUA_LIB int luaopen_fairygui_ListSelectionMode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GroupLayoutType(lua_State *L) +OLUA_LIB int luaopen_fgui_ListSelectionMode(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::ListSelectionMode"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_GroupLayoutType(lua_State *L) { oluacls_class(L, "fgui.GroupLayoutType"); oluacls_func(L, "__index", olua_indexerror); @@ -8533,10 +8856,19 @@ OLUA_LIB int luaopen_fairygui_GroupLayoutType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_PopupDirection(lua_State *L) +OLUA_LIB int luaopen_fgui_GroupLayoutType(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GroupLayoutType"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_PopupDirection(lua_State *L) { oluacls_class(L, "fgui.PopupDirection"); oluacls_func(L, "__index", olua_indexerror); @@ -8547,10 +8879,19 @@ OLUA_LIB int luaopen_fairygui_PopupDirection(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_AutoSizeType(lua_State *L) +OLUA_LIB int luaopen_fgui_PopupDirection(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::PopupDirection"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_AutoSizeType(lua_State *L) { oluacls_class(L, "fgui.AutoSizeType"); oluacls_func(L, "__index", olua_indexerror); @@ -8562,10 +8903,19 @@ OLUA_LIB int luaopen_fairygui_AutoSizeType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_FlipType(lua_State *L) +OLUA_LIB int luaopen_fgui_AutoSizeType(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::AutoSizeType"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_FlipType(lua_State *L) { oluacls_class(L, "fgui.FlipType"); oluacls_func(L, "__index", olua_indexerror); @@ -8577,10 +8927,19 @@ OLUA_LIB int luaopen_fairygui_FlipType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_TransitionActionType(lua_State *L) +OLUA_LIB int luaopen_fgui_FlipType(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::FlipType"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_TransitionActionType(lua_State *L) { oluacls_class(L, "fgui.TransitionActionType"); oluacls_func(L, "__index", olua_indexerror); @@ -8605,10 +8964,19 @@ OLUA_LIB int luaopen_fairygui_TransitionActionType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_FillMethod(lua_State *L) +OLUA_LIB int luaopen_fgui_TransitionActionType(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::TransitionActionType"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_FillMethod(lua_State *L) { oluacls_class(L, "fgui.FillMethod"); oluacls_func(L, "__index", olua_indexerror); @@ -8622,10 +8990,19 @@ OLUA_LIB int luaopen_fairygui_FillMethod(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_FillOrigin(lua_State *L) +OLUA_LIB int luaopen_fgui_FillMethod(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::FillMethod"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_FillOrigin(lua_State *L) { oluacls_class(L, "fgui.FillOrigin"); oluacls_func(L, "__index", olua_indexerror); @@ -8637,10 +9014,19 @@ OLUA_LIB int luaopen_fairygui_FillOrigin(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_ObjectPropID(lua_State *L) +OLUA_LIB int luaopen_fgui_FillOrigin(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::FillOrigin"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_ObjectPropID(lua_State *L) { oluacls_class(L, "fgui.ObjectPropID"); oluacls_func(L, "__index", olua_indexerror); @@ -8658,6 +9044,16 @@ OLUA_LIB int luaopen_fairygui_ObjectPropID(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_ObjectPropID(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::ObjectPropID"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GController_autoRadioGroupDepth$1(lua_State *L) @@ -9289,8 +9685,7 @@ static int _fairygui_GController_setSelectedPageId(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GController(lua_State *L) +static int _fgui_GController(lua_State *L) { oluacls_class(L, "fgui.GController"); oluacls_func(L, "getPageCount", _fairygui_GController_getPageCount); @@ -9326,6 +9721,16 @@ OLUA_LIB int luaopen_fairygui_GController(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GController(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GController"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GObject_addClickListener$1(lua_State *L) @@ -9342,7 +9747,7 @@ static int _fairygui_GObject_addClickListener$1(lua_State *L) std::string cb_tag = makeListenerTag(L, fairygui::UIEventType::Click, 0); std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](fairygui::EventContext *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](fairygui::EventContext *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -9350,7 +9755,7 @@ static int _fairygui_GObject_addClickListener$1(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "fgui.EventContext"); + olua_push_object(L, cb_arg1, "fgui.EventContext"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -9385,7 +9790,7 @@ static int _fairygui_GObject_addClickListener$2(lua_State *L) std::string cb_tag = makeListenerTag(L, fairygui::UIEventType::Click, 0); std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_NEW); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](fairygui::EventContext *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](fairygui::EventContext *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -9393,7 +9798,7 @@ static int _fairygui_GObject_addClickListener$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "fgui.EventContext"); + olua_push_object(L, cb_arg1, "fgui.EventContext"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -10188,13 +10593,13 @@ static int _fairygui_GObject_globalToLocal$1(lua_State *L) olua_startinvoke(L); fairygui::GObject *self = nullptr; - cocos2d::Vec2 arg1; /** pt */ + cocos2d::Vec2 *arg1; /** pt */ olua_to_object(L, 1, &self, "fgui.GObject"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 globalToLocal(const cocos2d::Vec2 &pt) - cocos2d::Vec2 ret = self->globalToLocal(arg1); + cocos2d::Vec2 ret = self->globalToLocal(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -10207,13 +10612,13 @@ static int _fairygui_GObject_globalToLocal$2(lua_State *L) olua_startinvoke(L); fairygui::GObject *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ olua_to_object(L, 1, &self, "fgui.GObject"); olua_check_object(L, 2, &arg1, "cc.Rect"); // cocos2d::Rect globalToLocal(const cocos2d::Rect &rect) - cocos2d::Rect ret = self->globalToLocal(arg1); + cocos2d::Rect ret = self->globalToLocal(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Rect"); olua_endinvoke(L); @@ -10299,7 +10704,7 @@ static int _fairygui_GObject_hitTest(lua_State *L) olua_startinvoke(L); fairygui::GObject *self = nullptr; - cocos2d::Vec2 arg1; /** worldPoint */ + cocos2d::Vec2 *arg1; /** worldPoint */ cocos2d::Camera *arg2 = nullptr; /** camera */ olua_to_object(L, 1, &self, "fgui.GObject"); @@ -10307,7 +10712,7 @@ static int _fairygui_GObject_hitTest(lua_State *L) olua_check_object(L, 3, &arg2, "cc.Camera"); // fairygui::GObject *hitTest(const cocos2d::Vec2 &worldPoint, const cocos2d::Camera *camera) - fairygui::GObject *ret = self->hitTest(arg1, arg2); + fairygui::GObject *ret = self->hitTest(*arg1, arg2); int num_ret = olua_push_object(L, ret, "fgui.GObject"); olua_endinvoke(L); @@ -10393,13 +10798,13 @@ static int _fairygui_GObject_initSize$2(lua_State *L) olua_startinvoke(L); fairygui::GObject *self = nullptr; - cocos2d::Size arg1; /** initSize */ + cocos2d::Size *arg1; /** initSize */ olua_to_object(L, 1, &self, "fgui.GObject"); olua_check_object(L, 2, &arg1, "cc.Size"); // cocos2d::Size initSize - self->initSize = arg1; + self->initSize = *arg1; olua_endinvoke(L); @@ -10534,13 +10939,13 @@ static int _fairygui_GObject_localToGlobal$1(lua_State *L) olua_startinvoke(L); fairygui::GObject *self = nullptr; - cocos2d::Vec2 arg1; /** pt */ + cocos2d::Vec2 *arg1; /** pt */ olua_to_object(L, 1, &self, "fgui.GObject"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 localToGlobal(const cocos2d::Vec2 &pt) - cocos2d::Vec2 ret = self->localToGlobal(arg1); + cocos2d::Vec2 ret = self->localToGlobal(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -10553,13 +10958,13 @@ static int _fairygui_GObject_localToGlobal$2(lua_State *L) olua_startinvoke(L); fairygui::GObject *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ olua_to_object(L, 1, &self, "fgui.GObject"); olua_check_object(L, 2, &arg1, "cc.Rect"); // cocos2d::Rect localToGlobal(const cocos2d::Rect &rect) - cocos2d::Rect ret = self->localToGlobal(arg1); + cocos2d::Rect ret = self->localToGlobal(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Rect"); olua_endinvoke(L); @@ -10683,13 +11088,13 @@ static int _fairygui_GObject_maxSize$2(lua_State *L) olua_startinvoke(L); fairygui::GObject *self = nullptr; - cocos2d::Size arg1; /** maxSize */ + cocos2d::Size *arg1; /** maxSize */ olua_to_object(L, 1, &self, "fgui.GObject"); olua_check_object(L, 2, &arg1, "cc.Size"); // cocos2d::Size maxSize - self->maxSize = arg1; + self->maxSize = *arg1; olua_endinvoke(L); @@ -10739,13 +11144,13 @@ static int _fairygui_GObject_minSize$2(lua_State *L) olua_startinvoke(L); fairygui::GObject *self = nullptr; - cocos2d::Size arg1; /** minSize */ + cocos2d::Size *arg1; /** minSize */ olua_to_object(L, 1, &self, "fgui.GObject"); olua_check_object(L, 2, &arg1, "cc.Size"); // cocos2d::Size minSize - self->minSize = arg1; + self->minSize = *arg1; olua_endinvoke(L); @@ -11012,13 +11417,13 @@ static int _fairygui_GObject_setDragBounds(lua_State *L) olua_startinvoke(L); fairygui::GObject *self = nullptr; - cocos2d::Rect arg1; /** value */ + cocos2d::Rect *arg1; /** value */ olua_to_object(L, 1, &self, "fgui.GObject"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setDragBounds(const cocos2d::Rect &value) - self->setDragBounds(arg1); + self->setDragBounds(*arg1); olua_endinvoke(L); @@ -11618,13 +12023,13 @@ static int _fairygui_GObject_sourceSize$2(lua_State *L) olua_startinvoke(L); fairygui::GObject *self = nullptr; - cocos2d::Size arg1; /** sourceSize */ + cocos2d::Size *arg1; /** sourceSize */ olua_to_object(L, 1, &self, "fgui.GObject"); olua_check_object(L, 2, &arg1, "cc.Size"); // cocos2d::Size sourceSize - self->sourceSize = arg1; + self->sourceSize = *arg1; olua_endinvoke(L); @@ -11728,7 +12133,7 @@ static int _fairygui_GObject_transformRect$1(lua_State *L) olua_startinvoke(L); fairygui::GObject *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ fairygui::GObject *arg2 = nullptr; /** targetSpace */ olua_to_object(L, 1, &self, "fgui.GObject"); @@ -11736,7 +12141,7 @@ static int _fairygui_GObject_transformRect$1(lua_State *L) olua_check_object(L, 3, &arg2, "fgui.GObject"); // cocos2d::Rect transformRect(const cocos2d::Rect &rect, fairygui::GObject *targetSpace) - cocos2d::Rect ret = self->transformRect(arg1, arg2); + cocos2d::Rect ret = self->transformRect(*arg1, arg2); int num_ret = olua_pushcopy_object(L, ret, "cc.Rect"); olua_endinvoke(L); @@ -11805,8 +12210,7 @@ static int _fairygui_GObject_treeNode(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GObject(lua_State *L) +static int _fgui_GObject(lua_State *L) { oluacls_class(L, "fgui.GObject"); oluacls_func(L, "addClickListener", _fairygui_GObject_addClickListener); @@ -11941,6 +12345,16 @@ OLUA_LIB int luaopen_fairygui_GObject(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GObject(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GObject"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GComponent_getController(lua_State *L); @@ -12544,13 +12958,13 @@ static int _fairygui_GComponent_getSnappingPosition(lua_State *L) olua_startinvoke(L); fairygui::GComponent *self = nullptr; - cocos2d::Vec2 arg1; /** pt */ + cocos2d::Vec2 *arg1; /** pt */ olua_to_object(L, 1, &self, "fgui.GComponent"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 getSnappingPosition(const cocos2d::Vec2 &pt) - cocos2d::Vec2 ret = self->getSnappingPosition(arg1); + cocos2d::Vec2 ret = self->getSnappingPosition(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -13025,13 +13439,13 @@ static int _fairygui_GComponent_setMargin(lua_State *L) olua_startinvoke(L); fairygui::GComponent *self = nullptr; - fairygui::Margin arg1; /** value */ + fairygui::Margin *arg1; /** value */ olua_to_object(L, 1, &self, "fgui.GComponent"); olua_check_object(L, 2, &arg1, "fgui.Margin"); // void setMargin(const fairygui::Margin &value) - self->setMargin(arg1); + self->setMargin(*arg1); olua_endinvoke(L); @@ -13199,8 +13613,7 @@ static int _fairygui_GComponent_swapChildrenAt(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GComponent(lua_State *L) +static int _fgui_GComponent(lua_State *L) { oluacls_class(L, "fgui.GComponent"); oluacls_func(L, "__index", _fairygui_GComponent___index); @@ -13278,6 +13691,16 @@ OLUA_LIB int luaopen_fairygui_GComponent(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GComponent(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GComponent"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GRoot_bringToFront(lua_State *L) @@ -13925,13 +14348,13 @@ static int _fairygui_GRoot_rootToWorld$1(lua_State *L) olua_startinvoke(L); fairygui::GRoot *self = nullptr; - cocos2d::Vec2 arg1; /** pt */ + cocos2d::Vec2 *arg1; /** pt */ olua_to_object(L, 1, &self, "fgui.GRoot"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 rootToWorld(const cocos2d::Vec2 &pt) - cocos2d::Vec2 ret = self->rootToWorld(arg1); + cocos2d::Vec2 ret = self->rootToWorld(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -14269,13 +14692,13 @@ static int _fairygui_GRoot_worldToRoot$1(lua_State *L) olua_startinvoke(L); fairygui::GRoot *self = nullptr; - cocos2d::Vec2 arg1; /** pt */ + cocos2d::Vec2 *arg1; /** pt */ olua_to_object(L, 1, &self, "fgui.GRoot"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // cocos2d::Vec2 worldToRoot(const cocos2d::Vec2 &pt) - cocos2d::Vec2 ret = self->worldToRoot(arg1); + cocos2d::Vec2 ret = self->worldToRoot(*arg1); int num_ret = olua_pushcopy_object(L, ret, "cc.Vec2"); olua_endinvoke(L); @@ -14325,8 +14748,7 @@ static int _fairygui_GRoot_worldToRoot(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GRoot(lua_State *L) +static int _fgui_GRoot(lua_State *L) { oluacls_class(L, "fgui.GRoot"); oluacls_func(L, "bringToFront", _fairygui_GRoot_bringToFront); @@ -14378,6 +14800,16 @@ OLUA_LIB int luaopen_fairygui_GRoot(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GRoot(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GRoot"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GGroup_create(lua_State *L) @@ -14747,8 +15179,7 @@ static int _fairygui_GGroup_setMainGridMinSize(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GGroup(lua_State *L) +static int _fgui_GGroup(lua_State *L) { oluacls_class(L, "fgui.GGroup"); oluacls_func(L, "create", _fairygui_GGroup_create); @@ -14780,6 +15211,16 @@ OLUA_LIB int luaopen_fairygui_GGroup(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GGroup(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GGroup"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GScrollBar_create(lua_State *L) @@ -14882,8 +15323,7 @@ static int _fairygui_GScrollBar_setScrollPerc(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GScrollBar(lua_State *L) +static int _fgui_GScrollBar(lua_State *L) { oluacls_class(L, "fgui.GScrollBar"); oluacls_func(L, "create", _fairygui_GScrollBar_create); @@ -14896,6 +15336,16 @@ OLUA_LIB int luaopen_fairygui_GScrollBar(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GScrollBar(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GScrollBar"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GLoader_create(lua_State *L) @@ -15417,8 +15867,7 @@ static int _fairygui_GLoader_setVerticalAlign(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GLoader(lua_State *L) +static int _fgui_GLoader(lua_State *L) { oluacls_class(L, "fgui.GLoader"); oluacls_func(L, "create", _fairygui_GLoader_create); @@ -15469,6 +15918,16 @@ OLUA_LIB int luaopen_fairygui_GLoader(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GLoader(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GLoader"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GLoader3D_create(lua_State *L) @@ -15959,8 +16418,7 @@ static int _fairygui_GLoader3D_setVerticalAlign(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GLoader3D(lua_State *L) +static int _fgui_GLoader3D(lua_State *L) { oluacls_class(L, "fgui.GLoader3D"); oluacls_func(L, "create", _fairygui_GLoader3D_create); @@ -16007,6 +16465,16 @@ OLUA_LIB int luaopen_fairygui_GLoader3D(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GLoader3D(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GLoader3D"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GTextField_applyTextFormat(lua_State *L) @@ -16341,8 +16809,7 @@ static int _fairygui_GTextField_setVar(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GTextField(lua_State *L) +static int _fgui_GTextField(lua_State *L) { oluacls_class(L, "fgui.GTextField"); oluacls_func(L, "applyTextFormat", _fairygui_GTextField_applyTextFormat); @@ -16376,6 +16843,16 @@ OLUA_LIB int luaopen_fairygui_GTextField(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GTextField(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GTextField"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GBasicTextField_create(lua_State *L) @@ -16405,8 +16882,7 @@ static int _fairygui_GBasicTextField_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GBasicTextField(lua_State *L) +static int _fgui_GBasicTextField(lua_State *L) { oluacls_class(L, "fgui.GBasicTextField"); oluacls_func(L, "create", _fairygui_GBasicTextField_create); @@ -16414,6 +16890,16 @@ OLUA_LIB int luaopen_fairygui_GBasicTextField(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GBasicTextField(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GBasicTextField"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GGraph_create(lua_State *L) @@ -16718,8 +17204,7 @@ static int _fairygui_GGraph_setColor(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GGraph(lua_State *L) +static int _fgui_GGraph(lua_State *L) { oluacls_class(L, "fgui.GGraph"); oluacls_func(L, "create", _fairygui_GGraph_create); @@ -16736,6 +17221,16 @@ OLUA_LIB int luaopen_fairygui_GGraph(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GGraph(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GGraph"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GButton_create(lua_State *L) @@ -17071,8 +17566,7 @@ static int _fairygui_GButton_setTitleFontSize(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GButton(lua_State *L) +static int _fgui_GButton(lua_State *L) { oluacls_class(L, "fgui.GButton"); oluacls_func(L, "create", _fairygui_GButton_create); @@ -17112,6 +17606,16 @@ OLUA_LIB int luaopen_fairygui_GButton(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GButton(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GButton"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GImage_create(lua_State *L) @@ -17351,8 +17855,7 @@ static int _fairygui_GImage_setFlip(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GImage(lua_State *L) +static int _fgui_GImage(lua_State *L) { oluacls_class(L, "fgui.GImage"); oluacls_func(L, "create", _fairygui_GImage_create); @@ -17378,6 +17881,16 @@ OLUA_LIB int luaopen_fairygui_GImage(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GImage(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GImage"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GLabel_create(lua_State *L) @@ -17532,8 +18045,7 @@ static int _fairygui_GLabel_setTitleFontSize(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GLabel(lua_State *L) +static int _fgui_GLabel(lua_State *L) { oluacls_class(L, "fgui.GLabel"); oluacls_func(L, "create", _fairygui_GLabel_create); @@ -17552,6 +18064,16 @@ OLUA_LIB int luaopen_fairygui_GLabel(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GLabel(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GLabel"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GList_ListItemRenderer___call(lua_State *L) @@ -17566,14 +18088,23 @@ static int _fairygui_GList_ListItemRenderer___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GList_ListItemRenderer(lua_State *L) +static int _fgui_GList_ListItemRenderer(lua_State *L) { oluacls_class(L, "fgui.GList.ListItemRenderer"); oluacls_func(L, "__call", _fairygui_GList_ListItemRenderer___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GList_ListItemRenderer(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GList::ListItemRenderer"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GList_ListItemProvider___call(lua_State *L) @@ -17588,14 +18119,23 @@ static int _fairygui_GList_ListItemProvider___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GList_ListItemProvider(lua_State *L) +static int _fgui_GList_ListItemProvider(lua_State *L) { oluacls_class(L, "fgui.GList.ListItemProvider"); oluacls_func(L, "__call", _fairygui_GList_ListItemProvider___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GList_ListItemProvider(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GList::ListItemProvider"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GList_addItemFromPool$1(lua_State *L) @@ -18177,13 +18717,13 @@ static int _fairygui_GList_itemProvider$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](int arg1) { + arg1 = [cb_store, cb_name, cb_ctx](int cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); std::string ret; /** ret */ if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_integer(L, arg1); + olua_push_integer(L, cb_arg1); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -18268,7 +18808,7 @@ static int _fairygui_GList_itemRenderer$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](int arg1, fairygui::GObject *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](int cb_arg1, fairygui::GObject *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -18276,8 +18816,8 @@ static int _fairygui_GList_itemRenderer$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_integer(L, arg1); - olua_push_object(L, arg2, "fgui.GObject"); + olua_push_integer(L, cb_arg1); + olua_push_object(L, cb_arg2, "fgui.GObject"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -19030,8 +19570,7 @@ static int _fairygui_GList_setVirtualAndLoop(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GList(lua_State *L) +static int _fgui_GList(lua_State *L) { oluacls_class(L, "fgui.GList"); oluacls_func(L, "addItemFromPool", _fairygui_GList_addItemFromPool); @@ -19104,6 +19643,16 @@ OLUA_LIB int luaopen_fairygui_GList(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GList(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GList"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GMovieClip_advance(lua_State *L) @@ -19524,8 +20073,7 @@ static int _fairygui_GMovieClip_setTimeScale(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GMovieClip(lua_State *L) +static int _fgui_GMovieClip(lua_State *L) { oluacls_class(L, "fgui.GMovieClip"); oluacls_func(L, "advance", _fairygui_GMovieClip_advance); @@ -19550,6 +20098,16 @@ OLUA_LIB int luaopen_fairygui_GMovieClip(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GMovieClip(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GMovieClip"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GProgressBar_create(lua_State *L) @@ -19757,8 +20315,7 @@ static int _fairygui_GProgressBar_update(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GProgressBar(lua_State *L) +static int _fgui_GProgressBar(lua_State *L) { oluacls_class(L, "fgui.GProgressBar"); oluacls_func(L, "create", _fairygui_GProgressBar_create); @@ -19780,6 +20337,16 @@ OLUA_LIB int luaopen_fairygui_GProgressBar(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GProgressBar(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GProgressBar"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GComboBox_create(lua_State *L) @@ -20244,8 +20811,7 @@ static int _fairygui_GComboBox_visibleItemCount(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GComboBox(lua_State *L) +static int _fgui_GComboBox(lua_State *L) { oluacls_class(L, "fgui.GComboBox"); oluacls_func(L, "create", _fairygui_GComboBox_create); @@ -20284,6 +20850,16 @@ OLUA_LIB int luaopen_fairygui_GComboBox(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GComboBox(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GComboBox"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GRichTextField_create(lua_State *L) @@ -20332,8 +20908,7 @@ static int _fairygui_GRichTextField_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GRichTextField(lua_State *L) +static int _fgui_GRichTextField(lua_State *L) { oluacls_class(L, "fgui.GRichTextField"); oluacls_func(L, "create", _fairygui_GRichTextField_create); @@ -20342,6 +20917,16 @@ OLUA_LIB int luaopen_fairygui_GRichTextField(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GRichTextField(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GRichTextField"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GSlider_canDrag$1(lua_State *L) @@ -20658,8 +21243,7 @@ static int _fairygui_GSlider_setWholeNumbers(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GSlider(lua_State *L) +static int _fgui_GSlider(lua_State *L) { oluacls_class(L, "fgui.GSlider"); oluacls_func(L, "create", _fairygui_GSlider_create); @@ -20684,6 +21268,16 @@ OLUA_LIB int luaopen_fairygui_GSlider(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GSlider(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GSlider"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GTextInput_create(lua_State *L) @@ -20803,8 +21397,7 @@ static int _fairygui_GTextInput_setRestrict(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GTextInput(lua_State *L) +static int _fgui_GTextInput(lua_State *L) { oluacls_class(L, "fgui.GTextInput"); oluacls_func(L, "create", _fairygui_GTextInput_create); @@ -20817,6 +21410,16 @@ OLUA_LIB int luaopen_fairygui_GTextInput(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GTextInput(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GTextInput"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_PopupMenu_addItem(lua_State *L) @@ -20839,7 +21442,7 @@ static int _fairygui_PopupMenu_addItem(lua_State *L) std::string cb_tag = makeListenerTag(L, fairygui::UIEventType::ClickMenu, 0); std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](fairygui::EventContext *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](fairygui::EventContext *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -20847,7 +21450,7 @@ static int _fairygui_PopupMenu_addItem(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "fgui.EventContext"); + olua_push_object(L, cb_arg1, "fgui.EventContext"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -20899,7 +21502,7 @@ static int _fairygui_PopupMenu_addItemAt(lua_State *L) std::string cb_tag = makeListenerTag(L, fairygui::UIEventType::ClickMenu, 0); std::string cb_name = olua_setcallback(L, cb_store, 4, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg3 = [cb_store, cb_name, cb_ctx](fairygui::EventContext *arg1) { + arg3 = [cb_store, cb_name, cb_ctx](fairygui::EventContext *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -20907,7 +21510,7 @@ static int _fairygui_PopupMenu_addItemAt(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "fgui.EventContext"); + olua_push_object(L, cb_arg1, "fgui.EventContext"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -21355,8 +21958,7 @@ static int _fairygui_PopupMenu_show(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_PopupMenu(lua_State *L) +static int _fgui_PopupMenu(lua_State *L) { oluacls_class(L, "fgui.PopupMenu"); oluacls_func(L, "addItem", _fairygui_PopupMenu_addItem); @@ -21383,6 +21985,16 @@ OLUA_LIB int luaopen_fairygui_PopupMenu(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_PopupMenu(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::PopupMenu"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_Relations___gc(lua_State *L) @@ -21673,8 +22285,7 @@ static int _fairygui_Relations_remove(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_Relations(lua_State *L) +static int _fgui_Relations(lua_State *L) { oluacls_class(L, "fgui.Relations"); oluacls_func(L, "__gc", _fairygui_Relations___gc); @@ -21693,10 +22304,19 @@ OLUA_LIB int luaopen_fairygui_Relations(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_RelationType(lua_State *L) +OLUA_LIB int luaopen_fgui_Relations(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::Relations"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_RelationType(lua_State *L) { oluacls_class(L, "fgui.RelationType"); oluacls_func(L, "__index", olua_indexerror); @@ -21729,6 +22349,16 @@ OLUA_LIB int luaopen_fairygui_RelationType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_RelationType(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::RelationType"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_RelationItem___gc(lua_State *L) @@ -21924,8 +22554,7 @@ static int _fairygui_RelationItem_setTarget(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_RelationItem(lua_State *L) +static int _fgui_RelationItem(lua_State *L) { oluacls_class(L, "fgui.RelationItem"); oluacls_func(L, "__gc", _fairygui_RelationItem___gc); @@ -21944,6 +22573,16 @@ OLUA_LIB int luaopen_fairygui_RelationItem(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_RelationItem(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::RelationItem"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_ScrollPane_cancelDragging(lua_State *L) @@ -22874,7 +23513,7 @@ static int _fairygui_ScrollPane_scrollToView$4(lua_State *L) olua_startinvoke(L); fairygui::ScrollPane *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ bool arg2 = false; /** ani */ bool arg3 = false; /** setFirst */ @@ -22884,7 +23523,7 @@ static int _fairygui_ScrollPane_scrollToView$4(lua_State *L) olua_check_bool(L, 4, &arg3); // void scrollToView(const cocos2d::Rect &rect, @optional bool ani, @optional bool setFirst) - self->scrollToView(arg1, arg2, arg3); + self->scrollToView(*arg1, arg2, arg3); olua_endinvoke(L); @@ -22896,13 +23535,13 @@ static int _fairygui_ScrollPane_scrollToView$5(lua_State *L) olua_startinvoke(L); fairygui::ScrollPane *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ olua_to_object(L, 1, &self, "fgui.ScrollPane"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void scrollToView(const cocos2d::Rect &rect) - self->scrollToView(arg1); + self->scrollToView(*arg1); olua_endinvoke(L); @@ -22914,7 +23553,7 @@ static int _fairygui_ScrollPane_scrollToView$6(lua_State *L) olua_startinvoke(L); fairygui::ScrollPane *self = nullptr; - cocos2d::Rect arg1; /** rect */ + cocos2d::Rect *arg1; /** rect */ bool arg2 = false; /** ani */ olua_to_object(L, 1, &self, "fgui.ScrollPane"); @@ -22922,7 +23561,7 @@ static int _fairygui_ScrollPane_scrollToView$6(lua_State *L) olua_check_bool(L, 3, &arg2); // void scrollToView(const cocos2d::Rect &rect, @optional bool ani) - self->scrollToView(arg1, arg2); + self->scrollToView(*arg1, arg2); olua_endinvoke(L); @@ -23642,8 +24281,7 @@ static int _fairygui_ScrollPane_setTouchEffect(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_ScrollPane(lua_State *L) +static int _fgui_ScrollPane(lua_State *L) { oluacls_class(L, "fgui.ScrollPane"); oluacls_func(L, "cancelDragging", _fairygui_ScrollPane_cancelDragging); @@ -23730,6 +24368,16 @@ OLUA_LIB int luaopen_fairygui_ScrollPane(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_ScrollPane(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::ScrollPane"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_Transition_PlayCompleteCallback___call(lua_State *L) @@ -23744,14 +24392,23 @@ static int _fairygui_Transition_PlayCompleteCallback___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_Transition_PlayCompleteCallback(lua_State *L) +static int _fgui_Transition_PlayCompleteCallback(lua_State *L) { oluacls_class(L, "fgui.Transition.PlayCompleteCallback"); oluacls_func(L, "__call", _fairygui_Transition_PlayCompleteCallback___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_Transition_PlayCompleteCallback(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::Transition::PlayCompleteCallback"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_Transition_TransitionHook___call(lua_State *L) @@ -23766,14 +24423,23 @@ static int _fairygui_Transition_TransitionHook___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_Transition_TransitionHook(lua_State *L) +static int _fgui_Transition_TransitionHook(lua_State *L) { oluacls_class(L, "fgui.Transition.TransitionHook"); oluacls_func(L, "__call", _fairygui_Transition_TransitionHook___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_Transition_TransitionHook(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::Transition::TransitionHook"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_Transition_changePlayTimes(lua_State *L) @@ -24636,8 +25302,7 @@ static int _fairygui_Transition_updateFromRelations(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_Transition(lua_State *L) +static int _fgui_Transition(lua_State *L) { oluacls_class(L, "fgui.Transition"); oluacls_func(L, "changePlayTimes", _fairygui_Transition_changePlayTimes); @@ -24667,6 +25332,16 @@ OLUA_LIB int luaopen_fairygui_Transition(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_Transition(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::Transition"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_UIConfig___gc(lua_State *L) @@ -25820,8 +26495,7 @@ static int _fairygui_UIConfig_windowModalWaiting(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_UIConfig(lua_State *L) +static int _fgui_UIConfig(lua_State *L) { oluacls_class(L, "fgui.UIConfig"); oluacls_func(L, "__gc", _fairygui_UIConfig___gc); @@ -25852,6 +26526,16 @@ OLUA_LIB int luaopen_fairygui_UIConfig(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_UIConfig(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::UIConfig"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_IUISource_getFileName(lua_State *L) @@ -25949,8 +26633,7 @@ static int _fairygui_IUISource_setFileName(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_IUISource(lua_State *L) +static int _fgui_IUISource(lua_State *L) { oluacls_class(L, "fgui.IUISource"); oluacls_func(L, "getFileName", _fairygui_IUISource_getFileName); @@ -25962,6 +26645,16 @@ OLUA_LIB int luaopen_fairygui_IUISource(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_IUISource(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::IUISource"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_UISource_create(lua_State *L) @@ -25993,8 +26686,7 @@ static int _fairygui_UISource_loadComplete(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_UISource(lua_State *L) +static int _fgui_UISource(lua_State *L) { oluacls_class(L, "fgui.UISource"); oluacls_func(L, "create", _fairygui_UISource_create); @@ -26002,6 +26694,16 @@ OLUA_LIB int luaopen_fairygui_UISource(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_UISource(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::UISource"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_Window_addUISource(lua_State *L) @@ -26602,8 +27304,7 @@ static int _fairygui_Window_toggleStatus(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_Window(lua_State *L) +static int _fgui_Window(lua_State *L) { oluacls_class(L, "fgui.Window"); oluacls_func(L, "addUISource", _fairygui_Window_addUISource); @@ -26646,6 +27347,16 @@ OLUA_LIB int luaopen_fairygui_Window(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_Window(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::Window"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_DragDropManager___gc(lua_State *L) @@ -26839,8 +27550,7 @@ static int _fairygui_DragDropManager_startDrag(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_DragDropManager(lua_State *L) +static int _fgui_DragDropManager(lua_State *L) { oluacls_class(L, "fgui.DragDropManager"); oluacls_func(L, "__gc", _fairygui_DragDropManager___gc); @@ -26857,6 +27567,16 @@ OLUA_LIB int luaopen_fairygui_DragDropManager(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_DragDropManager(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::DragDropManager"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_UIObjectFactory_GLoaderCreator___call(lua_State *L) @@ -26871,14 +27591,23 @@ static int _fairygui_UIObjectFactory_GLoaderCreator___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_UIObjectFactory_GLoaderCreator(lua_State *L) +static int _fgui_UIObjectFactory_GLoaderCreator(lua_State *L) { oluacls_class(L, "fgui.UIObjectFactory.GLoaderCreator"); oluacls_func(L, "__call", _fairygui_UIObjectFactory_GLoaderCreator___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_UIObjectFactory_GLoaderCreator(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::UIObjectFactory::GLoaderCreator"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_UIObjectFactory_GComponentCreator___call(lua_State *L) @@ -26893,14 +27622,23 @@ static int _fairygui_UIObjectFactory_GComponentCreator___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_UIObjectFactory_GComponentCreator(lua_State *L) +static int _fgui_UIObjectFactory_GComponentCreator(lua_State *L) { oluacls_class(L, "fgui.UIObjectFactory.GComponentCreator"); oluacls_func(L, "__call", _fairygui_UIObjectFactory_GComponentCreator___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_UIObjectFactory_GComponentCreator(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::UIObjectFactory::GComponentCreator"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_UIObjectFactory___gc(lua_State *L) @@ -27060,8 +27798,7 @@ static int _fairygui_UIObjectFactory_setPackageItemExtension(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_UIObjectFactory(lua_State *L) +static int _fgui_UIObjectFactory(lua_State *L) { oluacls_class(L, "fgui.UIObjectFactory"); oluacls_func(L, "__gc", _fairygui_UIObjectFactory___gc); @@ -27072,6 +27809,16 @@ OLUA_LIB int luaopen_fairygui_UIObjectFactory(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_UIObjectFactory(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::UIObjectFactory"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GearBase___gc(lua_State *L) @@ -27185,8 +27932,7 @@ static int _fairygui_GearBase_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GearBase(lua_State *L) +static int _fgui_GearBase(lua_State *L) { oluacls_class(L, "fgui.GearBase"); oluacls_func(L, "__gc", _fairygui_GearBase___gc); @@ -27197,6 +27943,16 @@ OLUA_LIB int luaopen_fairygui_GearBase(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GearBase(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GearBase"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GTreeNode_addChild(lua_State *L) @@ -27840,8 +28596,7 @@ static int _fairygui_GTreeNode_swapChildrenAt(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GTreeNode(lua_State *L) +static int _fgui_GTreeNode(lua_State *L) { oluacls_class(L, "fgui.GTreeNode"); oluacls_func(L, "addChild", _fairygui_GTreeNode_addChild); @@ -27885,6 +28640,16 @@ OLUA_LIB int luaopen_fairygui_GTreeNode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GTreeNode(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GTreeNode"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GTree_TreeNodeRenderFunction___call(lua_State *L) @@ -27899,14 +28664,23 @@ static int _fairygui_GTree_TreeNodeRenderFunction___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GTree_TreeNodeRenderFunction(lua_State *L) +static int _fgui_GTree_TreeNodeRenderFunction(lua_State *L) { oluacls_class(L, "fgui.GTree.TreeNodeRenderFunction"); oluacls_func(L, "__call", _fairygui_GTree_TreeNodeRenderFunction___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GTree_TreeNodeRenderFunction(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GTree::TreeNodeRenderFunction"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GTree_TreeNodeWillExpandFunction___call(lua_State *L) @@ -27921,14 +28695,23 @@ static int _fairygui_GTree_TreeNodeWillExpandFunction___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GTree_TreeNodeWillExpandFunction(lua_State *L) +static int _fgui_GTree_TreeNodeWillExpandFunction(lua_State *L) { oluacls_class(L, "fgui.GTree.TreeNodeWillExpandFunction"); oluacls_func(L, "__call", _fairygui_GTree_TreeNodeWillExpandFunction___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GTree_TreeNodeWillExpandFunction(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GTree::TreeNodeWillExpandFunction"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_GTree_collapseAll(lua_State *L) @@ -28229,7 +29012,7 @@ static int _fairygui_GTree_treeNodeRender$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](fairygui::GTreeNode *arg1, fairygui::GComponent *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](fairygui::GTreeNode *cb_arg1, fairygui::GComponent *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -28237,8 +29020,8 @@ static int _fairygui_GTree_treeNodeRender$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "fgui.GTreeNode"); - olua_push_object(L, arg2, "fgui.GComponent"); + olua_push_object(L, cb_arg1, "fgui.GTreeNode"); + olua_push_object(L, cb_arg2, "fgui.GComponent"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -28321,7 +29104,7 @@ static int _fairygui_GTree_treeNodeWillExpand$2(lua_State *L) if (olua_isfunction(L, 2)) { cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](fairygui::GTreeNode *arg1, bool arg2) { + arg1 = [cb_store, cb_name, cb_ctx](fairygui::GTreeNode *cb_arg1, bool cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -28329,8 +29112,8 @@ static int _fairygui_GTree_treeNodeWillExpand$2(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "fgui.GTreeNode"); - olua_push_bool(L, arg2); + olua_push_object(L, cb_arg1, "fgui.GTreeNode"); + olua_push_bool(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -28392,8 +29175,7 @@ static int _fairygui_GTree_unselectNode(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_GTree(lua_State *L) +static int _fgui_GTree(lua_State *L) { oluacls_class(L, "fgui.GTree"); oluacls_func(L, "collapseAll", _fairygui_GTree_collapseAll); @@ -28418,6 +29200,16 @@ OLUA_LIB int luaopen_fairygui_GTree(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_GTree(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::GTree"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_FUIContainer_create(lua_State *L) @@ -28629,13 +29421,13 @@ static int _fairygui_FUIContainer_setClippingRegion(lua_State *L) olua_startinvoke(L); fairygui::FUIContainer *self = nullptr; - cocos2d::Rect arg1; /** clippingRegion */ + cocos2d::Rect *arg1; /** clippingRegion */ olua_to_object(L, 1, &self, "fgui.FUIContainer"); olua_check_object(L, 2, &arg1, "cc.Rect"); // void setClippingRegion(const cocos2d::Rect &clippingRegion) - self->setClippingRegion(arg1); + self->setClippingRegion(*arg1); olua_endinvoke(L); @@ -28678,8 +29470,7 @@ static int _fairygui_FUIContainer_setStencil(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_FUIContainer(lua_State *L) +static int _fgui_FUIContainer(lua_State *L) { oluacls_class(L, "fgui.FUIContainer"); oluacls_func(L, "create", _fairygui_FUIContainer_create); @@ -28703,6 +29494,16 @@ OLUA_LIB int luaopen_fairygui_FUIContainer(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_FUIContainer(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::FUIContainer"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_FUIInput_applyTextFormat(lua_State *L) @@ -28888,8 +29689,7 @@ static int _fairygui_FUIInput_setText(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_FUIInput(lua_State *L) +static int _fgui_FUIInput(lua_State *L) { oluacls_class(L, "fgui.FUIInput"); oluacls_func(L, "applyTextFormat", _fairygui_FUIInput_applyTextFormat); @@ -28909,6 +29709,16 @@ OLUA_LIB int luaopen_fairygui_FUIInput(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_FUIInput(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::FUIInput"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_FUILabel_applyTextFormat(lua_State *L) @@ -28994,7 +29804,7 @@ static int _fairygui_FUILabel_setBMFontFilePath$1(lua_State *L) fairygui::FUILabel *self = nullptr; std::string arg1; /** bmfontFilePath */ - cocos2d::Vec2 arg2; /** imageOffset */ + cocos2d::Vec2 *arg2; /** imageOffset */ float arg3 = 0; /** fontSize */ olua_to_object(L, 1, &self, "fgui.FUILabel"); @@ -29003,7 +29813,7 @@ static int _fairygui_FUILabel_setBMFontFilePath$1(lua_State *L) olua_check_number(L, 4, &arg3); // bool setBMFontFilePath(const std::string &bmfontFilePath, const cocos2d::Vec2 &imageOffset, @optional float fontSize) - bool ret = self->setBMFontFilePath(arg1, arg2, arg3); + bool ret = self->setBMFontFilePath(arg1, *arg2, arg3); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -29017,14 +29827,14 @@ static int _fairygui_FUILabel_setBMFontFilePath$2(lua_State *L) fairygui::FUILabel *self = nullptr; std::string arg1; /** bmfontFilePath */ - cocos2d::Vec2 arg2; /** imageOffset */ + cocos2d::Vec2 *arg2; /** imageOffset */ olua_to_object(L, 1, &self, "fgui.FUILabel"); olua_check_string(L, 2, &arg1); olua_check_object(L, 3, &arg2, "cc.Vec2"); // bool setBMFontFilePath(const std::string &bmfontFilePath, const cocos2d::Vec2 &imageOffset) - bool ret = self->setBMFontFilePath(arg1, arg2); + bool ret = self->setBMFontFilePath(arg1, *arg2); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -29078,7 +29888,7 @@ static int _fairygui_FUILabel_setBMFontFilePath$5(lua_State *L) fairygui::FUILabel *self = nullptr; std::string arg1; /** bmfontFilePath */ - cocos2d::Rect arg2; /** imageRect */ + cocos2d::Rect *arg2; /** imageRect */ bool arg3 = false; /** imageRotated */ float arg4 = 0; /** fontSize */ @@ -29089,7 +29899,7 @@ static int _fairygui_FUILabel_setBMFontFilePath$5(lua_State *L) olua_check_number(L, 5, &arg4); // @using bool setBMFontFilePath(const std::string &bmfontFilePath, const cocos2d::Rect &imageRect, bool imageRotated, @optional float fontSize) - bool ret = self->setBMFontFilePath(arg1, arg2, arg3, arg4); + bool ret = self->setBMFontFilePath(arg1, *arg2, arg3, arg4); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -29103,7 +29913,7 @@ static int _fairygui_FUILabel_setBMFontFilePath$6(lua_State *L) fairygui::FUILabel *self = nullptr; std::string arg1; /** bmfontFilePath */ - cocos2d::Rect arg2; /** imageRect */ + cocos2d::Rect *arg2; /** imageRect */ bool arg3 = false; /** imageRotated */ olua_to_object(L, 1, &self, "fgui.FUILabel"); @@ -29112,7 +29922,7 @@ static int _fairygui_FUILabel_setBMFontFilePath$6(lua_State *L) olua_check_bool(L, 4, &arg3); // @using bool setBMFontFilePath(const std::string &bmfontFilePath, const cocos2d::Rect &imageRect, bool imageRotated) - bool ret = self->setBMFontFilePath(arg1, arg2, arg3); + bool ret = self->setBMFontFilePath(arg1, *arg2, arg3); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -29275,8 +30085,7 @@ static int _fairygui_FUILabel_setUnderlineColor(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_FUILabel(lua_State *L) +static int _fgui_FUILabel(lua_State *L) { oluacls_class(L, "fgui.FUILabel"); oluacls_func(L, "applyTextFormat", _fairygui_FUILabel_applyTextFormat); @@ -29293,6 +30102,16 @@ OLUA_LIB int luaopen_fairygui_FUILabel(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_FUILabel(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::FUILabel"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_FUIRichText_applyTextFormat(lua_State *L) @@ -29435,13 +30254,13 @@ static int _fairygui_FUIRichText_hitTestLink(lua_State *L) olua_startinvoke(L); fairygui::FUIRichText *self = nullptr; - cocos2d::Vec2 arg1; /** worldPoint */ + cocos2d::Vec2 *arg1; /** worldPoint */ olua_to_object(L, 1, &self, "fgui.FUIRichText"); olua_check_object(L, 2, &arg1, "cc.Vec2"); // const char *hitTestLink(const cocos2d::Vec2 &worldPoint) - const char *ret = self->hitTestLink(arg1); + const char *ret = self->hitTestLink(*arg1); int num_ret = olua_push_string(L, ret); olua_endinvoke(L); @@ -29567,7 +30386,7 @@ static int _fairygui_FUIRichText_setObjectFactory(lua_State *L) std::string cb_tag = "ObjectFactory"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](fairygui::HtmlElement *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](fairygui::HtmlElement *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); fairygui::HtmlObject *ret = nullptr; /** ret */ @@ -29575,7 +30394,7 @@ static int _fairygui_FUIRichText_setObjectFactory(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "fgui.HtmlElement"); + olua_push_object(L, cb_arg1, "fgui.HtmlElement"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -29635,8 +30454,7 @@ static int _fairygui_FUIRichText_setText(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_FUIRichText(lua_State *L) +static int _fgui_FUIRichText(lua_State *L) { oluacls_class(L, "fgui.FUIRichText"); oluacls_func(L, "applyTextFormat", _fairygui_FUIRichText_applyTextFormat); @@ -29665,6 +30483,16 @@ OLUA_LIB int luaopen_fairygui_FUIRichText(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_FUIRichText(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::FUIRichText"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_FUISprite_clearContent(lua_State *L) @@ -29921,8 +30749,7 @@ static int _fairygui_FUISprite_setScaleByTile(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_FUISprite(lua_State *L) +static int _fgui_FUISprite(lua_State *L) { oluacls_class(L, "fgui.FUISprite"); oluacls_func(L, "clearContent", _fairygui_FUISprite_clearContent); @@ -29948,6 +30775,16 @@ OLUA_LIB int luaopen_fairygui_FUISprite(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_FUISprite(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::FUISprite"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_HtmlObject___gc(lua_State *L) @@ -30329,8 +31166,7 @@ static int _fairygui_HtmlObject_usePool(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_HtmlObject(lua_State *L) +static int _fgui_HtmlObject(lua_State *L) { oluacls_class(L, "fgui.HtmlObject"); oluacls_func(L, "__gc", _fairygui_HtmlObject___gc); @@ -30352,10 +31188,19 @@ OLUA_LIB int luaopen_fairygui_HtmlObject(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_HtmlElement_Type(lua_State *L) +OLUA_LIB int luaopen_fgui_HtmlObject(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::HtmlObject"); + } + return 1; +} +OLUA_END_DECLS + +static int _fgui_HtmlElement_Type(lua_State *L) { oluacls_class(L, "fgui.HtmlElement.Type"); oluacls_func(L, "__index", olua_indexerror); @@ -30369,6 +31214,16 @@ OLUA_LIB int luaopen_fairygui_HtmlElement_Type(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_HtmlElement_Type(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::HtmlElement::Type"); + } + return 1; +} OLUA_END_DECLS static int _fairygui_HtmlElement___gc(lua_State *L) @@ -30473,13 +31328,13 @@ static int _fairygui_HtmlElement_format$2(lua_State *L) olua_startinvoke(L); fairygui::HtmlElement *self = nullptr; - fairygui::TextFormat arg1; /** format */ + fairygui::TextFormat *arg1; /** format */ olua_to_object(L, 1, &self, "fgui.HtmlElement"); olua_check_object(L, 2, &arg1, "fgui.TextFormat"); // fairygui::TextFormat format - self->format = arg1; + self->format = *arg1; olua_endinvoke(L); @@ -30950,8 +31805,7 @@ static int _fairygui_HtmlElement_type(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_fairygui_HtmlElement(lua_State *L) +static int _fgui_HtmlElement(lua_State *L) { oluacls_class(L, "fgui.HtmlElement"); oluacls_func(L, "__gc", _fairygui_HtmlElement___gc); @@ -30970,107 +31824,117 @@ OLUA_LIB int luaopen_fairygui_HtmlElement(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_fgui_HtmlElement(lua_State *L) +{ + olua_require(L, "fairygui", luaopen_fairygui); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: fairygui::HtmlElement"); + } + return 1; +} OLUA_END_DECLS OLUA_BEGIN_DECLS OLUA_LIB int luaopen_fairygui(lua_State *L) { - olua_require(L, "fgui.VectorTreeNode", luaopen_fairygui_VectorTreeNode); - olua_require(L, "fgui.Margin", luaopen_fairygui_Margin); - olua_require(L, "fgui.HtmlParseOptions", luaopen_fairygui_HtmlParseOptions); - olua_require(L, "fgui.TweenValue", luaopen_fairygui_TweenValue); - olua_require(L, "fgui.UIEventType", luaopen_fairygui_UIEventType); - olua_require(L, "fgui.EventCallback", luaopen_fairygui_EventCallback); - olua_require(L, "fgui.UIEventDispatcher", luaopen_fairygui_UIEventDispatcher); - olua_require(L, "fgui.EventContext", luaopen_fairygui_EventContext); - olua_require(L, "fgui.IHitTest", luaopen_fairygui_IHitTest); - olua_require(L, "fgui.PixelHitTest", luaopen_fairygui_PixelHitTest); - olua_require(L, "fgui.PixelHitTestData", luaopen_fairygui_PixelHitTestData); - olua_require(L, "fgui.InputProcessor.CaptureEventCallback", luaopen_fairygui_InputProcessor_CaptureEventCallback); - olua_require(L, "fgui.InputProcessor", luaopen_fairygui_InputProcessor); - olua_require(L, "fgui.InputEvent", luaopen_fairygui_InputEvent); - olua_require(L, "fgui.TextFormat", luaopen_fairygui_TextFormat); - olua_require(L, "fgui.EaseType", luaopen_fairygui_EaseType); - olua_require(L, "fgui.EaseManager", luaopen_fairygui_EaseManager); - olua_require(L, "fgui.TweenPropType", luaopen_fairygui_TweenPropType); - olua_require(L, "fgui.GPath", luaopen_fairygui_GPath); - olua_require(L, "fgui.GTweener.GTweenCallback", luaopen_fairygui_GTweener_GTweenCallback); - olua_require(L, "fgui.GTweener.GTweenCallback0", luaopen_fairygui_GTweener_GTweenCallback0); - olua_require(L, "fgui.GTweener", luaopen_fairygui_GTweener); - olua_require(L, "fgui.GTween", luaopen_fairygui_GTween); - olua_require(L, "fgui.UIPackage", luaopen_fairygui_UIPackage); - olua_require(L, "fgui.PackageItem", luaopen_fairygui_PackageItem); - olua_require(L, "fgui.PackageItemType", luaopen_fairygui_PackageItemType); - olua_require(L, "fgui.ObjectType", luaopen_fairygui_ObjectType); - olua_require(L, "fgui.ButtonMode", luaopen_fairygui_ButtonMode); - olua_require(L, "fgui.ChildrenRenderOrder", luaopen_fairygui_ChildrenRenderOrder); - olua_require(L, "fgui.OverflowType", luaopen_fairygui_OverflowType); - olua_require(L, "fgui.ScrollType", luaopen_fairygui_ScrollType); - olua_require(L, "fgui.ScrollBarDisplayType", luaopen_fairygui_ScrollBarDisplayType); - olua_require(L, "fgui.LoaderFillType", luaopen_fairygui_LoaderFillType); - olua_require(L, "fgui.ProgressTitleType", luaopen_fairygui_ProgressTitleType); - olua_require(L, "fgui.ListLayoutType", luaopen_fairygui_ListLayoutType); - olua_require(L, "fgui.ListSelectionMode", luaopen_fairygui_ListSelectionMode); - olua_require(L, "fgui.GroupLayoutType", luaopen_fairygui_GroupLayoutType); - olua_require(L, "fgui.PopupDirection", luaopen_fairygui_PopupDirection); - olua_require(L, "fgui.AutoSizeType", luaopen_fairygui_AutoSizeType); - olua_require(L, "fgui.FlipType", luaopen_fairygui_FlipType); - olua_require(L, "fgui.TransitionActionType", luaopen_fairygui_TransitionActionType); - olua_require(L, "fgui.FillMethod", luaopen_fairygui_FillMethod); - olua_require(L, "fgui.FillOrigin", luaopen_fairygui_FillOrigin); - olua_require(L, "fgui.ObjectPropID", luaopen_fairygui_ObjectPropID); - olua_require(L, "fgui.GController", luaopen_fairygui_GController); - olua_require(L, "fgui.GObject", luaopen_fairygui_GObject); - olua_require(L, "fgui.GComponent", luaopen_fairygui_GComponent); - olua_require(L, "fgui.GRoot", luaopen_fairygui_GRoot); - olua_require(L, "fgui.GGroup", luaopen_fairygui_GGroup); - olua_require(L, "fgui.GScrollBar", luaopen_fairygui_GScrollBar); - olua_require(L, "fgui.GLoader", luaopen_fairygui_GLoader); - olua_require(L, "fgui.GLoader3D", luaopen_fairygui_GLoader3D); - olua_require(L, "fgui.GTextField", luaopen_fairygui_GTextField); - olua_require(L, "fgui.GBasicTextField", luaopen_fairygui_GBasicTextField); - olua_require(L, "fgui.GGraph", luaopen_fairygui_GGraph); - olua_require(L, "fgui.GButton", luaopen_fairygui_GButton); - olua_require(L, "fgui.GImage", luaopen_fairygui_GImage); - olua_require(L, "fgui.GLabel", luaopen_fairygui_GLabel); - olua_require(L, "fgui.GList.ListItemRenderer", luaopen_fairygui_GList_ListItemRenderer); - olua_require(L, "fgui.GList.ListItemProvider", luaopen_fairygui_GList_ListItemProvider); - olua_require(L, "fgui.GList", luaopen_fairygui_GList); - olua_require(L, "fgui.GMovieClip", luaopen_fairygui_GMovieClip); - olua_require(L, "fgui.GProgressBar", luaopen_fairygui_GProgressBar); - olua_require(L, "fgui.GComboBox", luaopen_fairygui_GComboBox); - olua_require(L, "fgui.GRichTextField", luaopen_fairygui_GRichTextField); - olua_require(L, "fgui.GSlider", luaopen_fairygui_GSlider); - olua_require(L, "fgui.GTextInput", luaopen_fairygui_GTextInput); - olua_require(L, "fgui.PopupMenu", luaopen_fairygui_PopupMenu); - olua_require(L, "fgui.Relations", luaopen_fairygui_Relations); - olua_require(L, "fgui.RelationType", luaopen_fairygui_RelationType); - olua_require(L, "fgui.RelationItem", luaopen_fairygui_RelationItem); - olua_require(L, "fgui.ScrollPane", luaopen_fairygui_ScrollPane); - olua_require(L, "fgui.Transition.PlayCompleteCallback", luaopen_fairygui_Transition_PlayCompleteCallback); - olua_require(L, "fgui.Transition.TransitionHook", luaopen_fairygui_Transition_TransitionHook); - olua_require(L, "fgui.Transition", luaopen_fairygui_Transition); - olua_require(L, "fgui.UIConfig", luaopen_fairygui_UIConfig); - olua_require(L, "fgui.IUISource", luaopen_fairygui_IUISource); - olua_require(L, "fgui.UISource", luaopen_fairygui_UISource); - olua_require(L, "fgui.Window", luaopen_fairygui_Window); - olua_require(L, "fgui.DragDropManager", luaopen_fairygui_DragDropManager); - olua_require(L, "fgui.UIObjectFactory.GLoaderCreator", luaopen_fairygui_UIObjectFactory_GLoaderCreator); - olua_require(L, "fgui.UIObjectFactory.GComponentCreator", luaopen_fairygui_UIObjectFactory_GComponentCreator); - olua_require(L, "fgui.UIObjectFactory", luaopen_fairygui_UIObjectFactory); - olua_require(L, "fgui.GearBase", luaopen_fairygui_GearBase); - olua_require(L, "fgui.GTreeNode", luaopen_fairygui_GTreeNode); - olua_require(L, "fgui.GTree.TreeNodeRenderFunction", luaopen_fairygui_GTree_TreeNodeRenderFunction); - olua_require(L, "fgui.GTree.TreeNodeWillExpandFunction", luaopen_fairygui_GTree_TreeNodeWillExpandFunction); - olua_require(L, "fgui.GTree", luaopen_fairygui_GTree); - olua_require(L, "fgui.FUIContainer", luaopen_fairygui_FUIContainer); - olua_require(L, "fgui.FUIInput", luaopen_fairygui_FUIInput); - olua_require(L, "fgui.FUILabel", luaopen_fairygui_FUILabel); - olua_require(L, "fgui.FUIRichText", luaopen_fairygui_FUIRichText); - olua_require(L, "fgui.FUISprite", luaopen_fairygui_FUISprite); - olua_require(L, "fgui.HtmlObject", luaopen_fairygui_HtmlObject); - olua_require(L, "fgui.HtmlElement.Type", luaopen_fairygui_HtmlElement_Type); - olua_require(L, "fgui.HtmlElement", luaopen_fairygui_HtmlElement); + olua_require(L, "fgui.VectorTreeNode", _fgui_VectorTreeNode); + olua_require(L, "fgui.Margin", _fgui_Margin); + olua_require(L, "fgui.HtmlParseOptions", _fgui_HtmlParseOptions); + olua_require(L, "fgui.TweenValue", _fgui_TweenValue); + olua_require(L, "fgui.UIEventType", _fgui_UIEventType); + olua_require(L, "fgui.EventCallback", _fgui_EventCallback); + olua_require(L, "fgui.UIEventDispatcher", _fgui_UIEventDispatcher); + olua_require(L, "fgui.EventContext", _fgui_EventContext); + olua_require(L, "fgui.IHitTest", _fgui_IHitTest); + olua_require(L, "fgui.PixelHitTest", _fgui_PixelHitTest); + olua_require(L, "fgui.PixelHitTestData", _fgui_PixelHitTestData); + olua_require(L, "fgui.InputProcessor.CaptureEventCallback", _fgui_InputProcessor_CaptureEventCallback); + olua_require(L, "fgui.InputProcessor", _fgui_InputProcessor); + olua_require(L, "fgui.InputEvent", _fgui_InputEvent); + olua_require(L, "fgui.TextFormat", _fgui_TextFormat); + olua_require(L, "fgui.EaseType", _fgui_EaseType); + olua_require(L, "fgui.EaseManager", _fgui_EaseManager); + olua_require(L, "fgui.TweenPropType", _fgui_TweenPropType); + olua_require(L, "fgui.GPath", _fgui_GPath); + olua_require(L, "fgui.GTweener.GTweenCallback", _fgui_GTweener_GTweenCallback); + olua_require(L, "fgui.GTweener.GTweenCallback0", _fgui_GTweener_GTweenCallback0); + olua_require(L, "fgui.GTweener", _fgui_GTweener); + olua_require(L, "fgui.GTween", _fgui_GTween); + olua_require(L, "fgui.UIPackage", _fgui_UIPackage); + olua_require(L, "fgui.PackageItem", _fgui_PackageItem); + olua_require(L, "fgui.PackageItemType", _fgui_PackageItemType); + olua_require(L, "fgui.ObjectType", _fgui_ObjectType); + olua_require(L, "fgui.ButtonMode", _fgui_ButtonMode); + olua_require(L, "fgui.ChildrenRenderOrder", _fgui_ChildrenRenderOrder); + olua_require(L, "fgui.OverflowType", _fgui_OverflowType); + olua_require(L, "fgui.ScrollType", _fgui_ScrollType); + olua_require(L, "fgui.ScrollBarDisplayType", _fgui_ScrollBarDisplayType); + olua_require(L, "fgui.LoaderFillType", _fgui_LoaderFillType); + olua_require(L, "fgui.ProgressTitleType", _fgui_ProgressTitleType); + olua_require(L, "fgui.ListLayoutType", _fgui_ListLayoutType); + olua_require(L, "fgui.ListSelectionMode", _fgui_ListSelectionMode); + olua_require(L, "fgui.GroupLayoutType", _fgui_GroupLayoutType); + olua_require(L, "fgui.PopupDirection", _fgui_PopupDirection); + olua_require(L, "fgui.AutoSizeType", _fgui_AutoSizeType); + olua_require(L, "fgui.FlipType", _fgui_FlipType); + olua_require(L, "fgui.TransitionActionType", _fgui_TransitionActionType); + olua_require(L, "fgui.FillMethod", _fgui_FillMethod); + olua_require(L, "fgui.FillOrigin", _fgui_FillOrigin); + olua_require(L, "fgui.ObjectPropID", _fgui_ObjectPropID); + olua_require(L, "fgui.GController", _fgui_GController); + olua_require(L, "fgui.GObject", _fgui_GObject); + olua_require(L, "fgui.GComponent", _fgui_GComponent); + olua_require(L, "fgui.GRoot", _fgui_GRoot); + olua_require(L, "fgui.GGroup", _fgui_GGroup); + olua_require(L, "fgui.GScrollBar", _fgui_GScrollBar); + olua_require(L, "fgui.GLoader", _fgui_GLoader); + olua_require(L, "fgui.GLoader3D", _fgui_GLoader3D); + olua_require(L, "fgui.GTextField", _fgui_GTextField); + olua_require(L, "fgui.GBasicTextField", _fgui_GBasicTextField); + olua_require(L, "fgui.GGraph", _fgui_GGraph); + olua_require(L, "fgui.GButton", _fgui_GButton); + olua_require(L, "fgui.GImage", _fgui_GImage); + olua_require(L, "fgui.GLabel", _fgui_GLabel); + olua_require(L, "fgui.GList.ListItemRenderer", _fgui_GList_ListItemRenderer); + olua_require(L, "fgui.GList.ListItemProvider", _fgui_GList_ListItemProvider); + olua_require(L, "fgui.GList", _fgui_GList); + olua_require(L, "fgui.GMovieClip", _fgui_GMovieClip); + olua_require(L, "fgui.GProgressBar", _fgui_GProgressBar); + olua_require(L, "fgui.GComboBox", _fgui_GComboBox); + olua_require(L, "fgui.GRichTextField", _fgui_GRichTextField); + olua_require(L, "fgui.GSlider", _fgui_GSlider); + olua_require(L, "fgui.GTextInput", _fgui_GTextInput); + olua_require(L, "fgui.PopupMenu", _fgui_PopupMenu); + olua_require(L, "fgui.Relations", _fgui_Relations); + olua_require(L, "fgui.RelationType", _fgui_RelationType); + olua_require(L, "fgui.RelationItem", _fgui_RelationItem); + olua_require(L, "fgui.ScrollPane", _fgui_ScrollPane); + olua_require(L, "fgui.Transition.PlayCompleteCallback", _fgui_Transition_PlayCompleteCallback); + olua_require(L, "fgui.Transition.TransitionHook", _fgui_Transition_TransitionHook); + olua_require(L, "fgui.Transition", _fgui_Transition); + olua_require(L, "fgui.UIConfig", _fgui_UIConfig); + olua_require(L, "fgui.IUISource", _fgui_IUISource); + olua_require(L, "fgui.UISource", _fgui_UISource); + olua_require(L, "fgui.Window", _fgui_Window); + olua_require(L, "fgui.DragDropManager", _fgui_DragDropManager); + olua_require(L, "fgui.UIObjectFactory.GLoaderCreator", _fgui_UIObjectFactory_GLoaderCreator); + olua_require(L, "fgui.UIObjectFactory.GComponentCreator", _fgui_UIObjectFactory_GComponentCreator); + olua_require(L, "fgui.UIObjectFactory", _fgui_UIObjectFactory); + olua_require(L, "fgui.GearBase", _fgui_GearBase); + olua_require(L, "fgui.GTreeNode", _fgui_GTreeNode); + olua_require(L, "fgui.GTree.TreeNodeRenderFunction", _fgui_GTree_TreeNodeRenderFunction); + olua_require(L, "fgui.GTree.TreeNodeWillExpandFunction", _fgui_GTree_TreeNodeWillExpandFunction); + olua_require(L, "fgui.GTree", _fgui_GTree); + olua_require(L, "fgui.FUIContainer", _fgui_FUIContainer); + olua_require(L, "fgui.FUIInput", _fgui_FUIInput); + olua_require(L, "fgui.FUILabel", _fgui_FUILabel); + olua_require(L, "fgui.FUIRichText", _fgui_FUIRichText); + olua_require(L, "fgui.FUISprite", _fgui_FUISprite); + olua_require(L, "fgui.HtmlObject", _fgui_HtmlObject); + olua_require(L, "fgui.HtmlElement.Type", _fgui_HtmlElement_Type); + olua_require(L, "fgui.HtmlElement", _fgui_HtmlElement); cclua::runtime::registerFeature("fairygui", true); diff --git a/frameworks/cclua/src/lua-bindings/lua_fairygui.h b/frameworks/cclua/src/lua-bindings/lua_fairygui.h index 9b57e959..ec667cc2 100644 --- a/frameworks/cclua/src/lua-bindings/lua_fairygui.h +++ b/frameworks/cclua/src/lua-bindings/lua_fairygui.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_FAIRYGUI_H__ #define __AUTO_GEN_LUA_FAIRYGUI_H__ diff --git a/frameworks/cclua/src/lua-bindings/lua_spine.cpp b/frameworks/cclua/src/lua-bindings/lua_spine.cpp index c4cd9f3b..a4208ba6 100644 --- a/frameworks/cclua/src/lua-bindings/lua_spine.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_spine.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_spine.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -7,8 +7,7 @@ #include "cocos2d.h" #include "spine/spine-cocos2dx.h" -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_EventType(lua_State *L) +static int _spine_EventType(lua_State *L) { oluacls_class(L, "spine.EventType"); oluacls_func(L, "__index", olua_indexerror); @@ -22,10 +21,19 @@ OLUA_LIB int luaopen_spine_EventType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_AttachmentType(lua_State *L) +OLUA_LIB int luaopen_spine_EventType(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::EventType"); + } + return 1; +} +OLUA_END_DECLS + +static int _spine_AttachmentType(lua_State *L) { oluacls_class(L, "spine.AttachmentType"); oluacls_func(L, "__index", olua_indexerror); @@ -40,10 +48,19 @@ OLUA_LIB int luaopen_spine_AttachmentType(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_BlendMode(lua_State *L) +OLUA_LIB int luaopen_spine_AttachmentType(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::AttachmentType"); + } + return 1; +} +OLUA_END_DECLS + +static int _spine_BlendMode(lua_State *L) { oluacls_class(L, "spine.BlendMode"); oluacls_func(L, "__index", olua_indexerror); @@ -55,10 +72,19 @@ OLUA_LIB int luaopen_spine_BlendMode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_PositionMode(lua_State *L) +OLUA_LIB int luaopen_spine_BlendMode(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::BlendMode"); + } + return 1; +} +OLUA_END_DECLS + +static int _spine_PositionMode(lua_State *L) { oluacls_class(L, "spine.PositionMode"); oluacls_func(L, "__index", olua_indexerror); @@ -68,10 +94,19 @@ OLUA_LIB int luaopen_spine_PositionMode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_SpacingMode(lua_State *L) +OLUA_LIB int luaopen_spine_PositionMode(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::PositionMode"); + } + return 1; +} +OLUA_END_DECLS + +static int _spine_SpacingMode(lua_State *L) { oluacls_class(L, "spine.SpacingMode"); oluacls_func(L, "__index", olua_indexerror); @@ -83,10 +118,19 @@ OLUA_LIB int luaopen_spine_SpacingMode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_RotateMode(lua_State *L) +OLUA_LIB int luaopen_spine_SpacingMode(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::SpacingMode"); + } + return 1; +} +OLUA_END_DECLS + +static int _spine_RotateMode(lua_State *L) { oluacls_class(L, "spine.RotateMode"); oluacls_func(L, "__index", olua_indexerror); @@ -97,10 +141,19 @@ OLUA_LIB int luaopen_spine_RotateMode(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_MixBlend(lua_State *L) +OLUA_LIB int luaopen_spine_RotateMode(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::RotateMode"); + } + return 1; +} +OLUA_END_DECLS + +static int _spine_MixBlend(lua_State *L) { oluacls_class(L, "spine.MixBlend"); oluacls_func(L, "__index", olua_indexerror); @@ -112,10 +165,19 @@ OLUA_LIB int luaopen_spine_MixBlend(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_MixDirection(lua_State *L) +OLUA_LIB int luaopen_spine_MixBlend(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::MixBlend"); + } + return 1; +} +OLUA_END_DECLS + +static int _spine_MixDirection(lua_State *L) { oluacls_class(L, "spine.MixDirection"); oluacls_func(L, "__index", olua_indexerror); @@ -125,10 +187,19 @@ OLUA_LIB int luaopen_spine_MixDirection(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_Physics(lua_State *L) +OLUA_LIB int luaopen_spine_MixDirection(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::MixDirection"); + } + return 1; +} +OLUA_END_DECLS + +static int _spine_Physics(lua_State *L) { oluacls_class(L, "spine.Physics"); oluacls_func(L, "__index", olua_indexerror); @@ -140,10 +211,19 @@ OLUA_LIB int luaopen_spine_Physics(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_Inherit(lua_State *L) +OLUA_LIB int luaopen_spine_Physics(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::Physics"); + } + return 1; +} +OLUA_END_DECLS + +static int _spine_Inherit(lua_State *L) { oluacls_class(L, "spine.Inherit"); oluacls_func(L, "__index", olua_indexerror); @@ -156,6 +236,16 @@ OLUA_LIB int luaopen_spine_Inherit(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_Inherit(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::Inherit"); + } + return 1; +} OLUA_END_DECLS static int _spine_SpineObject___gc(lua_State *L) @@ -182,8 +272,7 @@ static int _spine_SpineObject___olua_move(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_SpineObject(lua_State *L) +static int _spine_SpineObject(lua_State *L) { oluacls_class(L, "spine.SpineObject"); oluacls_func(L, "__gc", _spine_SpineObject___gc); @@ -191,6 +280,16 @@ OLUA_LIB int luaopen_spine_SpineObject(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_SpineObject(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::SpineObject"); + } + return 1; +} OLUA_END_DECLS static int _spine_Event_getBalance(lua_State *L) @@ -402,8 +501,7 @@ static int _spine_Event_setVolume(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_Event(lua_State *L) +static int _spine_Event(lua_State *L) { oluacls_class(L, "spine.Event"); oluacls_func(L, "getBalance", _spine_Event_getBalance); @@ -428,6 +526,16 @@ OLUA_LIB int luaopen_spine_Event(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_Event(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::Event"); + } + return 1; +} OLUA_END_DECLS static int _spine_EventData_getAudioPath(lua_State *L) @@ -675,8 +783,7 @@ static int _spine_EventData_setVolume(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_EventData(lua_State *L) +static int _spine_EventData(lua_State *L) { oluacls_class(L, "spine.EventData"); oluacls_func(L, "getAudioPath", _spine_EventData_getAudioPath); @@ -703,6 +810,16 @@ OLUA_LIB int luaopen_spine_EventData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_EventData(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::EventData"); + } + return 1; +} OLUA_END_DECLS static int _spine_Updatable_isActive(lua_State *L) @@ -758,8 +875,7 @@ static int _spine_Updatable_update(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_Updatable(lua_State *L) +static int _spine_Updatable(lua_State *L) { oluacls_class(L, "spine.Updatable"); oluacls_func(L, "isActive", _spine_Updatable_isActive); @@ -769,6 +885,16 @@ OLUA_LIB int luaopen_spine_Updatable(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_Updatable(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::Updatable"); + } + return 1; +} OLUA_END_DECLS static int _spine_AnimationStateListener___call(lua_State *L) @@ -783,14 +909,23 @@ static int _spine_AnimationStateListener___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_AnimationStateListener(lua_State *L) +static int _spine_AnimationStateListener(lua_State *L) { oluacls_class(L, "spine.AnimationStateListener"); oluacls_func(L, "__call", _spine_AnimationStateListener___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_AnimationStateListener(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::AnimationStateListener"); + } + return 1; +} OLUA_END_DECLS static int _spine_AnimationState_addAnimation$1(lua_State *L) @@ -1217,16 +1352,16 @@ static int _spine_AnimationState_setListener(lua_State *L) std::string cb_tag = "Listener"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](spine::AnimationState *arg1, spine::EventType arg2, spine::TrackEntry *arg3, spine::Event *arg4) { + arg1 = [cb_store, cb_name, cb_ctx](spine::AnimationState *cb_arg1, spine::EventType cb_arg2, spine::TrackEntry *cb_arg3, spine::Event *cb_arg4) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "spine.AnimationState"); - olua_push_enum(L, arg2); - olua_push_object(L, arg3, "spine.TrackEntry"); - olua_push_object(L, arg4, "spine.Event"); + olua_push_object(L, cb_arg1, "spine.AnimationState"); + olua_push_enum(L, cb_arg2); + olua_push_object(L, cb_arg3, "spine.TrackEntry"); + olua_push_object(L, cb_arg4, "spine.Event"); olua_callback(L, cb_store, cb_name.c_str(), 4); @@ -1296,8 +1431,7 @@ static int _spine_AnimationState_update(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_AnimationState(lua_State *L) +static int _spine_AnimationState(lua_State *L) { oluacls_class(L, "spine.AnimationState"); oluacls_func(L, "addAnimation", _spine_AnimationState_addAnimation); @@ -1328,6 +1462,16 @@ OLUA_LIB int luaopen_spine_AnimationState(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_AnimationState(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::AnimationState"); + } + return 1; +} OLUA_END_DECLS static int _spine_AnimationStateData_clear(lua_State *L) @@ -1502,8 +1646,7 @@ static int _spine_AnimationStateData_setMix(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_AnimationStateData(lua_State *L) +static int _spine_AnimationStateData(lua_State *L) { oluacls_class(L, "spine.AnimationStateData"); oluacls_func(L, "clear", _spine_AnimationStateData_clear); @@ -1518,6 +1661,16 @@ OLUA_LIB int luaopen_spine_AnimationStateData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_AnimationStateData(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::AnimationStateData"); + } + return 1; +} OLUA_END_DECLS static int _spine_Animation_getDuration(lua_State *L) @@ -1703,8 +1856,7 @@ static int _spine_Animation_setDuration(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_Animation(lua_State *L) +static int _spine_Animation(lua_State *L) { oluacls_class(L, "spine.Animation"); oluacls_func(L, "getDuration", _spine_Animation_getDuration); @@ -1720,6 +1872,16 @@ OLUA_LIB int luaopen_spine_Animation(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_Animation(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::Animation"); + } + return 1; +} OLUA_END_DECLS static int _spine_Sequence_apply(lua_State *L) @@ -1957,8 +2119,7 @@ static int _spine_Sequence_setStart(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_Sequence(lua_State *L) +static int _spine_Sequence(lua_State *L) { oluacls_class(L, "spine.Sequence"); oluacls_func(L, "apply", _spine_Sequence_apply); @@ -1982,10 +2143,19 @@ OLUA_LIB int luaopen_spine_Sequence(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_SequenceMode(lua_State *L) +OLUA_LIB int luaopen_spine_Sequence(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::Sequence"); + } + return 1; +} +OLUA_END_DECLS + +static int _spine_SequenceMode(lua_State *L) { oluacls_class(L, "spine.SequenceMode"); oluacls_func(L, "__index", olua_indexerror); @@ -2000,6 +2170,16 @@ OLUA_LIB int luaopen_spine_SequenceMode(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_SequenceMode(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::SequenceMode"); + } + return 1; +} OLUA_END_DECLS static int _spine_TextureRegion_degrees$1(lua_State *L) @@ -2688,8 +2868,7 @@ static int _spine_TextureRegion_width(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_TextureRegion(lua_State *L) +static int _spine_TextureRegion(lua_State *L) { oluacls_class(L, "spine.TextureRegion"); oluacls_func(L, "new", _spine_TextureRegion_new); @@ -2708,6 +2887,16 @@ OLUA_LIB int luaopen_spine_TextureRegion(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_TextureRegion(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::TextureRegion"); + } + return 1; +} OLUA_END_DECLS static int _spine_ConstraintData_getName(lua_State *L) @@ -2815,8 +3004,7 @@ static int _spine_ConstraintData_setSkinRequired(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_ConstraintData(lua_State *L) +static int _spine_ConstraintData(lua_State *L) { oluacls_class(L, "spine.ConstraintData"); oluacls_func(L, "getName", _spine_ConstraintData_getName); @@ -2831,6 +3019,16 @@ OLUA_LIB int luaopen_spine_ConstraintData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_ConstraintData(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::ConstraintData"); + } + return 1; +} OLUA_END_DECLS static int _spine_IkConstraintData_getBendDirection(lua_State *L) @@ -3115,8 +3313,7 @@ static int _spine_IkConstraintData_setUniform(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_IkConstraintData(lua_State *L) +static int _spine_IkConstraintData(lua_State *L) { oluacls_class(L, "spine.IkConstraintData"); oluacls_func(L, "getBendDirection", _spine_IkConstraintData_getBendDirection); @@ -3146,6 +3343,16 @@ OLUA_LIB int luaopen_spine_IkConstraintData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_IkConstraintData(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::IkConstraintData"); + } + return 1; +} OLUA_END_DECLS static int _spine_BoneData_getColor(lua_State *L) @@ -3701,8 +3908,7 @@ static int _spine_BoneData_setY(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_BoneData(lua_State *L) +static int _spine_BoneData(lua_State *L) { oluacls_class(L, "spine.BoneData"); oluacls_func(L, "getColor", _spine_BoneData_getColor); @@ -3753,6 +3959,16 @@ OLUA_LIB int luaopen_spine_BoneData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_BoneData(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::BoneData"); + } + return 1; +} OLUA_END_DECLS static int _spine_SlotData_getAttachmentName(lua_State *L) @@ -4002,8 +4218,7 @@ static int _spine_SlotData_setVisible(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_SlotData(lua_State *L) +static int _spine_SlotData(lua_State *L) { oluacls_class(L, "spine.SlotData"); oluacls_func(L, "getAttachmentName", _spine_SlotData_getAttachmentName); @@ -4031,6 +4246,16 @@ OLUA_LIB int luaopen_spine_SlotData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_SlotData(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::SlotData"); + } + return 1; +} OLUA_END_DECLS static int _spine_IkConstraint_apply$1(lua_State *L) @@ -4415,8 +4640,7 @@ static int _spine_IkConstraint_setToSetupPose(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_IkConstraint(lua_State *L) +static int _spine_IkConstraint(lua_State *L) { oluacls_class(L, "spine.IkConstraint"); oluacls_func(L, "apply", _spine_IkConstraint_apply); @@ -4449,6 +4673,16 @@ OLUA_LIB int luaopen_spine_IkConstraint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_IkConstraint(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::IkConstraint"); + } + return 1; +} OLUA_END_DECLS static int _spine_TransformConstraint_getBones(lua_State *L) @@ -4785,8 +5019,7 @@ static int _spine_TransformConstraint_setToSetupPose(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_TransformConstraint(lua_State *L) +static int _spine_TransformConstraint(lua_State *L) { oluacls_class(L, "spine.TransformConstraint"); oluacls_func(L, "getBones", _spine_TransformConstraint_getBones); @@ -4821,6 +5054,16 @@ OLUA_LIB int luaopen_spine_TransformConstraint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_TransformConstraint(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::TransformConstraint"); + } + return 1; +} OLUA_END_DECLS static int _spine_TransformConstraintData_getBones(lua_State *L) @@ -5385,8 +5628,7 @@ static int _spine_TransformConstraintData_setTarget(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_TransformConstraintData(lua_State *L) +static int _spine_TransformConstraintData(lua_State *L) { oluacls_class(L, "spine.TransformConstraintData"); oluacls_func(L, "getBones", _spine_TransformConstraintData_getBones); @@ -5440,6 +5682,16 @@ OLUA_LIB int luaopen_spine_TransformConstraintData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_TransformConstraintData(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::TransformConstraintData"); + } + return 1; +} OLUA_END_DECLS static int _spine_PathConstraintData_getBones(lua_State *L) @@ -5829,8 +6081,7 @@ static int _spine_PathConstraintData_setTarget(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_PathConstraintData(lua_State *L) +static int _spine_PathConstraintData(lua_State *L) { oluacls_class(L, "spine.PathConstraintData"); oluacls_func(L, "getBones", _spine_PathConstraintData_getBones); @@ -5869,20 +6120,30 @@ OLUA_LIB int luaopen_spine_PathConstraintData(lua_State *L) return 1; } -OLUA_END_DECLS -static int _spine_SkeletonBounds_aabbIntersectsSkeleton(lua_State *L) +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_PathConstraintData(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::PathConstraintData"); + } + return 1; +} +OLUA_END_DECLS + +static int _spine_SkeletonBounds_aabbIntersectsSkeleton(lua_State *L) { olua_startinvoke(L); spine::SkeletonBounds *self = nullptr; - spine::SkeletonBounds arg1; /** bounds */ + spine::SkeletonBounds *arg1; /** bounds */ olua_to_object(L, 1, &self, "spine.SkeletonBounds"); olua_check_object(L, 2, &arg1, "spine.SkeletonBounds"); // bool aabbIntersectsSkeleton(spine::SkeletonBounds bounds) - bool ret = self->aabbIntersectsSkeleton(arg1); + bool ret = self->aabbIntersectsSkeleton(*arg1); int num_ret = olua_push_bool(L, ret); olua_endinvoke(L); @@ -6222,8 +6483,7 @@ static int _spine_SkeletonBounds_update(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_SkeletonBounds(lua_State *L) +static int _spine_SkeletonBounds(lua_State *L) { oluacls_class(L, "spine.SkeletonBounds"); oluacls_func(L, "aabbIntersectsSkeleton", _spine_SkeletonBounds_aabbIntersectsSkeleton); @@ -6246,33 +6506,70 @@ OLUA_LIB int luaopen_spine_SkeletonBounds(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_SkeletonClipping(lua_State *L) +OLUA_LIB int luaopen_spine_SkeletonBounds(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::SkeletonBounds"); + } + return 1; +} +OLUA_END_DECLS + +static int _spine_SkeletonClipping(lua_State *L) { oluacls_class(L, "spine.SkeletonClipping"); return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_PhysicsConstraint(lua_State *L) +OLUA_LIB int luaopen_spine_SkeletonClipping(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::SkeletonClipping"); + } + return 1; +} +OLUA_END_DECLS + +static int _spine_PhysicsConstraint(lua_State *L) { oluacls_class(L, "spine.PhysicsConstraint"); return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_PhysicsConstraintData(lua_State *L) +OLUA_LIB int luaopen_spine_PhysicsConstraint(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::PhysicsConstraint"); + } + return 1; +} +OLUA_END_DECLS + +static int _spine_PhysicsConstraintData(lua_State *L) { oluacls_class(L, "spine.PhysicsConstraintData"); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_PhysicsConstraintData(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::PhysicsConstraintData"); + } + return 1; +} OLUA_END_DECLS static int _spine_Timeline_getDuration(lua_State *L) @@ -6364,8 +6661,7 @@ static int _spine_Timeline_getPropertyIds(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_Timeline(lua_State *L) +static int _spine_Timeline(lua_State *L) { oluacls_class(L, "spine.Timeline"); oluacls_func(L, "getDuration", _spine_Timeline_getDuration); @@ -6381,6 +6677,16 @@ OLUA_LIB int luaopen_spine_Timeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_Timeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::Timeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_CurveTimeline_getBezierValue(lua_State *L) @@ -6501,8 +6807,7 @@ static int _spine_CurveTimeline_setStepped(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_CurveTimeline(lua_State *L) +static int _spine_CurveTimeline(lua_State *L) { oluacls_class(L, "spine.CurveTimeline"); oluacls_func(L, "getBezierValue", _spine_CurveTimeline_getBezierValue); @@ -6514,6 +6819,16 @@ OLUA_LIB int luaopen_spine_CurveTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_CurveTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::CurveTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_CurveTimeline1_getAbsoluteValue$1(lua_State *L) @@ -6670,8 +6985,7 @@ static int _spine_CurveTimeline1_getScaleValue(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_CurveTimeline1(lua_State *L) +static int _spine_CurveTimeline1(lua_State *L) { oluacls_class(L, "spine.CurveTimeline1"); oluacls_func(L, "getAbsoluteValue", _spine_CurveTimeline1_getAbsoluteValue); @@ -6681,6 +6995,16 @@ OLUA_LIB int luaopen_spine_CurveTimeline1(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_CurveTimeline1(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::CurveTimeline1"); + } + return 1; +} OLUA_END_DECLS static int _spine_CurveTimeline2_getCurveValue(lua_State *L) @@ -6702,14 +7026,23 @@ static int _spine_CurveTimeline2_getCurveValue(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_CurveTimeline2(lua_State *L) +static int _spine_CurveTimeline2(lua_State *L) { oluacls_class(L, "spine.CurveTimeline2"); oluacls_func(L, "getCurveValue", _spine_CurveTimeline2_getCurveValue); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_CurveTimeline2(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::CurveTimeline2"); + } + return 1; +} OLUA_END_DECLS static int _spine_AttachmentTimeline_getAttachmentNames(lua_State *L) @@ -6786,8 +7119,7 @@ static int _spine_AttachmentTimeline_setSlotIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_AttachmentTimeline(lua_State *L) +static int _spine_AttachmentTimeline(lua_State *L) { oluacls_class(L, "spine.AttachmentTimeline"); oluacls_func(L, "getAttachmentNames", _spine_AttachmentTimeline_getAttachmentNames); @@ -6799,6 +7131,16 @@ OLUA_LIB int luaopen_spine_AttachmentTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_AttachmentTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::AttachmentTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_RGBATimeline_getSlotIndex(lua_State *L) @@ -6858,8 +7200,7 @@ static int _spine_RGBATimeline_setSlotIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_RGBATimeline(lua_State *L) +static int _spine_RGBATimeline(lua_State *L) { oluacls_class(L, "spine.RGBATimeline"); oluacls_func(L, "getSlotIndex", _spine_RGBATimeline_getSlotIndex); @@ -6869,6 +7210,16 @@ OLUA_LIB int luaopen_spine_RGBATimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_RGBATimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::RGBATimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_RGBTimeline_getSlotIndex(lua_State *L) @@ -6928,8 +7279,7 @@ static int _spine_RGBTimeline_setSlotIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_RGBTimeline(lua_State *L) +static int _spine_RGBTimeline(lua_State *L) { oluacls_class(L, "spine.RGBTimeline"); oluacls_func(L, "getSlotIndex", _spine_RGBTimeline_getSlotIndex); @@ -6939,6 +7289,16 @@ OLUA_LIB int luaopen_spine_RGBTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_RGBTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::RGBTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_AlphaTimeline_getSlotIndex(lua_State *L) @@ -6998,8 +7358,7 @@ static int _spine_AlphaTimeline_setSlotIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_AlphaTimeline(lua_State *L) +static int _spine_AlphaTimeline(lua_State *L) { oluacls_class(L, "spine.AlphaTimeline"); oluacls_func(L, "getSlotIndex", _spine_AlphaTimeline_getSlotIndex); @@ -7009,6 +7368,16 @@ OLUA_LIB int luaopen_spine_AlphaTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_AlphaTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::AlphaTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_RGBA2Timeline_getSlotIndex(lua_State *L) @@ -7068,8 +7437,7 @@ static int _spine_RGBA2Timeline_setSlotIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_RGBA2Timeline(lua_State *L) +static int _spine_RGBA2Timeline(lua_State *L) { oluacls_class(L, "spine.RGBA2Timeline"); oluacls_func(L, "getSlotIndex", _spine_RGBA2Timeline_getSlotIndex); @@ -7079,6 +7447,16 @@ OLUA_LIB int luaopen_spine_RGBA2Timeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_RGBA2Timeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::RGBA2Timeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_RGB2Timeline_getSlotIndex(lua_State *L) @@ -7138,8 +7516,7 @@ static int _spine_RGB2Timeline_setSlotIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_RGB2Timeline(lua_State *L) +static int _spine_RGB2Timeline(lua_State *L) { oluacls_class(L, "spine.RGB2Timeline"); oluacls_func(L, "getSlotIndex", _spine_RGB2Timeline_getSlotIndex); @@ -7149,6 +7526,16 @@ OLUA_LIB int luaopen_spine_RGB2Timeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_RGB2Timeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::RGB2Timeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_DeformTimeline_getAttachment(lua_State *L) @@ -7266,8 +7653,7 @@ static int _spine_DeformTimeline_setSlotIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_DeformTimeline(lua_State *L) +static int _spine_DeformTimeline(lua_State *L) { oluacls_class(L, "spine.DeformTimeline"); oluacls_func(L, "getAttachment", _spine_DeformTimeline_getAttachment); @@ -7281,6 +7667,16 @@ OLUA_LIB int luaopen_spine_DeformTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_DeformTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::DeformTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_DrawOrderTimeline_new(lua_State *L) @@ -7301,14 +7697,23 @@ static int _spine_DrawOrderTimeline_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_DrawOrderTimeline(lua_State *L) +static int _spine_DrawOrderTimeline(lua_State *L) { oluacls_class(L, "spine.DrawOrderTimeline"); oluacls_func(L, "new", _spine_DrawOrderTimeline_new); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_DrawOrderTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::DrawOrderTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_EventTimeline_new(lua_State *L) @@ -7329,14 +7734,23 @@ static int _spine_EventTimeline_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_EventTimeline(lua_State *L) +static int _spine_EventTimeline(lua_State *L) { oluacls_class(L, "spine.EventTimeline"); oluacls_func(L, "new", _spine_EventTimeline_new); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_EventTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::EventTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_ScaleXTimeline_getBoneIndex(lua_State *L) @@ -7396,8 +7810,7 @@ static int _spine_ScaleXTimeline_setBoneIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_ScaleXTimeline(lua_State *L) +static int _spine_ScaleXTimeline(lua_State *L) { oluacls_class(L, "spine.ScaleXTimeline"); oluacls_func(L, "getBoneIndex", _spine_ScaleXTimeline_getBoneIndex); @@ -7407,6 +7820,16 @@ OLUA_LIB int luaopen_spine_ScaleXTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_ScaleXTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::ScaleXTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_ScaleYTimeline_getBoneIndex(lua_State *L) @@ -7466,8 +7889,7 @@ static int _spine_ScaleYTimeline_setBoneIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_ScaleYTimeline(lua_State *L) +static int _spine_ScaleYTimeline(lua_State *L) { oluacls_class(L, "spine.ScaleYTimeline"); oluacls_func(L, "getBoneIndex", _spine_ScaleYTimeline_getBoneIndex); @@ -7477,6 +7899,16 @@ OLUA_LIB int luaopen_spine_ScaleYTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_ScaleYTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::ScaleYTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_ShearXTimeline_getBoneIndex(lua_State *L) @@ -7536,8 +7968,7 @@ static int _spine_ShearXTimeline_setBoneIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_ShearXTimeline(lua_State *L) +static int _spine_ShearXTimeline(lua_State *L) { oluacls_class(L, "spine.ShearXTimeline"); oluacls_func(L, "getBoneIndex", _spine_ShearXTimeline_getBoneIndex); @@ -7547,6 +7978,16 @@ OLUA_LIB int luaopen_spine_ShearXTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_ShearXTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::ShearXTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_ShearYTimeline_getBoneIndex(lua_State *L) @@ -7606,8 +8047,7 @@ static int _spine_ShearYTimeline_setBoneIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_ShearYTimeline(lua_State *L) +static int _spine_ShearYTimeline(lua_State *L) { oluacls_class(L, "spine.ShearYTimeline"); oluacls_func(L, "getBoneIndex", _spine_ShearYTimeline_getBoneIndex); @@ -7617,6 +8057,16 @@ OLUA_LIB int luaopen_spine_ShearYTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_ShearYTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::ShearYTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_TranslateXTimeline_getBoneIndex(lua_State *L) @@ -7676,8 +8126,7 @@ static int _spine_TranslateXTimeline_setBoneIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_TranslateXTimeline(lua_State *L) +static int _spine_TranslateXTimeline(lua_State *L) { oluacls_class(L, "spine.TranslateXTimeline"); oluacls_func(L, "getBoneIndex", _spine_TranslateXTimeline_getBoneIndex); @@ -7687,6 +8136,16 @@ OLUA_LIB int luaopen_spine_TranslateXTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_TranslateXTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::TranslateXTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_TranslateYTimeline_getBoneIndex(lua_State *L) @@ -7746,8 +8205,7 @@ static int _spine_TranslateYTimeline_setBoneIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_TranslateYTimeline(lua_State *L) +static int _spine_TranslateYTimeline(lua_State *L) { oluacls_class(L, "spine.TranslateYTimeline"); oluacls_func(L, "getBoneIndex", _spine_TranslateYTimeline_getBoneIndex); @@ -7757,6 +8215,16 @@ OLUA_LIB int luaopen_spine_TranslateYTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_TranslateYTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::TranslateYTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_IkConstraintTimeline_getIkConstraintIndex(lua_State *L) @@ -7816,8 +8284,7 @@ static int _spine_IkConstraintTimeline_setIkConstraintIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_IkConstraintTimeline(lua_State *L) +static int _spine_IkConstraintTimeline(lua_State *L) { oluacls_class(L, "spine.IkConstraintTimeline"); oluacls_func(L, "getIkConstraintIndex", _spine_IkConstraintTimeline_getIkConstraintIndex); @@ -7827,6 +8294,16 @@ OLUA_LIB int luaopen_spine_IkConstraintTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_IkConstraintTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::IkConstraintTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_PathConstraintMixTimeline_getPathConstraintIndex(lua_State *L) @@ -7886,8 +8363,7 @@ static int _spine_PathConstraintMixTimeline_setPathConstraintIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_PathConstraintMixTimeline(lua_State *L) +static int _spine_PathConstraintMixTimeline(lua_State *L) { oluacls_class(L, "spine.PathConstraintMixTimeline"); oluacls_func(L, "getPathConstraintIndex", _spine_PathConstraintMixTimeline_getPathConstraintIndex); @@ -7897,6 +8373,16 @@ OLUA_LIB int luaopen_spine_PathConstraintMixTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_PathConstraintMixTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::PathConstraintMixTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_PathConstraintPositionTimeline_getPathConstraintIndex(lua_State *L) @@ -7956,8 +8442,7 @@ static int _spine_PathConstraintPositionTimeline_setPathConstraintIndex(lua_Stat return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_PathConstraintPositionTimeline(lua_State *L) +static int _spine_PathConstraintPositionTimeline(lua_State *L) { oluacls_class(L, "spine.PathConstraintPositionTimeline"); oluacls_func(L, "getPathConstraintIndex", _spine_PathConstraintPositionTimeline_getPathConstraintIndex); @@ -7968,6 +8453,16 @@ OLUA_LIB int luaopen_spine_PathConstraintPositionTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_PathConstraintPositionTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::PathConstraintPositionTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_PathConstraintSpacingTimeline_getPathConstraintIndex(lua_State *L) @@ -8027,8 +8522,7 @@ static int _spine_PathConstraintSpacingTimeline_setPathConstraintIndex(lua_State return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_PathConstraintSpacingTimeline(lua_State *L) +static int _spine_PathConstraintSpacingTimeline(lua_State *L) { oluacls_class(L, "spine.PathConstraintSpacingTimeline"); oluacls_func(L, "getPathConstraintIndex", _spine_PathConstraintSpacingTimeline_getPathConstraintIndex); @@ -8038,6 +8532,16 @@ OLUA_LIB int luaopen_spine_PathConstraintSpacingTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_PathConstraintSpacingTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::PathConstraintSpacingTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_TranslateTimeline_getBoneIndex(lua_State *L) @@ -8097,8 +8601,7 @@ static int _spine_TranslateTimeline_setBoneIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_TranslateTimeline(lua_State *L) +static int _spine_TranslateTimeline(lua_State *L) { oluacls_class(L, "spine.TranslateTimeline"); oluacls_func(L, "getBoneIndex", _spine_TranslateTimeline_getBoneIndex); @@ -8108,6 +8611,16 @@ OLUA_LIB int luaopen_spine_TranslateTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_TranslateTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::TranslateTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_ShearTimeline_getBoneIndex(lua_State *L) @@ -8167,8 +8680,7 @@ static int _spine_ShearTimeline_setBoneIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_ShearTimeline(lua_State *L) +static int _spine_ShearTimeline(lua_State *L) { oluacls_class(L, "spine.ShearTimeline"); oluacls_func(L, "getBoneIndex", _spine_ShearTimeline_getBoneIndex); @@ -8178,6 +8690,16 @@ OLUA_LIB int luaopen_spine_ShearTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_ShearTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::ShearTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_TransformConstraintTimeline_getTransformConstraintIndex(lua_State *L) @@ -8237,8 +8759,7 @@ static int _spine_TransformConstraintTimeline_setTransformConstraintIndex(lua_St return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_TransformConstraintTimeline(lua_State *L) +static int _spine_TransformConstraintTimeline(lua_State *L) { oluacls_class(L, "spine.TransformConstraintTimeline"); oluacls_func(L, "getTransformConstraintIndex", _spine_TransformConstraintTimeline_getTransformConstraintIndex); @@ -8248,6 +8769,16 @@ OLUA_LIB int luaopen_spine_TransformConstraintTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_TransformConstraintTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::TransformConstraintTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_ScaleTimeline_getBoneIndex(lua_State *L) @@ -8307,8 +8838,7 @@ static int _spine_ScaleTimeline_setBoneIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_ScaleTimeline(lua_State *L) +static int _spine_ScaleTimeline(lua_State *L) { oluacls_class(L, "spine.ScaleTimeline"); oluacls_func(L, "getBoneIndex", _spine_ScaleTimeline_getBoneIndex); @@ -8318,6 +8848,16 @@ OLUA_LIB int luaopen_spine_ScaleTimeline(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_ScaleTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::ScaleTimeline"); + } + return 1; +} OLUA_END_DECLS static int _spine_RotateTimeline_getBoneIndex(lua_State *L) @@ -8377,8 +8917,7 @@ static int _spine_RotateTimeline_setBoneIndex(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_RotateTimeline(lua_State *L) +static int _spine_RotateTimeline(lua_State *L) { oluacls_class(L, "spine.RotateTimeline"); oluacls_func(L, "getBoneIndex", _spine_RotateTimeline_getBoneIndex); @@ -8388,15 +8927,34 @@ OLUA_LIB int luaopen_spine_RotateTimeline(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_Polygon(lua_State *L) +OLUA_LIB int luaopen_spine_RotateTimeline(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::RotateTimeline"); + } + return 1; +} +OLUA_END_DECLS + +static int _spine_Polygon(lua_State *L) { oluacls_class(L, "spine.Polygon"); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_Polygon(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::Polygon"); + } + return 1; +} OLUA_END_DECLS static int _spine_Skin_addSkin(lua_State *L) @@ -8588,8 +9146,7 @@ static int _spine_Skin_setAttachment(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_Skin(lua_State *L) +static int _spine_Skin(lua_State *L) { oluacls_class(L, "spine.Skin"); oluacls_func(L, "addSkin", _spine_Skin_addSkin); @@ -8609,15 +9166,34 @@ OLUA_LIB int luaopen_spine_Skin(lua_State *L) return 1; } -OLUA_END_DECLS OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_Atlas(lua_State *L) +OLUA_LIB int luaopen_spine_Skin(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::Skin"); + } + return 1; +} +OLUA_END_DECLS + +static int _spine_Atlas(lua_State *L) { oluacls_class(L, "spine.Atlas"); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_Atlas(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::Atlas"); + } + return 1; +} OLUA_END_DECLS static int _spine_Bone_getA(lua_State *L) @@ -9824,8 +10400,7 @@ static int _spine_Bone_worldToParent(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_Bone(lua_State *L) +static int _spine_Bone(lua_State *L) { oluacls_class(L, "spine.Bone"); oluacls_func(L, "getA", _spine_Bone_getA); @@ -9926,6 +10501,16 @@ OLUA_LIB int luaopen_spine_Bone(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_Bone(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::Bone"); + } + return 1; +} OLUA_END_DECLS static int _spine_Slot_getAttachment(lua_State *L) @@ -10190,8 +10775,7 @@ static int _spine_Slot_setToSetupPose(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_Slot(lua_State *L) +static int _spine_Slot(lua_State *L) { oluacls_class(L, "spine.Slot"); oluacls_func(L, "getAttachment", _spine_Slot_getAttachment); @@ -10221,6 +10805,16 @@ OLUA_LIB int luaopen_spine_Slot(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_Slot(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::Slot"); + } + return 1; +} OLUA_END_DECLS static int _spine_Attachment_copy(lua_State *L) @@ -10306,8 +10900,7 @@ static int _spine_Attachment_reference(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_Attachment(lua_State *L) +static int _spine_Attachment(lua_State *L) { oluacls_class(L, "spine.Attachment"); oluacls_func(L, "copy", _spine_Attachment_copy); @@ -10320,6 +10913,16 @@ OLUA_LIB int luaopen_spine_Attachment(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_Attachment(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::Attachment"); + } + return 1; +} OLUA_END_DECLS static int _spine_VertexAttachment_computeWorldVertices$1(lua_State *L) @@ -10664,8 +11267,7 @@ static int _spine_VertexAttachment_setWorldVerticesLength(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_VertexAttachment(lua_State *L) +static int _spine_VertexAttachment(lua_State *L) { oluacls_class(L, "spine.VertexAttachment"); oluacls_func(L, "computeWorldVertices", _spine_VertexAttachment_computeWorldVertices); @@ -10685,6 +11287,16 @@ OLUA_LIB int luaopen_spine_VertexAttachment(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_VertexAttachment(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::VertexAttachment"); + } + return 1; +} OLUA_END_DECLS static int _spine_ClippingAttachment_getColor(lua_State *L) @@ -10757,8 +11369,7 @@ static int _spine_ClippingAttachment_setEndSlot(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_ClippingAttachment(lua_State *L) +static int _spine_ClippingAttachment(lua_State *L) { oluacls_class(L, "spine.ClippingAttachment"); oluacls_func(L, "getColor", _spine_ClippingAttachment_getColor); @@ -10770,6 +11381,16 @@ OLUA_LIB int luaopen_spine_ClippingAttachment(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_ClippingAttachment(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::ClippingAttachment"); + } + return 1; +} OLUA_END_DECLS static int _spine_BoundingBoxAttachment_getColor(lua_State *L) @@ -10807,8 +11428,7 @@ static int _spine_BoundingBoxAttachment_new(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_BoundingBoxAttachment(lua_State *L) +static int _spine_BoundingBoxAttachment(lua_State *L) { oluacls_class(L, "spine.BoundingBoxAttachment"); oluacls_func(L, "getColor", _spine_BoundingBoxAttachment_getColor); @@ -10817,6 +11437,16 @@ OLUA_LIB int luaopen_spine_BoundingBoxAttachment(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_BoundingBoxAttachment(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::BoundingBoxAttachment"); + } + return 1; +} OLUA_END_DECLS static int _spine_MeshAttachment_getColor(lua_State *L) @@ -11208,8 +11838,7 @@ static int _spine_MeshAttachment_updateRegion(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_MeshAttachment(lua_State *L) +static int _spine_MeshAttachment(lua_State *L) { oluacls_class(L, "spine.MeshAttachment"); oluacls_func(L, "getColor", _spine_MeshAttachment_getColor); @@ -11249,6 +11878,16 @@ OLUA_LIB int luaopen_spine_MeshAttachment(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_MeshAttachment(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::MeshAttachment"); + } + return 1; +} OLUA_END_DECLS static int _spine_PathAttachment_getColor(lua_State *L) @@ -11375,8 +12014,7 @@ static int _spine_PathAttachment_setConstantSpeed(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_PathAttachment(lua_State *L) +static int _spine_PathAttachment(lua_State *L) { oluacls_class(L, "spine.PathAttachment"); oluacls_func(L, "getColor", _spine_PathAttachment_getColor); @@ -11393,6 +12031,16 @@ OLUA_LIB int luaopen_spine_PathAttachment(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_PathAttachment(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::PathAttachment"); + } + return 1; +} OLUA_END_DECLS static int _spine_PathConstraint_getBones(lua_State *L) @@ -11694,8 +12342,7 @@ static int _spine_PathConstraint_setToSetupPose(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_PathConstraint(lua_State *L) +static int _spine_PathConstraint(lua_State *L) { oluacls_class(L, "spine.PathConstraint"); oluacls_func(L, "getBones", _spine_PathConstraint_getBones); @@ -11727,6 +12374,16 @@ OLUA_LIB int luaopen_spine_PathConstraint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_PathConstraint(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::PathConstraint"); + } + return 1; +} OLUA_END_DECLS static int _spine_PointAttachment_computeWorldPosition(lua_State *L) @@ -11910,8 +12567,7 @@ static int _spine_PointAttachment_setY(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_PointAttachment(lua_State *L) +static int _spine_PointAttachment(lua_State *L) { oluacls_class(L, "spine.PointAttachment"); oluacls_func(L, "computeWorldPosition", _spine_PointAttachment_computeWorldPosition); @@ -11931,6 +12587,16 @@ OLUA_LIB int luaopen_spine_PointAttachment(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_PointAttachment(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::PointAttachment"); + } + return 1; +} OLUA_END_DECLS static int _spine_RegionAttachment_computeWorldVertices$1(lua_State *L) @@ -12501,8 +13167,7 @@ static int _spine_RegionAttachment_updateRegion(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_RegionAttachment(lua_State *L) +static int _spine_RegionAttachment(lua_State *L) { oluacls_class(L, "spine.RegionAttachment"); oluacls_func(L, "computeWorldVertices", _spine_RegionAttachment_computeWorldVertices); @@ -12547,6 +13212,16 @@ OLUA_LIB int luaopen_spine_RegionAttachment(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_RegionAttachment(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::RegionAttachment"); + } + return 1; +} OLUA_END_DECLS static int _spine_TrackEntry_getAlpha(lua_State *L) @@ -13213,16 +13888,16 @@ static int _spine_TrackEntry_setListener(lua_State *L) std::string cb_tag = "Listener"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](spine::AnimationState *arg1, spine::EventType arg2, spine::TrackEntry *arg3, spine::Event *arg4) { + arg1 = [cb_store, cb_name, cb_ctx](spine::AnimationState *cb_arg1, spine::EventType cb_arg2, spine::TrackEntry *cb_arg3, spine::Event *cb_arg4) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "spine.AnimationState"); - olua_push_enum(L, arg2); - olua_push_object(L, arg3, "spine.TrackEntry"); - olua_push_object(L, arg4, "spine.Event"); + olua_push_object(L, cb_arg1, "spine.AnimationState"); + olua_push_enum(L, cb_arg2); + olua_push_object(L, cb_arg3, "spine.TrackEntry"); + olua_push_object(L, cb_arg4, "spine.Event"); olua_callback(L, cb_store, cb_name.c_str(), 4); @@ -13496,8 +14171,7 @@ static int _spine_TrackEntry_wasApplied(lua_State *L) return num_ret; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_TrackEntry(lua_State *L) +static int _spine_TrackEntry(lua_State *L) { oluacls_class(L, "spine.TrackEntry"); oluacls_func(L, "getAlpha", _spine_TrackEntry_getAlpha); @@ -13582,6 +14256,16 @@ OLUA_LIB int luaopen_spine_TrackEntry(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_TrackEntry(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::TrackEntry"); + } + return 1; +} OLUA_END_DECLS static int _spine_SkeletonData___gc(lua_State *L) @@ -13638,14 +14322,14 @@ static int _spine_SkeletonData_create(lua_State *L) { int num_args = lua_gettop(L); - if (num_args == 2) { + if (num_args == 1) { // if ((olua_is_string(L, 1)) && (olua_is_string(L, 2))) { // @extend(spine::SkeletonDataExtend) static olua_Return create(lua_State *L, const char *skelPath, const char *atlasPath) return _spine_SkeletonData_create$2(L); // } } - if (num_args == 3) { + if (num_args == 2) { // if ((olua_is_string(L, 1)) && (olua_is_string(L, 2)) && (olua_is_number(L, 3))) { // @extend(spine::SkeletonDataExtend) static olua_Return create(lua_State *L, const char *skelPath, const char *atlasPath, @optional float scale) return _spine_SkeletonData_create$1(L); @@ -14431,8 +15115,7 @@ static int _spine_SkeletonData_setY(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_SkeletonData(lua_State *L) +static int _spine_SkeletonData(lua_State *L) { oluacls_class(L, "spine.SkeletonData"); oluacls_func(L, "__gc", _spine_SkeletonData___gc); @@ -14504,6 +15187,16 @@ OLUA_LIB int luaopen_spine_SkeletonData(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_SkeletonData(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::SkeletonData"); + } + return 1; +} OLUA_END_DECLS static int _spine_Skeleton_findBone(lua_State *L) @@ -15394,8 +16087,7 @@ static int _spine_Skeleton_updateWorldTransform(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_Skeleton(lua_State *L) +static int _spine_Skeleton(lua_State *L) { oluacls_class(L, "spine.Skeleton"); oluacls_func(L, "findBone", _spine_Skeleton_findBone); @@ -15460,6 +16152,16 @@ OLUA_LIB int luaopen_spine_Skeleton(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_Skeleton(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::Skeleton"); + } + return 1; +} OLUA_END_DECLS static int _spine_SkeletonRenderer_as(lua_State *L) @@ -16755,13 +17457,13 @@ static int _spine_SkeletonRenderer_setBlendFunc(lua_State *L) olua_startinvoke(L); spine::SkeletonRenderer *self = nullptr; - cocos2d::BlendFunc arg1; /** blendFunc */ + cocos2d::BlendFunc *arg1; /** blendFunc */ olua_to_object(L, 1, &self, "spine.SkeletonRenderer"); olua_check_object(L, 2, &arg1, "cc.BlendFunc"); // void setBlendFunc(const cocos2d::BlendFunc &blendFunc) - self->setBlendFunc(arg1); + self->setBlendFunc(*arg1); olua_endinvoke(L); @@ -17019,8 +17721,7 @@ static int _spine_SkeletonRenderer_updateWorldTransform(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_SkeletonRenderer(lua_State *L) +static int _spine_SkeletonRenderer(lua_State *L) { oluacls_class(L, "spine.SkeletonRenderer"); oluacls_func(L, "as", _spine_SkeletonRenderer_as); @@ -17070,6 +17771,16 @@ OLUA_LIB int luaopen_spine_SkeletonRenderer(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_SkeletonRenderer(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::SkeletonRenderer"); + } + return 1; +} OLUA_END_DECLS static int _spine_StartListener___call(lua_State *L) @@ -17084,14 +17795,23 @@ static int _spine_StartListener___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_StartListener(lua_State *L) +static int _spine_StartListener(lua_State *L) { oluacls_class(L, "spine.StartListener"); oluacls_func(L, "__call", _spine_StartListener___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_StartListener(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::StartListener"); + } + return 1; +} OLUA_END_DECLS static int _spine_InterruptListener___call(lua_State *L) @@ -17106,14 +17826,23 @@ static int _spine_InterruptListener___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_InterruptListener(lua_State *L) +static int _spine_InterruptListener(lua_State *L) { oluacls_class(L, "spine.InterruptListener"); oluacls_func(L, "__call", _spine_InterruptListener___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_InterruptListener(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::InterruptListener"); + } + return 1; +} OLUA_END_DECLS static int _spine_EndListener___call(lua_State *L) @@ -17128,14 +17857,23 @@ static int _spine_EndListener___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_EndListener(lua_State *L) +static int _spine_EndListener(lua_State *L) { oluacls_class(L, "spine.EndListener"); oluacls_func(L, "__call", _spine_EndListener___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_EndListener(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::EndListener"); + } + return 1; +} OLUA_END_DECLS static int _spine_DisposeListener___call(lua_State *L) @@ -17150,14 +17888,23 @@ static int _spine_DisposeListener___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_DisposeListener(lua_State *L) +static int _spine_DisposeListener(lua_State *L) { oluacls_class(L, "spine.DisposeListener"); oluacls_func(L, "__call", _spine_DisposeListener___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_DisposeListener(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::DisposeListener"); + } + return 1; +} OLUA_END_DECLS static int _spine_CompleteListener___call(lua_State *L) @@ -17172,14 +17919,23 @@ static int _spine_CompleteListener___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_CompleteListener(lua_State *L) +static int _spine_CompleteListener(lua_State *L) { oluacls_class(L, "spine.CompleteListener"); oluacls_func(L, "__call", _spine_CompleteListener___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_CompleteListener(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::CompleteListener"); + } + return 1; +} OLUA_END_DECLS static int _spine_EventListener___call(lua_State *L) @@ -17194,14 +17950,23 @@ static int _spine_EventListener___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_EventListener(lua_State *L) +static int _spine_EventListener(lua_State *L) { oluacls_class(L, "spine.EventListener"); oluacls_func(L, "__call", _spine_EventListener___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_EventListener(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::EventListener"); + } + return 1; +} OLUA_END_DECLS static int _spine_UpdateWorldTransformsListener___call(lua_State *L) @@ -17216,14 +17981,23 @@ static int _spine_UpdateWorldTransformsListener___call(lua_State *L) return 1; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_UpdateWorldTransformsListener(lua_State *L) +static int _spine_UpdateWorldTransformsListener(lua_State *L) { oluacls_class(L, "spine.UpdateWorldTransformsListener"); oluacls_func(L, "__call", _spine_UpdateWorldTransformsListener___call); return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_UpdateWorldTransformsListener(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::UpdateWorldTransformsListener"); + } + return 1; +} OLUA_END_DECLS static int _spine_SkeletonAnimation_addAnimation$1(lua_State *L) @@ -17969,13 +18743,13 @@ static int _spine_SkeletonAnimation_setCompleteListener(lua_State *L) std::string cb_tag = "CompleteListener"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "spine.TrackEntry"); + olua_push_object(L, cb_arg1, "spine.TrackEntry"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -18005,13 +18779,13 @@ static int _spine_SkeletonAnimation_setDisposeListener(lua_State *L) std::string cb_tag = "DisposeListener"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "spine.TrackEntry"); + olua_push_object(L, cb_arg1, "spine.TrackEntry"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -18083,13 +18857,13 @@ static int _spine_SkeletonAnimation_setEndListener(lua_State *L) std::string cb_tag = "EndListener"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "spine.TrackEntry"); + olua_push_object(L, cb_arg1, "spine.TrackEntry"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -18119,14 +18893,14 @@ static int _spine_SkeletonAnimation_setEventListener(lua_State *L) std::string cb_tag = "EventListener"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *arg1, spine::Event *arg2) { + arg1 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *cb_arg1, spine::Event *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "spine.TrackEntry"); - olua_push_object(L, arg2, "spine.Event"); + olua_push_object(L, cb_arg1, "spine.TrackEntry"); + olua_push_object(L, cb_arg2, "spine.Event"); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -18156,13 +18930,13 @@ static int _spine_SkeletonAnimation_setInterruptListener(lua_State *L) std::string cb_tag = "InterruptListener"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "spine.TrackEntry"); + olua_push_object(L, cb_arg1, "spine.TrackEntry"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -18214,7 +18988,7 @@ static int _spine_SkeletonAnimation_setPostUpdateWorldTransformsListener(lua_Sta std::string cb_tag = "PostUpdateWorldTransformsListener"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](spine::SkeletonAnimation *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](spine::SkeletonAnimation *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -18222,7 +18996,7 @@ static int _spine_SkeletonAnimation_setPostUpdateWorldTransformsListener(lua_Sta int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "spine.SkeletonAnimation"); + olua_push_object(L, cb_arg1, "spine.SkeletonAnimation"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -18255,7 +19029,7 @@ static int _spine_SkeletonAnimation_setPreUpdateWorldTransformsListener(lua_Stat std::string cb_tag = "PreUpdateWorldTransformsListener"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](spine::SkeletonAnimation *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](spine::SkeletonAnimation *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -18263,7 +19037,7 @@ static int _spine_SkeletonAnimation_setPreUpdateWorldTransformsListener(lua_Stat int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_object(L, arg1, "spine.SkeletonAnimation"); + olua_push_object(L, cb_arg1, "spine.SkeletonAnimation"); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -18296,13 +19070,13 @@ static int _spine_SkeletonAnimation_setStartListener(lua_State *L) std::string cb_tag = "StartListener"; std::string cb_name = olua_setcallback(L, cb_store, 2, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *arg1) { + arg1 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "spine.TrackEntry"); + olua_push_object(L, cb_arg1, "spine.TrackEntry"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -18334,13 +19108,13 @@ static int _spine_SkeletonAnimation_setTrackCompleteListener(lua_State *L) std::string cb_tag = "TrackCompleteListener"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "spine.TrackEntry"); + olua_push_object(L, cb_arg1, "spine.TrackEntry"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -18372,13 +19146,13 @@ static int _spine_SkeletonAnimation_setTrackDisposeListener(lua_State *L) std::string cb_tag = "TrackDisposeListener"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "spine.TrackEntry"); + olua_push_object(L, cb_arg1, "spine.TrackEntry"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -18410,13 +19184,13 @@ static int _spine_SkeletonAnimation_setTrackEndListener(lua_State *L) std::string cb_tag = "TrackEndListener"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "spine.TrackEntry"); + olua_push_object(L, cb_arg1, "spine.TrackEntry"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -18448,14 +19222,14 @@ static int _spine_SkeletonAnimation_setTrackEventListener(lua_State *L) std::string cb_tag = "TrackEventListener"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *arg1, spine::Event *arg2) { + arg2 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *cb_arg1, spine::Event *cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "spine.TrackEntry"); - olua_push_object(L, arg2, "spine.Event"); + olua_push_object(L, cb_arg1, "spine.TrackEntry"); + olua_push_object(L, cb_arg2, "spine.Event"); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -18487,13 +19261,13 @@ static int _spine_SkeletonAnimation_setTrackInterruptListener(lua_State *L) std::string cb_tag = "TrackInterruptListener"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "spine.TrackEntry"); + olua_push_object(L, cb_arg1, "spine.TrackEntry"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -18525,13 +19299,13 @@ static int _spine_SkeletonAnimation_setTrackStartListener(lua_State *L) std::string cb_tag = "TrackStartListener"; std::string cb_name = olua_setcallback(L, cb_store, 3, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg2 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *arg1) { + arg2 = [cb_store, cb_name, cb_ctx](spine::TrackEntry *cb_arg1) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); if (olua_contextequal(L, cb_ctx)) { int top = lua_gettop(L); - olua_push_object(L, arg1, "spine.TrackEntry"); + olua_push_object(L, cb_arg1, "spine.TrackEntry"); olua_callback(L, cb_store, cb_name.c_str(), 1); @@ -18565,8 +19339,7 @@ static int _spine_SkeletonAnimation_setUpdateOnlyIfVisible(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_spine_SkeletonAnimation(lua_State *L) +static int _spine_SkeletonAnimation(lua_State *L) { oluacls_class(L, "spine.SkeletonAnimation"); oluacls_func(L, "addAnimation", _spine_SkeletonAnimation_addAnimation); @@ -18607,98 +19380,108 @@ OLUA_LIB int luaopen_spine_SkeletonAnimation(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_spine_SkeletonAnimation(lua_State *L) +{ + olua_require(L, "spine", luaopen_spine); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: spine::SkeletonAnimation"); + } + return 1; +} OLUA_END_DECLS OLUA_BEGIN_DECLS OLUA_LIB int luaopen_spine(lua_State *L) { - olua_require(L, "spine.EventType", luaopen_spine_EventType); - olua_require(L, "spine.AttachmentType", luaopen_spine_AttachmentType); - olua_require(L, "spine.BlendMode", luaopen_spine_BlendMode); - olua_require(L, "spine.PositionMode", luaopen_spine_PositionMode); - olua_require(L, "spine.SpacingMode", luaopen_spine_SpacingMode); - olua_require(L, "spine.RotateMode", luaopen_spine_RotateMode); - olua_require(L, "spine.MixBlend", luaopen_spine_MixBlend); - olua_require(L, "spine.MixDirection", luaopen_spine_MixDirection); - olua_require(L, "spine.Physics", luaopen_spine_Physics); - olua_require(L, "spine.Inherit", luaopen_spine_Inherit); - olua_require(L, "spine.SpineObject", luaopen_spine_SpineObject); - olua_require(L, "spine.Event", luaopen_spine_Event); - olua_require(L, "spine.EventData", luaopen_spine_EventData); - olua_require(L, "spine.Updatable", luaopen_spine_Updatable); - olua_require(L, "spine.AnimationStateListener", luaopen_spine_AnimationStateListener); - olua_require(L, "spine.AnimationState", luaopen_spine_AnimationState); - olua_require(L, "spine.AnimationStateData", luaopen_spine_AnimationStateData); - olua_require(L, "spine.Animation", luaopen_spine_Animation); - olua_require(L, "spine.Sequence", luaopen_spine_Sequence); - olua_require(L, "spine.SequenceMode", luaopen_spine_SequenceMode); - olua_require(L, "spine.TextureRegion", luaopen_spine_TextureRegion); - olua_require(L, "spine.ConstraintData", luaopen_spine_ConstraintData); - olua_require(L, "spine.IkConstraintData", luaopen_spine_IkConstraintData); - olua_require(L, "spine.BoneData", luaopen_spine_BoneData); - olua_require(L, "spine.SlotData", luaopen_spine_SlotData); - olua_require(L, "spine.IkConstraint", luaopen_spine_IkConstraint); - olua_require(L, "spine.TransformConstraint", luaopen_spine_TransformConstraint); - olua_require(L, "spine.TransformConstraintData", luaopen_spine_TransformConstraintData); - olua_require(L, "spine.PathConstraintData", luaopen_spine_PathConstraintData); - olua_require(L, "spine.SkeletonBounds", luaopen_spine_SkeletonBounds); - olua_require(L, "spine.SkeletonClipping", luaopen_spine_SkeletonClipping); - olua_require(L, "spine.PhysicsConstraint", luaopen_spine_PhysicsConstraint); - olua_require(L, "spine.PhysicsConstraintData", luaopen_spine_PhysicsConstraintData); - olua_require(L, "spine.Timeline", luaopen_spine_Timeline); - olua_require(L, "spine.CurveTimeline", luaopen_spine_CurveTimeline); - olua_require(L, "spine.CurveTimeline1", luaopen_spine_CurveTimeline1); - olua_require(L, "spine.CurveTimeline2", luaopen_spine_CurveTimeline2); - olua_require(L, "spine.AttachmentTimeline", luaopen_spine_AttachmentTimeline); - olua_require(L, "spine.RGBATimeline", luaopen_spine_RGBATimeline); - olua_require(L, "spine.RGBTimeline", luaopen_spine_RGBTimeline); - olua_require(L, "spine.AlphaTimeline", luaopen_spine_AlphaTimeline); - olua_require(L, "spine.RGBA2Timeline", luaopen_spine_RGBA2Timeline); - olua_require(L, "spine.RGB2Timeline", luaopen_spine_RGB2Timeline); - olua_require(L, "spine.DeformTimeline", luaopen_spine_DeformTimeline); - olua_require(L, "spine.DrawOrderTimeline", luaopen_spine_DrawOrderTimeline); - olua_require(L, "spine.EventTimeline", luaopen_spine_EventTimeline); - olua_require(L, "spine.ScaleXTimeline", luaopen_spine_ScaleXTimeline); - olua_require(L, "spine.ScaleYTimeline", luaopen_spine_ScaleYTimeline); - olua_require(L, "spine.ShearXTimeline", luaopen_spine_ShearXTimeline); - olua_require(L, "spine.ShearYTimeline", luaopen_spine_ShearYTimeline); - olua_require(L, "spine.TranslateXTimeline", luaopen_spine_TranslateXTimeline); - olua_require(L, "spine.TranslateYTimeline", luaopen_spine_TranslateYTimeline); - olua_require(L, "spine.IkConstraintTimeline", luaopen_spine_IkConstraintTimeline); - olua_require(L, "spine.PathConstraintMixTimeline", luaopen_spine_PathConstraintMixTimeline); - olua_require(L, "spine.PathConstraintPositionTimeline", luaopen_spine_PathConstraintPositionTimeline); - olua_require(L, "spine.PathConstraintSpacingTimeline", luaopen_spine_PathConstraintSpacingTimeline); - olua_require(L, "spine.TranslateTimeline", luaopen_spine_TranslateTimeline); - olua_require(L, "spine.ShearTimeline", luaopen_spine_ShearTimeline); - olua_require(L, "spine.TransformConstraintTimeline", luaopen_spine_TransformConstraintTimeline); - olua_require(L, "spine.ScaleTimeline", luaopen_spine_ScaleTimeline); - olua_require(L, "spine.RotateTimeline", luaopen_spine_RotateTimeline); - olua_require(L, "spine.Polygon", luaopen_spine_Polygon); - olua_require(L, "spine.Skin", luaopen_spine_Skin); - olua_require(L, "spine.Atlas", luaopen_spine_Atlas); - olua_require(L, "spine.Bone", luaopen_spine_Bone); - olua_require(L, "spine.Slot", luaopen_spine_Slot); - olua_require(L, "spine.Attachment", luaopen_spine_Attachment); - olua_require(L, "spine.VertexAttachment", luaopen_spine_VertexAttachment); - olua_require(L, "spine.ClippingAttachment", luaopen_spine_ClippingAttachment); - olua_require(L, "spine.BoundingBoxAttachment", luaopen_spine_BoundingBoxAttachment); - olua_require(L, "spine.MeshAttachment", luaopen_spine_MeshAttachment); - olua_require(L, "spine.PathAttachment", luaopen_spine_PathAttachment); - olua_require(L, "spine.PathConstraint", luaopen_spine_PathConstraint); - olua_require(L, "spine.PointAttachment", luaopen_spine_PointAttachment); - olua_require(L, "spine.RegionAttachment", luaopen_spine_RegionAttachment); - olua_require(L, "spine.TrackEntry", luaopen_spine_TrackEntry); - olua_require(L, "spine.SkeletonData", luaopen_spine_SkeletonData); - olua_require(L, "spine.Skeleton", luaopen_spine_Skeleton); - olua_require(L, "spine.SkeletonRenderer", luaopen_spine_SkeletonRenderer); - olua_require(L, "spine.StartListener", luaopen_spine_StartListener); - olua_require(L, "spine.InterruptListener", luaopen_spine_InterruptListener); - olua_require(L, "spine.EndListener", luaopen_spine_EndListener); - olua_require(L, "spine.DisposeListener", luaopen_spine_DisposeListener); - olua_require(L, "spine.CompleteListener", luaopen_spine_CompleteListener); - olua_require(L, "spine.EventListener", luaopen_spine_EventListener); - olua_require(L, "spine.UpdateWorldTransformsListener", luaopen_spine_UpdateWorldTransformsListener); - olua_require(L, "spine.SkeletonAnimation", luaopen_spine_SkeletonAnimation); + olua_require(L, "spine.EventType", _spine_EventType); + olua_require(L, "spine.AttachmentType", _spine_AttachmentType); + olua_require(L, "spine.BlendMode", _spine_BlendMode); + olua_require(L, "spine.PositionMode", _spine_PositionMode); + olua_require(L, "spine.SpacingMode", _spine_SpacingMode); + olua_require(L, "spine.RotateMode", _spine_RotateMode); + olua_require(L, "spine.MixBlend", _spine_MixBlend); + olua_require(L, "spine.MixDirection", _spine_MixDirection); + olua_require(L, "spine.Physics", _spine_Physics); + olua_require(L, "spine.Inherit", _spine_Inherit); + olua_require(L, "spine.SpineObject", _spine_SpineObject); + olua_require(L, "spine.Event", _spine_Event); + olua_require(L, "spine.EventData", _spine_EventData); + olua_require(L, "spine.Updatable", _spine_Updatable); + olua_require(L, "spine.AnimationStateListener", _spine_AnimationStateListener); + olua_require(L, "spine.AnimationState", _spine_AnimationState); + olua_require(L, "spine.AnimationStateData", _spine_AnimationStateData); + olua_require(L, "spine.Animation", _spine_Animation); + olua_require(L, "spine.Sequence", _spine_Sequence); + olua_require(L, "spine.SequenceMode", _spine_SequenceMode); + olua_require(L, "spine.TextureRegion", _spine_TextureRegion); + olua_require(L, "spine.ConstraintData", _spine_ConstraintData); + olua_require(L, "spine.IkConstraintData", _spine_IkConstraintData); + olua_require(L, "spine.BoneData", _spine_BoneData); + olua_require(L, "spine.SlotData", _spine_SlotData); + olua_require(L, "spine.IkConstraint", _spine_IkConstraint); + olua_require(L, "spine.TransformConstraint", _spine_TransformConstraint); + olua_require(L, "spine.TransformConstraintData", _spine_TransformConstraintData); + olua_require(L, "spine.PathConstraintData", _spine_PathConstraintData); + olua_require(L, "spine.SkeletonBounds", _spine_SkeletonBounds); + olua_require(L, "spine.SkeletonClipping", _spine_SkeletonClipping); + olua_require(L, "spine.PhysicsConstraint", _spine_PhysicsConstraint); + olua_require(L, "spine.PhysicsConstraintData", _spine_PhysicsConstraintData); + olua_require(L, "spine.Timeline", _spine_Timeline); + olua_require(L, "spine.CurveTimeline", _spine_CurveTimeline); + olua_require(L, "spine.CurveTimeline1", _spine_CurveTimeline1); + olua_require(L, "spine.CurveTimeline2", _spine_CurveTimeline2); + olua_require(L, "spine.AttachmentTimeline", _spine_AttachmentTimeline); + olua_require(L, "spine.RGBATimeline", _spine_RGBATimeline); + olua_require(L, "spine.RGBTimeline", _spine_RGBTimeline); + olua_require(L, "spine.AlphaTimeline", _spine_AlphaTimeline); + olua_require(L, "spine.RGBA2Timeline", _spine_RGBA2Timeline); + olua_require(L, "spine.RGB2Timeline", _spine_RGB2Timeline); + olua_require(L, "spine.DeformTimeline", _spine_DeformTimeline); + olua_require(L, "spine.DrawOrderTimeline", _spine_DrawOrderTimeline); + olua_require(L, "spine.EventTimeline", _spine_EventTimeline); + olua_require(L, "spine.ScaleXTimeline", _spine_ScaleXTimeline); + olua_require(L, "spine.ScaleYTimeline", _spine_ScaleYTimeline); + olua_require(L, "spine.ShearXTimeline", _spine_ShearXTimeline); + olua_require(L, "spine.ShearYTimeline", _spine_ShearYTimeline); + olua_require(L, "spine.TranslateXTimeline", _spine_TranslateXTimeline); + olua_require(L, "spine.TranslateYTimeline", _spine_TranslateYTimeline); + olua_require(L, "spine.IkConstraintTimeline", _spine_IkConstraintTimeline); + olua_require(L, "spine.PathConstraintMixTimeline", _spine_PathConstraintMixTimeline); + olua_require(L, "spine.PathConstraintPositionTimeline", _spine_PathConstraintPositionTimeline); + olua_require(L, "spine.PathConstraintSpacingTimeline", _spine_PathConstraintSpacingTimeline); + olua_require(L, "spine.TranslateTimeline", _spine_TranslateTimeline); + olua_require(L, "spine.ShearTimeline", _spine_ShearTimeline); + olua_require(L, "spine.TransformConstraintTimeline", _spine_TransformConstraintTimeline); + olua_require(L, "spine.ScaleTimeline", _spine_ScaleTimeline); + olua_require(L, "spine.RotateTimeline", _spine_RotateTimeline); + olua_require(L, "spine.Polygon", _spine_Polygon); + olua_require(L, "spine.Skin", _spine_Skin); + olua_require(L, "spine.Atlas", _spine_Atlas); + olua_require(L, "spine.Bone", _spine_Bone); + olua_require(L, "spine.Slot", _spine_Slot); + olua_require(L, "spine.Attachment", _spine_Attachment); + olua_require(L, "spine.VertexAttachment", _spine_VertexAttachment); + olua_require(L, "spine.ClippingAttachment", _spine_ClippingAttachment); + olua_require(L, "spine.BoundingBoxAttachment", _spine_BoundingBoxAttachment); + olua_require(L, "spine.MeshAttachment", _spine_MeshAttachment); + olua_require(L, "spine.PathAttachment", _spine_PathAttachment); + olua_require(L, "spine.PathConstraint", _spine_PathConstraint); + olua_require(L, "spine.PointAttachment", _spine_PointAttachment); + olua_require(L, "spine.RegionAttachment", _spine_RegionAttachment); + olua_require(L, "spine.TrackEntry", _spine_TrackEntry); + olua_require(L, "spine.SkeletonData", _spine_SkeletonData); + olua_require(L, "spine.Skeleton", _spine_Skeleton); + olua_require(L, "spine.SkeletonRenderer", _spine_SkeletonRenderer); + olua_require(L, "spine.StartListener", _spine_StartListener); + olua_require(L, "spine.InterruptListener", _spine_InterruptListener); + olua_require(L, "spine.EndListener", _spine_EndListener); + olua_require(L, "spine.DisposeListener", _spine_DisposeListener); + olua_require(L, "spine.CompleteListener", _spine_CompleteListener); + olua_require(L, "spine.EventListener", _spine_EventListener); + olua_require(L, "spine.UpdateWorldTransformsListener", _spine_UpdateWorldTransformsListener); + olua_require(L, "spine.SkeletonAnimation", _spine_SkeletonAnimation); cclua::runtime::registerFeature("spine", true); diff --git a/frameworks/cclua/src/lua-bindings/lua_spine.h b/frameworks/cclua/src/lua-bindings/lua_spine.h index c007922e..0cfdb11c 100644 --- a/frameworks/cclua/src/lua-bindings/lua_spine.h +++ b/frameworks/cclua/src/lua-bindings/lua_spine.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_SPINE_H__ #define __AUTO_GEN_LUA_SPINE_H__ diff --git a/frameworks/cclua/src/lua-bindings/lua_types.cpp b/frameworks/cclua/src/lua-bindings/lua_types.cpp index cca662a7..6b94704e 100644 --- a/frameworks/cclua/src/lua-bindings/lua_types.cpp +++ b/frameworks/cclua/src/lua-bindings/lua_types.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_types.h" #include "cclua/olua-2dx.h" @@ -467,8 +467,7 @@ static int _olua_bool_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_bool(lua_State *L) +static int _olua_bool(lua_State *L) { oluacls_class(L, "olua.bool"); oluacls_func(L, "__gc", _olua_bool___gc); @@ -488,6 +487,16 @@ OLUA_LIB int luaopen_olua_bool(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_bool(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_bool"); + } + return 1; +} OLUA_END_DECLS static int _olua_string___gc(lua_State *L) @@ -953,8 +962,7 @@ static int _olua_string_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_string(lua_State *L) +static int _olua_string(lua_State *L) { oluacls_class(L, "olua.string"); oluacls_func(L, "__gc", _olua_string___gc); @@ -974,6 +982,16 @@ OLUA_LIB int luaopen_olua_string(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_string(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_string"); + } + return 1; +} OLUA_END_DECLS static int _olua_int8___gc(lua_State *L) @@ -1439,8 +1457,7 @@ static int _olua_int8_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_int8(lua_State *L) +static int _olua_int8(lua_State *L) { oluacls_class(L, "olua.int8"); oluacls_func(L, "__gc", _olua_int8___gc); @@ -1460,6 +1477,16 @@ OLUA_LIB int luaopen_olua_int8(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_int8(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_int8"); + } + return 1; +} OLUA_END_DECLS static int _olua_int16___gc(lua_State *L) @@ -1925,8 +1952,7 @@ static int _olua_int16_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_int16(lua_State *L) +static int _olua_int16(lua_State *L) { oluacls_class(L, "olua.int16"); oluacls_func(L, "__gc", _olua_int16___gc); @@ -1946,6 +1972,16 @@ OLUA_LIB int luaopen_olua_int16(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_int16(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_int16"); + } + return 1; +} OLUA_END_DECLS static int _olua_int32___gc(lua_State *L) @@ -2411,8 +2447,7 @@ static int _olua_int32_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_int32(lua_State *L) +static int _olua_int32(lua_State *L) { oluacls_class(L, "olua.int32"); oluacls_func(L, "__gc", _olua_int32___gc); @@ -2432,6 +2467,16 @@ OLUA_LIB int luaopen_olua_int32(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_int32(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_int32"); + } + return 1; +} OLUA_END_DECLS static int _olua_int64___gc(lua_State *L) @@ -2897,8 +2942,7 @@ static int _olua_int64_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_int64(lua_State *L) +static int _olua_int64(lua_State *L) { oluacls_class(L, "olua.int64"); oluacls_func(L, "__gc", _olua_int64___gc); @@ -2918,6 +2962,16 @@ OLUA_LIB int luaopen_olua_int64(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_int64(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_int64"); + } + return 1; +} OLUA_END_DECLS static int _olua_uint8___gc(lua_State *L) @@ -3383,8 +3437,7 @@ static int _olua_uint8_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_uint8(lua_State *L) +static int _olua_uint8(lua_State *L) { oluacls_class(L, "olua.uint8"); oluacls_func(L, "__gc", _olua_uint8___gc); @@ -3404,6 +3457,16 @@ OLUA_LIB int luaopen_olua_uint8(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_uint8(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_uint8"); + } + return 1; +} OLUA_END_DECLS static int _olua_uint16___gc(lua_State *L) @@ -3869,8 +3932,7 @@ static int _olua_uint16_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_uint16(lua_State *L) +static int _olua_uint16(lua_State *L) { oluacls_class(L, "olua.uint16"); oluacls_func(L, "__gc", _olua_uint16___gc); @@ -3890,6 +3952,16 @@ OLUA_LIB int luaopen_olua_uint16(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_uint16(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_uint16"); + } + return 1; +} OLUA_END_DECLS static int _olua_uint32___gc(lua_State *L) @@ -4355,8 +4427,7 @@ static int _olua_uint32_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_uint32(lua_State *L) +static int _olua_uint32(lua_State *L) { oluacls_class(L, "olua.uint32"); oluacls_func(L, "__gc", _olua_uint32___gc); @@ -4376,6 +4447,16 @@ OLUA_LIB int luaopen_olua_uint32(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_uint32(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_uint32"); + } + return 1; +} OLUA_END_DECLS static int _olua_uint64___gc(lua_State *L) @@ -4841,8 +4922,7 @@ static int _olua_uint64_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_uint64(lua_State *L) +static int _olua_uint64(lua_State *L) { oluacls_class(L, "olua.uint64"); oluacls_func(L, "__gc", _olua_uint64___gc); @@ -4862,6 +4942,16 @@ OLUA_LIB int luaopen_olua_uint64(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_uint64(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_uint64"); + } + return 1; +} OLUA_END_DECLS static int _olua_char___gc(lua_State *L) @@ -5327,8 +5417,7 @@ static int _olua_char_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_char(lua_State *L) +static int _olua_char(lua_State *L) { oluacls_class(L, "olua.char"); oluacls_func(L, "__gc", _olua_char___gc); @@ -5348,6 +5437,16 @@ OLUA_LIB int luaopen_olua_char(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_char(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_char"); + } + return 1; +} OLUA_END_DECLS static int _olua_short___gc(lua_State *L) @@ -5813,8 +5912,7 @@ static int _olua_short_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_short(lua_State *L) +static int _olua_short(lua_State *L) { oluacls_class(L, "olua.short"); oluacls_func(L, "__gc", _olua_short___gc); @@ -5834,6 +5932,16 @@ OLUA_LIB int luaopen_olua_short(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_short(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_short"); + } + return 1; +} OLUA_END_DECLS static int _olua_int___gc(lua_State *L) @@ -6299,8 +6407,7 @@ static int _olua_int_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_int(lua_State *L) +static int _olua_int(lua_State *L) { oluacls_class(L, "olua.int"); oluacls_func(L, "__gc", _olua_int___gc); @@ -6320,6 +6427,16 @@ OLUA_LIB int luaopen_olua_int(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_int(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_int"); + } + return 1; +} OLUA_END_DECLS static int _olua_long___gc(lua_State *L) @@ -6785,8 +6902,7 @@ static int _olua_long_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_long(lua_State *L) +static int _olua_long(lua_State *L) { oluacls_class(L, "olua.long"); oluacls_func(L, "__gc", _olua_long___gc); @@ -6806,6 +6922,16 @@ OLUA_LIB int luaopen_olua_long(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_long(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_long"); + } + return 1; +} OLUA_END_DECLS static int _olua_llong___gc(lua_State *L) @@ -7271,8 +7397,7 @@ static int _olua_llong_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_llong(lua_State *L) +static int _olua_llong(lua_State *L) { oluacls_class(L, "olua.llong"); oluacls_func(L, "__gc", _olua_llong___gc); @@ -7292,6 +7417,16 @@ OLUA_LIB int luaopen_olua_llong(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_llong(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_llong"); + } + return 1; +} OLUA_END_DECLS static int _olua_uchar___gc(lua_State *L) @@ -7757,8 +7892,7 @@ static int _olua_uchar_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_uchar(lua_State *L) +static int _olua_uchar(lua_State *L) { oluacls_class(L, "olua.uchar"); oluacls_func(L, "__gc", _olua_uchar___gc); @@ -7778,6 +7912,16 @@ OLUA_LIB int luaopen_olua_uchar(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_uchar(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_uchar"); + } + return 1; +} OLUA_END_DECLS static int _olua_ushort___gc(lua_State *L) @@ -8243,8 +8387,7 @@ static int _olua_ushort_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_ushort(lua_State *L) +static int _olua_ushort(lua_State *L) { oluacls_class(L, "olua.ushort"); oluacls_func(L, "__gc", _olua_ushort___gc); @@ -8264,6 +8407,16 @@ OLUA_LIB int luaopen_olua_ushort(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_ushort(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_ushort"); + } + return 1; +} OLUA_END_DECLS static int _olua_uint___gc(lua_State *L) @@ -8729,8 +8882,7 @@ static int _olua_uint_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_uint(lua_State *L) +static int _olua_uint(lua_State *L) { oluacls_class(L, "olua.uint"); oluacls_func(L, "__gc", _olua_uint___gc); @@ -8750,6 +8902,16 @@ OLUA_LIB int luaopen_olua_uint(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_uint(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_uint"); + } + return 1; +} OLUA_END_DECLS static int _olua_ulong___gc(lua_State *L) @@ -9215,8 +9377,7 @@ static int _olua_ulong_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_ulong(lua_State *L) +static int _olua_ulong(lua_State *L) { oluacls_class(L, "olua.ulong"); oluacls_func(L, "__gc", _olua_ulong___gc); @@ -9236,6 +9397,16 @@ OLUA_LIB int luaopen_olua_ulong(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_ulong(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_ulong"); + } + return 1; +} OLUA_END_DECLS static int _olua_ullong___gc(lua_State *L) @@ -9701,8 +9872,7 @@ static int _olua_ullong_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_ullong(lua_State *L) +static int _olua_ullong(lua_State *L) { oluacls_class(L, "olua.ullong"); oluacls_func(L, "__gc", _olua_ullong___gc); @@ -9722,6 +9892,16 @@ OLUA_LIB int luaopen_olua_ullong(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_ullong(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_ullong"); + } + return 1; +} OLUA_END_DECLS static int _olua_float___gc(lua_State *L) @@ -10187,8 +10367,7 @@ static int _olua_float_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_float(lua_State *L) +static int _olua_float(lua_State *L) { oluacls_class(L, "olua.float"); oluacls_func(L, "__gc", _olua_float___gc); @@ -10208,6 +10387,16 @@ OLUA_LIB int luaopen_olua_float(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_float(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_float"); + } + return 1; +} OLUA_END_DECLS static int _olua_double___gc(lua_State *L) @@ -10673,8 +10862,7 @@ static int _olua_double_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_double(lua_State *L) +static int _olua_double(lua_State *L) { oluacls_class(L, "olua.double"); oluacls_func(L, "__gc", _olua_double___gc); @@ -10694,6 +10882,16 @@ OLUA_LIB int luaopen_olua_double(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_double(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_double"); + } + return 1; +} OLUA_END_DECLS static int _olua_ldouble___gc(lua_State *L) @@ -11159,8 +11357,7 @@ static int _olua_ldouble_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_ldouble(lua_State *L) +static int _olua_ldouble(lua_State *L) { oluacls_class(L, "olua.ldouble"); oluacls_func(L, "__gc", _olua_ldouble___gc); @@ -11180,6 +11377,16 @@ OLUA_LIB int luaopen_olua_ldouble(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_ldouble(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_ldouble"); + } + return 1; +} OLUA_END_DECLS static int _olua_size_t___gc(lua_State *L) @@ -11645,8 +11852,7 @@ static int _olua_size_t_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_size_t(lua_State *L) +static int _olua_size_t(lua_State *L) { oluacls_class(L, "olua.size_t"); oluacls_func(L, "__gc", _olua_size_t___gc); @@ -11666,6 +11872,16 @@ OLUA_LIB int luaopen_olua_size_t(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_size_t(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_size_t"); + } + return 1; +} OLUA_END_DECLS static int _olua_ssize_t___gc(lua_State *L) @@ -12131,8 +12347,7 @@ static int _olua_ssize_t_value(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_olua_ssize_t(lua_State *L) +static int _olua_ssize_t(lua_State *L) { oluacls_class(L, "olua.ssize_t"); oluacls_func(L, "__gc", _olua_ssize_t___gc); @@ -12152,36 +12367,46 @@ OLUA_LIB int luaopen_olua_ssize_t(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_olua_ssize_t(lua_State *L) +{ + olua_require(L, "types", luaopen_types); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: olua_ssize_t"); + } + return 1; +} OLUA_END_DECLS OLUA_BEGIN_DECLS OLUA_LIB int luaopen_types(lua_State *L) { - olua_require(L, "olua.bool", luaopen_olua_bool); - olua_require(L, "olua.string", luaopen_olua_string); - olua_require(L, "olua.int8", luaopen_olua_int8); - olua_require(L, "olua.int16", luaopen_olua_int16); - olua_require(L, "olua.int32", luaopen_olua_int32); - olua_require(L, "olua.int64", luaopen_olua_int64); - olua_require(L, "olua.uint8", luaopen_olua_uint8); - olua_require(L, "olua.uint16", luaopen_olua_uint16); - olua_require(L, "olua.uint32", luaopen_olua_uint32); - olua_require(L, "olua.uint64", luaopen_olua_uint64); - olua_require(L, "olua.char", luaopen_olua_char); - olua_require(L, "olua.short", luaopen_olua_short); - olua_require(L, "olua.int", luaopen_olua_int); - olua_require(L, "olua.long", luaopen_olua_long); - olua_require(L, "olua.llong", luaopen_olua_llong); - olua_require(L, "olua.uchar", luaopen_olua_uchar); - olua_require(L, "olua.ushort", luaopen_olua_ushort); - olua_require(L, "olua.uint", luaopen_olua_uint); - olua_require(L, "olua.ulong", luaopen_olua_ulong); - olua_require(L, "olua.ullong", luaopen_olua_ullong); - olua_require(L, "olua.float", luaopen_olua_float); - olua_require(L, "olua.double", luaopen_olua_double); - olua_require(L, "olua.ldouble", luaopen_olua_ldouble); - olua_require(L, "olua.size_t", luaopen_olua_size_t); - olua_require(L, "olua.ssize_t", luaopen_olua_ssize_t); + olua_require(L, "olua.bool", _olua_bool); + olua_require(L, "olua.string", _olua_string); + olua_require(L, "olua.int8", _olua_int8); + olua_require(L, "olua.int16", _olua_int16); + olua_require(L, "olua.int32", _olua_int32); + olua_require(L, "olua.int64", _olua_int64); + olua_require(L, "olua.uint8", _olua_uint8); + olua_require(L, "olua.uint16", _olua_uint16); + olua_require(L, "olua.uint32", _olua_uint32); + olua_require(L, "olua.uint64", _olua_uint64); + olua_require(L, "olua.char", _olua_char); + olua_require(L, "olua.short", _olua_short); + olua_require(L, "olua.int", _olua_int); + olua_require(L, "olua.long", _olua_long); + olua_require(L, "olua.llong", _olua_llong); + olua_require(L, "olua.uchar", _olua_uchar); + olua_require(L, "olua.ushort", _olua_ushort); + olua_require(L, "olua.uint", _olua_uint); + olua_require(L, "olua.ulong", _olua_ulong); + olua_require(L, "olua.ullong", _olua_ullong); + olua_require(L, "olua.float", _olua_float); + olua_require(L, "olua.double", _olua_double); + olua_require(L, "olua.ldouble", _olua_ldouble); + olua_require(L, "olua.size_t", _olua_size_t); + olua_require(L, "olua.ssize_t", _olua_ssize_t); return 0; } diff --git a/frameworks/cclua/src/lua-bindings/lua_types.h b/frameworks/cclua/src/lua-bindings/lua_types.h index 24ba6cad..888c7b0c 100644 --- a/frameworks/cclua/src/lua-bindings/lua_types.h +++ b/frameworks/cclua/src/lua-bindings/lua_types.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_TYPES_H__ #define __AUTO_GEN_LUA_TYPES_H__ diff --git a/frameworks/plugins/alipay/lua_alipay.cpp b/frameworks/plugins/alipay/lua_alipay.cpp index 51d57261..202e5cc6 100644 --- a/frameworks/plugins/alipay/lua_alipay.cpp +++ b/frameworks/plugins/alipay/lua_alipay.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_alipay.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -77,7 +77,7 @@ static int _cclua_plugin_alipay_setDispatcher(lua_State *L) std::string cb_tag = "Dispatcher"; std::string cb_name = olua_setcallback(L, cb_store, 1, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::string &arg1, const cocos2d::Value &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](const std::string &cb_arg1, const cocos2d::Value &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -85,8 +85,8 @@ static int _cclua_plugin_alipay_setDispatcher(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_string(L, arg1); - olua_push_cocos2d_Value(L, arg2); + olua_push_string(L, cb_arg1); + olua_push_cocos2d_Value(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -105,8 +105,7 @@ static int _cclua_plugin_alipay_setDispatcher(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_plugin_alipay(lua_State *L) +static int _cclua_plugin_alipay(lua_State *L) { oluacls_class(L, "cclua.plugin.alipay"); oluacls_func(L, "__gc", _cclua_plugin_alipay___gc); @@ -117,6 +116,16 @@ OLUA_LIB int luaopen_cclua_plugin_alipay(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_plugin_alipay(lua_State *L) +{ + olua_require(L, "alipay", luaopen_alipay); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::plugin::alipay"); + } + return 1; +} OLUA_END_DECLS #endif @@ -124,7 +133,7 @@ OLUA_BEGIN_DECLS OLUA_LIB int luaopen_alipay(lua_State *L) { #ifdef CCLUA_BUILD_ALIPAY - olua_require(L, "cclua.plugin.alipay", luaopen_cclua_plugin_alipay); + olua_require(L, "cclua.plugin.alipay", _cclua_plugin_alipay); #endif return 0; diff --git a/frameworks/plugins/alipay/lua_alipay.h b/frameworks/plugins/alipay/lua_alipay.h index aaf5a61c..93d4ed48 100644 --- a/frameworks/plugins/alipay/lua_alipay.h +++ b/frameworks/plugins/alipay/lua_alipay.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_ALIPAY_H__ #define __AUTO_GEN_LUA_ALIPAY_H__ diff --git a/frameworks/plugins/apple/lua_apple.cpp b/frameworks/plugins/apple/lua_apple.cpp index 5a75bb55..a44760be 100644 --- a/frameworks/plugins/apple/lua_apple.cpp +++ b/frameworks/plugins/apple/lua_apple.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_apple.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -252,7 +252,7 @@ static int _cclua_plugin_apple_setDispatcher(lua_State *L) std::string cb_tag = "Dispatcher"; std::string cb_name = olua_setcallback(L, cb_store, 1, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::string &arg1, const cocos2d::Value &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](const std::string &cb_arg1, const cocos2d::Value &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -260,8 +260,8 @@ static int _cclua_plugin_apple_setDispatcher(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_string(L, arg1); - olua_push_cocos2d_Value(L, arg2); + olua_push_string(L, cb_arg1); + olua_push_cocos2d_Value(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -280,8 +280,7 @@ static int _cclua_plugin_apple_setDispatcher(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_plugin_apple(lua_State *L) +static int _cclua_plugin_apple(lua_State *L) { oluacls_class(L, "cclua.plugin.apple"); oluacls_func(L, "__gc", _cclua_plugin_apple___gc); @@ -302,6 +301,16 @@ OLUA_LIB int luaopen_cclua_plugin_apple(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_plugin_apple(lua_State *L) +{ + olua_require(L, "apple", luaopen_apple); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::plugin::apple"); + } + return 1; +} OLUA_END_DECLS #endif @@ -309,7 +318,7 @@ OLUA_BEGIN_DECLS OLUA_LIB int luaopen_apple(lua_State *L) { #ifdef CCLUA_OS_IOS - olua_require(L, "cclua.plugin.apple", luaopen_cclua_plugin_apple); + olua_require(L, "cclua.plugin.apple", _cclua_plugin_apple); #endif return 0; diff --git a/frameworks/plugins/apple/lua_apple.h b/frameworks/plugins/apple/lua_apple.h index f13d079b..5e3365b2 100644 --- a/frameworks/plugins/apple/lua_apple.h +++ b/frameworks/plugins/apple/lua_apple.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_APPLE_H__ #define __AUTO_GEN_LUA_APPLE_H__ diff --git a/frameworks/plugins/huawei/lua_huawei.cpp b/frameworks/plugins/huawei/lua_huawei.cpp index 7462a993..b9edf8e7 100644 --- a/frameworks/plugins/huawei/lua_huawei.cpp +++ b/frameworks/plugins/huawei/lua_huawei.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_huawei.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -141,7 +141,7 @@ static int _cclua_plugin_huawei_setDispatcher(lua_State *L) std::string cb_tag = "Dispatcher"; std::string cb_name = olua_setcallback(L, cb_store, 1, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::string &arg1, const cocos2d::Value &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](const std::string &cb_arg1, const cocos2d::Value &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -149,8 +149,8 @@ static int _cclua_plugin_huawei_setDispatcher(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_string(L, arg1); - olua_push_cocos2d_Value(L, arg2); + olua_push_string(L, cb_arg1); + olua_push_cocos2d_Value(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -169,8 +169,7 @@ static int _cclua_plugin_huawei_setDispatcher(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_plugin_huawei(lua_State *L) +static int _cclua_plugin_huawei(lua_State *L) { oluacls_class(L, "cclua.plugin.huawei"); oluacls_func(L, "__gc", _cclua_plugin_huawei___gc); @@ -185,6 +184,16 @@ OLUA_LIB int luaopen_cclua_plugin_huawei(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_plugin_huawei(lua_State *L) +{ + olua_require(L, "huawei", luaopen_huawei); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::plugin::huawei"); + } + return 1; +} OLUA_END_DECLS #endif @@ -192,7 +201,7 @@ OLUA_BEGIN_DECLS OLUA_LIB int luaopen_huawei(lua_State *L) { #ifdef CCLUA_BUILD_HUAWEI - olua_require(L, "cclua.plugin.huawei", luaopen_cclua_plugin_huawei); + olua_require(L, "cclua.plugin.huawei", _cclua_plugin_huawei); #endif return 0; diff --git a/frameworks/plugins/huawei/lua_huawei.h b/frameworks/plugins/huawei/lua_huawei.h index 54eeda1c..21378e26 100644 --- a/frameworks/plugins/huawei/lua_huawei.h +++ b/frameworks/plugins/huawei/lua_huawei.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_HUAWEI_H__ #define __AUTO_GEN_LUA_HUAWEI_H__ diff --git a/frameworks/plugins/janalytics/lua_janalytics.cpp b/frameworks/plugins/janalytics/lua_janalytics.cpp index 3ad51dc2..d6b12e46 100644 --- a/frameworks/plugins/janalytics/lua_janalytics.cpp +++ b/frameworks/plugins/janalytics/lua_janalytics.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_janalytics.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -7,8 +7,7 @@ #include "janalytics/janalytics.h" #ifdef CCLUA_BUILD_JANALYTICS -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_plugin_janalytics_EventType(lua_State *L) +static int _cclua_plugin_janalytics_EventType(lua_State *L) { oluacls_class(L, "cclua.plugin.janalytics.EventType"); oluacls_func(L, "__index", olua_indexerror); @@ -22,6 +21,16 @@ OLUA_LIB int luaopen_cclua_plugin_janalytics_EventType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_plugin_janalytics_EventType(lua_State *L) +{ + olua_require(L, "janalytics", luaopen_janalytics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::plugin::janalytics::EventType"); + } + return 1; +} OLUA_END_DECLS #endif @@ -178,8 +187,7 @@ static int _cclua_plugin_janalytics_trackEvent(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_plugin_janalytics(lua_State *L) +static int _cclua_plugin_janalytics(lua_State *L) { oluacls_class(L, "cclua.plugin.janalytics"); oluacls_func(L, "__gc", _cclua_plugin_janalytics___gc); @@ -197,6 +205,16 @@ OLUA_LIB int luaopen_cclua_plugin_janalytics(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_plugin_janalytics(lua_State *L) +{ + olua_require(L, "janalytics", luaopen_janalytics); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::plugin::janalytics"); + } + return 1; +} OLUA_END_DECLS #endif @@ -204,8 +222,8 @@ OLUA_BEGIN_DECLS OLUA_LIB int luaopen_janalytics(lua_State *L) { #ifdef CCLUA_BUILD_JANALYTICS - olua_require(L, "cclua.plugin.janalytics.EventType", luaopen_cclua_plugin_janalytics_EventType); - olua_require(L, "cclua.plugin.janalytics", luaopen_cclua_plugin_janalytics); + olua_require(L, "cclua.plugin.janalytics.EventType", _cclua_plugin_janalytics_EventType); + olua_require(L, "cclua.plugin.janalytics", _cclua_plugin_janalytics); #endif return 0; diff --git a/frameworks/plugins/janalytics/lua_janalytics.h b/frameworks/plugins/janalytics/lua_janalytics.h index f4c9cbcb..4fb0288a 100644 --- a/frameworks/plugins/janalytics/lua_janalytics.h +++ b/frameworks/plugins/janalytics/lua_janalytics.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_JANALYTICS_H__ #define __AUTO_GEN_LUA_JANALYTICS_H__ diff --git a/frameworks/plugins/jauth/lua_jauth.cpp b/frameworks/plugins/jauth/lua_jauth.cpp index e99c1ea9..0b598f9b 100644 --- a/frameworks/plugins/jauth/lua_jauth.cpp +++ b/frameworks/plugins/jauth/lua_jauth.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_jauth.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -307,7 +307,7 @@ static int _cclua_plugin_jauth_setDispatcher(lua_State *L) std::string cb_tag = "Dispatcher"; std::string cb_name = olua_setcallback(L, cb_store, 1, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::string &arg1, const cocos2d::Value &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](const std::string &cb_arg1, const cocos2d::Value &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -315,8 +315,8 @@ static int _cclua_plugin_jauth_setDispatcher(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_string(L, arg1); - olua_push_cocos2d_Value(L, arg2); + olua_push_string(L, cb_arg1); + olua_push_cocos2d_Value(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -351,8 +351,7 @@ static int _cclua_plugin_jauth_setSmsIntervalTime(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_plugin_jauth(lua_State *L) +static int _cclua_plugin_jauth(lua_State *L) { oluacls_class(L, "cclua.plugin.jauth"); oluacls_func(L, "__gc", _cclua_plugin_jauth___gc); @@ -377,6 +376,16 @@ OLUA_LIB int luaopen_cclua_plugin_jauth(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_plugin_jauth(lua_State *L) +{ + olua_require(L, "jauth", luaopen_jauth); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::plugin::jauth"); + } + return 1; +} OLUA_END_DECLS #endif @@ -384,7 +393,7 @@ OLUA_BEGIN_DECLS OLUA_LIB int luaopen_jauth(lua_State *L) { #ifdef CCLUA_BUILD_JAUTH - olua_require(L, "cclua.plugin.jauth", luaopen_cclua_plugin_jauth); + olua_require(L, "cclua.plugin.jauth", _cclua_plugin_jauth); #endif return 0; diff --git a/frameworks/plugins/jauth/lua_jauth.h b/frameworks/plugins/jauth/lua_jauth.h index b1bb38db..81cae4da 100644 --- a/frameworks/plugins/jauth/lua_jauth.h +++ b/frameworks/plugins/jauth/lua_jauth.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_JAUTH_H__ #define __AUTO_GEN_LUA_JAUTH_H__ diff --git a/frameworks/plugins/jpush/lua_jpush.cpp b/frameworks/plugins/jpush/lua_jpush.cpp index 30229744..ff98bb05 100644 --- a/frameworks/plugins/jpush/lua_jpush.cpp +++ b/frameworks/plugins/jpush/lua_jpush.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_jpush.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -225,8 +225,7 @@ static int _cclua_plugin_jpush_setTags(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_plugin_jpush(lua_State *L) +static int _cclua_plugin_jpush(lua_State *L) { oluacls_class(L, "cclua.plugin.jpush"); oluacls_func(L, "__gc", _cclua_plugin_jpush___gc); @@ -251,6 +250,16 @@ OLUA_LIB int luaopen_cclua_plugin_jpush(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_plugin_jpush(lua_State *L) +{ + olua_require(L, "jpush", luaopen_jpush); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::plugin::jpush"); + } + return 1; +} OLUA_END_DECLS #endif @@ -258,7 +267,7 @@ OLUA_BEGIN_DECLS OLUA_LIB int luaopen_jpush(lua_State *L) { #ifdef CCLUA_BUILD_JPUSH - olua_require(L, "cclua.plugin.jpush", luaopen_cclua_plugin_jpush); + olua_require(L, "cclua.plugin.jpush", _cclua_plugin_jpush); #endif return 0; diff --git a/frameworks/plugins/jpush/lua_jpush.h b/frameworks/plugins/jpush/lua_jpush.h index d3ccdf31..a8d25d4c 100644 --- a/frameworks/plugins/jpush/lua_jpush.h +++ b/frameworks/plugins/jpush/lua_jpush.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_JPUSH_H__ #define __AUTO_GEN_LUA_JPUSH_H__ diff --git a/frameworks/plugins/oppo/lua_oppo.cpp b/frameworks/plugins/oppo/lua_oppo.cpp index 15977ab9..19c34e55 100644 --- a/frameworks/plugins/oppo/lua_oppo.cpp +++ b/frameworks/plugins/oppo/lua_oppo.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_oppo.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -99,7 +99,7 @@ static int _cclua_plugin_oppo_setDispatcher(lua_State *L) std::string cb_tag = "Dispatcher"; std::string cb_name = olua_setcallback(L, cb_store, 1, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::string &arg1, const cocos2d::Value &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](const std::string &cb_arg1, const cocos2d::Value &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -107,8 +107,8 @@ static int _cclua_plugin_oppo_setDispatcher(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_string(L, arg1); - olua_push_cocos2d_Value(L, arg2); + olua_push_string(L, cb_arg1); + olua_push_cocos2d_Value(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -127,8 +127,7 @@ static int _cclua_plugin_oppo_setDispatcher(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_plugin_oppo(lua_State *L) +static int _cclua_plugin_oppo(lua_State *L) { oluacls_class(L, "cclua.plugin.oppo"); oluacls_func(L, "__gc", _cclua_plugin_oppo___gc); @@ -140,6 +139,16 @@ OLUA_LIB int luaopen_cclua_plugin_oppo(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_plugin_oppo(lua_State *L) +{ + olua_require(L, "oppo", luaopen_oppo); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::plugin::oppo"); + } + return 1; +} OLUA_END_DECLS #endif @@ -147,7 +156,7 @@ OLUA_BEGIN_DECLS OLUA_LIB int luaopen_oppo(lua_State *L) { #ifdef CCLUA_BUILD_OPPO - olua_require(L, "cclua.plugin.oppo", luaopen_cclua_plugin_oppo); + olua_require(L, "cclua.plugin.oppo", _cclua_plugin_oppo); #endif return 0; diff --git a/frameworks/plugins/oppo/lua_oppo.h b/frameworks/plugins/oppo/lua_oppo.h index 6360a104..5bdd3f9f 100644 --- a/frameworks/plugins/oppo/lua_oppo.h +++ b/frameworks/plugins/oppo/lua_oppo.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_OPPO_H__ #define __AUTO_GEN_LUA_OPPO_H__ diff --git a/frameworks/plugins/talkingdata/lua_talkingdata.cpp b/frameworks/plugins/talkingdata/lua_talkingdata.cpp index 853aebcd..e16061b3 100644 --- a/frameworks/plugins/talkingdata/lua_talkingdata.cpp +++ b/frameworks/plugins/talkingdata/lua_talkingdata.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_talkingdata.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -459,8 +459,7 @@ static int _cclua_plugin_talkingdata_setVerboseLogDisable(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_plugin_talkingdata(lua_State *L) +static int _cclua_plugin_talkingdata(lua_State *L) { oluacls_class(L, "cclua.plugin.talkingdata"); oluacls_func(L, "__gc", _cclua_plugin_talkingdata___gc); @@ -494,6 +493,16 @@ OLUA_LIB int luaopen_cclua_plugin_talkingdata(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_plugin_talkingdata(lua_State *L) +{ + olua_require(L, "talkingdata", luaopen_talkingdata); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::plugin::talkingdata"); + } + return 1; +} OLUA_END_DECLS #endif @@ -501,7 +510,7 @@ OLUA_BEGIN_DECLS OLUA_LIB int luaopen_talkingdata(lua_State *L) { #ifdef CCLUA_BUILD_TALKINGDATA - olua_require(L, "cclua.plugin.talkingdata", luaopen_cclua_plugin_talkingdata); + olua_require(L, "cclua.plugin.talkingdata", _cclua_plugin_talkingdata); #endif return 0; diff --git a/frameworks/plugins/talkingdata/lua_talkingdata.h b/frameworks/plugins/talkingdata/lua_talkingdata.h index c4081eb8..85097c88 100644 --- a/frameworks/plugins/talkingdata/lua_talkingdata.h +++ b/frameworks/plugins/talkingdata/lua_talkingdata.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_TALKINGDATA_H__ #define __AUTO_GEN_LUA_TALKINGDATA_H__ diff --git a/frameworks/plugins/vivo/lua_vivo.cpp b/frameworks/plugins/vivo/lua_vivo.cpp index 56905a11..bae27b21 100644 --- a/frameworks/plugins/vivo/lua_vivo.cpp +++ b/frameworks/plugins/vivo/lua_vivo.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_vivo.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -101,7 +101,7 @@ static int _cclua_plugin_vivo_setDispatcher(lua_State *L) std::string cb_tag = "Dispatcher"; std::string cb_name = olua_setcallback(L, cb_store, 1, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::string &arg1, const cocos2d::Value &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](const std::string &cb_arg1, const cocos2d::Value &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -109,8 +109,8 @@ static int _cclua_plugin_vivo_setDispatcher(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_string(L, arg1); - olua_push_cocos2d_Value(L, arg2); + olua_push_string(L, cb_arg1); + olua_push_cocos2d_Value(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -129,8 +129,7 @@ static int _cclua_plugin_vivo_setDispatcher(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_plugin_vivo(lua_State *L) +static int _cclua_plugin_vivo(lua_State *L) { oluacls_class(L, "cclua.plugin.vivo"); oluacls_func(L, "__gc", _cclua_plugin_vivo___gc); @@ -142,6 +141,16 @@ OLUA_LIB int luaopen_cclua_plugin_vivo(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_plugin_vivo(lua_State *L) +{ + olua_require(L, "vivo", luaopen_vivo); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::plugin::vivo"); + } + return 1; +} OLUA_END_DECLS #endif @@ -149,7 +158,7 @@ OLUA_BEGIN_DECLS OLUA_LIB int luaopen_vivo(lua_State *L) { #ifdef CCLUA_BUILD_VIVO - olua_require(L, "cclua.plugin.vivo", luaopen_cclua_plugin_vivo); + olua_require(L, "cclua.plugin.vivo", _cclua_plugin_vivo); #endif return 0; diff --git a/frameworks/plugins/vivo/lua_vivo.h b/frameworks/plugins/vivo/lua_vivo.h index d65f9025..37b8beab 100644 --- a/frameworks/plugins/vivo/lua_vivo.h +++ b/frameworks/plugins/vivo/lua_vivo.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_VIVO_H__ #define __AUTO_GEN_LUA_VIVO_H__ diff --git a/frameworks/plugins/wechat/lua_wechat.cpp b/frameworks/plugins/wechat/lua_wechat.cpp index df3cabb7..59355196 100644 --- a/frameworks/plugins/wechat/lua_wechat.cpp +++ b/frameworks/plugins/wechat/lua_wechat.cpp @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #include "lua_wechat.h" #include "lua-bindings/lua_cocos2d_types.h" @@ -7,8 +7,7 @@ #include "wechat/wechat.h" #ifdef CCLUA_BUILD_WECHAT -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_plugin_wechat_ShareType(lua_State *L) +static int _cclua_plugin_wechat_ShareType(lua_State *L) { oluacls_class(L, "cclua.plugin.wechat.ShareType"); oluacls_func(L, "__index", olua_indexerror); @@ -22,12 +21,21 @@ OLUA_LIB int luaopen_cclua_plugin_wechat_ShareType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_plugin_wechat_ShareType(lua_State *L) +{ + olua_require(L, "wechat", luaopen_wechat); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::plugin::wechat::ShareType"); + } + return 1; +} OLUA_END_DECLS #endif #ifdef CCLUA_BUILD_WECHAT -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_plugin_wechat_ProgramType(lua_State *L) +static int _cclua_plugin_wechat_ProgramType(lua_State *L) { oluacls_class(L, "cclua.plugin.wechat.ProgramType"); oluacls_func(L, "__index", olua_indexerror); @@ -38,6 +46,16 @@ OLUA_LIB int luaopen_cclua_plugin_wechat_ProgramType(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_plugin_wechat_ProgramType(lua_State *L) +{ + olua_require(L, "wechat", luaopen_wechat); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::plugin::wechat::ProgramType"); + } + return 1; +} OLUA_END_DECLS #endif @@ -299,7 +317,7 @@ static int _cclua_plugin_wechat_setDispatcher(lua_State *L) std::string cb_tag = "Dispatcher"; std::string cb_name = olua_setcallback(L, cb_store, 1, cb_tag.c_str(), OLUA_TAG_REPLACE); olua_Context cb_ctx = olua_context(L); - arg1 = [cb_store, cb_name, cb_ctx](const std::string &arg1, const cocos2d::Value &arg2) { + arg1 = [cb_store, cb_name, cb_ctx](const std::string &cb_arg1, const cocos2d::Value &cb_arg2) { lua_State *L = olua_mainthread(NULL); olua_checkhostthread(); @@ -307,8 +325,8 @@ static int _cclua_plugin_wechat_setDispatcher(lua_State *L) int top = lua_gettop(L); size_t last = olua_push_objpool(L); olua_enable_objpool(L); - olua_push_string(L, arg1); - olua_push_cocos2d_Value(L, arg2); + olua_push_string(L, cb_arg1); + olua_push_cocos2d_Value(L, cb_arg2); olua_disable_objpool(L); olua_callback(L, cb_store, cb_name.c_str(), 2); @@ -361,8 +379,7 @@ static int _cclua_plugin_wechat_stopAuth(lua_State *L) return 0; } -OLUA_BEGIN_DECLS -OLUA_LIB int luaopen_cclua_plugin_wechat(lua_State *L) +static int _cclua_plugin_wechat(lua_State *L) { oluacls_class(L, "cclua.plugin.wechat"); oluacls_func(L, "__gc", _cclua_plugin_wechat___gc); @@ -386,6 +403,16 @@ OLUA_LIB int luaopen_cclua_plugin_wechat(lua_State *L) return 1; } + +OLUA_BEGIN_DECLS +OLUA_LIB int luaopen_cclua_plugin_wechat(lua_State *L) +{ + olua_require(L, "wechat", luaopen_wechat); + if (!olua_getclass(L, olua_getluatype(L))) { + luaL_error(L, "class not found: cclua::plugin::wechat"); + } + return 1; +} OLUA_END_DECLS #endif @@ -393,9 +420,9 @@ OLUA_BEGIN_DECLS OLUA_LIB int luaopen_wechat(lua_State *L) { #ifdef CCLUA_BUILD_WECHAT - olua_require(L, "cclua.plugin.wechat.ShareType", luaopen_cclua_plugin_wechat_ShareType); - olua_require(L, "cclua.plugin.wechat.ProgramType", luaopen_cclua_plugin_wechat_ProgramType); - olua_require(L, "cclua.plugin.wechat", luaopen_cclua_plugin_wechat); + olua_require(L, "cclua.plugin.wechat.ShareType", _cclua_plugin_wechat_ShareType); + olua_require(L, "cclua.plugin.wechat.ProgramType", _cclua_plugin_wechat_ProgramType); + olua_require(L, "cclua.plugin.wechat", _cclua_plugin_wechat); #endif return 0; diff --git a/frameworks/plugins/wechat/lua_wechat.h b/frameworks/plugins/wechat/lua_wechat.h index a9d6819f..e2fab1c5 100644 --- a/frameworks/plugins/wechat/lua_wechat.h +++ b/frameworks/plugins/wechat/lua_wechat.h @@ -1,5 +1,5 @@ // -// AUTO BUILD, DON'T MODIFY! +// AUTO GENERATED, DO NOT MODIFY! // #ifndef __AUTO_GEN_LUA_WECHAT_H__ #define __AUTO_GEN_LUA_WECHAT_H__ diff --git a/tools/lua-bindings/olua b/tools/lua-bindings/olua index 75bb6347..496cb048 160000 --- a/tools/lua-bindings/olua +++ b/tools/lua-bindings/olua @@ -1 +1 @@ -Subproject commit 75bb6347f0a1a2d5360a483b912f4b5398ff7df8 +Subproject commit 496cb048ca342b166c6df31c6460e2071b7bc103