@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.
Files changed (130) hide show
  1. package/NOTICE +2 -3
  2. package/api-doc/boom.json +3872 -0
  3. package/api-doc/bridge.json +10 -5
  4. package/api-doc/bzAnim.json +338 -0
  5. package/api-doc/checkpoint.json +127 -0
  6. package/api-doc/decore.json +1 -1
  7. package/api-doc/defcon.json +150 -0
  8. package/api-doc/{defmath.defmath.json → defmath.json} +6 -46
  9. package/api-doc/defsave.json +518 -0
  10. package/api-doc/deftest.json +745 -0
  11. package/api-doc/{dicebag.dicebag.json → dicebag.json} +19 -1
  12. package/api-doc/druid.json +90 -92
  13. package/api-doc/event.json +16 -16
  14. package/api-doc/gooey.json +2050 -0
  15. package/api-doc/in.accelerometer.json +75 -1
  16. package/api-doc/in.button.json +17 -10
  17. package/api-doc/in.cursor.json +26 -0
  18. package/api-doc/in.gesture.json +401 -6
  19. package/api-doc/in.keyboard.json +2 -0
  20. package/api-doc/in.mapper.json +12 -8
  21. package/api-doc/in.onscreen.json +61 -5
  22. package/api-doc/in.state.json +61 -13
  23. package/api-doc/in.textbox.json +23 -12
  24. package/api-doc/in.triggers.json +336 -0
  25. package/api-doc/lang.json +5 -5
  26. package/api-doc/log.json +1 -1
  27. package/api-doc/metrics.fps.json +61 -2
  28. package/api-doc/metrics.mem.json +61 -2
  29. package/api-doc/monarch.monarch.json +249 -7
  30. package/api-doc/monarch.transitions.easings.json +19 -26
  31. package/api-doc/monarch.transitions.gui.json +782 -79
  32. package/api-doc/nakama.engine.defold.json +31 -18
  33. package/api-doc/{nakama.nakama.json → nakama.json} +4752 -2554
  34. package/api-doc/nakama.session.json +315 -0
  35. package/api-doc/nakama.socket.json +3356 -0
  36. package/api-doc/nakama.util.log.json +32 -4
  37. package/api-doc/narrator.json +1 -1
  38. package/api-doc/openapi/nakama.nakama.json +7680 -0
  39. package/api-doc/orthographic.camera.json +96 -98
  40. package/api-doc/orthographic.json +602 -0
  41. package/api-doc/panthera.json +1183 -0
  42. package/api-doc/{persist.persist.json → persist.json} +26 -1
  43. package/api-doc/{platypus.platypus.json → platypus.json} +68 -14
  44. package/api-doc/{rendy.rendy.json → rendy.json} +46 -99
  45. package/api-doc/richtext.color.json +77 -0
  46. package/api-doc/richtext.richtext.json +375 -5
  47. package/api-doc/saver.saver.json +2 -1
  48. package/api-doc/saver.storage.json +2 -1
  49. package/api-doc/shutter.json +551 -0
  50. package/api-doc/{yagames.yagames.json → yagames.json} +784 -189
  51. package/api-doc/{zzfx.api.json → zzfx.json} +9 -9
  52. package/authored-targets.json +433 -0
  53. package/generated/{boom.boom.d.ts → boom.d.ts} +14 -0
  54. package/generated/bridge.d.ts +5 -5
  55. package/generated/{bzAnim.bzLibrary.d.ts → bzAnim.d.ts} +6 -0
  56. package/generated/checkpoint.d.ts +62 -0
  57. package/generated/decore.d.ts +1 -1
  58. package/generated/defcon.d.ts +43 -0
  59. package/generated/{defmath.defmath.d.ts → defmath.d.ts} +3 -2
  60. package/generated/defsave.d.ts +144 -0
  61. package/generated/{dicebag.dicebag.d.ts → dicebag.d.ts} +25 -0
  62. package/generated/druid.d.ts +81 -79
  63. package/generated/event.d.ts +15 -15
  64. package/generated/{gooey.gooey.d.ts → gooey.d.ts} +61 -6
  65. package/generated/in.onscreen.d.ts +5 -0
  66. package/generated/in.textbox.d.ts +4 -0
  67. package/generated/lang.d.ts +5 -5
  68. package/generated/log.d.ts +1 -1
  69. package/generated/metrics.fps.d.ts +19 -1
  70. package/generated/metrics.mem.d.ts +19 -1
  71. package/generated/monarch.monarch.d.ts +44 -1
  72. package/generated/monarch.transitions.easings.d.ts +0 -1
  73. package/generated/monarch.transitions.gui.d.ts +96 -12
  74. package/generated/nakama.d.ts +1158 -0
  75. package/generated/nakama.engine.defold.d.ts +3 -1
  76. package/generated/nakama.session.d.ts +95 -0
  77. package/generated/nakama.socket.d.ts +706 -0
  78. package/generated/nakama.util.log.d.ts +6 -0
  79. package/generated/narrator.d.ts +1 -1
  80. package/generated/openapi/nakama.nakama.d.ts +884 -0
  81. package/generated/orthographic.camera.d.ts +24 -38
  82. package/generated/orthographic.d.ts +155 -0
  83. package/generated/panthera.d.ts +170 -0
  84. package/generated/{persist.persist.d.ts → persist.d.ts} +3 -0
  85. package/generated/{platypus.platypus.d.ts → platypus.d.ts} +9 -0
  86. package/generated/proto.d.ts +4 -4
  87. package/generated/{rendy.rendy.d.ts → rendy.d.ts} +33 -80
  88. package/generated/richtext.color.d.ts +15 -0
  89. package/generated/saver.saver.d.ts +2 -0
  90. package/generated/saver.storage.d.ts +2 -0
  91. package/generated/shutter.d.ts +183 -0
  92. package/generated/{yagames.yagames.d.ts → yagames.d.ts} +151 -29
  93. package/generated/{zzfx.api.d.ts → zzfx.d.ts} +7 -0
  94. package/library-classification.json +0 -156
  95. package/library-targets.json +1 -218
  96. package/luals-targets.json +56 -3
  97. package/openapi-targets.json +17 -0
  98. package/package.json +7 -57
  99. package/scripts/__snapshots__/parse-luals.test.ts.snap +164 -10
  100. package/scripts/apply-luals-overrides.ts +39 -7
  101. package/scripts/authored-parity.ts +718 -0
  102. package/scripts/emit-library-dts.ts +94 -17
  103. package/scripts/extract-api-doc.ts +214 -42
  104. package/scripts/fidelity-floor.ts +178 -0
  105. package/scripts/import-upstream-docs.ts +125 -0
  106. package/scripts/lower-api-doc.ts +21 -3
  107. package/scripts/luals-fidelity.ts +16 -11
  108. package/scripts/map-luals-types.ts +52 -21
  109. package/scripts/parse-lua-surface.ts +187 -0
  110. package/scripts/parse-luals.ts +50 -4
  111. package/scripts/parse-markdown-api.ts +247 -0
  112. package/scripts/parse-openapi-api.ts +313 -0
  113. package/scripts/sync-authored-types.ts +249 -0
  114. package/scripts/sync-library-types.ts +99 -3
  115. package/scripts/sync-luals-types.ts +14 -1
  116. package/scripts/sync-markdown-types.ts +761 -0
  117. package/scripts/sync-openapi-types.ts +308 -0
  118. package/scripts/sync-script-api-types.ts +16 -17
  119. package/api-doc/boom.boom.json +0 -26
  120. package/api-doc/bzAnim.bzLibrary.json +0 -156
  121. package/api-doc/defcon.console.json +0 -109
  122. package/api-doc/defsave.defsave.json +0 -175
  123. package/api-doc/deftest.deftest.json +0 -71
  124. package/api-doc/gooey.gooey.json +0 -963
  125. package/api-doc/starly.starly.json +0 -488
  126. package/generated/defcon.console.d.ts +0 -24
  127. package/generated/defsave.defsave.d.ts +0 -31
  128. package/generated/nakama.nakama.d.ts +0 -594
  129. package/generated/starly.starly.d.ts +0 -148
  130. /package/generated/{deftest.deftest.d.ts → deftest.d.ts} +0 -0
@@ -1,148 +0,0 @@
1
- /** @noSelfInFile **/
2
-
3
- /**
4
- * @see {@link https://github.com/VowSoftware/starly|Github Source}
5
- * @example `import * as starly from 'starly.starly'`
6
- * @noResolution
7
- */
8
- declare module 'starly.starly' {
9
- interface CoreModule {
10
- c_display_width: number;
11
- c_display_height: number;
12
- c_display_ratio: number;
13
- c_behavior_center: Hash;
14
- c_behavior_expand: Hash;
15
- c_behavior_mixed: Hash;
16
- c_behavior_stretch: Hash;
17
-
18
- /**
19
- * Creates a camera. This function is called automatically in the game object's script component.
20
- * @param id Camera game object id.
21
- */
22
- create(id: Hash): void;
23
- /**
24
- * Destroys a camera. This function is called automatically in the game object's script component.
25
- * @param id Camera game object id.
26
- */
27
- destroy(id: Hash): void;
28
- /**
29
- * Activates a camera. This function should be called in the render script before any making any draw calls.
30
- * @param id Camera game object id.
31
- * @returns frustum
32
- */
33
- activate(id: Hash): Matrix4;
34
- /**
35
- * Shakes a camera.
36
- * @param id Camera game object id.
37
- * @param count Amount of pingpong movements.
38
- * @param duration Duration of each pingpong.
39
- * @param radius Distance of each pingpong.
40
- * @param [durationScalar] After each pingpong, the duration is scaled by this value.
41
- * @param [radiusScalar] After each pingpong, the radius is scaled by this value.
42
- */
43
- shake(
44
- id: Hash,
45
- count: number,
46
- duration: number,
47
- radius: number,
48
- durationScalar?: number,
49
- radiusScalar?: number,
50
- ): void;
51
- /**
52
- * Cancels an ongoing camera shake.
53
- * @param id Camera game object id.
54
- */
55
- cancel_shake(id: Hash): void;
56
- /**
57
- * Checks if a camera is shaking.
58
- * @param id Camera game object id.
59
- */
60
- is_shaking(id: Hash): boolean;
61
- /**
62
- * Gets the position offset of a camera after moving distance units, accounting for zoom and rotation.
63
- * @param id Camera game object id.
64
- * @param distance Position offset, before accounting for zoom and rotation.
65
- * @param absolute Determines if `distance` is in absolute world coordinates, which ignore rotation.
66
- */
67
- get_offset(
68
- id: Hash,
69
- distance: Vector3,
70
- absolute: boolean,
71
- ): Vector3;
72
- /**
73
- * 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.
74
- * @param id Camera game object id.
75
- * @returns x, y, width, height
76
- */
77
- get_world_area(id: Hash): LuaMultiReturn<[number, number, number, number]>;
78
- /**
79
- * Gets the center position, minimum zoom, and minimum world area of a camera that can see all positions.
80
- *
81
- * This 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.
82
- * @param id Camera game object id.
83
- * @param positions Array of `vector3` positions, in world coordinates.
84
- * @returns position, zoom, x, y, width, height
85
- */
86
- get_tight_world_area(
87
- id: Hash,
88
- positions: Vector3[],
89
- ): LuaMultiReturn<[Vector3, number, number, number, number, number]>;
90
- /**
91
- * Converts screen coordinates to world coordinates.
92
- * @param id Camera game object id.
93
- * @param screenX
94
- * @param screenY
95
- * @param [visible] 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.
96
- */
97
- screen_to_world(
98
- id: Hash,
99
- screenX: number,
100
- screenY: number,
101
- visible?: boolean,
102
- ): Vector3 | undefined;
103
- /**
104
- * Converts world coordinates to screen coordinates.
105
- * @param id Camera game object id.
106
- * @param worldPosition
107
- * @param [visible] 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.
108
- */
109
- world_to_screen(
110
- id: Hash,
111
- worldPosition: Vector3,
112
- visible?: boolean,
113
- ): Vector3 | undefined;
114
- /**
115
- * Gets the viewport of a camera, in screen coordinates.
116
- * @param id Camera game object id.
117
- * @returns x, y, width, height
118
- */
119
- get_viewport(id: Hash): LuaMultiReturn<[number, number, number, number]>;
120
- /**
121
- * Gets the view of a camera.
122
- * @param id Camera game object id.
123
- */
124
- get_view(id: Hash): Matrix4;
125
- /**
126
- * Gets the projection of a camera.
127
- * @param id Camera game object id.
128
- */
129
- get_projection(id: Hash): Matrix4;
130
- }
131
- type CameraMap = LuaMap<
132
- Hash,
133
- {
134
- behavior: Hash;
135
- viewport_x: number;
136
- viewport_y: number;
137
- viewport_width: number;
138
- viewport_height: number;
139
- near: number;
140
- far: number;
141
- zoom: number;
142
- }
143
- >;
144
-
145
- type Starley = CameraMap & Readonly<CoreModule>;
146
- const exportThis: Starley;
147
- export = exportThis;
148
- }