summaryrefslogtreecommitdiff
path: root/meta/3rd/love2d/library
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-20 20:15:53 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-20 20:15:53 +0800
commit86616712e365dd84d03a559f5b69c5e87ab5eed1 (patch)
tree3aef774af7cd7053e911f707da8ee0b755114479 /meta/3rd/love2d/library
parent2646668ef25f8a90d07f2cc929a037e62c729381 (diff)
downloadlua-language-server-86616712e365dd84d03a559f5b69c5e87ab5eed1.zip
update
Diffstat (limited to 'meta/3rd/love2d/library')
-rw-r--r--meta/3rd/love2d/library/love.audio.lua12
-rw-r--r--meta/3rd/love2d/library/love.event.lua2
-rw-r--r--meta/3rd/love2d/library/love.filesystem.lua2
-rw-r--r--meta/3rd/love2d/library/love.graphics.lua12
-rw-r--r--meta/3rd/love2d/library/love.keyboard.lua2
-rw-r--r--meta/3rd/love2d/library/love.math.lua2
-rw-r--r--meta/3rd/love2d/library/love.thread.lua2
-rw-r--r--meta/3rd/love2d/library/love.window.lua6
8 files changed, 20 insertions, 20 deletions
diff --git a/meta/3rd/love2d/library/love.audio.lua b/meta/3rd/love2d/library/love.audio.lua
index 7bd8e0b4..a0a8b3bd 100644
--- a/meta/3rd/love2d/library/love.audio.lua
+++ b/meta/3rd/love2d/library/love.audio.lua
@@ -125,7 +125,7 @@ function love.audio.newSource(filename, type) end
---
---Pauses specific or all currently played Sources.
---
----@overload fun(source: love.Source, ...: love.Source)
+---@overload fun(source: love.Source, ...)
---@overload fun(sources: table)
---@return table Sources # A table containing a list of Sources that were paused by this call.
function love.audio.pause() end
@@ -134,7 +134,7 @@ function love.audio.pause() end
---Plays the specified Source.
---
---@overload fun(sources: table)
----@overload fun(source1: love.Source, source2: love.Source, ...: love.Source)
+---@overload fun(source1: love.Source, source2: love.Source, ...)
---@param source love.Source # The Source to play.
function love.audio.play(source) end
@@ -157,7 +157,7 @@ function love.audio.setDopplerScale(scale) end
---
---@overload fun(name: string, enabled: boolean):boolean
---@param name string # The name of the effect.
----@param settings {type: EffectType, volume: number} # The settings to use for this effect, with the following fields:
+---@param settings {type: love.EffectType, volume: number} # The settings to use for this effect, with the following fields:
---@return boolean success # Whether the effect was successfully created.
function love.audio.setEffect(name, settings) end
@@ -199,7 +199,7 @@ function love.audio.setVolume(volume) end
---Stops currently played sources.
---
---@overload fun(source: love.Source)
----@overload fun(source1: love.Source, source2: love.Source, ...: love.Source)
+---@overload fun(source1: love.Source, source2: love.Source, ...)
---@overload fun(sources: table)
function love.audio.stop() end
@@ -347,7 +347,7 @@ function Source:getEffect(name, filtersettings) end
---
---Gets the filter settings currently applied to the Source.
---
----@return {type: FilterType, volume: number, highgain: number, lowgain: number} settings # The filter settings to use for this Source, or nil if the Source has no active filter. The table has the following fields:
+---@return {type: love.FilterType, volume: number, highgain: number, lowgain: number} settings # The filter settings to use for this Source, or nil if the Source has no active filter. The table has the following fields:
function Source:getFilter() end
---
@@ -489,7 +489,7 @@ function Source:setEffect(name, enable) end
---Sets a low-pass, high-pass, or band-pass filter to apply when playing the Source.
---
---@overload fun()
----@param settings {type: FilterType, volume: number, highgain: number, lowgain: number} # The filter settings to use for this Source, with the following fields:
+---@param settings {type: love.FilterType, volume: number, highgain: number, lowgain: number} # The filter settings to use for this Source, with the following fields:
---@return boolean success # Whether the filter was successfully applied to the Source.
function Source:setFilter(settings) end
diff --git a/meta/3rd/love2d/library/love.event.lua b/meta/3rd/love2d/library/love.event.lua
index 10376b2e..759b5b36 100644
--- a/meta/3rd/love2d/library/love.event.lua
+++ b/meta/3rd/love2d/library/love.event.lua
@@ -39,7 +39,7 @@ function love.event.push() end
---
---The quit event is a signal for the event handler to close LÖVE. It's possible to abort the exit process with the love.quit callback.
---
----@overload fun('restart': string)
+---@overload fun(restart: string|"'restart'")
---@param exitstatus number # The program exit status to use when closing the application.
function love.event.quit(exitstatus) end
diff --git a/meta/3rd/love2d/library/love.filesystem.lua b/meta/3rd/love2d/library/love.filesystem.lua
index 007f3675..1d00c798 100644
--- a/meta/3rd/love2d/library/love.filesystem.lua
+++ b/meta/3rd/love2d/library/love.filesystem.lua
@@ -73,7 +73,7 @@ function love.filesystem.getIdentity() end
---@overload fun(path: string, filtertype: love.FileType, info: table):table
---@param path string # The file or directory path to check.
---@param filtertype love.FileType # If supplied, this parameter causes getInfo to only return the info table if the item at the given path matches the specified file type.
----@return {type: FileType, size: number, modtime: number} info # A table containing information about the specified path, or nil if nothing exists at the path. The table contains the following fields:
+---@return {type: love.FileType, size: number, modtime: number} info # A table containing information about the specified path, or nil if nothing exists at the path. The table contains the following fields:
function love.filesystem.getInfo(path, filtertype) end
---
diff --git a/meta/3rd/love2d/library/love.graphics.lua b/meta/3rd/love2d/library/love.graphics.lua
index 69cd2cdd..9f453304 100644
--- a/meta/3rd/love2d/library/love.graphics.lua
+++ b/meta/3rd/love2d/library/love.graphics.lua
@@ -61,7 +61,7 @@ function love.graphics.circle(mode, radius) end
---In versions prior to background color instead.
---
---@overload fun(r: number, g: number, b: number, a: number, clearstencil: boolean, cleardepth: boolean)
----@overload fun(color: table, ...: table, clearstencil: boolean, cleardepth: boolean)
+---@overload fun(color: table, ..., clearstencil: boolean, cleardepth: boolean)
---@overload fun(clearcolor: boolean, clearstencil: boolean, cleardepth: boolean)
function love.graphics.clear() end
@@ -806,7 +806,7 @@ function love.graphics.setBlendMode(mode) end
---Captures drawing operations to a Canvas.
---
---@overload fun()
----@overload fun(canvas1: love.Canvas, canvas2: love.Canvas, ...: love.Canvas)
+---@overload fun(canvas1: love.Canvas, canvas2: love.Canvas, ...)
---@overload fun(canvas: love.Canvas, slice: number, mipmap: number)
---@overload fun(setup: table)
---@param canvas love.Canvas # The new target.
@@ -1874,11 +1874,11 @@ function Shader:hasUniform(name) end
---
---Uniform / extern variables are read-only in the shader code and remain constant until modified by a Shader:send call. Uniform variables can be accessed in both the Vertex and Pixel components of a shader, as long as the variable is declared in each.
---
----@overload fun(name: string, vector: table, ...: table)
----@overload fun(name: string, matrix: table, ...: table)
+---@overload fun(name: string, vector: table, ...)
+---@overload fun(name: string, matrix: table, ...)
---@overload fun(name: string, texture: love.Texture)
----@overload fun(name: string, boolean: boolean, ...: boolean)
----@overload fun(name: string, matrixlayout: love.MatrixLayout, matrix: table, ...: table)
+---@overload fun(name: string, boolean: boolean, ...)
+---@overload fun(name: string, matrixlayout: love.MatrixLayout, matrix: table, ...)
---@overload fun(name: string, data: love.Data, offset: number, size: number)
---@overload fun(name: string, data: love.Data, matrixlayout: love.MatrixLayout, offset: number, size: number)
---@param name string # Name of the number to send to the shader.
diff --git a/meta/3rd/love2d/library/love.keyboard.lua b/meta/3rd/love2d/library/love.keyboard.lua
index 311c3225..66ab4e65 100644
--- a/meta/3rd/love2d/library/love.keyboard.lua
+++ b/meta/3rd/love2d/library/love.keyboard.lua
@@ -49,7 +49,7 @@ function love.keyboard.hasTextInput() end
---
---Checks whether a certain key is down. Not to be confused with love.keypressed or love.keyreleased.
---
----@overload fun(key: love.KeyConstant, ...: love.KeyConstant):boolean
+---@overload fun(key: love.KeyConstant, ...):boolean
---@param key love.KeyConstant # The key to check.
---@return boolean down # True if the key is down, false if not.
function love.keyboard.isDown(key) end
diff --git a/meta/3rd/love2d/library/love.math.lua b/meta/3rd/love2d/library/love.math.lua
index 2eafb9b7..2cc07c15 100644
--- a/meta/3rd/love2d/library/love.math.lua
+++ b/meta/3rd/love2d/library/love.math.lua
@@ -424,7 +424,7 @@ function Transform:scale(sx, sy) end
---
---Directly sets the Transform's internal 4x4 transformation matrix.
---
----@overload fun(layout: love.MatrixLayout, e1_1: number, e1_2: number, ...: number, e4_4: number):love.Transform
+---@overload fun(layout: love.MatrixLayout, e1_1: number, e1_2: number, ..., e4_4: number):love.Transform
---@overload fun(layout: love.MatrixLayout, matrix: table):love.Transform
---@overload fun(layout: love.MatrixLayout, matrix: table):love.Transform
---@param e1_1 number # The first column of the first row of the matrix.
diff --git a/meta/3rd/love2d/library/love.thread.lua b/meta/3rd/love2d/library/love.thread.lua
index 64769edb..4bcd9c7d 100644
--- a/meta/3rd/love2d/library/love.thread.lua
+++ b/meta/3rd/love2d/library/love.thread.lua
@@ -141,7 +141,7 @@ function Thread:isRunning() end
---
---Beginning with version 0.9.0, threads can be restarted after they have completed their execution.
---
----@overload fun(arg1: any, arg2: any, ...: any)
+---@overload fun(arg1: any, arg2: any, ...)
function Thread:start() end
---
diff --git a/meta/3rd/love2d/library/love.window.lua b/meta/3rd/love2d/library/love.window.lua
index 21322049..beff6623 100644
--- a/meta/3rd/love2d/library/love.window.lua
+++ b/meta/3rd/love2d/library/love.window.lua
@@ -90,7 +90,7 @@ function love.window.getIcon() end
---
---@return number width # Window width.
---@return number height # Window height.
----@return {fullscreen: boolean, fullscreentype: FullscreenType, vsync: boolean, msaa: number, resizable: boolean, borderless: boolean, centered: boolean, display: number, minwidth: number, minheight: number, highdpi: boolean, refreshrate: number, x: number, y: number, srgb: boolean} flags # Table with the window properties:
+---@return {fullscreen: boolean, fullscreentype: love.FullscreenType, vsync: boolean, msaa: number, resizable: boolean, borderless: boolean, centered: boolean, display: number, minwidth: number, minheight: number, highdpi: boolean, refreshrate: number, x: number, y: number, srgb: boolean} flags # Table with the window properties:
function love.window.getMode() end
---
@@ -223,7 +223,7 @@ function love.window.setIcon(imagedata) end
---
---@param width number # Display width.
---@param height number # Display height.
----@param flags {fullscreen: boolean, fullscreentype: FullscreenType, vsync: boolean, msaa: number, stencil: boolean, depth: number, resizable: boolean, borderless: boolean, centered: boolean, display: number, minwidth: number, minheight: number, highdpi: boolean, x: number, y: number, usedpiscale: boolean, srgb: boolean} # The flags table with the options:
+---@param flags {fullscreen: boolean, fullscreentype: love.FullscreenType, vsync: boolean, msaa: number, stencil: boolean, depth: number, resizable: boolean, borderless: boolean, centered: boolean, display: number, minwidth: number, minheight: number, highdpi: boolean, x: number, y: number, usedpiscale: boolean, srgb: boolean} # The flags table with the options:
---@return boolean success # True if successful, false otherwise.
function love.window.setMode(width, height, flags) end
@@ -281,7 +281,7 @@ function love.window.toPixels(value) end
---
---@param width number # Window width.
---@param height number # Window height.
----@param settings {fullscreen: boolean, fullscreentype: FullscreenType, vsync: boolean, msaa: number, resizable: boolean, borderless: boolean, centered: boolean, display: number, minwidth: number, minheight: number, highdpi: boolean, x: number, y: number} # The settings table with the following optional fields. Any field not filled in will use the current value that would be returned by love.window.getMode.
+---@param settings {fullscreen: boolean, fullscreentype: love.FullscreenType, vsync: boolean, msaa: number, resizable: boolean, borderless: boolean, centered: boolean, display: number, minwidth: number, minheight: number, highdpi: boolean, x: number, y: number} # The settings table with the following optional fields. Any field not filled in will use the current value that would be returned by love.window.getMode.
---@return boolean success # True if successful, false otherwise.
function love.window.updateMode(width, height, settings) end