@ts-defold/types 1.2.46 → 1.2.48

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 (2) hide show
  1. package/index.d.ts +264 -29
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /// <reference types="lua-types/5.1" />
3
3
  /// <reference types="@typescript-to-lua/language-extensions" />
4
4
 
5
- // DEFOLD. stable version 1.8.1 (fd1ad4c17bfdcd890ea7176f2672c35102384419)
5
+ // DEFOLD. stable version 1.9.1 (3be87d89fd5a93a63f527351fbedb84f8a875812)
6
6
  // =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= //
7
7
 
8
8
 
@@ -315,13 +315,6 @@ declare namespace b2d.body {
315
315
  */
316
316
  export function get_angular_damping(body: any): number
317
317
 
318
- /**
319
- * Set the angular velocity.
320
- * @param body body
321
- * @param omega the new angular velocity in radians/second.
322
- */
323
- export function get_angular_velocity(body: any, omega: number): void
324
-
325
318
  /**
326
319
  * Get the angular velocity.
327
320
  * @param body body
@@ -529,6 +522,13 @@ declare namespace b2d.body {
529
522
  */
530
523
  export function set_angular_damping(body: any, damping: number): void
531
524
 
525
+ /**
526
+ * Set the angular velocity.
527
+ * @param body body
528
+ * @param omega the new angular velocity in radians/second.
529
+ */
530
+ export function set_angular_velocity(body: any, omega: number): void
531
+
532
532
  /**
533
533
  * Set the sleep state of the body. A sleeping body has very low CPU cost.
534
534
  * @param body body
@@ -775,6 +775,7 @@ declare namespace go {
775
775
  * and be a part of the simulation. A component is disabled when it receives the `disable` message.
776
776
  * undefined Components that currently supports this message are:
777
777
  *
778
+ * - Camera
778
779
  * - Collection Proxy
779
780
  * - Collision Object
780
781
  * - Gui
@@ -793,6 +794,7 @@ declare namespace go {
793
794
  * and be a part of the simulation. A component is disabled when it receives the `disable` message.
794
795
  * undefined Components that currently supports this message are:
795
796
  *
797
+ * - Camera
796
798
  * - Collection Proxy
797
799
  * - Collision Object
798
800
  * - Gui
@@ -1759,6 +1761,11 @@ declare namespace gui {
1759
1761
  */
1760
1762
  export let PROP_INNER_RADIUS: any
1761
1763
 
1764
+ /**
1765
+ * leading property
1766
+ */
1767
+ export let PROP_LEADING: any
1768
+
1762
1769
  /**
1763
1770
  * outline color property
1764
1771
  */
@@ -1794,6 +1801,11 @@ declare namespace gui {
1794
1801
  */
1795
1802
  export let PROP_SLICE9: any
1796
1803
 
1804
+ /**
1805
+ * tracking property
1806
+ */
1807
+ export let PROP_TRACKING: any
1808
+
1797
1809
  /**
1798
1810
  * data error
1799
1811
  */
@@ -1848,6 +1860,8 @@ declare namespace gui {
1848
1860
  - `"size"`
1849
1861
  - `"fill_angle"` (pie)
1850
1862
  - `"inner_radius"` (pie)
1863
+ - `"leading"` (text)
1864
+ - `"tracking"` (text)
1851
1865
  - `"slice9"` (slice9)
1852
1866
 
1853
1867
  The following property constants are defined equaling the corresponding property string names.
@@ -1862,6 +1876,8 @@ The following property constants are defined equaling the corresponding property
1862
1876
  - `gui.PROP_SIZE`
1863
1877
  - `gui.PROP_FILL_ANGLE`
1864
1878
  - `gui.PROP_INNER_RADIUS`
1879
+ - `gui.PROP_LEADING`
1880
+ - `gui.PROP_TRACKING`
1865
1881
  - `gui.PROP_SLICE9`
1866
1882
 
1867
1883
  * @param to target property value
@@ -1899,6 +1915,8 @@ with a custom curve. See the animation guide for more information.
1899
1915
  - `"size"`
1900
1916
  - `"fill_angle"` (pie)
1901
1917
  - `"inner_radius"` (pie)
1918
+ - `"leading"` (text)
1919
+ - `"tracking"` (text)
1902
1920
  - `"slice9"` (slice9)
1903
1921
 
1904
1922
  */
@@ -1946,7 +1964,7 @@ with a custom curve. See the animation guide for more information.
1946
1964
  * Instead of using specific getters such as gui.get_position or gui.get_scale,
1947
1965
  * you can use gui.get instead and supply the property as a string or a hash.
1948
1966
  * While this function is similar to go.get, there are a few more restrictions
1949
- * when operating in the gui namespace. Most notably, only these propertie identifiers are supported:
1967
+ * when operating in the gui namespace. Most notably, only these explicitly named properties are supported:
1950
1968
  *
1951
1969
  * - `"position"`
1952
1970
  * - `"rotation"`
@@ -1958,14 +1976,19 @@ with a custom curve. See the animation guide for more information.
1958
1976
  * - `"size"`
1959
1977
  * - `"fill_angle"` (pie)
1960
1978
  * - `"inner_radius"` (pie)
1979
+ * - `"leading"` (text)
1980
+ * - `"tracking"` (text)
1961
1981
  * - `"slice9"` (slice9)
1962
1982
  *
1963
1983
  * The value returned will either be a vmath.vector4 or a single number, i.e getting the "position"
1964
1984
  * property will return a vec4 while getting the "position.x" property will return a single value.
1985
+ * You can also use this function to get material constants.
1965
1986
  * @param node node to get the property for
1966
1987
  * @param property the property to retrieve
1988
+ * @param options optional options table (only applicable for material constants)
1989
+ index into array property (1 based)
1967
1990
  */
1968
- export function get(node: node, property: any): void
1991
+ export function get(node: node, property: any, options?: any): void
1969
1992
 
1970
1993
  /**
1971
1994
  * Returns the adjust mode of a node.
@@ -1984,8 +2007,9 @@ with a custom curve. See the animation guide for more information.
1984
2007
  /**
1985
2008
  * gets the node alpha
1986
2009
  * @param node node from which to get alpha
2010
+ * @return alpha alpha
1987
2011
  */
1988
- export function get_alpha(node: node): void
2012
+ export function get_alpha(node: node): number
1989
2013
 
1990
2014
  /**
1991
2015
  * Returns the blend mode of a node.
@@ -2005,7 +2029,7 @@ with a custom curve. See the animation guide for more information.
2005
2029
  /**
2006
2030
  * If node is set as an inverted clipping node, it will clip anything inside as opposed to outside.
2007
2031
  * @param node node from which to get the clipping inverted state
2008
- * @return inverted true or false
2032
+ * @return inverted `true` or `false`
2009
2033
  */
2010
2034
  export function get_clipping_inverted(node: node): boolean
2011
2035
 
@@ -2023,7 +2047,7 @@ with a custom curve. See the animation guide for more information.
2023
2047
  /**
2024
2048
  * If node is set as visible clipping node, it will be shown as well as clipping. Otherwise, it will only clip but not show visually.
2025
2049
  * @param node node from which to get the clipping visibility state
2026
- * @return visible true or false
2050
+ * @return visible `true` or `false`
2027
2051
  */
2028
2052
  export function get_clipping_visible(node: node): boolean
2029
2053
 
@@ -2136,8 +2160,9 @@ with a custom curve. See the animation guide for more information.
2136
2160
  /**
2137
2161
  * gets the node inherit alpha state
2138
2162
  * @param node node from which to get the inherit alpha state
2163
+ * @return inherit_alpha `true` or `false`
2139
2164
  */
2140
- export function get_inherit_alpha(node: node): void
2165
+ export function get_inherit_alpha(node: node): boolean
2141
2166
 
2142
2167
  /**
2143
2168
  * Returns the inner radius of a pie node.
@@ -2179,8 +2204,9 @@ with a custom curve. See the animation guide for more information.
2179
2204
  * Returns the material of a node.
2180
2205
  * The material must be mapped to the gui scene in the gui editor.
2181
2206
  * @param node node to get the material for
2207
+ * @return materal material id
2182
2208
  */
2183
- export function get_material(node: node): void
2209
+ export function get_material(node: node): hash
2184
2210
 
2185
2211
  /**
2186
2212
  * Retrieves the node with the specified id.
@@ -2558,7 +2584,7 @@ the new state of the emitter:
2558
2584
  * Instead of using specific setteres such as gui.set_position or gui.set_scale,
2559
2585
  * you can use gui.set instead and supply the property as a string or a hash.
2560
2586
  * While this function is similar to go.get and go.set, there are a few more restrictions
2561
- * when operating in the gui namespace. Most notably, only these propertie identifiers are supported:
2587
+ * when operating in the gui namespace. Most notably, only these named properties identifiers are supported:
2562
2588
  *
2563
2589
  * - `"position"`
2564
2590
  * - `"rotation"`
@@ -2570,6 +2596,8 @@ the new state of the emitter:
2570
2596
  * - `"size"`
2571
2597
  * - `"fill_angle"` (pie)
2572
2598
  * - `"inner_radius"` (pie)
2599
+ * - `"leading"` (text)
2600
+ * - `"tracking"` (text)
2573
2601
  * - `"slice9"` (slice9)
2574
2602
  *
2575
2603
  * The value to set must either be a vmath.vector4, vmath.vector3, vmath.quat or a single number and depends on the property name you want to set.
@@ -2578,11 +2606,17 @@ the new state of the emitter:
2578
2606
  * Note: When setting the rotation using the "rotation" property, you need to pass in a vmath.quat. This behaviour is different than from the gui.set_rotation function,
2579
2607
  * the intention is to move new functionality closer to go namespace so that migrating between gui and go is easier. To set the rotation using degrees instead,
2580
2608
  * use the "euler" property instead. The rotation and euler properties are linked, changing one of them will change the backing data of the other.
2609
+ * Similar to go.set, you can also use gui.set for setting material constant values on a node. E.g if a material has specified a constant called `tint` in
2610
+ * the .material file, you can use gui.set to set the value of that constant by calling `gui.set(node, "tint", vmath.vec4(1,0,0,1))`, or `gui.set(node, "matrix", vmath.matrix4())`
2611
+ * if the constant is a matrix. Arrays are also supported by gui.set - to set an array constant, you need to pass in an options table with the 'index' key set.
2612
+ * If the material has a constant array called 'tint_array' specified in the material, you can use `gui.set(node, "tint_array", vmath.vec4(1,0,0,1), { index = 4})` to set the fourth array element to a different value.
2581
2613
  * @param node node to set the property for
2582
2614
  * @param property the property to set
2583
2615
  * @param value the property to set
2616
+ * @param options optional options table (only applicable for material constants)
2617
+ index into array property (1 based)
2584
2618
  */
2585
- export function set(node: node, property: any, value: number | vmath.vector4 | vmath.vector3 | vmath.quaternion): void
2619
+ export function set(node: node, property: any, value: number | vmath.vector4 | vmath.vector3 | vmath.quaternion, options?: any): void
2586
2620
 
2587
2621
  /**
2588
2622
  * Sets the adjust mode on a node.
@@ -2623,7 +2657,7 @@ the new state of the emitter:
2623
2657
  /**
2624
2658
  * If node is set as an inverted clipping node, it will clip anything inside as opposed to outside.
2625
2659
  * @param node node to set clipping inverted state for
2626
- * @param inverted true or false
2660
+ * @param inverted `true` or `false`
2627
2661
  */
2628
2662
  export function set_clipping_inverted(node: node, inverted: boolean): void
2629
2663
 
@@ -2641,7 +2675,7 @@ the new state of the emitter:
2641
2675
  /**
2642
2676
  * If node is set as an visible clipping node, it will be shown as well as clipping. Otherwise, it will only clip but not show visually.
2643
2677
  * @param node node to set clipping visibility for
2644
- * @param visible true or false
2678
+ * @param visible `true` or `false`
2645
2679
  */
2646
2680
  export function set_clipping_visible(node: node, visible: boolean): void
2647
2681
 
@@ -2739,7 +2773,7 @@ the new state of the emitter:
2739
2773
  /**
2740
2774
  * sets the node inherit alpha state
2741
2775
  * @param node node from which to set the inherit alpha state
2742
- * @param inherit_alpha true or false
2776
+ * @param inherit_alpha `true` or `false`
2743
2777
  */
2744
2778
  export function set_inherit_alpha(node: node, inherit_alpha: boolean): void
2745
2779
 
@@ -2770,7 +2804,7 @@ the new state of the emitter:
2770
2804
  * Sets the line-break mode on a text node.
2771
2805
  * This is only useful for text nodes.
2772
2806
  * @param node node to set line-break for
2773
- * @param line_break true or false
2807
+ * @param line_break `true` or `false`
2774
2808
  */
2775
2809
  export function set_line_break(node: node, line_break: boolean): void
2776
2810
 
@@ -4096,6 +4130,23 @@ declare namespace render {
4096
4130
  */
4097
4131
  export function disable_texture(binding: number | string | hash): void
4098
4132
 
4133
+ /**
4134
+ * Dispatches the currently enabled compute program. The dispatch call takes three arguments x,y,z which constitutes
4135
+ * the 'global working group' of the compute dispatch. Together with the 'local working group' specified in the compute shader
4136
+ * as a layout qualifier, these two sets of parameters forms the number of invocations the compute shader will execute.
4137
+ * An optional constant buffer can be provided to override the default constants. If no constants buffer is provided, a default
4138
+ * system constants buffer is used containing constants as defined in the compute program.
4139
+ * @param x global work group size X
4140
+ * @param y global work group size Y
4141
+ * @param z global work group size Z
4142
+ * @param options optional table with properties:
4143
+
4144
+ `constants`
4145
+ optional constants to use while rendering
4146
+
4147
+ */
4148
+ export function dispatch_compute(x: number, y: number, z: number, options?: any): void
4149
+
4099
4150
  /**
4100
4151
  * Draws all objects that match a specified predicate. An optional constant buffer can be
4101
4152
  * provided to override the default constants. If no constants buffer is provided, a default
@@ -4455,6 +4506,14 @@ If true, the renderer will use the cameras view-projection matrix for frustum cu
4455
4506
  */
4456
4507
  export function set_color_mask(red: boolean, green: boolean, blue: boolean, alpha: boolean): void
4457
4508
 
4509
+ /**
4510
+ * The name of the compute program must be specified in the ".render" resource set
4511
+ * in the "game.project" setting. If nil (or no arguments) are passed to this function,
4512
+ * the current compute program will instead be disabled.
4513
+ * @param compute compute id to use, or nil to disable
4514
+ */
4515
+ export function set_compute(compute: any): void
4516
+
4458
4517
  /**
4459
4518
  * Specifies whether front- or back-facing polygons can be culled
4460
4519
  * when polygon culling is enabled. Polygon culling is initially disabled.
@@ -4800,6 +4859,21 @@ declare namespace resource {
4800
4859
  */
4801
4860
  export let TEXTURE_TYPE_CUBE_MAP: any
4802
4861
 
4862
+ /**
4863
+ * Usage hint for creating textures that uses temporary memory
4864
+ */
4865
+ export let TEXTURE_USAGE_FLAG_MEMORYLESS: any
4866
+
4867
+ /**
4868
+ * Usage hint for creating textures that can be sampled in a shader
4869
+ */
4870
+ export let TEXTURE_USAGE_FLAG_SAMPLE: any
4871
+
4872
+ /**
4873
+ * Usage hint for creating textures that can be used for writing in a shader
4874
+ */
4875
+ export let TEXTURE_USAGE_FLAG_STORAGE: any
4876
+
4803
4877
  /**
4804
4878
  * Constructor-like function with two purposes:
4805
4879
  *
@@ -4984,6 +5058,7 @@ The texture type. Supported values:
4984
5058
 
4985
5059
  - `resource.TEXTURE_TYPE_2D`
4986
5060
  - `resource.TEXTURE_TYPE_CUBE_MAP`
5061
+ - `resource.TEXTURE_TYPE_IMAGE_2D`
4987
5062
 
4988
5063
 
4989
5064
  `width`
@@ -5028,6 +5103,16 @@ end
5028
5103
  `
5029
5104
 
5030
5105
 
5106
+ `flags`
5107
+ Texture creation flags that can be used to dictate how the texture is created. The default value is resource.TEXTURE_USAGE_FLAG_SAMPLE, which means that the texture can be sampled from a shader.
5108
+ These flags may or may not be supported on the running device and/or the underlying graphics API and is simply used internally as a 'hint' when creating the texture. There is no guarantee that any of these will have any effect. Supported values:
5109
+
5110
+
5111
+ - `resource.TEXTURE_USAGE_FLAG_SAMPLE` - The texture can be sampled from a shader (default)
5112
+ - `resource.TEXTURE_USAGE_FLAG_MEMORYLESS` - The texture can be used as a memoryless texture, i.e only transient memory for the texture is used during rendering
5113
+ - `resource.TEXTURE_USAGE_FLAG_STORAGE` - The texture can be used as a storage texture, which is required for a shader to write to the texture
5114
+
5115
+
5031
5116
  `max_mipmaps`
5032
5117
  optional max number of mipmaps. Defaults to zero, i.e no mipmap support
5033
5118
  `compression_type`
@@ -5100,6 +5185,15 @@ These constants might not be available on the device:
5100
5185
  - `resource.TEXTURE_FORMAT_R32F`
5101
5186
  - `resource.TEXTURE_FORMAT_RG32F`
5102
5187
 
5188
+
5189
+ `flags`
5190
+ Texture creation flags that can be used to dictate how the texture is created. Supported values:
5191
+
5192
+
5193
+ - `resource.TEXTURE_USAGE_FLAG_SAMPLE` - The texture can be sampled from a shader (default)
5194
+ - `resource.TEXTURE_USAGE_FLAG_MEMORYLESS` - The texture can be used as a memoryless texture, i.e only transient memory for the texture is used during rendering
5195
+ - `resource.TEXTURE_USAGE_FLAG_STORAGE` - The texture can be used as a storage texture, which is required for a shader to write to the texture
5196
+
5103
5197
  You can test if the device supports these values by checking if a specific enum is nil or not:
5104
5198
  `if resource.TEXTURE_FORMAT_RGBA16F ~= nil then
5105
5199
  -- it is safe to use this format
@@ -5192,7 +5286,15 @@ The attachment buffer type. Supported values:
5192
5286
  - `resource.BUFFER_TYPE_COLOR2`
5193
5287
  - `resource.BUFFER_TYPE_COLOR3`
5194
5288
  - `resource.BUFFER_TYPE_DEPTH`
5195
- - `resource.BUFFER_TYPE_STENCIL`
5289
+
5290
+ `resource.BUFFER_TYPE_STENCIL`
5291
+
5292
+
5293
+
5294
+ `texture`
5295
+ The hashed path to the attachment texture resource. This field is only available if the render target passed in is a resource.
5296
+
5297
+
5196
5298
 
5197
5299
  */
5198
5300
  export function get_render_target_info(path: any): any
@@ -5237,11 +5339,14 @@ height of the texture
5237
5339
  depth of the texture (i.e 1 for a 2D texture and 6 for a cube map)
5238
5340
  `mipmaps`
5239
5341
  number of mipmaps of the texture
5342
+ `flags`
5343
+ usage hints of the texture.
5240
5344
  `type`
5241
5345
  The texture type. Supported values:
5242
5346
 
5243
5347
 
5244
5348
  - `resource.TEXTURE_TYPE_2D`
5349
+ - `resource.TEXTURE_TYPE_IMAGE_2D`
5245
5350
  - `resource.TEXTURE_TYPE_CUBE_MAP`
5246
5351
  - `resource.TEXTURE_TYPE_2D_ARRAY`
5247
5352
 
@@ -5274,6 +5379,18 @@ The texture type. Supported values:
5274
5379
  */
5275
5380
  export function release(path: hash | string): void
5276
5381
 
5382
+ /**
5383
+ * Constructor-like function with two purposes:
5384
+ *
5385
+ * - Load the specified resource as part of loading the script
5386
+ * - Return a hash to the run-time version of the resource
5387
+ *
5388
+ * ⚠ This function can only be called within go.property function calls.
5389
+ * @param path optional resource path string to the resource
5390
+ * @return path a path hash to the binary version of the resource
5391
+ */
5392
+ export function render_target(path?: string): hash
5393
+
5277
5394
  /**
5278
5395
  * Sets the resource data for a specific resource
5279
5396
  * @param path The path to the resource
@@ -5870,7 +5987,7 @@ If the request was successfull, this will contain the request payload in a buffe
5870
5987
  * @param arg5 argument 5
5871
5988
  * @param arg6 argument 6
5872
5989
  */
5873
- export function reboot(arg1: string, arg2: string, arg3: string, arg4: string, arg5: string, arg6: string): void
5990
+ export function reboot(arg1?: string, arg2?: string, arg3?: string, arg4?: string, arg5?: string, arg6?: string): void
5874
5991
 
5875
5992
  /**
5876
5993
  * The table can later be loaded by `sys.load`.
@@ -7014,6 +7131,97 @@ declare namespace camera {
7014
7131
  */
7015
7132
  export let aspect_ratio: any
7016
7133
 
7134
+ /**
7135
+ * get aspect ratio
7136
+ * @param camera camera id
7137
+ * @return aspect_ratio the aspect ratio.
7138
+ */
7139
+ export function get_aspect_ratio(camera: any): number
7140
+
7141
+ /**
7142
+ * This function returns a table with all the camera URLs that have been
7143
+ * registered in the render context.
7144
+ * @return cameras a table with all camera URLs
7145
+ */
7146
+ export function get_cameras(): any
7147
+
7148
+ /**
7149
+ * get far z
7150
+ * @param camera camera id
7151
+ * @return far_z the far z.
7152
+ */
7153
+ export function get_far_z(camera: any): number
7154
+
7155
+ /**
7156
+ * get field of view
7157
+ * @param camera camera id
7158
+ * @return fov the field of view.
7159
+ */
7160
+ export function get_fov(camera: any): number
7161
+
7162
+ /**
7163
+ * get near z
7164
+ * @param camera camera id
7165
+ * @return near_z the near z.
7166
+ */
7167
+ export function get_near_z(camera: any): number
7168
+
7169
+ /**
7170
+ * get orthographic zoom
7171
+ * @param camera camera id
7172
+ * @return orthographic_zoom true if the camera is using an orthographic projection.
7173
+ */
7174
+ export function get_orthographic_zoom(camera: any): boolean
7175
+
7176
+ /**
7177
+ * get projection matrix
7178
+ * @param camera camera id
7179
+ * @return projection the projection matrix.
7180
+ */
7181
+ export function get_projection(camera: any): vmath.matrix4
7182
+
7183
+ /**
7184
+ * get view matrix
7185
+ * @param camera camera id
7186
+ * @return view the view matrix.
7187
+ */
7188
+ export function get_view(camera: any): vmath.matrix4
7189
+
7190
+ /**
7191
+ * set aspect ratio
7192
+ * @param camera camera id
7193
+ * @param aspect_ratio the aspect ratio.
7194
+ */
7195
+ export function set_aspect_ratio(camera: any, aspect_ratio: number): void
7196
+
7197
+ /**
7198
+ * set far z
7199
+ * @param camera camera id
7200
+ * @param far_z the far z.
7201
+ */
7202
+ export function set_far_z(camera: any, far_z: number): void
7203
+
7204
+ /**
7205
+ * set field of view
7206
+ * @param camera camera id
7207
+ * @param fov the field of view.
7208
+ */
7209
+ export function set_fov(camera: any, fov: number): void
7210
+
7211
+ /**
7212
+ * set near z
7213
+ * @param camera camera id
7214
+ * @param near_z the near z.
7215
+ */
7216
+ export function set_near_z(camera: any, near_z: number): void
7217
+
7218
+ /**
7219
+ * set orthographic zoom
7220
+ * @param camera camera id
7221
+ * @param orthographic_zoom true if the camera is using an orthographic projection.
7222
+ */
7223
+ export function set_orthographic_zoom(camera: any, orthographic_zoom: boolean): void
7224
+
7017
7225
  /**
7018
7226
  * Camera frustum far plane.
7019
7227
  * The type of the property is float.
@@ -7160,13 +7368,15 @@ declare namespace collectionproxy {
7160
7368
  export type async_load = "async_load"
7161
7369
 
7162
7370
  /**
7163
- * return an indexed table of resources for a collection proxy. Each
7164
- * entry is a hexadecimal string that represents the data of the specific
7165
- * resource. This representation corresponds with the filename for each
7166
- * individual resource that is exported when you bundle an application with
7167
- * LiveUpdate functionality.
7371
+ * return an indexed table of resources for a collection proxy where the
7372
+ * referenced collection has been excluded using LiveUpdate. Each entry is a
7373
+ * hexadecimal string that represents the data of the specific resource.
7374
+ * This representation corresponds with the filename for each individual
7375
+ * resource that is exported when you bundle an application with LiveUpdate
7376
+ * functionality.
7168
7377
  * @param collectionproxy the collectionproxy to check for resources.
7169
- * @return resources the resources
7378
+ * @return resources the resources, or an empty list if the
7379
+ collection was not excluded.
7170
7380
  */
7171
7381
  export function get_resources(collectionproxy: url): any
7172
7382
 
@@ -8062,6 +8272,31 @@ declare namespace tilemap {
8062
8272
  */
8063
8273
  export function get_tile(url: string | hash | url, layer: string | hash, x: number, y: number): number
8064
8274
 
8275
+ /**
8276
+ * Get the tile information at the specified position in the tilemap.
8277
+ * The position is identified by the tile index starting at origin
8278
+ * with index 1, 1. (see tilemap.set_tile())
8279
+ * Which tile map and layer to query is identified by the URL and the
8280
+ * layer name parameters.
8281
+ * @param url the tile map
8282
+ * @param layer name of the layer for the tile
8283
+ * @param x x-coordinate of the tile
8284
+ * @param y y-coordinate of the tile
8285
+ * @return tile_info index of the tile
8286
+ */
8287
+ export function get_tile_info(url: string | hash | url, layer: string | hash, x: number, y: number): any
8288
+
8289
+ /**
8290
+ * Retrieves all the tiles for the specified layer in the tilemap.
8291
+ * It returns a table of rows where the keys are the
8292
+ * tile positions (see tilemap.get_bounds()).
8293
+ * You can iterate it using `tiles[row_index][column_index]`.
8294
+ * @param url the tilemap
8295
+ * @param layer the name of the layer for the tiles
8296
+ * @return tiles a table of rows representing the layer
8297
+ */
8298
+ export function get_tiles(url: string | hash | url, layer: string | hash): any
8299
+
8065
8300
  /**
8066
8301
  * Replace a tile in a tile map with a new tile.
8067
8302
  * The coordinates of the tiles are indexed so that the "first" tile just
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-defold/types",
3
- "version": "1.2.46",
3
+ "version": "1.2.48",
4
4
  "description": "TypeScript definitions for Defold",
5
5
  "repository": "github:ts-defold/types",
6
6
  "keywords": [