diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-19 17:31:31 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-19 17:31:31 +0800 |
commit | 6630090bc5e7e6988bdc9c3640f035114c0dfc60 (patch) | |
tree | 99d23027b9618f181b63f5fcb2c1dfde8052653d /meta | |
parent | f131f1b530d0726ba66ad4c62f55fa0d59abc4e1 (diff) | |
download | lua-language-server-6630090bc5e7e6988bdc9c3640f035114c0dfc60.zip |
update `love-api` and `lovr-api`
Diffstat (limited to 'meta')
-rw-r--r-- | meta/3rd/love2d/library/love.graphics.lua | 2 | ||||
-rw-r--r-- | meta/3rd/lovr/library/lovr.graphics.lua | 5 | ||||
-rw-r--r-- | meta/3rd/lovr/library/lovr.math.lua | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/meta/3rd/love2d/library/love.graphics.lua b/meta/3rd/love2d/library/love.graphics.lua index c6b5ead8..1a168421 100644 --- a/meta/3rd/love2d/library/love.graphics.lua +++ b/meta/3rd/love2d/library/love.graphics.lua @@ -165,7 +165,7 @@ function love.graphics.ellipse(mode, x, y, radiusx, radiusy) end --- ---LÖVE will call this function internally as needed when most state is changed, so it is not necessary to manually call it. --- ----The current batch will be automatically flushed by color), as well as Shader:send and methods on Textures which change their state. Using a different Image in consecutive love.graphics.draw calls will also flush the current batch. +---The current batch will be automatically flushed by love.graphics state changes (except for the transform stack and the current color), as well as Shader:send and methods on Textures which change their state. Using a different Image in consecutive love.graphics.draw calls will also flush the current batch. --- ---SpriteBatches, ParticleSystems, Meshes, and Text objects do their own batching and do not affect automatic batching of other draws, aside from flushing the current batch when they're drawn. --- diff --git a/meta/3rd/lovr/library/lovr.graphics.lua b/meta/3rd/lovr/library/lovr.graphics.lua index 63b3596a..ef6ffc46 100644 --- a/meta/3rd/lovr/library/lovr.graphics.lua +++ b/meta/3rd/lovr/library/lovr.graphics.lua @@ -1190,7 +1190,10 @@ function Model:getAnimationCount() end --- ---Returns the duration of an animation in the Model, in seconds. --- -function Model:getAnimationDuration() end +---@overload fun(index: number):number +---@param name string # The name of the animation. +---@return number duration # The duration of the animation, in seconds. +function Model:getAnimationDuration(name) end --- ---Returns the name of one of the animations in the Model. diff --git a/meta/3rd/lovr/library/lovr.math.lua b/meta/3rd/lovr/library/lovr.math.lua index 007d8055..2a2139e8 100644 --- a/meta/3rd/lovr/library/lovr.math.lua +++ b/meta/3rd/lovr/library/lovr.math.lua @@ -491,7 +491,9 @@ function RandomGenerator:randomNormal(sigma, mu) end --- ---Seed the RandomGenerator with a new seed. Each seed will cause the RandomGenerator to produce a unique sequence of random numbers. --- -function RandomGenerator:setSeed() end +---@overload fun(low: number, high: number) +---@param seed number # The random seed. +function RandomGenerator:setSeed(seed) end --- ---Sets the state of the RandomGenerator, as previously obtained using `RandomGenerator:getState`. This can be used to reliably restore a previous state of the generator. |