factorio-types 1.2.44 → 1.2.45

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.61
5
+ // Factorio version 2.0.62
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -6547,10 +6547,10 @@ interface LuaEntity extends LuaControl {
6547
6547
  * Sets the entity to be deconstructed by construction robots.
6548
6548
  * @param force The force whose robots are supposed to do the deconstruction.
6549
6549
  * @param player The player to set the last_user to, if any. Also the player whose undo queue this action should be added to.
6550
- * @param item_index The index of the undo item to add this action to. An index of `0` creates a new undo item for it. An index of `1` adds the action to the latest undo action on the stack. Defaults to putting it into the appropriate undo item automatically if one is not specified.
6550
+ * @param undo_index The index of the undo item to add this action to. An index of `0` creates a new undo item for it. An index of `1` adds the action to the latest undo action on the stack. Defaults to putting it into the appropriate undo item automatically if one is not specified.
6551
6551
  * @returns if the entity was marked for deconstruction.
6552
6552
  */
6553
- order_deconstruction(this: void, force: ForceID, player?: PlayerIdentification, item_index?: uint): boolean;
6553
+ order_deconstruction(this: void, force: ForceID, player?: PlayerIdentification, undo_index?: uint): boolean;
6554
6554
  /**
6555
6555
  * Sets the entity to be upgraded by construction robots.
6556
6556
  * @param table.target The prototype of the entity to upgrade to.
@@ -17933,7 +17933,7 @@ interface LuaSurface {
17933
17933
  * @param table.player The player to set the last_user to, if any. Also the player whose undo queue this action should be added to.
17934
17934
  * @param table.skip_fog_of_war If chunks covered by fog-of-war are skipped. Defaults to `false`.
17935
17935
  * @param table.item The deconstruction item to use if any.
17936
- * @param table.item_index The index of the undo item to add this action to. An index of `0` creates a new undo item for it. Defaults to putting it into the appropriate undo item automatically if not specified.
17936
+ * @param table.undo_index The index of the undo item to add this action to. An index of `0` creates a new undo item for it. Defaults to putting it into the appropriate undo item automatically if not specified.
17937
17937
  * @param table.super_forced If the cancel deconstruction is super-forced. Defaults to `false`.
17938
17938
  */
17939
17939
  cancel_deconstruct_area(this: void, table: {
@@ -17942,7 +17942,7 @@ interface LuaSurface {
17942
17942
  player?: PlayerIdentification;
17943
17943
  skip_fog_of_war?: boolean;
17944
17944
  item?: LuaItemStack;
17945
- item_index?: uint;
17945
+ undo_index?: uint;
17946
17946
  super_forced?: boolean;
17947
17947
  }): void;
17948
17948
  /**
@@ -18967,10 +18967,6 @@ interface BaseLuaSurfaceCreateEntityParams {
18967
18967
  * If provided, the entity will attempt to pull stored values from this item (for example; creating a spidertron from a previously named and mined spidertron)
18968
18968
  */
18969
18969
  'item'?: LuaItemStack;
18970
- /**
18971
- * The index of the undo item to add this action to. An index of `0` creates a new undo item for it. Defaults to putting it into the appropriate undo item automatically if not specified.
18972
- */
18973
- 'item_index'?: uint;
18974
18970
  /**
18975
18971
  * If true, any characters that are in the way of the entity are teleported out of the way.
18976
18972
  */
@@ -19023,6 +19019,10 @@ interface BaseLuaSurfaceCreateEntityParams {
19023
19019
  * Entity with health for the new entity to target.
19024
19020
  */
19025
19021
  'target'?: LuaEntity | MapPosition;
19022
+ /**
19023
+ * The index of the undo item to add this action to. An index of `0` creates a new undo item for it. Defaults to putting it into the appropriate undo item automatically if not specified.
19024
+ */
19025
+ 'undo_index'?: uint;
19026
19026
  }
19027
19027
  /**
19028
19028
  *
@@ -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.61
5
+ // Factorio version 2.0.62
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.61
5
+ // Factorio version 2.0.62
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.61
5
+ // Factorio version 2.0.62
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.61
5
+ // Factorio version 2.0.62
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.61
5
+ // Factorio version 2.0.62
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.61
5
+ // Factorio version 2.0.62
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
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.61
5
+ // Factorio version 2.0.62
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "factorio-types",
3
- "version": "1.2.44",
3
+ "version": "1.2.45",
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.61",
26
+ "factorioVersion": "2.0.62",
27
27
  "dependencies": {
28
28
  "lua-types": "^2.13.1"
29
29
  },