@defold-typescript/library-types 0.23.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +2 -3
- package/api-doc/boom.json +3872 -0
- package/api-doc/bridge.json +10 -5
- package/api-doc/bzAnim.json +338 -0
- package/api-doc/checkpoint.json +127 -0
- package/api-doc/decore.json +1 -1
- package/api-doc/defcon.json +150 -0
- package/api-doc/{defmath.defmath.json → defmath.json} +6 -46
- package/api-doc/defsave.json +518 -0
- package/api-doc/deftest.json +745 -0
- package/api-doc/{dicebag.dicebag.json → dicebag.json} +19 -1
- package/api-doc/druid.json +90 -92
- package/api-doc/event.json +16 -16
- package/api-doc/gooey.json +2050 -0
- package/api-doc/in.accelerometer.json +75 -1
- package/api-doc/in.button.json +17 -10
- package/api-doc/in.cursor.json +26 -0
- package/api-doc/in.gesture.json +401 -6
- package/api-doc/in.keyboard.json +2 -0
- package/api-doc/in.mapper.json +12 -8
- package/api-doc/in.onscreen.json +61 -5
- package/api-doc/in.state.json +61 -13
- package/api-doc/in.textbox.json +23 -12
- package/api-doc/in.triggers.json +336 -0
- package/api-doc/lang.json +5 -5
- package/api-doc/log.json +1 -1
- package/api-doc/metrics.fps.json +61 -2
- package/api-doc/metrics.mem.json +61 -2
- package/api-doc/monarch.monarch.json +249 -7
- package/api-doc/monarch.transitions.easings.json +19 -26
- package/api-doc/monarch.transitions.gui.json +782 -79
- package/api-doc/nakama.engine.defold.json +31 -18
- package/api-doc/{nakama.nakama.json → nakama.json} +4752 -2554
- package/api-doc/nakama.session.json +315 -0
- package/api-doc/nakama.socket.json +3356 -0
- package/api-doc/nakama.util.log.json +32 -4
- package/api-doc/narrator.json +1 -1
- package/api-doc/openapi/nakama.nakama.json +7680 -0
- package/api-doc/orthographic.camera.json +96 -98
- package/api-doc/orthographic.json +602 -0
- package/api-doc/panthera.json +1183 -0
- package/api-doc/{persist.persist.json → persist.json} +26 -1
- package/api-doc/{platypus.platypus.json → platypus.json} +68 -14
- package/api-doc/{rendy.rendy.json → rendy.json} +46 -99
- package/api-doc/richtext.color.json +77 -0
- package/api-doc/richtext.richtext.json +375 -5
- package/api-doc/saver.saver.json +2 -1
- package/api-doc/saver.storage.json +2 -1
- package/api-doc/shutter.json +551 -0
- package/api-doc/{yagames.yagames.json → yagames.json} +784 -189
- package/api-doc/{zzfx.api.json → zzfx.json} +9 -9
- package/authored-targets.json +433 -0
- package/generated/{boom.boom.d.ts → boom.d.ts} +14 -0
- package/generated/bridge.d.ts +5 -5
- package/generated/{bzAnim.bzLibrary.d.ts → bzAnim.d.ts} +6 -0
- package/generated/checkpoint.d.ts +62 -0
- package/generated/decore.d.ts +1 -1
- package/generated/defcon.d.ts +43 -0
- package/generated/{defmath.defmath.d.ts → defmath.d.ts} +3 -2
- package/generated/defsave.d.ts +144 -0
- package/generated/{dicebag.dicebag.d.ts → dicebag.d.ts} +25 -0
- package/generated/druid.d.ts +81 -79
- package/generated/event.d.ts +15 -15
- package/generated/{gooey.gooey.d.ts → gooey.d.ts} +61 -6
- package/generated/in.onscreen.d.ts +5 -0
- package/generated/in.textbox.d.ts +4 -0
- package/generated/lang.d.ts +5 -5
- package/generated/log.d.ts +1 -1
- package/generated/metrics.fps.d.ts +19 -1
- package/generated/metrics.mem.d.ts +19 -1
- package/generated/monarch.monarch.d.ts +44 -1
- package/generated/monarch.transitions.easings.d.ts +0 -1
- package/generated/monarch.transitions.gui.d.ts +96 -12
- package/generated/nakama.d.ts +1158 -0
- package/generated/nakama.engine.defold.d.ts +3 -1
- package/generated/nakama.session.d.ts +95 -0
- package/generated/nakama.socket.d.ts +706 -0
- package/generated/nakama.util.log.d.ts +6 -0
- package/generated/narrator.d.ts +1 -1
- package/generated/openapi/nakama.nakama.d.ts +884 -0
- package/generated/orthographic.camera.d.ts +24 -38
- package/generated/orthographic.d.ts +155 -0
- package/generated/panthera.d.ts +170 -0
- package/generated/{persist.persist.d.ts → persist.d.ts} +3 -0
- package/generated/{platypus.platypus.d.ts → platypus.d.ts} +9 -0
- package/generated/proto.d.ts +4 -4
- package/generated/{rendy.rendy.d.ts → rendy.d.ts} +33 -80
- package/generated/richtext.color.d.ts +15 -0
- package/generated/saver.saver.d.ts +2 -0
- package/generated/saver.storage.d.ts +2 -0
- package/generated/shutter.d.ts +183 -0
- package/generated/{yagames.yagames.d.ts → yagames.d.ts} +151 -29
- package/generated/{zzfx.api.d.ts → zzfx.d.ts} +7 -0
- package/library-classification.json +0 -156
- package/library-targets.json +1 -218
- package/luals-targets.json +56 -3
- package/openapi-targets.json +17 -0
- package/package.json +7 -57
- package/scripts/__snapshots__/parse-luals.test.ts.snap +164 -10
- package/scripts/apply-luals-overrides.ts +39 -7
- package/scripts/authored-parity.ts +718 -0
- package/scripts/emit-library-dts.ts +94 -17
- package/scripts/extract-api-doc.ts +214 -42
- package/scripts/fidelity-floor.ts +178 -0
- package/scripts/import-upstream-docs.ts +125 -0
- package/scripts/lower-api-doc.ts +21 -3
- package/scripts/luals-fidelity.ts +16 -11
- package/scripts/map-luals-types.ts +52 -21
- package/scripts/parse-lua-surface.ts +187 -0
- package/scripts/parse-luals.ts +50 -4
- package/scripts/parse-markdown-api.ts +247 -0
- package/scripts/parse-openapi-api.ts +313 -0
- package/scripts/sync-authored-types.ts +249 -0
- package/scripts/sync-library-types.ts +99 -3
- package/scripts/sync-luals-types.ts +14 -1
- package/scripts/sync-markdown-types.ts +761 -0
- package/scripts/sync-openapi-types.ts +308 -0
- package/scripts/sync-script-api-types.ts +16 -17
- package/api-doc/boom.boom.json +0 -26
- package/api-doc/bzAnim.bzLibrary.json +0 -156
- package/api-doc/defcon.console.json +0 -109
- package/api-doc/defsave.defsave.json +0 -175
- package/api-doc/deftest.deftest.json +0 -71
- package/api-doc/gooey.gooey.json +0 -963
- package/api-doc/starly.starly.json +0 -488
- package/generated/defcon.console.d.ts +0 -24
- package/generated/defsave.defsave.d.ts +0 -31
- package/generated/nakama.nakama.d.ts +0 -594
- package/generated/starly.starly.d.ts +0 -148
- /package/generated/{deftest.deftest.d.ts → deftest.d.ts} +0 -0
|
@@ -1,488 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"info": {
|
|
3
|
-
"namespace": "starly.starly",
|
|
4
|
-
"brief": "",
|
|
5
|
-
"description": ""
|
|
6
|
-
},
|
|
7
|
-
"elements": [
|
|
8
|
-
{
|
|
9
|
-
"type": "TYPEDEF",
|
|
10
|
-
"name": "CameraMap"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"type": "TYPEDEF",
|
|
14
|
-
"name": "Starley"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"type": "VARIABLE",
|
|
18
|
-
"name": "c_display_width",
|
|
19
|
-
"types": [
|
|
20
|
-
"number"
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"type": "VARIABLE",
|
|
25
|
-
"name": "c_display_height",
|
|
26
|
-
"types": [
|
|
27
|
-
"number"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"type": "VARIABLE",
|
|
32
|
-
"name": "c_display_ratio",
|
|
33
|
-
"types": [
|
|
34
|
-
"number"
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"type": "VARIABLE",
|
|
39
|
-
"name": "c_behavior_center",
|
|
40
|
-
"types": [
|
|
41
|
-
"Hash"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"type": "VARIABLE",
|
|
46
|
-
"name": "c_behavior_expand",
|
|
47
|
-
"types": [
|
|
48
|
-
"Hash"
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"type": "VARIABLE",
|
|
53
|
-
"name": "c_behavior_mixed",
|
|
54
|
-
"types": [
|
|
55
|
-
"Hash"
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"type": "VARIABLE",
|
|
60
|
-
"name": "c_behavior_stretch",
|
|
61
|
-
"types": [
|
|
62
|
-
"Hash"
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"type": "FUNCTION",
|
|
67
|
-
"name": "create",
|
|
68
|
-
"brief": "Creates a camera. This function is called automatically in the game object's script component.",
|
|
69
|
-
"description": "Creates a camera. This function is called automatically in the game object's script component.",
|
|
70
|
-
"parameters": [
|
|
71
|
-
{
|
|
72
|
-
"name": "id",
|
|
73
|
-
"doc": "Camera game object id.",
|
|
74
|
-
"types": [
|
|
75
|
-
"Hash"
|
|
76
|
-
],
|
|
77
|
-
"is_optional": "False"
|
|
78
|
-
}
|
|
79
|
-
],
|
|
80
|
-
"returnvalues": []
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"type": "FUNCTION",
|
|
84
|
-
"name": "destroy",
|
|
85
|
-
"brief": "Destroys a camera. This function is called automatically in the game object's script component.",
|
|
86
|
-
"description": "Destroys a camera. This function is called automatically in the game object's script component.",
|
|
87
|
-
"parameters": [
|
|
88
|
-
{
|
|
89
|
-
"name": "id",
|
|
90
|
-
"doc": "Camera game object id.",
|
|
91
|
-
"types": [
|
|
92
|
-
"Hash"
|
|
93
|
-
],
|
|
94
|
-
"is_optional": "False"
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
"returnvalues": []
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"type": "FUNCTION",
|
|
101
|
-
"name": "activate",
|
|
102
|
-
"brief": "Activates a camera. This function should be called in the render script before any making any draw calls.",
|
|
103
|
-
"description": "Activates a camera. This function should be called in the render script before any making any draw calls.",
|
|
104
|
-
"parameters": [
|
|
105
|
-
{
|
|
106
|
-
"name": "id",
|
|
107
|
-
"doc": "Camera game object id.",
|
|
108
|
-
"types": [
|
|
109
|
-
"Hash"
|
|
110
|
-
],
|
|
111
|
-
"is_optional": "False"
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"returnvalues": [
|
|
115
|
-
{
|
|
116
|
-
"name": "",
|
|
117
|
-
"doc": "frustum",
|
|
118
|
-
"types": [
|
|
119
|
-
"Matrix4"
|
|
120
|
-
]
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"type": "FUNCTION",
|
|
126
|
-
"name": "shake",
|
|
127
|
-
"brief": "Shakes a camera.",
|
|
128
|
-
"description": "Shakes a camera.",
|
|
129
|
-
"parameters": [
|
|
130
|
-
{
|
|
131
|
-
"name": "id",
|
|
132
|
-
"doc": "Camera game object id.",
|
|
133
|
-
"types": [
|
|
134
|
-
"Hash"
|
|
135
|
-
],
|
|
136
|
-
"is_optional": "False"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"name": "count",
|
|
140
|
-
"doc": "Amount of pingpong movements.",
|
|
141
|
-
"types": [
|
|
142
|
-
"number"
|
|
143
|
-
],
|
|
144
|
-
"is_optional": "False"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"name": "duration",
|
|
148
|
-
"doc": "Duration of each pingpong.",
|
|
149
|
-
"types": [
|
|
150
|
-
"number"
|
|
151
|
-
],
|
|
152
|
-
"is_optional": "False"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"name": "radius",
|
|
156
|
-
"doc": "Distance of each pingpong.",
|
|
157
|
-
"types": [
|
|
158
|
-
"number"
|
|
159
|
-
],
|
|
160
|
-
"is_optional": "False"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"name": "durationScalar",
|
|
164
|
-
"doc": "After each pingpong, the duration is scaled by this value.",
|
|
165
|
-
"types": [
|
|
166
|
-
"number"
|
|
167
|
-
],
|
|
168
|
-
"is_optional": "True"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"name": "radiusScalar",
|
|
172
|
-
"doc": "After each pingpong, the radius is scaled by this value.",
|
|
173
|
-
"types": [
|
|
174
|
-
"number"
|
|
175
|
-
],
|
|
176
|
-
"is_optional": "True"
|
|
177
|
-
}
|
|
178
|
-
],
|
|
179
|
-
"returnvalues": []
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"type": "FUNCTION",
|
|
183
|
-
"name": "cancel_shake",
|
|
184
|
-
"brief": "Cancels an ongoing camera shake.",
|
|
185
|
-
"description": "Cancels an ongoing camera shake.",
|
|
186
|
-
"parameters": [
|
|
187
|
-
{
|
|
188
|
-
"name": "id",
|
|
189
|
-
"doc": "Camera game object id.",
|
|
190
|
-
"types": [
|
|
191
|
-
"Hash"
|
|
192
|
-
],
|
|
193
|
-
"is_optional": "False"
|
|
194
|
-
}
|
|
195
|
-
],
|
|
196
|
-
"returnvalues": []
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"type": "FUNCTION",
|
|
200
|
-
"name": "is_shaking",
|
|
201
|
-
"brief": "Checks if a camera is shaking.",
|
|
202
|
-
"description": "Checks if a camera is shaking.",
|
|
203
|
-
"parameters": [
|
|
204
|
-
{
|
|
205
|
-
"name": "id",
|
|
206
|
-
"doc": "Camera game object id.",
|
|
207
|
-
"types": [
|
|
208
|
-
"Hash"
|
|
209
|
-
],
|
|
210
|
-
"is_optional": "False"
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
"returnvalues": [
|
|
214
|
-
{
|
|
215
|
-
"name": "",
|
|
216
|
-
"doc": "",
|
|
217
|
-
"types": [
|
|
218
|
-
"boolean"
|
|
219
|
-
]
|
|
220
|
-
}
|
|
221
|
-
]
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
"type": "FUNCTION",
|
|
225
|
-
"name": "get_offset",
|
|
226
|
-
"brief": "Gets the position offset of a camera after moving distance units, accounting for zoom and rotation.",
|
|
227
|
-
"description": "Gets the position offset of a camera after moving distance units, accounting for zoom and rotation.",
|
|
228
|
-
"parameters": [
|
|
229
|
-
{
|
|
230
|
-
"name": "id",
|
|
231
|
-
"doc": "Camera game object id.",
|
|
232
|
-
"types": [
|
|
233
|
-
"Hash"
|
|
234
|
-
],
|
|
235
|
-
"is_optional": "False"
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"name": "distance",
|
|
239
|
-
"doc": "Position offset, before accounting for zoom and rotation.",
|
|
240
|
-
"types": [
|
|
241
|
-
"Vector3"
|
|
242
|
-
],
|
|
243
|
-
"is_optional": "False"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"name": "absolute",
|
|
247
|
-
"doc": "Determines if `distance` is in absolute world coordinates, which ignore rotation.",
|
|
248
|
-
"types": [
|
|
249
|
-
"boolean"
|
|
250
|
-
],
|
|
251
|
-
"is_optional": "False"
|
|
252
|
-
}
|
|
253
|
-
],
|
|
254
|
-
"returnvalues": [
|
|
255
|
-
{
|
|
256
|
-
"name": "",
|
|
257
|
-
"doc": "",
|
|
258
|
-
"types": [
|
|
259
|
-
"Vector3"
|
|
260
|
-
]
|
|
261
|
-
}
|
|
262
|
-
]
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
"type": "FUNCTION",
|
|
266
|
-
"name": "get_world_area",
|
|
267
|
-
"brief": "Gets the world area of a camera, which is defined as the rectangular area of the world that the camera can see, in world coordinates.",
|
|
268
|
-
"description": "Gets the world area of a camera, which is defined as the rectangular area of the world that the camera can see, in world coordinates.",
|
|
269
|
-
"parameters": [
|
|
270
|
-
{
|
|
271
|
-
"name": "id",
|
|
272
|
-
"doc": "Camera game object id.",
|
|
273
|
-
"types": [
|
|
274
|
-
"Hash"
|
|
275
|
-
],
|
|
276
|
-
"is_optional": "False"
|
|
277
|
-
}
|
|
278
|
-
],
|
|
279
|
-
"returnvalues": [
|
|
280
|
-
{
|
|
281
|
-
"name": "",
|
|
282
|
-
"doc": "x, y, width, height",
|
|
283
|
-
"types": [
|
|
284
|
-
"LuaMultiReturn<[ number, number, number, number ]>"
|
|
285
|
-
]
|
|
286
|
-
}
|
|
287
|
-
]
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"type": "FUNCTION",
|
|
291
|
-
"name": "get_tight_world_area",
|
|
292
|
-
"brief": "Gets the center position, minimum zoom, and minimum world area of a camera that can see all positions.",
|
|
293
|
-
"description": "Gets the center position, minimum zoom, and minimum world area of a camera that can see all positions.\n\nThis function was inspired by Super Smash Bros, where the camera moves and zooms to center and include all characters, with only a small amount of padding to the sides of the window.",
|
|
294
|
-
"parameters": [
|
|
295
|
-
{
|
|
296
|
-
"name": "id",
|
|
297
|
-
"doc": "Camera game object id.",
|
|
298
|
-
"types": [
|
|
299
|
-
"Hash"
|
|
300
|
-
],
|
|
301
|
-
"is_optional": "False"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
"name": "positions",
|
|
305
|
-
"doc": "Array of `vector3` positions, in world coordinates.",
|
|
306
|
-
"types": [
|
|
307
|
-
"Vector3[]"
|
|
308
|
-
],
|
|
309
|
-
"is_optional": "False"
|
|
310
|
-
}
|
|
311
|
-
],
|
|
312
|
-
"returnvalues": [
|
|
313
|
-
{
|
|
314
|
-
"name": "",
|
|
315
|
-
"doc": "position, zoom, x, y, width, height",
|
|
316
|
-
"types": [
|
|
317
|
-
"LuaMultiReturn<[ Vector3, number, number, number, number, number ]>"
|
|
318
|
-
]
|
|
319
|
-
}
|
|
320
|
-
]
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
"type": "FUNCTION",
|
|
324
|
-
"name": "screen_to_world",
|
|
325
|
-
"brief": "Converts screen coordinates to world coordinates.",
|
|
326
|
-
"description": "Converts screen coordinates to world coordinates.",
|
|
327
|
-
"parameters": [
|
|
328
|
-
{
|
|
329
|
-
"name": "id",
|
|
330
|
-
"doc": "Camera game object id.",
|
|
331
|
-
"types": [
|
|
332
|
-
"Hash"
|
|
333
|
-
],
|
|
334
|
-
"is_optional": "False"
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
"name": "screenX",
|
|
338
|
-
"doc": "",
|
|
339
|
-
"types": [
|
|
340
|
-
"number"
|
|
341
|
-
],
|
|
342
|
-
"is_optional": "False"
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
"name": "screenY",
|
|
346
|
-
"doc": "",
|
|
347
|
-
"types": [
|
|
348
|
-
"number"
|
|
349
|
-
],
|
|
350
|
-
"is_optional": "False"
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
"name": "visible",
|
|
354
|
-
"doc": "Determines if the cursor must be visible to the camera. If `true`, then this function returns `undefined` when the cursor is outside the camera's viewport.",
|
|
355
|
-
"types": [
|
|
356
|
-
"boolean"
|
|
357
|
-
],
|
|
358
|
-
"is_optional": "True"
|
|
359
|
-
}
|
|
360
|
-
],
|
|
361
|
-
"returnvalues": [
|
|
362
|
-
{
|
|
363
|
-
"name": "",
|
|
364
|
-
"doc": "",
|
|
365
|
-
"types": [
|
|
366
|
-
"Vector3 | undefined"
|
|
367
|
-
]
|
|
368
|
-
}
|
|
369
|
-
]
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
"type": "FUNCTION",
|
|
373
|
-
"name": "world_to_screen",
|
|
374
|
-
"brief": "Converts world coordinates to screen coordinates.",
|
|
375
|
-
"description": "Converts world coordinates to screen coordinates.",
|
|
376
|
-
"parameters": [
|
|
377
|
-
{
|
|
378
|
-
"name": "id",
|
|
379
|
-
"doc": "Camera game object id.",
|
|
380
|
-
"types": [
|
|
381
|
-
"Hash"
|
|
382
|
-
],
|
|
383
|
-
"is_optional": "False"
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
"name": "worldPosition",
|
|
387
|
-
"doc": "",
|
|
388
|
-
"types": [
|
|
389
|
-
"Vector3"
|
|
390
|
-
],
|
|
391
|
-
"is_optional": "False"
|
|
392
|
-
},
|
|
393
|
-
{
|
|
394
|
-
"name": "visible",
|
|
395
|
-
"doc": "Determines if the cursor must be visible to the camera. If `true`, then this function returns `undefined` when the cursor is outside the camera's viewport.",
|
|
396
|
-
"types": [
|
|
397
|
-
"boolean"
|
|
398
|
-
],
|
|
399
|
-
"is_optional": "True"
|
|
400
|
-
}
|
|
401
|
-
],
|
|
402
|
-
"returnvalues": [
|
|
403
|
-
{
|
|
404
|
-
"name": "",
|
|
405
|
-
"doc": "",
|
|
406
|
-
"types": [
|
|
407
|
-
"Vector3 | undefined"
|
|
408
|
-
]
|
|
409
|
-
}
|
|
410
|
-
]
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
"type": "FUNCTION",
|
|
414
|
-
"name": "get_viewport",
|
|
415
|
-
"brief": "Gets the viewport of a camera, in screen coordinates.",
|
|
416
|
-
"description": "Gets the viewport of a camera, in screen coordinates.",
|
|
417
|
-
"parameters": [
|
|
418
|
-
{
|
|
419
|
-
"name": "id",
|
|
420
|
-
"doc": "Camera game object id.",
|
|
421
|
-
"types": [
|
|
422
|
-
"Hash"
|
|
423
|
-
],
|
|
424
|
-
"is_optional": "False"
|
|
425
|
-
}
|
|
426
|
-
],
|
|
427
|
-
"returnvalues": [
|
|
428
|
-
{
|
|
429
|
-
"name": "",
|
|
430
|
-
"doc": "x, y, width, height",
|
|
431
|
-
"types": [
|
|
432
|
-
"LuaMultiReturn<[ number, number, number, number ]>"
|
|
433
|
-
]
|
|
434
|
-
}
|
|
435
|
-
]
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
"type": "FUNCTION",
|
|
439
|
-
"name": "get_view",
|
|
440
|
-
"brief": "Gets the view of a camera.",
|
|
441
|
-
"description": "Gets the view of a camera.",
|
|
442
|
-
"parameters": [
|
|
443
|
-
{
|
|
444
|
-
"name": "id",
|
|
445
|
-
"doc": "Camera game object id.",
|
|
446
|
-
"types": [
|
|
447
|
-
"Hash"
|
|
448
|
-
],
|
|
449
|
-
"is_optional": "False"
|
|
450
|
-
}
|
|
451
|
-
],
|
|
452
|
-
"returnvalues": [
|
|
453
|
-
{
|
|
454
|
-
"name": "",
|
|
455
|
-
"doc": "",
|
|
456
|
-
"types": [
|
|
457
|
-
"Matrix4"
|
|
458
|
-
]
|
|
459
|
-
}
|
|
460
|
-
]
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
"type": "FUNCTION",
|
|
464
|
-
"name": "get_projection",
|
|
465
|
-
"brief": "Gets the projection of a camera.",
|
|
466
|
-
"description": "Gets the projection of a camera.",
|
|
467
|
-
"parameters": [
|
|
468
|
-
{
|
|
469
|
-
"name": "id",
|
|
470
|
-
"doc": "Camera game object id.",
|
|
471
|
-
"types": [
|
|
472
|
-
"Hash"
|
|
473
|
-
],
|
|
474
|
-
"is_optional": "False"
|
|
475
|
-
}
|
|
476
|
-
],
|
|
477
|
-
"returnvalues": [
|
|
478
|
-
{
|
|
479
|
-
"name": "",
|
|
480
|
-
"doc": "",
|
|
481
|
-
"types": [
|
|
482
|
-
"Matrix4"
|
|
483
|
-
]
|
|
484
|
-
}
|
|
485
|
-
]
|
|
486
|
-
}
|
|
487
|
-
]
|
|
488
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** @noSelfInFile **/
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @see {@link https://github.com/britzl/defcon|Github Source}
|
|
5
|
-
* @noResolution
|
|
6
|
-
*/
|
|
7
|
-
declare module 'defcon.console' {
|
|
8
|
-
/** @noSelf */
|
|
9
|
-
export interface CommandCallback {
|
|
10
|
-
(args: Array<string>, stream: unknown): string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function start(port: number): void;
|
|
14
|
-
|
|
15
|
-
export function stop(): void;
|
|
16
|
-
|
|
17
|
-
export function update(): void;
|
|
18
|
-
|
|
19
|
-
export function register_module(module: unknown): void;
|
|
20
|
-
|
|
21
|
-
export function register_command(command: string, description: string, callback: CommandCallback): void;
|
|
22
|
-
|
|
23
|
-
export function set_environment(env: unknown): void;
|
|
24
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/** @noSelfInFile **/
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Save and load config and user data persistently between a Defold project's sessions
|
|
5
|
-
* @see {@link https://github.com/subsoap/defsave|Github Source}
|
|
6
|
-
* @noResolution
|
|
7
|
-
*/
|
|
8
|
-
declare module "defsave.defsave" {
|
|
9
|
-
export let appname: string;
|
|
10
|
-
|
|
11
|
-
export function set_appname(name: string): void;
|
|
12
|
-
|
|
13
|
-
export function load(config: string): unknown;
|
|
14
|
-
|
|
15
|
-
export function get(config: string, name: string): unknown;
|
|
16
|
-
|
|
17
|
-
export function set(config: string, name: string, value: any): void;
|
|
18
|
-
|
|
19
|
-
export function save(config: string): void;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* You can save all files at once. By default, it will only actually save files with changes, but you can force saving all files by setting the force flag to true.
|
|
23
|
-
* @param all_files false only saves changed files and true saves all files
|
|
24
|
-
*/
|
|
25
|
-
export function save_all(all_files?: boolean): void;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* In your update, if you want autosave to be enabled, you will need to include
|
|
29
|
-
*/
|
|
30
|
-
export function update(dt: number): void;
|
|
31
|
-
}
|