summaryrefslogtreecommitdiff
path: root/meta/3rd/love2d/library
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-10 10:16:06 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-10 10:16:06 +0800
commitf616bd2baf6a03324d1d5d6df90607f770ea0a51 (patch)
treeec1867c2af778e240c43ecaa13b13f3ac95eca4a /meta/3rd/love2d/library
parent59ea570897a02fd50fe4a494ba59d28593553b0b (diff)
downloadlua-language-server-f616bd2baf6a03324d1d5d6df90607f770ea0a51.zip
update loveapi
Diffstat (limited to 'meta/3rd/love2d/library')
-rw-r--r--meta/3rd/love2d/library/love.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/3rd/love2d/library/love.lua b/meta/3rd/love2d/library/love.lua
index 6b18e96c..ed26afad 100644
--- a/meta/3rd/love2d/library/love.lua
+++ b/meta/3rd/love2d/library/love.lua
@@ -22,6 +22,14 @@ function love.getVersion() end
function love.hasDeprecationOutput() end
---
+---Gets whether the given version is compatible with the current running version of LÖVE.
+---
+---@overload fun(major: number, minor: number, revision: number):boolean
+---@param version string # The version to check (for example '11.3' or '0.10.2').
+---@return boolean compatible # Whether the given version is compatible with the current running version of LÖVE.
+function love.isVersionCompatible(version) end
+
+---
---Sets whether LÖVE displays warnings when using deprecated functionality. It is disabled by default in fused mode, and enabled by default otherwise.
---
---When deprecation output is enabled, the first use of a formally deprecated LÖVE API will show a message at the bottom of the screen for a short time, and print the message to the console.