factorio-types 1.2.20 → 1.2.21

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 2.0.29
5
+ // Factorio version 2.0.30
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -6752,6 +6752,10 @@ interface LuaEntity extends LuaControl {
6752
6752
  * The filter mode for this filter inserter. `nil` if this inserter doesn't use filters.
6753
6753
  */
6754
6754
  inserter_filter_mode?: 'whitelist' | 'blacklist';
6755
+ /**
6756
+ * The spoil priority for this inserter.
6757
+ */
6758
+ inserter_spoil_priority: 'fresh_first' | 'none' | 'spoiled_first';
6755
6759
  /**
6756
6760
  * Sets the stack size limit on this inserter.
6757
6761
  *
@@ -7283,7 +7287,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
7283
7287
  /**
7284
7288
  * The fluid usage of this generator prototype.
7285
7289
  */
7286
- get_fluid_usage_per_tick(this: void, quality?: QualityID): LuaQualityPrototype | null;
7290
+ get_fluid_usage_per_tick(this: void, quality?: QualityID): double | null;
7287
7291
  /**
7288
7292
  * The extension speed of this inserter.
7289
7293
  */
@@ -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 2.0.29
5
+ // Factorio version 2.0.30
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -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 2.0.29
5
+ // Factorio version 2.0.30
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
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 2.0.29
5
+ // Factorio version 2.0.30
6
6
  // API version 6
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 2.0.29
5
+ // Factorio version 2.0.30
6
6
  // API version 6
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 2.0.29
5
+ // Factorio version 2.0.30
6
6
  // API version 6
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 2.0.29
5
+ // Factorio version 2.0.30
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
@@ -1725,6 +1725,10 @@ interface ConstantCombinatorPrototype extends EntityWithOwnerPrototype {
1725
1725
  circuit_wire_max_distance?: double;
1726
1726
  draw_circuit_wires?: bool;
1727
1727
  draw_copper_wires?: bool;
1728
+ /**
1729
+ * When not zero, toggle entity will enable constant combinator for that amount of ticks and then turn it off.
1730
+ */
1731
+ pulse_duration?: uint;
1728
1732
  sprites?: Sprite4Way;
1729
1733
  }
1730
1734
  /**
@@ -9755,6 +9759,8 @@ interface UtilityConstants extends PrototypeBase {
9755
9759
  show_chunk_components_collision_mask: CollisionMaskConnector;
9756
9760
  small_area_size: float;
9757
9761
  small_blueprint_area_size: float;
9762
+ space_LPF_max_cutoff_frequency: float;
9763
+ space_LPF_min_cutoff_frequency: float;
9758
9764
  /**
9759
9765
  * Variables: speed, thrust, weight, width, height
9760
9766
  */
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 2.0.29
5
+ // Factorio version 2.0.30
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
@@ -6327,9 +6327,10 @@ interface MinableProperties {
6327
6327
  */
6328
6328
  result?: ItemID;
6329
6329
  /**
6330
- * The items that are returned when this object is mined.
6330
+ * The items or fluids that are returned when this object is mined.
6331
6331
  */
6332
6332
  results?: ProductPrototype[];
6333
+ transfer_entity_health_to_products?: bool;
6333
6334
  }
6334
6335
  interface MineEntityTechnologyTrigger {
6335
6336
  entity: EntityID;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "factorio-types",
3
- "version": "1.2.20",
3
+ "version": "1.2.21",
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",
@@ -23,7 +23,7 @@
23
23
  "src/**/*.d.ts",
24
24
  "dist/**/*.d.ts"
25
25
  ],
26
- "factorioVersion": "2.0.29",
26
+ "factorioVersion": "2.0.30",
27
27
  "dependencies": {
28
28
  "lua-types": "^2.13.1"
29
29
  },