diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-05-11 17:45:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-05-11 17:45:18 +0800 |
commit | e069d28762467969596a66ace8b5cde34427c8a0 (patch) | |
tree | a882fdbe4a918e1ae075f148dadcf08addaa76f4 /meta/3rd/love2d/library | |
parent | 669073e384f22c9bae84fa38ffb75fe046a11491 (diff) | |
download | lua-language-server-e069d28762467969596a66ace8b5cde34427c8a0.zip |
update submodules
Diffstat (limited to 'meta/3rd/love2d/library')
-rw-r--r-- | meta/3rd/love2d/library/love.image.lua | 6 | ||||
-rw-r--r-- | meta/3rd/love2d/library/love.physics.lua | 32 | ||||
-rw-r--r-- | meta/3rd/love2d/library/love.sound.lua | 12 | ||||
-rw-r--r-- | meta/3rd/love2d/library/love.video.lua | 39 |
4 files changed, 89 insertions, 0 deletions
diff --git a/meta/3rd/love2d/library/love.image.lua b/meta/3rd/love2d/library/love.image.lua index 5db859ae..19d6f825 100644 --- a/meta/3rd/love2d/library/love.image.lua +++ b/meta/3rd/love2d/library/love.image.lua @@ -186,6 +186,12 @@ function ImageData:paste(source, dx, dy, sx, sy, sw, sh) end function ImageData:setPixel(x, y, r, g, b, a) end --- +---Gets the pixel format of the ImageData. +--- +---@return love.PixelFormat format # The pixel format the ImageData was created with. +function ImageData:getFormat() end + +--- ---Compressed image data formats. Here and here are a couple overviews of many of the formats. --- ---Unlike traditional PNG or jpeg, these formats stay compressed in RAM and in the graphics card's VRAM. This is good for saving memory space as well as improving performance, since the graphics card will be able to keep more of the image's pixels in its fast-access cache when drawing it. diff --git a/meta/3rd/love2d/library/love.physics.lua b/meta/3rd/love2d/library/love.physics.lua index c0b80ff2..e0300c06 100644 --- a/meta/3rd/love2d/library/love.physics.lua +++ b/meta/3rd/love2d/library/love.physics.lua @@ -966,6 +966,14 @@ function CircleShape:setRadius(radius) end local Contact = {} --- +---Gets the child indices of the shapes of the two colliding fixtures. For ChainShapes, an index of 1 is the first edge in the chain. +---Used together with Fixture:rayCast or ChainShape:getChildEdge. +--- +---@return number indexA # The child index of the first fixture's shape. +---@return number indexB # The child index of the second fixture's shape. +function Contact:getChildren() end + +--- ---Gets the two Fixtures that hold the shapes that are in contact. --- ---@return love.Fixture fixtureA # The first Fixture. @@ -1657,6 +1665,12 @@ function PrismaticJoint:getMotorForce(invdt) end function PrismaticJoint:getMotorSpeed() end --- +---Gets the reference angle. +--- +---@return number angle # The reference angle in radians. +function PrismaticJoint:getReferenceAngle() end + +--- ---Gets the upper limit. --- ---@return number upper # The upper limit, usually in meters. @@ -1836,6 +1850,12 @@ function RevoluteJoint:getMotorSpeed() end function RevoluteJoint:getMotorTorque() end --- +---Gets the reference angle. +--- +---@return number angle # The reference angle in radians. +function RevoluteJoint:getReferenceAngle() end + +--- ---Gets the upper limit. --- ---@return number upper # The upper limit, in radians. @@ -2022,6 +2042,12 @@ function WeldJoint:getDampingRatio() end function WeldJoint:getFrequency() end --- +---Gets the reference angle. +--- +---@return number angle # The reference angle in radians. +function WeldJoint:getReferenceAngle() end + +--- ---Sets a new damping ratio. --- ---@param ratio number # The new damping ratio. @@ -2090,6 +2116,12 @@ function WheelJoint:getSpringDampingRatio() end function WheelJoint:getSpringFrequency() end --- +---Checks if the joint motor is running. +--- +---@return boolean on # The status of the joint motor. +function WheelJoint:isMotorEnabled() end + +--- ---Sets a new maximum motor torque. --- ---@param maxTorque number # The new maximum torque for the joint motor in newton meters. diff --git a/meta/3rd/love2d/library/love.sound.lua b/meta/3rd/love2d/library/love.sound.lua index 5c7a89e1..536336aa 100644 --- a/meta/3rd/love2d/library/love.sound.lua +++ b/meta/3rd/love2d/library/love.sound.lua @@ -42,6 +42,12 @@ local Decoder = {} function Decoder:clone() end --- +---Decodes the audio and returns a SoundData object containing the decoded audio data. +--- +---@return love.SoundData soundData # Decoded audio data. +function Decoder:decode() end + +--- ---Returns the number of bits per sample. --- ---@return number bitDepth # Either 8, or 16. @@ -66,6 +72,12 @@ function Decoder:getDuration() end function Decoder:getSampleRate() end --- +---Sets the currently playing position of the Decoder. +--- +---@param offset number # The position to seek to, in seconds. +function Decoder:seek(offset) end + +--- ---Contains raw audio samples. --- ---You can not play SoundData back directly. You must wrap a Source object around it. diff --git a/meta/3rd/love2d/library/love.video.lua b/meta/3rd/love2d/library/love.video.lua index 501101fa..2a93dd22 100644 --- a/meta/3rd/love2d/library/love.video.lua +++ b/meta/3rd/love2d/library/love.video.lua @@ -21,3 +21,42 @@ function love.video.newVideoStream(filename) end --- ---@class love.VideoStream: love.Object local VideoStream = {} + +--- +---Gets the filename of the VideoStream. +--- +---@return string filename # The filename of the VideoStream +function VideoStream:getFilename() end + +--- +---Gets whether the VideoStream is playing. +--- +---@return boolean playing # Whether the VideoStream is playing. +function VideoStream:isPlaying() end + +--- +---Pauses the VideoStream. +--- +function VideoStream:pause() end + +--- +---Plays the VideoStream. +--- +function VideoStream:play() end + +--- +---Rewinds the VideoStream. Synonym to VideoStream:seek(0). +--- +function VideoStream:rewind() end + +--- +---Sets the current playback position of the VideoStream. +--- +---@param offset number # The time in seconds since the beginning of the VideoStream. +function VideoStream:seek(offset) end + +--- +---Gets the current playback position of the VideoStream. +--- +---@return number seconds # The number of seconds sionce the beginning of the VideoStream. +function VideoStream:tell() end |