@defold-typescript/library-types 0.18.1

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.
Files changed (101) hide show
  1. package/NOTICE +52 -0
  2. package/README.md +78 -0
  3. package/api-doc/boom.boom.json +26 -0
  4. package/api-doc/bridge.bridge.json +1653 -0
  5. package/api-doc/bzAnim.bzLibrary.json +156 -0
  6. package/api-doc/defcon.console.json +109 -0
  7. package/api-doc/defmath.defmath.json +1381 -0
  8. package/api-doc/defsave.defsave.json +175 -0
  9. package/api-doc/deftest.deftest.json +71 -0
  10. package/api-doc/dicebag.dicebag.json +323 -0
  11. package/api-doc/event.event.json +238 -0
  12. package/api-doc/gooey.gooey.json +963 -0
  13. package/api-doc/immutable.immutable.json +63 -0
  14. package/api-doc/in.accelerometer.json +281 -0
  15. package/api-doc/in.button.json +148 -0
  16. package/api-doc/in.cursor.json +203 -0
  17. package/api-doc/in.gesture.json +206 -0
  18. package/api-doc/in.keyboard.json +45 -0
  19. package/api-doc/in.mapper.json +141 -0
  20. package/api-doc/in.onscreen.json +265 -0
  21. package/api-doc/in.state.json +195 -0
  22. package/api-doc/in.textbox.json +213 -0
  23. package/api-doc/in.triggers.json +1260 -0
  24. package/api-doc/lang.lang.json +411 -0
  25. package/api-doc/log.log.json +50 -0
  26. package/api-doc/metrics.fps.json +88 -0
  27. package/api-doc/metrics.mem.json +80 -0
  28. package/api-doc/monarch.monarch.json +1065 -0
  29. package/api-doc/monarch.transitions.easings.json +206 -0
  30. package/api-doc/monarch.transitions.gui.json +445 -0
  31. package/api-doc/nakama.engine.defold.json +165 -0
  32. package/api-doc/nakama.nakama.json +6574 -0
  33. package/api-doc/nakama.util.log.json +25 -0
  34. package/api-doc/narrator.narrator.json +150 -0
  35. package/api-doc/orthographic.camera.json +1019 -0
  36. package/api-doc/persist.persist.json +142 -0
  37. package/api-doc/platypus.platypus.json +631 -0
  38. package/api-doc/proto.proto.json +355 -0
  39. package/api-doc/rendy.rendy.json +408 -0
  40. package/api-doc/richtext.color.json +219 -0
  41. package/api-doc/richtext.richtext.json +382 -0
  42. package/api-doc/richtext.tags.json +67 -0
  43. package/api-doc/saver.saver.json +553 -0
  44. package/api-doc/saver.storage.json +174 -0
  45. package/api-doc/squid.squid.json +660 -0
  46. package/api-doc/starly.starly.json +488 -0
  47. package/api-doc/tweener.tweener.json +419 -0
  48. package/api-doc/yagames.yagames.json +1465 -0
  49. package/api-doc/zzfx.api.json +85 -0
  50. package/generated/boom.boom.d.ts +1585 -0
  51. package/generated/bridge.bridge.d.ts +533 -0
  52. package/generated/bzAnim.bzLibrary.d.ts +93 -0
  53. package/generated/defcon.console.d.ts +24 -0
  54. package/generated/defmath.defmath.d.ts +194 -0
  55. package/generated/defsave.defsave.d.ts +31 -0
  56. package/generated/deftest.deftest.d.ts +47 -0
  57. package/generated/dicebag.dicebag.d.ts +90 -0
  58. package/generated/event.event.d.ts +54 -0
  59. package/generated/gooey.gooey.d.ts +261 -0
  60. package/generated/immutable.immutable.d.ts +13 -0
  61. package/generated/in.accelerometer.d.ts +37 -0
  62. package/generated/in.button.d.ts +20 -0
  63. package/generated/in.cursor.d.ts +33 -0
  64. package/generated/in.gesture.d.ts +64 -0
  65. package/generated/in.keyboard.d.ts +18 -0
  66. package/generated/in.mapper.d.ts +23 -0
  67. package/generated/in.onscreen.d.ts +58 -0
  68. package/generated/in.state.d.ts +34 -0
  69. package/generated/in.textbox.d.ts +26 -0
  70. package/generated/in.triggers.d.ts +180 -0
  71. package/generated/lang.lang.d.ts +33 -0
  72. package/generated/log.log.d.ts +40 -0
  73. package/generated/metrics.fps.d.ts +16 -0
  74. package/generated/metrics.mem.d.ts +16 -0
  75. package/generated/monarch.monarch.d.ts +412 -0
  76. package/generated/monarch.transitions.easings.d.ts +65 -0
  77. package/generated/monarch.transitions.gui.d.ts +197 -0
  78. package/generated/nakama.engine.defold.d.ts +24 -0
  79. package/generated/nakama.nakama.d.ts +594 -0
  80. package/generated/nakama.util.log.d.ts +10 -0
  81. package/generated/narrator.narrator.d.ts +66 -0
  82. package/generated/orthographic.camera.d.ts +308 -0
  83. package/generated/persist.persist.d.ts +34 -0
  84. package/generated/platypus.platypus.d.ts +76 -0
  85. package/generated/proto.proto.d.ts +36 -0
  86. package/generated/rendy.rendy.d.ts +184 -0
  87. package/generated/richtext.color.d.ts +33 -0
  88. package/generated/richtext.richtext.d.ts +126 -0
  89. package/generated/richtext.tags.d.ts +12 -0
  90. package/generated/saver.saver.d.ts +44 -0
  91. package/generated/saver.storage.d.ts +16 -0
  92. package/generated/squid.squid.d.ts +106 -0
  93. package/generated/starly.starly.d.ts +148 -0
  94. package/generated/tweener.tweener.d.ts +151 -0
  95. package/generated/yagames.yagames.d.ts +279 -0
  96. package/generated/zzfx.api.d.ts +20 -0
  97. package/library-classification.json +726 -0
  98. package/library-targets.json +291 -0
  99. package/package.json +180 -0
  100. package/scripts/extract-api-doc.ts +418 -0
  101. package/scripts/sync-library-types.ts +542 -0
@@ -0,0 +1,488 @@
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
+ }