factorio-types 1.2.73 → 1.2.74

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.1.24
5
+ // Factorio version 2.1.25
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -4591,8 +4591,10 @@ interface LuaBootstrap {
4591
4591
  message: string;
4592
4592
  }): void;
4593
4593
  /**
4594
- * Raise an event. Only events generated with {@link LuaBootstrap::generate_event_name | runtime:LuaBootstrap::generate_event_name} and the following can be raised:
4595
- * Events that can be raised manually:
4594
+ * Manually raise an event. {@link Custom events | prototype:CustomEventPrototype} created in the prototype stage and events generated at runtime with {@link LuaBootstrap::generate_event_name | runtime:LuaBootstrap::generate_event_name} can be raised.
4595
+ *
4596
+ * Additionally, the following built-in events can be raised:
4597
+ * Built-in events that can be raised manually:
4596
4598
  *
4597
4599
  * - {@link on_console_chat | runtime:on_console_chat}
4598
4600
  * - {@link on_player_crafted_item | runtime:on_player_crafted_item}
@@ -4605,7 +4607,7 @@ interface LuaBootstrap {
4605
4607
  * - {@link script_raised_teleported | runtime:script_raised_teleported}
4606
4608
  * - {@link script_raised_set_tiles | runtime:script_raised_set_tiles}
4607
4609
  * @param event ID or name of the event to raise.
4608
- * @param data Table with extra data that will be passed to the event handler. Any invalid LuaObjects will silently stop the event from being raised.
4610
+ * @param data Table with extra data that will be passed to the event handler. Note that any arguments passed through the interface are a copy of the original, not a reference. Metatables are not retained, while references to LuaObjects stay intact. Functions cannot be passed through the interface. Any invalid LuaObjects will silently stop the event from being raised.
4609
4611
  * @example ```
4610
4612
  -- Raise the on_console_chat event with the desired message 'from' the first player
4611
4613
  local data = {player_index = 1, message = "Hello friends!"}
@@ -5695,7 +5697,7 @@ interface LuaControl {
5695
5697
  *
5696
5698
  * Write supports any of the types. Read will return the `entity`, `equipment`, `equipment-grid`, `player`, `element`, `inventory`, `item`, `tile`, or `nil`.
5697
5699
  */
5698
- opened?: LuaEntity | LuaItemStack | LuaEquipment | LuaEquipmentGrid | LuaPlayer | LuaGuiElement | LuaInventory | LuaLogisticNetwork | LuaTile | defines.gui_type;
5700
+ opened?: LuaEntity | LuaItemStack | LuaEquipment | LuaEquipmentGrid | LuaPlayer | LuaGuiElement | LuaInventory | LuaLogisticNetwork | LuaTile | LuaRecord | defines.gui_type;
5699
5701
  readonly opened_gui_type?: defines.gui_type;
5700
5702
  /**
5701
5703
  * Current item-picking state.
@@ -9322,6 +9324,8 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
9322
9324
  readonly enter_drop_mode_if_held_stack_spoiled?: boolean;
9323
9325
  readonly enter_vehicle_distance?: double;
9324
9326
  readonly erase_contents_when_mined?: boolean;
9327
+ readonly exchange_input_lines?: boolean;
9328
+ readonly exchange_output_lines?: boolean;
9325
9329
  readonly expires?: boolean;
9326
9330
  /**
9327
9331
  * Whether this explosion has a beam.
@@ -12713,6 +12717,12 @@ interface LuaGuiElement {
12713
12717
  * The class name of this object. Available even when `valid` is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
12714
12718
  */
12715
12719
  readonly object_name: string;
12720
+ /**
12721
+ * The opacity of the sprite shown in this widget, clamped to the range [0, 1].
12722
+ *
12723
+ * Setting this to `0.5` makes the sprite look like a ghost item or an unfulfilled recipe ingredient.
12724
+ */
12725
+ opacity: float;
12716
12726
  /**
12717
12727
  * The direct parent of this element. `nil` if this is a top-level element.
12718
12728
  */
@@ -12855,6 +12865,17 @@ interface LuaGuiElement {
12855
12865
  * The zoom this camera or minimap is using. This value must be positive.
12856
12866
  */
12857
12867
  zoom: double;
12868
+ /**
12869
+ * The zoom limits of this camera. By default the camera can zoom in to 3x, the same as most player controllers.
12870
+ *
12871
+ * Reading this field creates a copy and only contains the limits previously set by a script. To change the zoom limits, set the entire field to the desired {@link ZoomLimits | runtime:ZoomLimits} table.
12872
+ * @example ```
12873
+ -- Lets the camera zoom in to 10x the standard zoom level.
12874
+ camera.zoom_limits = { closest = { zoom = 10 } }
12875
+ camera.zoom = 10
12876
+ ```
12877
+ */
12878
+ zoom_limits: ZoomLimits;
12858
12879
  /**
12859
12880
  * The indexing operator. Gets children by name.
12860
12881
  */
@@ -13282,6 +13303,10 @@ interface LuaGuiElementAddParamsSprite extends BaseLuaGuiElementAddParams {
13282
13303
  * The kind of element to add, which potentially has its own attributes as listed below.
13283
13304
  */
13284
13305
  'type': 'sprite';
13306
+ /**
13307
+ * Opacity of the sprite, clamped to the range [0, 1]. Defaults to `1`.
13308
+ */
13309
+ 'opacity'?: float;
13285
13310
  /**
13286
13311
  * Whether the widget should resize according to the sprite in it. Defaults to `true`.
13287
13312
  */
@@ -13320,6 +13345,10 @@ interface LuaGuiElementAddParamsSpriteButton extends BaseLuaGuiElementAddParams
13320
13345
  * The number shown on the button.
13321
13346
  */
13322
13347
  'number'?: double;
13348
+ /**
13349
+ * Opacity of the sprite shown on the button, clamped to the range [0, 1]. Defaults to `1`.
13350
+ */
13351
+ 'opacity'?: float;
13323
13352
  /**
13324
13353
  * The name of the quality shown on the button.
13325
13354
  */
@@ -14431,6 +14460,10 @@ interface LuaItemPrototype extends LuaPrototypeBase {
14431
14460
  */
14432
14461
  get_ammo_type(this: void, ammo_source_type?: 'default' | 'player' | 'turret' | 'vehicle'): AmmoType | null;
14433
14462
  get_cursor_box_type(this: void, selection_mode: defines.selection_mode): CursorBoxRenderType | null;
14463
+ /**
14464
+ * Whether the list of how many entities are selected should be shown.
14465
+ */
14466
+ get_draw_selection_counts(this: void, selection_mode: defines.selection_mode): boolean | null;
14434
14467
  /**
14435
14468
  * The durability of this tool item prototype.
14436
14469
  */
@@ -17712,7 +17745,7 @@ interface LuaRecipePrototype extends LuaPrototypeBase {
17712
17745
  */
17713
17746
  readonly products: Product[];
17714
17747
  /**
17715
- * The multiplier used when this recipe is copied from an assembling machine to a requester chest. For each item in the recipe the item count * this value is set in the requester chest.
17748
+ * The multiplier used when this recipe is copied from an assembling machine to a requester chest or infinity chest. For each item ingredient in the recipe the `ingredient_amount * requester_paste_multiplier * machine_crafting_speed / energy_required` is set in the chest.
17716
17749
  */
17717
17750
  readonly request_paste_multiplier: uint32;
17718
17751
  /**
@@ -17984,6 +18017,7 @@ interface LuaRecord {
17984
18017
  * The current count of mappers in the upgrade item.
17985
18018
  */
17986
18019
  readonly mapper_count: uint32;
18020
+ readonly name: string;
17987
18021
  /**
17988
18022
  * The class name of this object. Available even when `valid` is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
17989
18023
  */
@@ -17996,6 +18030,15 @@ interface LuaRecord {
17996
18030
  * The preview icons for this record.
17997
18031
  */
17998
18032
  preview_icons: BlueprintSignalIcon[];
18033
+ readonly prototype: LuaItemPrototype;
18034
+ /**
18035
+ * Identifier of the record within its shelf.
18036
+ */
18037
+ readonly record_id: uint32;
18038
+ /**
18039
+ * Identifier of the shelf this record is in. May correspond to a player index or be a special value when in game blueprints.
18040
+ */
18041
+ readonly shelf_index: uint32;
17999
18042
  /**
18000
18043
  * The number of tile filters this deconstruction planner has.
18001
18044
  */
@@ -18116,11 +18159,15 @@ interface LuaRenderObject {
18116
18159
  */
18117
18160
  animation: string;
18118
18161
  /**
18119
- * Animation offset of this animation. Animation offset in frames.
18162
+ * Current frame of this animation. All writes update `animation_offset` to show the desired frame.
18163
+ */
18164
+ animation_frame: double;
18165
+ /**
18166
+ * Animation offset of this animation, in frames. Relative to game tick 0. This means the current animation frame is `((tick * speed) + animation_offset) % frame_count` with speed defined as {@link LuaRenderObject::animation_speed | runtime:LuaRenderObject::animation_speed} multiplied by {@link AnimationPrototype::animation_speed | prototype:AnimationPrototype::animation_speed}.
18120
18167
  */
18121
18168
  animation_offset: double;
18122
18169
  /**
18123
- * Animation speed of this animation. Animation speed in frames per tick.
18170
+ * Animation speed of this animation, in frames per tick. It is multiplied by {@link animation speed | prototype:AnimationPrototype::animation_speed} of the selected animation prototype. Changing speed will update `animation_offset`, so that the current `animation_frame` stays the same. Set it to 0 if you want to pause the animation.
18124
18171
  */
18125
18172
  animation_speed: double;
18126
18173
  /**
@@ -18262,6 +18309,14 @@ interface LuaRenderObject {
18262
18309
  * Sprite of the sprite or light.
18263
18310
  */
18264
18311
  sprite: SpritePath;
18312
+ /**
18313
+ * Height of this sprite or animation in tiles. If set, the sprite or animation is stretched to this height regardless of its original size. `nil` if `y_scale` is set. Writing requires a number greater than 0 and clears `y_scale`.
18314
+ */
18315
+ sprite_height?: double;
18316
+ /**
18317
+ * Width of this sprite or animation in tiles. If set, the sprite or animation is stretched to this width regardless of its original size. `nil` if `x_scale` is set. Writing requires a number greater than 0 and clears `x_scale`.
18318
+ */
18319
+ sprite_width?: double;
18265
18320
  /**
18266
18321
  * Where this arc starts. Angle in radian.
18267
18322
  */
@@ -18325,13 +18380,13 @@ interface LuaRenderObject {
18325
18380
  */
18326
18381
  width: float;
18327
18382
  /**
18328
- * Horizontal scale of this sprite or animation.
18383
+ * Horizontal scale of this sprite or animation. Write operation requires a valid number and clears `sprite_width`.
18329
18384
  */
18330
- x_scale: double;
18385
+ x_scale?: double;
18331
18386
  /**
18332
- * Vertical scale of this sprite or animation.
18387
+ * Vertical scale of this sprite or animation. Write operation requires a valid number and clears `sprite_height`.
18333
18388
  */
18334
- y_scale: double;
18389
+ y_scale?: double;
18335
18390
  }
18336
18391
  /**
18337
18392
  * Allows rendering of geometric shapes, text and sprites in the game world through the global object named `rendering`. Each render object is identified by an id that is universally unique for the lifetime of a whole game.
@@ -18348,11 +18403,14 @@ interface LuaRendering {
18348
18403
  * Create an animation.
18349
18404
  * @param table.animation Name of an {@link AnimationPrototype | prototype:AnimationPrototype}.
18350
18405
  * @param table.orientation The orientation of the animation. Default is 0.
18351
- * @param table.x_scale Horizontal scale of the animation. Default is 1.
18352
- * @param table.y_scale Vertical scale of the animation. Default is 1.
18406
+ * @param table.x_scale Horizontal scale of the sprite. Default is 1. Mutually exclusive with `sprite_width`.
18407
+ * @param table.y_scale Vertical scale of the sprite. Default is 1. Mutually exclusive with `sprite_height`.
18408
+ * @param table.sprite_width Width of the sprite in tiles. If given, the animation is stretched to this width regardless of its original size. Mutually exclusive with `x_scale`.
18409
+ * @param table.sprite_height Height of the sprite in tiles. If given, the animation is stretched to this height regardless of its original size. Mutually exclusive with `y_scale`.
18353
18410
  * @param table.render_layer Render layer of the animation. Defaults to `"arrow"`.
18354
18411
  * @param table.animation_speed How many frames the animation goes forward per tick. Default is 1.
18355
- * @param table.animation_offset Offset of the animation in frames. Default is 0.
18412
+ * @param table.animation_offset Offset of the animation in frames relative to game tick 0. Default is 0.
18413
+ * @param table.animation_frame Frame the animation starts at. Takes precedence over `animation_offset`.
18356
18414
  * @param table.orientation_target If given, the animation rotates so that it faces this target. Note that `orientation` is still applied to the animation.
18357
18415
  * @param table.use_target_orientation Only used if `orientation_target` is a LuaEntity.
18358
18416
  * @param table.oriented_offset Offsets the center of the animation if `orientation_target` is given. This offset will rotate together with the animation.
@@ -18372,10 +18430,13 @@ interface LuaRendering {
18372
18430
  orientation?: RealOrientation;
18373
18431
  x_scale?: double;
18374
18432
  y_scale?: double;
18433
+ sprite_width?: double;
18434
+ sprite_height?: double;
18375
18435
  tint?: Color;
18376
18436
  render_layer?: RenderLayer;
18377
18437
  animation_speed?: double;
18378
18438
  animation_offset?: double;
18439
+ animation_frame?: double;
18379
18440
  orientation_target?: ScriptRenderTarget;
18380
18441
  use_target_orientation?: boolean;
18381
18442
  oriented_offset?: Vector;
@@ -18611,8 +18672,10 @@ interface LuaRendering {
18611
18672
  /**
18612
18673
  * Create a sprite.
18613
18674
  * @param table.orientation The orientation of the sprite. Default is 0.
18614
- * @param table.x_scale Horizontal scale of the sprite. Default is 1.
18615
- * @param table.y_scale Vertical scale of the sprite. Default is 1.
18675
+ * @param table.x_scale Horizontal scale of the sprite. Default is 1. Mutually exclusive with `sprite_width`.
18676
+ * @param table.y_scale Vertical scale of the sprite. Default is 1. Mutually exclusive with `sprite_height`.
18677
+ * @param table.sprite_width Width of the sprite in tiles. If given, the sprite is stretched to this width regardless of its original size. Mutually exclusive with `x_scale`.
18678
+ * @param table.sprite_height Height of the sprite in tiles. If given, the sprite is stretched to this height regardless of its original size. Mutually exclusive with `y_scale`.
18616
18679
  * @param table.render_layer Render layer of the sprite. Defaults to `"arrow"`.
18617
18680
  * @param table.orientation_target If given, the sprite rotates so that it faces this target. Note that `orientation` is still applied to the sprite.
18618
18681
  * @param table.use_target_orientation Only used if `orientation_target` is a LuaEntity.
@@ -18641,6 +18704,8 @@ interface LuaRendering {
18641
18704
  orientation?: RealOrientation;
18642
18705
  x_scale?: double;
18643
18706
  y_scale?: double;
18707
+ sprite_width?: double;
18708
+ sprite_height?: double;
18644
18709
  tint?: Color;
18645
18710
  render_layer?: RenderLayer;
18646
18711
  orientation_target?: ScriptRenderTarget;
@@ -19325,6 +19390,7 @@ interface LuaSimulation {
19325
19390
  camera_player_cursor_direction: defines.direction;
19326
19391
  camera_player_cursor_position?: MapPosition;
19327
19392
  camera_position?: MapPosition;
19393
+ camera_show_alerts: boolean;
19328
19394
  camera_surface_index?: uint32;
19329
19395
  camera_zoom: double;
19330
19396
  gui_tooltip_interval: double;
@@ -23076,6 +23142,10 @@ interface LuaTransportLine {
23076
23142
  * @returns Number of items actually removed.
23077
23143
  */
23078
23144
  remove_item(this: void, items: ItemStackIdentification): uint32;
23145
+ /**
23146
+ * The index of this transport line in its owner.
23147
+ */
23148
+ readonly index: defines.transport_line;
23079
23149
  /**
23080
23150
  * The transport lines that this transport line is fed by or an empty table if none.
23081
23151
  */
@@ -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.1.24
5
+ // Factorio version 2.1.25
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -18,7 +18,7 @@ interface BaseAchievementPrototypeFilter {
18
18
  /**
19
19
  * The condition to filter on.
20
20
  */
21
- filter: 'allowed-without-fight' | 'type';
21
+ filter: 'hidden' | 'hidden-in-factoriopedia' | 'is-parameter' | 'allowed-without-fight' | 'type';
22
22
  /**
23
23
  * How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
24
24
  */
@@ -309,7 +309,7 @@ interface AsteroidChunkPrototypeFilter {
309
309
  /**
310
310
  * The condition to filter on.
311
311
  */
312
- filter: 'minable';
312
+ filter: 'hidden' | 'hidden-in-factoriopedia' | 'is-parameter' | 'minable';
313
313
  /**
314
314
  * How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
315
315
  */
@@ -2437,7 +2437,7 @@ interface BaseDecorativePrototypeFilter {
2437
2437
  /**
2438
2438
  * The condition to filter on.
2439
2439
  */
2440
- filter: 'decal' | 'autoplace' | 'collision-mask';
2440
+ filter: 'hidden' | 'hidden-in-factoriopedia' | 'is-parameter' | 'decal' | 'autoplace' | 'collision-mask';
2441
2441
  /**
2442
2442
  * How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
2443
2443
  */
@@ -2714,11 +2714,11 @@ interface EnemyExpansionMapSettings {
2714
2714
  */
2715
2715
  settler_group_min_size: uint32;
2716
2716
  /**
2717
- * The maximum size of a biter group that goes to build a new base. This is multiplied by the evolution factor. Defaults to `20`.
2717
+ * The maximum size of a biter group that goes to build a new base. This is multiplied by the evolution factor. Defaults to `10`.
2718
2718
  */
2719
2719
  settler_group_max_size: uint32;
2720
2720
  /**
2721
- * The minimum time between expansions in ticks. The actual cooldown is adjusted to the current evolution levels. Defaults to `4*3 600=14 400` ticks.
2721
+ * The minimum time between expansions in ticks. The actual cooldown is adjusted to the current evolution levels. Defaults to `10*3 600=36 000` ticks.
2722
2722
  */
2723
2723
  min_expansion_cooldown: uint32;
2724
2724
  /**
@@ -2788,7 +2788,7 @@ interface BaseEntityPrototypeFilter {
2788
2788
  /**
2789
2789
  * The condition to filter on.
2790
2790
  */
2791
- filter: 'flying-robot' | 'robot-with-logistics-interface' | 'rail' | 'ghost' | 'explosion' | 'vehicle' | 'crafting-machine' | 'rolling-stock' | 'turret' | 'transport-belt-connectable' | 'wall-connectable' | 'buildable' | 'placable-in-editor' | 'clonable' | 'selectable' | 'hidden' | 'entity-with-health' | 'building' | 'fast-replaceable' | 'uses-direction' | 'minable' | 'circuit-connectable' | 'autoplace' | 'blueprintable' | 'item-to-place' | 'name' | 'type' | 'collision-mask' | 'flag' | 'selection-priority' | 'emissions-per-second' | 'crafting-category';
2791
+ filter: 'flying-robot' | 'robot-with-logistics-interface' | 'rail' | 'ghost' | 'explosion' | 'vehicle' | 'crafting-machine' | 'rolling-stock' | 'turret' | 'transport-belt-connectable' | 'wall-connectable' | 'buildable' | 'placable-in-editor' | 'clonable' | 'selectable' | 'hidden' | 'hidden-in-factoriopedia' | 'is-parameter' | 'entity-with-health' | 'building' | 'fast-replaceable' | 'uses-direction' | 'minable' | 'circuit-connectable' | 'autoplace' | 'blueprintable' | 'item-to-place' | 'name' | 'type' | 'collision-mask' | 'flag' | 'selection-priority' | 'emissions-per-second' | 'crafting-category';
2792
2792
  /**
2793
2793
  * How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
2794
2794
  */
@@ -3123,7 +3123,7 @@ interface BaseEquipmentPrototypeFilter {
3123
3123
  /**
3124
3124
  * The condition to filter on.
3125
3125
  */
3126
- filter: 'item-to-place' | 'type';
3126
+ filter: 'hidden' | 'hidden-in-factoriopedia' | 'is-parameter' | 'item-to-place' | 'type';
3127
3127
  /**
3128
3128
  * How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
3129
3129
  */
@@ -3315,7 +3315,7 @@ interface BaseFluidPrototypeFilter {
3315
3315
  /**
3316
3316
  * The condition to filter on.
3317
3317
  */
3318
- filter: 'hidden' | 'name' | 'subgroup' | 'default-temperature' | 'max-temperature' | 'heat-capacity' | 'fuel-value' | 'emissions-multiplier' | 'gas-temperature';
3318
+ filter: 'hidden' | 'hidden-in-factoriopedia' | 'is-parameter' | 'name' | 'subgroup' | 'default-temperature' | 'max-temperature' | 'heat-capacity' | 'fuel-value' | 'emissions-multiplier' | 'gas-temperature';
3319
3319
  /**
3320
3320
  * How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
3321
3321
  */
@@ -5336,7 +5336,7 @@ interface LuaEntityMarkedForUpgradeEventFilterType extends BaseLuaEntityMarkedFo
5336
5336
  'type': string;
5337
5337
  }
5338
5338
  /**
5339
- * Event name may be specified in one of four ways.
5339
+ * An event name may be specified in one of four ways.
5340
5340
  */
5341
5341
  type LuaEventType = /**
5342
5342
  * Custom event prototype.
@@ -5348,7 +5348,7 @@ LuaCustomInputPrototype | /**
5348
5348
  * Event identifier.
5349
5349
  */
5350
5350
  defines.events | /**
5351
- * Name of the event.
5351
+ * Name of a built-in event, custom event prototype or custom input prototype.
5352
5352
  */
5353
5353
  string;
5354
5354
  /**
@@ -7297,7 +7297,7 @@ interface BaseModSettingPrototypeFilter {
7297
7297
  /**
7298
7298
  * The condition to filter on.
7299
7299
  */
7300
- filter: 'type' | 'mod' | 'setting-type';
7300
+ filter: 'hidden' | 'hidden-in-factoriopedia' | 'is-parameter' | 'type' | 'mod' | 'setting-type';
7301
7301
  /**
7302
7302
  * How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
7303
7303
  */
@@ -8258,7 +8258,7 @@ interface BaseRecipePrototypeFilter {
8258
8258
  /**
8259
8259
  * The condition to filter on.
8260
8260
  */
8261
- filter: 'enabled' | 'hidden' | 'hidden-from-flow-stats' | 'hidden-from-player-crafting' | 'allow-as-intermediate' | 'allow-intermediates' | 'allow-decomposition' | 'always-show-made-in' | 'has-ingredients' | 'has-products' | 'has-ingredient-item' | 'has-ingredient-fluid' | 'has-product-item' | 'has-product-fluid' | 'subgroup' | 'category' | 'energy' | 'emissions-multiplier' | 'request-paste-multiplier' | 'overload-multiplier';
8261
+ filter: 'enabled' | 'hidden' | 'hidden-from-flow-stats' | 'hidden-from-player-crafting' | 'hidden-in-factoriopedia' | 'is-parameter' | 'allow-as-intermediate' | 'allow-intermediates' | 'allow-decomposition' | 'always-show-made-in' | 'has-ingredients' | 'has-products' | 'has-ingredient-item' | 'has-ingredient-fluid' | 'has-product-item' | 'has-product-fluid' | 'subgroup' | 'category' | 'energy' | 'emissions-multiplier' | 'request-paste-multiplier' | 'overload-multiplier';
8262
8262
  /**
8263
8263
  * How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
8264
8264
  */
@@ -8893,9 +8893,21 @@ interface ScheduleRecord {
8893
8893
  * When a train is allowed to reach rail target from any direction it will be `nil`. If rail has to be reached from specific direction, this value allows to choose the direction. This value corresponds to {@link LuaEntity::connected_rail_direction | runtime:LuaEntity::connected_rail_direction} of a TrainStop.
8894
8894
  */
8895
8895
  rail_direction?: defines.rail_direction;
8896
+ /**
8897
+ * When reading this will always be present but may be an empty array.
8898
+ */
8896
8899
  wait_conditions?: WaitCondition[];
8900
+ /**
8901
+ * When reading this will always be present. Defaults to `false` when writing.
8902
+ */
8897
8903
  temporary?: boolean;
8904
+ /**
8905
+ * When reading this will always be present. Defaults to `false` when writing.
8906
+ */
8898
8907
  created_by_interrupt?: boolean;
8908
+ /**
8909
+ * When reading this will always be present. Defaults to `true` when writing.
8910
+ */
8899
8911
  allows_unloading?: boolean;
8900
8912
  }
8901
8913
  interface ScheduleRecordPosition {
@@ -9611,7 +9623,7 @@ interface BaseSpaceLocationPrototypeFilter {
9611
9623
  /**
9612
9624
  * The condition to filter on.
9613
9625
  */
9614
- filter: 'fly-condition' | 'type' | 'solar-power-in-space';
9626
+ filter: 'hidden' | 'hidden-in-factoriopedia' | 'is-parameter' | 'fly-condition' | 'type' | 'solar-power-in-space';
9615
9627
  /**
9616
9628
  * How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
9617
9629
  */
@@ -10637,7 +10649,7 @@ interface BaseTechnologyPrototypeFilter {
10637
10649
  /**
10638
10650
  * The condition to filter on.
10639
10651
  */
10640
- filter: 'enabled' | 'hidden' | 'upgrade' | 'visible-when-disabled' | 'has-effects' | 'has-prerequisites' | 'research-unit-ingredient' | 'unlocks-recipe' | 'level' | 'max-level' | 'time';
10652
+ filter: 'enabled' | 'hidden' | 'hidden-in-factoriopedia' | 'is-parameter' | 'upgrade' | 'visible-when-disabled' | 'has-effects' | 'has-prerequisites' | 'research-unit-ingredient' | 'unlocks-recipe' | 'level' | 'max-level' | 'time';
10641
10653
  /**
10642
10654
  * How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
10643
10655
  */
@@ -10803,7 +10815,7 @@ interface BaseTilePrototypeFilter {
10803
10815
  /**
10804
10816
  * The condition to filter on.
10805
10817
  */
10806
- filter: 'minable' | 'autoplace' | 'blueprintable' | 'item-to-place' | 'collision-mask' | 'walking-speed-modifier' | 'vehicle-friction-modifier' | 'decorative-removal-probability' | 'absorptions-per-second';
10818
+ filter: 'hidden' | 'hidden-in-factoriopedia' | 'is-parameter' | 'minable' | 'autoplace' | 'blueprintable' | 'item-to-place' | 'collision-mask' | 'walking-speed-modifier' | 'vehicle-friction-modifier' | 'decorative-removal-probability' | 'absorptions-per-second';
10807
10819
  /**
10808
10820
  * How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
10809
10821
  */
@@ -12511,7 +12523,7 @@ interface VirtualSignalPrototypeFilter {
12511
12523
  /**
12512
12524
  * The condition to filter on.
12513
12525
  */
12514
- filter: 'special-signal';
12526
+ filter: 'hidden' | 'hidden-in-factoriopedia' | 'is-parameter' | 'special-signal';
12515
12527
  /**
12516
12528
  * How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
12517
12529
  */
@@ -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.1.24
5
+ // Factorio version 2.1.25
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.1.24
5
+ // Factorio version 2.1.25
6
6
  // API version 6
7
7
 
8
8
  declare namespace defines {
@@ -1135,199 +1135,200 @@ enum input_action {
1135
1135
  fast_entity_transfer = 100,
1136
1136
  flip_entity = 101,
1137
1137
  flush_opened_entity_fluid = 102,
1138
- flush_opened_entity_specific_fluid = 103,
1139
- go_to_train_station = 104,
1140
- grab_blueprint_record = 105,
1141
- gui_checked_state_changed = 106,
1142
- gui_click = 107,
1143
- gui_confirmed = 108,
1144
- gui_elem_changed = 109,
1145
- gui_hover = 110,
1146
- gui_inventory_action = 111,
1147
- gui_inventory_bar_changed = 112,
1148
- gui_inventory_filter_changed = 113,
1149
- gui_leave = 114,
1150
- gui_location_changed = 115,
1151
- gui_selected_tab_changed = 116,
1152
- gui_selection_state_changed = 117,
1153
- gui_switch_state_changed = 118,
1154
- gui_text_changed = 119,
1155
- gui_value_changed = 120,
1156
- import_blueprint = 121,
1157
- import_blueprint_string = 122,
1158
- import_blueprints_filtered = 123,
1159
- import_permissions_string = 124,
1160
- instantly_create_space_platform = 125,
1161
- inventory_split = 126,
1162
- inventory_transfer = 127,
1163
- land_at_planet = 128,
1164
- launch_rocket = 129,
1165
- lua_shortcut = 130,
1166
- map_editor_action = 131,
1167
- market_offer = 132,
1168
- mod_settings_changed = 133,
1169
- modify_decider_combinator_condition = 134,
1170
- modify_decider_combinator_else_output = 135,
1171
- modify_decider_combinator_output = 136,
1172
- move_pin = 137,
1173
- move_research = 138,
1174
- open_achievements_gui = 139,
1175
- open_alerts_config_gui = 140,
1176
- open_blueprint_library_gui = 141,
1177
- open_blueprint_record = 142,
1178
- open_bonus_gui = 143,
1179
- open_character_gui = 144,
1180
- open_current_vehicle_gui = 145,
1181
- open_equipment = 146,
1182
- open_global_electric_network_gui = 147,
1183
- open_gui = 148,
1184
- open_item = 149,
1185
- open_logistics_gui = 150,
1186
- open_mod_item = 151,
1187
- open_new_platform_button_from_rocket_silo = 152,
1188
- open_opened_entity_grid = 153,
1189
- open_parent_of_opened_item = 154,
1190
- open_production_gui = 155,
1191
- open_train_gui = 156,
1192
- open_train_station_gui = 157,
1193
- open_trains_gui = 158,
1194
- parametrise_blueprint = 159,
1195
- paste_entity_settings = 160,
1196
- pin_alert_group = 161,
1197
- pin_custom_alert = 162,
1198
- pin_search_result = 163,
1199
- pipette = 164,
1200
- place_equipment = 165,
1201
- providing_to_other_platforms = 166,
1202
- quick_bar_pick_slot = 167,
1203
- quick_bar_set_selected_page = 168,
1204
- quick_bar_set_slot = 169,
1205
- reassign_blueprint = 170,
1206
- redo = 171,
1207
- remote_view_entity = 172,
1208
- remote_view_surface = 173,
1209
- remove_cables = 174,
1210
- remove_decider_combinator_condition = 175,
1211
- remove_decider_combinator_else_output = 176,
1212
- remove_decider_combinator_output = 177,
1213
- remove_logistic_section = 178,
1214
- remove_pin = 179,
1215
- remove_train_interrupt = 180,
1216
- remove_train_station = 181,
1217
- rename_interrupt = 182,
1218
- rename_space_platform = 183,
1219
- reorder_logistic_section = 184,
1220
- request_missing_construction_materials = 185,
1221
- reset_assembling_machine = 186,
1222
- rotate_entity = 187,
1223
- select_area = 188,
1224
- select_asteroid_chunk_slot = 189,
1225
- select_blueprint_entities = 190,
1226
- select_entity_filter_slot = 191,
1227
- select_entity_slot = 192,
1228
- select_item_filter = 193,
1229
- select_mapper_slot_from = 194,
1230
- select_mapper_slot_to = 195,
1231
- select_next_valid_gun = 196,
1232
- select_tile_slot = 197,
1233
- send_spidertron = 198,
1234
- send_stack_to_trash = 199,
1235
- send_stacks_to_trash = 200,
1236
- send_train_to_pin_target = 201,
1237
- set_behavior_mode = 202,
1238
- set_car_weapons_control = 203,
1239
- set_cheat_mode_quality = 204,
1240
- set_circuit_condition = 205,
1241
- set_circuit_mode_of_operation = 206,
1242
- set_combinator_description = 207,
1243
- set_control_behavior_input_networks = 208,
1244
- set_control_behavior_output_networks = 209,
1245
- set_copy_color_from_train_stop = 210,
1246
- set_deconstruction_item_tile_selection_mode = 211,
1247
- set_deconstruction_item_trees_and_rocks_only = 212,
1248
- set_entity_color = 213,
1249
- set_entity_energy_property = 214,
1250
- set_equipment_energy_property = 215,
1251
- set_filter = 216,
1252
- set_ghost_cursor = 217,
1253
- set_heat_interface_mode = 218,
1254
- set_heat_interface_temperature = 219,
1255
- set_infinity_container_filter_item = 220,
1256
- set_infinity_container_logistic_mode = 221,
1257
- set_infinity_container_remove_unfiltered_items = 222,
1258
- set_infinity_pipe_filter = 223,
1259
- set_inserter_max_stack_size = 224,
1260
- set_inventory_bar = 225,
1261
- set_lamp_always_on = 226,
1262
- set_linked_container_link_i_d = 227,
1263
- set_loader_belt_stack_size_override = 228,
1264
- set_logistic_filter_item = 229,
1265
- set_logistic_network_name = 230,
1266
- set_logistic_section_active = 231,
1267
- set_player_color = 232,
1268
- set_pump_fluid_filter = 233,
1269
- set_request_from_buffers = 234,
1270
- set_research_finished_stops_game = 235,
1271
- set_rocket_silo_send_to_orbit_automated_mode = 236,
1272
- set_schedule_record_allow_unloading = 237,
1273
- set_signal = 238,
1274
- set_splitter_priority = 239,
1275
- set_spoil_priority = 240,
1276
- set_train_stop_priority = 241,
1277
- set_train_stopped = 242,
1278
- set_trains_limit = 243,
1279
- set_turret_ignore_unlisted = 244,
1280
- set_use_inserter_filters = 245,
1281
- set_vehicle_automatic_targeting_parameters = 246,
1282
- setup_assembling_machine = 247,
1283
- setup_blueprint = 248,
1284
- setup_single_blueprint_record = 249,
1285
- spawn_item = 250,
1286
- spectator_change_surface = 251,
1287
- stack_split = 252,
1288
- stack_transfer = 253,
1289
- start_repair = 254,
1290
- start_research = 255,
1291
- start_select_area = 256,
1292
- start_walking = 257,
1293
- stop_drag_build = 258,
1294
- swap_asteroid_chunk_slots = 259,
1295
- swap_entity_filter_slots = 260,
1296
- swap_entity_slots = 261,
1297
- swap_infinity_container_filter_items = 262,
1298
- swap_item_filters = 263,
1299
- swap_logistic_filter_items = 264,
1300
- swap_mappers = 265,
1301
- swap_tile_slots = 266,
1302
- switch_connect_to_logistic_network = 267,
1303
- switch_constant_combinator_state = 268,
1304
- switch_inserter_filter_mode_state = 269,
1305
- switch_loader_filter_mode = 270,
1306
- switch_mining_drill_filter_mode_state = 271,
1307
- switch_power_switch_state = 272,
1308
- take_equipment = 273,
1309
- toggle_artillery_auto_targeting = 274,
1310
- toggle_blueprint_snap_to_grid = 275,
1311
- toggle_deconstruction_item_entity_filter_mode = 276,
1312
- toggle_deconstruction_item_tile_filter_mode = 277,
1313
- toggle_driving = 278,
1314
- toggle_enable_vehicle_logistics_while_moving = 279,
1315
- toggle_entity_logistic_requests = 280,
1316
- toggle_equipment_movement_bonus = 281,
1317
- toggle_map_editor = 282,
1318
- toggle_personal_logistic_requests = 283,
1319
- toggle_personal_roboport = 284,
1320
- toggle_selected_entity = 285,
1321
- toggle_show_entity_info = 286,
1322
- toggle_tall_entity_visibility = 287,
1323
- trash_not_requested_items = 288,
1324
- undo = 289,
1325
- upgrade = 290,
1326
- upgrade_opened_blueprint_by_item = 291,
1327
- upgrade_opened_blueprint_by_record = 292,
1328
- use_item = 293,
1329
- wire_dragging = 294,
1330
- write_to_console = 295
1138
+ flush_opened_entity_fluid_system = 103,
1139
+ flush_opened_entity_specific_fluid = 104,
1140
+ go_to_train_station = 105,
1141
+ grab_blueprint_record = 106,
1142
+ gui_checked_state_changed = 107,
1143
+ gui_click = 108,
1144
+ gui_confirmed = 109,
1145
+ gui_elem_changed = 110,
1146
+ gui_hover = 111,
1147
+ gui_inventory_action = 112,
1148
+ gui_inventory_bar_changed = 113,
1149
+ gui_inventory_filter_changed = 114,
1150
+ gui_leave = 115,
1151
+ gui_location_changed = 116,
1152
+ gui_selected_tab_changed = 117,
1153
+ gui_selection_state_changed = 118,
1154
+ gui_switch_state_changed = 119,
1155
+ gui_text_changed = 120,
1156
+ gui_value_changed = 121,
1157
+ import_blueprint = 122,
1158
+ import_blueprint_string = 123,
1159
+ import_blueprints_filtered = 124,
1160
+ import_permissions_string = 125,
1161
+ instantly_create_space_platform = 126,
1162
+ inventory_split = 127,
1163
+ inventory_transfer = 128,
1164
+ land_at_planet = 129,
1165
+ launch_rocket = 130,
1166
+ lua_shortcut = 131,
1167
+ map_editor_action = 132,
1168
+ market_offer = 133,
1169
+ mod_settings_changed = 134,
1170
+ modify_decider_combinator_condition = 135,
1171
+ modify_decider_combinator_else_output = 136,
1172
+ modify_decider_combinator_output = 137,
1173
+ move_pin = 138,
1174
+ move_research = 139,
1175
+ open_achievements_gui = 140,
1176
+ open_alerts_config_gui = 141,
1177
+ open_blueprint_library_gui = 142,
1178
+ open_blueprint_record = 143,
1179
+ open_bonus_gui = 144,
1180
+ open_character_gui = 145,
1181
+ open_current_vehicle_gui = 146,
1182
+ open_equipment = 147,
1183
+ open_global_electric_network_gui = 148,
1184
+ open_gui = 149,
1185
+ open_item = 150,
1186
+ open_logistics_gui = 151,
1187
+ open_mod_item = 152,
1188
+ open_new_platform_button_from_rocket_silo = 153,
1189
+ open_opened_entity_grid = 154,
1190
+ open_parent_of_opened_item = 155,
1191
+ open_production_gui = 156,
1192
+ open_train_gui = 157,
1193
+ open_train_station_gui = 158,
1194
+ open_trains_gui = 159,
1195
+ parametrise_blueprint = 160,
1196
+ paste_entity_settings = 161,
1197
+ pin_alert_group = 162,
1198
+ pin_custom_alert = 163,
1199
+ pin_search_result = 164,
1200
+ pipette = 165,
1201
+ place_equipment = 166,
1202
+ providing_to_other_platforms = 167,
1203
+ quick_bar_pick_slot = 168,
1204
+ quick_bar_set_selected_page = 169,
1205
+ quick_bar_set_slot = 170,
1206
+ reassign_blueprint = 171,
1207
+ redo = 172,
1208
+ remote_view_entity = 173,
1209
+ remote_view_surface = 174,
1210
+ remove_cables = 175,
1211
+ remove_decider_combinator_condition = 176,
1212
+ remove_decider_combinator_else_output = 177,
1213
+ remove_decider_combinator_output = 178,
1214
+ remove_logistic_section = 179,
1215
+ remove_pin = 180,
1216
+ remove_train_interrupt = 181,
1217
+ remove_train_station = 182,
1218
+ rename_interrupt = 183,
1219
+ rename_space_platform = 184,
1220
+ reorder_logistic_section = 185,
1221
+ request_missing_construction_materials = 186,
1222
+ reset_assembling_machine = 187,
1223
+ rotate_entity = 188,
1224
+ select_area = 189,
1225
+ select_asteroid_chunk_slot = 190,
1226
+ select_blueprint_entities = 191,
1227
+ select_entity_filter_slot = 192,
1228
+ select_entity_slot = 193,
1229
+ select_item_filter = 194,
1230
+ select_mapper_slot_from = 195,
1231
+ select_mapper_slot_to = 196,
1232
+ select_next_valid_gun = 197,
1233
+ select_tile_slot = 198,
1234
+ send_spidertron = 199,
1235
+ send_stack_to_trash = 200,
1236
+ send_stacks_to_trash = 201,
1237
+ send_train_to_pin_target = 202,
1238
+ set_behavior_mode = 203,
1239
+ set_car_weapons_control = 204,
1240
+ set_cheat_mode_quality = 205,
1241
+ set_circuit_condition = 206,
1242
+ set_circuit_mode_of_operation = 207,
1243
+ set_combinator_description = 208,
1244
+ set_control_behavior_input_networks = 209,
1245
+ set_control_behavior_output_networks = 210,
1246
+ set_copy_color_from_train_stop = 211,
1247
+ set_deconstruction_item_tile_selection_mode = 212,
1248
+ set_deconstruction_item_trees_and_rocks_only = 213,
1249
+ set_entity_color = 214,
1250
+ set_entity_energy_property = 215,
1251
+ set_equipment_energy_property = 216,
1252
+ set_filter = 217,
1253
+ set_ghost_cursor = 218,
1254
+ set_heat_interface_mode = 219,
1255
+ set_heat_interface_temperature = 220,
1256
+ set_infinity_container_filter_item = 221,
1257
+ set_infinity_container_logistic_mode = 222,
1258
+ set_infinity_container_remove_unfiltered_items = 223,
1259
+ set_infinity_pipe_filter = 224,
1260
+ set_inserter_max_stack_size = 225,
1261
+ set_inventory_bar = 226,
1262
+ set_lamp_always_on = 227,
1263
+ set_linked_container_link_i_d = 228,
1264
+ set_loader_belt_stack_size_override = 229,
1265
+ set_logistic_filter_item = 230,
1266
+ set_logistic_network_name = 231,
1267
+ set_logistic_section_active = 232,
1268
+ set_player_color = 233,
1269
+ set_pump_fluid_filter = 234,
1270
+ set_request_from_buffers = 235,
1271
+ set_research_finished_stops_game = 236,
1272
+ set_rocket_silo_send_to_orbit_automated_mode = 237,
1273
+ set_schedule_record_allow_unloading = 238,
1274
+ set_signal = 239,
1275
+ set_splitter_priority = 240,
1276
+ set_spoil_priority = 241,
1277
+ set_train_stop_priority = 242,
1278
+ set_train_stopped = 243,
1279
+ set_trains_limit = 244,
1280
+ set_turret_ignore_unlisted = 245,
1281
+ set_use_inserter_filters = 246,
1282
+ set_vehicle_automatic_targeting_parameters = 247,
1283
+ setup_assembling_machine = 248,
1284
+ setup_blueprint = 249,
1285
+ setup_single_blueprint_record = 250,
1286
+ spawn_item = 251,
1287
+ spectator_change_surface = 252,
1288
+ stack_split = 253,
1289
+ stack_transfer = 254,
1290
+ start_repair = 255,
1291
+ start_research = 256,
1292
+ start_select_area = 257,
1293
+ start_walking = 258,
1294
+ stop_drag_build = 259,
1295
+ swap_asteroid_chunk_slots = 260,
1296
+ swap_entity_filter_slots = 261,
1297
+ swap_entity_slots = 262,
1298
+ swap_infinity_container_filter_items = 263,
1299
+ swap_item_filters = 264,
1300
+ swap_logistic_filter_items = 265,
1301
+ swap_mappers = 266,
1302
+ swap_tile_slots = 267,
1303
+ switch_connect_to_logistic_network = 268,
1304
+ switch_constant_combinator_state = 269,
1305
+ switch_inserter_filter_mode_state = 270,
1306
+ switch_loader_filter_mode = 271,
1307
+ switch_mining_drill_filter_mode_state = 272,
1308
+ switch_power_switch_state = 273,
1309
+ take_equipment = 274,
1310
+ toggle_artillery_auto_targeting = 275,
1311
+ toggle_blueprint_snap_to_grid = 276,
1312
+ toggle_deconstruction_item_entity_filter_mode = 277,
1313
+ toggle_deconstruction_item_tile_filter_mode = 278,
1314
+ toggle_driving = 279,
1315
+ toggle_enable_vehicle_logistics_while_moving = 280,
1316
+ toggle_entity_logistic_requests = 281,
1317
+ toggle_equipment_movement_bonus = 282,
1318
+ toggle_map_editor = 283,
1319
+ toggle_personal_logistic_requests = 284,
1320
+ toggle_personal_roboport = 285,
1321
+ toggle_selected_entity = 286,
1322
+ toggle_show_entity_info = 287,
1323
+ toggle_tall_entity_visibility = 288,
1324
+ trash_not_requested_items = 289,
1325
+ undo = 290,
1326
+ upgrade = 291,
1327
+ upgrade_opened_blueprint_by_item = 292,
1328
+ upgrade_opened_blueprint_by_record = 293,
1329
+ use_item = 294,
1330
+ wire_dragging = 295,
1331
+ write_to_console = 296
1331
1332
  }
1332
1333
  enum input_method {
1333
1334
  game_controller = 1,
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.1.24
5
+ // Factorio version 2.1.25
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -1176,6 +1176,10 @@ interface on_gui_closed {
1176
1176
  * The player closing the GUI.
1177
1177
  */
1178
1178
  player_index: uint32;
1179
+ /**
1180
+ * Blueprint record that was closed.
1181
+ */
1182
+ record?: LuaRecord;
1179
1183
  /**
1180
1184
  * The surface index of the global electric network whose GUI was closed.
1181
1185
  */
@@ -1407,6 +1411,10 @@ interface on_gui_opened {
1407
1411
  * The player opening the GUI.
1408
1412
  */
1409
1413
  player_index: uint32;
1414
+ /**
1415
+ * Blueprint record that was opened.
1416
+ */
1417
+ record?: LuaRecord;
1410
1418
  /**
1411
1419
  * The surface index of the global electric network whose GUI was opened.
1412
1420
  */
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.1.24
5
+ // Factorio version 2.1.25
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.1.24
5
+ // Factorio version 2.1.25
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
@@ -1242,6 +1242,10 @@ interface BlueprintItemPrototype extends SelectionToolPrototype {
1242
1242
  * Tints of the building preview when this blueprint is held in the cursor. Every property is optional here, any that are not given use the color from {@link UtilityConstants::build_preview_tints | prototype:UtilityConstants::build_preview_tints}.
1243
1243
  */
1244
1244
  build_preview_tints?: BuildPreviewTints;
1245
+ /**
1246
+ * Whether the {@link collision indicators | prototype:UtilitySprites::buildability_collision} are drawn over entities that collide with the building preview when this blueprint is held in the cursor.
1247
+ */
1248
+ draw_collision_indicators?: boolean;
1245
1249
  /**
1246
1250
  * Whether the item will draw its label when held in the cursor in place of the item count.
1247
1251
  */
@@ -2311,6 +2315,8 @@ interface CurvedRailBPrototype extends RailPrototype {
2311
2315
  collision_box?: BoundingBox;
2312
2316
  }
2313
2317
  /**
2318
+ * Defines a custom event with an unique name. During runtime, mods can use the event name to {@link raise | runtime:LuaBootstrap::raise_event} and {@link subscribe to | runtime:LuaBootstrap::on_event} the custom event.
2319
+ *
2314
2320
  * Custom events share the same namespace as custom inputs and built-in events for subscribing to and raising them.
2315
2321
  * @example ```
2316
2322
  {
@@ -2323,6 +2329,8 @@ interface CustomEventPrototype extends Prototype {
2323
2329
  }
2324
2330
  /**
2325
2331
  * Used for custom keyboard shortcuts/key bindings in mods. The key associated with the custom input can be changed in the options. This means that `key_sequence` is simply the default key binding.
2332
+ *
2333
+ * Custom inputs share the same namespace as custom events and built-in events for subscribing to and raising them.
2326
2334
  */
2327
2335
  interface CustomInputPrototype extends Prototype {
2328
2336
  /**
@@ -6629,16 +6637,18 @@ interface ParticleSourcePrototype extends EntityPrototype {
6629
6637
  * An entity to transport fluids over a distance and between machines.
6630
6638
  */
6631
6639
  interface PipePrototype extends EntityWithOwnerPrototype {
6632
- circuit_connector?: [
6633
- CircuitConnectorDefinition,
6634
- CircuitConnectorDefinition,
6635
- CircuitConnectorDefinition,
6636
- CircuitConnectorDefinition
6637
- ];
6640
+ /**
6641
+ * If given, there must be exactly 16 elements in the table.
6642
+ */
6643
+ circuit_connector?: CircuitConnectorDefinition[];
6638
6644
  circuit_wire_max_distance?: double;
6639
6645
  default_fluid_temperature_signal?: SignalIDConnector;
6640
6646
  draw_circuit_wires?: boolean;
6641
6647
  draw_copper_wires?: boolean;
6648
+ /**
6649
+ * When this is `false`, pipe will never attempt drawing window.
6650
+ */
6651
+ draw_window?: boolean;
6642
6652
  /**
6643
6653
  * The area of the entity where fluid/gas inputs, and outputs.
6644
6654
  */
@@ -6648,6 +6658,10 @@ interface PipePrototype extends EntityWithOwnerPrototype {
6648
6658
  * All graphics for this pipe.
6649
6659
  */
6650
6660
  pictures?: PipePictures;
6661
+ /**
6662
+ * Whether a random graphics variation is chosen when placing the entity/creating it via script/creating it via map generation. If this is `false`, the entity will use the first variation instead of a random one.
6663
+ */
6664
+ random_variation_on_create?: boolean;
6651
6665
  /**
6652
6666
  * When this is true, fluid pipelines will be visualized when this entity is held in the cursor.
6653
6667
  */
@@ -7870,6 +7884,11 @@ interface RecipePrototype extends Prototype {
7870
7884
  * This property is not read by the game engine itself, but the recycler mod's recycling.lua file. This means it is discarded by the game engine after loading finishes.
7871
7885
  */
7872
7886
  recycle_to_ingredients_of?: RecipeID;
7887
+ /**
7888
+ * The multiplier used when this recipe is copied from an {@link assembling machine | prototype:AssemblingMachinePrototype} to a {@link requester chest | prototype:LogisticContainerPrototype} or {@link infinity chest | prototype:InfinityContainerPrototype}.
7889
+ *
7890
+ * For each item ingredient the `ingredient_amount * requester_paste_multiplier * machine_crafting_speed / energy_required` is set as a request for that item in the chest. The request is clamped to always be for at least `ingredient_amount` items.
7891
+ */
7873
7892
  requester_paste_multiplier?: uint32;
7874
7893
  /**
7875
7894
  * Whether enabling this recipe requires the ingredients be unlocked before the products are marked as unlocked.
@@ -8912,7 +8931,7 @@ interface ShortcutPrototype extends Prototype {
8912
8931
  /**
8913
8932
  * If this is `"lua"`, {@link on_lua_shortcut | runtime:on_lua_shortcut} is raised when the shortcut is clicked.
8914
8933
  */
8915
- action: 'toggle-alt-mode' | 'undo' | 'redo' | 'paste' | 'import-string' | 'toggle-personal-roboport' | 'toggle-personal-logistic-requests' | 'toggle-equipment-movement-bonus' | 'spawn-item' | 'lua';
8934
+ action: 'toggle-alt-mode' | 'undo' | 'redo' | 'paste' | 'import-string' | 'toggle-personal-roboport' | 'toggle-personal-logistic-requests' | 'toggle-equipment-movement-bonus' | 'toggle-tall-entity-visibility' | 'spawn-item' | 'lua';
8916
8935
  /**
8917
8936
  * Name of a custom input or vanilla control. This is **only** used to show the keybind in the tooltip of the shortcut.
8918
8937
  */
@@ -9641,6 +9660,16 @@ interface SplitterPrototype extends TransportBeltConnectablePrototype {
9641
9660
  default_output_right_condition?: CircuitConditionConnector;
9642
9661
  draw_circuit_wires?: boolean;
9643
9662
  draw_copper_wires?: boolean;
9663
+ /**
9664
+ * When set to true, right lane of left input belt is swapped with left lane of right input belt. This can be used to create a splitter which spreads both lanes of left input belt onto left lanes of both outputs, and both lanes of right input belt onto right lanes of both outputs.
9665
+ */
9666
+ exchange_input_lines?: boolean;
9667
+ /**
9668
+ * When set to true, right lane of left output belt is swapped with left lane of right output belt. This can be used to create a splitter which combines left lanes of both input lanes into left output belt and right lanes of both input lanes into right output belt.
9669
+ *
9670
+ * When this option is used, a {@link IconDrawSpecification::scale_for_many | prototype:IconDrawSpecification::scale_for_many} inside of {@link EntityPrototype::icon_draw_specification | prototype:EntityPrototype::icon_draw_specification} will need to be provided in case a filter is to be drawn as it will be rendered on respective sides of both output belts. Suggested value is `0.35`.
9671
+ */
9672
+ exchange_output_lines?: boolean;
9644
9673
  frozen_patch?: Sprite4Way;
9645
9674
  /**
9646
9675
  * The name of the {@link TransportBeltPrototype | prototype:TransportBeltPrototype} which is used for the sound of the underlying belt.
@@ -10881,6 +10910,9 @@ interface UndergroundBeltPrototype extends TransportBeltConnectablePrototype {
10881
10910
  max_distance_tint?: Color;
10882
10911
  max_distance_underground_remove_belts_sprite?: Sprite;
10883
10912
  structure?: UndergroundBeltStructure;
10913
+ /**
10914
+ * The underground connection may be defined as colliding with tiles in which case if any colliding tile is placed between underground ends the connection will not be established.
10915
+ */
10884
10916
  underground_collision_mask?: CollisionMaskConnector;
10885
10917
  underground_remove_belts_sprite?: Sprite;
10886
10918
  underground_sprite?: Sprite;
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.1.24
5
+ // Factorio version 2.1.25
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
@@ -4193,7 +4193,11 @@ interface ElectricEnergySource extends BaseEnergySource {
4193
4193
  */
4194
4194
  buffer_capacity?: Energy;
4195
4195
  /**
4196
- * How much energy (per second) will be continuously removed from the energy buffer. In-game, this is shown in the tooltip as "Min. [Minimum] Consumption". Applied as a constant consumption-per-tick, even when the entity is not {@link active | runtime:LuaEntity::active}.
4196
+ * How much energy (per second) will be continuously removed from the energy buffer. It is applied as a constant consumption-per-tick, even when the entity is not {@link active | runtime:LuaEntity::active}.
4197
+ *
4198
+ * If this is an output energy source then the drain will only affect this energy source's buffer, it will not result in energy being drawn from the network.
4199
+ *
4200
+ * If this is an input energy source then the drain is shown in the tooltip as "Min. [Minimum] Consumption".
4197
4201
  * @example ```
4198
4202
  drain = "1kW"
4199
4203
  ```
@@ -7811,7 +7815,7 @@ interface PipeConnectionDefinition {
7811
7815
  MapPosition
7812
7816
  ];
7813
7817
  /**
7814
- * An underground connection may be defined as colliding with tiles in which case if any tile is placed between underground ends the connection will not be established.
7818
+ * An underground connection may be defined as colliding with tiles in which case if any colliding tile is placed between underground ends the connection will not be established.
7815
7819
  *
7816
7820
  * In order to connect, both ends must have the same collision mask specified.
7817
7821
  *
@@ -7830,41 +7834,41 @@ type PipeConnectionType = /**
7830
7834
  */
7831
7835
  'linked';
7832
7836
  interface PipePictures {
7833
- corner_down_left?: Sprite;
7837
+ corner_down_left?: SpriteVariations;
7834
7838
  corner_down_left_disabled_visualization?: Sprite;
7835
- corner_down_left_frozen?: Sprite;
7839
+ corner_down_left_frozen?: SpriteVariations;
7836
7840
  corner_down_left_visualization?: Sprite;
7837
- corner_down_right?: Sprite;
7841
+ corner_down_right?: SpriteVariations;
7838
7842
  corner_down_right_disabled_visualization?: Sprite;
7839
- corner_down_right_frozen?: Sprite;
7843
+ corner_down_right_frozen?: SpriteVariations;
7840
7844
  corner_down_right_visualization?: Sprite;
7841
- corner_up_left?: Sprite;
7845
+ corner_up_left?: SpriteVariations;
7842
7846
  corner_up_left_disabled_visualization?: Sprite;
7843
- corner_up_left_frozen?: Sprite;
7847
+ corner_up_left_frozen?: SpriteVariations;
7844
7848
  corner_up_left_visualization?: Sprite;
7845
- corner_up_right?: Sprite;
7849
+ corner_up_right?: SpriteVariations;
7846
7850
  corner_up_right_disabled_visualization?: Sprite;
7847
- corner_up_right_frozen?: Sprite;
7851
+ corner_up_right_frozen?: SpriteVariations;
7848
7852
  corner_up_right_visualization?: Sprite;
7849
- cross?: Sprite;
7853
+ cross?: SpriteVariations;
7850
7854
  cross_disabled_visualization?: Sprite;
7851
- cross_frozen?: Sprite;
7855
+ cross_frozen?: SpriteVariations;
7852
7856
  cross_visualization?: Sprite;
7853
- ending_down?: Sprite;
7857
+ ending_down?: SpriteVariations;
7854
7858
  ending_down_disabled_visualization?: Sprite;
7855
- ending_down_frozen?: Sprite;
7859
+ ending_down_frozen?: SpriteVariations;
7856
7860
  ending_down_visualization?: Sprite;
7857
- ending_left?: Sprite;
7861
+ ending_left?: SpriteVariations;
7858
7862
  ending_left_disabled_visualization?: Sprite;
7859
- ending_left_frozen?: Sprite;
7863
+ ending_left_frozen?: SpriteVariations;
7860
7864
  ending_left_visualization?: Sprite;
7861
- ending_right?: Sprite;
7865
+ ending_right?: SpriteVariations;
7862
7866
  ending_right_disabled_visualization?: Sprite;
7863
- ending_right_frozen?: Sprite;
7867
+ ending_right_frozen?: SpriteVariations;
7864
7868
  ending_right_visualization?: Sprite;
7865
- ending_up?: Sprite;
7869
+ ending_up?: SpriteVariations;
7866
7870
  ending_up_disabled_visualization?: Sprite;
7867
- ending_up_frozen?: Sprite;
7871
+ ending_up_frozen?: SpriteVariations;
7868
7872
  ending_up_visualization?: Sprite;
7869
7873
  fluid_background?: Sprite;
7870
7874
  /**
@@ -7884,41 +7888,41 @@ interface PipePictures {
7884
7888
  * Visualizes the flow of the fluid in the pipe. Drawn when `(fluid_temp - fluid_min_temp) / (fluid_max_temp - fluid_min_temp)` is larger than `1/3` and less than or equal to `2/3` and the fluid's temperature is below {@link FluidPrototype::gas_temperature | prototype:FluidPrototype::gas_temperature}.
7885
7889
  */
7886
7890
  middle_temperature_flow?: Sprite;
7887
- straight_horizontal?: Sprite;
7891
+ straight_horizontal?: SpriteVariations;
7888
7892
  straight_horizontal_disabled_visualization?: Sprite;
7889
- straight_horizontal_frozen?: Sprite;
7893
+ straight_horizontal_frozen?: SpriteVariations;
7890
7894
  straight_horizontal_visualization?: Sprite;
7891
- straight_horizontal_window?: Sprite;
7895
+ straight_horizontal_window?: SpriteVariations;
7892
7896
  straight_horizontal_window_disabled_visualization?: Sprite;
7893
- straight_horizontal_window_frozen?: Sprite;
7897
+ straight_horizontal_window_frozen?: SpriteVariations;
7894
7898
  straight_horizontal_window_visualization?: Sprite;
7895
- straight_vertical?: Sprite;
7899
+ straight_vertical?: SpriteVariations;
7896
7900
  straight_vertical_disabled_visualization?: Sprite;
7897
- straight_vertical_frozen?: Sprite;
7898
- straight_vertical_single?: Sprite;
7901
+ straight_vertical_frozen?: SpriteVariations;
7902
+ straight_vertical_single?: SpriteVariations;
7899
7903
  straight_vertical_single_disabled_visualization?: Sprite;
7900
- straight_vertical_single_frozen?: Sprite;
7904
+ straight_vertical_single_frozen?: SpriteVariations;
7901
7905
  straight_vertical_single_visualization?: Sprite;
7902
7906
  straight_vertical_visualization?: Sprite;
7903
- straight_vertical_window?: Sprite;
7907
+ straight_vertical_window?: SpriteVariations;
7904
7908
  straight_vertical_window_disabled_visualization?: Sprite;
7905
- straight_vertical_window_frozen?: Sprite;
7909
+ straight_vertical_window_frozen?: SpriteVariations;
7906
7910
  straight_vertical_window_visualization?: Sprite;
7907
- t_down?: Sprite;
7911
+ t_down?: SpriteVariations;
7908
7912
  t_down_disabled_visualization?: Sprite;
7909
- t_down_frozen?: Sprite;
7913
+ t_down_frozen?: SpriteVariations;
7910
7914
  t_down_visualization?: Sprite;
7911
- t_left?: Sprite;
7915
+ t_left?: SpriteVariations;
7912
7916
  t_left_disabled_visualization?: Sprite;
7913
- t_left_frozen?: Sprite;
7917
+ t_left_frozen?: SpriteVariations;
7914
7918
  t_left_visualization?: Sprite;
7915
- t_right?: Sprite;
7919
+ t_right?: SpriteVariations;
7916
7920
  t_right_disabled_visualization?: Sprite;
7917
- t_right_frozen?: Sprite;
7921
+ t_right_frozen?: SpriteVariations;
7918
7922
  t_right_visualization?: Sprite;
7919
- t_up?: Sprite;
7923
+ t_up?: SpriteVariations;
7920
7924
  t_up_disabled_visualization?: Sprite;
7921
- t_up_frozen?: Sprite;
7925
+ t_up_frozen?: SpriteVariations;
7922
7926
  t_up_visualization?: Sprite;
7923
7927
  vertical_window_background?: Sprite;
7924
7928
  }
@@ -9623,6 +9627,10 @@ interface SelectionModeData {
9623
9627
  chart_color?: Color;
9624
9628
  count_button_color?: Color;
9625
9629
  cursor_box_type: CursorBoxType;
9630
+ /**
9631
+ * Whether the list of how many entities are selected should be shown.
9632
+ */
9633
+ draw_selection_counts?: boolean;
9626
9634
  ended_sound?: Sound;
9627
9635
  entity_filter_mode?: 'whitelist' | 'blacklist';
9628
9636
  entity_filters?: EntityID[];
@@ -13074,7 +13082,7 @@ interface TreeGrowth {
13074
13082
  trunk_warp: Sprite;
13075
13083
  }
13076
13084
  /**
13077
- * Tree has number of "dying" stages, which is deduced from frame count of `shadow` if shadow is defined, otherwise from frame count of `trunk`. Frame count of `leaves` has to be one less than the deduced number of stages, as last the stage is always assumed to be leafless.
13085
+ * Tree has number of "dying" stages, which is deduced from frame count of `shadow` if shadow is defined, otherwise from frame count of `trunk`. The frame count of `leaves` has to be one less than the deduced number of stages, as the last stage is always assumed to be leafless.
13078
13086
  */
13079
13087
  interface TreeVariation {
13080
13088
  branch_generation: CreateParticleTriggerEffectItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "factorio-types",
3
- "version": "1.2.73",
3
+ "version": "1.2.74",
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.1.24",
26
+ "factorioVersion": "2.1.25",
27
27
  "dependencies": {
28
28
  "lua-types": "^2.13.1"
29
29
  },