-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_object.lua
More file actions
52 lines (41 loc) · 1.38 KB
/
Copy path_object.lua
File metadata and controls
52 lines (41 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
--[[
PlayDate SDK Types Meta-File
A collection of type annotations for the PlayDate SDK
Compatible with SDK 1.12.3
This file should NOT actually be imported; VSCode should automatically reference it for type completion.
Importing this file will likely break things, as some functions are redefined for the sake of providing type definition.
Originally written by Minalien (https://cohost.org/Minalien).
Consider this file public domain.
https://sdk.play.date/1.12.3/Inside%20Playdate.html#api-reference
]]
---@meta
---@class Object
Object = {}
--[[
Override to initialize
]]
function Object:init(...) end
--[[
Override to base a subclass on an already existing table (see CoreLibs: Sprites)
]]
function Object.baseObject() end
--[[
Returns a boolean value that indicates whether the receiver is an instance of Class or an instance of any class that Class inherits from.
]]
---@param class table
function Object:isa(class) end
--[[
debugging convenience function that prints all of the objects key/value pairs, and the key/value pairs for all superclasses
]]
---@param indent? integer
---@param table? table
function Object:tableDump(indent, table) end
---@class PlaydateClass
---@field className string
---@field properties table
---@field namespace table
---@return PlaydateClass
function class() end
PlaydateClass = {}
---@param parent table
function PlaydateClass:extends(parent) end