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