diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 22c8faa..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Lua.diagnostics.disable": [ - "lowercase-global" - ] -} \ No newline at end of file diff --git a/def/Object.d.lua b/def/Object.d.lua new file mode 100644 index 0000000..881f492 --- /dev/null +++ b/def/Object.d.lua @@ -0,0 +1,24 @@ +---@diagnostic disable: undefined-field +---@meta +---@module 'classic' + +---@class Object +local Object = {} + +---Create a new instance of the class. +---@return self +function Object:new(...) end + +---Call the super-class constructor. +---@param self Object +function Object.super.new(self, ...) end + +---Create a subclass. +---@return Object # the new subclass (its metatable is set up) +function Object:extend() end + +---Mix-in a table of methods into the class. +---@param mixin table +function Object:implement(mixin) end + +return Object diff --git a/learns.code-workspace b/learns.code-workspace index de0f034..14bcdfd 100644 --- a/learns.code-workspace +++ b/learns.code-workspace @@ -10,8 +10,15 @@ "love.filesystem.load": "loadfile" }, "Lua.diagnostics.globals": ["love"], - "Lua.workspace.library": ["${3rd}/love2d/library"], - "Lua.workspace.checkThirdParty": true + "Lua.workspace.library": [ + "${3rd}/love2d/library", + "${3rd}/classic", + "${workspaceFolder}/def" + ], + "Lua.workspace.checkThirdParty": true, + "Lua.diagnostics.disable": [ + "lowercase-global" + ] }, "launch": { "version": "0.2.0",