@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
@@ -738,7 +738,7 @@ declare global {
738
738
  * // How to get the data from a buffer
739
739
  * export default defineScript({
740
740
  * init() {
741
- * const res_path = go.get<mesh.properties>()("#mesh", "vertices");
741
+ * const res_path = go.get<mesh.Properties>()("#mesh", "vertices");
742
742
  * const buf = resource.get_buffer(res_path);
743
743
  * const stream_positions = buffer.get_stream(buf, "position");
744
744
  *
@@ -841,7 +841,7 @@ declare global {
841
841
  * ```ts
842
842
  * export default defineScript({
843
843
  * init() {
844
- * const font = go.get<label.properties>()("#label", "font");
844
+ * const font = go.get<label.Properties>()("#label", "font");
845
845
  * const metrics = resource.get_text_metrics(font, "The quick brown fox\n jumps over the lazy dog");
846
846
  * pprint(metrics);
847
847
  * },
@@ -874,7 +874,7 @@ declare global {
874
874
  * ```ts
875
875
  * export default defineScript({
876
876
  * init() {
877
- * const font = go.get<label.properties>()("#label", "font");
877
+ * const font = go.get<label.Properties>()("#label", "font");
878
878
  * const metrics = resource.get_text_metrics(font, "The quick brown fox\n jumps over the lazy dog");
879
879
  * pprint(metrics);
880
880
  * },
@@ -1064,7 +1064,7 @@ declare global {
1064
1064
  * // Assuming the folder "/res" is added to the project custom resources:
1065
1065
  * // load a texture resource and set it on a sprite
1066
1066
  * const buffer = resource.load("/res/new.texturec");
1067
- * resource.set(go.get<sprite.properties>()("#sprite", "texture0"), buffer);
1067
+ * resource.set(go.get<sprite.Properties>()("#sprite", "texture0"), buffer);
1068
1068
  * ```
1069
1069
  */
1070
1070
  function set(path: string | Hash, buffer: Opaque<"buffer"> & { length: LuaLengthMethod<number> }): void;
@@ -1223,7 +1223,7 @@ declare global {
1223
1223
  *
1224
1224
  * export default defineScript({
1225
1225
  * init() {
1226
- * const res_path = go.get<mesh.properties>()("#mesh", "vertices");
1226
+ * const res_path = go.get<mesh.Properties>()("#mesh", "vertices");
1227
1227
  *
1228
1228
  * const positions = [
1229
1229
  * 1, -1, 0,
@@ -1357,7 +1357,7 @@ declare global {
1357
1357
  * // the engine registers a texture format only when the driver supports it
1358
1358
  * const format = graphics.TEXTURE_FORMAT_RGB;
1359
1359
  * if (format !== undefined) {
1360
- * const resource_path = go.get<model.properties>()("#model", "texture0");
1360
+ * const resource_path = go.get<model.Properties>()("#model", "texture0");
1361
1361
  * const args = { width, height, type: graphics.TEXTURE_TYPE_2D, format, num_mip_maps: 1 };
1362
1362
  * resource.set_texture(resource_path, args, buf);
1363
1363
  * }
@@ -1390,7 +1390,7 @@ declare global {
1390
1390
  * // the engine registers a texture format only when the driver supports it
1391
1391
  * const format = graphics.TEXTURE_FORMAT_RGB;
1392
1392
  * if (format !== undefined) {
1393
- * const resource_path = go.get<model.properties>()("#model", "texture0");
1393
+ * const resource_path = go.get<model.Properties>()("#model", "texture0");
1394
1394
  * const args = { width, height, x, y, type: graphics.TEXTURE_TYPE_2D, format, num_mip_maps: 1 };
1395
1395
  * resource.set_texture(resource_path, args, buf);
1396
1396
  * }
@@ -1411,7 +1411,7 @@ declare global {
1411
1411
  * // the engine registers a texture format only when the driver supports it
1412
1412
  * const format = graphics.TEXTURE_FORMAT_RGB;
1413
1413
  * if (format === undefined) return;
1414
- * const resource_path = go.get<model.properties>()("#model", "texture0");
1414
+ * const resource_path = go.get<model.Properties>()("#model", "texture0");
1415
1415
  * // the "my_buffer" resource is expected to hold 128 * 128 * 3 bytes!
1416
1416
  * const args = {
1417
1417
  * width: 128,
@@ -21,7 +21,7 @@ declare global {
21
21
  * LuaSocket is free software, released under the MIT license (same license as the Lua core).
22
22
  */
23
23
  namespace socket {
24
- interface client {
24
+ interface SocketClient {
25
25
  /**
26
26
  * Closes the TCP object. The internal socket used by the object is closed and the local address to which the object was bound is made available to other applications. No further operations (except for further calls to the close method) are allowed on a closed socket.
27
27
  * It is important to close all used sockets once they are not needed, since, in many systems, each socket uses a file descriptor, which are limited system resources. Garbage-collected objects are automatically closed before destruction, though.
@@ -167,7 +167,7 @@ declare global {
167
167
  */
168
168
  shutdown(mode: string): number;
169
169
  }
170
- interface connected {
170
+ interface SocketConnected {
171
171
  /**
172
172
  * Closes a UDP object. The internal socket used by the object is closed and the local address to which the object was bound is made available to other applications. No further operations (except for further calls to the close method) are allowed on a closed socket.
173
173
  * It is important to close all used sockets once they are not needed, since, in many systems, each socket uses a file descriptor, which are limited system resources. Garbage-collected objects are automatically closed before destruction, though.
@@ -268,7 +268,7 @@ declare global {
268
268
  */
269
269
  settimeout(value: number): void;
270
270
  }
271
- interface master {
271
+ interface SocketMaster {
272
272
  /**
273
273
  * Binds a master object to address and port on the local host.
274
274
  *
@@ -351,12 +351,12 @@ declare global {
351
351
  */
352
352
  settimeout(value: number, mode?: string): void;
353
353
  }
354
- interface server {
354
+ interface SocketServer {
355
355
  /**
356
356
  * Waits for a remote connection on the server object and returns a client object representing that connection.
357
357
  * Calling `socket.select` with a server object in the `recvt` parameter before a call to accept does not guarantee accept will return immediately. Use the `settimeout` method or accept might block until another client shows up.
358
358
  */
359
- accept(): LuaMultiReturn<[client | undefined, string | undefined]>;
359
+ accept(): LuaMultiReturn<[SocketClient | undefined, string | undefined]>;
360
360
  /**
361
361
  * Closes the TCP object. The internal socket used by the object is closed and the local address to which the object was bound is made available to other applications. No further operations (except for further calls to the close method) are allowed on a closed socket.
362
362
  * It is important to close all used sockets once they are not needed, since, in many systems, each socket uses a file descriptor, which are limited system resources. Garbage-collected objects are automatically closed before destruction, though.
@@ -453,7 +453,7 @@ declare global {
453
453
  */
454
454
  settimeout(value: number, mode?: string): void;
455
455
  }
456
- interface unconnected {
456
+ interface SocketUnconnected {
457
457
  /**
458
458
  * Closes a UDP object. The internal socket used by the object is closed and the local address to which the object was bound is made available to other applications. No further operations (except for further calls to the close method) are allowed on a closed socket.
459
459
  * It is important to close all used sockets once they are not needed, since, in many systems, each socket uses a file descriptor, which are limited system resources. Garbage-collected objects are automatically closed before destruction, though.
@@ -585,7 +585,7 @@ declare global {
585
585
  * @param locport - optional local port to bind to.
586
586
  * @param family - optional socket family to use, `"inet"` or `"inet6"`.
587
587
  */
588
- function connect(address: string, port: number, locaddr?: string, locport?: number, family?: string): LuaMultiReturn<[client | undefined, string | undefined]>;
588
+ function connect(address: string, port: number, locaddr?: string, locport?: number, family?: string): LuaMultiReturn<[SocketClient | undefined, string | undefined]>;
589
589
  /**
590
590
  * Returns the time in seconds, relative to the system epoch (Unix epoch time since January 1, 1970 (UTC) or Windows file time since January 1, 1601 (UTC)).
591
591
  * You should use the values returned by this function for relative measurements only.
@@ -664,7 +664,7 @@ declare global {
664
664
  * @param sendt - array with sockets that are watched to see if it is OK to immediately write on them.
665
665
  * @param timeout - the maximum amount of time (in seconds) to wait for a change in status. Nil, negative or omitted timeout value allows the function to block indefinitely.
666
666
  */
667
- function select(recvt: (client | master | unconnected)[], sendt: (client | master | unconnected)[], timeout?: number): LuaMultiReturn<[(client | master | unconnected)[], (client | master | unconnected)[], string | undefined]>;
667
+ function select(recvt: (SocketClient | SocketMaster | SocketUnconnected)[], sendt: (SocketClient | SocketMaster | SocketUnconnected)[], timeout?: number): LuaMultiReturn<[(SocketClient | SocketMaster | SocketUnconnected)[], (SocketClient | SocketMaster | SocketUnconnected)[], string | undefined]>;
668
668
  /**
669
669
  * This function drops a number of arguments and returns the remaining.
670
670
  * It is useful to avoid creation of dummy variables:
@@ -700,21 +700,21 @@ declare global {
700
700
  /**
701
701
  * Creates and returns an IPv4 TCP master object. A master object can be transformed into a server object with the method `listen` (after a call to `bind`) or into a client object with the method `connect`. The only other method supported by a master object is the `close` method.
702
702
  */
703
- function tcp(): LuaMultiReturn<[master | undefined, string | undefined]>;
703
+ function tcp(): LuaMultiReturn<[SocketMaster | undefined, string | undefined]>;
704
704
  /**
705
705
  * Creates and returns an IPv6 TCP master object. A master object can be transformed into a server object with the method `listen` (after a call to `bind`) or into a client object with the method connect. The only other method supported by a master object is the close method.
706
706
  * Note: The TCP object returned will have the option "ipv6-v6only" set to true.
707
707
  */
708
- function tcp6(): LuaMultiReturn<[master | undefined, string | undefined]>;
708
+ function tcp6(): LuaMultiReturn<[SocketMaster | undefined, string | undefined]>;
709
709
  /**
710
710
  * Creates and returns an unconnected IPv4 UDP object. Unconnected objects support the `sendto`, `receive`, `receivefrom`, `getoption`, `getsockname`, `setoption`, `settimeout`, `setpeername`, `setsockname`, and `close` methods. The `setpeername` method is used to connect the object.
711
711
  */
712
- function udp(): LuaMultiReturn<[unconnected | undefined, string | undefined]>;
712
+ function udp(): LuaMultiReturn<[SocketUnconnected | undefined, string | undefined]>;
713
713
  /**
714
714
  * Creates and returns an unconnected IPv6 UDP object. Unconnected objects support the `sendto`, `receive`, `receivefrom`, `getoption`, `getsockname`, `setoption`, `settimeout`, `setpeername`, `setsockname`, and `close` methods. The `setpeername` method is used to connect the object.
715
715
  * Note: The UDP object returned will have the option "ipv6-v6only" set to true.
716
716
  */
717
- function udp6(): LuaMultiReturn<[unconnected | undefined, string | undefined]>;
717
+ function udp6(): LuaMultiReturn<[SocketUnconnected | undefined, string | undefined]>;
718
718
  namespace dns {
719
719
  /**
720
720
  * This function converts a host name to IPv4 or IPv6 address.
@@ -265,7 +265,7 @@ declare global {
265
265
  * ```
266
266
  */
267
267
  function stop(url: string | Hash | Url, stop_properties?: { play_id?: number }): void;
268
- interface properties {
268
+ interface Properties {
269
269
  /**
270
270
  * The gain on the sound-component. Note that gain is in linear scale,
271
271
  * between 0 and 1.
@@ -183,7 +183,7 @@ declare global {
183
183
  * ```
184
184
  */
185
185
  function set_vflip(url: string | Hash | Url, flip: boolean): void;
186
- interface properties {
186
+ interface Properties {
187
187
  /**
188
188
  * READ ONLY The current animation id. An animation that plays currently for the sprite. The type of the property is hash.
189
189
  */
@@ -7,7 +7,7 @@ declare global {
7
7
  * error handling and debugging.
8
8
  */
9
9
  namespace sys {
10
- type NetworkConnectivity = typeof sys.NETWORK_DISCONNECTED | typeof sys.NETWORK_CONNECTED_CELLULAR | typeof sys.NETWORK_CONNECTED;
10
+ type Network = typeof sys.NETWORK_DISCONNECTED | typeof sys.NETWORK_CONNECTED_CELLULAR | typeof sys.NETWORK_CONNECTED;
11
11
  /**
12
12
  * network connected through other, non cellular, connection
13
13
  */
@@ -248,7 +248,7 @@ declare global {
248
248
  * }
249
249
  * ```
250
250
  */
251
- function get_connectivity(): sys.NetworkConnectivity;
251
+ function get_connectivity(): sys.Network;
252
252
  /**
253
253
  * Returns a table with engine information.
254
254
  *
@@ -192,7 +192,7 @@ declare global {
192
192
  * ```
193
193
  */
194
194
  function set_visible(url: string | Hash | Url, layer: string | Hash, visible: boolean): void;
195
- interface properties {
195
+ interface Properties {
196
196
  /**
197
197
  * The material used when rendering the tile map. The type of the property is hash.
198
198
  */
@@ -5,8 +5,7 @@ declare global {
5
5
  * and screen dimming.
6
6
  */
7
7
  namespace window {
8
- type DimModeState = typeof window.DIMMING_UNKNOWN | typeof window.DIMMING_ON | typeof window.DIMMING_OFF;
9
- type DimModeStateSettable = typeof window.DIMMING_ON | typeof window.DIMMING_OFF;
8
+ type Dimming = typeof window.DIMMING_UNKNOWN | typeof window.DIMMING_ON | typeof window.DIMMING_OFF;
10
9
  /**
11
10
  * Dimming mode is used to control whether or not a mobile device should dim the screen after a period without user interaction.
12
11
  */
@@ -56,7 +55,7 @@ declare global {
56
55
  * - `window.DIMMING_ON`
57
56
  * - `window.DIMMING_OFF`
58
57
  */
59
- function get_dim_mode(): window.DimModeState;
58
+ function get_dim_mode(): window.Dimming;
60
59
  /**
61
60
  * This returns the content scale of the current display.
62
61
  *
@@ -103,7 +102,7 @@ declare global {
103
102
  * - `window.DIMMING_ON`
104
103
  * - `window.DIMMING_OFF`
105
104
  */
106
- function set_dim_mode(mode: window.DimModeStateSettable): void;
105
+ function set_dim_mode(mode: Exclude<window.Dimming, typeof window.DIMMING_UNKNOWN>): void;
107
106
  /**
108
107
  * Sets a window event listener. Only one window event listener can be set at a time.
109
108
  *
@@ -6,8 +6,8 @@ declare global {
6
6
  * Functions for interacting with Box2D.
7
7
  */
8
8
  namespace b2d {
9
- type b2Body = Opaque<"b2Body">;
10
- type b2World = Opaque<"b2World">;
9
+ type B2Body = Opaque<"b2Body">;
10
+ type B2World = Opaque<"b2World">;
11
11
  /**
12
12
  * Get the Box2D body from a collision object
13
13
  *
@@ -6,8 +6,8 @@ declare global {
6
6
  * Functions for interacting with Box2D bodies.
7
7
  */
8
8
  namespace b2d.body {
9
- type b2Body = Opaque<"b2Body">;
10
- type b2World = Opaque<"b2World">;
9
+ type B2Body = Opaque<"b2Body">;
10
+ type B2World = Opaque<"b2World">;
11
11
  /**
12
12
  * Dynamic body
13
13
  */
@@ -7,7 +7,7 @@ declare global {
7
7
  * shapes, so it is represented by a separate `b2Chain` handle.
8
8
  */
9
9
  namespace b2d.chain {
10
- type b2Chain = Opaque<"b2Chain">;
10
+ type B2Chain = Opaque<"b2Chain">;
11
11
  /**
12
12
  * Destroying a chain removes all segment shapes owned by the chain. Destroying
13
13
  * any segment shape through `b2d.body.destroy_shape` also destroys its parent chain.
@@ -6,7 +6,7 @@ declare global {
6
6
  * Functions for interacting with native Box2D joints.
7
7
  */
8
8
  namespace b2d.joint {
9
- type b2Joint = Opaque<"b2Joint">;
9
+ type B2Joint = Opaque<"b2Joint">;
10
10
  /**
11
11
  * Distance joint type.
12
12
  */
@@ -7,7 +7,7 @@ declare global {
7
7
  * and returned from `b2d.fixture.get_shape`.
8
8
  */
9
9
  namespace b2d.shape {
10
- type b2Shape = Opaque<"b2Shape">;
10
+ type B2Shape = Opaque<"b2Shape">;
11
11
  /**
12
12
  * Uses the polygon enum value, but indicates the `hx`/`hy` box convenience format.
13
13
  */
@@ -252,7 +252,7 @@ declare global {
252
252
  * ```
253
253
  */
254
254
  function world_to_screen(world_pos: Vector3, camera?: Url | number | string | Hash): Vector3;
255
- interface properties {
255
+ interface Properties {
256
256
  /**
257
257
  * The ratio between the frustum width and height. Used when calculating the
258
258
  * projection of a perspective camera.
@@ -7,7 +7,7 @@ declare global {
7
7
  */
8
8
  namespace go {
9
9
  export 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;
10
- export 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;
10
+ export 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;
11
11
  /**
12
12
  * in-back
13
13
  */
@@ -824,7 +824,7 @@ declare global {
824
824
  */
825
825
  export function world_to_local_transform(transformation: Matrix4, url?: SceneGameObjectAddress | Hash | Url): Matrix4;
826
826
  export { _delete as delete };
827
- export interface properties {
827
+ export interface Properties {
828
828
  /**
829
829
  * The rotation of the game object expressed in Euler angles.
830
830
  * Euler angles are specified in degrees in the interval (-360, 360).
@@ -6,7 +6,7 @@ declare global {
6
6
  namespace graphics {
7
7
  type BlendFactor = typeof graphics.BLEND_FACTOR_ZERO | typeof graphics.BLEND_FACTOR_ONE | typeof graphics.BLEND_FACTOR_SRC_COLOR | typeof graphics.BLEND_FACTOR_ONE_MINUS_SRC_COLOR | typeof graphics.BLEND_FACTOR_DST_COLOR | typeof graphics.BLEND_FACTOR_ONE_MINUS_DST_COLOR | typeof graphics.BLEND_FACTOR_SRC_ALPHA | typeof graphics.BLEND_FACTOR_ONE_MINUS_SRC_ALPHA | typeof graphics.BLEND_FACTOR_DST_ALPHA | typeof graphics.BLEND_FACTOR_ONE_MINUS_DST_ALPHA | typeof graphics.BLEND_FACTOR_SRC_ALPHA_SATURATE | typeof graphics.BLEND_FACTOR_CONSTANT_COLOR | typeof graphics.BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR | typeof graphics.BLEND_FACTOR_CONSTANT_ALPHA | typeof graphics.BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA;
8
8
  type BufferType = typeof graphics.BUFFER_TYPE_COLOR0_BIT | typeof graphics.BUFFER_TYPE_COLOR1_BIT | typeof graphics.BUFFER_TYPE_COLOR2_BIT | typeof graphics.BUFFER_TYPE_COLOR3_BIT | typeof graphics.BUFFER_TYPE_DEPTH_BIT | typeof graphics.BUFFER_TYPE_STENCIL_BIT;
9
- type State = typeof graphics.STATE_DEPTH_TEST | typeof graphics.STATE_STENCIL_TEST | typeof graphics.STATE_BLEND | typeof graphics.STATE_ALPHA_TEST | typeof graphics.STATE_CULL_FACE | typeof graphics.STATE_POLYGON_OFFSET_FILL;
9
+ type State = typeof graphics.STATE_ALPHA_TEST | typeof graphics.STATE_ALPHA_TEST_SUPPORTED | typeof graphics.STATE_BLEND | typeof graphics.STATE_CULL_FACE | typeof graphics.STATE_DEPTH_TEST | typeof graphics.STATE_POLYGON_OFFSET_FILL | typeof graphics.STATE_SCISSOR_TEST | typeof graphics.STATE_STENCIL_TEST;
10
10
  const BLEND_EQUATION_ADD: number & { readonly __brand: "graphics.BLEND_EQUATION_ADD" };
11
11
  const BLEND_EQUATION_MAX: number & { readonly __brand: "graphics.BLEND_EQUATION_MAX" };
12
12
  const BLEND_EQUATION_MIN: number & { readonly __brand: "graphics.BLEND_EQUATION_MIN" };
@@ -6,20 +6,19 @@ declare global {
6
6
  * GUI API documentation
7
7
  */
8
8
  namespace gui {
9
- type AdjustMode = typeof gui.ADJUST_FIT | typeof gui.ADJUST_ZOOM | typeof gui.ADJUST_STRETCH;
10
- type BlendMode = typeof gui.BLEND_ALPHA | typeof gui.BLEND_ADD | typeof gui.BLEND_ADD_ALPHA | typeof gui.BLEND_MULT | typeof gui.BLEND_SCREEN;
9
+ type Adjust = typeof gui.ADJUST_FIT | typeof gui.ADJUST_ZOOM | typeof gui.ADJUST_STRETCH;
10
+ type Anchor = typeof gui.ANCHOR_BOTTOM | typeof gui.ANCHOR_LEFT | typeof gui.ANCHOR_NONE | typeof gui.ANCHOR_RIGHT | typeof gui.ANCHOR_TOP;
11
+ type Blend = typeof gui.BLEND_ALPHA | typeof gui.BLEND_ADD | typeof gui.BLEND_ADD_ALPHA | typeof gui.BLEND_MULT | typeof gui.BLEND_SCREEN;
11
12
  type ClippingMode = typeof gui.CLIPPING_MODE_NONE | typeof gui.CLIPPING_MODE_STENCIL;
12
13
  type Easing = typeof gui.EASING_INBACK | typeof gui.EASING_INBOUNCE | typeof gui.EASING_INCIRC | typeof gui.EASING_INCUBIC | typeof gui.EASING_INELASTIC | typeof gui.EASING_INEXPO | typeof gui.EASING_INOUTBACK | typeof gui.EASING_INOUTBOUNCE | typeof gui.EASING_INOUTCIRC | typeof gui.EASING_INOUTCUBIC | typeof gui.EASING_INOUTELASTIC | typeof gui.EASING_INOUTEXPO | typeof gui.EASING_INOUTQUAD | typeof gui.EASING_INOUTQUART | typeof gui.EASING_INOUTQUINT | typeof gui.EASING_INOUTSINE | typeof gui.EASING_INQUAD | typeof gui.EASING_INQUART | typeof gui.EASING_INQUINT | typeof gui.EASING_INSINE | typeof gui.EASING_LINEAR | typeof gui.EASING_OUTBACK | typeof gui.EASING_OUTBOUNCE | typeof gui.EASING_OUTCIRC | typeof gui.EASING_OUTCUBIC | typeof gui.EASING_OUTELASTIC | typeof gui.EASING_OUTEXPO | typeof gui.EASING_OUTINBACK | typeof gui.EASING_OUTINBOUNCE | typeof gui.EASING_OUTINCIRC | typeof gui.EASING_OUTINCUBIC | typeof gui.EASING_OUTINELASTIC | typeof gui.EASING_OUTINEXPO | typeof gui.EASING_OUTINQUAD | typeof gui.EASING_OUTINQUART | typeof gui.EASING_OUTINQUINT | typeof gui.EASING_OUTINSINE | typeof gui.EASING_OUTQUAD | typeof gui.EASING_OUTQUART | typeof gui.EASING_OUTQUINT | typeof gui.EASING_OUTSINE;
13
14
  type KeyboardType = typeof gui.KEYBOARD_TYPE_DEFAULT | typeof gui.KEYBOARD_TYPE_EMAIL | typeof gui.KEYBOARD_TYPE_NUMBER_PAD | typeof gui.KEYBOARD_TYPE_PASSWORD;
14
- type NodeType = typeof gui.TYPE_BOX | typeof gui.TYPE_TEXT | typeof gui.TYPE_PIE | typeof gui.TYPE_PARTICLEFX | typeof gui.TYPE_CUSTOM;
15
15
  type PieBounds = typeof gui.PIEBOUNDS_RECTANGLE | typeof gui.PIEBOUNDS_ELLIPSE;
16
16
  type Pivot = typeof gui.PIVOT_CENTER | typeof gui.PIVOT_N | typeof gui.PIVOT_NE | typeof gui.PIVOT_E | typeof gui.PIVOT_SE | typeof gui.PIVOT_S | typeof gui.PIVOT_SW | typeof gui.PIVOT_W | typeof gui.PIVOT_NW;
17
17
  type Playback = typeof gui.PLAYBACK_ONCE_FORWARD | typeof gui.PLAYBACK_ONCE_BACKWARD | typeof gui.PLAYBACK_ONCE_PINGPONG | typeof gui.PLAYBACK_LOOP_FORWARD | typeof gui.PLAYBACK_LOOP_BACKWARD | typeof gui.PLAYBACK_LOOP_PINGPONG;
18
- type Property = typeof gui.PROP_POSITION | typeof gui.PROP_ROTATION | typeof gui.PROP_EULER | typeof gui.PROP_SCALE | typeof gui.PROP_COLOR | typeof gui.PROP_OUTLINE | typeof gui.PROP_SHADOW | typeof gui.PROP_SIZE | typeof gui.PROP_FILL_ANGLE | typeof gui.PROP_INNER_RADIUS | typeof gui.PROP_LEADING | typeof gui.PROP_TRACKING | typeof gui.PROP_SLICE9;
19
- type SafeAreaMode = typeof gui.SAFE_AREA_NONE | typeof gui.SAFE_AREA_LONG | typeof gui.SAFE_AREA_SHORT | typeof gui.SAFE_AREA_BOTH;
18
+ type Prop = typeof gui.PROP_POSITION | typeof gui.PROP_ROTATION | typeof gui.PROP_EULER | typeof gui.PROP_SCALE | typeof gui.PROP_COLOR | typeof gui.PROP_OUTLINE | typeof gui.PROP_SHADOW | typeof gui.PROP_SIZE | typeof gui.PROP_FILL_ANGLE | typeof gui.PROP_INNER_RADIUS | typeof gui.PROP_LEADING | typeof gui.PROP_TRACKING | typeof gui.PROP_SLICE9;
19
+ type SafeArea = typeof gui.SAFE_AREA_NONE | typeof gui.SAFE_AREA_LONG | typeof gui.SAFE_AREA_SHORT | typeof gui.SAFE_AREA_BOTH;
20
20
  type SizeMode = typeof gui.SIZE_MODE_MANUAL | typeof gui.SIZE_MODE_AUTO;
21
- type XAnchor = typeof gui.ANCHOR_NONE | typeof gui.ANCHOR_LEFT | typeof gui.ANCHOR_RIGHT;
22
- type YAnchor = typeof gui.ANCHOR_NONE | typeof gui.ANCHOR_TOP | typeof gui.ANCHOR_BOTTOM;
21
+ type Type = typeof gui.TYPE_BOX | typeof gui.TYPE_TEXT | typeof gui.TYPE_PIE | typeof gui.TYPE_PARTICLEFX | typeof gui.TYPE_CUSTOM;
23
22
  /**
24
23
  * Adjust mode is used when the screen resolution differs from the project settings.
25
24
  * The fit mode ensures that the entire node is visible in the adjusted gui scene.
@@ -484,7 +483,7 @@ declare global {
484
483
  * gui.cancel_animations(node);
485
484
  * ```
486
485
  */
487
- function cancel_animations(node: Opaque<"node">, property?: string | gui.Property | Hash): void;
486
+ function cancel_animations(node: Opaque<"node">, property?: string | gui.Prop | Hash): void;
488
487
  /**
489
488
  * Cancels any running flipbook animation on the specified node.
490
489
  *
@@ -561,7 +560,7 @@ declare global {
561
560
  * - `gui.ADJUST_ZOOM`
562
561
  * - `gui.ADJUST_STRETCH`
563
562
  */
564
- function get_adjust_mode(node: Opaque<"node">): gui.AdjustMode;
563
+ function get_adjust_mode(node: Opaque<"node">): gui.Adjust;
565
564
  /**
566
565
  * gets the node alpha
567
566
  *
@@ -582,7 +581,7 @@ declare global {
582
581
  * - `gui.BLEND_MULT`
583
582
  * - `gui.BLEND_SCREEN`
584
583
  */
585
- function get_blend_mode(node: Opaque<"node">): gui.BlendMode;
584
+ function get_blend_mode(node: Opaque<"node">): gui.Blend;
586
585
  /**
587
586
  * If node is set as an inverted clipping node, it will clip anything inside as opposed to outside.
588
587
  *
@@ -976,7 +975,7 @@ declare global {
976
975
  *
977
976
  * @param node - node from which to get the type
978
977
  */
979
- function get_type(node: Opaque<"node">): LuaMultiReturn<[gui.NodeType, number | undefined]>;
978
+ function get_type(node: Opaque<"node">): LuaMultiReturn<[gui.Type, number | undefined]>;
980
979
  /**
981
980
  * Returns `true` if a node is visible and `false` if it's not.
982
981
  * Invisible nodes are not rendered.
@@ -1001,7 +1000,7 @@ declare global {
1001
1000
  * - `gui.ANCHOR_LEFT`
1002
1001
  * - `gui.ANCHOR_RIGHT`
1003
1002
  */
1004
- function get_xanchor(node: Opaque<"node">): gui.XAnchor;
1003
+ function get_xanchor(node: Opaque<"node">): Exclude<gui.Anchor, typeof gui.ANCHOR_BOTTOM | typeof gui.ANCHOR_TOP>;
1005
1004
  /**
1006
1005
  * The y-anchor specifies how the node is moved when the game is run in a different resolution.
1007
1006
  *
@@ -1012,7 +1011,7 @@ declare global {
1012
1011
  * - `gui.ANCHOR_TOP`
1013
1012
  * - `gui.ANCHOR_BOTTOM`
1014
1013
  */
1015
- function get_yanchor(node: Opaque<"node">): gui.YAnchor;
1014
+ function get_yanchor(node: Opaque<"node">): Exclude<gui.Anchor, typeof gui.ANCHOR_LEFT | typeof gui.ANCHOR_RIGHT>;
1016
1015
  /**
1017
1016
  * Hides the on-display touch keyboard on the device.
1018
1017
  */
@@ -1403,7 +1402,7 @@ declare global {
1403
1402
  * - `gui.ADJUST_ZOOM`
1404
1403
  * - `gui.ADJUST_STRETCH`
1405
1404
  */
1406
- function set_adjust_mode(node: Opaque<"node">, adjust_mode: gui.AdjustMode): void;
1405
+ function set_adjust_mode(node: Opaque<"node">, adjust_mode: gui.Adjust): void;
1407
1406
  /**
1408
1407
  * sets the node alpha
1409
1408
  *
@@ -1424,7 +1423,7 @@ declare global {
1424
1423
  * - `gui.BLEND_MULT`
1425
1424
  * - `gui.BLEND_SCREEN`
1426
1425
  */
1427
- function set_blend_mode(node: Opaque<"node">, blend_mode: gui.BlendMode): void;
1426
+ function set_blend_mode(node: Opaque<"node">, blend_mode: gui.Blend): void;
1428
1427
  /**
1429
1428
  * If node is set as an inverted clipping node, it will clip anything inside as opposed to outside.
1430
1429
  *
@@ -1691,7 +1690,7 @@ declare global {
1691
1690
  * - `gui.SAFE_AREA_SHORT`
1692
1691
  * - `gui.SAFE_AREA_BOTH`
1693
1692
  */
1694
- function set_safe_area_mode(mode: gui.SafeAreaMode): void;
1693
+ function set_safe_area_mode(mode: gui.SafeArea): void;
1695
1694
  /**
1696
1695
  * Sets the scaling of the supplied node.
1697
1696
  *
@@ -1901,7 +1900,7 @@ declare global {
1901
1900
  * - `gui.ANCHOR_LEFT`
1902
1901
  * - `gui.ANCHOR_RIGHT`
1903
1902
  */
1904
- function set_xanchor(node: Opaque<"node">, anchor: gui.XAnchor): void;
1903
+ function set_xanchor(node: Opaque<"node">, anchor: Exclude<gui.Anchor, typeof gui.ANCHOR_BOTTOM | typeof gui.ANCHOR_TOP>): void;
1905
1904
  /**
1906
1905
  * The y-anchor specifies how the node is moved when the game is run in a different resolution.
1907
1906
  *
@@ -1912,7 +1911,7 @@ declare global {
1912
1911
  * - `gui.ANCHOR_TOP`
1913
1912
  * - `gui.ANCHOR_BOTTOM`
1914
1913
  */
1915
- function set_yanchor(node: Opaque<"node">, anchor: gui.YAnchor): void;
1914
+ function set_yanchor(node: Opaque<"node">, anchor: Exclude<gui.Anchor, typeof gui.ANCHOR_LEFT | typeof gui.ANCHOR_RIGHT>): void;
1916
1915
  /**
1917
1916
  * Shows the on-display touch keyboard.
1918
1917
  * The specified type of keyboard is displayed if it is available on
@@ -1946,7 +1945,7 @@ declare global {
1946
1945
  * - boolean `clear`: instantly clear spawned particles
1947
1946
  */
1948
1947
  function stop_particlefx(node: Opaque<"node">, options: { clear?: boolean }): void;
1949
- interface properties {
1948
+ interface Properties {
1950
1949
  /**
1951
1950
  * The fonts used in the gui. The type of the property is hash.
1952
1951
  * Key must be specified in options table.
@@ -39,7 +39,7 @@ declare global {
39
39
  * ```
40
40
  */
41
41
  function set_text(url: string | Hash | Url, text: string | number): void;
42
- interface properties {
42
+ interface Properties {
43
43
  /**
44
44
  * The color of the label. The type of the property is vector4.
45
45
  */
@@ -174,7 +174,7 @@ declare global {
174
174
  * });
175
175
  * ```
176
176
  */
177
- function play_anim(url: string | Hash | Url, anim_id: string | Hash, playback: go.Playback, play_properties?: { blend_duration?: number; offset?: number; playback_rate?: number }, complete_function?: (self: unknown, message_id: Hash, message: BuiltinMessages["model_animation_done"]) => void): void;
177
+ function play_anim(url: string | Hash | Url, anim_id: string | Hash, playback: Exclude<go.Playback, typeof go.PLAYBACK_NONE>, play_properties?: { blend_duration?: number; offset?: number; playback_rate?: number }, complete_function?: (self: unknown, message_id: Hash, message: BuiltinMessages["model_animation_done"]) => void): void;
178
178
  /**
179
179
  * Resets a shader constant for a model component.
180
180
  * The constant must be defined in the material assigned to the model.
@@ -224,7 +224,7 @@ declare global {
224
224
  * ```
225
225
  */
226
226
  function set_mesh_enabled(url: string | Hash | Url, mesh_id: string | Hash, enabled: boolean): void;
227
- interface properties {
227
+ interface Properties {
228
228
  /**
229
229
  * The current animation set on the component. The type of the property is hash.
230
230
  */
@@ -239,37 +239,69 @@ declare global {
239
239
  */
240
240
  playback_rate: number;
241
241
  /**
242
- * The texture hash id of the model. Used for getting/setting model texture for unit 0-7
242
+ * The texture hash id of the model, read and written on the texture unit the key's number names (`texture3` is unit 3).
243
243
  */
244
244
  texture0: Hash;
245
245
  /**
246
- * The texture hash id of the model. Used for getting/setting model texture for unit 0-7
246
+ * The texture hash id of the model, read and written on the texture unit the key's number names (`texture3` is unit 3).
247
247
  */
248
248
  texture1: Hash;
249
249
  /**
250
- * The texture hash id of the model. Used for getting/setting model texture for unit 0-7
250
+ * The texture hash id of the model, read and written on the texture unit the key's number names (`texture3` is unit 3).
251
251
  */
252
252
  texture2: Hash;
253
253
  /**
254
- * The texture hash id of the model. Used for getting/setting model texture for unit 0-7
254
+ * The texture hash id of the model, read and written on the texture unit the key's number names (`texture3` is unit 3).
255
255
  */
256
256
  texture3: Hash;
257
257
  /**
258
- * The texture hash id of the model. Used for getting/setting model texture for unit 0-7
258
+ * The texture hash id of the model, read and written on the texture unit the key's number names (`texture3` is unit 3).
259
259
  */
260
260
  texture4: Hash;
261
261
  /**
262
- * The texture hash id of the model. Used for getting/setting model texture for unit 0-7
262
+ * The texture hash id of the model, read and written on the texture unit the key's number names (`texture3` is unit 3).
263
263
  */
264
264
  texture5: Hash;
265
265
  /**
266
- * The texture hash id of the model. Used for getting/setting model texture for unit 0-7
266
+ * The texture hash id of the model, read and written on the texture unit the key's number names (`texture3` is unit 3).
267
267
  */
268
268
  texture6: Hash;
269
269
  /**
270
- * The texture hash id of the model. Used for getting/setting model texture for unit 0-7
270
+ * The texture hash id of the model, read and written on the texture unit the key's number names (`texture3` is unit 3).
271
271
  */
272
272
  texture7: Hash;
273
+ /**
274
+ * The texture hash id of the model, read and written on the texture unit the key's number names (`texture3` is unit 3).
275
+ */
276
+ texture8: Hash;
277
+ /**
278
+ * The texture hash id of the model, read and written on the texture unit the key's number names (`texture3` is unit 3).
279
+ */
280
+ texture9: Hash;
281
+ /**
282
+ * The texture hash id of the model, read and written on the texture unit the key's number names (`texture3` is unit 3).
283
+ */
284
+ texture10: Hash;
285
+ /**
286
+ * The texture hash id of the model, read and written on the texture unit the key's number names (`texture3` is unit 3).
287
+ */
288
+ texture11: Hash;
289
+ /**
290
+ * The texture hash id of the model, read and written on the texture unit the key's number names (`texture3` is unit 3).
291
+ */
292
+ texture12: Hash;
293
+ /**
294
+ * The texture hash id of the model, read and written on the texture unit the key's number names (`texture3` is unit 3).
295
+ */
296
+ texture13: Hash;
297
+ /**
298
+ * The texture hash id of the model, read and written on the texture unit the key's number names (`texture3` is unit 3).
299
+ */
300
+ texture14: Hash;
301
+ /**
302
+ * The texture hash id of the model, read and written on the texture unit the key's number names (`texture3` is unit 3).
303
+ */
304
+ texture15: Hash;
273
305
  }
274
306
  }
275
307
  }
@@ -156,7 +156,7 @@ declare global {
156
156
  * ```
157
157
  */
158
158
  function stop(url: string | Hash | Url, options: { clear?: boolean }): void;
159
- interface properties {
159
+ interface Properties {
160
160
  /**
161
161
  * The animation used during rendering by an emitter in a particle FX component.
162
162
  * The property type is a hash and refers to a valid animation in an atlas or a tile source resource.
@@ -570,7 +570,7 @@ declare global {
570
570
  * ```
571
571
  */
572
572
  function wakeup(url: string | Hash | Url): void;
573
- interface properties {
573
+ interface Properties {
574
574
  /**
575
575
  * The angular damping value for the collision object. Setting this value alters the damping of
576
576
  * angular motion of the object (rotation). Valid values are between 0 (no damping) and 1 (full damping).
@@ -6,9 +6,9 @@ declare global {
6
6
  * Rendering API documentation
7
7
  */
8
8
  namespace render {
9
- type constant_buffer = Opaque<"constant_buffer"> & { [name: string]: Vector4 | Matrix4 | ConstantArray<Vector4> | ConstantArray<Matrix4> };
10
- type render_target = Opaque<"render_target">;
11
- type texture = Opaque<"texture">;
9
+ type ConstantBuffer = Opaque<"constant_buffer"> & { [name: string]: Vector4 | Matrix4 | ConstantArray<Vector4> | ConstantArray<Matrix4> };
10
+ type RenderTarget = Opaque<"render_target">;
11
+ type Texture = Opaque<"texture">;
12
12
  type ClearBufferKey = typeof graphics.BUFFER_TYPE_COLOR0_BIT | typeof graphics.BUFFER_TYPE_DEPTH_BIT | typeof graphics.BUFFER_TYPE_STENCIL_BIT;
13
13
  type RenderTargetTextureType = typeof graphics.TEXTURE_TYPE_2D | typeof graphics.TEXTURE_TYPE_CUBE_MAP;
14
14
  type RenderTargetParams = Record<string | number, unknown>;
@@ -178,7 +178,7 @@ declare global {
178
178
  * });
179
179
  * ```
180
180
  */
181
- function disable_state(state: graphics.State): void;
181
+ function disable_state(state: Exclude<graphics.State, typeof graphics.STATE_ALPHA_TEST_SUPPORTED | typeof graphics.STATE_SCISSOR_TEST>): void;
182
182
  /**
183
183
  * Disables a texture that has previourly been enabled.
184
184
  *
@@ -463,7 +463,7 @@ declare global {
463
463
  * });
464
464
  * ```
465
465
  */
466
- function enable_state(state: graphics.State): void;
466
+ function enable_state(state: Exclude<graphics.State, typeof graphics.STATE_ALPHA_TEST_SUPPORTED | typeof graphics.STATE_SCISSOR_TEST>): void;
467
467
  /**
468
468
  * Sets the specified texture handle for a render target attachment or a regular texture
469
469
  * that should be used for rendering. The texture can be bound to either a texture unit