Skip to content

Commit

Permalink
update annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongfq committed Sep 12, 2024
1 parent 665764e commit 6ac46fa
Show file tree
Hide file tree
Showing 198 changed files with 1,340 additions and 1,928 deletions.
5 changes: 0 additions & 5 deletions addons/cclua/box2d/library/b2/BodyType.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@ local VALUE

---
---@enum b2.BodyType
---@operator call(integer): b2.BodyType
local BodyType = {
dynamicBody = 2,
kinematicBody = 1,
staticBody = 0,
}

---@param v integer
---@return b2.BodyType
function BodyType:__call(v) end

return BodyType
5 changes: 0 additions & 5 deletions addons/cclua/box2d/library/b2/DebugNode/Flags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local VALUE

---
---@enum b2.DebugNode.Flags
---@operator call(integer): b2.DebugNode.Flags
local Flags = {
AABB = 4,
CENTER_OF_MASS = 16,
Expand All @@ -15,8 +14,4 @@ local Flags = {
SHAPE = 1,
}

---@param v integer
---@return b2.DebugNode.Flags
function Flags:__call(v) end

return Flags
5 changes: 0 additions & 5 deletions addons/cclua/box2d/library/b2/JointType.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local VALUE

---
---@enum b2.JointType
---@operator call(integer): b2.JointType
local JointType = {
distanceJoint = 3,
frictionJoint = 9,
Expand All @@ -21,8 +20,4 @@ local JointType = {
wheelJoint = 7,
}

---@param v integer
---@return b2.JointType
function JointType:__call(v) end

return JointType
5 changes: 0 additions & 5 deletions addons/cclua/box2d/library/b2/Manifold/Type.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@ local VALUE

---
---@enum b2.Manifold.Type
---@operator call(integer): b2.Manifold.Type
local Type = {
circles = 0,
faceA = 1,
faceB = 2,
}

---@param v integer
---@return b2.Manifold.Type
function Type:__call(v) end

return Type
5 changes: 0 additions & 5 deletions addons/cclua/box2d/library/b2/Shape/Type.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local VALUE

---
---@enum b2.Shape.Type
---@operator call(integer): b2.Shape.Type
local Type = {
chain = 3,
circle = 0,
Expand All @@ -15,8 +14,4 @@ local Type = {
typeCount = 4,
}

---@param v integer
---@return b2.Shape.Type
function Type:__call(v) end

return Type
5 changes: 0 additions & 5 deletions addons/cclua/cclua/library/cclua/MP3Encoder/MPEGMode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local VALUE

---
---@enum cclua.MP3Encoder.MPEGMode
---@operator call(integer): cclua.MP3Encoder.MPEGMode
local MPEGMode = {
DUAL_CHANNEL = 2,
JOINT_STEREO = 1,
Expand All @@ -16,8 +15,4 @@ local MPEGMode = {
STEREO = 0,
}

---@param v integer
---@return cclua.MP3Encoder.MPEGMode
function MPEGMode:__call(v) end

return MPEGMode
5 changes: 0 additions & 5 deletions addons/cclua/cclua/library/cclua/MP3Encoder/VBRMode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local VALUE

---
---@enum cclua.MP3Encoder.VBRMode
---@operator call(integer): cclua.MP3Encoder.VBRMode
local VBRMode = {
ABR = 3,
DEFAULT = 4,
Expand All @@ -17,8 +16,4 @@ local VBRMode = {
RH = 2,
}

---@param v integer
---@return cclua.MP3Encoder.VBRMode
function VBRMode:__call(v) end

return VBRMode
5 changes: 0 additions & 5 deletions addons/cclua/cclua/library/cclua/QRCode/ECLevel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local VALUE

---
---@enum cclua.QRCode.ECLevel
---@operator call(integer): cclua.QRCode.ECLevel
local ECLevel = {
---< highest
QR_ECLEVEL_H = 3,
Expand All @@ -16,8 +15,4 @@ local ECLevel = {
QR_ECLEVEL_Q = 2,
}

---@param v integer
---@return cclua.QRCode.ECLevel
function ECLevel:__call(v) end

return ECLevel
5 changes: 0 additions & 5 deletions addons/cclua/cclua/library/cclua/QRCode/EncodeMode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local VALUE

---
---@enum cclua.QRCode.EncodeMode
---@operator call(integer): cclua.QRCode.EncodeMode
local EncodeMode = {
---< 8-bit data mode
QR_MODE_8 = 2,
Expand All @@ -22,8 +21,4 @@ local EncodeMode = {
QR_MODE_STRUCTURE = 4,
}

---@param v integer
---@return cclua.QRCode.EncodeMode
function EncodeMode:__call(v) end

return EncodeMode
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local VALUE

---
---@enum cclua.XMLHttpRequest.ResponseType
---@operator call(integer): cclua.XMLHttpRequest.ResponseType
local ResponseType = {
ARRAY_BUFFER = 1,
BLOB = 2,
Expand All @@ -15,8 +14,4 @@ local ResponseType = {
STRING = 0,
}

---@param v integer
---@return cclua.XMLHttpRequest.ResponseType
function ResponseType:__call(v) end

return ResponseType
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local VALUE

---
---@enum cc.ApplicationProtocol.Platform
---@operator call(integer): cc.ApplicationProtocol.Platform
local Platform = {
---< Android
OS_ANDROID = 3,
Expand All @@ -22,8 +21,4 @@ local Platform = {
OS_WINDOWS = 0,
}

---@param v integer
---@return cc.ApplicationProtocol.Platform
function Platform:__call(v) end

return Platform
5 changes: 0 additions & 5 deletions addons/cclua/cocos2d/library/cc/AudioEngine/AudioState.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ local VALUE

---
---@enum cc.AudioEngine.AudioState
---@operator call(integer): cc.AudioEngine.AudioState
local AudioState = {
ERROR = -1,
INITIALIZING = 0,
PAUSED = 2,
PLAYING = 1,
}

---@param v integer
---@return cc.AudioEngine.AudioState
function AudioState:__call(v) end

return AudioState
5 changes: 0 additions & 5 deletions addons/cclua/cocos2d/library/cc/BillBoard/Mode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@ local VALUE

---
---@enum cc.BillBoard.Mode
---@operator call(integer): cc.BillBoard.Mode
local Mode = {
VIEW_PLANE_ORIENTED = 1,
VIEW_POINT_ORIENTED = 0,
}

---@param v integer
---@return cc.BillBoard.Mode
function Mode:__call(v) end

return Mode
5 changes: 0 additions & 5 deletions addons/cclua/cocos2d/library/cc/Camera/Type.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@ local VALUE

---
---@enum cc.Camera.Type
---@operator call(integer): cc.Camera.Type
local Type = {
ORTHOGRAPHIC = 2,
PERSPECTIVE = 1,
}

---@param v integer
---@return cc.Camera.Type
function Type:__call(v) end

return Type
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ local VALUE

---
---@enum cc.CameraBackgroundBrush.BrushType
---@operator call(integer): cc.CameraBackgroundBrush.BrushType
local BrushType = {
COLOR = 2,
DEPTH = 1,
NONE = 0,
SKYBOX = 3,
}

---@param v integer
---@return cc.CameraBackgroundBrush.BrushType
function BrushType:__call(v) end

return BrushType
5 changes: 0 additions & 5 deletions addons/cclua/cocos2d/library/cc/CameraFlag.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local VALUE

---
---@enum cc.CameraFlag
---@operator call(integer): cc.CameraFlag
local CameraFlag = {
DEFAULT = 1,
USER1 = 2,
Expand All @@ -19,8 +18,4 @@ local CameraFlag = {
USER8 = 256,
}

---@param v integer
---@return cc.CameraFlag
function CameraFlag:__call(v) end

return CameraFlag
5 changes: 0 additions & 5 deletions addons/cclua/cocos2d/library/cc/ClearFlag.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local VALUE

---
---@enum cc.ClearFlag
---@operator call(integer): cc.ClearFlag
local ClearFlag = {
ALL = 7,
COLOR = 1,
Expand All @@ -15,8 +14,4 @@ local ClearFlag = {
STENCIL = 4,
}

---@param v integer
---@return cc.ClearFlag
function ClearFlag:__call(v) end

return ClearFlag
5 changes: 0 additions & 5 deletions addons/cclua/cocos2d/library/cc/Controller/Key.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local VALUE

---
---@enum cc.Controller.Key
---@operator call(integer): cc.Controller.Key
local Key = {
AXIS_LEFT_TRIGGER = 1017,
AXIS_RIGHT_TRIGGER = 1018,
Expand Down Expand Up @@ -36,8 +35,4 @@ local Key = {
KEY_NONE = 0,
}

---@param v integer
---@return cc.Controller.Key
function Key:__call(v) end

return Key
5 changes: 0 additions & 5 deletions addons/cclua/cocos2d/library/cc/CustomCommand/DrawType.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@ local VALUE

---
---@enum cc.CustomCommand.DrawType
---@operator call(integer): cc.CustomCommand.DrawType
local DrawType = {
ARRAY = 0,
ELEMENT = 1,
}

---@param v integer
---@return cc.CustomCommand.DrawType
function DrawType:__call(v) end

return DrawType
5 changes: 0 additions & 5 deletions addons/cclua/cocos2d/library/cc/Director/Projection.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local VALUE

---
---@enum cc.Director.Projection
---@operator call(integer): cc.Director.Projection
local Projection = {
---It calls "updateProjection" on the projection delegate.
CUSTOM = 2,
Expand All @@ -18,8 +17,4 @@ local Projection = {
_3D = 1,
}

---@param v integer
---@return cc.Director.Projection
function Projection:__call(v) end

return Projection
5 changes: 0 additions & 5 deletions addons/cclua/cocos2d/library/cc/Event/Type.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ local VALUE

---
---@enum cc.Event.Type
---@operator call(integer): cc.Event.Type
local Type = {
ACCELERATION = 2,
CUSTOM = 6,
Expand All @@ -17,8 +16,4 @@ local Type = {
TOUCH = 0,
}

---@param v integer
---@return cc.Event.Type
function Type:__call(v) end

return Type
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@ local VALUE

---
---@enum cc.EventController.ControllerEventType
---@operator call(integer): cc.EventController.ControllerEventType
local ControllerEventType = {
AXIS_STATUS_CHANGED = 2,
BUTTON_STATUS_CHANGED = 1,
CONNECTION = 0,
}

---@param v integer
---@return cc.EventController.ControllerEventType
function ControllerEventType:__call(v) end

return ControllerEventType
Loading

0 comments on commit 6ac46fa

Please sign in to comment.