factorio-types 1.2.56 → 1.2.57

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.74
5
+ // Factorio version 2.0.76
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -5362,7 +5362,7 @@ interface LuaControl {
5362
5362
  /**
5363
5363
  * The current crafting queue items.
5364
5364
  */
5365
- readonly crafting_queue: CraftingQueueItem[];
5365
+ readonly crafting_queue?: CraftingQueueItem[];
5366
5366
  /**
5367
5367
  * The crafting queue progress in the range `[0-1]`. `0` when no recipe is being crafted.
5368
5368
  */
@@ -8897,6 +8897,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
8897
8897
  * The revenge attack parameters for this entity, if any. These attack parameters are used in addition to {@link LuaEntityPrototype::attack_parameters | runtime:LuaEntityPrototype::attack_parameters} if the entity is attacking a target that has previously dealt damage to the entity.
8898
8898
  */
8899
8899
  readonly revenge_attack_parameters?: AttackParameters;
8900
+ readonly reversing_power_modifier?: double;
8900
8901
  readonly rewire_neighbours_when_destroying: boolean;
8901
8902
  /**
8902
8903
  * The rising speed for this rocket silo rocket prototype.
@@ -18184,7 +18185,7 @@ interface LuaStyle {
18184
18185
  width: int32;
18185
18186
  }
18186
18187
  /**
18187
- * A "domain" of the world. Surfaces can only be created and deleted through the API. Surfaces are uniquely identified by their name. Every game contains at least the surface "nauvis".
18188
+ * A "domain" of the world, such as a planet or space platform. Surfaces are uniquely identified by their name. Every game contains at least the surface "nauvis".
18188
18189
  */
18189
18190
  interface LuaSurface {
18190
18191
  /**
@@ -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.74
5
+ // Factorio version 2.0.76
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.74
5
+ // Factorio version 2.0.76
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.74
5
+ // Factorio version 2.0.76
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.74
5
+ // Factorio version 2.0.76
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.74
5
+ // Factorio version 2.0.76
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.74
5
+ // Factorio version 2.0.76
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
@@ -1516,7 +1516,7 @@ interface CharacterCorpsePrototype extends EntityPrototype {
1516
1516
  */
1517
1517
  armor_picture_mapping?: Record<ItemID, int32>;
1518
1518
  /**
1519
- * Mandatory if `pictures` is not defined.
1519
+ * Only loaded, and mandatory if `pictures` is not defined.
1520
1520
  */
1521
1521
  picture?: Animation;
1522
1522
  /**
@@ -9352,9 +9352,21 @@ interface TechnologyPrototype extends Prototype {
9352
9352
  */
9353
9353
  visible_when_disabled?: boolean;
9354
9354
  }
9355
+ /**
9356
+ * A container that can automatically destroy itself when it is emptied or after it has existed for a certain time.
9357
+ */
9355
9358
  interface TemporaryContainerPrototype extends ContainerPrototype {
9359
+ /**
9360
+ * If the container has existed for this long, {@link an alert | prototype:UtilitySprites::unclaimed_cargo_icon} is show on it. In ticks, 0 for no alert.
9361
+ */
9356
9362
  alert_after_time?: uint32;
9363
+ /**
9364
+ * Whether the container is automatically destroyed when it is emptied.
9365
+ */
9357
9366
  destroy_on_empty?: boolean;
9367
+ /**
9368
+ * Duration after which the container and its contents are automatically destroyed. In ticks, 0 for infinite.
9369
+ */
9358
9370
  time_to_live?: uint32;
9359
9371
  }
9360
9372
  /**
@@ -9497,9 +9509,12 @@ interface TilePrototype extends Prototype {
9497
9509
  is_foundation?: boolean;
9498
9510
  landing_steps_sound?: Sound;
9499
9511
  /**
9500
- * Specifies transition drawing priority.
9512
+ * Specifies transition drawing priority. This represents the positive offset from this tile's `layer_group`. Internally, the final layer is computed as `layer_group + layer` (a {@link uint16 | prototype:uint16}), wrapping back to `"zero"` after the `"top"` layer.
9501
9513
  */
9502
9514
  layer: uint8;
9515
+ /**
9516
+ * The base group of render layers this tile belongs to. It can be moved up inside this group using the `layer` property. See the {@link TileRenderLayer | prototype:TileRenderLayer} page to see the sizes of all layer groups.
9517
+ */
9503
9518
  layer_group?: TileRenderLayer;
9504
9519
  /**
9505
9520
  * For surfaces that use {@link fog effect | prototype:SurfaceRenderParameters::fog} of type `gleba`, this property determines whether given tile should contribute to fog intensity on a chunk or not.
@@ -10538,6 +10553,7 @@ interface UtilitySounds extends PrototypeBase {
10538
10553
  game_lost: Sound;
10539
10554
  game_won: Sound;
10540
10555
  gui_click: Sound;
10556
+ gui_switch: Sound;
10541
10557
  inventory_click: Sound;
10542
10558
  inventory_move: Sound;
10543
10559
  item_deleted: Sound;
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.74
5
+ // Factorio version 2.0.76
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
@@ -10036,7 +10036,7 @@ interface SpriteSource {
10036
10036
  /**
10037
10037
  * Mandatory if `size` is not defined.
10038
10038
  *
10039
- * Height of the picture in pixels, from 0-4096.
10039
+ * Height of the sprite in pixels, from 0-4096.
10040
10040
  */
10041
10041
  height?: SpriteSizeType;
10042
10042
  /**
@@ -10064,7 +10064,7 @@ interface SpriteSource {
10064
10064
  /**
10065
10065
  * Mandatory if `size` is not defined.
10066
10066
  *
10067
- * Width of the picture in pixels, from 0-4096.
10067
+ * Width of the sprite in pixels, from 0-4096.
10068
10068
  */
10069
10069
  width?: SpriteSizeType;
10070
10070
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "factorio-types",
3
- "version": "1.2.56",
3
+ "version": "1.2.57",
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.74",
26
+ "factorioVersion": "2.0.76",
27
27
  "dependencies": {
28
28
  "lua-types": "^2.13.1"
29
29
  },