Skip to content

Commit e069d28

Browse files
committed
update submodules
1 parent 669073e commit e069d28

File tree

15 files changed

+200
-8
lines changed

15 files changed

+200
-8
lines changed

3rd/EmmyLuaCodeStyle

Submodule EmmyLuaCodeStyle updated 74 files

3rd/bee.lua

3rd/love-api

3rd/lovr-api

3rd/luamake

meta/3rd/love2d/library/love.image.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,12 @@ function ImageData:paste(source, dx, dy, sx, sy, sw, sh) end
185185
---@param a number # The alpha component (0-1).
186186
function ImageData:setPixel(x, y, r, g, b, a) end
187187

188+
---
189+
---Gets the pixel format of the ImageData.
190+
---
191+
---@return love.PixelFormat format # The pixel format the ImageData was created with.
192+
function ImageData:getFormat() end
193+
188194
---
189195
---Compressed image data formats. Here and here are a couple overviews of many of the formats.
190196
---

meta/3rd/love2d/library/love.physics.lua

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,14 @@ function CircleShape:setRadius(radius) end
965965
---@class love.Contact: love.Object
966966
local Contact = {}
967967

968+
---
969+
---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.
970+
---Used together with Fixture:rayCast or ChainShape:getChildEdge.
971+
---
972+
---@return number indexA # The child index of the first fixture's shape.
973+
---@return number indexB # The child index of the second fixture's shape.
974+
function Contact:getChildren() end
975+
968976
---
969977
---Gets the two Fixtures that hold the shapes that are in contact.
970978
---
@@ -1656,6 +1664,12 @@ function PrismaticJoint:getMotorForce(invdt) end
16561664
---@return number s # The motor speed, usually in meters per second.
16571665
function PrismaticJoint:getMotorSpeed() end
16581666

1667+
---
1668+
---Gets the reference angle.
1669+
---
1670+
---@return number angle # The reference angle in radians.
1671+
function PrismaticJoint:getReferenceAngle() end
1672+
16591673
---
16601674
---Gets the upper limit.
16611675
---
@@ -1835,6 +1849,12 @@ function RevoluteJoint:getMotorSpeed() end
18351849
---@return number f # The current motor force, in Nm.
18361850
function RevoluteJoint:getMotorTorque() end
18371851

1852+
---
1853+
---Gets the reference angle.
1854+
---
1855+
---@return number angle # The reference angle in radians.
1856+
function RevoluteJoint:getReferenceAngle() end
1857+
18381858
---
18391859
---Gets the upper limit.
18401860
---
@@ -2021,6 +2041,12 @@ function WeldJoint:getDampingRatio() end
20212041
---@return number freq # The frequency in hertz.
20222042
function WeldJoint:getFrequency() end
20232043

2044+
---
2045+
---Gets the reference angle.
2046+
---
2047+
---@return number angle # The reference angle in radians.
2048+
function WeldJoint:getReferenceAngle() end
2049+
20242050
---
20252051
---Sets a new damping ratio.
20262052
---
@@ -2089,6 +2115,12 @@ function WheelJoint:getSpringDampingRatio() end
20892115
---@return number freq # The frequency in hertz.
20902116
function WheelJoint:getSpringFrequency() end
20912117

2118+
---
2119+
---Checks if the joint motor is running.
2120+
---
2121+
---@return boolean on # The status of the joint motor.
2122+
function WheelJoint:isMotorEnabled() end
2123+
20922124
---
20932125
---Sets a new maximum motor torque.
20942126
---

meta/3rd/love2d/library/love.sound.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ local Decoder = {}
4141
---@return love.Decoder decoder # New copy of the decoder.
4242
function Decoder:clone() end
4343

44+
---
45+
---Decodes the audio and returns a SoundData object containing the decoded audio data.
46+
---
47+
---@return love.SoundData soundData # Decoded audio data.
48+
function Decoder:decode() end
49+
4450
---
4551
---Returns the number of bits per sample.
4652
---
@@ -65,6 +71,12 @@ function Decoder:getDuration() end
6571
---@return number rate # Number of samples per second.
6672
function Decoder:getSampleRate() end
6773

74+
---
75+
---Sets the currently playing position of the Decoder.
76+
---
77+
---@param offset number # The position to seek to, in seconds.
78+
function Decoder:seek(offset) end
79+
6880
---
6981
---Contains raw audio samples.
7082
---

meta/3rd/love2d/library/love.video.lua

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,42 @@ function love.video.newVideoStream(filename) end
2121
---
2222
---@class love.VideoStream: love.Object
2323
local VideoStream = {}
24+
25+
---
26+
---Gets the filename of the VideoStream.
27+
---
28+
---@return string filename # The filename of the VideoStream
29+
function VideoStream:getFilename() end
30+
31+
---
32+
---Gets whether the VideoStream is playing.
33+
---
34+
---@return boolean playing # Whether the VideoStream is playing.
35+
function VideoStream:isPlaying() end
36+
37+
---
38+
---Pauses the VideoStream.
39+
---
40+
function VideoStream:pause() end
41+
42+
---
43+
---Plays the VideoStream.
44+
---
45+
function VideoStream:play() end
46+
47+
---
48+
---Rewinds the VideoStream. Synonym to VideoStream:seek(0).
49+
---
50+
function VideoStream:rewind() end
51+
52+
---
53+
---Sets the current playback position of the VideoStream.
54+
---
55+
---@param offset number # The time in seconds since the beginning of the VideoStream.
56+
function VideoStream:seek(offset) end
57+
58+
---
59+
---Gets the current playback position of the VideoStream.
60+
---
61+
---@return number seconds # The number of seconds sionce the beginning of the VideoStream.
62+
function VideoStream:tell() end

meta/3rd/lovr/library/lovr.audio.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ function lovr.audio.getPose() end
7272
---@return number z # The z position of the listener.
7373
function lovr.audio.getPosition() end
7474

75+
---
76+
---Returns the sample rate used by the playback device.
77+
---
78+
---This can be changed using `lovr.conf`.
79+
---
80+
---@return number rate # The sample rate of the playback device, in Hz.
81+
function lovr.audio.getSampleRate() end
82+
7583
---
7684
---Returns the name of the active spatializer (`simple`, `oculus`, or `phonon`).
7785
---
@@ -103,7 +111,7 @@ function lovr.audio.getPosition() end
103111
--- <td>Effect: Attenuation</td>
104112
--- <td>x</td>
105113
--- <td>x</td>
106-
--- <td></td>
114+
--- <td>x</td>
107115
--- </tr>
108116
--- <tr>
109117
--- <td>Effect: Absorption</td>

0 commit comments

Comments
 (0)