factorio-types 0.0.48 → 0.0.50

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 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.105
5
+ // Factorio version 1.1.107
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 entities within the radius of the position.
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 entities within the radius of the position.
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,
@@ -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.105
5
+ // Factorio version 1.1.107
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.105
5
+ // Factorio version 1.1.107
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.105
5
+ // Factorio version 1.1.107
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.105
5
+ // Factorio version 1.1.107
6
6
  // API version 4
7
7
 
8
8
  /**
@@ -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.105
5
+ // Factorio version 1.1.107
6
6
  // API version 4
7
7
 
8
8
  declare namespace prototype {
@@ -2867,7 +2867,7 @@ The order string is taken from the items in `placeable_by` if they exist, or fro
2867
2867
  order?: Order,
2868
2868
 
2869
2869
  /**
2870
- * Item that when placed creates this entity. Determines which item is picked when "Q" (smart pipette) is used on the entity, determines which item is needed in a blueprint of this entity.
2870
+ * Item that when placed creates this entity. Determines which item is picked when "Q" (smart pipette) is used on this entity. Determines which item and item amount is needed in a blueprint of this entity and to revive a ghost of this entity.
2871
2871
 
2872
2872
  The item count specified here can't be larger than the stack size of that item.
2873
2873
  */
@@ -7580,7 +7580,7 @@ interface SoundPrototype {
7580
7580
  category?: SoundType,
7581
7581
 
7582
7582
  /**
7583
- * Supported sound file formats are `.ogg (Vorbis)` and `.wav`.
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.105
5
+ // Factorio version 1.1.107
6
6
  // API version 4
7
7
 
8
8
  declare namespace prototype {
@@ -7170,6 +7170,11 @@ This code is run as a (silent) console command inside the simulation when it is
7170
7170
  */
7171
7171
  length?: number,
7172
7172
 
7173
+ /**
7174
+ * An array of mods that will be run in this simulation if they are present and enabled.
7175
+ */
7176
+ mods?: string[],
7177
+
7173
7178
  /**
7174
7179
  * If true, overrides the simulation volume set by the player in the sound settings, simply setting the volume modifier to `1`.
7175
7180
  */
@@ -7263,7 +7268,7 @@ type Sound = {
7263
7268
  audible_distance_modifier?: number,
7264
7269
 
7265
7270
  /**
7266
- * Supported sound file formats are `.ogg (Vorbis)` and `.wav`.
7271
+ * Supported sound file formats are `.ogg` (Vorbis) and `.wav`.
7267
7272
 
7268
7273
  Only loaded, and mandatory if `variations` is not defined.
7269
7274
  */
@@ -7306,7 +7311,7 @@ Only loaded if `variations` is not defined.
7306
7311
  interface SoundDefinition {
7307
7312
 
7308
7313
  /**
7309
- * Supported sound file formats are `.ogg (Vorbis)` and `.wav`.
7314
+ * Supported sound file formats are `.ogg` (Vorbis) and `.wav`.
7310
7315
  */
7311
7316
  filename: FileName,
7312
7317
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "factorio-types",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
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.105"
27
+ "factorioVersion": "1.1.107"
28
28
  }