You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: meta/3rd/love2d/library/love.lua
+45-1Lines changed: 45 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,18 @@
1
1
---@meta
2
2
3
3
-- version: 11.4
4
-
4
+
---
5
+
---[Open in Browser](https://love2d.org/wiki/love)
6
+
---
5
7
---@classlove
6
8
love= {}
7
9
8
10
---
9
11
---Gets the current running version of LÖVE.
10
12
---
13
+
---
14
+
---[Open in Browser](https://love2d.org/wiki/love.getVersion)
15
+
---
11
16
---@returnnumber major # The major version of LÖVE, i.e. 0 for version 0.9.1.
12
17
---@returnnumber minor # The minor version of LÖVE, i.e. 9 for version 0.9.1.
13
18
---@returnnumber revision # The revision version of LÖVE, i.e. 1 for version 0.9.1.
@@ -19,12 +24,18 @@ function love.getVersion() end
19
24
---
20
25
---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.
21
26
---
27
+
---
28
+
---[Open in Browser](https://love2d.org/wiki/love.hasDeprecationOutput)
29
+
---
22
30
---@returnboolean enabled # Whether deprecation output is enabled.
23
31
functionlove.hasDeprecationOutput() end
24
32
25
33
---
26
34
---Gets whether the given version is compatible with the current running version of LÖVE.
27
35
---
36
+
---
37
+
---[Open in Browser](https://love2d.org/wiki/love.isVersionCompatible)
---@paramversionstring # The version to check (for example '11.3' or '0.10.2').
30
41
---@returnboolean compatible # Whether the given version is compatible with the current running version of LÖVE.
@@ -35,18 +46,27 @@ function love.isVersionCompatible(version) end
35
46
---
36
47
---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.
37
48
---
49
+
---
50
+
---[Open in Browser](https://love2d.org/wiki/love.setDeprecationOutput)
51
+
---
38
52
---@paramenableboolean # Whether to enable or disable deprecation output.
39
53
functionlove.setDeprecationOutput(enable) end
40
54
41
55
---
42
56
---The superclass of all data.
43
57
---
58
+
---
59
+
---[Open in Browser](https://love2d.org/wiki/love)
60
+
---
44
61
---@classlove.Data:love.Object
45
62
localData= {}
46
63
47
64
---
48
65
---Creates a new copy of the Data object.
49
66
---
67
+
---
68
+
---[Open in Browser](https://love2d.org/wiki/Data:clone)
69
+
---
50
70
---@returnlove.Data clone # The new copy.
51
71
functionData:clone() end
52
72
@@ -55,30 +75,45 @@ function Data:clone() end
55
75
---
56
76
---This function should be preferred instead of Data:getPointer because the latter uses light userdata which can't store more all possible memory addresses on some new ARM64 architectures, when LuaJIT is used.
57
77
---
78
+
---
79
+
---[Open in Browser](https://love2d.org/wiki/Data:getFFIPointer)
80
+
---
58
81
---@returnffi.cdata* pointer # A raw void* pointer to the Data, or nil if FFI is unavailable.
59
82
functionData:getFFIPointer() end
60
83
61
84
---
62
85
---Gets a pointer to the Data. Can be used with libraries such as LuaJIT's FFI.
63
86
---
87
+
---
88
+
---[Open in Browser](https://love2d.org/wiki/Data:getPointer)
89
+
---
64
90
---@returnlightuserdata pointer # A raw pointer to the Data.
65
91
functionData:getPointer() end
66
92
67
93
---
68
94
---Gets the Data's size in bytes.
69
95
---
96
+
---
97
+
---[Open in Browser](https://love2d.org/wiki/Data:getSize)
98
+
---
70
99
---@returnnumber size # The size of the Data in bytes.
71
100
functionData:getSize() end
72
101
73
102
---
74
103
---Gets the full Data as a string.
75
104
---
105
+
---
106
+
---[Open in Browser](https://love2d.org/wiki/Data:getString)
107
+
---
76
108
---@returnstring data # The raw data.
77
109
functionData:getString() end
78
110
79
111
---
80
112
---The superclass of all LÖVE types.
81
113
---
114
+
---
115
+
---[Open in Browser](https://love2d.org/wiki/love)
116
+
---
82
117
---@classlove.Object
83
118
localObject= {}
84
119
@@ -87,18 +122,27 @@ local Object = {}
87
122
---
88
123
---This method can be used to immediately clean up resources without waiting for Lua's garbage collector.
89
124
---
125
+
---
126
+
---[Open in Browser](https://love2d.org/wiki/Object:release)
127
+
---
90
128
---@returnboolean success # True if the object was released by this call, false if it had been previously released.
91
129
functionObject:release() end
92
130
93
131
---
94
132
---Gets the type of the object as a string.
95
133
---
134
+
---
135
+
---[Open in Browser](https://love2d.org/wiki/Object:type)
136
+
---
96
137
---@returnstring type # The type as a string.
97
138
functionObject:type() end
98
139
99
140
---
100
141
---Checks whether an object is of a certain type. If the object has the type with the specified name in its hierarchy, this function will return true.
101
142
---
143
+
---
144
+
---[Open in Browser](https://love2d.org/wiki/Object:typeOf)
145
+
---
102
146
---@paramnamestring # The name of the type to check for.
103
147
---@returnboolean b # True if the object is of the specified type, false otherwise.
Copy file name to clipboardExpand all lines: meta/3rd/love2d/library/love/physics.lua
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3145,8 +3145,8 @@ function World:rayCast(fixture, x, y, xn, yn, fraction) end
3145
3145
---
3146
3146
---@parambeginContactfunction # Gets called when two fixtures begin to overlap.
3147
3147
---@paramendContactfunction # Gets called when two fixtures cease to overlap. This will also be called outside of a world update, when colliding objects are destroyed.
3148
-
---@parampreSolvefunction # Gets called before a collision gets resolved.
3149
-
---@parampostSolvefunction # Gets called after the collision has been resolved.
3148
+
---@parampreSolve?function # Gets called before a collision gets resolved.
3149
+
---@parampostSolve?function # Gets called after the collision has been resolved.
3150
3150
functionWorld:setCallbacks(beginContact, endContact, preSolve, postSolve) end
0 commit comments