Skip to content

Commit

Permalink
implement enum as integer
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongfq committed Sep 17, 2024
1 parent 6ac46fa commit beb864d
Show file tree
Hide file tree
Showing 229 changed files with 1,294 additions and 5,618 deletions.
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/AABB.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ local AABB = {}
---@return any
function AABB:__gc() end

---@return any
function AABB:__olua_move() end

---Combine an AABB into this one.
---@param aabb b2.AABB
---
Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/Body.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
---@field worldCenter b2.Vec2 Get the world position of the center of mass.
local Body = {}

---@return any
function Body:__olua_move() end

---Apply an angular impulse.
---@param impulse number # the angular impulse in units of kg*m*m/s
---@param wake boolean # also wake up the body
Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/BodyDef.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ local BodyDef = {}
---@return any
function BodyDef:__gc() end

---@return any
function BodyDef:__olua_move() end

---This constructor sets the body definition default values.
---@return b2.BodyDef
function BodyDef.new() end
Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/BodyUserData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ local BodyUserData = {}
---@return any
function BodyUserData:__gc() end

---@return any
function BodyUserData:__olua_move() end

---@return b2.BodyUserData
function BodyUserData.new() end

Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/BroadPhase.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ local BroadPhase = {}
---@return any
function BroadPhase:__gc() end

---@return any
function BroadPhase:__olua_move() end

---Create a proxy with an initial AABB. Pairs are not reported until
---UpdatePairs is called.
---@param aabb b2.AABB
Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/Color.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ local Color = {}
---@return any
function Color:__gc() end

---@return any
function Color:__olua_move() end

---@return b2.Color
---@overload fun(rIn: number, gIn: number, bIn: number, aIn: number): b2.Color
---@overload fun(rIn: number, gIn: number, bIn: number): b2.Color
Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/Contact.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
---@field touching boolean Is this contact touching?
local Contact = {}

---@return any
function Contact:__olua_move() end

---Evaluate this contact with your own manifold and transforms.
---@param manifold b2.Manifold
---@param xfA b2.Transform
Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/ContactEdge.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,4 @@ local ContactEdge = {}
---@return any
function ContactEdge:__gc() end

---@return any
function ContactEdge:__olua_move() end

return ContactEdge
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/ContactFeature.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,4 @@ local ContactFeature = {}
---@return any
function ContactFeature:__gc() end

---@return any
function ContactFeature:__olua_move() end

return ContactFeature
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/ContactID.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ local ContactID = {}
---@return any
function ContactID:__gc() end

---@return any
function ContactID:__olua_move() end

return ContactID
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/ContactImpulse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ local ContactImpulse = {}
---@return any
function ContactImpulse:__gc() end

---@return any
function ContactImpulse:__olua_move() end

return ContactImpulse
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/ContactManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ local ContactManager = {}
---@return any
function ContactManager:__gc() end

---@return any
function ContactManager:__olua_move() end

---@param proxyUserDataA any
---@param proxyUserDataB any
function ContactManager:addPair(proxyUserDataA, proxyUserDataB) end
Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/Filter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ local Filter = {}
---@return any
function Filter:__gc() end

---@return any
function Filter:__olua_move() end

---@return b2.Filter
function Filter.new() end

Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/Fixture.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ local Fixture = {}
---@return any
function Fixture:__gc() end

---@return any
function Fixture:__olua_move() end

---Dump this fixture to the log file.
---@param bodyIndex integer
function Fixture:dump(bodyIndex) end
Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/FixtureDef.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ local FixtureDef = {}
---@return any
function FixtureDef:__gc() end

---@return any
function FixtureDef:__olua_move() end

---The constructor sets the default fixture definition values.
---@return b2.FixtureDef
function FixtureDef.new() end
Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/FixtureUserData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ local FixtureUserData = {}
---@return any
function FixtureUserData:__gc() end

---@return any
function FixtureUserData:__olua_move() end

---@return b2.FixtureUserData
function FixtureUserData.new() end

Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/Joint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
---@field userData b2.JointUserData Get the user data pointer.
local Joint = {}

---@return any
function Joint:__olua_move() end

---Debug draw this joint
---@param draw b2.interface.Draw
function Joint:draw(draw) end
Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/JointDef.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ local JointDef = {}
---@return any
function JointDef:__gc() end

---@return any
function JointDef:__olua_move() end

---@return b2.JointDef
function JointDef.new() end

Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/JointEdge.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,4 @@ local JointEdge = {}
---@return any
function JointEdge:__gc() end

---@return any
function JointEdge:__olua_move() end

return JointEdge
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/JointUserData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ local JointUserData = {}
---@return any
function JointUserData:__gc() end

---@return any
function JointUserData:__olua_move() end

---@return b2.JointUserData
function JointUserData.new() end

Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/Manifold.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,4 @@ local Manifold = {}
---@return any
function Manifold:__gc() end

---@return any
function Manifold:__olua_move() end

return Manifold
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/ManifoldPoint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,4 @@ local ManifoldPoint = {}
---@return any
function ManifoldPoint:__gc() end

---@return any
function ManifoldPoint:__olua_move() end

return ManifoldPoint
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/MassData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ local MassData = {}
---@return any
function MassData:__gc() end

---@return any
function MassData:__olua_move() end

return MassData
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/Profile.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,4 @@ local Profile = {}
---@return any
function Profile:__gc() end

---@return any
function Profile:__olua_move() end

return Profile
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/RayCastInput.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ local RayCastInput = {}
---@return any
function RayCastInput:__gc() end

---@return any
function RayCastInput:__olua_move() end

return RayCastInput
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/RayCastOutput.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,4 @@ local RayCastOutput = {}
---@return any
function RayCastOutput:__gc() end

---@return any
function RayCastOutput:__olua_move() end

return RayCastOutput
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/Rot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ local Rot = {}
---@return any
function Rot:__gc() end

---@return any
function Rot:__olua_move() end

---Get the angle in radians
---@return number
function Rot:getAngle() end
Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/Shape.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ local Shape = {}
---@return any
function Shape:__gc() end

---@return any
function Shape:__olua_move() end

---Given a transform, compute the associated axis aligned bounding box for a child shape.
---@param aabb b2.AABB # returns the axis aligned box.
---@param xf b2.Transform # the world transform of the shape.
Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/Transform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ local Transform = {}
---@return any
function Transform:__gc() end

---@return any
function Transform:__olua_move() end

---The default constructor does nothing.
---@return b2.Transform
---
Expand Down
6 changes: 4 additions & 2 deletions addons/cclua/box2d/library/b2/Vec2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
---@field valid boolean Does this vector contain finite coordinates?
---@field x number
---@field y number
---@operator unm:b2.Vec2
local Vec2 = {}

---@return any
function Vec2:__gc() end

---@return any
function Vec2:__olua_move() end
---Negate this vector.
---@return b2.Vec2
function Vec2:__unm() end

---Does this vector contain finite coordinates?
---@return boolean
Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/Vec2Array.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ function Vec2Array:__index(idx) end
---@param v b2.Vec2
function Vec2Array:__newindex(idx, v) end

---@return any
function Vec2Array:__olua_move() end

---@param len integer
---@return b2.Vec2Array
---@overload fun(): b2.Vec2Array
Expand Down
6 changes: 4 additions & 2 deletions addons/cclua/box2d/library/b2/Vec3.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
---@field x number
---@field y number
---@field z number
---@operator unm:b2.Vec3
local Vec3 = {}

---@return any
function Vec3:__gc() end

---@return any
function Vec3:__olua_move() end
---Negate this vector.
---@return b2.Vec3
function Vec3:__unm() end

---Default constructor does nothing (for performance).
---@return b2.Vec3
Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/World.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ local World = {}
---@return any
function World:__gc() end

---@return any
function World:__olua_move() end

---Manually clear the force buffer on all bodies. By default, forces are cleared automatically
---after each call to Step. The default behavior is modified by calling SetAutoClearForces.
---The purpose of this function is to support sub-stepping. Sub-stepping is often used to maintain
Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/WorldManifold.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ local WorldManifold = {}
---@return any
function WorldManifold:__gc() end

---@return any
function WorldManifold:__olua_move() end

---Evaluate the manifold with supplied transforms. This assumes
---modest motion from the original state. This does not change the
---point count, impulses, etc. The radii must come from the shapes
Expand Down
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/interface/ContactFilter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,4 @@ local ContactFilter = {}
---@return any
function ContactFilter:__gc() end

---@return any
function ContactFilter:__olua_move() end

return ContactFilter
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/interface/ContactListener.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,4 @@ local ContactListener = {}
---@return any
function ContactListener:__gc() end

---@return any
function ContactListener:__olua_move() end

return ContactListener
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ local DestructionListener = {}
---@return any
function DestructionListener:__gc() end

---@return any
function DestructionListener:__olua_move() end

return DestructionListener
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/interface/Draw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,4 @@ local Draw = {}
---@return any
function Draw:__gc() end

---@return any
function Draw:__olua_move() end

return Draw
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/interface/QueryCallback.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,4 @@ local QueryCallback = {}
---@return any
function QueryCallback:__gc() end

---@return any
function QueryCallback:__olua_move() end

return QueryCallback
3 changes: 0 additions & 3 deletions addons/cclua/box2d/library/b2/interface/RayCastCallback.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,4 @@ local RayCastCallback = {}
---@return any
function RayCastCallback:__gc() end

---@return any
function RayCastCallback:__olua_move() end

return RayCastCallback
Loading

0 comments on commit beb864d

Please sign in to comment.