typed-factorio 3.25.0 → 3.26.0

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.
@@ -10,6 +10,11 @@ import type { VersionString } from "factorio:common"
10
10
  * @noResolution
11
11
  */
12
12
  declare module "factorio:runtime" {
13
+ /**
14
+ * Weight of an object. The weight is stored as a fixed-size 64 bit integer, with 16 bits reserved for decimal precision, meaning the smallest value step is `1/2^16`.
15
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Weight.html Online documentation}
16
+ */
17
+ export type Weight = double
13
18
  export interface CircularParticleCreationSpecification {
14
19
  /**
15
20
  * Name of the {@link LuaEntityPrototype}.
@@ -38,7 +43,7 @@ declare module "factorio:runtime" {
38
43
  * - {@link FluidID}: Used with fluid production statistics.
39
44
  * - {@link EntityWithQualityID}: Used with electric network, entity build count, and kill count statistics.
40
45
  * - {@link EntityID}: Used with pollution statistics.
41
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/FlowStatisticsID.html Online documentation}
46
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/FlowStatisticsID.html Online documentation}
42
47
  */
43
48
  export type FlowStatisticsID = ItemWithQualityID | FluidID | EntityWithQualityID | EntityID
44
49
  export type ItemStackIndex = uint16
@@ -60,7 +65,7 @@ declare module "factorio:runtime" {
60
65
  * - `"<="`: "lesser than or equal to"
61
66
  * - `"≠"`: "not equal to"
62
67
  * - `"!="`: "not equal to"
63
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ComparatorString.html Online documentation}
68
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ComparatorString.html Online documentation}
64
69
  */
65
70
  export type ComparatorString = "=" | ">" | "<" | "≥" | ">=" | "≤" | "<=" | "≠" | "!="
66
71
  export type ComparatorStringRead = "=" | ">" | "<" | "≥" | "≤" | "≠"
@@ -91,93 +96,93 @@ declare module "factorio:runtime" {
91
96
  *
92
97
  * The validity of a SpritePath can be verified at runtime using {@link LuaHelpers#is_valid_sprite_path LuaHelpers::is_valid_sprite_path}.
93
98
  *
94
- * {@link https://lua-api.factorio.com/2.0.55/concepts/SpritePath.html > The supported types are:}
95
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SpritePath.html Online documentation}
99
+ * {@link https://lua-api.factorio.com/2.0.58/concepts/SpritePath.html > The supported types are:}
100
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SpritePath.html Online documentation}
96
101
  */
97
102
  export type SpritePath = (string & { _?: never }) | `${SpriteType}${"/" | "."}${string}`
98
103
  /**
99
104
  * Parameters that affect the look and control of the game. Updating any of the member attributes here will immediately take effect in the game engine.
100
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.html Online documentation}
105
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.html Online documentation}
101
106
  */
102
107
  export interface GameViewSettings {
103
108
  /**
104
109
  * Show the controller GUI elements. This includes the toolbar, the selected tool slot, the armour slot, and the gun and ammunition slots.
105
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.show_controller_gui.html Online documentation}
110
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.show_controller_gui.html Online documentation}
106
111
  */
107
112
  show_controller_gui: boolean
108
113
  /**
109
114
  * Show the chart in the upper right-hand corner of the screen.
110
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.show_minimap.html Online documentation}
115
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.show_minimap.html Online documentation}
111
116
  */
112
117
  show_minimap: boolean
113
118
  /**
114
119
  * Show research progress and name in the upper right-hand corner of the screen.
115
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.show_research_info.html Online documentation}
120
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.show_research_info.html Online documentation}
116
121
  */
117
122
  show_research_info: boolean
118
123
  /**
119
124
  * Show overlay icons on entities. Also known as "alt-mode".
120
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.show_entity_info.html Online documentation}
125
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.show_entity_info.html Online documentation}
121
126
  */
122
127
  show_entity_info: boolean
123
128
  /**
124
129
  * Show the flashing alert icons next to the player's toolbar.
125
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.show_alert_gui.html Online documentation}
130
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.show_alert_gui.html Online documentation}
126
131
  */
127
132
  show_alert_gui: boolean
128
133
  /**
129
134
  * When `true` (the default), mousing over an entity will select it. Otherwise, moving the mouse won't update entity selection.
130
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.update_entity_selection.html Online documentation}
135
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.update_entity_selection.html Online documentation}
131
136
  */
132
137
  update_entity_selection: boolean
133
138
  /**
134
139
  * When `true` (`false` is default), the rails will always show the rail block visualisation.
135
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.show_rail_block_visualisation.html Online documentation}
140
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.show_rail_block_visualisation.html Online documentation}
136
141
  */
137
142
  show_rail_block_visualisation: boolean
138
143
  /**
139
144
  * Shows or hides the buttons row.
140
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.show_side_menu.html Online documentation}
145
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.show_side_menu.html Online documentation}
141
146
  */
142
147
  show_side_menu: boolean
143
148
  /**
144
149
  * Shows or hides the view options when map is opened.
145
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.show_map_view_options.html Online documentation}
150
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.show_map_view_options.html Online documentation}
146
151
  */
147
152
  show_map_view_options: boolean
148
153
  /**
149
154
  * Shows or hides the tooltip that is displayed when selecting an entity.
150
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.show_entity_tooltip.html Online documentation}
155
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.show_entity_tooltip.html Online documentation}
151
156
  */
152
157
  show_entity_tooltip: boolean
153
158
  /**
154
159
  * Shows or hides quickbar of shortcuts.
155
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.show_quickbar.html Online documentation}
160
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.show_quickbar.html Online documentation}
156
161
  */
157
162
  show_quickbar: boolean
158
163
  /**
159
164
  * Shows or hides the shortcut bar.
160
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.show_shortcut_bar.html Online documentation}
165
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.show_shortcut_bar.html Online documentation}
161
166
  */
162
167
  show_shortcut_bar: boolean
163
168
  /**
164
169
  * Shows or hides the crafting queue.
165
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.show_crafting_queue.html Online documentation}
170
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.show_crafting_queue.html Online documentation}
166
171
  */
167
172
  show_crafting_queue: boolean
168
173
  /**
169
174
  * Shows or hides the tool window with the weapons and armor.
170
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.show_tool_bar.html Online documentation}
175
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.show_tool_bar.html Online documentation}
171
176
  */
172
177
  show_tool_bar: boolean
173
178
  /**
174
179
  * Shows or hides the mouse and keyboard/controller button hints in the bottom left corner if they are enabled in the interface settings.
175
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.show_hotkey_suggestions.html Online documentation}
180
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.show_hotkey_suggestions.html Online documentation}
176
181
  */
177
182
  show_hotkey_suggestions: boolean
178
183
  /**
179
184
  * Shows or hides the surface list while in Remote View.
180
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GameViewSettings.show_surface_list.html Online documentation}
185
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GameViewSettings.show_surface_list.html Online documentation}
181
186
  */
182
187
  show_surface_list: boolean
183
188
  }
@@ -189,7 +194,7 @@ declare module "factorio:runtime" {
189
194
  * @example
190
195
  * -- Most common collision mask of buildings:
191
196
  * collision_mask = {layers = {item = true, meltable = true, object = true, player = true, water_tile = true, is_object = true, is_lower_object = true}}
192
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/CollisionMask.html Online documentation}
197
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/CollisionMask.html Online documentation}
193
198
  */
194
199
  export interface CollisionMask {
195
200
  /**
@@ -231,14 +236,14 @@ declare module "factorio:runtime" {
231
236
  * The percentual increase of the attribute. A value of `0.6` means a 60% increase.
232
237
  *
233
238
  * Quality values are divided by 10 internally, allowing for one more decimal of precision.
234
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ModuleEffectValue.html Online documentation}
239
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ModuleEffectValue.html Online documentation}
235
240
  */
236
241
  export type ModuleEffectValue = float
237
242
  /**
238
243
  * @example
239
244
  * -- These are the effects of the vanilla Speed Module 3
240
245
  * {speed = 0.5, consumption = 0.7, quality = -0.25}
241
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ModuleEffects.html Online documentation}
246
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ModuleEffects.html Online documentation}
242
247
  */
243
248
  export interface ModuleEffects {
244
249
  readonly consumption?: ModuleEffectValue
@@ -249,12 +254,12 @@ declare module "factorio:runtime" {
249
254
  }
250
255
  /**
251
256
  * `math.huge` represents the maximum possible tick.
252
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/MapTick.html Online documentation}
257
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/MapTick.html Online documentation}
253
258
  */
254
259
  export type MapTick = uint64
255
260
  /**
256
261
  * @see BlueprintSignalIconWrite
257
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintSignalIcon.html Online documentation}
262
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintSignalIcon.html Online documentation}
258
263
  */
259
264
  export interface BlueprintSignalIcon {
260
265
  /**
@@ -268,7 +273,7 @@ declare module "factorio:runtime" {
268
273
  }
269
274
  /**
270
275
  * Write form of {@link BlueprintSignalIcon}, where some properties allow additional values as input compared to the read form.
271
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintSignalIcon.html Online documentation}
276
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintSignalIcon.html Online documentation}
272
277
  */
273
278
  export interface BlueprintSignalIconWrite {
274
279
  /**
@@ -356,7 +361,7 @@ declare module "factorio:runtime" {
356
361
  * - `"collision-selection-box"`: 189
357
362
  * - `"arrow"`: 190
358
363
  * - `"cursor"`: 226
359
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/RenderLayer.html Online documentation}
364
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/RenderLayer.html Online documentation}
360
365
  */
361
366
  export type RenderLayer =
362
367
  | `${bigint}`
@@ -433,7 +438,7 @@ declare module "factorio:runtime" {
433
438
  | "cursor"
434
439
  /**
435
440
  * What is shown in the map view. If a field is not given, that setting will not be changed.
436
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/MapViewSettings.html Online documentation}
441
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/MapViewSettings.html Online documentation}
437
442
  */
438
443
  export interface MapViewSettings {
439
444
  readonly "show-logistic-network"?: boolean
@@ -463,7 +468,7 @@ declare module "factorio:runtime" {
463
468
  * - `"blueprint-snap-rectangle"`: Green by default.
464
469
  * - `"spidertron-remote-selected"`
465
470
  * - `"spidertron-remote-to-be-selected"`
466
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/CursorBoxRenderType.html Online documentation}
471
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/CursorBoxRenderType.html Online documentation}
467
472
  */
468
473
  export type CursorBoxRenderType =
469
474
  | "entity"
@@ -481,7 +486,7 @@ declare module "factorio:runtime" {
481
486
  * The name of a {@link LuaCollisionLayerPrototype}.
482
487
  * @example
483
488
  * "is_lower_object"
484
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/CollisionLayerID.html Online documentation}
489
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/CollisionLayerID.html Online documentation}
485
490
  */
486
491
  export type CollisionLayerID = string
487
492
  /**
@@ -493,7 +498,7 @@ declare module "factorio:runtime" {
493
498
  * - `"always"`
494
499
  * - `"auto"`
495
500
  * - `"auto-and-reserve-space"`
496
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ScrollPolicy.html Online documentation}
501
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ScrollPolicy.html Online documentation}
497
502
  */
498
503
  export type ScrollPolicy = "never" | "dont-show-but-allow-scrolling" | "always" | "auto" | "auto-and-reserve-space"
499
504
  /**
@@ -511,7 +516,7 @@ declare module "factorio:runtime" {
511
516
  * - `"button-7"`
512
517
  * - `"button-8"`
513
518
  * - `"button-9"`
514
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/MouseButtonFlags.html Online documentation}
519
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/MouseButtonFlags.html Online documentation}
515
520
  */
516
521
  export interface MouseButtonFlags {
517
522
  readonly left?: true
@@ -532,7 +537,7 @@ declare module "factorio:runtime" {
532
537
  * - `"left"`
533
538
  * - `"right"`
534
539
  * - `"none"`
535
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SwitchState.html Online documentation}
540
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SwitchState.html Online documentation}
536
541
  */
537
542
  export type SwitchState = "left" | "right" | "none"
538
543
  /**
@@ -562,7 +567,7 @@ declare module "factorio:runtime" {
562
567
  * - `"tabbed-pane"`: A collection of `tab`s and their contents. Relevant event: {@link OnGuiSelectedTabChangedEvent on_gui_selected_tab_changed}
563
568
  * - `"tab"`: A tab for use in a `tabbed-pane`.
564
569
  * - `"switch"`: A switch with three possible states. Can have labels attached to either side. Relevant event: {@link OnGuiSwitchStateChangedEvent on_gui_switch_state_changed}
565
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GuiElementType.html Online documentation}
570
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GuiElementType.html Online documentation}
566
571
  */
567
572
  export type GuiElementType =
568
573
  | "button"
@@ -625,7 +630,7 @@ declare module "factorio:runtime" {
625
630
  * - `"entity-with-quality"`
626
631
  * - `"recipe-with-quality"`
627
632
  * - `"equipment-with-quality"`
628
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ElemType.html Online documentation}
633
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ElemType.html Online documentation}
629
634
  */
630
635
  export type ElemType =
631
636
  | "achievement"
@@ -660,13 +665,13 @@ declare module "factorio:runtime" {
660
665
  * A vector is a two-element array or dictionary containing the `x` and `y` components. The game will always provide the array format. Positive x goes east, positive y goes south.
661
666
  * @example
662
667
  * right = {1.0, 0.0}
663
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/Vector.html Online documentation}
668
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Vector.html Online documentation}
664
669
  */
665
670
  export type Vector = MapPositionArray
666
671
  /**
667
672
  * Coordinates of a chunk in a {@link LuaSurface} where each integer `x`/`y` represents a different chunk. This uses the same format as {@link MapPosition}, meaning it can be specified either with or without explicit keys. A {@link MapPosition} can be translated to a ChunkPosition by dividing the `x`/`y` values by 32.
668
673
  * @see ChunkPositionArray
669
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ChunkPosition.html Online documentation}
674
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ChunkPosition.html Online documentation}
670
675
  */
671
676
  export interface ChunkPosition {
672
677
  readonly x: int
@@ -675,7 +680,7 @@ declare module "factorio:runtime" {
675
680
  /**
676
681
  * Array form of {@link ChunkPosition}.
677
682
  * @see ChunkPosition
678
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ChunkPosition.html Online documentation}
683
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ChunkPosition.html Online documentation}
679
684
  */
680
685
  export type ChunkPositionArray = readonly [int, int]
681
686
  export interface ItemStackLocation {
@@ -700,13 +705,13 @@ declare module "factorio:runtime" {
700
705
  * --These are both full stacks of iron plates (for iron-plate, a full stack is 100 plates)
701
706
  * "iron-plate"
702
707
  * {name="iron-plate", count=100}
703
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SimpleItemStack.html Online documentation}
708
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SimpleItemStack.html Online documentation}
704
709
  */
705
710
  export type SimpleItemStack = string | ItemStackDefinition
706
711
  /**
707
712
  * An item filter may be specified in two ways, either as a string which is an item prototype name or as a table.
708
713
  * @see ItemFilterWrite
709
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ItemFilter.html Online documentation}
714
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ItemFilter.html Online documentation}
710
715
  */
711
716
  export type ItemFilter =
712
717
  | {
@@ -726,7 +731,7 @@ declare module "factorio:runtime" {
726
731
  | string
727
732
  /**
728
733
  * Write form of {@link ItemFilter}, where some properties allow additional values as input compared to the read form.
729
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ItemFilter.html Online documentation}
734
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ItemFilter.html Online documentation}
730
735
  */
731
736
  export type ItemFilterWrite =
732
737
  | {
@@ -982,7 +987,7 @@ declare module "factorio:runtime" {
982
987
  * - {@link defines.command.stop}: {@link StopCommand}
983
988
  * - {@link defines.command.flee}: {@link FleeCommand}
984
989
  * - {@link defines.command.build_base}: {@link BuildBaseCommand}
985
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/Command.html Online documentation}
990
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Command.html Online documentation}
986
991
  */
987
992
  export type Command =
988
993
  | AttackCommand
@@ -996,7 +1001,7 @@ declare module "factorio:runtime" {
996
1001
  | BuildBaseCommand
997
1002
  /**
998
1003
  * Write form of {@link Command}, where some properties allow additional values as input compared to the read form.
999
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/Command.html Online documentation}
1004
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Command.html Online documentation}
1000
1005
  */
1001
1006
  export type CommandWrite =
1002
1007
  | AttackCommand
@@ -1073,7 +1078,7 @@ declare module "factorio:runtime" {
1073
1078
  * - `"position"`: {@link PositionGuiArrowSpecification}
1074
1079
  * - `"crafting_queue"`: {@link CraftingQueueGuiArrowSpecification}
1075
1080
  * - `"item_stack"`: {@link ItemStackGuiArrowSpecification}
1076
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GuiArrowSpecification.html Online documentation}
1081
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GuiArrowSpecification.html Online documentation}
1077
1082
  */
1078
1083
  export type GuiArrowSpecification =
1079
1084
  | EntityGuiArrowSpecification
@@ -1093,7 +1098,7 @@ declare module "factorio:runtime" {
1093
1098
  * - `"position"`
1094
1099
  * - `"crafting_queue"`
1095
1100
  * - `"item_stack"`: Will point to a given item stack in an inventory.
1096
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GuiArrowType.html Online documentation}
1101
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GuiArrowType.html Online documentation}
1097
1102
  */
1098
1103
  export type GuiArrowType =
1099
1104
  | "nowhere"
@@ -1109,7 +1114,7 @@ declare module "factorio:runtime" {
1109
1114
  *
1110
1115
  * If this is specified as a three-element array then the array items are x, y and z, in that order.
1111
1116
  * @see Vector3DArray
1112
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/Vector3D.html Online documentation}
1117
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Vector3D.html Online documentation}
1113
1118
  */
1114
1119
  export interface Vector3D {
1115
1120
  readonly x: float
@@ -1119,7 +1124,7 @@ declare module "factorio:runtime" {
1119
1124
  /**
1120
1125
  * Array form of {@link Vector3D}.
1121
1126
  * @see Vector3D
1122
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/Vector3D.html Online documentation}
1127
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Vector3D.html Online documentation}
1123
1128
  */
1124
1129
  export type Vector3DArray = readonly [float, float, float]
1125
1130
  export interface RidingState {
@@ -1156,7 +1161,7 @@ declare module "factorio:runtime" {
1156
1161
  }
1157
1162
  /**
1158
1163
  * @see TrainScheduleWrite
1159
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TrainSchedule.html Online documentation}
1164
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TrainSchedule.html Online documentation}
1160
1165
  */
1161
1166
  export interface TrainSchedule {
1162
1167
  /**
@@ -1167,7 +1172,7 @@ declare module "factorio:runtime" {
1167
1172
  }
1168
1173
  /**
1169
1174
  * Write form of {@link TrainSchedule}, where some properties allow additional values as input compared to the read form.
1170
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TrainSchedule.html Online documentation}
1175
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TrainSchedule.html Online documentation}
1171
1176
  */
1172
1177
  export interface TrainScheduleWrite {
1173
1178
  /**
@@ -1178,7 +1183,7 @@ declare module "factorio:runtime" {
1178
1183
  }
1179
1184
  /**
1180
1185
  * @see PlatformScheduleWrite
1181
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/PlatformSchedule.html Online documentation}
1186
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/PlatformSchedule.html Online documentation}
1182
1187
  */
1183
1188
  export interface PlatformSchedule {
1184
1189
  /**
@@ -1189,7 +1194,7 @@ declare module "factorio:runtime" {
1189
1194
  }
1190
1195
  /**
1191
1196
  * Write form of {@link PlatformSchedule}, where some properties allow additional values as input compared to the read form.
1192
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/PlatformSchedule.html Online documentation}
1197
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/PlatformSchedule.html Online documentation}
1193
1198
  */
1194
1199
  export interface PlatformScheduleWrite {
1195
1200
  /**
@@ -1214,7 +1219,7 @@ declare module "factorio:runtime" {
1214
1219
  }
1215
1220
  /**
1216
1221
  * A recipe prototype with optional quality specification.
1217
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/RecipeIDAndQualityIDPair.html Online documentation}
1222
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/RecipeIDAndQualityIDPair.html Online documentation}
1218
1223
  */
1219
1224
  export interface RecipeIDAndQualityIDPair {
1220
1225
  /**
@@ -1263,7 +1268,7 @@ declare module "factorio:runtime" {
1263
1268
  * - `string`: Name of the force, same as {@link LuaForce#name LuaForce::name}.
1264
1269
  * - {@link uint8}: Index of the force, same as {@link LuaForce#index LuaForce::index}.
1265
1270
  * - {@link LuaForce}: A reference to {@link LuaForce} may be passed directly.
1266
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ForceID.html Online documentation}
1271
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ForceID.html Online documentation}
1267
1272
  */
1268
1273
  export type ForceID = string | uint8 | LuaForce
1269
1274
  /**
@@ -1273,7 +1278,7 @@ declare module "factorio:runtime" {
1273
1278
  * - `string`: The fluid name.
1274
1279
  * - {@link LuaFluidPrototype}: The fluid prototype.
1275
1280
  * - {@link Fluid}: The fluid.
1276
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/FluidID.html Online documentation}
1281
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/FluidID.html Online documentation}
1277
1282
  */
1278
1283
  export type FluidID = string | LuaFluidPrototype | Fluid
1279
1284
  /**
@@ -1284,12 +1289,12 @@ declare module "factorio:runtime" {
1284
1289
  * - {@link LuaEntityPrototype}: The entity prototype. Normal quality will be used.
1285
1290
  * - `string`: The prototype name. Normal quality will be used.
1286
1291
  * - {@link EntityIDAndQualityIDPair}: A table of entity prototype and quality.
1287
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EntityWithQualityID.html Online documentation}
1292
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EntityWithQualityID.html Online documentation}
1288
1293
  */
1289
1294
  export type EntityWithQualityID = LuaEntity | LuaEntityPrototype | string | EntityIDAndQualityIDPair
1290
1295
  /**
1291
1296
  * An entity prototype with optional quality specification.
1292
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EntityIDAndQualityIDPair.html Online documentation}
1297
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EntityIDAndQualityIDPair.html Online documentation}
1293
1298
  */
1294
1299
  export interface EntityIDAndQualityIDPair {
1295
1300
  /**
@@ -1310,18 +1315,18 @@ declare module "factorio:runtime" {
1310
1315
  * - `string`: The prototype name. Normal quality will be used.
1311
1316
  * - {@link ItemIDAndQualityIDPair}: A table of item prototype and quality.
1312
1317
  * @see ItemWithQualityIDWrite
1313
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ItemWithQualityID.html Online documentation}
1318
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ItemWithQualityID.html Online documentation}
1314
1319
  */
1315
1320
  export type ItemWithQualityID = LuaItemStack | LuaItemPrototype | string | ItemIDAndQualityIDPair
1316
1321
  /**
1317
1322
  * Write form of {@link ItemWithQualityID}, where some properties allow additional values as input compared to the read form.
1318
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ItemWithQualityID.html Online documentation}
1323
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ItemWithQualityID.html Online documentation}
1319
1324
  */
1320
1325
  export type ItemWithQualityIDWrite = LuaItemStack | LuaItemPrototype | string | ItemIDAndQualityIDPairWrite
1321
1326
  /**
1322
1327
  * An item prototype with optional quality specification.
1323
1328
  * @see ItemIDAndQualityIDPairWrite
1324
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ItemIDAndQualityIDPair.html Online documentation}
1329
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ItemIDAndQualityIDPair.html Online documentation}
1325
1330
  */
1326
1331
  export interface ItemIDAndQualityIDPair {
1327
1332
  /**
@@ -1335,7 +1340,7 @@ declare module "factorio:runtime" {
1335
1340
  }
1336
1341
  /**
1337
1342
  * Write form of {@link ItemIDAndQualityIDPair}, where some properties allow additional values as input compared to the read form.
1338
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ItemIDAndQualityIDPair.html Online documentation}
1343
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ItemIDAndQualityIDPair.html Online documentation}
1339
1344
  */
1340
1345
  export interface ItemIDAndQualityIDPairWrite {
1341
1346
  /**
@@ -1355,7 +1360,7 @@ declare module "factorio:runtime" {
1355
1360
  * - {@link LuaItemStack}: Non empty item stack.
1356
1361
  * - {@link LuaItem}: The item.
1357
1362
  * - `string`: The prototype name.
1358
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ItemID.html Online documentation}
1363
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ItemID.html Online documentation}
1359
1364
  */
1360
1365
  export type ItemID = LuaItemPrototype | LuaItemStack | LuaItem | string
1361
1366
  /**
@@ -1365,7 +1370,7 @@ declare module "factorio:runtime" {
1365
1370
  * - {@link LuaEntityPrototype}: The entity prototype.
1366
1371
  * - {@link LuaEntity}: The entity.
1367
1372
  * - `string`: The prototype name.
1368
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EntityID.html Online documentation}
1373
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EntityID.html Online documentation}
1369
1374
  */
1370
1375
  export type EntityID = LuaEntityPrototype | LuaEntity | string
1371
1376
  /**
@@ -1375,7 +1380,7 @@ declare module "factorio:runtime" {
1375
1380
  * - {@link LuaTechnologyPrototype}: The technology prototype.
1376
1381
  * - {@link LuaTechnology}: Instance of the technology.
1377
1382
  * - `string`: The prototype name.
1378
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TechnologyID.html Online documentation}
1383
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TechnologyID.html Online documentation}
1379
1384
  */
1380
1385
  export type TechnologyID = LuaTechnologyPrototype | LuaTechnology | string
1381
1386
  /**
@@ -1384,7 +1389,7 @@ declare module "factorio:runtime" {
1384
1389
  * ## Union members
1385
1390
  * - {@link LuaParticlePrototype}: The particle prototype.
1386
1391
  * - `string`: The prototype name.
1387
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ParticleID.html Online documentation}
1392
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ParticleID.html Online documentation}
1388
1393
  */
1389
1394
  export type ParticleID = LuaParticlePrototype | string
1390
1395
  /**
@@ -1393,7 +1398,7 @@ declare module "factorio:runtime" {
1393
1398
  * ## Union members
1394
1399
  * - {@link LuaDamagePrototype}: The damage type prototype.
1395
1400
  * - `string`: The prototype name.
1396
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/DamageTypeID.html Online documentation}
1401
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/DamageTypeID.html Online documentation}
1397
1402
  */
1398
1403
  export type DamageTypeID = LuaDamagePrototype | string
1399
1404
  /**
@@ -1402,7 +1407,7 @@ declare module "factorio:runtime" {
1402
1407
  * ## Union members
1403
1408
  * - {@link LuaTrivialSmokePrototype}: The trivial smoke prototype.
1404
1409
  * - `string`: The prototype name.
1405
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TrivialSmokeID.html Online documentation}
1410
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TrivialSmokeID.html Online documentation}
1406
1411
  */
1407
1412
  export type TrivialSmokeID = LuaTrivialSmokePrototype | string
1408
1413
  /**
@@ -1414,7 +1419,7 @@ declare module "factorio:runtime" {
1414
1419
  * - `"left"`
1415
1420
  * - `"right"`
1416
1421
  * - `"center"`
1417
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TextAlign.html Online documentation}
1422
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TextAlign.html Online documentation}
1418
1423
  */
1419
1424
  export type TextAlign = "left" | "right" | "center"
1420
1425
  /**
@@ -1427,7 +1432,7 @@ declare module "factorio:runtime" {
1427
1432
  * - `"middle"`
1428
1433
  * - `"baseline"`
1429
1434
  * - `"bottom"`
1430
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/VerticalTextAlign.html Online documentation}
1435
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/VerticalTextAlign.html Online documentation}
1431
1436
  */
1432
1437
  export type VerticalTextAlign = "top" | "middle" | "baseline" | "bottom"
1433
1438
  /**
@@ -1436,7 +1441,7 @@ declare module "factorio:runtime" {
1436
1441
  * ## Union members
1437
1442
  * - {@link LuaQualityPrototype}: The quality prototype.
1438
1443
  * - `string`: The prototype name.
1439
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/QualityID.html Online documentation}
1444
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/QualityID.html Online documentation}
1440
1445
  */
1441
1446
  export type QualityID = LuaQualityPrototype | string
1442
1447
  /**
@@ -1445,7 +1450,7 @@ declare module "factorio:runtime" {
1445
1450
  * ## Union members
1446
1451
  * - {@link LuaRecipeCategoryPrototype}: By recipe category prototype.
1447
1452
  * - `string`: By name of the recipe category prototype.
1448
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/RecipeCategoryID.html Online documentation}
1453
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/RecipeCategoryID.html Online documentation}
1449
1454
  */
1450
1455
  export type RecipeCategoryID = LuaRecipeCategoryPrototype | string
1451
1456
  /**
@@ -1455,7 +1460,7 @@ declare module "factorio:runtime" {
1455
1460
  * - {@link LuaRecipePrototype}: By recipe prototype.
1456
1461
  * - {@link LuaRecipe}: By instance of recipe.
1457
1462
  * - `string`: By name of the recipe prototype.
1458
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/RecipeID.html Online documentation}
1463
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/RecipeID.html Online documentation}
1459
1464
  */
1460
1465
  export type RecipeID = LuaRecipePrototype | LuaRecipe | string
1461
1466
  /**
@@ -1465,7 +1470,7 @@ declare module "factorio:runtime" {
1465
1470
  * - {@link LuaTilePrototype}: By tile prototype.
1466
1471
  * - {@link LuaTile}: By instance of tile.
1467
1472
  * - `string`: By name of the tile prototype.
1468
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TileID.html Online documentation}
1473
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TileID.html Online documentation}
1469
1474
  */
1470
1475
  export type TileID = LuaTilePrototype | LuaTile | string
1471
1476
  export interface Fluid {
@@ -1489,7 +1494,7 @@ declare module "factorio:runtime" {
1489
1494
  * - {@link LuaEquipmentPrototype}: The equipment prototype.
1490
1495
  * - {@link LuaEquipment}: The equipment.
1491
1496
  * - `string`: The prototype name.
1492
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EquipmentID.html Online documentation}
1497
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EquipmentID.html Online documentation}
1493
1498
  */
1494
1499
  export type EquipmentID = LuaEquipmentPrototype | LuaEquipment | string
1495
1500
  /**
@@ -1500,12 +1505,12 @@ declare module "factorio:runtime" {
1500
1505
  * - {@link LuaEquipment}: The equipment. Both prototype and quality of the provided equipment will be used.
1501
1506
  * - `string`: The prototype name. Normal quality will be used.
1502
1507
  * - {@link EquipmentIDAndQualityIDPair}: A table of equipment prototype and quality.
1503
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EquipmentWithQualityID.html Online documentation}
1508
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EquipmentWithQualityID.html Online documentation}
1504
1509
  */
1505
1510
  export type EquipmentWithQualityID = LuaEquipmentPrototype | LuaEquipment | string | EquipmentIDAndQualityIDPair
1506
1511
  /**
1507
1512
  * An equipment prototype with optional quality specification.
1508
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EquipmentIDAndQualityIDPair.html Online documentation}
1513
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EquipmentIDAndQualityIDPair.html Online documentation}
1509
1514
  */
1510
1515
  export interface EquipmentIDAndQualityIDPair {
1511
1516
  /**
@@ -1552,7 +1557,7 @@ declare module "factorio:runtime" {
1552
1557
  * @example
1553
1558
  * -- Shorthand
1554
1559
  * {{-2, -3}, {5, 8}}
1555
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BoundingBox.html Online documentation}
1560
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BoundingBox.html Online documentation}
1556
1561
  */
1557
1562
  export interface BoundingBox {
1558
1563
  readonly left_top: MapPosition
@@ -1562,7 +1567,7 @@ declare module "factorio:runtime" {
1562
1567
  /**
1563
1568
  * Array form of {@link BoundingBox}.
1564
1569
  * @see BoundingBox
1565
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BoundingBox.html Online documentation}
1570
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BoundingBox.html Online documentation}
1566
1571
  */
1567
1572
  export type BoundingBoxArray = readonly [MapPosition | MapPositionArray, MapPosition | MapPositionArray]
1568
1573
  export interface BoundingBoxWrite {
@@ -1595,7 +1600,7 @@ declare module "factorio:runtime" {
1595
1600
  * - SurfaceIndex: It will be the index of the surface. `nauvis` has index `1`, the first surface-created surface will have index `2` and so on.
1596
1601
  * - `string`: It will be the surface name. E.g. `"nauvis"`.
1597
1602
  * - {@link LuaSurface}: A reference to {@link LuaSurface} may be passed directly.
1598
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SurfaceIdentification.html Online documentation}
1603
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SurfaceIdentification.html Online documentation}
1599
1604
  */
1600
1605
  export type SurfaceIdentification = SurfaceIndex | string | LuaSurface
1601
1606
  /**
@@ -1605,13 +1610,13 @@ declare module "factorio:runtime" {
1605
1610
  * - PlayerIndex: The player index.
1606
1611
  * - `string`: The player name.
1607
1612
  * - {@link LuaPlayer}: A reference to {@link LuaPlayer} may be passed directly.
1608
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/PlayerIdentification.html Online documentation}
1613
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/PlayerIdentification.html Online documentation}
1609
1614
  */
1610
1615
  export type PlayerIdentification = PlayerIndex | string | LuaPlayer
1611
1616
  /**
1612
1617
  * ## Union members
1613
1618
  * - {@link LuaSpacePlatform}
1614
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SpacePlatformIdentification.html Online documentation}
1619
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SpacePlatformIdentification.html Online documentation}
1615
1620
  */
1616
1621
  export type SpacePlatformIdentification = LuaSpacePlatform
1617
1622
  /**
@@ -1621,12 +1626,12 @@ declare module "factorio:runtime" {
1621
1626
  * - {@link LuaForce}[]: Array of many forces.
1622
1627
  * - {@link LuaForce}: A single force.
1623
1628
  * @see ForceSetWrite
1624
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ForceSet.html Online documentation}
1629
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ForceSet.html Online documentation}
1625
1630
  */
1626
1631
  export type ForceSet = LuaForce[] | LuaForce
1627
1632
  /**
1628
1633
  * Write form of {@link ForceSet}, where some properties allow additional values as input compared to the read form.
1629
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ForceSet.html Online documentation}
1634
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ForceSet.html Online documentation}
1630
1635
  */
1631
1636
  export type ForceSetWrite = readonly ForceID[] | ForceID
1632
1637
  /**
@@ -1635,7 +1640,7 @@ declare module "factorio:runtime" {
1635
1640
  * ## Union members
1636
1641
  * - {@link LuaDecorativePrototype}: The decorative prototype.
1637
1642
  * - `string`: The prototype name.
1638
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/DecorativeID.html Online documentation}
1643
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/DecorativeID.html Online documentation}
1639
1644
  */
1640
1645
  export type DecorativeID = LuaDecorativePrototype | string
1641
1646
  /**
@@ -1644,7 +1649,7 @@ declare module "factorio:runtime" {
1644
1649
  * ## Union members
1645
1650
  * - {@link LuaAsteroidChunkPrototype}: The asteroid chunk prototype.
1646
1651
  * - `string`: The prototype name.
1647
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/AsteroidChunkID.html Online documentation}
1652
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/AsteroidChunkID.html Online documentation}
1648
1653
  */
1649
1654
  export type AsteroidChunkID = LuaAsteroidChunkPrototype | string
1650
1655
  /**
@@ -1653,13 +1658,13 @@ declare module "factorio:runtime" {
1653
1658
  * ## Union members
1654
1659
  * - {@link LuaSpaceLocationPrototype}: The space location prototype.
1655
1660
  * - `string`: The prototype name.
1656
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SpaceLocationID.html Online documentation}
1661
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SpaceLocationID.html Online documentation}
1657
1662
  */
1658
1663
  export type SpaceLocationID = LuaSpaceLocationPrototype | string
1659
1664
  /**
1660
1665
  * A signal filter may be specified in two ways, either as a string which is a virtual signal name or item prototype name or as a table.
1661
1666
  * @see SignalFilterWrite
1662
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SignalFilter.html Online documentation}
1667
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SignalFilter.html Online documentation}
1663
1668
  */
1664
1669
  export type SignalFilter =
1665
1670
  | {
@@ -1683,7 +1688,7 @@ declare module "factorio:runtime" {
1683
1688
  | string
1684
1689
  /**
1685
1690
  * Write form of {@link SignalFilter}, where some properties allow additional values as input compared to the read form.
1686
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SignalFilter.html Online documentation}
1691
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SignalFilter.html Online documentation}
1687
1692
  */
1688
1693
  export type SignalFilterWrite =
1689
1694
  | {
@@ -1707,7 +1712,7 @@ declare module "factorio:runtime" {
1707
1712
  | string
1708
1713
  /**
1709
1714
  * @see LogisticFilterWrite
1710
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LogisticFilter.html Online documentation}
1715
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LogisticFilter.html Online documentation}
1711
1716
  */
1712
1717
  export interface LogisticFilter {
1713
1718
  /**
@@ -1733,7 +1738,7 @@ declare module "factorio:runtime" {
1733
1738
  }
1734
1739
  /**
1735
1740
  * Write form of {@link LogisticFilter}, where some properties allow additional values as input compared to the read form.
1736
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LogisticFilter.html Online documentation}
1741
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LogisticFilter.html Online documentation}
1737
1742
  */
1738
1743
  export interface LogisticFilterWrite {
1739
1744
  /**
@@ -1796,23 +1801,23 @@ declare module "factorio:runtime" {
1796
1801
  * ## Union members
1797
1802
  * - {@link LuaSurfacePropertyPrototype}: The surface property prototype.
1798
1803
  * - `string`: The prototype name.
1799
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SurfacePropertyID.html Online documentation}
1804
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SurfacePropertyID.html Online documentation}
1800
1805
  */
1801
1806
  export type SurfacePropertyID = LuaSurfacePropertyPrototype | string
1802
1807
  /**
1803
1808
  * When writing it is possible to give LuaEntity or MapPosition directly. However, reading always returns the full ScriptRenderTargetTable.
1804
1809
  * @see ScriptRenderTargetWrite
1805
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ScriptRenderTarget.html Online documentation}
1810
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ScriptRenderTarget.html Online documentation}
1806
1811
  */
1807
1812
  export type ScriptRenderTarget = LuaEntity | MapPosition | ScriptRenderTargetTable
1808
1813
  /**
1809
1814
  * Write form of {@link ScriptRenderTarget}, where some properties allow additional values as input compared to the read form.
1810
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ScriptRenderTarget.html Online documentation}
1815
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ScriptRenderTarget.html Online documentation}
1811
1816
  */
1812
1817
  export type ScriptRenderTargetWrite = LuaEntity | (MapPosition | MapPositionArray) | ScriptRenderTargetTableWrite
1813
1818
  /**
1814
1819
  * @see ScriptRenderTargetTableWrite
1815
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ScriptRenderTargetTable.html Online documentation}
1820
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ScriptRenderTargetTable.html Online documentation}
1816
1821
  */
1817
1822
  export interface ScriptRenderTargetTable {
1818
1823
  readonly entity?: LuaEntity
@@ -1827,7 +1832,7 @@ declare module "factorio:runtime" {
1827
1832
  }
1828
1833
  /**
1829
1834
  * Write form of {@link ScriptRenderTargetTable}, where some properties allow additional values as input compared to the read form.
1830
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ScriptRenderTargetTable.html Online documentation}
1835
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ScriptRenderTargetTable.html Online documentation}
1831
1836
  */
1832
1837
  export interface ScriptRenderTargetTableWrite {
1833
1838
  readonly entity?: LuaEntity
@@ -1846,13 +1851,13 @@ declare module "factorio:runtime" {
1846
1851
  * ## Union members
1847
1852
  * - {@link SimpleItemStack}
1848
1853
  * - {@link LuaItemStack}
1849
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ItemStackIdentification.html Online documentation}
1854
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ItemStackIdentification.html Online documentation}
1850
1855
  */
1851
1856
  export type ItemStackIdentification = SimpleItemStack | LuaItemStack
1852
1857
  /**
1853
1858
  * An item filter may be specified in two ways, either as a string which is a quality prototype name or as a table.
1854
1859
  * @see QualityConditionWrite
1855
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/QualityCondition.html Online documentation}
1860
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/QualityCondition.html Online documentation}
1856
1861
  */
1857
1862
  export type QualityCondition =
1858
1863
  | {
@@ -1868,7 +1873,7 @@ declare module "factorio:runtime" {
1868
1873
  | string
1869
1874
  /**
1870
1875
  * Write form of {@link QualityCondition}, where some properties allow additional values as input compared to the read form.
1871
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/QualityCondition.html Online documentation}
1876
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/QualityCondition.html Online documentation}
1872
1877
  */
1873
1878
  export type QualityConditionWrite =
1874
1879
  | {
@@ -1885,7 +1890,7 @@ declare module "factorio:runtime" {
1885
1890
  /**
1886
1891
  * The destination of a cargo pod.
1887
1892
  * @see CargoDestinationWrite
1888
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/CargoDestination.html Online documentation}
1893
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/CargoDestination.html Online documentation}
1889
1894
  */
1890
1895
  export interface CargoDestination {
1891
1896
  /**
@@ -1923,7 +1928,7 @@ declare module "factorio:runtime" {
1923
1928
  }
1924
1929
  /**
1925
1930
  * Write form of {@link CargoDestination}, where some properties allow additional values as input compared to the read form.
1926
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/CargoDestination.html Online documentation}
1931
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/CargoDestination.html Online documentation}
1927
1932
  */
1928
1933
  export interface CargoDestinationWrite {
1929
1934
  /**
@@ -1977,7 +1982,7 @@ declare module "factorio:runtime" {
1977
1982
  * furthest = { zoom = 1 / 16 },
1978
1983
  * furthest_game_view = { distance = 200, max_distance = 400 }
1979
1984
  * }
1980
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ZoomLimits.html Online documentation}
1985
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ZoomLimits.html Online documentation}
1981
1986
  */
1982
1987
  export interface ZoomLimits {
1983
1988
  /**
@@ -2007,7 +2012,7 @@ declare module "factorio:runtime" {
2007
2012
  *
2008
2013
  * -- Method 2: Specify a dynamic zoom level based on the window dimensions.
2009
2014
  * { distance = 200, max_distance = 500 }
2010
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ZoomSpecification.html Online documentation}
2015
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ZoomSpecification.html Online documentation}
2011
2016
  */
2012
2017
  export interface ZoomSpecification {
2013
2018
  /**
@@ -2023,6 +2028,13 @@ declare module "factorio:runtime" {
2023
2028
  */
2024
2029
  readonly max_distance?: double
2025
2030
  }
2031
+ /**
2032
+ * ## Union members
2033
+ * - `"game"`
2034
+ * - `"chart"`
2035
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ScriptRenderMode.html Online documentation}
2036
+ */
2037
+ export type ScriptRenderMode = "game" | "chart"
2026
2038
  /**
2027
2039
  * Event name may be specified in one of four ways.
2028
2040
  *
@@ -2031,13 +2043,13 @@ declare module "factorio:runtime" {
2031
2043
  * - {@link LuaCustomInputPrototype}: Custom input prototype.
2032
2044
  * - {@link defines.events}: Event identifier.
2033
2045
  * - `string`: Name of the event.
2034
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaEventType.html Online documentation}
2046
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaEventType.html Online documentation}
2035
2047
  */
2036
2048
  export type LuaEventType = LuaCustomEventPrototype | LuaCustomInputPrototype | defines.events | string | EventId<any>
2037
2049
  /**
2038
2050
  * Coordinates of a tile on a {@link LuaSurface} where each integer `x`/`y` represents a different tile. This uses the same format as {@link MapPosition}, except it rounds any non-integer `x`/`y` down to whole numbers. It can be specified either with or without explicit keys.
2039
2051
  * @see TilePositionArray
2040
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TilePosition.html Online documentation}
2052
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TilePosition.html Online documentation}
2041
2053
  */
2042
2054
  export interface TilePosition {
2043
2055
  readonly x: int
@@ -2046,16 +2058,20 @@ declare module "factorio:runtime" {
2046
2058
  /**
2047
2059
  * Array form of {@link TilePosition}.
2048
2060
  * @see TilePosition
2049
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TilePosition.html Online documentation}
2061
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TilePosition.html Online documentation}
2050
2062
  */
2051
2063
  export type TilePositionArray = readonly [int, int]
2052
2064
  /**
2053
2065
  * The smooth orientation. It is a `float` in the range `[0, 1)` that covers a full circle, starting at the top and going clockwise.
2054
2066
  *
2055
2067
  * This means a value of `0` indicates "north", a value of `0.5` indicates "south". For example then, a value of `0.625` would indicate "south-west", and a value of `0.875` would indicate "north-west".
2056
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/RealOrientation.html Online documentation}
2068
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/RealOrientation.html Online documentation}
2057
2069
  */
2058
2070
  export type RealOrientation = float
2071
+ export interface MapLocation {
2072
+ readonly position: MapLocation
2073
+ readonly direction: defines.direction
2074
+ }
2059
2075
  /**
2060
2076
  * Localised strings are a way to support translation of in-game text. It is an array where the first element is the key and the remaining elements are parameters that will be substituted for placeholders in the template designated by the key.
2061
2077
  *
@@ -2085,7 +2101,7 @@ declare module "factorio:runtime" {
2085
2101
  * -- If 'entity-description.furnace' exists, it is concatenated with "\n" and returned. Otherwise, if 'item-description.furnace'
2086
2102
  * -- exists, it is returned as-is. Otherwise, "optional fallback" is returned. If this value wasn't specified, the
2087
2103
  * -- translation result would be "Unknown key: 'item-description.furnace'".
2088
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LocalisedString.html Online documentation}
2104
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LocalisedString.html Online documentation}
2089
2105
  */
2090
2106
  export type LocalisedString = string | number | boolean | LuaObject | nil | [string, ...LocalisedString[]]
2091
2107
  /**
@@ -2100,7 +2116,7 @@ declare module "factorio:runtime" {
2100
2116
  * @example
2101
2117
  * -- Shorthand
2102
2118
  * {1.625, 2.375}
2103
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/MapPosition.html Online documentation}
2119
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/MapPosition.html Online documentation}
2104
2120
  */
2105
2121
  export interface MapPosition {
2106
2122
  readonly x: double
@@ -2109,7 +2125,7 @@ declare module "factorio:runtime" {
2109
2125
  /**
2110
2126
  * Array form of {@link MapPosition}.
2111
2127
  * @see MapPosition
2112
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/MapPosition.html Online documentation}
2128
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/MapPosition.html Online documentation}
2113
2129
  */
2114
2130
  export type MapPositionArray = readonly [double, double]
2115
2131
  /**
@@ -2122,7 +2138,7 @@ declare module "factorio:runtime" {
2122
2138
  * red2 = {r = 0.5, a = 0.5} -- Same color as red1
2123
2139
  * black = {} -- All channels omitted: black
2124
2140
  * red1_short = {0.5, 0, 0, 0.5} -- Same color as red1 in short-hand notation
2125
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/Color.html Online documentation}
2141
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Color.html Online documentation}
2126
2142
  */
2127
2143
  export interface Color {
2128
2144
  readonly r?: float
@@ -2133,7 +2149,7 @@ declare module "factorio:runtime" {
2133
2149
  /**
2134
2150
  * Array form of {@link Color}.
2135
2151
  * @see Color
2136
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/Color.html Online documentation}
2152
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Color.html Online documentation}
2137
2153
  */
2138
2154
  export type ColorArray = readonly [r: double, g: double, b: double, a?: double]
2139
2155
  /**
@@ -2141,13 +2157,13 @@ declare module "factorio:runtime" {
2141
2157
  * - `"center-to-center"`
2142
2158
  * - `"bounding-box-to-bounding-box"`
2143
2159
  * - `"center-to-bounding-box"`
2144
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/RangeMode.html Online documentation}
2160
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/RangeMode.html Online documentation}
2145
2161
  */
2146
2162
  export type RangeMode = "center-to-center" | "bounding-box-to-bounding-box" | "center-to-bounding-box"
2147
2163
  /**
2148
2164
  * The representation of an entity inside of a blueprint. It has at least these fields, but can contain additional ones depending on the kind of entity.
2149
2165
  * @see BlueprintEntityWrite
2150
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintEntity.html Online documentation}
2166
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintEntity.html Online documentation}
2151
2167
  */
2152
2168
  export interface BlueprintEntity {
2153
2169
  /**
@@ -2361,7 +2377,7 @@ declare module "factorio:runtime" {
2361
2377
  }
2362
2378
  /**
2363
2379
  * Write form of {@link BlueprintEntity}, where some properties allow additional values as input compared to the read form.
2364
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintEntity.html Online documentation}
2380
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintEntity.html Online documentation}
2365
2381
  */
2366
2382
  export interface BlueprintEntityWrite {
2367
2383
  /**
@@ -2427,7 +2443,7 @@ declare module "factorio:runtime" {
2427
2443
  /**
2428
2444
  * Used by Infinity containers and infinity pipes.
2429
2445
  */
2430
- readonly infinity_settings?: InfinityContainerFilter | InfinityPipeFilter
2446
+ readonly infinity_settings?: InfinityContainerFilterWrite | InfinityPipeFilter
2431
2447
  /**
2432
2448
  * Used by heat interfaces.
2433
2449
  */
@@ -2582,7 +2598,7 @@ declare module "factorio:runtime" {
2582
2598
  }
2583
2599
  /**
2584
2600
  * @see BlueprintEquipmentWrite
2585
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintEquipment.html Online documentation}
2601
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintEquipment.html Online documentation}
2586
2602
  */
2587
2603
  export interface BlueprintEquipment {
2588
2604
  readonly equipment: ItemIDAndQualityIDPair
@@ -2590,7 +2606,7 @@ declare module "factorio:runtime" {
2590
2606
  }
2591
2607
  /**
2592
2608
  * Write form of {@link BlueprintEquipment}, where some properties allow additional values as input compared to the read form.
2593
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintEquipment.html Online documentation}
2609
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintEquipment.html Online documentation}
2594
2610
  */
2595
2611
  export interface BlueprintEquipmentWrite {
2596
2612
  readonly equipment: ItemIDAndQualityIDPairWrite
@@ -2598,7 +2614,7 @@ declare module "factorio:runtime" {
2598
2614
  }
2599
2615
  /**
2600
2616
  * @see BlueprintInventoryWrite
2601
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintInventory.html Online documentation}
2617
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintInventory.html Online documentation}
2602
2618
  */
2603
2619
  export interface BlueprintInventory {
2604
2620
  readonly filters?: BlueprintLogisticFilter[]
@@ -2609,7 +2625,7 @@ declare module "factorio:runtime" {
2609
2625
  }
2610
2626
  /**
2611
2627
  * Write form of {@link BlueprintInventory}, where some properties allow additional values as input compared to the read form.
2612
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintInventory.html Online documentation}
2628
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintInventory.html Online documentation}
2613
2629
  */
2614
2630
  export interface BlueprintInventoryWrite {
2615
2631
  readonly filters?: readonly BlueprintLogisticFilterWrite[]
@@ -2618,6 +2634,10 @@ declare module "factorio:runtime" {
2618
2634
  */
2619
2635
  readonly bar?: uint16
2620
2636
  }
2637
+ /**
2638
+ * @see InfinityContainerFilterWrite
2639
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/InfinityContainerFilter.html Online documentation}
2640
+ */
2621
2641
  export interface InfinityContainerFilter {
2622
2642
  /**
2623
2643
  * Whether the "remove unfiltered items" checkbox is checked.
@@ -2628,9 +2648,23 @@ declare module "factorio:runtime" {
2628
2648
  */
2629
2649
  readonly filters?: InfinityInventoryFilter[]
2630
2650
  }
2651
+ /**
2652
+ * Write form of {@link InfinityContainerFilter}, where some properties allow additional values as input compared to the read form.
2653
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/InfinityContainerFilter.html Online documentation}
2654
+ */
2655
+ export interface InfinityContainerFilterWrite {
2656
+ /**
2657
+ * Whether the "remove unfiltered items" checkbox is checked.
2658
+ */
2659
+ readonly remove_unfiltered_items: boolean
2660
+ /**
2661
+ * Filters of the infinity container.
2662
+ */
2663
+ readonly filters?: readonly InfinityInventoryFilterWrite[]
2664
+ }
2631
2665
  /**
2632
2666
  * @see BlueprintControlBehaviorWrite
2633
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintControlBehavior.html Online documentation}
2667
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintControlBehavior.html Online documentation}
2634
2668
  */
2635
2669
  export interface BlueprintControlBehavior {
2636
2670
  /**
@@ -2883,7 +2917,7 @@ declare module "factorio:runtime" {
2883
2917
  }
2884
2918
  /**
2885
2919
  * Write form of {@link BlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
2886
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintControlBehavior.html Online documentation}
2920
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintControlBehavior.html Online documentation}
2887
2921
  */
2888
2922
  export interface BlueprintControlBehaviorWrite {
2889
2923
  /**
@@ -3144,7 +3178,7 @@ declare module "factorio:runtime" {
3144
3178
  * - `target_entity_number`
3145
3179
  *
3146
3180
  * - `target_wire_connector_id`
3147
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintWire.html Online documentation}
3181
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintWire.html Online documentation}
3148
3182
  */
3149
3183
  export type BlueprintWire = readonly [uint, defines.wire_connector_id, uint, defines.wire_connector_id]
3150
3184
  /**
@@ -3177,7 +3211,7 @@ declare module "factorio:runtime" {
3177
3211
  * "2500 * (L - 3)"
3178
3212
  * @example
3179
3213
  * "(4e5 * (abs(speed) + 10.5)) / weight"
3180
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/MathExpression.html Online documentation}
3214
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/MathExpression.html Online documentation}
3181
3215
  */
3182
3216
  export type MathExpression = string
3183
3217
  /**
@@ -3360,7 +3394,7 @@ declare module "factorio:runtime" {
3360
3394
  * - `"wire-removed"`: {@link WireRemovedUndoRedoAction}
3361
3395
  * - `"rotated-entity"`: {@link RotatedEntityUndoRedoAction}
3362
3396
  * - `"copy-entity-settings"`: {@link CopyEntitySettingsUndoRedoAction}
3363
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/UndoRedoAction.html Online documentation}
3397
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/UndoRedoAction.html Online documentation}
3364
3398
  */
3365
3399
  export type UndoRedoAction =
3366
3400
  | BuiltEntityUndoRedoAction
@@ -3568,7 +3602,7 @@ declare module "factorio:runtime" {
3568
3602
  * - `"play-previous-track"`
3569
3603
  * - `"pause-resume-music"`
3570
3604
  * - `""`: Indicates no linked game control.
3571
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LinkedGameControl.html Online documentation}
3605
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LinkedGameControl.html Online documentation}
3572
3606
  */
3573
3607
  export type LinkedGameControl =
3574
3608
  | "move-up"
@@ -3767,7 +3801,7 @@ declare module "factorio:runtime" {
3767
3801
  * - `"not-friend"`: Forces which are not friends pass.
3768
3802
  * - `"same"`: The same force pass.
3769
3803
  * - `"not-same"`: The non-same forces pass.
3770
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ForceCondition.html Online documentation}
3804
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ForceCondition.html Online documentation}
3771
3805
  */
3772
3806
  export type ForceCondition = "all" | "enemy" | "ally" | "friend" | "not-friend" | "same" | "not-same"
3773
3807
  export interface PipeConnectionDefinition {
@@ -3797,7 +3831,7 @@ declare module "factorio:runtime" {
3797
3831
  * A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
3798
3832
  *
3799
3833
  * By default, none of these flags are set.
3800
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ItemPrototypeFlags.html Online documentation}
3834
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ItemPrototypeFlags.html Online documentation}
3801
3835
  */
3802
3836
  export type ItemPrototypeFlags = {
3803
3837
  readonly [T in ItemPrototypeFlag]?: true
@@ -3818,7 +3852,7 @@ declare module "factorio:runtime" {
3818
3852
  * - `"spawnable"`: Allows the item to be spawned by a quickbar shortcut or custom input.
3819
3853
  * - `"spoil-result"`
3820
3854
  * - `"ignore-spoil-time-modifier"`: Controls whether the spoil time ignores the spoil time modifier in the {@link DifficultySettings}.
3821
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ItemPrototypeFlag.html Online documentation}
3855
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ItemPrototypeFlag.html Online documentation}
3822
3856
  */
3823
3857
  export type ItemPrototypeFlag =
3824
3858
  | "draw-logistic-overlay"
@@ -3835,7 +3869,7 @@ declare module "factorio:runtime" {
3835
3869
  | "ignore-spoil-time-modifier"
3836
3870
  /**
3837
3871
  * @see UpgradeMapperSourceWrite
3838
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/UpgradeMapperSource.html Online documentation}
3872
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/UpgradeMapperSource.html Online documentation}
3839
3873
  */
3840
3874
  export interface UpgradeMapperSource {
3841
3875
  readonly type: "item" | "entity"
@@ -3858,7 +3892,7 @@ declare module "factorio:runtime" {
3858
3892
  }
3859
3893
  /**
3860
3894
  * Write form of {@link UpgradeMapperSource}, where some properties allow additional values as input compared to the read form.
3861
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/UpgradeMapperSource.html Online documentation}
3895
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/UpgradeMapperSource.html Online documentation}
3862
3896
  */
3863
3897
  export interface UpgradeMapperSourceWrite {
3864
3898
  readonly type: "item" | "entity"
@@ -3948,7 +3982,7 @@ declare module "factorio:runtime" {
3948
3982
  * - `"controllable-remove"`
3949
3983
  * - `"entity-ghost"`: Selects entities that are `entity-ghost`s.
3950
3984
  * - `"tile-ghost"`: Selects entities that are `tile-ghost`s.
3951
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SelectionModeFlags.html Online documentation}
3985
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SelectionModeFlags.html Online documentation}
3952
3986
  */
3953
3987
  export interface SelectionModeFlags {
3954
3988
  /**
@@ -4105,7 +4139,7 @@ declare module "factorio:runtime" {
4105
4139
  * - `"use-on-self"`: {@link UseOnSelfCapsuleAction}
4106
4140
  * - `"artillery-remote"`: {@link ArtilleryRemoteCapsuleAction}
4107
4141
  * - `"destroy-cliffs"`: {@link DestroyCliffsCapsuleAction}
4108
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/CapsuleAction.html Online documentation}
4142
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/CapsuleAction.html Online documentation}
4109
4143
  */
4110
4144
  export type CapsuleAction =
4111
4145
  | ThrowCapsuleAction
@@ -4118,7 +4152,7 @@ declare module "factorio:runtime" {
4118
4152
  * - `"none"`
4119
4153
  * - `"whitelist"`
4120
4154
  * - `"blacklist"`
4121
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/PrototypeFilterMode.html Online documentation}
4155
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/PrototypeFilterMode.html Online documentation}
4122
4156
  */
4123
4157
  export type PrototypeFilterMode = "none" | "whitelist" | "blacklist"
4124
4158
  export interface SpoilToTriggerResult {
@@ -4133,7 +4167,7 @@ declare module "factorio:runtime" {
4133
4167
  }
4134
4168
  /**
4135
4169
  * @see UpgradeMapperDestinationWrite
4136
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/UpgradeMapperDestination.html Online documentation}
4170
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/UpgradeMapperDestination.html Online documentation}
4137
4171
  */
4138
4172
  export interface UpgradeMapperDestination {
4139
4173
  readonly type: "item" | "entity"
@@ -4156,7 +4190,7 @@ declare module "factorio:runtime" {
4156
4190
  }
4157
4191
  /**
4158
4192
  * Write form of {@link UpgradeMapperDestination}, where some properties allow additional values as input compared to the read form.
4159
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/UpgradeMapperDestination.html Online documentation}
4193
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/UpgradeMapperDestination.html Online documentation}
4160
4194
  */
4161
4195
  export interface UpgradeMapperDestinationWrite {
4162
4196
  readonly type: "item" | "entity"
@@ -4184,7 +4218,7 @@ declare module "factorio:runtime" {
4184
4218
  * - `"entity"`: Fires at an entity.
4185
4219
  * - `"position"`: Fires directly at a position.
4186
4220
  * - `"direction"`: Fires in a direction.
4187
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TargetType.html Online documentation}
4221
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TargetType.html Online documentation}
4188
4222
  */
4189
4223
  export type TargetType = "entity" | "position" | "direction"
4190
4224
  export interface AmmoType {
@@ -4201,6 +4235,14 @@ declare module "factorio:runtime" {
4201
4235
  readonly range_modifier?: double
4202
4236
  readonly cooldown_modifier?: double
4203
4237
  readonly consumption_modifier?: float
4238
+ /**
4239
+ * The entity prototype filter names.
4240
+ */
4241
+ readonly target_filter?: string[]
4242
+ }
4243
+ export interface SpacePlatformTileDefinition {
4244
+ readonly tile: LuaTilePrototype
4245
+ readonly position: TilePosition
4204
4246
  }
4205
4247
  export interface MineableProperties {
4206
4248
  /**
@@ -4243,7 +4285,7 @@ declare module "factorio:runtime" {
4243
4285
  * @example
4244
4286
  * -- Shorthand
4245
4287
  * {1, 2}
4246
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EquipmentPosition.html Online documentation}
4288
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EquipmentPosition.html Online documentation}
4247
4289
  */
4248
4290
  export interface EquipmentPosition {
4249
4291
  readonly x: int
@@ -4252,7 +4294,7 @@ declare module "factorio:runtime" {
4252
4294
  /**
4253
4295
  * Array form of {@link EquipmentPosition}.
4254
4296
  * @see EquipmentPosition
4255
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EquipmentPosition.html Online documentation}
4297
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EquipmentPosition.html Online documentation}
4256
4298
  */
4257
4299
  export type EquipmentPositionArray = readonly [int, int]
4258
4300
  export interface ModSetting {
@@ -4263,7 +4305,7 @@ declare module "factorio:runtime" {
4263
4305
  }
4264
4306
  /**
4265
4307
  * An actual signal transmitted by the network.
4266
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/Signal.html Online documentation}
4308
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Signal.html Online documentation}
4267
4309
  */
4268
4310
  export interface Signal {
4269
4311
  /**
@@ -4277,7 +4319,7 @@ declare module "factorio:runtime" {
4277
4319
  }
4278
4320
  /**
4279
4321
  * @see DisplayPanelMessageDefinitionWrite
4280
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/DisplayPanelMessageDefinition.html Online documentation}
4322
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/DisplayPanelMessageDefinition.html Online documentation}
4281
4323
  */
4282
4324
  export interface DisplayPanelMessageDefinition {
4283
4325
  /**
@@ -4295,7 +4337,7 @@ declare module "factorio:runtime" {
4295
4337
  }
4296
4338
  /**
4297
4339
  * Write form of {@link DisplayPanelMessageDefinition}, where some properties allow additional values as input compared to the read form.
4298
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/DisplayPanelMessageDefinition.html Online documentation}
4340
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/DisplayPanelMessageDefinition.html Online documentation}
4299
4341
  */
4300
4342
  export interface DisplayPanelMessageDefinitionWrite {
4301
4343
  /**
@@ -4323,7 +4365,7 @@ declare module "factorio:runtime" {
4323
4365
  }
4324
4366
  /**
4325
4367
  * @see CircuitConditionWrite
4326
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/CircuitCondition.html Online documentation}
4368
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/CircuitCondition.html Online documentation}
4327
4369
  */
4328
4370
  export interface CircuitCondition {
4329
4371
  /**
@@ -4345,7 +4387,7 @@ declare module "factorio:runtime" {
4345
4387
  }
4346
4388
  /**
4347
4389
  * Write form of {@link CircuitCondition}, where some properties allow additional values as input compared to the read form.
4348
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/CircuitCondition.html Online documentation}
4390
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/CircuitCondition.html Online documentation}
4349
4391
  */
4350
4392
  export interface CircuitConditionWrite {
4351
4393
  /**
@@ -4367,7 +4409,7 @@ declare module "factorio:runtime" {
4367
4409
  }
4368
4410
  /**
4369
4411
  * @see SignalIDWrite
4370
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SignalID.html Online documentation}
4412
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SignalID.html Online documentation}
4371
4413
  */
4372
4414
  export interface SignalID {
4373
4415
  /**
@@ -4385,7 +4427,7 @@ declare module "factorio:runtime" {
4385
4427
  }
4386
4428
  /**
4387
4429
  * Write form of {@link SignalID}, where some properties allow additional values as input compared to the read form.
4388
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SignalID.html Online documentation}
4430
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SignalID.html Online documentation}
4389
4431
  */
4390
4432
  export interface SignalIDWrite {
4391
4433
  /**
@@ -4421,7 +4463,7 @@ declare module "factorio:runtime" {
4421
4463
  * - `"space-location"`
4422
4464
  * - `"asteroid-chunk"`
4423
4465
  * - `"quality"`
4424
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SignalIDType.html Online documentation}
4466
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SignalIDType.html Online documentation}
4425
4467
  */
4426
4468
  export type SignalIDType =
4427
4469
  | "item"
@@ -4434,7 +4476,7 @@ declare module "factorio:runtime" {
4434
4476
  | "quality"
4435
4477
  /**
4436
4478
  * @see DeciderCombinatorParametersWrite
4437
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/DeciderCombinatorParameters.html Online documentation}
4479
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/DeciderCombinatorParameters.html Online documentation}
4438
4480
  */
4439
4481
  export interface DeciderCombinatorParameters {
4440
4482
  /**
@@ -4448,7 +4490,7 @@ declare module "factorio:runtime" {
4448
4490
  }
4449
4491
  /**
4450
4492
  * Write form of {@link DeciderCombinatorParameters}, where some properties allow additional values as input compared to the read form.
4451
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/DeciderCombinatorParameters.html Online documentation}
4493
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/DeciderCombinatorParameters.html Online documentation}
4452
4494
  */
4453
4495
  export interface DeciderCombinatorParametersWrite {
4454
4496
  /**
@@ -4462,7 +4504,7 @@ declare module "factorio:runtime" {
4462
4504
  }
4463
4505
  /**
4464
4506
  * @see DeciderCombinatorConditionWrite
4465
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/DeciderCombinatorCondition.html Online documentation}
4507
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/DeciderCombinatorCondition.html Online documentation}
4466
4508
  */
4467
4509
  export interface DeciderCombinatorCondition {
4468
4510
  /**
@@ -4490,13 +4532,13 @@ declare module "factorio:runtime" {
4490
4532
  */
4491
4533
  readonly comparator?: ComparatorStringRead
4492
4534
  /**
4493
- * Either "or" (default) or "and". Tells how this condition is compared with the preceding conditions in the corresponding `conditions` array.
4535
+ * Tells how this condition is compared with the preceding conditions in the corresponding `conditions` array. Defaults to `"or"`.
4494
4536
  */
4495
- readonly compare_type?: int
4537
+ readonly compare_type?: "and" | "or"
4496
4538
  }
4497
4539
  /**
4498
4540
  * Write form of {@link DeciderCombinatorCondition}, where some properties allow additional values as input compared to the read form.
4499
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/DeciderCombinatorCondition.html Online documentation}
4541
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/DeciderCombinatorCondition.html Online documentation}
4500
4542
  */
4501
4543
  export interface DeciderCombinatorConditionWrite {
4502
4544
  /**
@@ -4524,13 +4566,13 @@ declare module "factorio:runtime" {
4524
4566
  */
4525
4567
  readonly comparator?: ComparatorString
4526
4568
  /**
4527
- * Either "or" (default) or "and". Tells how this condition is compared with the preceding conditions in the corresponding `conditions` array.
4569
+ * Tells how this condition is compared with the preceding conditions in the corresponding `conditions` array. Defaults to `"or"`.
4528
4570
  */
4529
- readonly compare_type?: int
4571
+ readonly compare_type?: "and" | "or"
4530
4572
  }
4531
4573
  /**
4532
4574
  * @see DeciderCombinatorOutputWrite
4533
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/DeciderCombinatorOutput.html Online documentation}
4575
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/DeciderCombinatorOutput.html Online documentation}
4534
4576
  */
4535
4577
  export interface DeciderCombinatorOutput {
4536
4578
  /**
@@ -4548,7 +4590,7 @@ declare module "factorio:runtime" {
4548
4590
  }
4549
4591
  /**
4550
4592
  * Write form of {@link DeciderCombinatorOutput}, where some properties allow additional values as input compared to the read form.
4551
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/DeciderCombinatorOutput.html Online documentation}
4593
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/DeciderCombinatorOutput.html Online documentation}
4552
4594
  */
4553
4595
  export interface DeciderCombinatorOutputWrite {
4554
4596
  /**
@@ -4566,7 +4608,7 @@ declare module "factorio:runtime" {
4566
4608
  }
4567
4609
  /**
4568
4610
  * @see ArithmeticCombinatorParametersWrite
4569
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ArithmeticCombinatorParameters.html Online documentation}
4611
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ArithmeticCombinatorParameters.html Online documentation}
4570
4612
  */
4571
4613
  export interface ArithmeticCombinatorParameters {
4572
4614
  /**
@@ -4604,7 +4646,7 @@ declare module "factorio:runtime" {
4604
4646
  }
4605
4647
  /**
4606
4648
  * Write form of {@link ArithmeticCombinatorParameters}, where some properties allow additional values as input compared to the read form.
4607
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ArithmeticCombinatorParameters.html Online documentation}
4649
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ArithmeticCombinatorParameters.html Online documentation}
4608
4650
  */
4609
4651
  export interface ArithmeticCombinatorParametersWrite {
4610
4652
  /**
@@ -4653,7 +4695,7 @@ declare module "factorio:runtime" {
4653
4695
  * - `"AND"`
4654
4696
  * - `"OR"`
4655
4697
  * - `"XOR"`
4656
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ArithmeticCombinatorParameterOperation.html Online documentation}
4698
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ArithmeticCombinatorParameterOperation.html Online documentation}
4657
4699
  */
4658
4700
  export type ArithmeticCombinatorParameterOperation =
4659
4701
  | "*"
@@ -4792,7 +4834,7 @@ declare module "factorio:runtime" {
4792
4834
  * - `"random"`: {@link RandomSelectorCombinatorParameters}
4793
4835
  * - `"quality-filter"`: {@link QualityFilterSelectorCombinatorParameters}
4794
4836
  * - `"quality-transfer"`: {@link QualityTransferSelectorCombinatorParameters}
4795
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SelectorCombinatorParameters.html Online documentation}
4837
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SelectorCombinatorParameters.html Online documentation}
4796
4838
  */
4797
4839
  export type SelectorCombinatorParameters =
4798
4840
  | SelectSelectorCombinatorParameters
@@ -4803,7 +4845,7 @@ declare module "factorio:runtime" {
4803
4845
  | OtherSelectorCombinatorParameters
4804
4846
  /**
4805
4847
  * Write form of {@link SelectorCombinatorParameters}, where some properties allow additional values as input compared to the read form.
4806
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SelectorCombinatorParameters.html Online documentation}
4848
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SelectorCombinatorParameters.html Online documentation}
4807
4849
  */
4808
4850
  export type SelectorCombinatorParametersWrite =
4809
4851
  | SelectSelectorCombinatorParametersWrite
@@ -4821,7 +4863,7 @@ declare module "factorio:runtime" {
4821
4863
  * - `"rocket-capacity"`
4822
4864
  * - `"stack-size"`
4823
4865
  * - `"quality-filter"`
4824
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SelectorCombinatorParameterOperation.html Online documentation}
4866
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SelectorCombinatorParameterOperation.html Online documentation}
4825
4867
  */
4826
4868
  export type SelectorCombinatorParameterOperation =
4827
4869
  | "select"
@@ -4862,7 +4904,7 @@ declare module "factorio:runtime" {
4862
4904
  }
4863
4905
  /**
4864
4906
  * An item thrown overboard on a space platform.
4865
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EjectedItem.html Online documentation}
4907
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EjectedItem.html Online documentation}
4866
4908
  */
4867
4909
  export interface EjectedItem {
4868
4910
  readonly item: LuaItemStack
@@ -4891,7 +4933,7 @@ declare module "factorio:runtime" {
4891
4933
  * -- What a custom recipe would look like that had a probability of 0.5 to return a
4892
4934
  * -- minimum amount of 1 and a maximum amount of 5
4893
4935
  * {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
4894
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/Product.html Online documentation}
4936
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Product.html Online documentation}
4895
4937
  */
4896
4938
  export type Product = ItemProduct | FluidProduct | ResearchProgressProduct
4897
4939
  /**
@@ -4902,7 +4944,7 @@ declare module "factorio:runtime" {
4902
4944
  * -- What a custom recipe would look like that had a probability of 0.5 to return a
4903
4945
  * -- minimum amount of 1 and a maximum amount of 5
4904
4946
  * {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
4905
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ItemProduct.html Online documentation}
4947
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ItemProduct.html Online documentation}
4906
4948
  */
4907
4949
  export interface ItemProduct {
4908
4950
  readonly type: "item"
@@ -4946,7 +4988,7 @@ declare module "factorio:runtime" {
4946
4988
  * {{type="fluid", name="heavy-oil", amount=1},
4947
4989
  * {type="fluid", name="light-oil", amount=4.5},
4948
4990
  * {type="fluid", name="petroleum-gas", amount=5.5}}
4949
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/FluidProduct.html Online documentation}
4991
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/FluidProduct.html Online documentation}
4950
4992
  */
4951
4993
  export interface FluidProduct {
4952
4994
  readonly type: "fluid"
@@ -4994,7 +5036,7 @@ declare module "factorio:runtime" {
4994
5036
  }
4995
5037
  /**
4996
5038
  * @see BlueprintScheduleRecordWrite
4997
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintScheduleRecord.html Online documentation}
5039
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintScheduleRecord.html Online documentation}
4998
5040
  */
4999
5041
  export interface BlueprintScheduleRecord {
5000
5042
  /**
@@ -5008,7 +5050,7 @@ declare module "factorio:runtime" {
5008
5050
  }
5009
5051
  /**
5010
5052
  * Write form of {@link BlueprintScheduleRecord}, where some properties allow additional values as input compared to the read form.
5011
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintScheduleRecord.html Online documentation}
5053
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintScheduleRecord.html Online documentation}
5012
5054
  */
5013
5055
  export interface BlueprintScheduleRecordWrite {
5014
5056
  /**
@@ -5022,7 +5064,7 @@ declare module "factorio:runtime" {
5022
5064
  }
5023
5065
  /**
5024
5066
  * @see ScheduleRecordWrite
5025
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ScheduleRecord.html Online documentation}
5067
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ScheduleRecord.html Online documentation}
5026
5068
  */
5027
5069
  export interface ScheduleRecord {
5028
5070
  /**
@@ -5041,7 +5083,7 @@ declare module "factorio:runtime" {
5041
5083
  }
5042
5084
  /**
5043
5085
  * Write form of {@link ScheduleRecord}, where some properties allow additional values as input compared to the read form.
5044
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ScheduleRecord.html Online documentation}
5086
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ScheduleRecord.html Online documentation}
5045
5087
  */
5046
5088
  export interface ScheduleRecordWrite {
5047
5089
  /**
@@ -5060,7 +5102,7 @@ declare module "factorio:runtime" {
5060
5102
  }
5061
5103
  /**
5062
5104
  * @see BlueprintScheduleInterruptWrite
5063
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintScheduleInterrupt.html Online documentation}
5105
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintScheduleInterrupt.html Online documentation}
5064
5106
  */
5065
5107
  export interface BlueprintScheduleInterrupt {
5066
5108
  /**
@@ -5076,7 +5118,7 @@ declare module "factorio:runtime" {
5076
5118
  }
5077
5119
  /**
5078
5120
  * Write form of {@link BlueprintScheduleInterrupt}, where some properties allow additional values as input compared to the read form.
5079
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintScheduleInterrupt.html Online documentation}
5121
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintScheduleInterrupt.html Online documentation}
5080
5122
  */
5081
5123
  export interface BlueprintScheduleInterruptWrite {
5082
5124
  /**
@@ -5092,7 +5134,7 @@ declare module "factorio:runtime" {
5092
5134
  }
5093
5135
  /**
5094
5136
  * @see ScheduleInterruptWrite
5095
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ScheduleInterrupt.html Online documentation}
5137
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ScheduleInterrupt.html Online documentation}
5096
5138
  */
5097
5139
  export interface ScheduleInterrupt {
5098
5140
  /**
@@ -5108,7 +5150,7 @@ declare module "factorio:runtime" {
5108
5150
  }
5109
5151
  /**
5110
5152
  * Write form of {@link ScheduleInterrupt}, where some properties allow additional values as input compared to the read form.
5111
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ScheduleInterrupt.html Online documentation}
5153
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ScheduleInterrupt.html Online documentation}
5112
5154
  */
5113
5155
  export interface ScheduleInterruptWrite {
5114
5156
  /**
@@ -5124,7 +5166,7 @@ declare module "factorio:runtime" {
5124
5166
  }
5125
5167
  /**
5126
5168
  * @see WaitConditionWrite
5127
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/WaitCondition.html Online documentation}
5169
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/WaitCondition.html Online documentation}
5128
5170
  */
5129
5171
  export interface WaitCondition {
5130
5172
  readonly type: WaitConditionType
@@ -5155,7 +5197,7 @@ declare module "factorio:runtime" {
5155
5197
  }
5156
5198
  /**
5157
5199
  * Write form of {@link WaitCondition}, where some properties allow additional values as input compared to the read form.
5158
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/WaitCondition.html Online documentation}
5200
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/WaitCondition.html Online documentation}
5159
5201
  */
5160
5202
  export interface WaitConditionWrite {
5161
5203
  readonly type: WaitConditionType
@@ -5214,7 +5256,7 @@ declare module "factorio:runtime" {
5214
5256
  * - `"at_station"`
5215
5257
  * - `"not_at_station"`
5216
5258
  * - `"damage_taken"`
5217
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/WaitConditionType.html Online documentation}
5259
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/WaitConditionType.html Online documentation}
5218
5260
  */
5219
5261
  export type WaitConditionType =
5220
5262
  | "time"
@@ -5245,7 +5287,7 @@ declare module "factorio:runtime" {
5245
5287
  | "damage_taken"
5246
5288
  /**
5247
5289
  * @see BlueprintScheduleWrite
5248
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintSchedule.html Online documentation}
5290
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintSchedule.html Online documentation}
5249
5291
  */
5250
5292
  export interface BlueprintSchedule {
5251
5293
  readonly records?: BlueprintScheduleRecord[]
@@ -5254,7 +5296,7 @@ declare module "factorio:runtime" {
5254
5296
  }
5255
5297
  /**
5256
5298
  * Write form of {@link BlueprintSchedule}, where some properties allow additional values as input compared to the read form.
5257
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintSchedule.html Online documentation}
5299
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintSchedule.html Online documentation}
5258
5300
  */
5259
5301
  export interface BlueprintScheduleWrite {
5260
5302
  readonly records?: readonly BlueprintScheduleRecordWrite[]
@@ -5323,7 +5365,7 @@ declare module "factorio:runtime" {
5323
5365
  * - `"create-ghost-on-entity-death"`
5324
5366
  * - `"belt-stack-size-bonus"`
5325
5367
  * - `"vehicle-logistics"`
5326
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ModifierType.html Online documentation}
5368
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ModifierType.html Online documentation}
5327
5369
  */
5328
5370
  export type ModifierType =
5329
5371
  | "inserter-stack-size-bonus"
@@ -5519,7 +5561,7 @@ declare module "factorio:runtime" {
5519
5561
  * - `"unlock-recipe"`: {@link UnlockRecipeTechnologyModifier}
5520
5562
  * - `"nothing"`: {@link NothingTechnologyModifier}
5521
5563
  * - Other types: {@link OtherTechnologyModifier}
5522
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TechnologyModifier.html Online documentation}
5564
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TechnologyModifier.html Online documentation}
5523
5565
  */
5524
5566
  export type TechnologyModifier =
5525
5567
  | GunSpeedTechnologyModifier
@@ -5597,7 +5639,7 @@ declare module "factorio:runtime" {
5597
5639
  * - `"capture-spawner"`: {@link CaptureSpawnerResearchTrigger}
5598
5640
  * - `"build-entity"`: {@link BuildEntityResearchTrigger}
5599
5641
  * - `"send-item-to-orbit"`: {@link SendItemToOrbitResearchTrigger}
5600
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ResearchTrigger.html Online documentation}
5642
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ResearchTrigger.html Online documentation}
5601
5643
  */
5602
5644
  export type ResearchTrigger =
5603
5645
  | CraftItemResearchTrigger
@@ -5652,7 +5694,7 @@ declare module "factorio:runtime" {
5652
5694
  *
5653
5695
  * Other attributes may be specified depending on `type`:
5654
5696
  * - `"fluid"`: {@link FluidIngredient}
5655
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/Ingredient.html Online documentation}
5697
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Ingredient.html Online documentation}
5656
5698
  */
5657
5699
  export type Ingredient = FluidIngredient | OtherIngredient
5658
5700
  /**
@@ -5673,7 +5715,7 @@ declare module "factorio:runtime" {
5673
5715
  * * neighbouring_base_chunk_coefficient^distance(chunk, neighbour)
5674
5716
  * score(chunk) = 1 / (1 + player + base)
5675
5717
  * ```
5676
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EnemyExpansionMapSettings.html Online documentation}
5718
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EnemyExpansionMapSettings.html Online documentation}
5677
5719
  */
5678
5720
  export interface EnemyExpansionMapSettings {
5679
5721
  /**
@@ -5946,7 +5988,7 @@ declare module "factorio:runtime" {
5946
5988
  }
5947
5989
  /**
5948
5990
  * A standard table containing all {@link MapSettings} attributes plus an additional table that contains all {@link DifficultySettings} properties.
5949
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/MapAndDifficultySettings.html Online documentation}
5991
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/MapAndDifficultySettings.html Online documentation}
5950
5992
  */
5951
5993
  export interface MapAndDifficultySettings {
5952
5994
  readonly pollution: PollutionMapSettings
@@ -5967,7 +6009,7 @@ declare module "factorio:runtime" {
5967
6009
  * @example
5968
6010
  * -- Increase the number of short paths the pathfinder can cache.
5969
6011
  * game.map_settings.path_finder.short_cache_size = 15
5970
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/MapSettings.html Online documentation}
6012
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/MapSettings.html Online documentation}
5971
6013
  */
5972
6014
  export interface MapSettings {
5973
6015
  pollution: PollutionMapSettings
@@ -5979,7 +6021,7 @@ declare module "factorio:runtime" {
5979
6021
  asteroids: AsteroidMapSettings
5980
6022
  /**
5981
6023
  * If a behavior fails this many times, the enemy (or enemy group) is destroyed. This solves biters getting stuck within their own base.
5982
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/MapSettings.max_failed_behavior_count.html Online documentation}
6024
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/MapSettings.max_failed_behavior_count.html Online documentation}
5983
6025
  */
5984
6026
  max_failed_behavior_count: uint
5985
6027
  }
@@ -6008,7 +6050,7 @@ declare module "factorio:runtime" {
6008
6050
  * - `"very-high"`: equivalent to `2`.
6009
6051
  * - `"very-big"`: equivalent to `2`.
6010
6052
  * - `"very-good"`: equivalent to `2`.
6011
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/MapGenSize.html Online documentation}
6053
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/MapGenSize.html Online documentation}
6012
6054
  */
6013
6055
  export type MapGenSize =
6014
6056
  | float
@@ -6030,7 +6072,7 @@ declare module "factorio:runtime" {
6030
6072
  | "very-good"
6031
6073
  /**
6032
6074
  * These values are for the time frame of one second (60 ticks).
6033
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/PollutionMapSettings.html Online documentation}
6075
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/PollutionMapSettings.html Online documentation}
6034
6076
  */
6035
6077
  export interface PollutionMapSettings {
6036
6078
  /**
@@ -6084,7 +6126,7 @@ declare module "factorio:runtime" {
6084
6126
  }
6085
6127
  /**
6086
6128
  * These values represent a percentual increase in evolution. This means a value of `0.1` would increase evolution by 10%.
6087
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EnemyEvolutionMapSettings.html Online documentation}
6129
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EnemyEvolutionMapSettings.html Online documentation}
6088
6130
  */
6089
6131
  export interface EnemyEvolutionMapSettings {
6090
6132
  /**
@@ -6106,7 +6148,7 @@ declare module "factorio:runtime" {
6106
6148
  }
6107
6149
  /**
6108
6150
  * @see AutoplaceControlWrite
6109
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/AutoplaceControl.html Online documentation}
6151
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/AutoplaceControl.html Online documentation}
6110
6152
  */
6111
6153
  export interface AutoplaceControl {
6112
6154
  /**
@@ -6124,7 +6166,7 @@ declare module "factorio:runtime" {
6124
6166
  }
6125
6167
  /**
6126
6168
  * Write form of {@link AutoplaceControl}, where some properties allow additional values as input compared to the read form.
6127
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/AutoplaceControl.html Online documentation}
6169
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/AutoplaceControl.html Online documentation}
6128
6170
  */
6129
6171
  export interface AutoplaceControlWrite {
6130
6172
  /**
@@ -6142,7 +6184,7 @@ declare module "factorio:runtime" {
6142
6184
  }
6143
6185
  /**
6144
6186
  * @see CliffPlacementSettingsWrite
6145
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/CliffPlacementSettings.html Online documentation}
6187
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/CliffPlacementSettings.html Online documentation}
6146
6188
  */
6147
6189
  export interface CliffPlacementSettings {
6148
6190
  /**
@@ -6172,7 +6214,7 @@ declare module "factorio:runtime" {
6172
6214
  }
6173
6215
  /**
6174
6216
  * Write form of {@link CliffPlacementSettings}, where some properties allow additional values as input compared to the read form.
6175
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/CliffPlacementSettings.html Online documentation}
6217
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/CliffPlacementSettings.html Online documentation}
6176
6218
  */
6177
6219
  export interface CliffPlacementSettingsWrite {
6178
6220
  /**
@@ -6202,7 +6244,7 @@ declare module "factorio:runtime" {
6202
6244
  }
6203
6245
  /**
6204
6246
  * @see AutoplaceSettingsWrite
6205
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/AutoplaceSettings.html Online documentation}
6247
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/AutoplaceSettings.html Online documentation}
6206
6248
  */
6207
6249
  export interface AutoplaceSettings {
6208
6250
  /**
@@ -6216,7 +6258,7 @@ declare module "factorio:runtime" {
6216
6258
  }
6217
6259
  /**
6218
6260
  * Write form of {@link AutoplaceSettings}, where some properties allow additional values as input compared to the read form.
6219
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/AutoplaceSettings.html Online documentation}
6261
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/AutoplaceSettings.html Online documentation}
6220
6262
  */
6221
6263
  export interface AutoplaceSettingsWrite {
6222
6264
  /**
@@ -6251,7 +6293,7 @@ declare module "factorio:runtime" {
6251
6293
  * surface.map_gen_settings = mgs
6252
6294
  * -- This does not require a NamedNoiseExpression to be defined, since literal numbers (and strings naming literal
6253
6295
  * -- numbers, e.g. `"123"`) are understood to stand for constant value expressions.
6254
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/MapGenSettings.html Online documentation}
6296
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/MapGenSettings.html Online documentation}
6255
6297
  */
6256
6298
  export interface MapGenSettings {
6257
6299
  /**
@@ -6306,7 +6348,7 @@ declare module "factorio:runtime" {
6306
6348
  }
6307
6349
  /**
6308
6350
  * Write form of {@link MapGenSettings}, where some properties allow additional values as input compared to the read form.
6309
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/MapGenSettings.html Online documentation}
6351
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/MapGenSettings.html Online documentation}
6310
6352
  */
6311
6353
  export interface MapGenSettingsWrite {
6312
6354
  /**
@@ -6390,12 +6432,12 @@ declare module "factorio:runtime" {
6390
6432
  }
6391
6433
  /**
6392
6434
  * The string representation of a noise expression. More detailed information is found on the {@link import("factorio:prototype").NamedNoiseExpression prototype docs}.
6393
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/NoiseExpressionSourceString.html Online documentation}
6435
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/NoiseExpressionSourceString.html Online documentation}
6394
6436
  */
6395
6437
  export type NoiseExpressionSourceString = string
6396
6438
  /**
6397
6439
  * Specifies how probability and richness are calculated when placing something on the map.
6398
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/AutoplaceSpecification.html Online documentation}
6440
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/AutoplaceSpecification.html Online documentation}
6399
6441
  */
6400
6442
  export interface AutoplaceSpecification {
6401
6443
  readonly placement_density: uint
@@ -6475,8 +6517,8 @@ declare module "factorio:runtime" {
6475
6517
  _customEventIdBrand: any
6476
6518
  }
6477
6519
  /**
6478
- * Information about the event that has been raised. The table can also contain other fields depending on the type of event. See {@linkplain https://lua-api.factorio.com/2.0.55/events.html the list of Factorio events} for more information on these.
6479
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EventData.html Online documentation}
6520
+ * Information about the event that has been raised. The table can also contain other fields depending on the type of event. See {@linkplain https://lua-api.factorio.com/2.0.58/events.html the list of Factorio events} for more information on these.
6521
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EventData.html Online documentation}
6480
6522
  */
6481
6523
  export interface EventData {
6482
6524
  /**
@@ -6558,23 +6600,23 @@ declare module "factorio:runtime" {
6558
6600
  }
6559
6601
  /**
6560
6602
  * Technology difficulty settings. Updating any of the attributes will immediately take effect in the game engine.
6561
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/DifficultySettings.html Online documentation}
6603
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/DifficultySettings.html Online documentation}
6562
6604
  */
6563
6605
  export interface DifficultySettings {
6564
6606
  /**
6565
6607
  * A value in range [0.001, 1000].
6566
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/DifficultySettings.technology_price_multiplier.html Online documentation}
6608
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/DifficultySettings.technology_price_multiplier.html Online documentation}
6567
6609
  */
6568
6610
  technology_price_multiplier: double
6569
6611
  /**
6570
6612
  * A value in range [0.01, 100].
6571
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/DifficultySettings.spoil_time_modifier.html Online documentation}
6613
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/DifficultySettings.spoil_time_modifier.html Online documentation}
6572
6614
  */
6573
6615
  spoil_time_modifier: double
6574
6616
  }
6575
6617
  /**
6576
6618
  * A single pipe connection for a given fluidbox.
6577
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/PipeConnection.html Online documentation}
6619
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/PipeConnection.html Online documentation}
6578
6620
  */
6579
6621
  export interface PipeConnection {
6580
6622
  readonly flow_direction: "input" | "output" | "input-output"
@@ -6639,7 +6681,7 @@ declare module "factorio:runtime" {
6639
6681
  }
6640
6682
  /**
6641
6683
  * @see AsteroidChunkWrite
6642
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/AsteroidChunk.html Online documentation}
6684
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/AsteroidChunk.html Online documentation}
6643
6685
  */
6644
6686
  export interface AsteroidChunk {
6645
6687
  /**
@@ -6651,7 +6693,7 @@ declare module "factorio:runtime" {
6651
6693
  }
6652
6694
  /**
6653
6695
  * Write form of {@link AsteroidChunk}, where some properties allow additional values as input compared to the read form.
6654
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/AsteroidChunk.html Online documentation}
6696
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/AsteroidChunk.html Online documentation}
6655
6697
  */
6656
6698
  export interface AsteroidChunkWrite {
6657
6699
  /**
@@ -6663,7 +6705,7 @@ declare module "factorio:runtime" {
6663
6705
  }
6664
6706
  /**
6665
6707
  * The data that can be extracted from a map exchange string, as a plain table.
6666
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/MapExchangeStringData.html Online documentation}
6708
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/MapExchangeStringData.html Online documentation}
6667
6709
  */
6668
6710
  export interface MapExchangeStringData {
6669
6711
  readonly map_settings: MapAndDifficultySettings
@@ -6689,7 +6731,7 @@ declare module "factorio:runtime" {
6689
6731
  }
6690
6732
  /**
6691
6733
  * A {@link ChunkPosition} with an added bounding box for the area of the chunk.
6692
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ChunkPositionAndArea.html Online documentation}
6734
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ChunkPositionAndArea.html Online documentation}
6693
6735
  */
6694
6736
  export interface ChunkPositionAndArea {
6695
6737
  readonly x: int
@@ -6737,7 +6779,7 @@ declare module "factorio:runtime" {
6737
6779
  * - `"check-box"`
6738
6780
  * - `"switch"`
6739
6781
  * - `"label"`
6740
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SimulationWidgetType.html Online documentation}
6782
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SimulationWidgetType.html Online documentation}
6741
6783
  */
6742
6784
  export type SimulationWidgetType =
6743
6785
  | "signal-id"
@@ -6905,7 +6947,7 @@ declare module "factorio:runtime" {
6905
6947
  /**
6906
6948
  * Same as {@link Color}, but red, green, blue and alpha values can be any floating point number, without any special handling of the range [1, 255].
6907
6949
  * @see ColorModifierArray
6908
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ColorModifier.html Online documentation}
6950
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ColorModifier.html Online documentation}
6909
6951
  */
6910
6952
  export interface ColorModifier {
6911
6953
  readonly r?: float
@@ -6916,7 +6958,7 @@ declare module "factorio:runtime" {
6916
6958
  /**
6917
6959
  * Array form of {@link ColorModifier}.
6918
6960
  * @see ColorModifier
6919
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ColorModifier.html Online documentation}
6961
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ColorModifier.html Online documentation}
6920
6962
  */
6921
6963
  export type ColorModifierArray = readonly [r: double, g: double, b: double, a?: double]
6922
6964
  export interface Decorative {
@@ -6935,7 +6977,7 @@ declare module "factorio:runtime" {
6935
6977
  /**
6936
6978
  * An area defined using the map editor.
6937
6979
  * @see ScriptAreaWrite
6938
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ScriptArea.html Online documentation}
6980
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ScriptArea.html Online documentation}
6939
6981
  */
6940
6982
  export interface ScriptArea {
6941
6983
  readonly area: BoundingBox
@@ -6945,7 +6987,7 @@ declare module "factorio:runtime" {
6945
6987
  }
6946
6988
  /**
6947
6989
  * Write form of {@link ScriptArea}, where some properties allow additional values as input compared to the read form.
6948
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ScriptArea.html Online documentation}
6990
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ScriptArea.html Online documentation}
6949
6991
  */
6950
6992
  export interface ScriptAreaWrite {
6951
6993
  readonly area: BoundingBoxWrite | BoundingBoxArray
@@ -6956,7 +6998,7 @@ declare module "factorio:runtime" {
6956
6998
  /**
6957
6999
  * A position defined using the map editor.
6958
7000
  * @see ScriptPositionWrite
6959
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ScriptPosition.html Online documentation}
7001
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ScriptPosition.html Online documentation}
6960
7002
  */
6961
7003
  export interface ScriptPosition {
6962
7004
  readonly position: MapPosition
@@ -6966,7 +7008,7 @@ declare module "factorio:runtime" {
6966
7008
  }
6967
7009
  /**
6968
7010
  * Write form of {@link ScriptPosition}, where some properties allow additional values as input compared to the read form.
6969
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ScriptPosition.html Online documentation}
7011
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ScriptPosition.html Online documentation}
6970
7012
  */
6971
7013
  export interface ScriptPositionWrite {
6972
7014
  readonly position: MapPosition | MapPositionArray
@@ -6976,7 +7018,7 @@ declare module "factorio:runtime" {
6976
7018
  }
6977
7019
  /**
6978
7020
  * A table used to define a manual shape for a piece of equipment.
6979
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EquipmentPoint.html Online documentation}
7021
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EquipmentPoint.html Online documentation}
6980
7022
  */
6981
7023
  export interface EquipmentPoint {
6982
7024
  readonly x: uint
@@ -6985,7 +7027,7 @@ declare module "factorio:runtime" {
6985
7027
  /**
6986
7028
  * Screen coordinates of a GUI element in a {@link LuaGui}. This uses the same format as {@link TilePosition}, meaning it can be specified either with or without explicit keys.
6987
7029
  * @see GuiLocationArray
6988
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GuiLocation.html Online documentation}
7030
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GuiLocation.html Online documentation}
6989
7031
  */
6990
7032
  export interface GuiLocation {
6991
7033
  readonly x: int
@@ -6994,7 +7036,7 @@ declare module "factorio:runtime" {
6994
7036
  /**
6995
7037
  * Array form of {@link GuiLocation}.
6996
7038
  * @see GuiLocation
6997
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GuiLocation.html Online documentation}
7039
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GuiLocation.html Online documentation}
6998
7040
  */
6999
7041
  export type GuiLocationArray = readonly [int, int]
7000
7042
  export interface TabAndContent {
@@ -7016,10 +7058,14 @@ declare module "factorio:runtime" {
7016
7058
  * If provided, only anchors the GUI element when the opened thing matches one of the names. When reading an anchor, `names` is always populated.
7017
7059
  */
7018
7060
  readonly names?: string[]
7061
+ /**
7062
+ * One of `'both'`, `'only_ghosts'`, or `'only_real'`
7063
+ */
7064
+ readonly ghost_mode?: "both" | "only_ghosts" | "only_real"
7019
7065
  }
7020
7066
  /**
7021
7067
  * Either `icon`, `text`, or both must be provided.
7022
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ChartTagSpec.html Online documentation}
7068
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ChartTagSpec.html Online documentation}
7023
7069
  */
7024
7070
  export interface ChartTagSpec {
7025
7071
  readonly position: MapPosition | MapPositionArray
@@ -7057,6 +7103,13 @@ declare module "factorio:runtime" {
7057
7103
  */
7058
7104
  readonly spawn_points: SpawnPointDefinition[]
7059
7105
  }
7106
+ export interface InventoryWithCustomStackSizeSpecification {
7107
+ readonly stack_size_multiplier: double
7108
+ readonly stack_size_min: ItemCountType
7109
+ readonly stack_size_max: ItemCountType
7110
+ readonly stack_size_override: Record<string, ItemCountType>
7111
+ readonly with_bar: boolean
7112
+ }
7060
7113
  export interface TrainFilter {
7061
7114
  /**
7062
7115
  * Train ID filter
@@ -7141,7 +7194,7 @@ declare module "factorio:runtime" {
7141
7194
  * - `"any-goal-accessible"`: The method will return {@link TrainPathFinderOneGoalResult}.
7142
7195
  * - `"all-goals-accessible"`: The method will return {@link TrainPathAllGoalsResult}.
7143
7196
  * - `"all-goals-penalties"`: The method will return {@link TrainPathAllGoalsResult} with `penalties`.
7144
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TrainPathRequestType.html Online documentation}
7197
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TrainPathRequestType.html Online documentation}
7145
7198
  */
7146
7199
  export type TrainPathRequestType = "path" | "any-goal-accessible" | "all-goals-accessible" | "all-goals-penalties"
7147
7200
  /**
@@ -7150,7 +7203,7 @@ declare module "factorio:runtime" {
7150
7203
  * - {@link RailEndGoal}
7151
7204
  * - {@link LuaRailEnd}
7152
7205
  * - {@link LuaEntity}: Only if it points at train-stop that is connected to a rail.
7153
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TrainPathFinderGoal.html Online documentation}
7206
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TrainPathFinderGoal.html Online documentation}
7154
7207
  */
7155
7208
  export type TrainPathFinderGoal = TrainStopGoal | RailEndGoal | LuaRailEnd | LuaEntity
7156
7209
  export interface TrainStopGoal {
@@ -7340,7 +7393,7 @@ declare module "factorio:runtime" {
7340
7393
  * - {@link LuaEntityMarkedForUpgradeEventFilter}
7341
7394
  * - {@link LuaScriptRaisedDestroyEventFilter}
7342
7395
  * @see EventFilterWrite
7343
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EventFilter.html Online documentation}
7396
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EventFilter.html Online documentation}
7344
7397
  */
7345
7398
  export type EventFilter =
7346
7399
  | LuaScriptRaisedTeleportedEventFilter[]
@@ -7370,7 +7423,7 @@ declare module "factorio:runtime" {
7370
7423
  | LuaScriptRaisedDestroyEventFilter[]
7371
7424
  /**
7372
7425
  * Write form of {@link EventFilter}, where some properties allow additional values as input compared to the read form.
7373
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EventFilter.html Online documentation}
7426
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EventFilter.html Online documentation}
7374
7427
  */
7375
7428
  export type EventFilterWrite =
7376
7429
  | readonly LuaScriptRaisedTeleportedEventFilter[]
@@ -7400,7 +7453,7 @@ declare module "factorio:runtime" {
7400
7453
  | readonly LuaScriptRaisedDestroyEventFilter[]
7401
7454
  /**
7402
7455
  * @see CircuitConditionDefinitionWrite
7403
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/CircuitConditionDefinition.html Online documentation}
7456
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/CircuitConditionDefinition.html Online documentation}
7404
7457
  */
7405
7458
  export interface CircuitConditionDefinition {
7406
7459
  /**
@@ -7426,7 +7479,7 @@ declare module "factorio:runtime" {
7426
7479
  }
7427
7480
  /**
7428
7481
  * Write form of {@link CircuitConditionDefinition}, where some properties allow additional values as input compared to the read form.
7429
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/CircuitConditionDefinition.html Online documentation}
7482
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/CircuitConditionDefinition.html Online documentation}
7430
7483
  */
7431
7484
  export interface CircuitConditionDefinitionWrite {
7432
7485
  /**
@@ -7474,7 +7527,7 @@ declare module "factorio:runtime" {
7474
7527
  * - {@link LuaGuiElement}: Target type {@link defines.target_type.gui_element gui_element}; `useful_id` {@link LuaGuiElement#index LuaGuiElement::index}
7475
7528
  * - {@link LuaCargoHatch}: Target type {@link defines.target_type.cargo_hatch cargo_hatch}
7476
7529
  * - {@link LuaSchedule}: Target type {@link defines.target_type.schedule schedule}
7477
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/RegistrationTarget.html Online documentation}
7530
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/RegistrationTarget.html Online documentation}
7478
7531
  */
7479
7532
  export type RegistrationTarget =
7480
7533
  | LuaEntity
@@ -7513,7 +7566,7 @@ declare module "factorio:runtime" {
7513
7566
  }
7514
7567
  /**
7515
7568
  * @see EntityIDFilterWrite
7516
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EntityIDFilter.html Online documentation}
7569
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EntityIDFilter.html Online documentation}
7517
7570
  */
7518
7571
  export interface EntityIDFilter {
7519
7572
  /**
@@ -7531,7 +7584,7 @@ declare module "factorio:runtime" {
7531
7584
  }
7532
7585
  /**
7533
7586
  * Write form of {@link EntityIDFilter}, where some properties allow additional values as input compared to the read form.
7534
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EntityIDFilter.html Online documentation}
7587
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EntityIDFilter.html Online documentation}
7535
7588
  */
7536
7589
  export interface EntityIDFilterWrite {
7537
7590
  /**
@@ -7566,7 +7619,7 @@ declare module "factorio:runtime" {
7566
7619
  * - {@link FluidPrototypeFilter}
7567
7620
  * - {@link EntityPrototypeFilter}
7568
7621
  * @see PrototypeFilterWrite
7569
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/PrototypeFilter.html Online documentation}
7622
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/PrototypeFilter.html Online documentation}
7570
7623
  */
7571
7624
  export type PrototypeFilter =
7572
7625
  | ModSettingPrototypeFilter[]
@@ -7583,7 +7636,7 @@ declare module "factorio:runtime" {
7583
7636
  | EntityPrototypeFilter[]
7584
7637
  /**
7585
7638
  * Write form of {@link PrototypeFilter}, where some properties allow additional values as input compared to the read form.
7586
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/PrototypeFilter.html Online documentation}
7639
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/PrototypeFilter.html Online documentation}
7587
7640
  */
7588
7641
  export type PrototypeFilterWrite =
7589
7642
  | readonly ModSettingPrototypeFilter[]
@@ -7602,7 +7655,7 @@ declare module "factorio:runtime" {
7602
7655
  * A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
7603
7656
  *
7604
7657
  * By default, none of these flags are set.
7605
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EntityPrototypeFlags.html Online documentation}
7658
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EntityPrototypeFlags.html Online documentation}
7606
7659
  */
7607
7660
  export type EntityPrototypeFlags = {
7608
7661
  readonly [T in EntityPrototypeFlag]?: true
@@ -7636,7 +7689,7 @@ declare module "factorio:runtime" {
7636
7689
  * - `"building-direction-16-way"`
7637
7690
  * - `"snap-to-rail-support-spot"`
7638
7691
  * - `"not-in-made-in"`: Prevents the entity from being shown in the "made in" list in recipe tooltips.
7639
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EntityPrototypeFlag.html Online documentation}
7692
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EntityPrototypeFlag.html Online documentation}
7640
7693
  */
7641
7694
  export type EntityPrototypeFlag =
7642
7695
  | "not-rotatable"
@@ -7666,7 +7719,7 @@ declare module "factorio:runtime" {
7666
7719
  | "not-in-made-in"
7667
7720
  /**
7668
7721
  * A single filter used by an infinity-pipe type entity.
7669
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/InfinityPipeFilter.html Online documentation}
7722
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/InfinityPipeFilter.html Online documentation}
7670
7723
  */
7671
7724
  export interface InfinityPipeFilter {
7672
7725
  /**
@@ -7690,9 +7743,13 @@ declare module "factorio:runtime" {
7690
7743
  readonly name: string
7691
7744
  readonly notes: string[]
7692
7745
  }
7746
+ export interface ExplosionDefinition {
7747
+ readonly name: LuaEntityPrototype
7748
+ readonly offset: Vector
7749
+ }
7693
7750
  /**
7694
7751
  * @see ProgrammableSpeakerParametersWrite
7695
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ProgrammableSpeakerParameters.html Online documentation}
7752
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ProgrammableSpeakerParameters.html Online documentation}
7696
7753
  */
7697
7754
  export interface ProgrammableSpeakerParameters {
7698
7755
  readonly playback_volume: float
@@ -7703,7 +7760,7 @@ declare module "factorio:runtime" {
7703
7760
  }
7704
7761
  /**
7705
7762
  * Write form of {@link ProgrammableSpeakerParameters}, where some properties allow additional values as input compared to the read form.
7706
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ProgrammableSpeakerParameters.html Online documentation}
7763
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ProgrammableSpeakerParameters.html Online documentation}
7707
7764
  */
7708
7765
  export interface ProgrammableSpeakerParametersWrite {
7709
7766
  readonly playback_volume: float
@@ -7719,12 +7776,12 @@ declare module "factorio:runtime" {
7719
7776
  * - `"local"`: The sound can be heard within the audible range around the speaker.
7720
7777
  * - `"surface"`: The sound can be heard anywhere on the speaker's surface.
7721
7778
  * - `"global"`: The sound can be heard everywhere.
7722
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ProgrammableSpeakerPlaybackMode.html Online documentation}
7779
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ProgrammableSpeakerPlaybackMode.html Online documentation}
7723
7780
  */
7724
7781
  export type ProgrammableSpeakerPlaybackMode = "local" | "surface" | "global"
7725
7782
  /**
7726
7783
  * @see ProgrammableSpeakerAlertParametersWrite
7727
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ProgrammableSpeakerAlertParameters.html Online documentation}
7784
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ProgrammableSpeakerAlertParameters.html Online documentation}
7728
7785
  */
7729
7786
  export interface ProgrammableSpeakerAlertParameters {
7730
7787
  readonly show_alert: boolean
@@ -7734,7 +7791,7 @@ declare module "factorio:runtime" {
7734
7791
  }
7735
7792
  /**
7736
7793
  * Write form of {@link ProgrammableSpeakerAlertParameters}, where some properties allow additional values as input compared to the read form.
7737
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ProgrammableSpeakerAlertParameters.html Online documentation}
7794
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ProgrammableSpeakerAlertParameters.html Online documentation}
7738
7795
  */
7739
7796
  export interface ProgrammableSpeakerAlertParametersWrite {
7740
7797
  readonly show_alert: boolean
@@ -7750,7 +7807,7 @@ declare module "factorio:runtime" {
7750
7807
  }
7751
7808
  /**
7752
7809
  * The settings used by a heat-interface type entity.
7753
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/HeatSetting.html Online documentation}
7810
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/HeatSetting.html Online documentation}
7754
7811
  */
7755
7812
  export interface HeatSetting {
7756
7813
  /**
@@ -7784,7 +7841,7 @@ declare module "factorio:runtime" {
7784
7841
  * - `"none-to-south"`
7785
7842
  * - `"south-to-none"`
7786
7843
  * - `"none-to-north"`
7787
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/CliffOrientation.html Online documentation}
7844
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/CliffOrientation.html Online documentation}
7788
7845
  */
7789
7846
  export type CliffOrientation =
7790
7847
  | "west-to-east"
@@ -7814,7 +7871,7 @@ declare module "factorio:runtime" {
7814
7871
  * - `"one-way"`: Fluid will flow if input level > output level.
7815
7872
  * - `"overflow"`: Fluid will flow if input level > {@link import("factorio:prototype").ValvePrototype#threshold ValvePrototype::threshold} and input level > output level.
7816
7873
  * - `"top-up"`: Fluid will flow if output level < {@link import("factorio:prototype").ValvePrototype#threshold ValvePrototype::threshold} and input level > output level.
7817
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ValveMode.html Online documentation}
7874
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ValveMode.html Online documentation}
7818
7875
  */
7819
7876
  export type ValveMode = "one-way" | "overflow" | "top-up"
7820
7877
  export interface InserterItemFilter {
@@ -7835,28 +7892,6 @@ declare module "factorio:runtime" {
7835
7892
  */
7836
7893
  readonly comparator?: string
7837
7894
  }
7838
- /**
7839
- * A single filter used by an infinity-filters instance.
7840
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/InfinityInventoryFilter.html Online documentation}
7841
- */
7842
- export interface InfinityInventoryFilter {
7843
- /**
7844
- * Name of the item.
7845
- */
7846
- readonly name: string
7847
- /**
7848
- * The count of the filter.
7849
- */
7850
- readonly count?: uint
7851
- /**
7852
- * Defaults to `"at-least"`.
7853
- */
7854
- readonly mode?: "at-least" | "at-most" | "exactly"
7855
- /**
7856
- * The index of this filter in the filters list. Not required when writing a filter.
7857
- */
7858
- readonly index: uint
7859
- }
7860
7895
  export interface VehicleAutomaticTargetingParameters {
7861
7896
  readonly auto_target_without_gunner: boolean
7862
7897
  readonly auto_target_with_gunner: boolean
@@ -7885,10 +7920,15 @@ declare module "factorio:runtime" {
7885
7920
  */
7886
7921
  readonly count?: ItemCountType
7887
7922
  }
7923
+ export interface ThrusterPerformancePoint {
7924
+ readonly fluid_volume: double
7925
+ readonly fluid_usage: double
7926
+ readonly effectivity: double
7927
+ }
7888
7928
  /**
7889
7929
  * Defines an item type that a blueprint entity will request.
7890
7930
  * @see BlueprintInsertPlanWrite
7891
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintInsertPlan.html Online documentation}
7931
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintInsertPlan.html Online documentation}
7892
7932
  */
7893
7933
  export interface BlueprintInsertPlan {
7894
7934
  /**
@@ -7902,7 +7942,7 @@ declare module "factorio:runtime" {
7902
7942
  }
7903
7943
  /**
7904
7944
  * Write form of {@link BlueprintInsertPlan}, where some properties allow additional values as input compared to the read form.
7905
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintInsertPlan.html Online documentation}
7945
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintInsertPlan.html Online documentation}
7906
7946
  */
7907
7947
  export interface BlueprintInsertPlanWrite {
7908
7948
  /**
@@ -7914,6 +7954,16 @@ declare module "factorio:runtime" {
7914
7954
  */
7915
7955
  readonly items: ItemInventoryPositions
7916
7956
  }
7957
+ export interface NeighbourConnectableConnectionDefinition {
7958
+ readonly location: MapLocation
7959
+ readonly category: string
7960
+ readonly neighbour_category: string[]
7961
+ }
7962
+ export interface NeighbourConnectable {
7963
+ readonly affected_by_direction: boolean
7964
+ readonly neighbour_search_distance: float
7965
+ readonly connections: NeighbourConnectableConnectionDefinition[]
7966
+ }
7917
7967
  export interface MarketIngredient {
7918
7968
  /**
7919
7969
  * Prototype name of the required item.
@@ -7930,7 +7980,7 @@ declare module "factorio:runtime" {
7930
7980
  }
7931
7981
  /**
7932
7982
  * A single offer on a market entity.
7933
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/Offer.html Online documentation}
7983
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Offer.html Online documentation}
7934
7984
  */
7935
7985
  export interface Offer {
7936
7986
  /**
@@ -7968,6 +8018,64 @@ declare module "factorio:runtime" {
7968
8018
  readonly starting_vertical_speed_deviation: float
7969
8019
  readonly vertical_speed_slowdown: float
7970
8020
  }
8021
+ export interface PerceivedPerformance {
8022
+ readonly minimum: double
8023
+ readonly maximum: double
8024
+ readonly performance_to_activity_rate: double
8025
+ }
8026
+ /**
8027
+ * A single filter used by an infinity-filters instance.
8028
+ * @see InfinityInventoryFilterWrite
8029
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/InfinityInventoryFilter.html Online documentation}
8030
+ */
8031
+ export interface InfinityInventoryFilter {
8032
+ /**
8033
+ * Name of the item. When reading a filter, this is a string.
8034
+ */
8035
+ readonly name: LuaItemPrototype
8036
+ /**
8037
+ * Quality of the item. Defaults to `"normal"`. When reading a filter, this is a string.
8038
+ */
8039
+ readonly quality?: LuaQualityPrototype
8040
+ /**
8041
+ * The count of the filter. Defaults to 0.
8042
+ */
8043
+ readonly count?: ItemCountType
8044
+ /**
8045
+ * Defaults to `"at-least"`.
8046
+ */
8047
+ readonly mode?: "at-least" | "at-most" | "exactly"
8048
+ /**
8049
+ * The index of this filter in the filters list. Not required when writing a filter.
8050
+ */
8051
+ readonly index?: uint
8052
+ }
8053
+ /**
8054
+ * Write form of {@link InfinityInventoryFilter}, where some properties allow additional values as input compared to the read form.
8055
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/InfinityInventoryFilter.html Online documentation}
8056
+ */
8057
+ export interface InfinityInventoryFilterWrite {
8058
+ /**
8059
+ * Name of the item. When reading a filter, this is a string.
8060
+ */
8061
+ readonly name: ItemID
8062
+ /**
8063
+ * Quality of the item. Defaults to `"normal"`. When reading a filter, this is a string.
8064
+ */
8065
+ readonly quality?: QualityID
8066
+ /**
8067
+ * The count of the filter. Defaults to 0.
8068
+ */
8069
+ readonly count?: ItemCountType
8070
+ /**
8071
+ * Defaults to `"at-least"`.
8072
+ */
8073
+ readonly mode?: "at-least" | "at-most" | "exactly"
8074
+ /**
8075
+ * The index of this filter in the filters list. Not required when writing a filter.
8076
+ */
8077
+ readonly index?: uint
8078
+ }
7971
8079
  export interface RadiusVisualisationSpecification {
7972
8080
  readonly distance: double
7973
8081
  readonly offset: Vector
@@ -8004,12 +8112,12 @@ declare module "factorio:runtime" {
8004
8112
  *
8005
8113
  * The validity of a SoundPath can be verified at runtime using {@link LuaHelpers#is_valid_sound_path LuaHelpers::is_valid_sound_path}.
8006
8114
  *
8007
- * {@link https://lua-api.factorio.com/2.0.55/concepts/SoundPath.html > The utility and ambient types each contain general use sound prototypes defined by the game itself.}
8115
+ * {@link https://lua-api.factorio.com/2.0.58/concepts/SoundPath.html > The utility and ambient types each contain general use sound prototypes defined by the game itself.}
8008
8116
  *
8009
- * {@link https://lua-api.factorio.com/2.0.55/concepts/SoundPath.html > The following types can be combined with any tile name as long as its prototype defines the corresponding sound.}
8117
+ * {@link https://lua-api.factorio.com/2.0.58/concepts/SoundPath.html > The following types can be combined with any tile name as long as its prototype defines the corresponding sound.}
8010
8118
  *
8011
- * {@link https://lua-api.factorio.com/2.0.55/concepts/SoundPath.html > The following types can be combined with any entity name as long as its prototype defines the corresponding sound.}
8012
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SoundPath.html Online documentation}
8119
+ * {@link https://lua-api.factorio.com/2.0.58/concepts/SoundPath.html > The following types can be combined with any entity name as long as its prototype defines the corresponding sound.}
8120
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SoundPath.html Online documentation}
8013
8121
  */
8014
8122
  export type SoundPath = (string & { _?: never }) | `${SoundCategory}/${string}`
8015
8123
  /**
@@ -8027,7 +8135,7 @@ declare module "factorio:runtime" {
8027
8135
  * - `"weapon"`
8028
8136
  * - `"explosion"`
8029
8137
  * - `"enemy"`
8030
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SoundType.html Online documentation}
8138
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SoundType.html Online documentation}
8031
8139
  */
8032
8140
  export type SoundType =
8033
8141
  | "game-effect"
@@ -8068,7 +8176,7 @@ declare module "factorio:runtime" {
8068
8176
  }
8069
8177
  /**
8070
8178
  * @see BlueprintLogisticFilterWrite
8071
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintLogisticFilter.html Online documentation}
8179
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintLogisticFilter.html Online documentation}
8072
8180
  */
8073
8181
  export interface BlueprintLogisticFilter {
8074
8182
  readonly index: LogisticFilterIndex
@@ -8098,7 +8206,7 @@ declare module "factorio:runtime" {
8098
8206
  }
8099
8207
  /**
8100
8208
  * Write form of {@link BlueprintLogisticFilter}, where some properties allow additional values as input compared to the read form.
8101
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/BlueprintLogisticFilter.html Online documentation}
8209
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/BlueprintLogisticFilter.html Online documentation}
8102
8210
  */
8103
8211
  export interface BlueprintLogisticFilterWrite {
8104
8212
  readonly index: LogisticFilterIndex
@@ -8128,7 +8236,7 @@ declare module "factorio:runtime" {
8128
8236
  }
8129
8237
  /**
8130
8238
  * @see LogisticSectionWrite
8131
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LogisticSection.html Online documentation}
8239
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LogisticSection.html Online documentation}
8132
8240
  */
8133
8241
  export interface LogisticSection {
8134
8242
  readonly index: uint8
@@ -8145,7 +8253,7 @@ declare module "factorio:runtime" {
8145
8253
  }
8146
8254
  /**
8147
8255
  * Write form of {@link LogisticSection}, where some properties allow additional values as input compared to the read form.
8148
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LogisticSection.html Online documentation}
8256
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LogisticSection.html Online documentation}
8149
8257
  */
8150
8258
  export interface LogisticSectionWrite {
8151
8259
  readonly index: uint8
@@ -8160,9 +8268,13 @@ declare module "factorio:runtime" {
8160
8268
  */
8161
8269
  readonly active?: float
8162
8270
  }
8271
+ export interface LogisticGroup {
8272
+ readonly members: LuaLogisticSection[]
8273
+ readonly filters: LogisticFilter[]
8274
+ }
8163
8275
  /**
8164
8276
  * @see LogisticSectionsWrite
8165
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LogisticSections.html Online documentation}
8277
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LogisticSections.html Online documentation}
8166
8278
  */
8167
8279
  export interface LogisticSections {
8168
8280
  readonly sections?: LogisticSection[]
@@ -8173,7 +8285,7 @@ declare module "factorio:runtime" {
8173
8285
  }
8174
8286
  /**
8175
8287
  * Write form of {@link LogisticSections}, where some properties allow additional values as input compared to the read form.
8176
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LogisticSections.html Online documentation}
8288
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LogisticSections.html Online documentation}
8177
8289
  */
8178
8290
  export interface LogisticSectionsWrite {
8179
8291
  readonly sections?: readonly LogisticSectionWrite[]
@@ -8196,7 +8308,7 @@ declare module "factorio:runtime" {
8196
8308
  * - {@link LuaAsteroidChunkPrototype}
8197
8309
  * - {@link LuaVirtualSignalPrototype}
8198
8310
  * - {@link LuaSurfacePrototype}
8199
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/FactoriopediaID.html Online documentation}
8311
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/FactoriopediaID.html Online documentation}
8200
8312
  */
8201
8313
  export type FactoriopediaID =
8202
8314
  | LuaItemPrototype
@@ -8217,7 +8329,7 @@ declare module "factorio:runtime" {
8217
8329
  * ## Union members
8218
8330
  * - `"horizontal"`
8219
8331
  * - `"vertical"`
8220
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/GuiDirection.html Online documentation}
8332
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/GuiDirection.html Online documentation}
8221
8333
  */
8222
8334
  export type GuiDirection = "horizontal" | "vertical"
8223
8335
  /**
@@ -8235,7 +8347,7 @@ declare module "factorio:runtime" {
8235
8347
  * - `"top-right"`
8236
8348
  * - `"right"`: The same as `"middle-right"`
8237
8349
  * - `"bottom-right"`
8238
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/Alignment.html Online documentation}
8350
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Alignment.html Online documentation}
8239
8351
  */
8240
8352
  export type Alignment =
8241
8353
  | "top-left"
@@ -8293,9 +8405,15 @@ declare module "factorio:runtime" {
8293
8405
  }
8294
8406
  /**
8295
8407
  * A set of trigger target masks.
8296
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TriggerTargetMask.html Online documentation}
8408
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TriggerTargetMask.html Online documentation}
8297
8409
  */
8298
8410
  export type TriggerTargetMask = Record<string, true>
8411
+ export interface AttackReactionItem {
8412
+ readonly range: float
8413
+ readonly action?: TriggerItem
8414
+ readonly reaction_modifier: float
8415
+ readonly damage_type?: LuaDamagePrototype
8416
+ }
8299
8417
  export interface TriggerDelivery {
8300
8418
  readonly type: "instant" | "projectile" | "beam" | "stream" | "artillery" | "chain" | "delayed"
8301
8419
  readonly source_effects: TriggerEffectItem[]
@@ -8338,7 +8456,7 @@ declare module "factorio:runtime" {
8338
8456
  * - `"destroy-decoratives"`
8339
8457
  * - `"camera-effect"`
8340
8458
  * - `"activate-impact"`
8341
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TriggerEffectItemType.html Online documentation}
8459
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TriggerEffectItemType.html Online documentation}
8342
8460
  */
8343
8461
  export type TriggerEffectItemType =
8344
8462
  | "damage"
@@ -8471,7 +8589,7 @@ declare module "factorio:runtime" {
8471
8589
  * Other attributes may be specified depending on `type`:
8472
8590
  * - `"projectile"`: {@link ProjectileAttackParameters}
8473
8591
  * - `"stream"`: {@link StreamAttackParameters}
8474
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/AttackParameters.html Online documentation}
8592
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/AttackParameters.html Online documentation}
8475
8593
  */
8476
8594
  export type AttackParameters = ProjectileAttackParameters | StreamAttackParameters | OtherAttackParameters
8477
8595
  /**
@@ -8480,12 +8598,12 @@ declare module "factorio:runtime" {
8480
8598
  * Note that the API returns tags as a simple table, meaning any modifications to it will not propagate back to the game. Thus, to modify a set of tags, the whole table needs to be written back to the respective property.
8481
8599
  * @example
8482
8600
  * {a = 1, b = true, c = "three", d = {e = "f"}}
8483
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/Tags.html Online documentation}
8601
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Tags.html Online documentation}
8484
8602
  */
8485
8603
  export type Tags = Record<string, AnyBasic>
8486
8604
  /**
8487
8605
  * @see TileWrite
8488
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/Tile.html Online documentation}
8606
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Tile.html Online documentation}
8489
8607
  */
8490
8608
  export interface Tile {
8491
8609
  /**
@@ -8499,7 +8617,7 @@ declare module "factorio:runtime" {
8499
8617
  }
8500
8618
  /**
8501
8619
  * Write form of {@link Tile}, where some properties allow additional values as input compared to the read form.
8502
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/Tile.html Online documentation}
8620
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Tile.html Online documentation}
8503
8621
  */
8504
8622
  export interface TileWrite {
8505
8623
  /**
@@ -8513,92 +8631,99 @@ declare module "factorio:runtime" {
8513
8631
  }
8514
8632
  /**
8515
8633
  * A floating-point number. This is a single-precision floating point number. Whilst Lua only uses double-precision numbers, when a function takes a float, the game engine will immediately convert the double-precision number to single-precision.
8516
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/float.html Online documentation}
8634
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/float.html Online documentation}
8517
8635
  */
8518
8636
  export type float = number
8519
8637
  /**
8520
8638
  * A double-precision floating-point number. This is the same data type as all Lua numbers use.
8521
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/double.html Online documentation}
8639
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/double.html Online documentation}
8522
8640
  */
8523
8641
  export type double = number
8524
8642
  /**
8525
- * 32-bit signed integer. Possible values are `-2 147 483 648` to `2 147 483 647`.
8643
+ * 8-bit unsigned integer. Possible values are `0` to `255`.
8526
8644
  *
8527
- * Since Lua 5.2 only uses doubles, any API that asks for `int` will floor the given double.
8528
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/int.html Online documentation}
8645
+ * Since Lua 5.2 only uses doubles, any API that asks for `uint8` will floor the given double.
8646
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/uint8.html Online documentation}
8529
8647
  */
8530
- export type int = number
8648
+ export type uint8 = number
8531
8649
  /**
8532
8650
  * 8-bit signed integer. Possible values are `-128` to `127`.
8533
8651
  *
8534
8652
  * Since Lua 5.2 only uses doubles, any API that asks for `int8` will floor the given double.
8535
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/int8.html Online documentation}
8653
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/int8.html Online documentation}
8536
8654
  */
8537
8655
  export type int8 = number
8538
8656
  /**
8539
- * 32-bit unsigned integer. Possible values are `0` to `4 294 967 295`.
8657
+ * 16-bit unsigned integer. Possible values are `0` to `65 535`.
8540
8658
  *
8541
- * Since Lua 5.2 only uses doubles, any API that asks for `uint` will floor the given double.
8542
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/uint.html Online documentation}
8659
+ * Since Lua 5.2 only uses doubles, any API that asks for `uint16` will floor the given double.
8660
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/uint16.html Online documentation}
8543
8661
  */
8544
- export type uint = number
8662
+ export type uint16 = number
8545
8663
  /**
8546
- * 8-bit unsigned integer. Possible values are `0` to `255`.
8664
+ * 16 bit signed integer. Possible values are `-32 768` to `32 767`.
8547
8665
  *
8548
- * Since Lua 5.2 only uses doubles, any API that asks for `uint8` will floor the given double.
8549
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/uint8.html Online documentation}
8666
+ * Since Lua 5.2 only uses doubles, any API that asks for `int16` will floor the given double.
8667
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/int16.html Online documentation}
8550
8668
  */
8551
- export type uint8 = number
8669
+ export type int16 = number
8552
8670
  /**
8553
- * 16-bit unsigned integer. Possible values are `0` to `65 535`.
8671
+ * 32-bit unsigned integer. Possible values are `0` to `4 294 967 295`.
8554
8672
  *
8555
- * Since Lua 5.2 only uses doubles, any API that asks for `uint16` will floor the given double.
8556
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/uint16.html Online documentation}
8673
+ * Since Lua 5.2 only uses doubles, any API that asks for `uint` will floor the given double.
8674
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/uint.html Online documentation}
8557
8675
  */
8558
- export type uint16 = number
8676
+ export type uint = number
8677
+ /**
8678
+ * 32-bit signed integer. Possible values are `-2 147 483 648` to `2 147 483 647`.
8679
+ *
8680
+ * Since Lua 5.2 only uses doubles, any API that asks for `int` will floor the given double.
8681
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/int.html Online documentation}
8682
+ */
8683
+ export type int = number
8559
8684
  /**
8560
8685
  * 64-bit unsigned integer. Possible values are `0` to `18 446 744 073 709 551 615`.
8561
8686
  *
8562
8687
  * Since Lua 5.2 only uses doubles, any API that asks for `uint64` will floor the given double.
8563
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/uint64.html Online documentation}
8688
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/uint64.html Online documentation}
8564
8689
  */
8565
8690
  export type uint64 = number
8566
8691
  /**
8567
8692
  * Nil is the type of the value `nil`, whose main property is to be different from any other value. It usually represents the absence of a useful value.
8568
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/nil.html Online documentation}
8693
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/nil.html Online documentation}
8569
8694
  */
8570
8695
  export type nil = undefined
8571
8696
  /**
8572
8697
  * Tables are enclosed in curly brackets, like this `{}`.
8573
8698
  *
8574
8699
  * Throughout the API docs, the terms "array" and "dictionary" are used. These are fundamentally just {@linkplain http://www.lua.org/pil/2.5.html Lua tables}, but have a limitation on which kind of table keys can be used. An array is a table that uses continuous integer keys starting at `1`, while a dictionary can use numeric or string keys in any order or combination.
8575
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/table.html Online documentation}
8700
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/table.html Online documentation}
8576
8701
  */
8577
8702
  export type table = object
8578
8703
  /**
8579
- * Any LuaObject listed on the {@linkplain https://lua-api.factorio.com/2.0.55/classes.html Classes} page.
8580
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaObject.html Online documentation}
8704
+ * Any LuaObject listed on the {@linkplain https://lua-api.factorio.com/2.0.58/classes.html Classes} page.
8705
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaObject.html Online documentation}
8581
8706
  */
8582
8707
  export interface LuaObject {
8583
8708
  readonly object_name: string
8584
8709
  }
8585
8710
  /**
8586
8711
  * Any basic type (string, number, boolean) or table.
8587
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/AnyBasic.html Online documentation}
8712
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/AnyBasic.html Online documentation}
8588
8713
  */
8589
8714
  export type AnyBasic = string | boolean | number | table
8590
8715
  /**
8591
8716
  * Any basic type (string, number, boolean), table, or LuaObject.
8592
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/Any.html Online documentation}
8717
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/Any.html Online documentation}
8593
8718
  */
8594
8719
  export type Any = string | boolean | number | table | LuaObject
8595
8720
  /**
8596
8721
  * All other MapGenSettings feed into named noise expressions, and therefore placement can be overridden by including the name of a property in this dictionary. The probability and richness functions for placing specific tiles, entities, and decoratives can be overridden by including an entry named `{tile|entity|decorative}:(prototype name):{probability|richness}`.
8597
8722
  *
8598
- * {@link https://lua-api.factorio.com/2.0.55/concepts/PropertyExpressionNames.html > Values either name a NamedNoiseExpression or can be literal numbers, stored as strings (e.g. `5`). All other controls can be overridden by a property expression names. Notable properties:}
8723
+ * {@link https://lua-api.factorio.com/2.0.58/concepts/PropertyExpressionNames.html > Values either name a NamedNoiseExpression or can be literal numbers, stored as strings (e.g. `5`). All other controls can be overridden by a property expression names. Notable properties:}
8599
8724
  *
8600
- * {@link https://lua-api.factorio.com/2.0.55/concepts/PropertyExpressionNames.html > Climate controls ('Moisture' and 'Terrain type' at the bottom of the Terrain tab in the map generator GUI) don't have their own dedicated structures in MapGenSettings. Instead, their values are stored as property expression overrides with long names:}
8601
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/PropertyExpressionNames.html Online documentation}
8725
+ * {@link https://lua-api.factorio.com/2.0.58/concepts/PropertyExpressionNames.html > Climate controls ('Moisture' and 'Terrain type' at the bottom of the Terrain tab in the map generator GUI) don't have their own dedicated structures in MapGenSettings. Instead, their values are stored as property expression overrides with long names:}
8726
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/PropertyExpressionNames.html Online documentation}
8602
8727
  */
8603
8728
  export type PropertyExpressionNames = Record<string, string>
8604
8729
  /**
@@ -8655,7 +8780,7 @@ declare module "factorio:runtime" {
8655
8780
  * - `"type"`: {@link TypeModSettingPrototypeFilter}
8656
8781
  * - `"mod"`: {@link ModModSettingPrototypeFilter}
8657
8782
  * - `"setting-type"`: {@link SettingTypeModSettingPrototypeFilter}
8658
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ModSettingPrototypeFilter.html Online documentation}
8783
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ModSettingPrototypeFilter.html Online documentation}
8659
8784
  */
8660
8785
  export type ModSettingPrototypeFilter =
8661
8786
  | TypeModSettingPrototypeFilter
@@ -8719,7 +8844,7 @@ declare module "factorio:runtime" {
8719
8844
  * Other attributes may be specified depending on `filter`:
8720
8845
  * - `"type"`: {@link TypeSpaceLocationPrototypeFilter}
8721
8846
  * - `"solar-power-in-space"`: {@link SolarPowerInSpaceSpaceLocationPrototypeFilter}
8722
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SpaceLocationPrototypeFilter.html Online documentation}
8847
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SpaceLocationPrototypeFilter.html Online documentation}
8723
8848
  */
8724
8849
  export type SpaceLocationPrototypeFilter =
8725
8850
  | TypeSpaceLocationPrototypeFilter
@@ -8727,7 +8852,7 @@ declare module "factorio:runtime" {
8727
8852
  | OtherSpaceLocationPrototypeFilter
8728
8853
  /**
8729
8854
  * Write form of {@link SpaceLocationPrototypeFilter}, where some properties allow additional values as input compared to the read form.
8730
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/SpaceLocationPrototypeFilter.html Online documentation}
8855
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/SpaceLocationPrototypeFilter.html Online documentation}
8731
8856
  */
8732
8857
  export type SpaceLocationPrototypeFilterWrite =
8733
8858
  | TypeSpaceLocationPrototypeFilter
@@ -8775,7 +8900,7 @@ declare module "factorio:runtime" {
8775
8900
  *
8776
8901
  * Other attributes may be specified depending on `filter`:
8777
8902
  * - `"collision-mask"`: {@link CollisionMaskDecorativePrototypeFilter}
8778
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/DecorativePrototypeFilter.html Online documentation}
8903
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/DecorativePrototypeFilter.html Online documentation}
8779
8904
  */
8780
8905
  export type DecorativePrototypeFilter = CollisionMaskDecorativePrototypeFilter | OtherDecorativePrototypeFilter
8781
8906
  /**
@@ -8917,7 +9042,7 @@ declare module "factorio:runtime" {
8917
9042
  * - `"vehicle-friction-modifier"`: {@link VehicleFrictionModifierTilePrototypeFilter}
8918
9043
  * - `"decorative-removal-probability"`: {@link DecorativeRemovalProbabilityTilePrototypeFilter}
8919
9044
  * - `"absorptions-per-second"`: {@link AbsorptionsPerSecondTilePrototypeFilter}
8920
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TilePrototypeFilter.html Online documentation}
9045
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TilePrototypeFilter.html Online documentation}
8921
9046
  */
8922
9047
  export type TilePrototypeFilter =
8923
9048
  | CollisionMaskTilePrototypeFilter
@@ -8928,7 +9053,7 @@ declare module "factorio:runtime" {
8928
9053
  | OtherTilePrototypeFilter
8929
9054
  /**
8930
9055
  * Write form of {@link TilePrototypeFilter}, where some properties allow additional values as input compared to the read form.
8931
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TilePrototypeFilter.html Online documentation}
9056
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TilePrototypeFilter.html Online documentation}
8932
9057
  */
8933
9058
  export type TilePrototypeFilterWrite =
8934
9059
  | CollisionMaskTilePrototypeFilter
@@ -9283,7 +9408,7 @@ declare module "factorio:runtime" {
9283
9408
  * - `"fuel-acceleration-multiplier"`: {@link FuelAccelerationMultiplierItemPrototypeFilter}
9284
9409
  * - `"fuel-top-speed-multiplier"`: {@link FuelTopSpeedMultiplierItemPrototypeFilter}
9285
9410
  * - `"fuel-emissions-multiplier"`: {@link FuelEmissionsMultiplierItemPrototypeFilter}
9286
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ItemPrototypeFilter.html Online documentation}
9411
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ItemPrototypeFilter.html Online documentation}
9287
9412
  */
9288
9413
  export type ItemPrototypeFilter =
9289
9414
  | PlaceResultItemPrototypeFilter
@@ -9305,7 +9430,7 @@ declare module "factorio:runtime" {
9305
9430
  | OtherItemPrototypeFilter
9306
9431
  /**
9307
9432
  * Write form of {@link ItemPrototypeFilter}, where some properties allow additional values as input compared to the read form.
9308
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/ItemPrototypeFilter.html Online documentation}
9433
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/ItemPrototypeFilter.html Online documentation}
9309
9434
  */
9310
9435
  export type ItemPrototypeFilterWrite =
9311
9436
  | PlaceResultItemPrototypeFilterWrite
@@ -9445,7 +9570,7 @@ declare module "factorio:runtime" {
9445
9570
  * - `"level"`: {@link LevelTechnologyPrototypeFilter}
9446
9571
  * - `"max-level"`: {@link MaxLevelTechnologyPrototypeFilter}
9447
9572
  * - `"time"`: {@link TimeTechnologyPrototypeFilter}
9448
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TechnologyPrototypeFilter.html Online documentation}
9573
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TechnologyPrototypeFilter.html Online documentation}
9449
9574
  */
9450
9575
  export type TechnologyPrototypeFilter =
9451
9576
  | ResearchUnitIngredientTechnologyPrototypeFilter
@@ -9456,7 +9581,7 @@ declare module "factorio:runtime" {
9456
9581
  | OtherTechnologyPrototypeFilter
9457
9582
  /**
9458
9583
  * Write form of {@link TechnologyPrototypeFilter}, where some properties allow additional values as input compared to the read form.
9459
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/TechnologyPrototypeFilter.html Online documentation}
9584
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/TechnologyPrototypeFilter.html Online documentation}
9460
9585
  */
9461
9586
  export type TechnologyPrototypeFilterWrite =
9462
9587
  | ResearchUnitIngredientTechnologyPrototypeFilter
@@ -9716,7 +9841,7 @@ declare module "factorio:runtime" {
9716
9841
  * - `"emissions-multiplier"`: {@link EmissionsMultiplierRecipePrototypeFilter}
9717
9842
  * - `"request-paste-multiplier"`: {@link RequestPasteMultiplierRecipePrototypeFilter}
9718
9843
  * - `"overload-multiplier"`: {@link OverloadMultiplierRecipePrototypeFilter}
9719
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/RecipePrototypeFilter.html Online documentation}
9844
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/RecipePrototypeFilter.html Online documentation}
9720
9845
  */
9721
9846
  export type RecipePrototypeFilter =
9722
9847
  | HasIngredientItemRecipePrototypeFilter
@@ -9732,7 +9857,7 @@ declare module "factorio:runtime" {
9732
9857
  | OtherRecipePrototypeFilter
9733
9858
  /**
9734
9859
  * Write form of {@link RecipePrototypeFilter}, where some properties allow additional values as input compared to the read form.
9735
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/RecipePrototypeFilter.html Online documentation}
9860
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/RecipePrototypeFilter.html Online documentation}
9736
9861
  */
9737
9862
  export type RecipePrototypeFilterWrite =
9738
9863
  | HasIngredientItemRecipePrototypeFilterWrite
@@ -9784,7 +9909,7 @@ declare module "factorio:runtime" {
9784
9909
  *
9785
9910
  * Other attributes may be specified depending on `filter`:
9786
9911
  * - `"type"`: {@link TypeAchievementPrototypeFilter}
9787
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/AchievementPrototypeFilter.html Online documentation}
9912
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/AchievementPrototypeFilter.html Online documentation}
9788
9913
  */
9789
9914
  export type AchievementPrototypeFilter = TypeAchievementPrototypeFilter | OtherAchievementPrototypeFilter
9790
9915
  /**
@@ -9825,7 +9950,7 @@ declare module "factorio:runtime" {
9825
9950
  *
9826
9951
  * Other attributes may be specified depending on `filter`:
9827
9952
  * - `"type"`: {@link TypeEquipmentPrototypeFilter}
9828
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EquipmentPrototypeFilter.html Online documentation}
9953
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EquipmentPrototypeFilter.html Online documentation}
9829
9954
  */
9830
9955
  export type EquipmentPrototypeFilter = TypeEquipmentPrototypeFilter | OtherEquipmentPrototypeFilter
9831
9956
  /**
@@ -10010,7 +10135,7 @@ declare module "factorio:runtime" {
10010
10135
  * - `"fuel-value"`: {@link FuelValueFluidPrototypeFilter}
10011
10136
  * - `"emissions-multiplier"`: {@link EmissionsMultiplierFluidPrototypeFilter}
10012
10137
  * - `"gas-temperature"`: {@link GasTemperatureFluidPrototypeFilter}
10013
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/FluidPrototypeFilter.html Online documentation}
10138
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/FluidPrototypeFilter.html Online documentation}
10014
10139
  */
10015
10140
  export type FluidPrototypeFilter =
10016
10141
  | NameFluidPrototypeFilter
@@ -10024,7 +10149,7 @@ declare module "factorio:runtime" {
10024
10149
  | OtherFluidPrototypeFilter
10025
10150
  /**
10026
10151
  * Write form of {@link FluidPrototypeFilter}, where some properties allow additional values as input compared to the read form.
10027
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/FluidPrototypeFilter.html Online documentation}
10152
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/FluidPrototypeFilter.html Online documentation}
10028
10153
  */
10029
10154
  export type FluidPrototypeFilterWrite =
10030
10155
  | NameFluidPrototypeFilter
@@ -10264,7 +10389,7 @@ declare module "factorio:runtime" {
10264
10389
  * - `"selection-priority"`: {@link SelectionPriorityEntityPrototypeFilter}
10265
10390
  * - `"emissions-per-second"`: {@link EmissionsPerSecondEntityPrototypeFilter}
10266
10391
  * - `"crafting-category"`: {@link CraftingCategoryEntityPrototypeFilter}
10267
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EntityPrototypeFilter.html Online documentation}
10392
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EntityPrototypeFilter.html Online documentation}
10268
10393
  */
10269
10394
  export type EntityPrototypeFilter =
10270
10395
  | NameEntityPrototypeFilter
@@ -10278,7 +10403,7 @@ declare module "factorio:runtime" {
10278
10403
  | OtherEntityPrototypeFilter
10279
10404
  /**
10280
10405
  * Write form of {@link EntityPrototypeFilter}, where some properties allow additional values as input compared to the read form.
10281
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/EntityPrototypeFilter.html Online documentation}
10406
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/EntityPrototypeFilter.html Online documentation}
10282
10407
  */
10283
10408
  export type EntityPrototypeFilterWrite =
10284
10409
  | NameEntityPrototypeFilter
@@ -10387,7 +10512,7 @@ declare module "factorio:runtime" {
10387
10512
  * - `"name"`: {@link NameScriptRaisedTeleportedEventFilter}
10388
10513
  * - `"ghost_type"`: {@link GhostTypeScriptRaisedTeleportedEventFilter}
10389
10514
  * - `"ghost_name"`: {@link GhostNameScriptRaisedTeleportedEventFilter}
10390
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaScriptRaisedTeleportedEventFilter.html Online documentation}
10515
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaScriptRaisedTeleportedEventFilter.html Online documentation}
10391
10516
  */
10392
10517
  export type LuaScriptRaisedTeleportedEventFilter =
10393
10518
  | TypeScriptRaisedTeleportedEventFilter
@@ -10492,7 +10617,7 @@ declare module "factorio:runtime" {
10492
10617
  * - `"name"`: {@link NamePreRobotMinedEntityEventFilter}
10493
10618
  * - `"ghost_type"`: {@link GhostTypePreRobotMinedEntityEventFilter}
10494
10619
  * - `"ghost_name"`: {@link GhostNamePreRobotMinedEntityEventFilter}
10495
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaPreRobotMinedEntityEventFilter.html Online documentation}
10620
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaPreRobotMinedEntityEventFilter.html Online documentation}
10496
10621
  */
10497
10622
  export type LuaPreRobotMinedEntityEventFilter =
10498
10623
  | TypePreRobotMinedEntityEventFilter
@@ -10597,7 +10722,7 @@ declare module "factorio:runtime" {
10597
10722
  * - `"name"`: {@link NameScriptRaisedBuiltEventFilter}
10598
10723
  * - `"ghost_type"`: {@link GhostTypeScriptRaisedBuiltEventFilter}
10599
10724
  * - `"ghost_name"`: {@link GhostNameScriptRaisedBuiltEventFilter}
10600
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaScriptRaisedBuiltEventFilter.html Online documentation}
10725
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaScriptRaisedBuiltEventFilter.html Online documentation}
10601
10726
  */
10602
10727
  export type LuaScriptRaisedBuiltEventFilter =
10603
10728
  | TypeScriptRaisedBuiltEventFilter
@@ -10702,7 +10827,7 @@ declare module "factorio:runtime" {
10702
10827
  * - `"name"`: {@link NamePlatformMinedEntityEventFilter}
10703
10828
  * - `"ghost_type"`: {@link GhostTypePlatformMinedEntityEventFilter}
10704
10829
  * - `"ghost_name"`: {@link GhostNamePlatformMinedEntityEventFilter}
10705
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaPlatformMinedEntityEventFilter.html Online documentation}
10830
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaPlatformMinedEntityEventFilter.html Online documentation}
10706
10831
  */
10707
10832
  export type LuaPlatformMinedEntityEventFilter =
10708
10833
  | TypePlatformMinedEntityEventFilter
@@ -10819,7 +10944,7 @@ declare module "factorio:runtime" {
10819
10944
  * - `"ghost_type"`: {@link GhostTypeRobotBuiltEntityEventFilter}
10820
10945
  * - `"ghost_name"`: {@link GhostNameRobotBuiltEntityEventFilter}
10821
10946
  * - `"force"`: {@link ForceRobotBuiltEntityEventFilter}
10822
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaRobotBuiltEntityEventFilter.html Online documentation}
10947
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaRobotBuiltEntityEventFilter.html Online documentation}
10823
10948
  */
10824
10949
  export type LuaRobotBuiltEntityEventFilter =
10825
10950
  | TypeRobotBuiltEntityEventFilter
@@ -10925,7 +11050,7 @@ declare module "factorio:runtime" {
10925
11050
  * - `"name"`: {@link NamePrePlayerMinedEntityEventFilter}
10926
11051
  * - `"ghost_type"`: {@link GhostTypePrePlayerMinedEntityEventFilter}
10927
11052
  * - `"ghost_name"`: {@link GhostNamePrePlayerMinedEntityEventFilter}
10928
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaPrePlayerMinedEntityEventFilter.html Online documentation}
11053
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaPrePlayerMinedEntityEventFilter.html Online documentation}
10929
11054
  */
10930
11055
  export type LuaPrePlayerMinedEntityEventFilter =
10931
11056
  | TypePrePlayerMinedEntityEventFilter
@@ -11032,7 +11157,7 @@ declare module "factorio:runtime" {
11032
11157
  * - `"name"`: {@link NameEntityDeconstructionCancelledEventFilter}
11033
11158
  * - `"ghost_type"`: {@link GhostTypeEntityDeconstructionCancelledEventFilter}
11034
11159
  * - `"ghost_name"`: {@link GhostNameEntityDeconstructionCancelledEventFilter}
11035
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaEntityDeconstructionCancelledEventFilter.html Online documentation}
11160
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaEntityDeconstructionCancelledEventFilter.html Online documentation}
11036
11161
  */
11037
11162
  export type LuaEntityDeconstructionCancelledEventFilter =
11038
11163
  | TypeEntityDeconstructionCancelledEventFilter
@@ -11137,7 +11262,7 @@ declare module "factorio:runtime" {
11137
11262
  * - `"name"`: {@link NamePreGhostUpgradedEventFilter}
11138
11263
  * - `"ghost_type"`: {@link GhostTypePreGhostUpgradedEventFilter}
11139
11264
  * - `"ghost_name"`: {@link GhostNamePreGhostUpgradedEventFilter}
11140
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaPreGhostUpgradedEventFilter.html Online documentation}
11265
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaPreGhostUpgradedEventFilter.html Online documentation}
11141
11266
  */
11142
11267
  export type LuaPreGhostUpgradedEventFilter =
11143
11268
  | TypePreGhostUpgradedEventFilter
@@ -11254,7 +11379,7 @@ declare module "factorio:runtime" {
11254
11379
  * - `"ghost_type"`: {@link GhostTypePlatformBuiltEntityEventFilter}
11255
11380
  * - `"ghost_name"`: {@link GhostNamePlatformBuiltEntityEventFilter}
11256
11381
  * - `"force"`: {@link ForcePlatformBuiltEntityEventFilter}
11257
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaPlatformBuiltEntityEventFilter.html Online documentation}
11382
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaPlatformBuiltEntityEventFilter.html Online documentation}
11258
11383
  */
11259
11384
  export type LuaPlatformBuiltEntityEventFilter =
11260
11385
  | TypePlatformBuiltEntityEventFilter
@@ -11360,7 +11485,7 @@ declare module "factorio:runtime" {
11360
11485
  * - `"name"`: {@link NamePrePlatformMinedEntityEventFilter}
11361
11486
  * - `"ghost_type"`: {@link GhostTypePrePlatformMinedEntityEventFilter}
11362
11487
  * - `"ghost_name"`: {@link GhostNamePrePlatformMinedEntityEventFilter}
11363
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaPrePlatformMinedEntityEventFilter.html Online documentation}
11488
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaPrePlatformMinedEntityEventFilter.html Online documentation}
11364
11489
  */
11365
11490
  export type LuaPrePlatformMinedEntityEventFilter =
11366
11491
  | TypePrePlatformMinedEntityEventFilter
@@ -11465,7 +11590,7 @@ declare module "factorio:runtime" {
11465
11590
  * - `"name"`: {@link NameEntityClonedEventFilter}
11466
11591
  * - `"ghost_type"`: {@link GhostTypeEntityClonedEventFilter}
11467
11592
  * - `"ghost_name"`: {@link GhostNameEntityClonedEventFilter}
11468
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaEntityClonedEventFilter.html Online documentation}
11593
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaEntityClonedEventFilter.html Online documentation}
11469
11594
  */
11470
11595
  export type LuaEntityClonedEventFilter =
11471
11596
  | TypeEntityClonedEventFilter
@@ -11570,7 +11695,7 @@ declare module "factorio:runtime" {
11570
11695
  * - `"name"`: {@link NamePlayerRepairedEntityEventFilter}
11571
11696
  * - `"ghost_type"`: {@link GhostTypePlayerRepairedEntityEventFilter}
11572
11697
  * - `"ghost_name"`: {@link GhostNamePlayerRepairedEntityEventFilter}
11573
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaPlayerRepairedEntityEventFilter.html Online documentation}
11698
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaPlayerRepairedEntityEventFilter.html Online documentation}
11574
11699
  */
11575
11700
  export type LuaPlayerRepairedEntityEventFilter =
11576
11701
  | TypePlayerRepairedEntityEventFilter
@@ -11616,7 +11741,7 @@ declare module "factorio:runtime" {
11616
11741
  *
11617
11742
  * Other attributes may be specified depending on `filter`:
11618
11743
  * - `"type"`: {@link TypePostEntityDiedEventFilter}
11619
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaPostEntityDiedEventFilter.html Online documentation}
11744
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaPostEntityDiedEventFilter.html Online documentation}
11620
11745
  */
11621
11746
  export type LuaPostEntityDiedEventFilter = TypePostEntityDiedEventFilter | OtherPostEntityDiedEventFilter
11622
11747
  /**
@@ -11716,7 +11841,7 @@ declare module "factorio:runtime" {
11716
11841
  * - `"name"`: {@link NamePreGhostDeconstructedEventFilter}
11717
11842
  * - `"ghost_type"`: {@link GhostTypePreGhostDeconstructedEventFilter}
11718
11843
  * - `"ghost_name"`: {@link GhostNamePreGhostDeconstructedEventFilter}
11719
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaPreGhostDeconstructedEventFilter.html Online documentation}
11844
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaPreGhostDeconstructedEventFilter.html Online documentation}
11720
11845
  */
11721
11846
  export type LuaPreGhostDeconstructedEventFilter =
11722
11847
  | TypePreGhostDeconstructedEventFilter
@@ -11821,7 +11946,7 @@ declare module "factorio:runtime" {
11821
11946
  * - `"name"`: {@link NamePlayerMinedEntityEventFilter}
11822
11947
  * - `"ghost_type"`: {@link GhostTypePlayerMinedEntityEventFilter}
11823
11948
  * - `"ghost_name"`: {@link GhostNamePlayerMinedEntityEventFilter}
11824
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaPlayerMinedEntityEventFilter.html Online documentation}
11949
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaPlayerMinedEntityEventFilter.html Online documentation}
11825
11950
  */
11826
11951
  export type LuaPlayerMinedEntityEventFilter =
11827
11952
  | TypePlayerMinedEntityEventFilter
@@ -11926,7 +12051,7 @@ declare module "factorio:runtime" {
11926
12051
  * - `"name"`: {@link NameSectorScannedEventFilter}
11927
12052
  * - `"ghost_type"`: {@link GhostTypeSectorScannedEventFilter}
11928
12053
  * - `"ghost_name"`: {@link GhostNameSectorScannedEventFilter}
11929
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaSectorScannedEventFilter.html Online documentation}
12054
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaSectorScannedEventFilter.html Online documentation}
11930
12055
  */
11931
12056
  export type LuaSectorScannedEventFilter =
11932
12057
  | TypeSectorScannedEventFilter
@@ -12031,7 +12156,7 @@ declare module "factorio:runtime" {
12031
12156
  * - `"name"`: {@link NameRobotMinedEntityEventFilter}
12032
12157
  * - `"ghost_type"`: {@link GhostTypeRobotMinedEntityEventFilter}
12033
12158
  * - `"ghost_name"`: {@link GhostNameRobotMinedEntityEventFilter}
12034
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaRobotMinedEntityEventFilter.html Online documentation}
12159
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaRobotMinedEntityEventFilter.html Online documentation}
12035
12160
  */
12036
12161
  export type LuaRobotMinedEntityEventFilter =
12037
12162
  | TypeRobotMinedEntityEventFilter
@@ -12138,7 +12263,7 @@ declare module "factorio:runtime" {
12138
12263
  * - `"name"`: {@link NameEntityMarkedForDeconstructionEventFilter}
12139
12264
  * - `"ghost_type"`: {@link GhostTypeEntityMarkedForDeconstructionEventFilter}
12140
12265
  * - `"ghost_name"`: {@link GhostNameEntityMarkedForDeconstructionEventFilter}
12141
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaEntityMarkedForDeconstructionEventFilter.html Online documentation}
12266
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaEntityMarkedForDeconstructionEventFilter.html Online documentation}
12142
12267
  */
12143
12268
  export type LuaEntityMarkedForDeconstructionEventFilter =
12144
12269
  | TypeEntityMarkedForDeconstructionEventFilter
@@ -12243,7 +12368,7 @@ declare module "factorio:runtime" {
12243
12368
  * - `"name"`: {@link NameScriptRaisedReviveEventFilter}
12244
12369
  * - `"ghost_type"`: {@link GhostTypeScriptRaisedReviveEventFilter}
12245
12370
  * - `"ghost_name"`: {@link GhostNameScriptRaisedReviveEventFilter}
12246
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaScriptRaisedReviveEventFilter.html Online documentation}
12371
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaScriptRaisedReviveEventFilter.html Online documentation}
12247
12372
  */
12248
12373
  export type LuaScriptRaisedReviveEventFilter =
12249
12374
  | TypeScriptRaisedReviveEventFilter
@@ -12360,7 +12485,7 @@ declare module "factorio:runtime" {
12360
12485
  * - `"ghost_type"`: {@link GhostTypePlayerBuiltEntityEventFilter}
12361
12486
  * - `"ghost_name"`: {@link GhostNamePlayerBuiltEntityEventFilter}
12362
12487
  * - `"force"`: {@link ForcePlayerBuiltEntityEventFilter}
12363
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaPlayerBuiltEntityEventFilter.html Online documentation}
12488
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaPlayerBuiltEntityEventFilter.html Online documentation}
12364
12489
  */
12365
12490
  export type LuaPlayerBuiltEntityEventFilter =
12366
12491
  | TypePlayerBuiltEntityEventFilter
@@ -12466,7 +12591,7 @@ declare module "factorio:runtime" {
12466
12591
  * - `"name"`: {@link NameUpgradeCancelledEventFilter}
12467
12592
  * - `"ghost_type"`: {@link GhostTypeUpgradeCancelledEventFilter}
12468
12593
  * - `"ghost_name"`: {@link GhostNameUpgradeCancelledEventFilter}
12469
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaUpgradeCancelledEventFilter.html Online documentation}
12594
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaUpgradeCancelledEventFilter.html Online documentation}
12470
12595
  */
12471
12596
  export type LuaUpgradeCancelledEventFilter =
12472
12597
  | TypeUpgradeCancelledEventFilter
@@ -12646,7 +12771,7 @@ declare module "factorio:runtime" {
12646
12771
  * - `"final-damage-amount"`: {@link FinalDamageAmountEntityDamagedEventFilter}
12647
12772
  * - `"damage-type"`: {@link DamageTypeEntityDamagedEventFilter}
12648
12773
  * - `"final-health"`: {@link FinalHealthEntityDamagedEventFilter}
12649
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaEntityDamagedEventFilter.html Online documentation}
12774
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaEntityDamagedEventFilter.html Online documentation}
12650
12775
  */
12651
12776
  export type LuaEntityDamagedEventFilter =
12652
12777
  | TypeEntityDamagedEventFilter
@@ -12660,7 +12785,7 @@ declare module "factorio:runtime" {
12660
12785
  | OtherEntityDamagedEventFilter
12661
12786
  /**
12662
12787
  * Write form of {@link LuaEntityDamagedEventFilter}, where some properties allow additional values as input compared to the read form.
12663
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaEntityDamagedEventFilter.html Online documentation}
12788
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaEntityDamagedEventFilter.html Online documentation}
12664
12789
  */
12665
12790
  export type LuaEntityDamagedEventFilterWrite =
12666
12791
  | TypeEntityDamagedEventFilter
@@ -12695,6 +12820,7 @@ declare module "factorio:runtime" {
12695
12820
  | "name"
12696
12821
  | "ghost_type"
12697
12822
  | "ghost_name"
12823
+ | "force"
12698
12824
  /**
12699
12825
  * How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
12700
12826
  */
@@ -12744,6 +12870,16 @@ declare module "factorio:runtime" {
12744
12870
  */
12745
12871
  readonly name: string
12746
12872
  }
12873
+ /**
12874
+ * `"force"` variant of {@link LuaEntityDiedEventFilter}.
12875
+ */
12876
+ export interface ForceEntityDiedEventFilter extends BaseEntityDiedEventFilter {
12877
+ readonly filter: "force"
12878
+ /**
12879
+ * The entity force
12880
+ */
12881
+ readonly force: string
12882
+ }
12747
12883
  /**
12748
12884
  * Variants of {@link LuaEntityDiedEventFilter} with no additional attributes.
12749
12885
  */
@@ -12769,13 +12905,15 @@ declare module "factorio:runtime" {
12769
12905
  * - `"name"`: {@link NameEntityDiedEventFilter}
12770
12906
  * - `"ghost_type"`: {@link GhostTypeEntityDiedEventFilter}
12771
12907
  * - `"ghost_name"`: {@link GhostNameEntityDiedEventFilter}
12772
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaEntityDiedEventFilter.html Online documentation}
12908
+ * - `"force"`: {@link ForceEntityDiedEventFilter}
12909
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaEntityDiedEventFilter.html Online documentation}
12773
12910
  */
12774
12911
  export type LuaEntityDiedEventFilter =
12775
12912
  | TypeEntityDiedEventFilter
12776
12913
  | NameEntityDiedEventFilter
12777
12914
  | GhostTypeEntityDiedEventFilter
12778
12915
  | GhostNameEntityDiedEventFilter
12916
+ | ForceEntityDiedEventFilter
12779
12917
  | OtherEntityDiedEventFilter
12780
12918
  /**
12781
12919
  * Common attributes to all variants of {@link LuaEntityMarkedForUpgradeEventFilter}.
@@ -12874,7 +13012,7 @@ declare module "factorio:runtime" {
12874
13012
  * - `"name"`: {@link NameEntityMarkedForUpgradeEventFilter}
12875
13013
  * - `"ghost_type"`: {@link GhostTypeEntityMarkedForUpgradeEventFilter}
12876
13014
  * - `"ghost_name"`: {@link GhostNameEntityMarkedForUpgradeEventFilter}
12877
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaEntityMarkedForUpgradeEventFilter.html Online documentation}
13015
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaEntityMarkedForUpgradeEventFilter.html Online documentation}
12878
13016
  */
12879
13017
  export type LuaEntityMarkedForUpgradeEventFilter =
12880
13018
  | TypeEntityMarkedForUpgradeEventFilter
@@ -12979,7 +13117,7 @@ declare module "factorio:runtime" {
12979
13117
  * - `"name"`: {@link NameScriptRaisedDestroyEventFilter}
12980
13118
  * - `"ghost_type"`: {@link GhostTypeScriptRaisedDestroyEventFilter}
12981
13119
  * - `"ghost_name"`: {@link GhostNameScriptRaisedDestroyEventFilter}
12982
- * @see {@link https://lua-api.factorio.com/2.0.55/concepts/LuaScriptRaisedDestroyEventFilter.html Online documentation}
13120
+ * @see {@link https://lua-api.factorio.com/2.0.58/concepts/LuaScriptRaisedDestroyEventFilter.html Online documentation}
12983
13121
  */
12984
13122
  export type LuaScriptRaisedDestroyEventFilter =
12985
13123
  | TypeScriptRaisedDestroyEventFilter