Skip to content

Commit

Permalink
update lua bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongfq committed Aug 30, 2024
1 parent 6b22991 commit 2b9f909
Show file tree
Hide file tree
Showing 1,023 changed files with 19,822 additions and 5,528 deletions.
3 changes: 3 additions & 0 deletions addons/cclua/box2d/library/b2/AABB.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.AABB

---An axis aligned bounding box.
Expand All @@ -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

Expand Down
9 changes: 9 additions & 0 deletions addons/cclua/box2d/library/b2/Body.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.Body

---A rigid body. These are created via b2World::CreateBody.
Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/BodyDef.lua
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/BodyType.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.BodyType

---@type b2.BodyType
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/BodyUserData.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.BodyUserData

---You can define this to inject whatever data you want in b2Body
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/BroadPhase.lua
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/ChainShape.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.ChainShape

---A chain shape is a free form sequence of line segments.
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/CircleShape.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.CircleShape

---A solid circle shape
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/Color.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.Color

---Color for debug drawing. Each value has the range [0,1].
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/Contact.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/ContactEdge.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.ContactEdge

---A contact edge is used to connect bodies and contacts together
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/ContactFeature.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.ContactFeature

---The features that intersect to form the contact point
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/ContactFilter.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.ContactFilter

---
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/ContactID.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.ContactID

---Contact ids to facilitate warm starting.
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/ContactImpulse.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.ContactImpulse

---Contact impulses for reporting. Impulses are used instead of forces because
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/ContactListener.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.ContactListener

---
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/ContactManager.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.ContactManager

---
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/DebugNode.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.DebugNode

---
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/DebugNode/Flags.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.DebugNode.Flags

---@type b2.DebugNode.Flags
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/DestructionListener.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.DestructionListener

---
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/DistanceJoint.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/DistanceJointDef.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.DistanceJointDef

---Distance joint definition. This requires defining an anchor point on both
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/EdgeShape.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/Filter.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.Filter

---This holds contact filtering data.
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/Fixture.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/FixtureDef.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/FixtureUserData.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.FixtureUserData

---You can define this to inject whatever data you want in b2Fixture
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/FrictionJoint.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.FrictionJoint

---Friction joint. This is used for top-down friction.
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/FrictionJointDef.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.FrictionJointDef

---Friction joint definition.
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/GearJoint.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.GearJoint

---A gear joint is used to connect two joints together. Either joint
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/GearJointDef.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.GearJointDef

---Gear joint definition. This definition requires two existing
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/Joint.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/JointDef.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.JointDef

---Joint definitions are used to construct joints.
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/JointEdge.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.JointEdge

---A joint edge is used to connect bodies and joints together
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/JointType.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.JointType

---@type b2.JointType
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/JointUserData.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.JointUserData

---You can define this to inject whatever data you want in b2Joint
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/Manifold.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.Manifold

---A manifold for two touching convex shapes.
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/Manifold/Type.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.Manifold.Type

---@type b2.Manifold.Type
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/ManifoldPoint.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.ManifoldPoint

---A manifold point is a contact point belonging to a contact
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/MassData.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.MassData

---This holds the mass data computed for a shape.
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/MotorJoint.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.MotorJoint

---A motor joint is used to control the relative motion
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/MotorJointDef.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.MotorJointDef

---Motor joint definition.
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/MouseJoint.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/MouseJointDef.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.MouseJointDef

---Mouse joint definition. This requires a world target point,
Expand Down
7 changes: 7 additions & 0 deletions addons/cclua/box2d/library/b2/PolygonShape.lua
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/PrismaticJoint.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.PrismaticJoint

---A prismatic joint. This joint provides one degree of freedom: translation
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/PrismaticJointDef.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.PrismaticJointDef

---Prismatic joint definition. This requires defining a line of
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/Profile.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.Profile

---Profiling data. Times are in milliseconds.
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/PulleyJoint.lua
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/PulleyJointDef.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.PulleyJointDef

---Pulley joint definition. This requires two ground anchors,
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/QueryCallback.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.QueryCallback

---
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/RayCastCallback.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.RayCastCallback

---
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/RayCastInput.lua
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/RayCastOutput.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/RevoluteJoint.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/RevoluteJointDef.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.RevoluteJointDef

---Revolute joint definition. This requires defining an anchor point where the
Expand Down
3 changes: 3 additions & 0 deletions addons/cclua/box2d/library/b2/Rot.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.Rot

---Rotation
Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/Shape.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.Shape

---\file
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/Shape/Type.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.Shape.Type

---@type b2.Shape.Type
Expand Down
3 changes: 3 additions & 0 deletions addons/cclua/box2d/library/b2/Transform.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.Transform

---A transform contains translation and rotation. It is used to represent
Expand All @@ -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

Expand Down
3 changes: 3 additions & 0 deletions addons/cclua/box2d/library/b2/Vec2.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.Vec2

---A 2D column vector.
Expand Down Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/Vec2Array.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.Vec2Array

---
Expand Down
3 changes: 3 additions & 0 deletions addons/cclua/box2d/library/b2/Vec3.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.Vec3

---A 2D column vector with 3 elements.
Expand All @@ -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

Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/WeldJoint.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.WeldJoint

---A weld joint essentially glues two bodies together. A weld joint may
Expand Down
1 change: 1 addition & 0 deletions addons/cclua/box2d/library/b2/WeldJointDef.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---AUTO GENERATED, DO NOT MODIFY!
---@meta b2.WeldJointDef

---Weld joint definition. You need to specify local anchor points
Expand Down
Loading

0 comments on commit 2b9f909

Please sign in to comment.