diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-05-28 22:56:35 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-05-28 22:56:35 +0800 |
commit | 7eaec047d708e84a7c29dd9d70e306d90fac412d (patch) | |
tree | a79282766b8a472494d5ba1f2c65e025b39a66fb /meta | |
parent | 9060bc4b2c3f40145b91fc0423de31b07161b5f5 (diff) | |
download | lua-language-server-7eaec047d708e84a7c29dd9d70e306d90fac412d.zip |
update meta files for `love2d` and `lovr`
Diffstat (limited to 'meta')
-rw-r--r-- | meta/3rd/love2d/library/love.graphics.lua | 2 | ||||
-rw-r--r-- | meta/3rd/love2d/library/love.window.lua | 2 | ||||
-rw-r--r-- | meta/3rd/lovr/library/lovr.audio.lua | 2 | ||||
-rw-r--r-- | meta/3rd/lovr/library/lovr.graphics.lua | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/meta/3rd/love2d/library/love.graphics.lua b/meta/3rd/love2d/library/love.graphics.lua index 056cfef1..1528a181 100644 --- a/meta/3rd/love2d/library/love.graphics.lua +++ b/meta/3rd/love2d/library/love.graphics.lua @@ -569,7 +569,7 @@ function love.graphics.newFont(filename) end ---@overload fun(imageData: love.ImageData, flags: table):love.Image ---@overload fun(compressedImageData: love.CompressedImageData, flags: table):love.Image ---@param filename string # The filepath to the image file. ----@param flags {dpiscale: number, linear: boolean, mipmaps: boolean} # A table containing the following fields: +---@param flags? {dpiscale: number, linear: boolean, mipmaps: boolean} # A table containing the following fields: ---@return love.Image image # A new Image object which can be drawn on screen. function love.graphics.newImage(filename, flags) end diff --git a/meta/3rd/love2d/library/love.window.lua b/meta/3rd/love2d/library/love.window.lua index 0fd99213..0e9004d4 100644 --- a/meta/3rd/love2d/library/love.window.lua +++ b/meta/3rd/love2d/library/love.window.lua @@ -229,7 +229,7 @@ function love.window.setIcon(imagedata) end --- ---@param width number # Display width. ---@param height number # Display height. ----@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: +---@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 diff --git a/meta/3rd/lovr/library/lovr.audio.lua b/meta/3rd/lovr/library/lovr.audio.lua index baac445b..e948e0d4 100644 --- a/meta/3rd/lovr/library/lovr.audio.lua +++ b/meta/3rd/lovr/library/lovr.audio.lua @@ -186,7 +186,7 @@ function lovr.audio.isStarted(type) end ---@overload fun(blob: lovr.Blob, options: table):lovr.Source ---@overload fun(sound: lovr.Sound, options: table):lovr.Source ---@param filename string # The filename of the sound to load. ----@param options {decode: boolean, effects: table} # Optional options. +---@param options? {decode: boolean, effects: table} # Optional options. ---@return lovr.Source source # The new Source. function lovr.audio.newSource(filename, options) end diff --git a/meta/3rd/lovr/library/lovr.graphics.lua b/meta/3rd/lovr/library/lovr.graphics.lua index 42a859a5..658bf2b3 100644 --- a/meta/3rd/lovr/library/lovr.graphics.lua +++ b/meta/3rd/lovr/library/lovr.graphics.lua @@ -129,7 +129,7 @@ function lovr.graphics.compute(shader, x, y, z) end --- ---The window must be created before any `lovr.graphics` functions can be used. --- ----@param flags {width: number, height: number, fullscreen: boolean, resizable: boolean, msaa: number, title: string, icon: string, vsync: number} # Flags to customize the window's appearance and behavior. +---@param flags? {width: number, height: number, fullscreen: boolean, resizable: boolean, msaa: number, title: string, icon: string, vsync: number} # Flags to customize the window's appearance and behavior. function lovr.graphics.createWindow(flags) end --- |