@defold-typescript/types 0.52.0 → 0.53.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 (191) hide show
  1. package/api-signatures.json +2074 -1964
  2. package/examples/translations.json +15 -15
  3. package/generated/b2d.d.ts +39 -39
  4. package/generated/b2d_body.d.ts +11 -11
  5. package/generated/b2d_chain.d.ts +3 -3
  6. package/generated/b2d_fixture.d.ts +5 -5
  7. package/generated/b2d_joint.d.ts +29 -29
  8. package/generated/b2d_shape.d.ts +13 -13
  9. package/generated/b2d_world.d.ts +15 -15
  10. package/generated/buffer.d.ts +5 -6
  11. package/generated/bullet3d.d.ts +6 -6
  12. package/generated/bullet3d_collision_object.d.ts +9 -9
  13. package/generated/bullet3d_constraint.d.ts +78 -78
  14. package/generated/bullet3d_rigid_body.d.ts +3 -3
  15. package/generated/bullet3d_shape.d.ts +11 -11
  16. package/generated/bullet3d_world.d.ts +20 -20
  17. package/generated/camera.d.ts +4 -4
  18. package/generated/collectionfactory.d.ts +2 -3
  19. package/generated/collectionproxy.d.ts +5 -5
  20. package/generated/compute.d.ts +5 -5
  21. package/generated/crash.d.ts +7 -7
  22. package/generated/editor-vm/http.d.ts +13 -13
  23. package/generated/editor-vm/image.d.ts +4 -4
  24. package/generated/editor-vm/json.d.ts +1 -1
  25. package/generated/editor-vm/tilemap_tiles.d.ts +9 -9
  26. package/generated/editor-vm/zip.d.ts +4 -4
  27. package/generated/editor.d.ts +183 -183
  28. package/generated/factory.d.ts +2 -3
  29. package/generated/font.d.ts +4 -4
  30. package/generated/go.d.ts +10 -12
  31. package/generated/graphics.d.ts +23 -26
  32. package/generated/gui.d.ts +44 -58
  33. package/generated/http.d.ts +2 -2
  34. package/generated/image.d.ts +12 -12
  35. package/generated/json.d.ts +4 -4
  36. package/generated/label.d.ts +5 -5
  37. package/generated/liveupdate.d.ts +3 -3
  38. package/generated/material.d.ts +48 -48
  39. package/generated/model.d.ts +46 -14
  40. package/generated/particlefx.d.ts +5 -5
  41. package/generated/physics.d.ts +19 -19
  42. package/generated/profiler.d.ts +3 -5
  43. package/generated/render-script-modules/b2d.d.ts +39 -39
  44. package/generated/render-script-modules/bullet3d.d.ts +5 -5
  45. package/generated/render-script-modules/collectionfactory.d.ts +1 -2
  46. package/generated/render-script-modules/collectionproxy.d.ts +3 -3
  47. package/generated/render-script-modules/factory.d.ts +1 -2
  48. package/generated/render-script-modules/go.d.ts +8 -10
  49. package/generated/render-script-modules/label.d.ts +2 -2
  50. package/generated/render-script-modules/model.d.ts +43 -11
  51. package/generated/render-script-modules/particlefx.d.ts +3 -3
  52. package/generated/render-script-modules/physics.d.ts +12 -12
  53. package/generated/render-script-modules/resource.d.ts +52 -53
  54. package/generated/render-script-modules/sound.d.ts +4 -4
  55. package/generated/render-script-modules/sprite.d.ts +2 -2
  56. package/generated/render-script-modules/tilemap.d.ts +2 -2
  57. package/generated/render.d.ts +44 -45
  58. package/generated/resource.d.ts +58 -59
  59. package/generated/socket.d.ts +18 -23
  60. package/generated/sound.d.ts +6 -6
  61. package/generated/sprite.d.ts +3 -3
  62. package/generated/sys.d.ts +20 -21
  63. package/generated/tilemap.d.ts +3 -3
  64. package/generated/timer.d.ts +3 -3
  65. package/generated/versions/defold-1.12.4/b2d.d.ts +2 -2
  66. package/generated/versions/defold-1.12.4/b2d_body.d.ts +2 -2
  67. package/generated/versions/defold-1.12.4/go.d.ts +2 -2
  68. package/generated/versions/defold-1.12.4/graphics.d.ts +1 -1
  69. package/generated/versions/defold-1.12.4/gui.d.ts +18 -19
  70. package/generated/versions/defold-1.12.4/label.d.ts +1 -1
  71. package/generated/versions/defold-1.12.4/model.d.ts +42 -10
  72. package/generated/versions/defold-1.12.4/particlefx.d.ts +1 -1
  73. package/generated/versions/defold-1.12.4/physics.d.ts +1 -1
  74. package/generated/versions/defold-1.12.4/render.d.ts +5 -5
  75. package/generated/versions/defold-1.12.4/resource.d.ts +8 -8
  76. package/generated/versions/defold-1.12.4/socket.d.ts +12 -12
  77. package/generated/versions/defold-1.12.4/sound.d.ts +1 -1
  78. package/generated/versions/defold-1.12.4/sprite.d.ts +1 -1
  79. package/generated/versions/defold-1.12.4/sys.d.ts +2 -2
  80. package/generated/versions/defold-1.12.4/tilemap.d.ts +1 -1
  81. package/generated/versions/defold-1.12.4/window.d.ts +3 -4
  82. package/generated/versions/defold-1.13.0/b2d.d.ts +2 -2
  83. package/generated/versions/defold-1.13.0/b2d_body.d.ts +2 -2
  84. package/generated/versions/defold-1.13.0/b2d_chain.d.ts +1 -1
  85. package/generated/versions/defold-1.13.0/b2d_joint.d.ts +1 -1
  86. package/generated/versions/defold-1.13.0/b2d_shape.d.ts +1 -1
  87. package/generated/versions/defold-1.13.0/camera.d.ts +1 -1
  88. package/generated/versions/defold-1.13.0/go.d.ts +2 -2
  89. package/generated/versions/defold-1.13.0/graphics.d.ts +1 -1
  90. package/generated/versions/defold-1.13.0/gui.d.ts +18 -19
  91. package/generated/versions/defold-1.13.0/label.d.ts +1 -1
  92. package/generated/versions/defold-1.13.0/model.d.ts +42 -10
  93. package/generated/versions/defold-1.13.0/particlefx.d.ts +1 -1
  94. package/generated/versions/defold-1.13.0/physics.d.ts +1 -1
  95. package/generated/versions/defold-1.13.0/render.d.ts +5 -5
  96. package/generated/versions/defold-1.13.0/resource.d.ts +8 -8
  97. package/generated/versions/defold-1.13.0/socket.d.ts +12 -12
  98. package/generated/versions/defold-1.13.0/sound.d.ts +1 -1
  99. package/generated/versions/defold-1.13.0/sprite.d.ts +1 -1
  100. package/generated/versions/defold-1.13.0/sys.d.ts +2 -2
  101. package/generated/versions/defold-1.13.0/tilemap.d.ts +1 -1
  102. package/generated/versions/defold-1.13.0/window.d.ts +3 -4
  103. package/generated/versions/defold-1.13.1/b2d.d.ts +2 -2
  104. package/generated/versions/defold-1.13.1/b2d_body.d.ts +2 -2
  105. package/generated/versions/defold-1.13.1/b2d_chain.d.ts +1 -1
  106. package/generated/versions/defold-1.13.1/b2d_joint.d.ts +1 -1
  107. package/generated/versions/defold-1.13.1/b2d_shape.d.ts +1 -1
  108. package/generated/versions/defold-1.13.1/camera.d.ts +1 -1
  109. package/generated/versions/defold-1.13.1/go.d.ts +2 -2
  110. package/generated/versions/defold-1.13.1/graphics.d.ts +1 -1
  111. package/generated/versions/defold-1.13.1/gui.d.ts +18 -19
  112. package/generated/versions/defold-1.13.1/label.d.ts +1 -1
  113. package/generated/versions/defold-1.13.1/model.d.ts +42 -10
  114. package/generated/versions/defold-1.13.1/particlefx.d.ts +1 -1
  115. package/generated/versions/defold-1.13.1/physics.d.ts +1 -1
  116. package/generated/versions/defold-1.13.1/render.d.ts +5 -5
  117. package/generated/versions/defold-1.13.1/resource.d.ts +8 -8
  118. package/generated/versions/defold-1.13.1/socket.d.ts +12 -12
  119. package/generated/versions/defold-1.13.1/sound.d.ts +1 -1
  120. package/generated/versions/defold-1.13.1/sprite.d.ts +1 -1
  121. package/generated/versions/defold-1.13.1/sys.d.ts +2 -2
  122. package/generated/versions/defold-1.13.1/tilemap.d.ts +1 -1
  123. package/generated/versions/defold-1.13.1/window.d.ts +3 -4
  124. package/generated/versions/defold-1.13.2/b2d.d.ts +39 -39
  125. package/generated/versions/defold-1.13.2/b2d_body.d.ts +11 -11
  126. package/generated/versions/defold-1.13.2/b2d_chain.d.ts +3 -3
  127. package/generated/versions/defold-1.13.2/b2d_fixture.d.ts +5 -5
  128. package/generated/versions/defold-1.13.2/b2d_joint.d.ts +29 -29
  129. package/generated/versions/defold-1.13.2/b2d_shape.d.ts +13 -13
  130. package/generated/versions/defold-1.13.2/b2d_world.d.ts +15 -15
  131. package/generated/versions/defold-1.13.2/buffer.d.ts +5 -6
  132. package/generated/versions/defold-1.13.2/bullet3d.d.ts +6 -6
  133. package/generated/versions/defold-1.13.2/bullet3d_collision_object.d.ts +9 -9
  134. package/generated/versions/defold-1.13.2/bullet3d_constraint.d.ts +78 -78
  135. package/generated/versions/defold-1.13.2/bullet3d_rigid_body.d.ts +3 -3
  136. package/generated/versions/defold-1.13.2/bullet3d_shape.d.ts +11 -11
  137. package/generated/versions/defold-1.13.2/bullet3d_world.d.ts +20 -20
  138. package/generated/versions/defold-1.13.2/camera.d.ts +4 -4
  139. package/generated/versions/defold-1.13.2/collectionfactory.d.ts +2 -3
  140. package/generated/versions/defold-1.13.2/collectionproxy.d.ts +5 -5
  141. package/generated/versions/defold-1.13.2/compute.d.ts +5 -5
  142. package/generated/versions/defold-1.13.2/crash.d.ts +7 -7
  143. package/generated/versions/defold-1.13.2/editor-vm/http.d.ts +13 -13
  144. package/generated/versions/defold-1.13.2/editor-vm/image.d.ts +4 -4
  145. package/generated/versions/defold-1.13.2/editor-vm/json.d.ts +1 -1
  146. package/generated/versions/defold-1.13.2/editor-vm/tilemap_tiles.d.ts +9 -9
  147. package/generated/versions/defold-1.13.2/editor-vm/zip.d.ts +4 -4
  148. package/generated/versions/defold-1.13.2/editor.d.ts +183 -183
  149. package/generated/versions/defold-1.13.2/factory.d.ts +2 -3
  150. package/generated/versions/defold-1.13.2/font.d.ts +4 -4
  151. package/generated/versions/defold-1.13.2/go.d.ts +10 -12
  152. package/generated/versions/defold-1.13.2/graphics.d.ts +22 -25
  153. package/generated/versions/defold-1.13.2/gui.d.ts +44 -58
  154. package/generated/versions/defold-1.13.2/http.d.ts +2 -2
  155. package/generated/versions/defold-1.13.2/image.d.ts +12 -12
  156. package/generated/versions/defold-1.13.2/json.d.ts +4 -4
  157. package/generated/versions/defold-1.13.2/label.d.ts +5 -5
  158. package/generated/versions/defold-1.13.2/liveupdate.d.ts +3 -3
  159. package/generated/versions/defold-1.13.2/material.d.ts +48 -48
  160. package/generated/versions/defold-1.13.2/model.d.ts +46 -14
  161. package/generated/versions/defold-1.13.2/particlefx.d.ts +5 -5
  162. package/generated/versions/defold-1.13.2/physics.d.ts +19 -19
  163. package/generated/versions/defold-1.13.2/profiler.d.ts +3 -5
  164. package/generated/versions/defold-1.13.2/render.d.ts +43 -44
  165. package/generated/versions/defold-1.13.2/resource.d.ts +58 -59
  166. package/generated/versions/defold-1.13.2/socket.d.ts +18 -23
  167. package/generated/versions/defold-1.13.2/sound.d.ts +6 -6
  168. package/generated/versions/defold-1.13.2/sprite.d.ts +3 -3
  169. package/generated/versions/defold-1.13.2/sys.d.ts +20 -21
  170. package/generated/versions/defold-1.13.2/tilemap.d.ts +3 -3
  171. package/generated/versions/defold-1.13.2/timer.d.ts +3 -3
  172. package/generated/versions/defold-1.13.2/vmath.d.ts +0 -1
  173. package/generated/versions/defold-1.13.2/window.d.ts +8 -10
  174. package/generated/vmath.d.ts +0 -1
  175. package/generated/window.d.ts +8 -10
  176. package/identity-vocabulary.json +41 -34
  177. package/package.json +2 -1
  178. package/scripts/generate-api-availability.ts +9 -3
  179. package/scripts/shared-handle-methods.ts +3 -2
  180. package/src/api-doc.ts +8 -0
  181. package/src/api-identity.ts +32 -1
  182. package/src/component-properties.d.ts +8 -8
  183. package/src/core-types.ts +29 -13
  184. package/src/doc-corrections.ts +9 -0
  185. package/src/emit-dts.ts +664 -202
  186. package/src/engine-type-name.ts +33 -0
  187. package/src/go-overloads.d.ts +10 -10
  188. package/src/gui-overloads.d.ts +11 -11
  189. package/src/index.ts +1 -0
  190. package/src/lifecycle.ts +2 -2
  191. package/src/socket-types.d.ts +3 -3
@@ -6,11 +6,11 @@ declare global {
6
6
  * Collision object physics API documentation
7
7
  */
8
8
  namespace physics {
9
- type event = BuiltinMessages["contact_point_event"] & { type: Hash<"contact_point_event"> } | BuiltinMessages["collision_event"] & { type: Hash<"collision_event"> } | BuiltinMessages["trigger_event"] & { type: Hash<"trigger_event"> } | BuiltinMessages["ray_cast_response"] & { type: Hash<"ray_cast_response"> } | BuiltinMessages["ray_cast_missed"] & { type: Hash<"ray_cast_missed"> };
9
+ type Event = BuiltinMessages["contact_point_event"] & { type: Hash<"contact_point_event"> } | BuiltinMessages["collision_event"] & { type: Hash<"collision_event"> } | BuiltinMessages["trigger_event"] & { type: Hash<"trigger_event"> } | BuiltinMessages["ray_cast_response"] & { type: Hash<"ray_cast_response"> } | BuiltinMessages["ray_cast_missed"] & { type: Hash<"ray_cast_missed"> };
10
10
  /**
11
11
  * The available fields depend on the joint type.
12
12
  */
13
- interface joint_properties {
13
+ interface JointProperties {
14
14
  /**
15
15
  * whether the connected objects should collide
16
16
  */
@@ -79,7 +79,7 @@ declare global {
79
79
  /**
80
80
  * The available optional fields depend on the joint type.
81
81
  */
82
- interface joint_properties_info {
82
+ interface JointPropertiesInfo {
83
83
  /**
84
84
  * whether the connected objects collide
85
85
  */
@@ -160,7 +160,7 @@ declare global {
160
160
  /**
161
161
  * Ray-cast options
162
162
  */
163
- interface raycast_options {
163
+ interface RaycastOptions {
164
164
  /**
165
165
  * Return every hit instead of only the closest hit.
166
166
  */
@@ -169,11 +169,11 @@ declare global {
169
169
  /**
170
170
  * The available geometry fields depend on `type`.
171
171
  */
172
- interface shape_data {
172
+ interface ShapeData {
173
173
  /**
174
174
  * shape type
175
175
  */
176
- type: physics.SHAPE_TYPE;
176
+ type: physics.ShapeType;
177
177
  /**
178
178
  * sphere diameter or capsule pole diameter
179
179
  */
@@ -187,8 +187,8 @@ declare global {
187
187
  */
188
188
  height?: number;
189
189
  }
190
- type JOINT_TYPE = typeof physics.JOINT_TYPE_FIXED | typeof physics.JOINT_TYPE_HINGE | typeof physics.JOINT_TYPE_SLIDER | typeof physics.JOINT_TYPE_SPRING | typeof physics.JOINT_TYPE_WELD | typeof physics.JOINT_TYPE_WHEEL;
191
- type SHAPE_TYPE = typeof physics.SHAPE_TYPE_BOX | typeof physics.SHAPE_TYPE_CAPSULE | typeof physics.SHAPE_TYPE_HULL | typeof physics.SHAPE_TYPE_MESH | typeof physics.SHAPE_TYPE_SPHERE;
190
+ type JointType = typeof physics.JOINT_TYPE_FIXED | typeof physics.JOINT_TYPE_HINGE | typeof physics.JOINT_TYPE_SLIDER | typeof physics.JOINT_TYPE_SPRING | typeof physics.JOINT_TYPE_WELD | typeof physics.JOINT_TYPE_WHEEL;
191
+ type ShapeType = typeof physics.SHAPE_TYPE_BOX | typeof physics.SHAPE_TYPE_CAPSULE | typeof physics.SHAPE_TYPE_HULL | typeof physics.SHAPE_TYPE_MESH | typeof physics.SHAPE_TYPE_SPHERE;
192
192
  /**
193
193
  * Fixed joint; uses `max_length` from physics.joint_properties.
194
194
  */
@@ -245,7 +245,7 @@ declare global {
245
245
  * @param position_b - local position where to attach the joint on the second collision object
246
246
  * @param properties - optional joint-specific properties
247
247
  */
248
- function create_joint(joint_type: physics.JOINT_TYPE, collisionobject_a: string | Hash | Url, joint_id: string | Hash, position_a: Vector3, collisionobject_b: string | Hash | Url, position_b: Vector3, properties?: physics.joint_properties): void;
248
+ function create_joint(joint_type: physics.JointType, collisionobject_a: string | Hash | Url, joint_id: string | Hash, position_a: Vector3, collisionobject_b: string | Hash | Url, position_b: Vector3, properties?: physics.JointProperties): void;
249
249
  /**
250
250
  * Destroy an already physics joint. The joint has to be created before a
251
251
  * destroy can be issued.
@@ -297,7 +297,7 @@ declare global {
297
297
  * @param joint_id - id of the joint
298
298
  * @returns joint properties
299
299
  */
300
- function get_joint_properties(collisionobject: string | Hash | Url, joint_id: string | Hash): physics.joint_properties_info;
300
+ function get_joint_properties(collisionobject: string | Hash | Url, joint_id: string | Hash): physics.JointPropertiesInfo;
301
301
  /**
302
302
  * Get the reaction force for a joint. The joint has to be created before
303
303
  * the reaction force can be calculated.
@@ -350,7 +350,7 @@ declare global {
350
350
  * }
351
351
  * ```
352
352
  */
353
- function get_shape(url: string | Hash | Url, shape: string | Hash): physics.shape_data;
353
+ function get_shape(url: string | Hash | Url, shape: string | Hash): physics.ShapeData;
354
354
  /**
355
355
  * Ray casts are used to test for intersections against collision objects in the physics world.
356
356
  * Collision objects of types kinematic, dynamic and static are tested against. Trigger objects
@@ -391,7 +391,7 @@ declare global {
391
391
  * });
392
392
  * ```
393
393
  */
394
- function raycast(from: Vector3, to: Vector3, groups: Hash[], options?: physics.raycast_options): Omit<BuiltinMessages["ray_cast_response"], "request_id">[] | Omit<BuiltinMessages["ray_cast_response"], "request_id"> | undefined;
394
+ function raycast(from: Vector3, to: Vector3, groups: Hash[], options?: physics.RaycastOptions): Omit<BuiltinMessages["ray_cast_response"], "request_id">[] | Omit<BuiltinMessages["ray_cast_response"], "request_id"> | undefined;
395
395
  /**
396
396
  * Ray casts are used to test for intersections against collision objects in the physics world.
397
397
  * Collision objects of types kinematic, dynamic and static are tested against. Trigger objects
@@ -577,7 +577,7 @@ declare global {
577
577
  * });
578
578
  * ```
579
579
  */
580
- function set_event_listener(callback?: (self: unknown, events: physics.event[]) => void): void;
580
+ function set_event_listener(callback?: (self: unknown, events: physics.Event[]) => void): void;
581
581
  /**
582
582
  * Set the gravity in runtime. The gravity change is not global, it will only affect
583
583
  * the collection that the function is called from.
@@ -637,7 +637,7 @@ declare global {
637
637
  * @param properties - joint specific properties table
638
638
  * Note: The `collide_connected` field cannot be updated/changed after a connection has been made.
639
639
  */
640
- function set_joint_properties(collisionobject: string | Hash | Url, joint_id: string | Hash, properties: physics.joint_properties): void;
640
+ function set_joint_properties(collisionobject: string | Hash | Url, joint_id: string | Hash, properties: physics.JointProperties): void;
641
641
  /**
642
642
  * Sets or clears the masking of a group (maskbit) in a collision object.
643
643
  *
@@ -686,7 +686,7 @@ declare global {
686
686
  * }
687
687
  * ```
688
688
  */
689
- function set_shape(url: string | Hash | Url, shape: string | Hash, table: physics.shape_data): void;
689
+ function set_shape(url: string | Hash | Url, shape: string | Hash, table: physics.ShapeData): void;
690
690
  /**
691
691
  * Flips the collision shapes vertically for a collision object
692
692
  *
@@ -738,7 +738,7 @@ declare global {
738
738
  /**
739
739
  * collision object information
740
740
  */
741
- interface collision_info {
741
+ interface CollisionInfo {
742
742
  /**
743
743
  * object position in world space
744
744
  */
@@ -755,7 +755,7 @@ declare global {
755
755
  /**
756
756
  * contact-point object information
757
757
  */
758
- interface contact_point_info {
758
+ interface ContactPointInfo {
759
759
  /**
760
760
  * contact point position in world space
761
761
  */
@@ -788,7 +788,7 @@ declare global {
788
788
  /**
789
789
  * trigger interaction object information
790
790
  */
791
- interface trigger_info {
791
+ interface TriggerInfo {
792
792
  /**
793
793
  * object identifier
794
794
  */
@@ -800,7 +800,7 @@ declare global {
800
800
  }
801
801
  }
802
802
  }
803
- interface properties {
803
+ interface Properties {
804
804
  /**
805
805
  * The angular damping value for the collision object. Setting this value alters the damping of
806
806
  * angular motion of the object (rotation). Valid values are between 0 (no damping) and 1 (full damping).
@@ -5,10 +5,8 @@ declare global {
5
5
  * More detailed [profiling](https://www.defold.com/manuals/profiling/) and [debugging](http://www.defold.com/manuals/debugging/) information available in the manuals.
6
6
  */
7
7
  namespace profiler {
8
- type Mode = typeof profiler.MODE_RUN | typeof profiler.MODE_PAUSE | typeof profiler.MODE_SHOW_PEAK_FRAME | typeof profiler.MODE_RECORD;
8
+ type Mode = typeof profiler.MODE_PAUSE | typeof profiler.MODE_RECORD | typeof profiler.MODE_RUN | typeof profiler.MODE_SHOW_PEAK_FRAME;
9
9
  type ViewMode = typeof profiler.VIEW_MODE_FULL | typeof profiler.VIEW_MODE_MINIMIZED;
10
- type MODE = typeof profiler.MODE_PAUSE | typeof profiler.MODE_RECORD | typeof profiler.MODE_RUN | typeof profiler.MODE_SHOW_PEAK_FRAME;
11
- type VIEW_MODE = typeof profiler.VIEW_MODE_FULL | typeof profiler.VIEW_MODE_MINIMIZED;
12
10
  /**
13
11
  * pause on the currently displayed frame
14
12
  */
@@ -173,7 +171,7 @@ declare global {
173
171
  * }
174
172
  * ```
175
173
  */
176
- function set_ui_mode(mode: profiler.MODE): void;
174
+ function set_ui_mode(mode: profiler.Mode): void;
177
175
  /**
178
176
  * Set the on-screen profile view mode - minimized or expanded
179
177
  *
@@ -184,7 +182,7 @@ declare global {
184
182
  * profiler.set_ui_view_mode(profiler.VIEW_MODE_MINIMIZED);
185
183
  * ```
186
184
  */
187
- function set_ui_view_mode(mode: profiler.VIEW_MODE): void;
185
+ function set_ui_view_mode(mode: profiler.ViewMode): void;
188
186
  /**
189
187
  * Shows or hides the time the engine waits for vsync in the on-screen profiler
190
188
  * Each frame the engine waits for vsync and depending on your vsync settings and how much time
@@ -9,7 +9,7 @@ declare global {
9
9
  /**
10
10
  * Box2D axis-aligned bounding box
11
11
  */
12
- interface aabb {
12
+ interface Aabb {
13
13
  /**
14
14
  * Lower bound.
15
15
  */
@@ -19,12 +19,12 @@ declare global {
19
19
  */
20
20
  upper: Vector3;
21
21
  }
22
- type b2Body = Opaque<"b2Body">;
23
- type b2World = Opaque<"b2World">;
22
+ type B2Body = Opaque<"b2Body">;
23
+ type B2World = Opaque<"b2World">;
24
24
  /**
25
25
  * Box2D 3.x chain definition
26
26
  */
27
- interface chain_definition {
27
+ interface ChainDefinition {
28
28
  /**
29
29
  * Chain vertices.
30
30
  */
@@ -56,7 +56,7 @@ declare global {
56
56
  /**
57
57
  * Collision filter fields to override.
58
58
  */
59
- filter?: b2d.filter_options;
59
+ filter?: b2d.FilterOptions;
60
60
  /**
61
61
  * Whether to enable sensor events.
62
62
  */
@@ -65,7 +65,7 @@ declare global {
65
65
  /**
66
66
  * Box2D chain geometry
67
67
  */
68
- interface chain_geometry {
68
+ interface ChainGeometry {
69
69
  /**
70
70
  * Whether the chain is closed.
71
71
  */
@@ -90,15 +90,15 @@ declare global {
90
90
  /**
91
91
  * Box2D contact data
92
92
  */
93
- interface contact_data {
93
+ interface ContactData {
94
94
  /**
95
95
  * First contact shape.
96
96
  */
97
- shape_a: b2d.shape_info;
97
+ shape_a: b2d.ShapeInfo;
98
98
  /**
99
99
  * Second contact shape.
100
100
  */
101
- shape_b: b2d.shape_info;
101
+ shape_b: b2d.ShapeInfo;
102
102
  /**
103
103
  * Contact normal.
104
104
  */
@@ -114,12 +114,12 @@ declare global {
114
114
  /**
115
115
  * Contact manifold points.
116
116
  */
117
- points: b2d.contact_point[];
117
+ points: b2d.ContactPoint[];
118
118
  }
119
119
  /**
120
120
  * Box2D contact manifold point
121
121
  */
122
- interface contact_point {
122
+ interface ContactPoint {
123
123
  /**
124
124
  * World contact point.
125
125
  */
@@ -164,7 +164,7 @@ declare global {
164
164
  /**
165
165
  * Box2D explosion definition
166
166
  */
167
- interface explosion_definition {
167
+ interface ExplosionDefinition {
168
168
  /**
169
169
  * Explosion center.
170
170
  */
@@ -189,7 +189,7 @@ declare global {
189
189
  /**
190
190
  * Box2D collision filter
191
191
  */
192
- interface filter {
192
+ interface Filter {
193
193
  /**
194
194
  * Collision category bits.
195
195
  */
@@ -206,7 +206,7 @@ declare global {
206
206
  /**
207
207
  * Partial Box2D collision filter
208
208
  */
209
- interface filter_options {
209
+ interface FilterOptions {
210
210
  /**
211
211
  * Collision category bits.
212
212
  */
@@ -223,15 +223,15 @@ declare global {
223
223
  /**
224
224
  * Box2D 2.x cast hit
225
225
  */
226
- interface fixture_cast_hit {
226
+ interface FixtureCastHit {
227
227
  /**
228
228
  * Hit fixture.
229
229
  */
230
- fixture: b2d.fixture_info;
230
+ fixture: b2d.FixtureInfo;
231
231
  /**
232
232
  * Hit fixture child shape.
233
233
  */
234
- shape: b2d.fixture_info;
234
+ shape: b2d.FixtureInfo;
235
235
  /**
236
236
  * Hit point.
237
237
  */
@@ -256,11 +256,11 @@ declare global {
256
256
  /**
257
257
  * Box2D 2.x fixture definition
258
258
  */
259
- interface fixture_definition {
259
+ interface FixtureDefinition {
260
260
  /**
261
261
  * Shape definition.
262
262
  */
263
- shape: b2d.shape.definition;
263
+ shape: b2d.shape.Definition;
264
264
  /**
265
265
  * Fixture friction.
266
266
  */
@@ -284,12 +284,12 @@ declare global {
284
284
  /**
285
285
  * Collision filter.
286
286
  */
287
- filter?: b2d.filter;
287
+ filter?: b2d.Filter;
288
288
  }
289
289
  /**
290
290
  * Box2D 2.x fixture information
291
291
  */
292
- interface fixture_info {
292
+ interface FixtureInfo {
293
293
  /**
294
294
  * Owning body, when returned from a world query.
295
295
  */
@@ -305,7 +305,7 @@ declare global {
305
305
  /**
306
306
  * Shape type.
307
307
  */
308
- type: b2d.shape.SHAPE_TYPE;
308
+ type: b2d.shape.ShapeType;
309
309
  /**
310
310
  * Whether the fixture is a sensor.
311
311
  */
@@ -330,7 +330,7 @@ declare global {
330
330
  /**
331
331
  * Mass properties for a Box2D body or shape.
332
332
  */
333
- interface mass_data {
333
+ interface MassData {
334
334
  /**
335
335
  * Body mass, usually in kilograms.
336
336
  */
@@ -347,7 +347,7 @@ declare global {
347
347
  /**
348
348
  * Box2D mover capsule
349
349
  */
350
- interface mover_capsule {
350
+ interface MoverCapsule {
351
351
  /**
352
352
  * First capsule center.
353
353
  */
@@ -364,11 +364,11 @@ declare global {
364
364
  /**
365
365
  * Box2D mover collision plane
366
366
  */
367
- interface mover_plane {
367
+ interface MoverPlane {
368
368
  /**
369
369
  * Colliding shape.
370
370
  */
371
- shape: b2d.shape_info;
371
+ shape: b2d.ShapeInfo;
372
372
  /**
373
373
  * Plane normal.
374
374
  */
@@ -385,7 +385,7 @@ declare global {
385
385
  /**
386
386
  * Box2D world-query filter
387
387
  */
388
- interface query_filter {
388
+ interface QueryFilter {
389
389
  /**
390
390
  * Optional collision category bits.
391
391
  */
@@ -402,11 +402,11 @@ declare global {
402
402
  /**
403
403
  * Box2D 3.x cast hit
404
404
  */
405
- interface shape_cast_hit {
405
+ interface ShapeCastHit {
406
406
  /**
407
407
  * Hit shape.
408
408
  */
409
- shape: b2d.shape_info;
409
+ shape: b2d.ShapeInfo;
410
410
  /**
411
411
  * Hit point.
412
412
  */
@@ -431,7 +431,7 @@ declare global {
431
431
  /**
432
432
  * Direct Box2D shape cast result
433
433
  */
434
- interface shape_cast_output {
434
+ interface ShapeCastOutput {
435
435
  /**
436
436
  * Hit point.
437
437
  */
@@ -449,11 +449,11 @@ declare global {
449
449
  */
450
450
  iterations: number;
451
451
  }
452
- type shape_create_definition = { shape: b2d.shape.definition; density?: number; friction?: number; restitution?: number; material?: number; sensor?: boolean; is_sensor?: boolean; filter?: b2d.filter } | { type: b2d.shape.SHAPE_TYPE; radius?: number; center?: Vector3; center1?: Vector3; center2?: Vector3; v0?: Vector3; v1?: Vector3; v2?: Vector3; v3?: Vector3; hx?: number; hy?: number; angle?: number; vertices?: Vector3[]; density?: number; friction?: number; restitution?: number; material?: number; sensor?: boolean; is_sensor?: boolean; filter?: b2d.filter };
452
+ type ShapeCreateDefinition = { shape: b2d.shape.Definition; density?: number; friction?: number; restitution?: number; material?: number; sensor?: boolean; is_sensor?: boolean; filter?: b2d.Filter } | { type: b2d.shape.ShapeType; radius?: number; center?: Vector3; center1?: Vector3; center2?: Vector3; v0?: Vector3; v1?: Vector3; v2?: Vector3; v3?: Vector3; hx?: number; hy?: number; angle?: number; vertices?: Vector3[]; density?: number; friction?: number; restitution?: number; material?: number; sensor?: boolean; is_sensor?: boolean; filter?: b2d.Filter };
453
453
  /**
454
454
  * Box2D 3.x shape information
455
455
  */
456
- interface shape_info {
456
+ interface ShapeInfo {
457
457
  /**
458
458
  * Shape index on the body.
459
459
  */
@@ -465,7 +465,7 @@ declare global {
465
465
  /**
466
466
  * Shape type.
467
467
  */
468
- type: b2d.shape.SHAPE_TYPE;
468
+ type: b2d.shape.ShapeType;
469
469
  /**
470
470
  * Whether the shape is a sensor.
471
471
  */
@@ -498,7 +498,7 @@ declare global {
498
498
  /**
499
499
  * World transform for a Box2D body.
500
500
  */
501
- interface transform {
501
+ interface Transform {
502
502
  /**
503
503
  * World position of the body origin.
504
504
  */
@@ -511,7 +511,7 @@ declare global {
511
511
  /**
512
512
  * Box2D broad-phase query statistics
513
513
  */
514
- interface tree_stats {
514
+ interface TreeStats {
515
515
  /**
516
516
  * Number of tree nodes visited.
517
517
  */
@@ -524,7 +524,7 @@ declare global {
524
524
  /**
525
525
  * Box2D version information
526
526
  */
527
- interface version_info {
527
+ interface VersionInfo {
528
528
  /**
529
529
  * Full Box2D version string.
530
530
  */
@@ -545,7 +545,7 @@ declare global {
545
545
  /**
546
546
  * Box2D world counters
547
547
  */
548
- interface world_counters {
548
+ interface WorldCounters {
549
549
  /**
550
550
  * Number of bodies.
551
551
  */
@@ -594,7 +594,7 @@ declare global {
594
594
  /**
595
595
  * Box2D world profiling data
596
596
  */
597
- interface world_profile {
597
+ interface WorldProfile {
598
598
  /**
599
599
  * Total step time.
600
600
  */
@@ -704,7 +704,7 @@ declare global {
704
704
  *
705
705
  * @returns version information
706
706
  */
707
- function get_version(): b2d.version_info;
707
+ function get_version(): b2d.VersionInfo;
708
708
  }
709
709
  }
710
710
 
@@ -21,13 +21,13 @@ declare global {
21
21
  * checking a retained handle; every other operation rejects an invalid handle.
22
22
  */
23
23
  namespace bullet3d {
24
- type btCollisionObject = Opaque<"btCollisionObject" | "btRigidBody">;
25
- type btDiscreteDynamicsWorld = Opaque<"btDiscreteDynamicsWorld">;
26
- type btRigidBody = Opaque<"btRigidBody">;
24
+ type BtCollisionObject = Opaque<"btCollisionObject" | "btRigidBody">;
25
+ type BtDiscreteDynamicsWorld = Opaque<"btDiscreteDynamicsWorld">;
26
+ type BtRigidBody = Opaque<"btRigidBody">;
27
27
  /**
28
28
  * Bullet version information
29
29
  */
30
- interface version_info {
30
+ interface VersionInfo {
31
31
  /**
32
32
  * full Bullet version string
33
33
  */
@@ -66,7 +66,7 @@ declare global {
66
66
  *
67
67
  * @returns version information
68
68
  */
69
- function get_version(): bullet3d.version_info;
69
+ function get_version(): bullet3d.VersionInfo;
70
70
  }
71
71
  }
72
72
 
@@ -5,8 +5,7 @@ declare global {
5
5
  * used to dynamically spawn collections into the runtime.
6
6
  */
7
7
  namespace collectionfactory {
8
- type Status = typeof collectionfactory.STATUS_UNLOADED | typeof collectionfactory.STATUS_LOADING | typeof collectionfactory.STATUS_LOADED;
9
- type STATUS = typeof collectionfactory.STATUS_LOADED | typeof collectionfactory.STATUS_LOADING | typeof collectionfactory.STATUS_UNLOADED;
8
+ type Status = typeof collectionfactory.STATUS_LOADED | typeof collectionfactory.STATUS_LOADING | typeof collectionfactory.STATUS_UNLOADED;
10
9
  /**
11
10
  * The collection factory resources are loaded.
12
11
  */
@@ -9,7 +9,7 @@ declare global {
9
9
  * Data delivered to a collectionproxy.load callback. The available
10
10
  * field depends on the callback message identifier.
11
11
  */
12
- interface load_data {
12
+ interface LoadData {
13
13
  /**
14
14
  * Loading progress from 0 to 1 for `proxy_loading`.
15
15
  */
@@ -19,8 +19,8 @@ declare global {
19
19
  */
20
20
  code?: number;
21
21
  }
22
- type TIME_STEP_MODE = 0 | 1;
23
- type RESULT = typeof collectionproxy.RESULT_ALREADY_LOADED | typeof collectionproxy.RESULT_LOADING | typeof collectionproxy.RESULT_NOT_EXCLUDED;
22
+ type TimeStepMode = 0 | 1;
23
+ type Result = typeof collectionproxy.RESULT_ALREADY_LOADED | typeof collectionproxy.RESULT_LOADING | typeof collectionproxy.RESULT_NOT_EXCLUDED;
24
24
  /**
25
25
  * The collection proxy is already loaded, so its collection cannot be changed.
26
26
  */
@@ -5,8 +5,7 @@ declare global {
5
5
  * dynamically spawn game objects into the runtime.
6
6
  */
7
7
  namespace factory {
8
- type Status = typeof factory.STATUS_UNLOADED | typeof factory.STATUS_LOADING | typeof factory.STATUS_LOADED;
9
- type STATUS = typeof factory.STATUS_LOADED | typeof factory.STATUS_LOADING | typeof factory.STATUS_UNLOADED;
8
+ type Status = typeof factory.STATUS_LOADED | typeof factory.STATUS_LOADING | typeof factory.STATUS_UNLOADED;
10
9
  /**
11
10
  * The factory resources are loaded.
12
11
  */
@@ -9,7 +9,7 @@ declare global {
9
9
  /**
10
10
  * Options for accessing indexed or internal component properties with go.get and go.set.
11
11
  */
12
- interface property_options {
12
+ interface PropertyOptions {
13
13
  /**
14
14
  * Index into an array property, starting at one.
15
15
  */
@@ -24,9 +24,7 @@ declare global {
24
24
  keys?: Hash[];
25
25
  }
26
26
  type Easing = typeof go.EASING_INBACK | typeof go.EASING_INBOUNCE | typeof go.EASING_INCIRC | typeof go.EASING_INCUBIC | typeof go.EASING_INELASTIC | typeof go.EASING_INEXPO | typeof go.EASING_INOUTBACK | typeof go.EASING_INOUTBOUNCE | typeof go.EASING_INOUTCIRC | typeof go.EASING_INOUTCUBIC | typeof go.EASING_INOUTELASTIC | typeof go.EASING_INOUTEXPO | typeof go.EASING_INOUTQUAD | typeof go.EASING_INOUTQUART | typeof go.EASING_INOUTQUINT | typeof go.EASING_INOUTSINE | typeof go.EASING_INQUAD | typeof go.EASING_INQUART | typeof go.EASING_INQUINT | typeof go.EASING_INSINE | typeof go.EASING_LINEAR | typeof go.EASING_OUTBACK | typeof go.EASING_OUTBOUNCE | typeof go.EASING_OUTCIRC | typeof go.EASING_OUTCUBIC | typeof go.EASING_OUTELASTIC | typeof go.EASING_OUTEXPO | typeof go.EASING_OUTINBACK | typeof go.EASING_OUTINBOUNCE | typeof go.EASING_OUTINCIRC | typeof go.EASING_OUTINCUBIC | typeof go.EASING_OUTINELASTIC | typeof go.EASING_OUTINEXPO | typeof go.EASING_OUTINQUAD | typeof go.EASING_OUTINQUART | typeof go.EASING_OUTINQUINT | typeof go.EASING_OUTINSINE | typeof go.EASING_OUTQUAD | typeof go.EASING_OUTQUART | typeof go.EASING_OUTQUINT | typeof go.EASING_OUTSINE;
27
- type Playback = typeof go.PLAYBACK_ONCE_FORWARD | typeof go.PLAYBACK_ONCE_BACKWARD | typeof go.PLAYBACK_ONCE_PINGPONG | typeof go.PLAYBACK_LOOP_FORWARD | typeof go.PLAYBACK_LOOP_BACKWARD | typeof go.PLAYBACK_LOOP_PINGPONG;
28
- type EASING = typeof go.EASING_INBACK | typeof go.EASING_INBOUNCE | typeof go.EASING_INCIRC | typeof go.EASING_INCUBIC | typeof go.EASING_INELASTIC | typeof go.EASING_INEXPO | typeof go.EASING_INOUTBACK | typeof go.EASING_INOUTBOUNCE | typeof go.EASING_INOUTCIRC | typeof go.EASING_INOUTCUBIC | typeof go.EASING_INOUTELASTIC | typeof go.EASING_INOUTEXPO | typeof go.EASING_INOUTQUAD | typeof go.EASING_INOUTQUART | typeof go.EASING_INOUTQUINT | typeof go.EASING_INOUTSINE | typeof go.EASING_INQUAD | typeof go.EASING_INQUART | typeof go.EASING_INQUINT | typeof go.EASING_INSINE | typeof go.EASING_LINEAR | typeof go.EASING_OUTBACK | typeof go.EASING_OUTBOUNCE | typeof go.EASING_OUTCIRC | typeof go.EASING_OUTCUBIC | typeof go.EASING_OUTELASTIC | typeof go.EASING_OUTEXPO | typeof go.EASING_OUTINBACK | typeof go.EASING_OUTINBOUNCE | typeof go.EASING_OUTINCIRC | typeof go.EASING_OUTINCUBIC | typeof go.EASING_OUTINELASTIC | typeof go.EASING_OUTINEXPO | typeof go.EASING_OUTINQUAD | typeof go.EASING_OUTINQUART | typeof go.EASING_OUTINQUINT | typeof go.EASING_OUTINSINE | typeof go.EASING_OUTQUAD | typeof go.EASING_OUTQUART | typeof go.EASING_OUTQUINT | typeof go.EASING_OUTSINE;
29
- type PLAYBACK = typeof go.PLAYBACK_LOOP_BACKWARD | typeof go.PLAYBACK_LOOP_FORWARD | typeof go.PLAYBACK_LOOP_PINGPONG | typeof go.PLAYBACK_NONE | typeof go.PLAYBACK_ONCE_BACKWARD | typeof go.PLAYBACK_ONCE_FORWARD | typeof go.PLAYBACK_ONCE_PINGPONG;
27
+ type Playback = typeof go.PLAYBACK_LOOP_BACKWARD | typeof go.PLAYBACK_LOOP_FORWARD | typeof go.PLAYBACK_LOOP_PINGPONG | typeof go.PLAYBACK_NONE | typeof go.PLAYBACK_ONCE_BACKWARD | typeof go.PLAYBACK_ONCE_FORWARD | typeof go.PLAYBACK_ONCE_PINGPONG;
30
28
  /**
31
29
  * in-back
32
30
  */
@@ -223,7 +221,7 @@ declare global {
223
221
  /**
224
222
  * Data supplied to the global `on_input` lifecycle function.
225
223
  */
226
- interface action {
224
+ interface Action {
227
225
  /**
228
226
  * Amount of input, usually 1 for buttons or between 0 and 1 for analogue input; absent for pointer movement and text input.
229
227
  */
@@ -299,7 +297,7 @@ declare global {
299
297
  /**
300
298
  * Parsed guid information, supplied with a gamepad-connected action.
301
299
  */
302
- gamepad_guid_info?: go.on_input.gamepad_guid_info;
300
+ gamepad_guid_info?: go.on_input.GamepadGuidInfo;
303
301
  /**
304
302
  * Whether the input originated from an unknown or unmapped gamepad.
305
303
  */
@@ -323,7 +321,7 @@ declare global {
323
321
  /**
324
322
  * Touch inputs, one entry per finger.
325
323
  */
326
- touch?: go.on_input.touch[];
324
+ touch?: go.on_input.Touch[];
327
325
  /**
328
326
  * Text entered by a text action, or the current sequence for marked-text composition such as Japanese Kana.
329
327
  */
@@ -332,7 +330,7 @@ declare global {
332
330
  /**
333
331
  * Parsed fields from a connected gamepad guid.
334
332
  */
335
- interface gamepad_guid_info {
333
+ interface GamepadGuidInfo {
336
334
  /**
337
335
  * USB vendor id.
338
336
  */
@@ -357,7 +355,7 @@ declare global {
357
355
  /**
358
356
  * One touch entry in on_input.action.
359
357
  */
360
- interface touch {
358
+ interface Touch {
361
359
  /**
362
360
  * Identifier for the touch during its lifetime.
363
361
  */
@@ -408,7 +406,7 @@ declare global {
408
406
  screen_dy: number;
409
407
  }
410
408
  }
411
- interface properties {
409
+ interface Properties {
412
410
  /**
413
411
  * The rotation of the game object expressed in Euler angles.
414
412
  * Euler angles are specified in degrees in the interval (-360, 360).
@@ -9,7 +9,7 @@ declare global {
9
9
  /**
10
10
  * Rich-text layout object
11
11
  */
12
- interface layout_object {
12
+ interface LayoutObject {
13
13
  /**
14
14
  * object type, currently `link` or `sprite`
15
15
  */
@@ -47,7 +47,7 @@ declare global {
47
47
  */
48
48
  attributes: LuaTable<string, string>;
49
49
  }
50
- interface properties {
50
+ interface Properties {
51
51
  /**
52
52
  * The color of the label. The type of the property is vector4.
53
53
  */