diff options
-rw-r--r-- | meta/3rd/love2d/library/love.lua | 2 | ||||
-rw-r--r-- | tools/love-api.lua | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/meta/3rd/love2d/library/love.lua b/meta/3rd/love2d/library/love.lua index 2a4aa99d..6b18e96c 100644 --- a/meta/3rd/love2d/library/love.lua +++ b/meta/3rd/love2d/library/love.lua @@ -276,3 +276,5 @@ function Object:typeOf(name) end ---Callback function triggered when the mouse wheel is moved. --- ---@alias love.wheelmoved fun(x: number, y: number) + +return love diff --git a/tools/love-api.lua b/tools/love-api.lua index 67cebeca..bb7f6c8e 100644 --- a/tools/love-api.lua +++ b/tools/love-api.lua @@ -204,6 +204,11 @@ local function buildFile(class, defs) end end + if defs.version then + text[#text+1] = '' + text[#text+1] = ('return %s'):format(class) + end + text[#text+1] = '' fsu.saveFile(filePath, table.concat(text, '\n')) |