factorio-types 0.0.48 → 0.0.49
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.
- package/dist/classes.d.ts +20 -3
- package/dist/concepts.d.ts +1 -1
- package/dist/defines.d.ts +1 -1
- package/dist/events.d.ts +1 -1
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +7 -2
- package/dist/types.d.ts +3 -3
- package/package.json +2 -2
package/dist/classes.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.106
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -6274,6 +6274,13 @@ interface LuaEntityPrototype {
|
|
|
6274
6274
|
*/
|
|
6275
6275
|
readonly valid: boolean
|
|
6276
6276
|
|
|
6277
|
+
/**
|
|
6278
|
+
* @remarks
|
|
6279
|
+
* Applies to subclasses: MiningDrill
|
|
6280
|
+
*
|
|
6281
|
+
*/
|
|
6282
|
+
readonly vector_to_place_result?: Vector
|
|
6283
|
+
|
|
6277
6284
|
/**
|
|
6278
6285
|
* Vertical selection shift used by rolling stocks. It affects selection box vertical position but is also used to shift rolling stock graphics along the rails to fine tune train's look.
|
|
6279
6286
|
* @remarks
|
|
@@ -16393,8 +16400,12 @@ interface LuaSurface {
|
|
|
16393
16400
|
* Count entities of given type or name in a given area. Works just like {@link LuaSurface::find_entities_filtered | runtime:LuaSurface::find_entities_filtered}, except this only returns the count. As it doesn't construct all the wrapper objects, this is more efficient if one is only interested in the number of entities.
|
|
16394
16401
|
*
|
|
16395
16402
|
* If no `area` or `position` are given, the entire surface is searched. If `position` is given, this returns the entities colliding with that position (i.e the given position is within the entity's collision box). If `position` and `radius` are given, this returns entities in the radius of the position. If `area` is specified, this returns entities colliding with that area.
|
|
16403
|
+
* @param table.ghost_name - An empty array means the same as providing nothing (`nil`).
|
|
16404
|
+
* @param table.ghost_type - An empty array means the same as providing nothing (`nil`).
|
|
16396
16405
|
* @param table.invert - Whether the filters should be inverted.
|
|
16406
|
+
* @param table.name - An empty array means the same as providing nothing (`nil`).
|
|
16397
16407
|
* @param table.radius - If given with position, will count all entities within the radius of the position.
|
|
16408
|
+
* @param table.type - An empty array means the same as providing nothing (`nil`).
|
|
16398
16409
|
*/
|
|
16399
16410
|
count_entities_filtered(this: void,
|
|
16400
16411
|
table: {
|
|
@@ -16421,8 +16432,9 @@ interface LuaSurface {
|
|
|
16421
16432
|
* If no `area` or `position` and `radius` is given, the entire surface is searched. If `position` and `radius` are given, only tiles within the radius of the position are included.
|
|
16422
16433
|
* @param table.has_tile_ghost - Can be further filtered by supplying a `force` filter.
|
|
16423
16434
|
* @param table.invert - If the filters should be inverted.
|
|
16435
|
+
* @param table.name - An empty array means the same as providing nothing (`nil`).
|
|
16424
16436
|
* @param table.position - Ignored if not given with radius.
|
|
16425
|
-
* @param table.radius - If given with position, will return all
|
|
16437
|
+
* @param table.radius - If given with position, will return all tiles within the radius of the position.
|
|
16426
16438
|
* @param table.to_be_deconstructed - Can be further filtered by supplying a `force` filter.
|
|
16427
16439
|
*/
|
|
16428
16440
|
count_tiles_filtered(this: void,
|
|
@@ -16690,8 +16702,12 @@ interface LuaSurface {
|
|
|
16690
16702
|
* - If `position` is given, this returns the entities colliding with that position (i.e the given position is within the entity's collision box).
|
|
16691
16703
|
* - If `position` and `radius` are given, this returns the entities within the radius of the position. Looks for the center of entities.
|
|
16692
16704
|
* - If `area` is specified, this returns the entities colliding with that area.
|
|
16705
|
+
* @param table.ghost_name - An empty array means the same as providing nothing (`nil`).
|
|
16706
|
+
* @param table.ghost_type - An empty array means the same as providing nothing (`nil`).
|
|
16693
16707
|
* @param table.invert - Whether the filters should be inverted.
|
|
16708
|
+
* @param table.name - An empty array means the same as providing nothing (`nil`).
|
|
16694
16709
|
* @param table.position - Has precedence over area field.
|
|
16710
|
+
* @param table.type - An empty array means the same as providing nothing (`nil`).
|
|
16695
16711
|
* @example
|
|
16696
16712
|
* ```
|
|
16697
16713
|
* game.surfaces[1].find_entities_filtered{area = {{-10, -10}, {10, 10}}, type = "resource"} -- gets all resources in the rectangle
|
|
@@ -16824,8 +16840,9 @@ interface LuaSurface {
|
|
|
16824
16840
|
* If no `area` or `position` and `radius` is given, the entire surface is searched. If `position` and `radius` are given, only tiles within the radius of the position are included.
|
|
16825
16841
|
* @param table.has_tile_ghost - Can be further filtered by supplying a `force` filter.
|
|
16826
16842
|
* @param table.invert - Whether the filters should be inverted.
|
|
16843
|
+
* @param table.name - An empty array means the same as providing nothing (`nil`).
|
|
16827
16844
|
* @param table.position - Ignored if not given with radius.
|
|
16828
|
-
* @param table.radius - If given with position, will return all
|
|
16845
|
+
* @param table.radius - If given with position, will return all tiles within the radius of the position.
|
|
16829
16846
|
* @param table.to_be_deconstructed - Can be further filtered by supplying a `force` filter.
|
|
16830
16847
|
*/
|
|
16831
16848
|
find_tiles_filtered(this: void,
|
package/dist/concepts.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.106
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
package/dist/defines.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.106
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
package/dist/events.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.106
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
package/dist/global.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.106
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/prototypes.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/prototype-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.106
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -7580,7 +7580,7 @@ interface SoundPrototype {
|
|
|
7580
7580
|
category?: SoundType,
|
|
7581
7581
|
|
|
7582
7582
|
/**
|
|
7583
|
-
* Supported sound file formats are `.ogg (Vorbis)
|
|
7583
|
+
* Supported sound file formats are `.ogg` (Vorbis) and `.wav`.
|
|
7584
7584
|
|
|
7585
7585
|
Only loaded, and mandatory if `variations` is not defined.
|
|
7586
7586
|
*/
|
|
@@ -8115,6 +8115,11 @@ The x position of the sprite will be `((game.tick % flow_length_in_ticks) ÷ flo
|
|
|
8115
8115
|
* If the icons of fluids shown in alt-mode should be scaled to the storage tank's size.
|
|
8116
8116
|
*/
|
|
8117
8117
|
scale_info_icons?: boolean,
|
|
8118
|
+
|
|
8119
|
+
/**
|
|
8120
|
+
* Whether the "alt-mode icon" should be drawn at all.
|
|
8121
|
+
*/
|
|
8122
|
+
show_fluid_icon?: boolean,
|
|
8118
8123
|
two_direction_only?: boolean,
|
|
8119
8124
|
|
|
8120
8125
|
/**
|
package/dist/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/prototype-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 1.1.
|
|
5
|
+
// Factorio version 1.1.106
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -7263,7 +7263,7 @@ type Sound = {
|
|
|
7263
7263
|
audible_distance_modifier?: number,
|
|
7264
7264
|
|
|
7265
7265
|
/**
|
|
7266
|
-
* Supported sound file formats are `.ogg (Vorbis)
|
|
7266
|
+
* Supported sound file formats are `.ogg` (Vorbis) and `.wav`.
|
|
7267
7267
|
|
|
7268
7268
|
Only loaded, and mandatory if `variations` is not defined.
|
|
7269
7269
|
*/
|
|
@@ -7306,7 +7306,7 @@ Only loaded if `variations` is not defined.
|
|
|
7306
7306
|
interface SoundDefinition {
|
|
7307
7307
|
|
|
7308
7308
|
/**
|
|
7309
|
-
* Supported sound file formats are `.ogg (Vorbis)
|
|
7309
|
+
* Supported sound file formats are `.ogg` (Vorbis) and `.wav`.
|
|
7310
7310
|
*/
|
|
7311
7311
|
filename: FileName,
|
|
7312
7312
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "factorio-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.49",
|
|
4
4
|
"description": "Typescript declarations for the factorio mod API",
|
|
5
5
|
"main": "index.d.ts",
|
|
6
6
|
"repository": "https://github.com/sguest/factorio-types.git",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"index.d.ts",
|
|
25
25
|
"dist/**/*.d.ts"
|
|
26
26
|
],
|
|
27
|
-
"factorioVersion": "1.1.
|
|
27
|
+
"factorioVersion": "1.1.106"
|
|
28
28
|
}
|