typed-factorio 3.32.0 → 3.35.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.
- package/package.json +2 -2
- package/prototype/generated/prototypes.d.ts +2253 -2235
- package/prototype/generated/types.d.ts +2191 -2194
- package/runtime/generated/classes.d.ts +4244 -4194
- package/runtime/generated/concepts.d.ts +624 -468
- package/runtime/generated/defines.d.ts +219 -216
- package/runtime/generated/events.d.ts +219 -219
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +7 -7
|
@@ -12,7 +12,7 @@ import type { VersionString } from "factorio:common"
|
|
|
12
12
|
declare module "factorio:runtime" {
|
|
13
13
|
/**
|
|
14
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.
|
|
15
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Weight.html Online documentation}
|
|
16
16
|
*/
|
|
17
17
|
export type Weight = double
|
|
18
18
|
export interface CircularParticleCreationSpecification {
|
|
@@ -39,7 +39,7 @@ declare module "factorio:runtime" {
|
|
|
39
39
|
* ## Union members
|
|
40
40
|
* - `"input"`
|
|
41
41
|
* - `"output"`
|
|
42
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
42
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BeltConnectionType.html Online documentation}
|
|
43
43
|
*/
|
|
44
44
|
export type BeltConnectionType = "input" | "output"
|
|
45
45
|
/**
|
|
@@ -50,7 +50,7 @@ declare module "factorio:runtime" {
|
|
|
50
50
|
* - {@link FluidID}: Used with fluid production statistics.
|
|
51
51
|
* - {@link EntityWithQualityID}: Used with electric network, entity build count, and kill count statistics.
|
|
52
52
|
* - {@link EntityID}: Used with pollution statistics.
|
|
53
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
53
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/FlowStatisticsID.html Online documentation}
|
|
54
54
|
*/
|
|
55
55
|
export type FlowStatisticsID = ItemWithQualityID | FluidID | EntityWithQualityID | EntityID
|
|
56
56
|
export type ItemStackIndex = uint16
|
|
@@ -72,7 +72,7 @@ declare module "factorio:runtime" {
|
|
|
72
72
|
* - `"<="`: "lesser than or equal to"
|
|
73
73
|
* - `"≠"`: "not equal to"
|
|
74
74
|
* - `"!="`: "not equal to"
|
|
75
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
75
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ComparatorString.html Online documentation}
|
|
76
76
|
*/
|
|
77
77
|
export type ComparatorString = "=" | ">" | "<" | "≥" | ">=" | "≤" | "<=" | "≠" | "!="
|
|
78
78
|
export type ComparatorStringRead = "=" | ">" | "<" | "≥" | "≤" | "≠"
|
|
@@ -103,93 +103,93 @@ declare module "factorio:runtime" {
|
|
|
103
103
|
*
|
|
104
104
|
* The validity of a SpritePath can be verified at runtime using {@link LuaHelpers#is_valid_sprite_path LuaHelpers::is_valid_sprite_path}.
|
|
105
105
|
*
|
|
106
|
-
* {@link https://lua-api.factorio.com/2.0.
|
|
107
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
106
|
+
* {@link https://lua-api.factorio.com/2.0.75/concepts/SpritePath.html > The supported types are:}
|
|
107
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SpritePath.html Online documentation}
|
|
108
108
|
*/
|
|
109
109
|
export type SpritePath = (string & { _?: never }) | `${SpriteType}${"/" | "."}${string}`
|
|
110
110
|
/**
|
|
111
111
|
* 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.
|
|
112
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
112
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.html Online documentation}
|
|
113
113
|
*/
|
|
114
114
|
export interface GameViewSettings {
|
|
115
115
|
/**
|
|
116
116
|
* Show the controller GUI elements. This includes the toolbar, the selected tool slot, the armour slot, and the gun and ammunition slots.
|
|
117
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
117
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.show_controller_gui.html Online documentation}
|
|
118
118
|
*/
|
|
119
119
|
show_controller_gui: boolean
|
|
120
120
|
/**
|
|
121
121
|
* Show the chart in the upper right-hand corner of the screen.
|
|
122
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
122
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.show_minimap.html Online documentation}
|
|
123
123
|
*/
|
|
124
124
|
show_minimap: boolean
|
|
125
125
|
/**
|
|
126
126
|
* Show research progress and name in the upper right-hand corner of the screen.
|
|
127
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
127
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.show_research_info.html Online documentation}
|
|
128
128
|
*/
|
|
129
129
|
show_research_info: boolean
|
|
130
130
|
/**
|
|
131
131
|
* Show overlay icons on entities. Also known as "alt-mode".
|
|
132
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
132
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.show_entity_info.html Online documentation}
|
|
133
133
|
*/
|
|
134
134
|
show_entity_info: boolean
|
|
135
135
|
/**
|
|
136
136
|
* Show the flashing alert icons next to the player's toolbar.
|
|
137
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
137
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.show_alert_gui.html Online documentation}
|
|
138
138
|
*/
|
|
139
139
|
show_alert_gui: boolean
|
|
140
140
|
/**
|
|
141
141
|
* When `true` (the default), mousing over an entity will select it. Otherwise, moving the mouse won't update entity selection.
|
|
142
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
142
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.update_entity_selection.html Online documentation}
|
|
143
143
|
*/
|
|
144
144
|
update_entity_selection: boolean
|
|
145
145
|
/**
|
|
146
146
|
* When `true` (`false` is default), the rails will always show the rail block visualisation.
|
|
147
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
147
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.show_rail_block_visualisation.html Online documentation}
|
|
148
148
|
*/
|
|
149
149
|
show_rail_block_visualisation: boolean
|
|
150
150
|
/**
|
|
151
151
|
* Shows or hides the buttons row.
|
|
152
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
152
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.show_side_menu.html Online documentation}
|
|
153
153
|
*/
|
|
154
154
|
show_side_menu: boolean
|
|
155
155
|
/**
|
|
156
156
|
* Shows or hides the view options when map is opened.
|
|
157
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
157
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.show_map_view_options.html Online documentation}
|
|
158
158
|
*/
|
|
159
159
|
show_map_view_options: boolean
|
|
160
160
|
/**
|
|
161
161
|
* Shows or hides the tooltip that is displayed when selecting an entity.
|
|
162
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
162
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.show_entity_tooltip.html Online documentation}
|
|
163
163
|
*/
|
|
164
164
|
show_entity_tooltip: boolean
|
|
165
165
|
/**
|
|
166
166
|
* Shows or hides quickbar of shortcuts.
|
|
167
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
167
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.show_quickbar.html Online documentation}
|
|
168
168
|
*/
|
|
169
169
|
show_quickbar: boolean
|
|
170
170
|
/**
|
|
171
171
|
* Shows or hides the shortcut bar.
|
|
172
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
172
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.show_shortcut_bar.html Online documentation}
|
|
173
173
|
*/
|
|
174
174
|
show_shortcut_bar: boolean
|
|
175
175
|
/**
|
|
176
176
|
* Shows or hides the crafting queue.
|
|
177
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
177
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.show_crafting_queue.html Online documentation}
|
|
178
178
|
*/
|
|
179
179
|
show_crafting_queue: boolean
|
|
180
180
|
/**
|
|
181
181
|
* Shows or hides the tool window with the weapons and armor.
|
|
182
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
182
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.show_tool_bar.html Online documentation}
|
|
183
183
|
*/
|
|
184
184
|
show_tool_bar: boolean
|
|
185
185
|
/**
|
|
186
186
|
* Shows or hides the mouse and keyboard/controller button hints in the bottom left corner if they are enabled in the interface settings.
|
|
187
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
187
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.show_hotkey_suggestions.html Online documentation}
|
|
188
188
|
*/
|
|
189
189
|
show_hotkey_suggestions: boolean
|
|
190
190
|
/**
|
|
191
191
|
* Shows or hides the surface list while in Remote View.
|
|
192
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
192
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GameViewSettings.show_surface_list.html Online documentation}
|
|
193
193
|
*/
|
|
194
194
|
show_surface_list: boolean
|
|
195
195
|
}
|
|
@@ -201,7 +201,7 @@ declare module "factorio:runtime" {
|
|
|
201
201
|
* @example
|
|
202
202
|
* -- Most common collision mask of buildings:
|
|
203
203
|
* collision_mask = {layers = {item = true, meltable = true, object = true, player = true, water_tile = true, is_object = true, is_lower_object = true}}
|
|
204
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
204
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/CollisionMask.html Online documentation}
|
|
205
205
|
*/
|
|
206
206
|
export interface CollisionMask {
|
|
207
207
|
/**
|
|
@@ -243,14 +243,14 @@ declare module "factorio:runtime" {
|
|
|
243
243
|
* The percentual increase of the attribute. A value of `0.6` means a 60% increase.
|
|
244
244
|
*
|
|
245
245
|
* Quality values are multiplied by {@link LuaQualityPrototype#next_probability LuaQualityPrototype::next_probability}. For example, if a module's quality effect is 0.2 and the current quality's next_probability is 0.1, then the chance to get the next quality item is 2%.
|
|
246
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
246
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ModuleEffectValue.html Online documentation}
|
|
247
247
|
*/
|
|
248
248
|
export type ModuleEffectValue = float
|
|
249
249
|
/**
|
|
250
250
|
* @example
|
|
251
251
|
* -- These are the effects of the vanilla Speed Module 3
|
|
252
252
|
* {speed = 0.5, consumption = 0.7, quality = -0.25}
|
|
253
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
253
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ModuleEffects.html Online documentation}
|
|
254
254
|
*/
|
|
255
255
|
export interface ModuleEffects {
|
|
256
256
|
readonly consumption?: ModuleEffectValue
|
|
@@ -261,12 +261,12 @@ declare module "factorio:runtime" {
|
|
|
261
261
|
}
|
|
262
262
|
/**
|
|
263
263
|
* `math.huge` represents the maximum possible tick.
|
|
264
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
264
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/MapTick.html Online documentation}
|
|
265
265
|
*/
|
|
266
266
|
export type MapTick = uint64
|
|
267
267
|
/**
|
|
268
268
|
* @see BlueprintSignalIconWrite
|
|
269
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
269
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintSignalIcon.html Online documentation}
|
|
270
270
|
*/
|
|
271
271
|
export interface BlueprintSignalIcon {
|
|
272
272
|
/**
|
|
@@ -280,7 +280,7 @@ declare module "factorio:runtime" {
|
|
|
280
280
|
}
|
|
281
281
|
/**
|
|
282
282
|
* Write form of {@link BlueprintSignalIcon}, where some properties allow additional values as input compared to the read form.
|
|
283
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
283
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintSignalIcon.html Online documentation}
|
|
284
284
|
*/
|
|
285
285
|
export interface BlueprintSignalIconWrite {
|
|
286
286
|
/**
|
|
@@ -368,7 +368,7 @@ declare module "factorio:runtime" {
|
|
|
368
368
|
* - `"collision-selection-box"`: 189
|
|
369
369
|
* - `"arrow"`: 190
|
|
370
370
|
* - `"cursor"`: 226
|
|
371
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
371
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/RenderLayer.html Online documentation}
|
|
372
372
|
*/
|
|
373
373
|
export type RenderLayer =
|
|
374
374
|
| `${bigint}`
|
|
@@ -451,7 +451,7 @@ declare module "factorio:runtime" {
|
|
|
451
451
|
}
|
|
452
452
|
/**
|
|
453
453
|
* What is shown in the map view. If a field is not given, that setting will not be changed.
|
|
454
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
454
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/MapViewSettings.html Online documentation}
|
|
455
455
|
*/
|
|
456
456
|
export interface MapViewSettings {
|
|
457
457
|
readonly "show-logistic-network"?: boolean
|
|
@@ -481,7 +481,7 @@ declare module "factorio:runtime" {
|
|
|
481
481
|
* - `"blueprint-snap-rectangle"`: Green by default.
|
|
482
482
|
* - `"spidertron-remote-selected"`
|
|
483
483
|
* - `"spidertron-remote-to-be-selected"`
|
|
484
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
484
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/CursorBoxRenderType.html Online documentation}
|
|
485
485
|
*/
|
|
486
486
|
export type CursorBoxRenderType =
|
|
487
487
|
| "entity"
|
|
@@ -508,7 +508,7 @@ declare module "factorio:runtime" {
|
|
|
508
508
|
* The name of a {@link LuaCollisionLayerPrototype}.
|
|
509
509
|
* @example
|
|
510
510
|
* "is_lower_object"
|
|
511
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
511
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/CollisionLayerID.html Online documentation}
|
|
512
512
|
*/
|
|
513
513
|
export type CollisionLayerID = string
|
|
514
514
|
/**
|
|
@@ -520,7 +520,7 @@ declare module "factorio:runtime" {
|
|
|
520
520
|
* - `"always"`
|
|
521
521
|
* - `"auto"`
|
|
522
522
|
* - `"auto-and-reserve-space"`
|
|
523
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
523
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ScrollPolicy.html Online documentation}
|
|
524
524
|
*/
|
|
525
525
|
export type ScrollPolicy = "never" | "dont-show-but-allow-scrolling" | "always" | "auto" | "auto-and-reserve-space"
|
|
526
526
|
/**
|
|
@@ -538,7 +538,7 @@ declare module "factorio:runtime" {
|
|
|
538
538
|
* - `"button-7"`
|
|
539
539
|
* - `"button-8"`
|
|
540
540
|
* - `"button-9"`
|
|
541
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
541
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/MouseButtonFlags.html Online documentation}
|
|
542
542
|
*/
|
|
543
543
|
export interface MouseButtonFlags {
|
|
544
544
|
readonly left?: true
|
|
@@ -559,7 +559,7 @@ declare module "factorio:runtime" {
|
|
|
559
559
|
* - `"left"`
|
|
560
560
|
* - `"right"`
|
|
561
561
|
* - `"none"`
|
|
562
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
562
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SwitchState.html Online documentation}
|
|
563
563
|
*/
|
|
564
564
|
export type SwitchState = "left" | "right" | "none"
|
|
565
565
|
/**
|
|
@@ -589,7 +589,7 @@ declare module "factorio:runtime" {
|
|
|
589
589
|
* - `"tabbed-pane"`: A collection of `tab`s and their contents. Relevant event: {@link OnGuiSelectedTabChangedEvent on_gui_selected_tab_changed}
|
|
590
590
|
* - `"tab"`: A tab for use in a `tabbed-pane`.
|
|
591
591
|
* - `"switch"`: A switch with three possible states. Can have labels attached to either side. Relevant event: {@link OnGuiSwitchStateChangedEvent on_gui_switch_state_changed}
|
|
592
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
592
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GuiElementType.html Online documentation}
|
|
593
593
|
*/
|
|
594
594
|
export type GuiElementType =
|
|
595
595
|
| "button"
|
|
@@ -652,7 +652,7 @@ declare module "factorio:runtime" {
|
|
|
652
652
|
* - `"entity-with-quality"`
|
|
653
653
|
* - `"recipe-with-quality"`
|
|
654
654
|
* - `"equipment-with-quality"`
|
|
655
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
655
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ElemType.html Online documentation}
|
|
656
656
|
*/
|
|
657
657
|
export type ElemType =
|
|
658
658
|
| "achievement"
|
|
@@ -692,13 +692,13 @@ declare module "factorio:runtime" {
|
|
|
692
692
|
* @see VectorTable
|
|
693
693
|
* @example
|
|
694
694
|
* right = {1.0, 0.0}
|
|
695
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
695
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Vector.html Online documentation}
|
|
696
696
|
*/
|
|
697
697
|
export type Vector = readonly [float, float]
|
|
698
698
|
/**
|
|
699
699
|
* Table form of {@link Vector}.
|
|
700
700
|
* @see Vector
|
|
701
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
701
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Vector.html Online documentation}
|
|
702
702
|
*/
|
|
703
703
|
export interface VectorTable {
|
|
704
704
|
readonly x: float
|
|
@@ -707,7 +707,7 @@ declare module "factorio:runtime" {
|
|
|
707
707
|
/**
|
|
708
708
|
* 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.
|
|
709
709
|
* @see ChunkPositionArray
|
|
710
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
710
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ChunkPosition.html Online documentation}
|
|
711
711
|
*/
|
|
712
712
|
export interface ChunkPosition {
|
|
713
713
|
readonly x: int32
|
|
@@ -716,7 +716,7 @@ declare module "factorio:runtime" {
|
|
|
716
716
|
/**
|
|
717
717
|
* Array form of {@link ChunkPosition}.
|
|
718
718
|
* @see ChunkPosition
|
|
719
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
719
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ChunkPosition.html Online documentation}
|
|
720
720
|
*/
|
|
721
721
|
export type ChunkPositionArray = readonly [int32, int32]
|
|
722
722
|
export interface ItemStackLocation {
|
|
@@ -740,7 +740,7 @@ declare module "factorio:runtime" {
|
|
|
740
740
|
/**
|
|
741
741
|
* An item filter may be specified in two ways, either as a string which is an item prototype name or as a table.
|
|
742
742
|
* @see ItemFilterWrite
|
|
743
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
743
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ItemFilter.html Online documentation}
|
|
744
744
|
*/
|
|
745
745
|
export type ItemFilter =
|
|
746
746
|
| {
|
|
@@ -760,7 +760,7 @@ declare module "factorio:runtime" {
|
|
|
760
760
|
| string
|
|
761
761
|
/**
|
|
762
762
|
* Write form of {@link ItemFilter}, where some properties allow additional values as input compared to the read form.
|
|
763
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
763
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ItemFilter.html Online documentation}
|
|
764
764
|
*/
|
|
765
765
|
export type ItemFilterWrite =
|
|
766
766
|
| {
|
|
@@ -778,6 +778,40 @@ declare module "factorio:runtime" {
|
|
|
778
778
|
readonly comparator?: ComparatorString
|
|
779
779
|
}
|
|
780
780
|
| string
|
|
781
|
+
/**
|
|
782
|
+
* Localised strings are a way to support translation of in-game text. They offer a language-independent code representation of the text that should be shown to players.
|
|
783
|
+
*
|
|
784
|
+
* 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.
|
|
785
|
+
*
|
|
786
|
+
* The key identifies the string template. For example, `"gui-alert-tooltip.attack"` (for the template `"__1__ objects are being damaged"`; see the file `data/core/locale/en.cfg`).
|
|
787
|
+
*
|
|
788
|
+
* The template can contain placeholders such as `__1__` or `__2__`. These will be replaced by the respective parameter in the LocalisedString. The parameters themselves can be other localised strings, which will be processed recursively in the same fashion. Localised strings can not be recursed deeper than 20 levels and can not have more than 20 parameters.
|
|
789
|
+
*
|
|
790
|
+
* There are two special flags for the localised string, indicated by the key being a particular string. First, if the key is the empty string (`""`), then all parameters will be concatenated (after processing, if any are localised strings themselves). Second, if the key is a question mark (`"?"`), then the first valid parameter will be used. A parameter can be invalid if its name doesn't match any string template. If no parameters are valid, the last one is returned. This is useful to implement a fallback for missing locale templates.
|
|
791
|
+
*
|
|
792
|
+
* Furthermore, when an API function expects a localised string, it will also accept a regular string (i.e. not a table) which will not be translated, as well as a number, boolean or `nil`, which will be converted to their textual representation.
|
|
793
|
+
* @example
|
|
794
|
+
* -- In the English translation, this will print "No ammo"; in the Czech translation, it will print "Bez munice":
|
|
795
|
+
* game.player.print({"description.no-ammo"})
|
|
796
|
+
* -- The 'description.no-ammo' template contains no placeholders, so no further parameters are necessary.
|
|
797
|
+
* @example
|
|
798
|
+
* -- In the English translation, this will print "Durability: 5/9"; in the Japanese one, it will print "耐久度: 5/9":
|
|
799
|
+
* game.player.print({"description.durability", 5, 9})
|
|
800
|
+
* @example
|
|
801
|
+
* -- This will print "hello" in all translations:
|
|
802
|
+
* game.player.print({"", "hello"})
|
|
803
|
+
* @example
|
|
804
|
+
* -- This will print "Iron plate: 60" in the English translation and "Eisenplatte: 60" in the German translation.
|
|
805
|
+
* game.print({"", {"item-name.iron-plate"}, ": ", 60})
|
|
806
|
+
* @example
|
|
807
|
+
* -- As an example of a localised string with fallback, consider this:
|
|
808
|
+
* {"?", {"", {"entity-description.furnace"}, "\n"}, {"item-description.furnace"}, "optional fallback"}
|
|
809
|
+
* -- If 'entity-description.furnace' exists, it is concatenated with "\n" and returned. Otherwise, if 'item-description.furnace'
|
|
810
|
+
* -- exists, it is returned as-is. Otherwise, "optional fallback" is returned. If this value wasn't specified, the
|
|
811
|
+
* -- translation result would be "Unknown key: 'item-description.furnace'".
|
|
812
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LocalisedString.html Online documentation}
|
|
813
|
+
*/
|
|
814
|
+
export type LocalisedString = string | number | boolean | LuaObject | nil | [string, ...LocalisedString[]]
|
|
781
815
|
export interface BaseCommand {
|
|
782
816
|
/**
|
|
783
817
|
* Type of command. The remaining fields depend on the value of this field.
|
|
@@ -1016,7 +1050,7 @@ declare module "factorio:runtime" {
|
|
|
1016
1050
|
* - {@link defines.command.stop}: {@link StopCommand}
|
|
1017
1051
|
* - {@link defines.command.flee}: {@link FleeCommand}
|
|
1018
1052
|
* - {@link defines.command.build_base}: {@link BuildBaseCommand}
|
|
1019
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1053
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Command.html Online documentation}
|
|
1020
1054
|
*/
|
|
1021
1055
|
export type Command =
|
|
1022
1056
|
| AttackCommand
|
|
@@ -1030,7 +1064,7 @@ declare module "factorio:runtime" {
|
|
|
1030
1064
|
| BuildBaseCommand
|
|
1031
1065
|
/**
|
|
1032
1066
|
* Write form of {@link Command}, where some properties allow additional values as input compared to the read form.
|
|
1033
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1067
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Command.html Online documentation}
|
|
1034
1068
|
*/
|
|
1035
1069
|
export type CommandWrite =
|
|
1036
1070
|
| AttackCommand
|
|
@@ -1107,7 +1141,7 @@ declare module "factorio:runtime" {
|
|
|
1107
1141
|
* - `"position"`: {@link PositionGuiArrowSpecification}
|
|
1108
1142
|
* - `"crafting_queue"`: {@link CraftingQueueGuiArrowSpecification}
|
|
1109
1143
|
* - `"item_stack"`: {@link ItemStackGuiArrowSpecification}
|
|
1110
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1144
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GuiArrowSpecification.html Online documentation}
|
|
1111
1145
|
*/
|
|
1112
1146
|
export type GuiArrowSpecification =
|
|
1113
1147
|
| EntityGuiArrowSpecification
|
|
@@ -1127,7 +1161,7 @@ declare module "factorio:runtime" {
|
|
|
1127
1161
|
* - `"position"`
|
|
1128
1162
|
* - `"crafting_queue"`
|
|
1129
1163
|
* - `"item_stack"`: Will point to a given item stack in an inventory.
|
|
1130
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1164
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GuiArrowType.html Online documentation}
|
|
1131
1165
|
*/
|
|
1132
1166
|
export type GuiArrowType =
|
|
1133
1167
|
| "nowhere"
|
|
@@ -1143,7 +1177,7 @@ declare module "factorio:runtime" {
|
|
|
1143
1177
|
*
|
|
1144
1178
|
* If this is specified as a three-element array then the array items are x, y and z, in that order.
|
|
1145
1179
|
* @see Vector3DArray
|
|
1146
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1180
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Vector3D.html Online documentation}
|
|
1147
1181
|
*/
|
|
1148
1182
|
export interface Vector3D {
|
|
1149
1183
|
readonly x: float
|
|
@@ -1153,7 +1187,7 @@ declare module "factorio:runtime" {
|
|
|
1153
1187
|
/**
|
|
1154
1188
|
* Array form of {@link Vector3D}.
|
|
1155
1189
|
* @see Vector3D
|
|
1156
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1190
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Vector3D.html Online documentation}
|
|
1157
1191
|
*/
|
|
1158
1192
|
export type Vector3DArray = readonly [float, float, float]
|
|
1159
1193
|
export interface RidingState {
|
|
@@ -1187,7 +1221,7 @@ declare module "factorio:runtime" {
|
|
|
1187
1221
|
}
|
|
1188
1222
|
/**
|
|
1189
1223
|
* @see TrainScheduleWrite
|
|
1190
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1224
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TrainSchedule.html Online documentation}
|
|
1191
1225
|
*/
|
|
1192
1226
|
export interface TrainSchedule {
|
|
1193
1227
|
/**
|
|
@@ -1198,7 +1232,7 @@ declare module "factorio:runtime" {
|
|
|
1198
1232
|
}
|
|
1199
1233
|
/**
|
|
1200
1234
|
* Write form of {@link TrainSchedule}, where some properties allow additional values as input compared to the read form.
|
|
1201
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1235
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TrainSchedule.html Online documentation}
|
|
1202
1236
|
*/
|
|
1203
1237
|
export interface TrainScheduleWrite {
|
|
1204
1238
|
/**
|
|
@@ -1209,7 +1243,7 @@ declare module "factorio:runtime" {
|
|
|
1209
1243
|
}
|
|
1210
1244
|
/**
|
|
1211
1245
|
* @see PlatformScheduleWrite
|
|
1212
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1246
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/PlatformSchedule.html Online documentation}
|
|
1213
1247
|
*/
|
|
1214
1248
|
export interface PlatformSchedule {
|
|
1215
1249
|
/**
|
|
@@ -1220,7 +1254,7 @@ declare module "factorio:runtime" {
|
|
|
1220
1254
|
}
|
|
1221
1255
|
/**
|
|
1222
1256
|
* Write form of {@link PlatformSchedule}, where some properties allow additional values as input compared to the read form.
|
|
1223
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1257
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/PlatformSchedule.html Online documentation}
|
|
1224
1258
|
*/
|
|
1225
1259
|
export interface PlatformScheduleWrite {
|
|
1226
1260
|
/**
|
|
@@ -1245,7 +1279,7 @@ declare module "factorio:runtime" {
|
|
|
1245
1279
|
}
|
|
1246
1280
|
/**
|
|
1247
1281
|
* A recipe prototype with optional quality specification.
|
|
1248
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1282
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/RecipeIDAndQualityIDPair.html Online documentation}
|
|
1249
1283
|
*/
|
|
1250
1284
|
export interface RecipeIDAndQualityIDPair {
|
|
1251
1285
|
/**
|
|
@@ -1289,7 +1323,7 @@ declare module "factorio:runtime" {
|
|
|
1289
1323
|
}
|
|
1290
1324
|
/**
|
|
1291
1325
|
* A runtime representation of {@link SegmentEngineSpecification}.
|
|
1292
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1326
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SegmentEngineSpecification.html Online documentation}
|
|
1293
1327
|
*/
|
|
1294
1328
|
export interface SegmentEngineSpecification {
|
|
1295
1329
|
/**
|
|
@@ -1303,7 +1337,7 @@ declare module "factorio:runtime" {
|
|
|
1303
1337
|
}
|
|
1304
1338
|
/**
|
|
1305
1339
|
* A runtime representation of {@link SegmentSpecification}.
|
|
1306
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1340
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SegmentSpecification.html Online documentation}
|
|
1307
1341
|
*/
|
|
1308
1342
|
export interface SegmentSpecification {
|
|
1309
1343
|
/**
|
|
@@ -1317,7 +1351,7 @@ declare module "factorio:runtime" {
|
|
|
1317
1351
|
}
|
|
1318
1352
|
/**
|
|
1319
1353
|
* A runtime representation of {@link TileBuildabilityRule}.
|
|
1320
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1354
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TileBuildabilityRule.html Online documentation}
|
|
1321
1355
|
*/
|
|
1322
1356
|
export interface TileBuildabilityRule {
|
|
1323
1357
|
/**
|
|
@@ -1356,7 +1390,7 @@ declare module "factorio:runtime" {
|
|
|
1356
1390
|
* - `string`: Name of the force, same as {@link LuaForce#name LuaForce::name}.
|
|
1357
1391
|
* - {@link uint8}: Index of the force, same as {@link LuaForce#index LuaForce::index}.
|
|
1358
1392
|
* - {@link LuaForce}: A reference to {@link LuaForce} may be passed directly.
|
|
1359
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1393
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ForceID.html Online documentation}
|
|
1360
1394
|
*/
|
|
1361
1395
|
export type ForceID = string | uint8 | LuaForce
|
|
1362
1396
|
/**
|
|
@@ -1366,7 +1400,7 @@ declare module "factorio:runtime" {
|
|
|
1366
1400
|
* - `string`: The fluid name.
|
|
1367
1401
|
* - {@link LuaFluidPrototype}: The fluid prototype.
|
|
1368
1402
|
* - {@link Fluid}: The fluid.
|
|
1369
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1403
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/FluidID.html Online documentation}
|
|
1370
1404
|
*/
|
|
1371
1405
|
export type FluidID = string | LuaFluidPrototype | Fluid
|
|
1372
1406
|
/**
|
|
@@ -1377,12 +1411,12 @@ declare module "factorio:runtime" {
|
|
|
1377
1411
|
* - {@link LuaEntityPrototype}: The entity prototype. Normal quality will be used.
|
|
1378
1412
|
* - `string`: The prototype name. Normal quality will be used.
|
|
1379
1413
|
* - {@link EntityIDAndQualityIDPair}: A table of entity prototype and quality.
|
|
1380
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1414
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EntityWithQualityID.html Online documentation}
|
|
1381
1415
|
*/
|
|
1382
1416
|
export type EntityWithQualityID = LuaEntity | LuaEntityPrototype | string | EntityIDAndQualityIDPair
|
|
1383
1417
|
/**
|
|
1384
1418
|
* An entity prototype with optional quality specification.
|
|
1385
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1419
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EntityIDAndQualityIDPair.html Online documentation}
|
|
1386
1420
|
*/
|
|
1387
1421
|
export interface EntityIDAndQualityIDPair {
|
|
1388
1422
|
/**
|
|
@@ -1402,13 +1436,13 @@ declare module "factorio:runtime" {
|
|
|
1402
1436
|
* - {@link LuaItemPrototype}: The item prototype. Normal quality will be used.
|
|
1403
1437
|
* - `string`: The prototype name. Normal quality will be used.
|
|
1404
1438
|
* - {@link ItemIDAndQualityIDPair}: A table of item prototype and quality.
|
|
1405
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1439
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ItemWithQualityID.html Online documentation}
|
|
1406
1440
|
*/
|
|
1407
1441
|
export type ItemWithQualityID = LuaItemStack | LuaItemPrototype | string | ItemIDAndQualityIDPairWrite
|
|
1408
1442
|
/**
|
|
1409
1443
|
* An item prototype with optional quality specification.
|
|
1410
1444
|
* @see ItemIDAndQualityIDPairWrite
|
|
1411
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1445
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ItemIDAndQualityIDPair.html Online documentation}
|
|
1412
1446
|
*/
|
|
1413
1447
|
export interface ItemIDAndQualityIDPair {
|
|
1414
1448
|
/**
|
|
@@ -1422,7 +1456,7 @@ declare module "factorio:runtime" {
|
|
|
1422
1456
|
}
|
|
1423
1457
|
/**
|
|
1424
1458
|
* Write form of {@link ItemIDAndQualityIDPair}, where some properties allow additional values as input compared to the read form.
|
|
1425
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1459
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ItemIDAndQualityIDPair.html Online documentation}
|
|
1426
1460
|
*/
|
|
1427
1461
|
export interface ItemIDAndQualityIDPairWrite {
|
|
1428
1462
|
/**
|
|
@@ -1442,7 +1476,7 @@ declare module "factorio:runtime" {
|
|
|
1442
1476
|
* - {@link LuaItemStack}: Non empty item stack.
|
|
1443
1477
|
* - {@link LuaItem}: The item.
|
|
1444
1478
|
* - `string`: The prototype name.
|
|
1445
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1479
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ItemID.html Online documentation}
|
|
1446
1480
|
*/
|
|
1447
1481
|
export type ItemID = LuaItemPrototype | LuaItemStack | LuaItem | string
|
|
1448
1482
|
/**
|
|
@@ -1452,7 +1486,7 @@ declare module "factorio:runtime" {
|
|
|
1452
1486
|
* - {@link LuaEntityPrototype}: The entity prototype.
|
|
1453
1487
|
* - {@link LuaEntity}: The entity.
|
|
1454
1488
|
* - `string`: The prototype name.
|
|
1455
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1489
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EntityID.html Online documentation}
|
|
1456
1490
|
*/
|
|
1457
1491
|
export type EntityID = LuaEntityPrototype | LuaEntity | string
|
|
1458
1492
|
/**
|
|
@@ -1462,7 +1496,7 @@ declare module "factorio:runtime" {
|
|
|
1462
1496
|
* - {@link LuaTechnologyPrototype}: The technology prototype.
|
|
1463
1497
|
* - {@link LuaTechnology}: Instance of the technology.
|
|
1464
1498
|
* - `string`: The prototype name.
|
|
1465
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1499
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TechnologyID.html Online documentation}
|
|
1466
1500
|
*/
|
|
1467
1501
|
export type TechnologyID = LuaTechnologyPrototype | LuaTechnology | string
|
|
1468
1502
|
/**
|
|
@@ -1471,7 +1505,7 @@ declare module "factorio:runtime" {
|
|
|
1471
1505
|
* ## Union members
|
|
1472
1506
|
* - {@link LuaParticlePrototype}: The particle prototype.
|
|
1473
1507
|
* - `string`: The prototype name.
|
|
1474
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1508
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ParticleID.html Online documentation}
|
|
1475
1509
|
*/
|
|
1476
1510
|
export type ParticleID = LuaParticlePrototype | string
|
|
1477
1511
|
/**
|
|
@@ -1480,7 +1514,7 @@ declare module "factorio:runtime" {
|
|
|
1480
1514
|
* ## Union members
|
|
1481
1515
|
* - {@link LuaDamagePrototype}: The damage type prototype.
|
|
1482
1516
|
* - `string`: The prototype name.
|
|
1483
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1517
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DamageTypeID.html Online documentation}
|
|
1484
1518
|
*/
|
|
1485
1519
|
export type DamageTypeID = LuaDamagePrototype | string
|
|
1486
1520
|
/**
|
|
@@ -1489,7 +1523,7 @@ declare module "factorio:runtime" {
|
|
|
1489
1523
|
* ## Union members
|
|
1490
1524
|
* - {@link LuaTrivialSmokePrototype}: The trivial smoke prototype.
|
|
1491
1525
|
* - `string`: The prototype name.
|
|
1492
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1526
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TrivialSmokeID.html Online documentation}
|
|
1493
1527
|
*/
|
|
1494
1528
|
export type TrivialSmokeID = LuaTrivialSmokePrototype | string
|
|
1495
1529
|
/**
|
|
@@ -1501,7 +1535,7 @@ declare module "factorio:runtime" {
|
|
|
1501
1535
|
* - `"left"`
|
|
1502
1536
|
* - `"right"`
|
|
1503
1537
|
* - `"center"`
|
|
1504
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1538
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TextAlign.html Online documentation}
|
|
1505
1539
|
*/
|
|
1506
1540
|
export type TextAlign = "left" | "right" | "center"
|
|
1507
1541
|
/**
|
|
@@ -1514,7 +1548,7 @@ declare module "factorio:runtime" {
|
|
|
1514
1548
|
* - `"middle"`
|
|
1515
1549
|
* - `"baseline"`
|
|
1516
1550
|
* - `"bottom"`
|
|
1517
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1551
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/VerticalTextAlign.html Online documentation}
|
|
1518
1552
|
*/
|
|
1519
1553
|
export type VerticalTextAlign = "top" | "middle" | "baseline" | "bottom"
|
|
1520
1554
|
/**
|
|
@@ -1523,7 +1557,7 @@ declare module "factorio:runtime" {
|
|
|
1523
1557
|
* ## Union members
|
|
1524
1558
|
* - {@link LuaQualityPrototype}: The quality prototype.
|
|
1525
1559
|
* - `string`: The prototype name.
|
|
1526
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1560
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/QualityID.html Online documentation}
|
|
1527
1561
|
*/
|
|
1528
1562
|
export type QualityID = LuaQualityPrototype | string
|
|
1529
1563
|
/**
|
|
@@ -1532,7 +1566,7 @@ declare module "factorio:runtime" {
|
|
|
1532
1566
|
* ## Union members
|
|
1533
1567
|
* - {@link LuaRecipeCategoryPrototype}: By recipe category prototype.
|
|
1534
1568
|
* - `string`: By name of the recipe category prototype.
|
|
1535
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1569
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/RecipeCategoryID.html Online documentation}
|
|
1536
1570
|
*/
|
|
1537
1571
|
export type RecipeCategoryID = LuaRecipeCategoryPrototype | string
|
|
1538
1572
|
/**
|
|
@@ -1542,7 +1576,7 @@ declare module "factorio:runtime" {
|
|
|
1542
1576
|
* - {@link LuaRecipePrototype}: By recipe prototype.
|
|
1543
1577
|
* - {@link LuaRecipe}: By instance of recipe.
|
|
1544
1578
|
* - `string`: By name of the recipe prototype.
|
|
1545
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1579
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/RecipeID.html Online documentation}
|
|
1546
1580
|
*/
|
|
1547
1581
|
export type RecipeID = LuaRecipePrototype | LuaRecipe | string
|
|
1548
1582
|
/**
|
|
@@ -1552,7 +1586,7 @@ declare module "factorio:runtime" {
|
|
|
1552
1586
|
* - {@link LuaTilePrototype}: By tile prototype.
|
|
1553
1587
|
* - {@link LuaTile}: By instance of tile.
|
|
1554
1588
|
* - `string`: By name of the tile prototype.
|
|
1555
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1589
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TileID.html Online documentation}
|
|
1556
1590
|
*/
|
|
1557
1591
|
export type TileID = LuaTilePrototype | LuaTile | string
|
|
1558
1592
|
export interface Fluid {
|
|
@@ -1576,7 +1610,7 @@ declare module "factorio:runtime" {
|
|
|
1576
1610
|
* - {@link LuaEquipmentPrototype}: The equipment prototype.
|
|
1577
1611
|
* - {@link LuaEquipment}: The equipment.
|
|
1578
1612
|
* - `string`: The prototype name.
|
|
1579
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1613
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EquipmentID.html Online documentation}
|
|
1580
1614
|
*/
|
|
1581
1615
|
export type EquipmentID = LuaEquipmentPrototype | LuaEquipment | string
|
|
1582
1616
|
/**
|
|
@@ -1588,12 +1622,12 @@ declare module "factorio:runtime" {
|
|
|
1588
1622
|
* - `string`: The prototype name. Normal quality will be used.
|
|
1589
1623
|
* - {@link EquipmentIDAndQualityIDPair}: A table of equipment prototype and quality.
|
|
1590
1624
|
* @see EquipmentWithQualityIDWrite
|
|
1591
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1625
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EquipmentWithQualityID.html Online documentation}
|
|
1592
1626
|
*/
|
|
1593
1627
|
export type EquipmentWithQualityID = LuaEquipmentPrototype | LuaEquipment | string | EquipmentIDAndQualityIDPair
|
|
1594
1628
|
/**
|
|
1595
1629
|
* Write form of {@link EquipmentWithQualityID}, where some properties allow additional values as input compared to the read form.
|
|
1596
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1630
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EquipmentWithQualityID.html Online documentation}
|
|
1597
1631
|
*/
|
|
1598
1632
|
export type EquipmentWithQualityIDWrite =
|
|
1599
1633
|
| LuaEquipmentPrototype
|
|
@@ -1603,7 +1637,7 @@ declare module "factorio:runtime" {
|
|
|
1603
1637
|
/**
|
|
1604
1638
|
* An equipment prototype with optional quality specification.
|
|
1605
1639
|
* @see EquipmentIDAndQualityIDPairWrite
|
|
1606
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1640
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EquipmentIDAndQualityIDPair.html Online documentation}
|
|
1607
1641
|
*/
|
|
1608
1642
|
export interface EquipmentIDAndQualityIDPair {
|
|
1609
1643
|
/**
|
|
@@ -1617,7 +1651,7 @@ declare module "factorio:runtime" {
|
|
|
1617
1651
|
}
|
|
1618
1652
|
/**
|
|
1619
1653
|
* Write form of {@link EquipmentIDAndQualityIDPair}, where some properties allow additional values as input compared to the read form.
|
|
1620
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1654
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EquipmentIDAndQualityIDPair.html Online documentation}
|
|
1621
1655
|
*/
|
|
1622
1656
|
export interface EquipmentIDAndQualityIDPairWrite {
|
|
1623
1657
|
/**
|
|
@@ -1664,7 +1698,7 @@ declare module "factorio:runtime" {
|
|
|
1664
1698
|
* @example
|
|
1665
1699
|
* -- Shorthand
|
|
1666
1700
|
* {{-2, -3}, {5, 8}}
|
|
1667
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1701
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BoundingBox.html Online documentation}
|
|
1668
1702
|
*/
|
|
1669
1703
|
export interface BoundingBox {
|
|
1670
1704
|
readonly left_top: MapPosition
|
|
@@ -1674,7 +1708,7 @@ declare module "factorio:runtime" {
|
|
|
1674
1708
|
/**
|
|
1675
1709
|
* Array form of {@link BoundingBox}.
|
|
1676
1710
|
* @see BoundingBox
|
|
1677
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1711
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BoundingBox.html Online documentation}
|
|
1678
1712
|
*/
|
|
1679
1713
|
export type BoundingBoxArray = readonly [MapPosition | MapPositionArray, MapPosition | MapPositionArray]
|
|
1680
1714
|
export interface BoundingBoxWrite {
|
|
@@ -1707,7 +1741,7 @@ declare module "factorio:runtime" {
|
|
|
1707
1741
|
* - 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.
|
|
1708
1742
|
* - `string`: It will be the surface name. E.g. `"nauvis"`.
|
|
1709
1743
|
* - {@link LuaSurface}: A reference to {@link LuaSurface} may be passed directly.
|
|
1710
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1744
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SurfaceIdentification.html Online documentation}
|
|
1711
1745
|
*/
|
|
1712
1746
|
export type SurfaceIdentification = SurfaceIndex | string | LuaSurface
|
|
1713
1747
|
/**
|
|
@@ -1717,31 +1751,25 @@ declare module "factorio:runtime" {
|
|
|
1717
1751
|
* - PlayerIndex: The player index.
|
|
1718
1752
|
* - `string`: The player name.
|
|
1719
1753
|
* - {@link LuaPlayer}: A reference to {@link LuaPlayer} may be passed directly.
|
|
1720
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1754
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/PlayerIdentification.html Online documentation}
|
|
1721
1755
|
*/
|
|
1722
1756
|
export type PlayerIdentification = PlayerIndex | string | LuaPlayer
|
|
1723
1757
|
/**
|
|
1724
1758
|
* Set of forces. Can be specified in one of two ways.
|
|
1725
1759
|
*
|
|
1726
1760
|
* ## Union members
|
|
1727
|
-
* - {@link
|
|
1728
|
-
* - {@link
|
|
1729
|
-
* @see
|
|
1730
|
-
* @see {@link https://lua-api.factorio.com/2.0.70/concepts/ForceSet.html Online documentation}
|
|
1731
|
-
*/
|
|
1732
|
-
export type ForceSet = LuaForce[] | LuaForce
|
|
1733
|
-
/**
|
|
1734
|
-
* Write form of {@link ForceSet}, where some properties allow additional values as input compared to the read form.
|
|
1735
|
-
* @see {@link https://lua-api.factorio.com/2.0.70/concepts/ForceSet.html Online documentation}
|
|
1761
|
+
* - {@link ForceID}[]: Array of many forces.
|
|
1762
|
+
* - {@link ForceID}: A single force.
|
|
1763
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ForceSet.html Online documentation}
|
|
1736
1764
|
*/
|
|
1737
|
-
export type
|
|
1765
|
+
export type ForceSet = readonly ForceID[] | ForceID
|
|
1738
1766
|
/**
|
|
1739
1767
|
* A decorative prototype may be specified in one of two ways.
|
|
1740
1768
|
*
|
|
1741
1769
|
* ## Union members
|
|
1742
1770
|
* - {@link LuaDecorativePrototype}: The decorative prototype.
|
|
1743
1771
|
* - `string`: The prototype name.
|
|
1744
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1772
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DecorativeID.html Online documentation}
|
|
1745
1773
|
*/
|
|
1746
1774
|
export type DecorativeID = LuaDecorativePrototype | string
|
|
1747
1775
|
/**
|
|
@@ -1750,7 +1778,7 @@ declare module "factorio:runtime" {
|
|
|
1750
1778
|
* ## Union members
|
|
1751
1779
|
* - {@link LuaAsteroidChunkPrototype}: The asteroid chunk prototype.
|
|
1752
1780
|
* - `string`: The prototype name.
|
|
1753
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1781
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AsteroidChunkID.html Online documentation}
|
|
1754
1782
|
*/
|
|
1755
1783
|
export type AsteroidChunkID = LuaAsteroidChunkPrototype | string
|
|
1756
1784
|
/**
|
|
@@ -1759,7 +1787,7 @@ declare module "factorio:runtime" {
|
|
|
1759
1787
|
* ## Union members
|
|
1760
1788
|
* - {@link LuaSpaceLocationPrototype}: The space location prototype.
|
|
1761
1789
|
* - `string`: The prototype name.
|
|
1762
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1790
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SpaceLocationID.html Online documentation}
|
|
1763
1791
|
*/
|
|
1764
1792
|
export type SpaceLocationID = LuaSpaceLocationPrototype | string
|
|
1765
1793
|
/**
|
|
@@ -1767,7 +1795,7 @@ declare module "factorio:runtime" {
|
|
|
1767
1795
|
*
|
|
1768
1796
|
* When the LogisticFilter that this is used in has a non-zero `min` value then `comparator` must be `"="` (the default when writing) and `quality` is mandatory.
|
|
1769
1797
|
* @see SignalFilterWrite
|
|
1770
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1798
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SignalFilter.html Online documentation}
|
|
1771
1799
|
*/
|
|
1772
1800
|
export type SignalFilter =
|
|
1773
1801
|
| {
|
|
@@ -1791,7 +1819,7 @@ declare module "factorio:runtime" {
|
|
|
1791
1819
|
| string
|
|
1792
1820
|
/**
|
|
1793
1821
|
* Write form of {@link SignalFilter}, where some properties allow additional values as input compared to the read form.
|
|
1794
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1822
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SignalFilter.html Online documentation}
|
|
1795
1823
|
*/
|
|
1796
1824
|
export type SignalFilterWrite =
|
|
1797
1825
|
| {
|
|
@@ -1815,7 +1843,7 @@ declare module "factorio:runtime" {
|
|
|
1815
1843
|
| string
|
|
1816
1844
|
/**
|
|
1817
1845
|
* @see LogisticFilterWrite
|
|
1818
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1846
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LogisticFilter.html Online documentation}
|
|
1819
1847
|
*/
|
|
1820
1848
|
export interface LogisticFilter {
|
|
1821
1849
|
/**
|
|
@@ -1841,7 +1869,7 @@ declare module "factorio:runtime" {
|
|
|
1841
1869
|
}
|
|
1842
1870
|
/**
|
|
1843
1871
|
* Write form of {@link LogisticFilter}, where some properties allow additional values as input compared to the read form.
|
|
1844
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1872
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LogisticFilter.html Online documentation}
|
|
1845
1873
|
*/
|
|
1846
1874
|
export interface LogisticFilterWrite {
|
|
1847
1875
|
/**
|
|
@@ -1904,23 +1932,23 @@ declare module "factorio:runtime" {
|
|
|
1904
1932
|
* ## Union members
|
|
1905
1933
|
* - {@link LuaSurfacePropertyPrototype}: The surface property prototype.
|
|
1906
1934
|
* - `string`: The prototype name.
|
|
1907
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1935
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SurfacePropertyID.html Online documentation}
|
|
1908
1936
|
*/
|
|
1909
1937
|
export type SurfacePropertyID = LuaSurfacePropertyPrototype | string
|
|
1910
1938
|
/**
|
|
1911
1939
|
* When writing it is possible to give LuaEntity or MapPosition directly. However, reading always returns the full ScriptRenderTargetTable.
|
|
1912
1940
|
* @see ScriptRenderTargetWrite
|
|
1913
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1941
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ScriptRenderTarget.html Online documentation}
|
|
1914
1942
|
*/
|
|
1915
1943
|
export type ScriptRenderTarget = LuaEntity | MapPosition | ScriptRenderTargetTable
|
|
1916
1944
|
/**
|
|
1917
1945
|
* Write form of {@link ScriptRenderTarget}, where some properties allow additional values as input compared to the read form.
|
|
1918
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1946
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ScriptRenderTarget.html Online documentation}
|
|
1919
1947
|
*/
|
|
1920
1948
|
export type ScriptRenderTargetWrite = LuaEntity | (MapPosition | MapPositionArray) | ScriptRenderTargetTableWrite
|
|
1921
1949
|
/**
|
|
1922
1950
|
* @see ScriptRenderTargetTableWrite
|
|
1923
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1951
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ScriptRenderTargetTable.html Online documentation}
|
|
1924
1952
|
*/
|
|
1925
1953
|
export interface ScriptRenderTargetTable {
|
|
1926
1954
|
readonly entity?: LuaEntity
|
|
@@ -1935,7 +1963,7 @@ declare module "factorio:runtime" {
|
|
|
1935
1963
|
}
|
|
1936
1964
|
/**
|
|
1937
1965
|
* Write form of {@link ScriptRenderTargetTable}, where some properties allow additional values as input compared to the read form.
|
|
1938
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1966
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ScriptRenderTargetTable.html Online documentation}
|
|
1939
1967
|
*/
|
|
1940
1968
|
export interface ScriptRenderTargetTableWrite {
|
|
1941
1969
|
readonly entity?: LuaEntity
|
|
@@ -1967,13 +1995,13 @@ declare module "factorio:runtime" {
|
|
|
1967
1995
|
* --These are both full stacks of iron plates (for iron-plate, a full stack is 100 plates)
|
|
1968
1996
|
* "iron-plate"
|
|
1969
1997
|
* {name="iron-plate", count=100}
|
|
1970
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
1998
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ItemStackIdentification.html Online documentation}
|
|
1971
1999
|
*/
|
|
1972
2000
|
export type ItemStackIdentification = string | ItemStackDefinition | LuaItemStack
|
|
1973
2001
|
/**
|
|
1974
2002
|
* An item filter may be specified in two ways, either as a string which is a quality prototype name or as a table.
|
|
1975
2003
|
* @see QualityConditionWrite
|
|
1976
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2004
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/QualityCondition.html Online documentation}
|
|
1977
2005
|
*/
|
|
1978
2006
|
export type QualityCondition =
|
|
1979
2007
|
| {
|
|
@@ -1989,7 +2017,7 @@ declare module "factorio:runtime" {
|
|
|
1989
2017
|
| string
|
|
1990
2018
|
/**
|
|
1991
2019
|
* Write form of {@link QualityCondition}, where some properties allow additional values as input compared to the read form.
|
|
1992
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2020
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/QualityCondition.html Online documentation}
|
|
1993
2021
|
*/
|
|
1994
2022
|
export type QualityConditionWrite =
|
|
1995
2023
|
| {
|
|
@@ -2006,7 +2034,7 @@ declare module "factorio:runtime" {
|
|
|
2006
2034
|
/**
|
|
2007
2035
|
* The destination of a cargo pod.
|
|
2008
2036
|
* @see CargoDestinationWrite
|
|
2009
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2037
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/CargoDestination.html Online documentation}
|
|
2010
2038
|
*/
|
|
2011
2039
|
export interface CargoDestination {
|
|
2012
2040
|
/**
|
|
@@ -2044,7 +2072,7 @@ declare module "factorio:runtime" {
|
|
|
2044
2072
|
}
|
|
2045
2073
|
/**
|
|
2046
2074
|
* Write form of {@link CargoDestination}, where some properties allow additional values as input compared to the read form.
|
|
2047
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2075
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/CargoDestination.html Online documentation}
|
|
2048
2076
|
*/
|
|
2049
2077
|
export interface CargoDestinationWrite {
|
|
2050
2078
|
/**
|
|
@@ -2098,7 +2126,7 @@ declare module "factorio:runtime" {
|
|
|
2098
2126
|
* furthest = { zoom = 1 / 16 },
|
|
2099
2127
|
* furthest_game_view = { distance = 200, max_distance = 400 }
|
|
2100
2128
|
* }
|
|
2101
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2129
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ZoomLimits.html Online documentation}
|
|
2102
2130
|
*/
|
|
2103
2131
|
export interface ZoomLimits {
|
|
2104
2132
|
/**
|
|
@@ -2128,7 +2156,7 @@ declare module "factorio:runtime" {
|
|
|
2128
2156
|
*
|
|
2129
2157
|
* -- Method 2: Specify a dynamic zoom level based on the window dimensions.
|
|
2130
2158
|
* { distance = 200, max_distance = 500 }
|
|
2131
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2159
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ZoomSpecification.html Online documentation}
|
|
2132
2160
|
*/
|
|
2133
2161
|
export interface ZoomSpecification {
|
|
2134
2162
|
/**
|
|
@@ -2148,7 +2176,7 @@ declare module "factorio:runtime" {
|
|
|
2148
2176
|
* ## Union members
|
|
2149
2177
|
* - `"game"`
|
|
2150
2178
|
* - `"chart"`
|
|
2151
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2179
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ScriptRenderMode.html Online documentation}
|
|
2152
2180
|
*/
|
|
2153
2181
|
export type ScriptRenderMode = "game" | "chart"
|
|
2154
2182
|
/**
|
|
@@ -2159,13 +2187,13 @@ declare module "factorio:runtime" {
|
|
|
2159
2187
|
* - {@link LuaCustomInputPrototype}: Custom input prototype.
|
|
2160
2188
|
* - {@link defines.events}: Event identifier.
|
|
2161
2189
|
* - `string`: Name of the event.
|
|
2162
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2190
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaEventType.html Online documentation}
|
|
2163
2191
|
*/
|
|
2164
2192
|
export type LuaEventType = LuaCustomEventPrototype | LuaCustomInputPrototype | defines.events | string | EventId<any>
|
|
2165
2193
|
/**
|
|
2166
2194
|
* 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.
|
|
2167
2195
|
* @see TilePositionArray
|
|
2168
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2196
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TilePosition.html Online documentation}
|
|
2169
2197
|
*/
|
|
2170
2198
|
export interface TilePosition {
|
|
2171
2199
|
readonly x: int32
|
|
@@ -2174,52 +2202,20 @@ declare module "factorio:runtime" {
|
|
|
2174
2202
|
/**
|
|
2175
2203
|
* Array form of {@link TilePosition}.
|
|
2176
2204
|
* @see TilePosition
|
|
2177
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2205
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TilePosition.html Online documentation}
|
|
2178
2206
|
*/
|
|
2179
2207
|
export type TilePositionArray = readonly [int32, int32]
|
|
2180
2208
|
/**
|
|
2181
2209
|
* The smooth orientation. It is a `float` in the range `[0, 1)` that covers a full circle, starting at the top and going clockwise.
|
|
2182
2210
|
*
|
|
2183
2211
|
* 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".
|
|
2184
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2212
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/RealOrientation.html Online documentation}
|
|
2185
2213
|
*/
|
|
2186
2214
|
export type RealOrientation = float
|
|
2187
2215
|
export interface MapLocation {
|
|
2188
2216
|
readonly position: MapLocation
|
|
2189
2217
|
readonly direction: defines.direction
|
|
2190
2218
|
}
|
|
2191
|
-
/**
|
|
2192
|
-
* 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.
|
|
2193
|
-
*
|
|
2194
|
-
* The key identifies the string template. For example, `"gui-alert-tooltip.attack"` (for the template `"__1__ objects are being damaged"`; see the file `data/core/locale/en.cfg`).
|
|
2195
|
-
*
|
|
2196
|
-
* The template can contain placeholders such as `__1__` or `__2__`. These will be replaced by the respective parameter in the LocalisedString. The parameters themselves can be other localised strings, which will be processed recursively in the same fashion. Localised strings can not be recursed deeper than 20 levels and can not have more than 20 parameters.
|
|
2197
|
-
*
|
|
2198
|
-
* There are two special flags for the localised string, indicated by the key being a particular string. First, if the key is the empty string (`""`), then all parameters will be concatenated (after processing, if any are localised strings themselves). Second, if the key is a question mark (`"?"`), then the first valid parameter will be used. A parameter can be invalid if its name doesn't match any string template. If no parameters are valid, the last one is returned. This is useful to implement a fallback for missing locale templates.
|
|
2199
|
-
*
|
|
2200
|
-
* Furthermore, when an API function expects a localised string, it will also accept a regular string (i.e. not a table) which will not be translated, as well as a number, boolean or `nil`, which will be converted to their textual representation.
|
|
2201
|
-
* @example
|
|
2202
|
-
* -- In the English translation, this will print "No ammo"; in the Czech translation, it will print "Bez munice":
|
|
2203
|
-
* game.player.print({"description.no-ammo"})
|
|
2204
|
-
* -- The 'description.no-ammo' template contains no placeholders, so no further parameters are necessary.
|
|
2205
|
-
* @example
|
|
2206
|
-
* -- In the English translation, this will print "Durability: 5/9"; in the Japanese one, it will print "耐久度: 5/9":
|
|
2207
|
-
* game.player.print({"description.durability", 5, 9})
|
|
2208
|
-
* @example
|
|
2209
|
-
* -- This will print "hello" in all translations:
|
|
2210
|
-
* game.player.print({"", "hello"})
|
|
2211
|
-
* @example
|
|
2212
|
-
* -- This will print "Iron plate: 60" in the English translation and "Eisenplatte: 60" in the German translation.
|
|
2213
|
-
* game.print({"", {"item-name.iron-plate"}, ": ", 60})
|
|
2214
|
-
* @example
|
|
2215
|
-
* -- As an example of a localised string with fallback, consider this:
|
|
2216
|
-
* {"?", {"", {"entity-description.furnace"}, "\n"}, {"item-description.furnace"}, "optional fallback"}
|
|
2217
|
-
* -- If 'entity-description.furnace' exists, it is concatenated with "\n" and returned. Otherwise, if 'item-description.furnace'
|
|
2218
|
-
* -- exists, it is returned as-is. Otherwise, "optional fallback" is returned. If this value wasn't specified, the
|
|
2219
|
-
* -- translation result would be "Unknown key: 'item-description.furnace'".
|
|
2220
|
-
* @see {@link https://lua-api.factorio.com/2.0.70/concepts/LocalisedString.html Online documentation}
|
|
2221
|
-
*/
|
|
2222
|
-
export type LocalisedString = string | number | boolean | LuaObject | nil | [string, ...LocalisedString[]]
|
|
2223
2219
|
/**
|
|
2224
2220
|
* Coordinates on a surface, for example of an entity. MapPositions may be specified either as a dictionary with `x`, `y` as keys, or simply as an array with two elements.
|
|
2225
2221
|
*
|
|
@@ -2232,7 +2228,7 @@ declare module "factorio:runtime" {
|
|
|
2232
2228
|
* @example
|
|
2233
2229
|
* -- Shorthand
|
|
2234
2230
|
* {1.625, 2.375}
|
|
2235
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2231
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/MapPosition.html Online documentation}
|
|
2236
2232
|
*/
|
|
2237
2233
|
export interface MapPosition {
|
|
2238
2234
|
readonly x: double
|
|
@@ -2241,7 +2237,7 @@ declare module "factorio:runtime" {
|
|
|
2241
2237
|
/**
|
|
2242
2238
|
* Array form of {@link MapPosition}.
|
|
2243
2239
|
* @see MapPosition
|
|
2244
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2240
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/MapPosition.html Online documentation}
|
|
2245
2241
|
*/
|
|
2246
2242
|
export type MapPositionArray = readonly [double, double]
|
|
2247
2243
|
/**
|
|
@@ -2254,7 +2250,7 @@ declare module "factorio:runtime" {
|
|
|
2254
2250
|
* red2 = {r = 0.5, a = 0.5} -- Same color as red1
|
|
2255
2251
|
* black = {} -- All channels omitted: black
|
|
2256
2252
|
* red1_short = {0.5, 0, 0, 0.5} -- Same color as red1 in short-hand notation
|
|
2257
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2253
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Color.html Online documentation}
|
|
2258
2254
|
*/
|
|
2259
2255
|
export interface Color {
|
|
2260
2256
|
readonly r?: float
|
|
@@ -2265,7 +2261,7 @@ declare module "factorio:runtime" {
|
|
|
2265
2261
|
/**
|
|
2266
2262
|
* Array form of {@link Color}.
|
|
2267
2263
|
* @see Color
|
|
2268
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2264
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Color.html Online documentation}
|
|
2269
2265
|
*/
|
|
2270
2266
|
export type ColorArray = readonly [r: double, g: double, b: double, a?: double]
|
|
2271
2267
|
/**
|
|
@@ -2273,12 +2269,26 @@ declare module "factorio:runtime" {
|
|
|
2273
2269
|
* - `"center-to-center"`
|
|
2274
2270
|
* - `"bounding-box-to-bounding-box"`
|
|
2275
2271
|
* - `"center-to-bounding-box"`
|
|
2276
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2272
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/RangeMode.html Online documentation}
|
|
2277
2273
|
*/
|
|
2278
2274
|
export type RangeMode = "center-to-center" | "bounding-box-to-bounding-box" | "center-to-bounding-box"
|
|
2275
|
+
export interface BlueprintRollingStockConnection {
|
|
2276
|
+
/**
|
|
2277
|
+
* The entity_number of 'this' entity in the blueprint.
|
|
2278
|
+
*/
|
|
2279
|
+
readonly stock: uint32
|
|
2280
|
+
/**
|
|
2281
|
+
* The entity_number of the front stock connection.
|
|
2282
|
+
*/
|
|
2283
|
+
readonly front?: uint32
|
|
2284
|
+
/**
|
|
2285
|
+
* The entity_number of the back stock connection.
|
|
2286
|
+
*/
|
|
2287
|
+
readonly back?: uint32
|
|
2288
|
+
}
|
|
2279
2289
|
/**
|
|
2280
2290
|
* @see PowerSwitchBlueprintControlBehaviorWrite
|
|
2281
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2291
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/PowerSwitchBlueprintControlBehavior.html Online documentation}
|
|
2282
2292
|
*/
|
|
2283
2293
|
export interface PowerSwitchBlueprintControlBehavior {
|
|
2284
2294
|
/**
|
|
@@ -2294,7 +2304,7 @@ declare module "factorio:runtime" {
|
|
|
2294
2304
|
}
|
|
2295
2305
|
/**
|
|
2296
2306
|
* Write form of {@link PowerSwitchBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
2297
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2307
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/PowerSwitchBlueprintControlBehavior.html Online documentation}
|
|
2298
2308
|
*/
|
|
2299
2309
|
export interface PowerSwitchBlueprintControlBehaviorWrite {
|
|
2300
2310
|
/**
|
|
@@ -2420,7 +2430,7 @@ declare module "factorio:runtime" {
|
|
|
2420
2430
|
* `"ammo-turret"` variant of {@link BlueprintEntity}.
|
|
2421
2431
|
*/
|
|
2422
2432
|
export interface AmmoTurretBlueprintEntity extends BaseBlueprintEntity {
|
|
2423
|
-
readonly "priority-list"?: SlotFilter
|
|
2433
|
+
readonly "priority-list"?: SlotFilter[]
|
|
2424
2434
|
/**
|
|
2425
2435
|
* Defaults to `false`.
|
|
2426
2436
|
*/
|
|
@@ -2428,7 +2438,7 @@ declare module "factorio:runtime" {
|
|
|
2428
2438
|
readonly control_behavior?: TurretBlueprintControlBehavior
|
|
2429
2439
|
}
|
|
2430
2440
|
export interface AmmoTurretBlueprintEntityWrite extends BaseBlueprintEntityWrite {
|
|
2431
|
-
readonly "priority-list"?: SlotFilter
|
|
2441
|
+
readonly "priority-list"?: SlotFilter[]
|
|
2432
2442
|
/**
|
|
2433
2443
|
* Defaults to `false`.
|
|
2434
2444
|
*/
|
|
@@ -2467,6 +2477,7 @@ declare module "factorio:runtime" {
|
|
|
2467
2477
|
* `"artillery-wagon"` variant of {@link BlueprintEntity}.
|
|
2468
2478
|
*/
|
|
2469
2479
|
export interface ArtilleryWagonBlueprintEntity extends BaseBlueprintEntity {
|
|
2480
|
+
readonly stock_connections?: BlueprintRollingStockConnection
|
|
2470
2481
|
/**
|
|
2471
2482
|
* Defaults to `true`.
|
|
2472
2483
|
*/
|
|
@@ -2478,6 +2489,7 @@ declare module "factorio:runtime" {
|
|
|
2478
2489
|
readonly copy_color_from_train_stop: boolean
|
|
2479
2490
|
}
|
|
2480
2491
|
export interface ArtilleryWagonBlueprintEntityWrite extends BaseBlueprintEntityWrite {
|
|
2492
|
+
readonly stock_connections?: BlueprintRollingStockConnection
|
|
2481
2493
|
/**
|
|
2482
2494
|
* Defaults to `true`.
|
|
2483
2495
|
*/
|
|
@@ -2554,6 +2566,7 @@ declare module "factorio:runtime" {
|
|
|
2554
2566
|
* `"cargo-wagon"` variant of {@link BlueprintEntity}.
|
|
2555
2567
|
*/
|
|
2556
2568
|
export interface CargoWagonBlueprintEntity extends BaseBlueprintEntity {
|
|
2569
|
+
readonly stock_connections?: BlueprintRollingStockConnection
|
|
2557
2570
|
readonly color?: Color
|
|
2558
2571
|
readonly enable_logistics_while_moving: boolean
|
|
2559
2572
|
readonly grid?: BlueprintEquipment[]
|
|
@@ -2562,6 +2575,7 @@ declare module "factorio:runtime" {
|
|
|
2562
2575
|
readonly inventory: BlueprintInventoryWithFilters
|
|
2563
2576
|
}
|
|
2564
2577
|
export interface CargoWagonBlueprintEntityWrite extends BaseBlueprintEntityWrite {
|
|
2578
|
+
readonly stock_connections?: BlueprintRollingStockConnection
|
|
2565
2579
|
readonly color?: Color | ColorArray
|
|
2566
2580
|
readonly enable_logistics_while_moving: boolean
|
|
2567
2581
|
readonly grid?: readonly BlueprintEquipmentWrite[]
|
|
@@ -2645,7 +2659,7 @@ declare module "factorio:runtime" {
|
|
|
2645
2659
|
* `"electric-turret"` variant of {@link BlueprintEntity}.
|
|
2646
2660
|
*/
|
|
2647
2661
|
export interface ElectricTurretBlueprintEntity extends BaseBlueprintEntity {
|
|
2648
|
-
readonly "priority-list"?: SlotFilter
|
|
2662
|
+
readonly "priority-list"?: SlotFilter[]
|
|
2649
2663
|
/**
|
|
2650
2664
|
* Defaults to `false`.
|
|
2651
2665
|
*/
|
|
@@ -2653,7 +2667,7 @@ declare module "factorio:runtime" {
|
|
|
2653
2667
|
readonly control_behavior?: TurretBlueprintControlBehavior
|
|
2654
2668
|
}
|
|
2655
2669
|
export interface ElectricTurretBlueprintEntityWrite extends BaseBlueprintEntityWrite {
|
|
2656
|
-
readonly "priority-list"?: SlotFilter
|
|
2670
|
+
readonly "priority-list"?: SlotFilter[]
|
|
2657
2671
|
/**
|
|
2658
2672
|
* Defaults to `false`.
|
|
2659
2673
|
*/
|
|
@@ -2664,7 +2678,7 @@ declare module "factorio:runtime" {
|
|
|
2664
2678
|
* `"fluid-turret"` variant of {@link BlueprintEntity}.
|
|
2665
2679
|
*/
|
|
2666
2680
|
export interface FluidTurretBlueprintEntity extends BaseBlueprintEntity {
|
|
2667
|
-
readonly "priority-list"?: SlotFilter
|
|
2681
|
+
readonly "priority-list"?: SlotFilter[]
|
|
2668
2682
|
/**
|
|
2669
2683
|
* Defaults to `false`.
|
|
2670
2684
|
*/
|
|
@@ -2672,7 +2686,7 @@ declare module "factorio:runtime" {
|
|
|
2672
2686
|
readonly control_behavior?: TurretBlueprintControlBehavior
|
|
2673
2687
|
}
|
|
2674
2688
|
export interface FluidTurretBlueprintEntityWrite extends BaseBlueprintEntityWrite {
|
|
2675
|
-
readonly "priority-list"?: SlotFilter
|
|
2689
|
+
readonly "priority-list"?: SlotFilter[]
|
|
2676
2690
|
/**
|
|
2677
2691
|
* Defaults to `false`.
|
|
2678
2692
|
*/
|
|
@@ -2683,6 +2697,7 @@ declare module "factorio:runtime" {
|
|
|
2683
2697
|
* `"fluid-wagon"` variant of {@link BlueprintEntity}.
|
|
2684
2698
|
*/
|
|
2685
2699
|
export interface FluidWagonBlueprintEntity extends BaseBlueprintEntity {
|
|
2700
|
+
readonly stock_connections?: BlueprintRollingStockConnection
|
|
2686
2701
|
readonly color?: Color
|
|
2687
2702
|
readonly enable_logistics_while_moving: boolean
|
|
2688
2703
|
readonly grid?: BlueprintEquipment[]
|
|
@@ -2690,6 +2705,7 @@ declare module "factorio:runtime" {
|
|
|
2690
2705
|
readonly copy_color_from_train_stop: boolean
|
|
2691
2706
|
}
|
|
2692
2707
|
export interface FluidWagonBlueprintEntityWrite extends BaseBlueprintEntityWrite {
|
|
2708
|
+
readonly stock_connections?: BlueprintRollingStockConnection
|
|
2693
2709
|
readonly color?: Color | ColorArray
|
|
2694
2710
|
readonly enable_logistics_while_moving: boolean
|
|
2695
2711
|
readonly grid?: readonly BlueprintEquipmentWrite[]
|
|
@@ -2716,6 +2732,7 @@ declare module "factorio:runtime" {
|
|
|
2716
2732
|
* `"infinity-cargo-wagon"` variant of {@link BlueprintEntity}.
|
|
2717
2733
|
*/
|
|
2718
2734
|
export interface InfinityCargoWagonBlueprintEntity extends BaseBlueprintEntity {
|
|
2735
|
+
readonly stock_connections?: BlueprintRollingStockConnection
|
|
2719
2736
|
readonly color?: Color
|
|
2720
2737
|
readonly enable_logistics_while_moving: boolean
|
|
2721
2738
|
readonly grid?: BlueprintEquipment[]
|
|
@@ -2725,6 +2742,7 @@ declare module "factorio:runtime" {
|
|
|
2725
2742
|
readonly infinity_settings: BlueprintInfinityInventorySettings
|
|
2726
2743
|
}
|
|
2727
2744
|
export interface InfinityCargoWagonBlueprintEntityWrite extends BaseBlueprintEntityWrite {
|
|
2745
|
+
readonly stock_connections?: BlueprintRollingStockConnection
|
|
2728
2746
|
readonly color?: Color | ColorArray
|
|
2729
2747
|
readonly enable_logistics_while_moving: boolean
|
|
2730
2748
|
readonly grid?: readonly BlueprintEquipmentWrite[]
|
|
@@ -2812,6 +2830,7 @@ declare module "factorio:runtime" {
|
|
|
2812
2830
|
* Defaults to `false`.
|
|
2813
2831
|
*/
|
|
2814
2832
|
readonly always_on?: boolean
|
|
2833
|
+
readonly control_behavior?: LampBlueprintControlBehavior
|
|
2815
2834
|
}
|
|
2816
2835
|
export interface LampBlueprintEntityWrite extends BaseBlueprintEntityWrite {
|
|
2817
2836
|
readonly color?: Color | ColorArray
|
|
@@ -2819,6 +2838,7 @@ declare module "factorio:runtime" {
|
|
|
2819
2838
|
* Defaults to `false`.
|
|
2820
2839
|
*/
|
|
2821
2840
|
readonly always_on?: boolean
|
|
2841
|
+
readonly control_behavior?: LampBlueprintControlBehaviorWrite
|
|
2822
2842
|
}
|
|
2823
2843
|
/**
|
|
2824
2844
|
* `"lane-splitter"` variant of {@link BlueprintEntity}.
|
|
@@ -2857,6 +2877,7 @@ declare module "factorio:runtime" {
|
|
|
2857
2877
|
readonly filter_mode?: PrototypeFilterMode
|
|
2858
2878
|
readonly type: BeltConnectionType
|
|
2859
2879
|
readonly belt_stack_size_override?: uint8
|
|
2880
|
+
readonly control_behavior?: LoaderBlueprintControlBehavior
|
|
2860
2881
|
}
|
|
2861
2882
|
export interface LoaderBlueprintEntityWrite extends BaseBlueprintEntityWrite {
|
|
2862
2883
|
readonly filters?: readonly BlueprintItemFilterWrite[]
|
|
@@ -2866,6 +2887,7 @@ declare module "factorio:runtime" {
|
|
|
2866
2887
|
readonly filter_mode?: PrototypeFilterMode
|
|
2867
2888
|
readonly type: BeltConnectionType
|
|
2868
2889
|
readonly belt_stack_size_override?: uint8
|
|
2890
|
+
readonly control_behavior?: LoaderBlueprintControlBehaviorWrite
|
|
2869
2891
|
}
|
|
2870
2892
|
/**
|
|
2871
2893
|
* `"loader-1x1"` variant of {@link BlueprintEntity}.
|
|
@@ -2878,6 +2900,7 @@ declare module "factorio:runtime" {
|
|
|
2878
2900
|
readonly filter_mode?: PrototypeFilterMode
|
|
2879
2901
|
readonly type: BeltConnectionType
|
|
2880
2902
|
readonly belt_stack_size_override?: uint8
|
|
2903
|
+
readonly control_behavior?: LoaderBlueprintControlBehavior
|
|
2881
2904
|
}
|
|
2882
2905
|
export interface Loader1x1BlueprintEntityWrite extends BaseBlueprintEntityWrite {
|
|
2883
2906
|
readonly filters?: readonly BlueprintItemFilterWrite[]
|
|
@@ -2887,11 +2910,13 @@ declare module "factorio:runtime" {
|
|
|
2887
2910
|
readonly filter_mode?: PrototypeFilterMode
|
|
2888
2911
|
readonly type: BeltConnectionType
|
|
2889
2912
|
readonly belt_stack_size_override?: uint8
|
|
2913
|
+
readonly control_behavior?: LoaderBlueprintControlBehaviorWrite
|
|
2890
2914
|
}
|
|
2891
2915
|
/**
|
|
2892
2916
|
* `"locomotive"` variant of {@link BlueprintEntity}.
|
|
2893
2917
|
*/
|
|
2894
2918
|
export interface LocomotiveBlueprintEntity extends BaseBlueprintEntity {
|
|
2919
|
+
readonly stock_connections?: BlueprintRollingStockConnection
|
|
2895
2920
|
readonly schedule?: BlueprintSchedule
|
|
2896
2921
|
readonly color?: Color
|
|
2897
2922
|
readonly enable_logistics_while_moving: boolean
|
|
@@ -2900,6 +2925,7 @@ declare module "factorio:runtime" {
|
|
|
2900
2925
|
readonly copy_color_from_train_stop: boolean
|
|
2901
2926
|
}
|
|
2902
2927
|
export interface LocomotiveBlueprintEntityWrite extends BaseBlueprintEntityWrite {
|
|
2928
|
+
readonly stock_connections?: BlueprintRollingStockConnection
|
|
2903
2929
|
readonly schedule?: BlueprintScheduleWrite
|
|
2904
2930
|
readonly color?: Color | ColorArray
|
|
2905
2931
|
readonly enable_logistics_while_moving: boolean
|
|
@@ -2978,18 +3004,34 @@ declare module "factorio:runtime" {
|
|
|
2978
3004
|
* `"rail-chain-signal"` variant of {@link BlueprintEntity}.
|
|
2979
3005
|
*/
|
|
2980
3006
|
export interface RailChainSignalBlueprintEntity extends BaseBlueprintEntity {
|
|
3007
|
+
/**
|
|
3008
|
+
* Defaults to `"ground"`.
|
|
3009
|
+
*/
|
|
3010
|
+
readonly rail_layer?: "ground" | "elevated"
|
|
2981
3011
|
readonly control_behavior?: RailSignalBaseBlueprintControlBehavior
|
|
2982
3012
|
}
|
|
2983
3013
|
export interface RailChainSignalBlueprintEntityWrite extends BaseBlueprintEntityWrite {
|
|
3014
|
+
/**
|
|
3015
|
+
* Defaults to `"ground"`.
|
|
3016
|
+
*/
|
|
3017
|
+
readonly rail_layer?: "ground" | "elevated"
|
|
2984
3018
|
readonly control_behavior?: RailSignalBaseBlueprintControlBehaviorWrite
|
|
2985
3019
|
}
|
|
2986
3020
|
/**
|
|
2987
3021
|
* `"rail-signal"` variant of {@link BlueprintEntity}.
|
|
2988
3022
|
*/
|
|
2989
3023
|
export interface RailSignalBlueprintEntity extends BaseBlueprintEntity {
|
|
3024
|
+
/**
|
|
3025
|
+
* Defaults to `"ground"`.
|
|
3026
|
+
*/
|
|
3027
|
+
readonly rail_layer?: "ground" | "elevated"
|
|
2990
3028
|
readonly control_behavior?: RailSignalBaseBlueprintControlBehavior
|
|
2991
3029
|
}
|
|
2992
3030
|
export interface RailSignalBlueprintEntityWrite extends BaseBlueprintEntityWrite {
|
|
3031
|
+
/**
|
|
3032
|
+
* Defaults to `"ground"`.
|
|
3033
|
+
*/
|
|
3034
|
+
readonly rail_layer?: "ground" | "elevated"
|
|
2993
3035
|
readonly control_behavior?: RailSignalBaseBlueprintControlBehaviorWrite
|
|
2994
3036
|
}
|
|
2995
3037
|
/**
|
|
@@ -3126,7 +3168,7 @@ declare module "factorio:runtime" {
|
|
|
3126
3168
|
* `"turret"` variant of {@link BlueprintEntity}.
|
|
3127
3169
|
*/
|
|
3128
3170
|
export interface TurretBlueprintEntity extends BaseBlueprintEntity {
|
|
3129
|
-
readonly "priority-list"?: SlotFilter
|
|
3171
|
+
readonly "priority-list"?: SlotFilter[]
|
|
3130
3172
|
/**
|
|
3131
3173
|
* Defaults to `false`.
|
|
3132
3174
|
*/
|
|
@@ -3134,7 +3176,7 @@ declare module "factorio:runtime" {
|
|
|
3134
3176
|
readonly control_behavior?: TurretBlueprintControlBehavior
|
|
3135
3177
|
}
|
|
3136
3178
|
export interface TurretBlueprintEntityWrite extends BaseBlueprintEntityWrite {
|
|
3137
|
-
readonly "priority-list"?: SlotFilter
|
|
3179
|
+
readonly "priority-list"?: SlotFilter[]
|
|
3138
3180
|
/**
|
|
3139
3181
|
* Defaults to `false`.
|
|
3140
3182
|
*/
|
|
@@ -3222,7 +3264,7 @@ declare module "factorio:runtime" {
|
|
|
3222
3264
|
* - `"underground-belt"`: {@link UndergroundBeltBlueprintEntity}
|
|
3223
3265
|
* - `"valve"`: {@link ValveBlueprintEntity}
|
|
3224
3266
|
* - `"wall"`: {@link WallBlueprintEntity}
|
|
3225
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3267
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintEntity.html Online documentation}
|
|
3226
3268
|
*/
|
|
3227
3269
|
export type BlueprintEntity =
|
|
3228
3270
|
| AccumulatorBlueprintEntity
|
|
@@ -3281,7 +3323,7 @@ declare module "factorio:runtime" {
|
|
|
3281
3323
|
| WallBlueprintEntity
|
|
3282
3324
|
/**
|
|
3283
3325
|
* Write form of {@link BlueprintEntity}, where some properties allow additional values as input compared to the read form.
|
|
3284
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3326
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintEntity.html Online documentation}
|
|
3285
3327
|
*/
|
|
3286
3328
|
export type BlueprintEntityWrite =
|
|
3287
3329
|
| AccumulatorBlueprintEntityWrite
|
|
@@ -3348,7 +3390,7 @@ declare module "factorio:runtime" {
|
|
|
3348
3390
|
* - `target_entity_number`
|
|
3349
3391
|
*
|
|
3350
3392
|
* - `target_wire_connector_id`
|
|
3351
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3393
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintWire.html Online documentation}
|
|
3352
3394
|
*/
|
|
3353
3395
|
export type BlueprintWire = [
|
|
3354
3396
|
source_entity_number: uint32,
|
|
@@ -3386,7 +3428,7 @@ declare module "factorio:runtime" {
|
|
|
3386
3428
|
* "2500 * (L - 3)"
|
|
3387
3429
|
* @example
|
|
3388
3430
|
* "(4e5 * (abs(speed) + 10.5)) / weight"
|
|
3389
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3431
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/MathExpression.html Online documentation}
|
|
3390
3432
|
*/
|
|
3391
3433
|
export type MathExpression = string
|
|
3392
3434
|
/**
|
|
@@ -3592,7 +3634,7 @@ declare module "factorio:runtime" {
|
|
|
3592
3634
|
* - `"wire-removed"`: {@link WireRemovedUndoRedoAction}
|
|
3593
3635
|
* - `"rotated-entity"`: {@link RotatedEntityUndoRedoAction}
|
|
3594
3636
|
* - `"copy-entity-settings"`: {@link CopyEntitySettingsUndoRedoAction}
|
|
3595
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3637
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/UndoRedoAction.html Online documentation}
|
|
3596
3638
|
*/
|
|
3597
3639
|
export type UndoRedoAction =
|
|
3598
3640
|
| BuiltEntityUndoRedoAction
|
|
@@ -3806,7 +3848,7 @@ declare module "factorio:runtime" {
|
|
|
3806
3848
|
* - `"play-previous-track"`
|
|
3807
3849
|
* - `"pause-resume-music"`
|
|
3808
3850
|
* - `""`: Indicates no linked game control.
|
|
3809
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3851
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LinkedGameControl.html Online documentation}
|
|
3810
3852
|
*/
|
|
3811
3853
|
export type LinkedGameControl =
|
|
3812
3854
|
| "move-up"
|
|
@@ -4011,7 +4053,7 @@ declare module "factorio:runtime" {
|
|
|
4011
4053
|
* - {@link LuaSpaceLocationPrototype}
|
|
4012
4054
|
* - {@link LuaTilePrototype}
|
|
4013
4055
|
* - {@link LuaVirtualSignalPrototype}
|
|
4014
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4056
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/PipetteID.html Online documentation}
|
|
4015
4057
|
*/
|
|
4016
4058
|
export type PipetteID =
|
|
4017
4059
|
| LuaEntityPrototype
|
|
@@ -4031,7 +4073,7 @@ declare module "factorio:runtime" {
|
|
|
4031
4073
|
* - `"not-friend"`: Forces which are not friends pass.
|
|
4032
4074
|
* - `"same"`: The same force pass.
|
|
4033
4075
|
* - `"not-same"`: The non-same forces pass.
|
|
4034
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4076
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ForceCondition.html Online documentation}
|
|
4035
4077
|
*/
|
|
4036
4078
|
export type ForceCondition = "all" | "enemy" | "ally" | "friend" | "not-friend" | "same" | "not-same"
|
|
4037
4079
|
/**
|
|
@@ -4039,7 +4081,7 @@ declare module "factorio:runtime" {
|
|
|
4039
4081
|
* - `"input-output"`
|
|
4040
4082
|
* - `"input"`
|
|
4041
4083
|
* - `"output"`
|
|
4042
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4084
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/FluidFlowDirection.html Online documentation}
|
|
4043
4085
|
*/
|
|
4044
4086
|
export type FluidFlowDirection = "input-output" | "input" | "output"
|
|
4045
4087
|
/**
|
|
@@ -4047,7 +4089,7 @@ declare module "factorio:runtime" {
|
|
|
4047
4089
|
* - `"normal"`: 2 connections are required to be adjacent tiles next to each other on their respective directions.
|
|
4048
4090
|
* - `"underground"`: Allows distant connection up to a certain limit. Those connections may be blocked by tiles.
|
|
4049
4091
|
* - `"linked"`: For mods, connections between entities have to be explicitly requested by script.
|
|
4050
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4092
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/PipeConnectionType.html Online documentation}
|
|
4051
4093
|
*/
|
|
4052
4094
|
export type PipeConnectionType = "normal" | "underground" | "linked"
|
|
4053
4095
|
export interface PipeConnectionDefinition {
|
|
@@ -4070,7 +4112,7 @@ declare module "factorio:runtime" {
|
|
|
4070
4112
|
}
|
|
4071
4113
|
/**
|
|
4072
4114
|
* A fluid amount. The amount is stored as a fixed-size signed 64 bit integer, with 24 bits reserved for decimal precision, meaning the smallest value step is `1/2^24`.
|
|
4073
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4115
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/FluidAmount.html Online documentation}
|
|
4074
4116
|
*/
|
|
4075
4117
|
export type FluidAmount = double
|
|
4076
4118
|
/**
|
|
@@ -4081,7 +4123,7 @@ declare module "factorio:runtime" {
|
|
|
4081
4123
|
* - `"input"`
|
|
4082
4124
|
* - `"input-output"`
|
|
4083
4125
|
* - `"output"`
|
|
4084
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4126
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ProductionType.html Online documentation}
|
|
4085
4127
|
*/
|
|
4086
4128
|
export type ProductionType = "none" | "input" | "input-output" | "output"
|
|
4087
4129
|
export interface SurfaceCondition {
|
|
@@ -4093,7 +4135,7 @@ declare module "factorio:runtime" {
|
|
|
4093
4135
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
|
4094
4136
|
*
|
|
4095
4137
|
* By default, none of these flags are set.
|
|
4096
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4138
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ItemPrototypeFlags.html Online documentation}
|
|
4097
4139
|
*/
|
|
4098
4140
|
export type ItemPrototypeFlags = {
|
|
4099
4141
|
readonly [T in ItemPrototypeFlag]?: true
|
|
@@ -4114,7 +4156,7 @@ declare module "factorio:runtime" {
|
|
|
4114
4156
|
* - `"spawnable"`: Allows the item to be spawned by a quickbar shortcut or custom input.
|
|
4115
4157
|
* - `"spoil-result"`
|
|
4116
4158
|
* - `"ignore-spoil-time-modifier"`: Controls whether the spoil time ignores the spoil time modifier in the {@link DifficultySettings}.
|
|
4117
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4159
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ItemPrototypeFlag.html Online documentation}
|
|
4118
4160
|
*/
|
|
4119
4161
|
export type ItemPrototypeFlag =
|
|
4120
4162
|
| "draw-logistic-overlay"
|
|
@@ -4131,7 +4173,7 @@ declare module "factorio:runtime" {
|
|
|
4131
4173
|
| "ignore-spoil-time-modifier"
|
|
4132
4174
|
/**
|
|
4133
4175
|
* @see UpgradeMapperSourceWrite
|
|
4134
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4176
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/UpgradeMapperSource.html Online documentation}
|
|
4135
4177
|
*/
|
|
4136
4178
|
export interface UpgradeMapperSource {
|
|
4137
4179
|
readonly type: "item" | "entity"
|
|
@@ -4154,7 +4196,7 @@ declare module "factorio:runtime" {
|
|
|
4154
4196
|
}
|
|
4155
4197
|
/**
|
|
4156
4198
|
* Write form of {@link UpgradeMapperSource}, where some properties allow additional values as input compared to the read form.
|
|
4157
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4199
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/UpgradeMapperSource.html Online documentation}
|
|
4158
4200
|
*/
|
|
4159
4201
|
export interface UpgradeMapperSourceWrite {
|
|
4160
4202
|
readonly type: "item" | "entity"
|
|
@@ -4244,7 +4286,7 @@ declare module "factorio:runtime" {
|
|
|
4244
4286
|
* - `"controllable-remove"`
|
|
4245
4287
|
* - `"entity-ghost"`: Selects entities that are `entity-ghost`s.
|
|
4246
4288
|
* - `"tile-ghost"`: Selects entities that are `tile-ghost`s.
|
|
4247
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4289
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SelectionModeFlags.html Online documentation}
|
|
4248
4290
|
*/
|
|
4249
4291
|
export interface SelectionModeFlags {
|
|
4250
4292
|
/**
|
|
@@ -4401,7 +4443,7 @@ declare module "factorio:runtime" {
|
|
|
4401
4443
|
* - `"use-on-self"`: {@link UseOnSelfCapsuleAction}
|
|
4402
4444
|
* - `"artillery-remote"`: {@link ArtilleryRemoteCapsuleAction}
|
|
4403
4445
|
* - `"destroy-cliffs"`: {@link DestroyCliffsCapsuleAction}
|
|
4404
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4446
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/CapsuleAction.html Online documentation}
|
|
4405
4447
|
*/
|
|
4406
4448
|
export type CapsuleAction =
|
|
4407
4449
|
| ThrowCapsuleAction
|
|
@@ -4414,7 +4456,7 @@ declare module "factorio:runtime" {
|
|
|
4414
4456
|
* - `"none"`
|
|
4415
4457
|
* - `"whitelist"`
|
|
4416
4458
|
* - `"blacklist"`
|
|
4417
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4459
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/PrototypeFilterMode.html Online documentation}
|
|
4418
4460
|
*/
|
|
4419
4461
|
export type PrototypeFilterMode = "none" | "whitelist" | "blacklist"
|
|
4420
4462
|
export interface SpoilToTriggerResult {
|
|
@@ -4453,7 +4495,7 @@ declare module "factorio:runtime" {
|
|
|
4453
4495
|
* - `"entity"`: Fires at an entity.
|
|
4454
4496
|
* - `"position"`: Fires directly at a position.
|
|
4455
4497
|
* - `"direction"`: Fires in a direction.
|
|
4456
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4498
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TargetType.html Online documentation}
|
|
4457
4499
|
*/
|
|
4458
4500
|
export type TargetType = "entity" | "position" | "direction"
|
|
4459
4501
|
export interface AmmoType {
|
|
@@ -4477,7 +4519,7 @@ declare module "factorio:runtime" {
|
|
|
4477
4519
|
}
|
|
4478
4520
|
/**
|
|
4479
4521
|
* @see BlueprintItemFilterWrite
|
|
4480
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4522
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintItemFilter.html Online documentation}
|
|
4481
4523
|
*/
|
|
4482
4524
|
export interface BlueprintItemFilter {
|
|
4483
4525
|
readonly index: uint32
|
|
@@ -4496,7 +4538,7 @@ declare module "factorio:runtime" {
|
|
|
4496
4538
|
}
|
|
4497
4539
|
/**
|
|
4498
4540
|
* Write form of {@link BlueprintItemFilter}, where some properties allow additional values as input compared to the read form.
|
|
4499
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4541
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintItemFilter.html Online documentation}
|
|
4500
4542
|
*/
|
|
4501
4543
|
export interface BlueprintItemFilterWrite {
|
|
4502
4544
|
readonly index: uint32
|
|
@@ -4515,7 +4557,7 @@ declare module "factorio:runtime" {
|
|
|
4515
4557
|
}
|
|
4516
4558
|
/**
|
|
4517
4559
|
* @see BlueprintInventoryWithFiltersWrite
|
|
4518
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4560
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintInventoryWithFilters.html Online documentation}
|
|
4519
4561
|
*/
|
|
4520
4562
|
export interface BlueprintInventoryWithFilters {
|
|
4521
4563
|
readonly bar?: ItemStackIndex
|
|
@@ -4523,7 +4565,7 @@ declare module "factorio:runtime" {
|
|
|
4523
4565
|
}
|
|
4524
4566
|
/**
|
|
4525
4567
|
* Write form of {@link BlueprintInventoryWithFilters}, where some properties allow additional values as input compared to the read form.
|
|
4526
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4568
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintInventoryWithFilters.html Online documentation}
|
|
4527
4569
|
*/
|
|
4528
4570
|
export interface BlueprintInventoryWithFiltersWrite {
|
|
4529
4571
|
readonly bar?: ItemStackIndex
|
|
@@ -4567,7 +4609,7 @@ declare module "factorio:runtime" {
|
|
|
4567
4609
|
}
|
|
4568
4610
|
/**
|
|
4569
4611
|
* @see BlueprintEquipmentWrite
|
|
4570
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4612
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintEquipment.html Online documentation}
|
|
4571
4613
|
*/
|
|
4572
4614
|
export interface BlueprintEquipment {
|
|
4573
4615
|
readonly equipment: LuaEquipmentPrototype
|
|
@@ -4575,7 +4617,7 @@ declare module "factorio:runtime" {
|
|
|
4575
4617
|
}
|
|
4576
4618
|
/**
|
|
4577
4619
|
* Write form of {@link BlueprintEquipment}, where some properties allow additional values as input compared to the read form.
|
|
4578
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4620
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintEquipment.html Online documentation}
|
|
4579
4621
|
*/
|
|
4580
4622
|
export interface BlueprintEquipmentWrite {
|
|
4581
4623
|
readonly equipment: EquipmentWithQualityID
|
|
@@ -4591,7 +4633,7 @@ declare module "factorio:runtime" {
|
|
|
4591
4633
|
* @example
|
|
4592
4634
|
* -- Shorthand
|
|
4593
4635
|
* {1, 2}
|
|
4594
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4636
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EquipmentPosition.html Online documentation}
|
|
4595
4637
|
*/
|
|
4596
4638
|
export interface EquipmentPosition {
|
|
4597
4639
|
readonly x: int32
|
|
@@ -4600,7 +4642,7 @@ declare module "factorio:runtime" {
|
|
|
4600
4642
|
/**
|
|
4601
4643
|
* Array form of {@link EquipmentPosition}.
|
|
4602
4644
|
* @see EquipmentPosition
|
|
4603
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4645
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EquipmentPosition.html Online documentation}
|
|
4604
4646
|
*/
|
|
4605
4647
|
export type EquipmentPositionArray = readonly [int32, int32]
|
|
4606
4648
|
export interface ModSetting {
|
|
@@ -4611,7 +4653,7 @@ declare module "factorio:runtime" {
|
|
|
4611
4653
|
}
|
|
4612
4654
|
/**
|
|
4613
4655
|
* An actual signal transmitted by the network.
|
|
4614
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4656
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Signal.html Online documentation}
|
|
4615
4657
|
*/
|
|
4616
4658
|
export interface Signal {
|
|
4617
4659
|
/**
|
|
@@ -4625,7 +4667,7 @@ declare module "factorio:runtime" {
|
|
|
4625
4667
|
}
|
|
4626
4668
|
/**
|
|
4627
4669
|
* @see DisplayPanelMessageDefinitionWrite
|
|
4628
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4670
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DisplayPanelMessageDefinition.html Online documentation}
|
|
4629
4671
|
*/
|
|
4630
4672
|
export interface DisplayPanelMessageDefinition {
|
|
4631
4673
|
/**
|
|
@@ -4643,7 +4685,7 @@ declare module "factorio:runtime" {
|
|
|
4643
4685
|
}
|
|
4644
4686
|
/**
|
|
4645
4687
|
* Write form of {@link DisplayPanelMessageDefinition}, where some properties allow additional values as input compared to the read form.
|
|
4646
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4688
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DisplayPanelMessageDefinition.html Online documentation}
|
|
4647
4689
|
*/
|
|
4648
4690
|
export interface DisplayPanelMessageDefinitionWrite {
|
|
4649
4691
|
/**
|
|
@@ -4671,7 +4713,7 @@ declare module "factorio:runtime" {
|
|
|
4671
4713
|
}
|
|
4672
4714
|
/**
|
|
4673
4715
|
* @see CircuitConditionWrite
|
|
4674
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4716
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/CircuitCondition.html Online documentation}
|
|
4675
4717
|
*/
|
|
4676
4718
|
export interface CircuitCondition {
|
|
4677
4719
|
/**
|
|
@@ -4693,7 +4735,7 @@ declare module "factorio:runtime" {
|
|
|
4693
4735
|
}
|
|
4694
4736
|
/**
|
|
4695
4737
|
* Write form of {@link CircuitCondition}, where some properties allow additional values as input compared to the read form.
|
|
4696
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4738
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/CircuitCondition.html Online documentation}
|
|
4697
4739
|
*/
|
|
4698
4740
|
export interface CircuitConditionWrite {
|
|
4699
4741
|
/**
|
|
@@ -4715,7 +4757,7 @@ declare module "factorio:runtime" {
|
|
|
4715
4757
|
}
|
|
4716
4758
|
/**
|
|
4717
4759
|
* @see SignalIDWrite
|
|
4718
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4760
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SignalID.html Online documentation}
|
|
4719
4761
|
*/
|
|
4720
4762
|
export interface SignalID {
|
|
4721
4763
|
/**
|
|
@@ -4733,7 +4775,7 @@ declare module "factorio:runtime" {
|
|
|
4733
4775
|
}
|
|
4734
4776
|
/**
|
|
4735
4777
|
* Write form of {@link SignalID}, where some properties allow additional values as input compared to the read form.
|
|
4736
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4778
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SignalID.html Online documentation}
|
|
4737
4779
|
*/
|
|
4738
4780
|
export interface SignalIDWrite {
|
|
4739
4781
|
/**
|
|
@@ -4769,7 +4811,7 @@ declare module "factorio:runtime" {
|
|
|
4769
4811
|
* - `"space-location"`
|
|
4770
4812
|
* - `"asteroid-chunk"`
|
|
4771
4813
|
* - `"quality"`
|
|
4772
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4814
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SignalIDType.html Online documentation}
|
|
4773
4815
|
*/
|
|
4774
4816
|
export type SignalIDType =
|
|
4775
4817
|
| "item"
|
|
@@ -4782,7 +4824,7 @@ declare module "factorio:runtime" {
|
|
|
4782
4824
|
| "quality"
|
|
4783
4825
|
/**
|
|
4784
4826
|
* @see DeciderCombinatorParametersWrite
|
|
4785
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4827
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DeciderCombinatorParameters.html Online documentation}
|
|
4786
4828
|
*/
|
|
4787
4829
|
export interface DeciderCombinatorParameters {
|
|
4788
4830
|
/**
|
|
@@ -4796,7 +4838,7 @@ declare module "factorio:runtime" {
|
|
|
4796
4838
|
}
|
|
4797
4839
|
/**
|
|
4798
4840
|
* Write form of {@link DeciderCombinatorParameters}, where some properties allow additional values as input compared to the read form.
|
|
4799
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4841
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DeciderCombinatorParameters.html Online documentation}
|
|
4800
4842
|
*/
|
|
4801
4843
|
export interface DeciderCombinatorParametersWrite {
|
|
4802
4844
|
/**
|
|
@@ -4810,7 +4852,7 @@ declare module "factorio:runtime" {
|
|
|
4810
4852
|
}
|
|
4811
4853
|
/**
|
|
4812
4854
|
* @see DeciderCombinatorConditionWrite
|
|
4813
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4855
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DeciderCombinatorCondition.html Online documentation}
|
|
4814
4856
|
*/
|
|
4815
4857
|
export interface DeciderCombinatorCondition {
|
|
4816
4858
|
/**
|
|
@@ -4844,7 +4886,7 @@ declare module "factorio:runtime" {
|
|
|
4844
4886
|
}
|
|
4845
4887
|
/**
|
|
4846
4888
|
* Write form of {@link DeciderCombinatorCondition}, where some properties allow additional values as input compared to the read form.
|
|
4847
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4889
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DeciderCombinatorCondition.html Online documentation}
|
|
4848
4890
|
*/
|
|
4849
4891
|
export interface DeciderCombinatorConditionWrite {
|
|
4850
4892
|
/**
|
|
@@ -4878,7 +4920,7 @@ declare module "factorio:runtime" {
|
|
|
4878
4920
|
}
|
|
4879
4921
|
/**
|
|
4880
4922
|
* @see DeciderCombinatorOutputWrite
|
|
4881
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4923
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DeciderCombinatorOutput.html Online documentation}
|
|
4882
4924
|
*/
|
|
4883
4925
|
export interface DeciderCombinatorOutput {
|
|
4884
4926
|
/**
|
|
@@ -4900,7 +4942,7 @@ declare module "factorio:runtime" {
|
|
|
4900
4942
|
}
|
|
4901
4943
|
/**
|
|
4902
4944
|
* Write form of {@link DeciderCombinatorOutput}, where some properties allow additional values as input compared to the read form.
|
|
4903
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4945
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DeciderCombinatorOutput.html Online documentation}
|
|
4904
4946
|
*/
|
|
4905
4947
|
export interface DeciderCombinatorOutputWrite {
|
|
4906
4948
|
/**
|
|
@@ -4922,7 +4964,7 @@ declare module "factorio:runtime" {
|
|
|
4922
4964
|
}
|
|
4923
4965
|
/**
|
|
4924
4966
|
* @see ArithmeticCombinatorParametersWrite
|
|
4925
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4967
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ArithmeticCombinatorParameters.html Online documentation}
|
|
4926
4968
|
*/
|
|
4927
4969
|
export interface ArithmeticCombinatorParameters {
|
|
4928
4970
|
/**
|
|
@@ -4960,7 +5002,7 @@ declare module "factorio:runtime" {
|
|
|
4960
5002
|
}
|
|
4961
5003
|
/**
|
|
4962
5004
|
* Write form of {@link ArithmeticCombinatorParameters}, where some properties allow additional values as input compared to the read form.
|
|
4963
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5005
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ArithmeticCombinatorParameters.html Online documentation}
|
|
4964
5006
|
*/
|
|
4965
5007
|
export interface ArithmeticCombinatorParametersWrite {
|
|
4966
5008
|
/**
|
|
@@ -5009,7 +5051,7 @@ declare module "factorio:runtime" {
|
|
|
5009
5051
|
* - `"AND"`
|
|
5010
5052
|
* - `"OR"`
|
|
5011
5053
|
* - `"XOR"`
|
|
5012
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5054
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ArithmeticCombinatorParameterOperation.html Online documentation}
|
|
5013
5055
|
*/
|
|
5014
5056
|
export type ArithmeticCombinatorParameterOperation =
|
|
5015
5057
|
| "*"
|
|
@@ -5070,14 +5112,14 @@ declare module "factorio:runtime" {
|
|
|
5070
5112
|
/**
|
|
5071
5113
|
* The signal to emit.
|
|
5072
5114
|
*/
|
|
5073
|
-
readonly count_signal
|
|
5115
|
+
readonly count_signal?: SignalID
|
|
5074
5116
|
}
|
|
5075
5117
|
export interface CountSelectorCombinatorParametersWrite extends BaseSelectorCombinatorParameters {
|
|
5076
5118
|
readonly operation: "count"
|
|
5077
5119
|
/**
|
|
5078
5120
|
* The signal to emit.
|
|
5079
5121
|
*/
|
|
5080
|
-
readonly count_signal
|
|
5122
|
+
readonly count_signal?: SignalIDWrite
|
|
5081
5123
|
}
|
|
5082
5124
|
/**
|
|
5083
5125
|
* `"random"` variant of {@link SelectorCombinatorParameters}.
|
|
@@ -5115,10 +5157,7 @@ declare module "factorio:runtime" {
|
|
|
5115
5157
|
* Defaults to `false`.
|
|
5116
5158
|
*/
|
|
5117
5159
|
readonly select_quality_from_signal?: boolean
|
|
5118
|
-
|
|
5119
|
-
* The name of the quality prototype. Defaults to `"normal"`.
|
|
5120
|
-
*/
|
|
5121
|
-
readonly quality_source_static?: string
|
|
5160
|
+
readonly quality_source_static?: BlueprintQualityID
|
|
5122
5161
|
readonly quality_source_signal?: SignalIDBase
|
|
5123
5162
|
readonly quality_destination_signal: SignalID
|
|
5124
5163
|
}
|
|
@@ -5128,10 +5167,7 @@ declare module "factorio:runtime" {
|
|
|
5128
5167
|
* Defaults to `false`.
|
|
5129
5168
|
*/
|
|
5130
5169
|
readonly select_quality_from_signal?: boolean
|
|
5131
|
-
|
|
5132
|
-
* The name of the quality prototype. Defaults to `"normal"`.
|
|
5133
|
-
*/
|
|
5134
|
-
readonly quality_source_static?: string
|
|
5170
|
+
readonly quality_source_static?: BlueprintQualityID
|
|
5135
5171
|
readonly quality_source_signal?: SignalIDBase
|
|
5136
5172
|
readonly quality_destination_signal: SignalIDWrite
|
|
5137
5173
|
}
|
|
@@ -5148,7 +5184,7 @@ declare module "factorio:runtime" {
|
|
|
5148
5184
|
* - `"random"`: {@link RandomSelectorCombinatorParameters}
|
|
5149
5185
|
* - `"quality-filter"`: {@link QualityFilterSelectorCombinatorParameters}
|
|
5150
5186
|
* - `"quality-transfer"`: {@link QualityTransferSelectorCombinatorParameters}
|
|
5151
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5187
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SelectorCombinatorParameters.html Online documentation}
|
|
5152
5188
|
*/
|
|
5153
5189
|
export type SelectorCombinatorParameters =
|
|
5154
5190
|
| SelectSelectorCombinatorParameters
|
|
@@ -5159,7 +5195,7 @@ declare module "factorio:runtime" {
|
|
|
5159
5195
|
| OtherSelectorCombinatorParameters
|
|
5160
5196
|
/**
|
|
5161
5197
|
* Write form of {@link SelectorCombinatorParameters}, where some properties allow additional values as input compared to the read form.
|
|
5162
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5198
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SelectorCombinatorParameters.html Online documentation}
|
|
5163
5199
|
*/
|
|
5164
5200
|
export type SelectorCombinatorParametersWrite =
|
|
5165
5201
|
| SelectSelectorCombinatorParametersWrite
|
|
@@ -5177,7 +5213,7 @@ declare module "factorio:runtime" {
|
|
|
5177
5213
|
* - `"rocket-capacity"`
|
|
5178
5214
|
* - `"stack-size"`
|
|
5179
5215
|
* - `"quality-filter"`
|
|
5180
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5216
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SelectorCombinatorParameterOperation.html Online documentation}
|
|
5181
5217
|
*/
|
|
5182
5218
|
export type SelectorCombinatorParameterOperation =
|
|
5183
5219
|
| "select"
|
|
@@ -5189,14 +5225,14 @@ declare module "factorio:runtime" {
|
|
|
5189
5225
|
| "quality-filter"
|
|
5190
5226
|
/**
|
|
5191
5227
|
* @see DeciderCombinatorBlueprintControlBehaviorWrite
|
|
5192
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5228
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DeciderCombinatorBlueprintControlBehavior.html Online documentation}
|
|
5193
5229
|
*/
|
|
5194
5230
|
export interface DeciderCombinatorBlueprintControlBehavior {
|
|
5195
5231
|
readonly decider_conditions: DeciderCombinatorParameters
|
|
5196
5232
|
}
|
|
5197
5233
|
/**
|
|
5198
5234
|
* Write form of {@link DeciderCombinatorBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5199
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5235
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DeciderCombinatorBlueprintControlBehavior.html Online documentation}
|
|
5200
5236
|
*/
|
|
5201
5237
|
export interface DeciderCombinatorBlueprintControlBehaviorWrite {
|
|
5202
5238
|
readonly decider_conditions: DeciderCombinatorParametersWrite
|
|
@@ -5209,7 +5245,7 @@ declare module "factorio:runtime" {
|
|
|
5209
5245
|
}
|
|
5210
5246
|
/**
|
|
5211
5247
|
* @see SpacePlatformHubBlueprintControlBehaviorWrite
|
|
5212
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5248
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SpacePlatformHubBlueprintControlBehavior.html Online documentation}
|
|
5213
5249
|
*/
|
|
5214
5250
|
export interface SpacePlatformHubBlueprintControlBehavior {
|
|
5215
5251
|
/**
|
|
@@ -5233,10 +5269,15 @@ declare module "factorio:runtime" {
|
|
|
5233
5269
|
*/
|
|
5234
5270
|
readonly read_speed?: boolean
|
|
5235
5271
|
readonly speed_signal?: SignalID
|
|
5272
|
+
/**
|
|
5273
|
+
* Defaults to `false`.
|
|
5274
|
+
*/
|
|
5275
|
+
readonly read_damage_taken?: boolean
|
|
5276
|
+
readonly damage_taken_signal?: SignalID
|
|
5236
5277
|
}
|
|
5237
5278
|
/**
|
|
5238
5279
|
* Write form of {@link SpacePlatformHubBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5239
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5280
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SpacePlatformHubBlueprintControlBehavior.html Online documentation}
|
|
5240
5281
|
*/
|
|
5241
5282
|
export interface SpacePlatformHubBlueprintControlBehaviorWrite {
|
|
5242
5283
|
/**
|
|
@@ -5260,10 +5301,15 @@ declare module "factorio:runtime" {
|
|
|
5260
5301
|
*/
|
|
5261
5302
|
readonly read_speed?: boolean
|
|
5262
5303
|
readonly speed_signal?: SignalIDWrite
|
|
5304
|
+
/**
|
|
5305
|
+
* Defaults to `false`.
|
|
5306
|
+
*/
|
|
5307
|
+
readonly read_damage_taken?: boolean
|
|
5308
|
+
readonly damage_taken_signal?: SignalIDWrite
|
|
5263
5309
|
}
|
|
5264
5310
|
/**
|
|
5265
5311
|
* @see RailSignalBaseBlueprintControlBehaviorWrite
|
|
5266
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5312
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/RailSignalBaseBlueprintControlBehavior.html Online documentation}
|
|
5267
5313
|
*/
|
|
5268
5314
|
export interface RailSignalBaseBlueprintControlBehavior {
|
|
5269
5315
|
readonly circuit_close_signal: boolean
|
|
@@ -5276,7 +5322,7 @@ declare module "factorio:runtime" {
|
|
|
5276
5322
|
}
|
|
5277
5323
|
/**
|
|
5278
5324
|
* Write form of {@link RailSignalBaseBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5279
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5325
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/RailSignalBaseBlueprintControlBehavior.html Online documentation}
|
|
5280
5326
|
*/
|
|
5281
5327
|
export interface RailSignalBaseBlueprintControlBehaviorWrite {
|
|
5282
5328
|
readonly circuit_close_signal: boolean
|
|
@@ -5289,7 +5335,7 @@ declare module "factorio:runtime" {
|
|
|
5289
5335
|
}
|
|
5290
5336
|
/**
|
|
5291
5337
|
* @see FurnaceBlueprintControlBehaviorWrite
|
|
5292
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5338
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/FurnaceBlueprintControlBehavior.html Online documentation}
|
|
5293
5339
|
*/
|
|
5294
5340
|
export interface FurnaceBlueprintControlBehavior {
|
|
5295
5341
|
/**
|
|
@@ -5331,7 +5377,7 @@ declare module "factorio:runtime" {
|
|
|
5331
5377
|
}
|
|
5332
5378
|
/**
|
|
5333
5379
|
* Write form of {@link FurnaceBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5334
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5380
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/FurnaceBlueprintControlBehavior.html Online documentation}
|
|
5335
5381
|
*/
|
|
5336
5382
|
export interface FurnaceBlueprintControlBehaviorWrite {
|
|
5337
5383
|
/**
|
|
@@ -5373,14 +5419,14 @@ declare module "factorio:runtime" {
|
|
|
5373
5419
|
}
|
|
5374
5420
|
/**
|
|
5375
5421
|
* @see ArithmeticCombinatorBlueprintControlBehaviorWrite
|
|
5376
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5422
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ArithmeticCombinatorBlueprintControlBehavior.html Online documentation}
|
|
5377
5423
|
*/
|
|
5378
5424
|
export interface ArithmeticCombinatorBlueprintControlBehavior {
|
|
5379
5425
|
readonly arithmetic_conditions: ArithmeticCombinatorParameters
|
|
5380
5426
|
}
|
|
5381
5427
|
/**
|
|
5382
5428
|
* Write form of {@link ArithmeticCombinatorBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5383
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5429
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ArithmeticCombinatorBlueprintControlBehavior.html Online documentation}
|
|
5384
5430
|
*/
|
|
5385
5431
|
export interface ArithmeticCombinatorBlueprintControlBehaviorWrite {
|
|
5386
5432
|
readonly arithmetic_conditions: ArithmeticCombinatorParametersWrite
|
|
@@ -5391,6 +5437,62 @@ declare module "factorio:runtime" {
|
|
|
5391
5437
|
*/
|
|
5392
5438
|
readonly circuit_mode_of_operation?: defines.control_behavior.cargo_landing_pad.exclusive_mode
|
|
5393
5439
|
}
|
|
5440
|
+
/**
|
|
5441
|
+
* @see LampBlueprintControlBehaviorWrite
|
|
5442
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LampBlueprintControlBehavior.html Online documentation}
|
|
5443
|
+
*/
|
|
5444
|
+
export interface LampBlueprintControlBehavior {
|
|
5445
|
+
/**
|
|
5446
|
+
* Defaults to `false`.
|
|
5447
|
+
*/
|
|
5448
|
+
readonly use_colors?: boolean
|
|
5449
|
+
readonly red_signal?: SignalID
|
|
5450
|
+
readonly green_signal?: SignalID
|
|
5451
|
+
readonly blue_signal?: SignalID
|
|
5452
|
+
readonly rgb_signal?: SignalID
|
|
5453
|
+
/**
|
|
5454
|
+
* Defaults to `defines.control_behavior.lamp.color_mapping`.
|
|
5455
|
+
*/
|
|
5456
|
+
readonly color_mode?: defines.control_behavior.lamp.color_mode
|
|
5457
|
+
/**
|
|
5458
|
+
* Defaults to `false`.
|
|
5459
|
+
*/
|
|
5460
|
+
readonly circuit_enabled?: boolean
|
|
5461
|
+
readonly circuit_condition?: CircuitCondition
|
|
5462
|
+
/**
|
|
5463
|
+
* Defaults to `false`.
|
|
5464
|
+
*/
|
|
5465
|
+
readonly connect_to_logistic_network?: boolean
|
|
5466
|
+
readonly logistic_condition?: CircuitCondition
|
|
5467
|
+
}
|
|
5468
|
+
/**
|
|
5469
|
+
* Write form of {@link LampBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5470
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LampBlueprintControlBehavior.html Online documentation}
|
|
5471
|
+
*/
|
|
5472
|
+
export interface LampBlueprintControlBehaviorWrite {
|
|
5473
|
+
/**
|
|
5474
|
+
* Defaults to `false`.
|
|
5475
|
+
*/
|
|
5476
|
+
readonly use_colors?: boolean
|
|
5477
|
+
readonly red_signal?: SignalIDWrite
|
|
5478
|
+
readonly green_signal?: SignalIDWrite
|
|
5479
|
+
readonly blue_signal?: SignalIDWrite
|
|
5480
|
+
readonly rgb_signal?: SignalIDWrite
|
|
5481
|
+
/**
|
|
5482
|
+
* Defaults to `defines.control_behavior.lamp.color_mapping`.
|
|
5483
|
+
*/
|
|
5484
|
+
readonly color_mode?: defines.control_behavior.lamp.color_mode
|
|
5485
|
+
/**
|
|
5486
|
+
* Defaults to `false`.
|
|
5487
|
+
*/
|
|
5488
|
+
readonly circuit_enabled?: boolean
|
|
5489
|
+
readonly circuit_condition?: CircuitConditionWrite
|
|
5490
|
+
/**
|
|
5491
|
+
* Defaults to `false`.
|
|
5492
|
+
*/
|
|
5493
|
+
readonly connect_to_logistic_network?: boolean
|
|
5494
|
+
readonly logistic_condition?: CircuitConditionWrite
|
|
5495
|
+
}
|
|
5394
5496
|
export interface ProxyContainerBlueprintControlBehavior {
|
|
5395
5497
|
/**
|
|
5396
5498
|
* Defaults to `true`.
|
|
@@ -5399,7 +5501,7 @@ declare module "factorio:runtime" {
|
|
|
5399
5501
|
}
|
|
5400
5502
|
/**
|
|
5401
5503
|
* @see MiningDrillBlueprintControlBehaviorWrite
|
|
5402
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5504
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/MiningDrillBlueprintControlBehavior.html Online documentation}
|
|
5403
5505
|
*/
|
|
5404
5506
|
export interface MiningDrillBlueprintControlBehavior {
|
|
5405
5507
|
readonly circuit_read_resources: boolean
|
|
@@ -5417,7 +5519,7 @@ declare module "factorio:runtime" {
|
|
|
5417
5519
|
}
|
|
5418
5520
|
/**
|
|
5419
5521
|
* Write form of {@link MiningDrillBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5420
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5522
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/MiningDrillBlueprintControlBehavior.html Online documentation}
|
|
5421
5523
|
*/
|
|
5422
5524
|
export interface MiningDrillBlueprintControlBehaviorWrite {
|
|
5423
5525
|
readonly circuit_read_resources: boolean
|
|
@@ -5433,9 +5535,57 @@ declare module "factorio:runtime" {
|
|
|
5433
5535
|
readonly connect_to_logistic_network?: boolean
|
|
5434
5536
|
readonly logistic_condition?: CircuitConditionWrite
|
|
5435
5537
|
}
|
|
5538
|
+
/**
|
|
5539
|
+
* @see LoaderBlueprintControlBehaviorWrite
|
|
5540
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LoaderBlueprintControlBehavior.html Online documentation}
|
|
5541
|
+
*/
|
|
5542
|
+
export interface LoaderBlueprintControlBehavior {
|
|
5543
|
+
/**
|
|
5544
|
+
* Defaults to `false`.
|
|
5545
|
+
*/
|
|
5546
|
+
readonly circuit_set_filters?: boolean
|
|
5547
|
+
/**
|
|
5548
|
+
* Defaults to `false`.
|
|
5549
|
+
*/
|
|
5550
|
+
readonly circuit_read_transfers?: boolean
|
|
5551
|
+
/**
|
|
5552
|
+
* Defaults to `false`.
|
|
5553
|
+
*/
|
|
5554
|
+
readonly circuit_enabled?: boolean
|
|
5555
|
+
readonly circuit_condition?: CircuitCondition
|
|
5556
|
+
/**
|
|
5557
|
+
* Defaults to `false`.
|
|
5558
|
+
*/
|
|
5559
|
+
readonly connect_to_logistic_network?: boolean
|
|
5560
|
+
readonly logistic_condition?: CircuitCondition
|
|
5561
|
+
}
|
|
5562
|
+
/**
|
|
5563
|
+
* Write form of {@link LoaderBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5564
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LoaderBlueprintControlBehavior.html Online documentation}
|
|
5565
|
+
*/
|
|
5566
|
+
export interface LoaderBlueprintControlBehaviorWrite {
|
|
5567
|
+
/**
|
|
5568
|
+
* Defaults to `false`.
|
|
5569
|
+
*/
|
|
5570
|
+
readonly circuit_set_filters?: boolean
|
|
5571
|
+
/**
|
|
5572
|
+
* Defaults to `false`.
|
|
5573
|
+
*/
|
|
5574
|
+
readonly circuit_read_transfers?: boolean
|
|
5575
|
+
/**
|
|
5576
|
+
* Defaults to `false`.
|
|
5577
|
+
*/
|
|
5578
|
+
readonly circuit_enabled?: boolean
|
|
5579
|
+
readonly circuit_condition?: CircuitConditionWrite
|
|
5580
|
+
/**
|
|
5581
|
+
* Defaults to `false`.
|
|
5582
|
+
*/
|
|
5583
|
+
readonly connect_to_logistic_network?: boolean
|
|
5584
|
+
readonly logistic_condition?: CircuitConditionWrite
|
|
5585
|
+
}
|
|
5436
5586
|
/**
|
|
5437
5587
|
* @see WallBlueprintControlBehaviorWrite
|
|
5438
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5588
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/WallBlueprintControlBehavior.html Online documentation}
|
|
5439
5589
|
*/
|
|
5440
5590
|
export interface WallBlueprintControlBehavior {
|
|
5441
5591
|
readonly circuit_open_gate: boolean
|
|
@@ -5445,7 +5595,7 @@ declare module "factorio:runtime" {
|
|
|
5445
5595
|
}
|
|
5446
5596
|
/**
|
|
5447
5597
|
* Write form of {@link WallBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5448
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5598
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/WallBlueprintControlBehavior.html Online documentation}
|
|
5449
5599
|
*/
|
|
5450
5600
|
export interface WallBlueprintControlBehaviorWrite {
|
|
5451
5601
|
readonly circuit_open_gate: boolean
|
|
@@ -5461,7 +5611,7 @@ declare module "factorio:runtime" {
|
|
|
5461
5611
|
}
|
|
5462
5612
|
/**
|
|
5463
5613
|
* @see PumpBlueprintControlBehaviorWrite
|
|
5464
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5614
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/PumpBlueprintControlBehavior.html Online documentation}
|
|
5465
5615
|
*/
|
|
5466
5616
|
export interface PumpBlueprintControlBehavior {
|
|
5467
5617
|
/**
|
|
@@ -5481,7 +5631,7 @@ declare module "factorio:runtime" {
|
|
|
5481
5631
|
}
|
|
5482
5632
|
/**
|
|
5483
5633
|
* Write form of {@link PumpBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5484
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5634
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/PumpBlueprintControlBehavior.html Online documentation}
|
|
5485
5635
|
*/
|
|
5486
5636
|
export interface PumpBlueprintControlBehaviorWrite {
|
|
5487
5637
|
/**
|
|
@@ -5501,7 +5651,7 @@ declare module "factorio:runtime" {
|
|
|
5501
5651
|
}
|
|
5502
5652
|
/**
|
|
5503
5653
|
* @see TrainStopBlueprintControlBehaviorWrite
|
|
5504
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5654
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TrainStopBlueprintControlBehavior.html Online documentation}
|
|
5505
5655
|
*/
|
|
5506
5656
|
export interface TrainStopBlueprintControlBehavior {
|
|
5507
5657
|
/**
|
|
@@ -5545,7 +5695,7 @@ declare module "factorio:runtime" {
|
|
|
5545
5695
|
}
|
|
5546
5696
|
/**
|
|
5547
5697
|
* Write form of {@link TrainStopBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5548
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5698
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TrainStopBlueprintControlBehavior.html Online documentation}
|
|
5549
5699
|
*/
|
|
5550
5700
|
export interface TrainStopBlueprintControlBehaviorWrite {
|
|
5551
5701
|
/**
|
|
@@ -5589,7 +5739,7 @@ declare module "factorio:runtime" {
|
|
|
5589
5739
|
}
|
|
5590
5740
|
/**
|
|
5591
5741
|
* @see ProgrammableSpeakerBlueprintControlBehaviorWrite
|
|
5592
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5742
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ProgrammableSpeakerBlueprintControlBehavior.html Online documentation}
|
|
5593
5743
|
*/
|
|
5594
5744
|
export interface ProgrammableSpeakerBlueprintControlBehavior {
|
|
5595
5745
|
readonly circuit_condition: CircuitCondition
|
|
@@ -5597,7 +5747,7 @@ declare module "factorio:runtime" {
|
|
|
5597
5747
|
}
|
|
5598
5748
|
/**
|
|
5599
5749
|
* Write form of {@link ProgrammableSpeakerBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5600
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5750
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ProgrammableSpeakerBlueprintControlBehavior.html Online documentation}
|
|
5601
5751
|
*/
|
|
5602
5752
|
export interface ProgrammableSpeakerBlueprintControlBehaviorWrite {
|
|
5603
5753
|
readonly circuit_condition: CircuitConditionWrite
|
|
@@ -5605,7 +5755,7 @@ declare module "factorio:runtime" {
|
|
|
5605
5755
|
}
|
|
5606
5756
|
/**
|
|
5607
5757
|
* @see SplitterBlueprintControlBehaviorWrite
|
|
5608
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5758
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SplitterBlueprintControlBehavior.html Online documentation}
|
|
5609
5759
|
*/
|
|
5610
5760
|
export interface SplitterBlueprintControlBehavior {
|
|
5611
5761
|
/**
|
|
@@ -5627,7 +5777,7 @@ declare module "factorio:runtime" {
|
|
|
5627
5777
|
}
|
|
5628
5778
|
/**
|
|
5629
5779
|
* Write form of {@link SplitterBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5630
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5780
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SplitterBlueprintControlBehavior.html Online documentation}
|
|
5631
5781
|
*/
|
|
5632
5782
|
export interface SplitterBlueprintControlBehaviorWrite {
|
|
5633
5783
|
/**
|
|
@@ -5649,7 +5799,7 @@ declare module "factorio:runtime" {
|
|
|
5649
5799
|
}
|
|
5650
5800
|
/**
|
|
5651
5801
|
* @see TransportBeltBlueprintControlBehaviorWrite
|
|
5652
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5802
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TransportBeltBlueprintControlBehavior.html Online documentation}
|
|
5653
5803
|
*/
|
|
5654
5804
|
export interface TransportBeltBlueprintControlBehavior {
|
|
5655
5805
|
readonly circuit_read_hand_contents: boolean
|
|
@@ -5667,7 +5817,7 @@ declare module "factorio:runtime" {
|
|
|
5667
5817
|
}
|
|
5668
5818
|
/**
|
|
5669
5819
|
* Write form of {@link TransportBeltBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5670
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5820
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TransportBeltBlueprintControlBehavior.html Online documentation}
|
|
5671
5821
|
*/
|
|
5672
5822
|
export interface TransportBeltBlueprintControlBehaviorWrite {
|
|
5673
5823
|
readonly circuit_read_hand_contents: boolean
|
|
@@ -5685,7 +5835,7 @@ declare module "factorio:runtime" {
|
|
|
5685
5835
|
}
|
|
5686
5836
|
/**
|
|
5687
5837
|
* @see LogisticContainerBlueprintControlBehaviorWrite
|
|
5688
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5838
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LogisticContainerBlueprintControlBehavior.html Online documentation}
|
|
5689
5839
|
*/
|
|
5690
5840
|
export interface LogisticContainerBlueprintControlBehavior {
|
|
5691
5841
|
/**
|
|
@@ -5697,7 +5847,7 @@ declare module "factorio:runtime" {
|
|
|
5697
5847
|
}
|
|
5698
5848
|
/**
|
|
5699
5849
|
* Write form of {@link LogisticContainerBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5700
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5850
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LogisticContainerBlueprintControlBehavior.html Online documentation}
|
|
5701
5851
|
*/
|
|
5702
5852
|
export interface LogisticContainerBlueprintControlBehaviorWrite {
|
|
5703
5853
|
/**
|
|
@@ -5709,7 +5859,7 @@ declare module "factorio:runtime" {
|
|
|
5709
5859
|
}
|
|
5710
5860
|
/**
|
|
5711
5861
|
* @see ReactorBlueprintControlBehaviorWrite
|
|
5712
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5862
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ReactorBlueprintControlBehavior.html Online documentation}
|
|
5713
5863
|
*/
|
|
5714
5864
|
export interface ReactorBlueprintControlBehavior {
|
|
5715
5865
|
/**
|
|
@@ -5724,7 +5874,7 @@ declare module "factorio:runtime" {
|
|
|
5724
5874
|
}
|
|
5725
5875
|
/**
|
|
5726
5876
|
* Write form of {@link ReactorBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5727
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5877
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ReactorBlueprintControlBehavior.html Online documentation}
|
|
5728
5878
|
*/
|
|
5729
5879
|
export interface ReactorBlueprintControlBehaviorWrite {
|
|
5730
5880
|
/**
|
|
@@ -5739,7 +5889,7 @@ declare module "factorio:runtime" {
|
|
|
5739
5889
|
}
|
|
5740
5890
|
/**
|
|
5741
5891
|
* @see ConstantCombinatorBlueprintControlBehaviorWrite
|
|
5742
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5892
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ConstantCombinatorBlueprintControlBehavior.html Online documentation}
|
|
5743
5893
|
*/
|
|
5744
5894
|
export interface ConstantCombinatorBlueprintControlBehavior {
|
|
5745
5895
|
readonly sections: LogisticSections
|
|
@@ -5750,7 +5900,7 @@ declare module "factorio:runtime" {
|
|
|
5750
5900
|
}
|
|
5751
5901
|
/**
|
|
5752
5902
|
* Write form of {@link ConstantCombinatorBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5753
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5903
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ConstantCombinatorBlueprintControlBehavior.html Online documentation}
|
|
5754
5904
|
*/
|
|
5755
5905
|
export interface ConstantCombinatorBlueprintControlBehaviorWrite {
|
|
5756
5906
|
readonly sections: LogisticSectionsWrite
|
|
@@ -5761,7 +5911,7 @@ declare module "factorio:runtime" {
|
|
|
5761
5911
|
}
|
|
5762
5912
|
/**
|
|
5763
5913
|
* @see ArtilleryTurretBlueprintControlBehaviorWrite
|
|
5764
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5914
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ArtilleryTurretBlueprintControlBehavior.html Online documentation}
|
|
5765
5915
|
*/
|
|
5766
5916
|
export interface ArtilleryTurretBlueprintControlBehavior {
|
|
5767
5917
|
readonly read_ammo?: boolean
|
|
@@ -5778,7 +5928,7 @@ declare module "factorio:runtime" {
|
|
|
5778
5928
|
}
|
|
5779
5929
|
/**
|
|
5780
5930
|
* Write form of {@link ArtilleryTurretBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5781
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5931
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ArtilleryTurretBlueprintControlBehavior.html Online documentation}
|
|
5782
5932
|
*/
|
|
5783
5933
|
export interface ArtilleryTurretBlueprintControlBehaviorWrite {
|
|
5784
5934
|
readonly read_ammo?: boolean
|
|
@@ -5795,7 +5945,7 @@ declare module "factorio:runtime" {
|
|
|
5795
5945
|
}
|
|
5796
5946
|
/**
|
|
5797
5947
|
* @see AccumulatorBlueprintControlBehaviorWrite
|
|
5798
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5948
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AccumulatorBlueprintControlBehavior.html Online documentation}
|
|
5799
5949
|
*/
|
|
5800
5950
|
export interface AccumulatorBlueprintControlBehavior {
|
|
5801
5951
|
readonly output_signal: SignalID
|
|
@@ -5806,7 +5956,7 @@ declare module "factorio:runtime" {
|
|
|
5806
5956
|
}
|
|
5807
5957
|
/**
|
|
5808
5958
|
* Write form of {@link AccumulatorBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5809
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5959
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AccumulatorBlueprintControlBehavior.html Online documentation}
|
|
5810
5960
|
*/
|
|
5811
5961
|
export interface AccumulatorBlueprintControlBehaviorWrite {
|
|
5812
5962
|
readonly output_signal: SignalIDWrite
|
|
@@ -5817,7 +5967,7 @@ declare module "factorio:runtime" {
|
|
|
5817
5967
|
}
|
|
5818
5968
|
/**
|
|
5819
5969
|
* @see TurretBlueprintControlBehaviorWrite
|
|
5820
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5970
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TurretBlueprintControlBehavior.html Online documentation}
|
|
5821
5971
|
*/
|
|
5822
5972
|
export interface TurretBlueprintControlBehavior {
|
|
5823
5973
|
/**
|
|
@@ -5846,7 +5996,7 @@ declare module "factorio:runtime" {
|
|
|
5846
5996
|
}
|
|
5847
5997
|
/**
|
|
5848
5998
|
* Write form of {@link TurretBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5849
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5999
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TurretBlueprintControlBehavior.html Online documentation}
|
|
5850
6000
|
*/
|
|
5851
6001
|
export interface TurretBlueprintControlBehaviorWrite {
|
|
5852
6002
|
/**
|
|
@@ -5875,7 +6025,7 @@ declare module "factorio:runtime" {
|
|
|
5875
6025
|
}
|
|
5876
6026
|
/**
|
|
5877
6027
|
* @see AsteroidCollectorBlueprintControlBehaviorWrite
|
|
5878
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6028
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AsteroidCollectorBlueprintControlBehavior.html Online documentation}
|
|
5879
6029
|
*/
|
|
5880
6030
|
export interface AsteroidCollectorBlueprintControlBehavior {
|
|
5881
6031
|
/**
|
|
@@ -5903,7 +6053,7 @@ declare module "factorio:runtime" {
|
|
|
5903
6053
|
}
|
|
5904
6054
|
/**
|
|
5905
6055
|
* Write form of {@link AsteroidCollectorBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5906
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6056
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AsteroidCollectorBlueprintControlBehavior.html Online documentation}
|
|
5907
6057
|
*/
|
|
5908
6058
|
export interface AsteroidCollectorBlueprintControlBehaviorWrite {
|
|
5909
6059
|
/**
|
|
@@ -5937,7 +6087,7 @@ declare module "factorio:runtime" {
|
|
|
5937
6087
|
}
|
|
5938
6088
|
/**
|
|
5939
6089
|
* @see InserterBlueprintControlBehaviorWrite
|
|
5940
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6090
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/InserterBlueprintControlBehavior.html Online documentation}
|
|
5941
6091
|
*/
|
|
5942
6092
|
export interface InserterBlueprintControlBehavior {
|
|
5943
6093
|
/**
|
|
@@ -5970,7 +6120,7 @@ declare module "factorio:runtime" {
|
|
|
5970
6120
|
}
|
|
5971
6121
|
/**
|
|
5972
6122
|
* Write form of {@link InserterBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
5973
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6123
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/InserterBlueprintControlBehavior.html Online documentation}
|
|
5974
6124
|
*/
|
|
5975
6125
|
export interface InserterBlueprintControlBehaviorWrite {
|
|
5976
6126
|
/**
|
|
@@ -6003,21 +6153,21 @@ declare module "factorio:runtime" {
|
|
|
6003
6153
|
}
|
|
6004
6154
|
/**
|
|
6005
6155
|
* @see DisplayPanelBlueprintControlBehaviorWrite
|
|
6006
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6156
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DisplayPanelBlueprintControlBehavior.html Online documentation}
|
|
6007
6157
|
*/
|
|
6008
6158
|
export interface DisplayPanelBlueprintControlBehavior {
|
|
6009
6159
|
readonly parameters?: DisplayPanelMessageDefinition[]
|
|
6010
6160
|
}
|
|
6011
6161
|
/**
|
|
6012
6162
|
* Write form of {@link DisplayPanelBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
6013
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6163
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DisplayPanelBlueprintControlBehavior.html Online documentation}
|
|
6014
6164
|
*/
|
|
6015
6165
|
export interface DisplayPanelBlueprintControlBehaviorWrite {
|
|
6016
6166
|
readonly parameters?: readonly DisplayPanelMessageDefinitionWrite[]
|
|
6017
6167
|
}
|
|
6018
6168
|
/**
|
|
6019
6169
|
* @see RoboportBlueprintControlBehaviorWrite
|
|
6020
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6170
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/RoboportBlueprintControlBehavior.html Online documentation}
|
|
6021
6171
|
*/
|
|
6022
6172
|
export interface RoboportBlueprintControlBehavior {
|
|
6023
6173
|
readonly read_items_mode?: boolean
|
|
@@ -6030,7 +6180,7 @@ declare module "factorio:runtime" {
|
|
|
6030
6180
|
}
|
|
6031
6181
|
/**
|
|
6032
6182
|
* Write form of {@link RoboportBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
6033
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6183
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/RoboportBlueprintControlBehavior.html Online documentation}
|
|
6034
6184
|
*/
|
|
6035
6185
|
export interface RoboportBlueprintControlBehaviorWrite {
|
|
6036
6186
|
readonly read_items_mode?: boolean
|
|
@@ -6043,7 +6193,7 @@ declare module "factorio:runtime" {
|
|
|
6043
6193
|
}
|
|
6044
6194
|
/**
|
|
6045
6195
|
* @see AssemblingMachineBlueprintControlBehaviorWrite
|
|
6046
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6196
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AssemblingMachineBlueprintControlBehavior.html Online documentation}
|
|
6047
6197
|
*/
|
|
6048
6198
|
export interface AssemblingMachineBlueprintControlBehavior {
|
|
6049
6199
|
/**
|
|
@@ -6089,7 +6239,7 @@ declare module "factorio:runtime" {
|
|
|
6089
6239
|
}
|
|
6090
6240
|
/**
|
|
6091
6241
|
* Write form of {@link AssemblingMachineBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
6092
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6242
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AssemblingMachineBlueprintControlBehavior.html Online documentation}
|
|
6093
6243
|
*/
|
|
6094
6244
|
export interface AssemblingMachineBlueprintControlBehaviorWrite {
|
|
6095
6245
|
/**
|
|
@@ -6135,7 +6285,7 @@ declare module "factorio:runtime" {
|
|
|
6135
6285
|
}
|
|
6136
6286
|
/**
|
|
6137
6287
|
* @see AgriculturalTowerBlueprintControlBehaviorWrite
|
|
6138
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6288
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AgriculturalTowerBlueprintControlBehavior.html Online documentation}
|
|
6139
6289
|
*/
|
|
6140
6290
|
export interface AgriculturalTowerBlueprintControlBehavior {
|
|
6141
6291
|
/**
|
|
@@ -6155,7 +6305,7 @@ declare module "factorio:runtime" {
|
|
|
6155
6305
|
}
|
|
6156
6306
|
/**
|
|
6157
6307
|
* Write form of {@link AgriculturalTowerBlueprintControlBehavior}, where some properties allow additional values as input compared to the read form.
|
|
6158
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6308
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AgriculturalTowerBlueprintControlBehavior.html Online documentation}
|
|
6159
6309
|
*/
|
|
6160
6310
|
export interface AgriculturalTowerBlueprintControlBehaviorWrite {
|
|
6161
6311
|
/**
|
|
@@ -6220,7 +6370,7 @@ declare module "factorio:runtime" {
|
|
|
6220
6370
|
* -- What a custom recipe would look like that had a probability of 0.5 to return a
|
|
6221
6371
|
* -- minimum amount of 1 and a maximum amount of 5
|
|
6222
6372
|
* {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
|
|
6223
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6373
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Product.html Online documentation}
|
|
6224
6374
|
*/
|
|
6225
6375
|
export type Product = ItemProduct | FluidProduct
|
|
6226
6376
|
/**
|
|
@@ -6231,7 +6381,7 @@ declare module "factorio:runtime" {
|
|
|
6231
6381
|
* -- What a custom recipe would look like that had a probability of 0.5 to return a
|
|
6232
6382
|
* -- minimum amount of 1 and a maximum amount of 5
|
|
6233
6383
|
* {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
|
|
6234
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6384
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ItemProduct.html Online documentation}
|
|
6235
6385
|
*/
|
|
6236
6386
|
export interface ItemProduct {
|
|
6237
6387
|
readonly type: "item"
|
|
@@ -6275,7 +6425,7 @@ declare module "factorio:runtime" {
|
|
|
6275
6425
|
* {{type="fluid", name="heavy-oil", amount=1},
|
|
6276
6426
|
* {type="fluid", name="light-oil", amount=4.5},
|
|
6277
6427
|
* {type="fluid", name="petroleum-gas", amount=5.5}}
|
|
6278
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6428
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/FluidProduct.html Online documentation}
|
|
6279
6429
|
*/
|
|
6280
6430
|
export interface FluidProduct {
|
|
6281
6431
|
readonly type: "fluid"
|
|
@@ -6315,7 +6465,7 @@ declare module "factorio:runtime" {
|
|
|
6315
6465
|
}
|
|
6316
6466
|
/**
|
|
6317
6467
|
* @see BlueprintScheduleRecordWrite
|
|
6318
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6468
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintScheduleRecord.html Online documentation}
|
|
6319
6469
|
*/
|
|
6320
6470
|
export interface BlueprintScheduleRecord {
|
|
6321
6471
|
/**
|
|
@@ -6329,7 +6479,7 @@ declare module "factorio:runtime" {
|
|
|
6329
6479
|
}
|
|
6330
6480
|
/**
|
|
6331
6481
|
* Write form of {@link BlueprintScheduleRecord}, where some properties allow additional values as input compared to the read form.
|
|
6332
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6482
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintScheduleRecord.html Online documentation}
|
|
6333
6483
|
*/
|
|
6334
6484
|
export interface BlueprintScheduleRecordWrite {
|
|
6335
6485
|
/**
|
|
@@ -6343,7 +6493,7 @@ declare module "factorio:runtime" {
|
|
|
6343
6493
|
}
|
|
6344
6494
|
/**
|
|
6345
6495
|
* @see ScheduleRecordWrite
|
|
6346
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6496
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ScheduleRecord.html Online documentation}
|
|
6347
6497
|
*/
|
|
6348
6498
|
export interface ScheduleRecord {
|
|
6349
6499
|
/**
|
|
@@ -6362,7 +6512,7 @@ declare module "factorio:runtime" {
|
|
|
6362
6512
|
}
|
|
6363
6513
|
/**
|
|
6364
6514
|
* Write form of {@link ScheduleRecord}, where some properties allow additional values as input compared to the read form.
|
|
6365
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6515
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ScheduleRecord.html Online documentation}
|
|
6366
6516
|
*/
|
|
6367
6517
|
export interface ScheduleRecordWrite {
|
|
6368
6518
|
/**
|
|
@@ -6381,7 +6531,7 @@ declare module "factorio:runtime" {
|
|
|
6381
6531
|
}
|
|
6382
6532
|
/**
|
|
6383
6533
|
* @see BlueprintScheduleInterruptWrite
|
|
6384
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6534
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintScheduleInterrupt.html Online documentation}
|
|
6385
6535
|
*/
|
|
6386
6536
|
export interface BlueprintScheduleInterrupt {
|
|
6387
6537
|
/**
|
|
@@ -6397,7 +6547,7 @@ declare module "factorio:runtime" {
|
|
|
6397
6547
|
}
|
|
6398
6548
|
/**
|
|
6399
6549
|
* Write form of {@link BlueprintScheduleInterrupt}, where some properties allow additional values as input compared to the read form.
|
|
6400
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6550
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintScheduleInterrupt.html Online documentation}
|
|
6401
6551
|
*/
|
|
6402
6552
|
export interface BlueprintScheduleInterruptWrite {
|
|
6403
6553
|
/**
|
|
@@ -6413,7 +6563,7 @@ declare module "factorio:runtime" {
|
|
|
6413
6563
|
}
|
|
6414
6564
|
/**
|
|
6415
6565
|
* @see ScheduleInterruptWrite
|
|
6416
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6566
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ScheduleInterrupt.html Online documentation}
|
|
6417
6567
|
*/
|
|
6418
6568
|
export interface ScheduleInterrupt {
|
|
6419
6569
|
/**
|
|
@@ -6429,7 +6579,7 @@ declare module "factorio:runtime" {
|
|
|
6429
6579
|
}
|
|
6430
6580
|
/**
|
|
6431
6581
|
* Write form of {@link ScheduleInterrupt}, where some properties allow additional values as input compared to the read form.
|
|
6432
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6582
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ScheduleInterrupt.html Online documentation}
|
|
6433
6583
|
*/
|
|
6434
6584
|
export interface ScheduleInterruptWrite {
|
|
6435
6585
|
/**
|
|
@@ -6445,7 +6595,7 @@ declare module "factorio:runtime" {
|
|
|
6445
6595
|
}
|
|
6446
6596
|
/**
|
|
6447
6597
|
* @see WaitConditionWrite
|
|
6448
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6598
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/WaitCondition.html Online documentation}
|
|
6449
6599
|
*/
|
|
6450
6600
|
export interface WaitCondition {
|
|
6451
6601
|
readonly type: WaitConditionType
|
|
@@ -6476,7 +6626,7 @@ declare module "factorio:runtime" {
|
|
|
6476
6626
|
}
|
|
6477
6627
|
/**
|
|
6478
6628
|
* Write form of {@link WaitCondition}, where some properties allow additional values as input compared to the read form.
|
|
6479
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6629
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/WaitCondition.html Online documentation}
|
|
6480
6630
|
*/
|
|
6481
6631
|
export interface WaitConditionWrite {
|
|
6482
6632
|
readonly type: WaitConditionType
|
|
@@ -6535,7 +6685,7 @@ declare module "factorio:runtime" {
|
|
|
6535
6685
|
* - `"at_station"`
|
|
6536
6686
|
* - `"not_at_station"`
|
|
6537
6687
|
* - `"damage_taken"`
|
|
6538
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6688
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/WaitConditionType.html Online documentation}
|
|
6539
6689
|
*/
|
|
6540
6690
|
export type WaitConditionType =
|
|
6541
6691
|
| "time"
|
|
@@ -6566,7 +6716,7 @@ declare module "factorio:runtime" {
|
|
|
6566
6716
|
| "damage_taken"
|
|
6567
6717
|
/**
|
|
6568
6718
|
* @see BlueprintScheduleWrite
|
|
6569
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6719
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintSchedule.html Online documentation}
|
|
6570
6720
|
*/
|
|
6571
6721
|
export interface BlueprintSchedule {
|
|
6572
6722
|
readonly records?: BlueprintScheduleRecord[]
|
|
@@ -6575,7 +6725,7 @@ declare module "factorio:runtime" {
|
|
|
6575
6725
|
}
|
|
6576
6726
|
/**
|
|
6577
6727
|
* Write form of {@link BlueprintSchedule}, where some properties allow additional values as input compared to the read form.
|
|
6578
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6728
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintSchedule.html Online documentation}
|
|
6579
6729
|
*/
|
|
6580
6730
|
export interface BlueprintScheduleWrite {
|
|
6581
6731
|
readonly records?: readonly BlueprintScheduleRecordWrite[]
|
|
@@ -6644,7 +6794,7 @@ declare module "factorio:runtime" {
|
|
|
6644
6794
|
* - `"create-ghost-on-entity-death"`
|
|
6645
6795
|
* - `"belt-stack-size-bonus"`
|
|
6646
6796
|
* - `"vehicle-logistics"`
|
|
6647
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
6797
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ModifierType.html Online documentation}
|
|
6648
6798
|
*/
|
|
6649
6799
|
export type ModifierType =
|
|
6650
6800
|
| "inserter-stack-size-bonus"
|
|
@@ -7257,7 +7407,7 @@ declare module "factorio:runtime" {
|
|
|
7257
7407
|
* - `"worker-robot-battery"`: {@link WorkerRobotBatteryTechnologyModifier}
|
|
7258
7408
|
* - `"worker-robot-speed"`: {@link WorkerRobotSpeedTechnologyModifier}
|
|
7259
7409
|
* - `"worker-robot-storage"`: {@link WorkerRobotStorageTechnologyModifier}
|
|
7260
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
7410
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TechnologyModifier.html Online documentation}
|
|
7261
7411
|
*/
|
|
7262
7412
|
export type TechnologyModifier =
|
|
7263
7413
|
| AmmoDamageTechnologyModifier
|
|
@@ -7324,8 +7474,8 @@ declare module "factorio:runtime" {
|
|
|
7324
7474
|
*/
|
|
7325
7475
|
export interface CraftItemResearchTrigger extends BaseResearchTrigger {
|
|
7326
7476
|
readonly type: "craft-item"
|
|
7327
|
-
readonly item:
|
|
7328
|
-
readonly
|
|
7477
|
+
readonly item: ItemIDFilter
|
|
7478
|
+
readonly count: ItemCountType
|
|
7329
7479
|
}
|
|
7330
7480
|
/**
|
|
7331
7481
|
* `"mine-entity"` variant of {@link ResearchTrigger}.
|
|
@@ -7385,7 +7535,7 @@ declare module "factorio:runtime" {
|
|
|
7385
7535
|
* - `"build-entity"`: {@link BuildEntityResearchTrigger}
|
|
7386
7536
|
* - `"send-item-to-orbit"`: {@link SendItemToOrbitResearchTrigger}
|
|
7387
7537
|
* - `"scripted"`: {@link ScriptedResearchTrigger}
|
|
7388
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
7538
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ResearchTrigger.html Online documentation}
|
|
7389
7539
|
*/
|
|
7390
7540
|
export type ResearchTrigger =
|
|
7391
7541
|
| CraftItemResearchTrigger
|
|
@@ -7445,7 +7595,7 @@ declare module "factorio:runtime" {
|
|
|
7445
7595
|
*
|
|
7446
7596
|
* Other attributes may be specified depending on `type`:
|
|
7447
7597
|
* - `"fluid"`: {@link FluidIngredient}
|
|
7448
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
7598
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Ingredient.html Online documentation}
|
|
7449
7599
|
*/
|
|
7450
7600
|
export type Ingredient = FluidIngredient | OtherIngredient
|
|
7451
7601
|
/**
|
|
@@ -7466,7 +7616,7 @@ declare module "factorio:runtime" {
|
|
|
7466
7616
|
* * neighbouring_base_chunk_coefficient^distance(chunk, neighbour)
|
|
7467
7617
|
* score(chunk) = 1 / (1 + player + base)
|
|
7468
7618
|
* ```
|
|
7469
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
7619
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EnemyExpansionMapSettings.html Online documentation}
|
|
7470
7620
|
*/
|
|
7471
7621
|
export interface EnemyExpansionMapSettings {
|
|
7472
7622
|
/**
|
|
@@ -7739,7 +7889,7 @@ declare module "factorio:runtime" {
|
|
|
7739
7889
|
}
|
|
7740
7890
|
/**
|
|
7741
7891
|
* A standard table containing all {@link MapSettings} attributes plus an additional table that contains all {@link DifficultySettings} properties.
|
|
7742
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
7892
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/MapAndDifficultySettings.html Online documentation}
|
|
7743
7893
|
*/
|
|
7744
7894
|
export interface MapAndDifficultySettings {
|
|
7745
7895
|
readonly pollution: PollutionMapSettings
|
|
@@ -7760,7 +7910,7 @@ declare module "factorio:runtime" {
|
|
|
7760
7910
|
* @example
|
|
7761
7911
|
* -- Increase the number of short paths the pathfinder can cache.
|
|
7762
7912
|
* game.map_settings.path_finder.short_cache_size = 15
|
|
7763
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
7913
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/MapSettings.html Online documentation}
|
|
7764
7914
|
*/
|
|
7765
7915
|
export interface MapSettings {
|
|
7766
7916
|
pollution: PollutionMapSettings
|
|
@@ -7772,7 +7922,7 @@ declare module "factorio:runtime" {
|
|
|
7772
7922
|
asteroids: AsteroidMapSettings
|
|
7773
7923
|
/**
|
|
7774
7924
|
* If a behavior fails this many times, the enemy (or enemy group) is destroyed. This solves biters getting stuck within their own base.
|
|
7775
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
7925
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/MapSettings.max_failed_behavior_count.html Online documentation}
|
|
7776
7926
|
*/
|
|
7777
7927
|
max_failed_behavior_count: uint32
|
|
7778
7928
|
}
|
|
@@ -7801,7 +7951,7 @@ declare module "factorio:runtime" {
|
|
|
7801
7951
|
* - `"very-high"`: equivalent to `2`.
|
|
7802
7952
|
* - `"very-big"`: equivalent to `2`.
|
|
7803
7953
|
* - `"very-good"`: equivalent to `2`.
|
|
7804
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
7954
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/MapGenSize.html Online documentation}
|
|
7805
7955
|
*/
|
|
7806
7956
|
export type MapGenSize =
|
|
7807
7957
|
| float
|
|
@@ -7823,7 +7973,7 @@ declare module "factorio:runtime" {
|
|
|
7823
7973
|
| "very-good"
|
|
7824
7974
|
/**
|
|
7825
7975
|
* These values are for the time frame of one second (60 ticks).
|
|
7826
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
7976
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/PollutionMapSettings.html Online documentation}
|
|
7827
7977
|
*/
|
|
7828
7978
|
export interface PollutionMapSettings {
|
|
7829
7979
|
/**
|
|
@@ -7877,7 +8027,7 @@ declare module "factorio:runtime" {
|
|
|
7877
8027
|
}
|
|
7878
8028
|
/**
|
|
7879
8029
|
* These values represent a percentual increase in evolution. This means a value of `0.1` would increase evolution by 10%.
|
|
7880
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8030
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EnemyEvolutionMapSettings.html Online documentation}
|
|
7881
8031
|
*/
|
|
7882
8032
|
export interface EnemyEvolutionMapSettings {
|
|
7883
8033
|
/**
|
|
@@ -7899,7 +8049,7 @@ declare module "factorio:runtime" {
|
|
|
7899
8049
|
}
|
|
7900
8050
|
/**
|
|
7901
8051
|
* @see AutoplaceControlWrite
|
|
7902
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8052
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AutoplaceControl.html Online documentation}
|
|
7903
8053
|
*/
|
|
7904
8054
|
export interface AutoplaceControl {
|
|
7905
8055
|
/**
|
|
@@ -7917,7 +8067,7 @@ declare module "factorio:runtime" {
|
|
|
7917
8067
|
}
|
|
7918
8068
|
/**
|
|
7919
8069
|
* Write form of {@link AutoplaceControl}, where some properties allow additional values as input compared to the read form.
|
|
7920
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8070
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AutoplaceControl.html Online documentation}
|
|
7921
8071
|
*/
|
|
7922
8072
|
export interface AutoplaceControlWrite {
|
|
7923
8073
|
/**
|
|
@@ -7935,7 +8085,7 @@ declare module "factorio:runtime" {
|
|
|
7935
8085
|
}
|
|
7936
8086
|
/**
|
|
7937
8087
|
* @see CliffPlacementSettingsWrite
|
|
7938
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8088
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/CliffPlacementSettings.html Online documentation}
|
|
7939
8089
|
*/
|
|
7940
8090
|
export interface CliffPlacementSettings {
|
|
7941
8091
|
/**
|
|
@@ -7965,7 +8115,7 @@ declare module "factorio:runtime" {
|
|
|
7965
8115
|
}
|
|
7966
8116
|
/**
|
|
7967
8117
|
* Write form of {@link CliffPlacementSettings}, where some properties allow additional values as input compared to the read form.
|
|
7968
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8118
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/CliffPlacementSettings.html Online documentation}
|
|
7969
8119
|
*/
|
|
7970
8120
|
export interface CliffPlacementSettingsWrite {
|
|
7971
8121
|
/**
|
|
@@ -7995,7 +8145,7 @@ declare module "factorio:runtime" {
|
|
|
7995
8145
|
}
|
|
7996
8146
|
/**
|
|
7997
8147
|
* @see AutoplaceSettingsWrite
|
|
7998
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8148
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AutoplaceSettings.html Online documentation}
|
|
7999
8149
|
*/
|
|
8000
8150
|
export interface AutoplaceSettings {
|
|
8001
8151
|
/**
|
|
@@ -8009,7 +8159,7 @@ declare module "factorio:runtime" {
|
|
|
8009
8159
|
}
|
|
8010
8160
|
/**
|
|
8011
8161
|
* Write form of {@link AutoplaceSettings}, where some properties allow additional values as input compared to the read form.
|
|
8012
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8162
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AutoplaceSettings.html Online documentation}
|
|
8013
8163
|
*/
|
|
8014
8164
|
export interface AutoplaceSettingsWrite {
|
|
8015
8165
|
/**
|
|
@@ -8044,7 +8194,7 @@ declare module "factorio:runtime" {
|
|
|
8044
8194
|
* surface.map_gen_settings = mgs
|
|
8045
8195
|
* -- This does not require a NamedNoiseExpression to be defined, since literal numbers (and strings naming literal
|
|
8046
8196
|
* -- numbers, e.g. `"123"`) are understood to stand for constant value expressions.
|
|
8047
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8197
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/MapGenSettings.html Online documentation}
|
|
8048
8198
|
*/
|
|
8049
8199
|
export interface MapGenSettings {
|
|
8050
8200
|
/**
|
|
@@ -8099,7 +8249,7 @@ declare module "factorio:runtime" {
|
|
|
8099
8249
|
}
|
|
8100
8250
|
/**
|
|
8101
8251
|
* Write form of {@link MapGenSettings}, where some properties allow additional values as input compared to the read form.
|
|
8102
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8252
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/MapGenSettings.html Online documentation}
|
|
8103
8253
|
*/
|
|
8104
8254
|
export interface MapGenSettingsWrite {
|
|
8105
8255
|
/**
|
|
@@ -8183,12 +8333,12 @@ declare module "factorio:runtime" {
|
|
|
8183
8333
|
}
|
|
8184
8334
|
/**
|
|
8185
8335
|
* The string representation of a noise expression. More detailed information is found on the {@link import("factorio:prototype").NamedNoiseExpression prototype docs}.
|
|
8186
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8336
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/NoiseExpressionSourceString.html Online documentation}
|
|
8187
8337
|
*/
|
|
8188
8338
|
export type NoiseExpressionSourceString = string
|
|
8189
8339
|
/**
|
|
8190
8340
|
* Specifies how probability and richness are calculated when placing something on the map.
|
|
8191
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8341
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AutoplaceSpecification.html Online documentation}
|
|
8192
8342
|
*/
|
|
8193
8343
|
export interface AutoplaceSpecification {
|
|
8194
8344
|
readonly placement_density: uint32
|
|
@@ -8268,8 +8418,8 @@ declare module "factorio:runtime" {
|
|
|
8268
8418
|
_customEventIdBrand: any
|
|
8269
8419
|
}
|
|
8270
8420
|
/**
|
|
8271
|
-
* 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.
|
|
8272
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8421
|
+
* 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.75/events.html the list of Factorio events} for more information on these.
|
|
8422
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EventData.html Online documentation}
|
|
8273
8423
|
*/
|
|
8274
8424
|
export interface EventData {
|
|
8275
8425
|
/**
|
|
@@ -8287,7 +8437,7 @@ declare module "factorio:runtime" {
|
|
|
8287
8437
|
}
|
|
8288
8438
|
/**
|
|
8289
8439
|
* Information about an individual segment in a segmented unit when the unit died.
|
|
8290
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8440
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/PostSegmentDiedData.html Online documentation}
|
|
8291
8441
|
*/
|
|
8292
8442
|
export interface PostSegmentDiedData {
|
|
8293
8443
|
/**
|
|
@@ -8333,11 +8483,11 @@ declare module "factorio:runtime" {
|
|
|
8333
8483
|
}
|
|
8334
8484
|
export interface ModChangeData {
|
|
8335
8485
|
/**
|
|
8336
|
-
* Old version of the mod.
|
|
8486
|
+
* Old version of the mod. `nil` if the mod wasn't previously present (i.e. it was just added).
|
|
8337
8487
|
*/
|
|
8338
8488
|
readonly old_version: VersionString | nil
|
|
8339
8489
|
/**
|
|
8340
|
-
* New version of the mod.
|
|
8490
|
+
* New version of the mod. `nil` if the mod is no longer present (i.e. it was just removed).
|
|
8341
8491
|
*/
|
|
8342
8492
|
readonly new_version: VersionString | nil
|
|
8343
8493
|
}
|
|
@@ -8363,29 +8513,29 @@ declare module "factorio:runtime" {
|
|
|
8363
8513
|
*/
|
|
8364
8514
|
readonly migration_applied: boolean
|
|
8365
8515
|
/**
|
|
8366
|
-
* Dictionary of prototype changes due to {@linkplain https://lua-api.factorio.com/2.0.
|
|
8516
|
+
* Dictionary of prototype changes due to {@linkplain https://lua-api.factorio.com/2.0.75/auxiliary/migrations.html migrations}. The inner dictionary maps the old prototype name to the new prototype name. The new name will be an empty string if the prototype was removed. Entries are omitted if the old and new prototype name are the same.
|
|
8367
8517
|
*/
|
|
8368
8518
|
readonly migrations: Record<IDType, Record<string, string>>
|
|
8369
8519
|
}
|
|
8370
8520
|
/**
|
|
8371
8521
|
* Technology difficulty settings. Updating any of the attributes will immediately take effect in the game engine.
|
|
8372
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8522
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DifficultySettings.html Online documentation}
|
|
8373
8523
|
*/
|
|
8374
8524
|
export interface DifficultySettings {
|
|
8375
8525
|
/**
|
|
8376
8526
|
* A value in range [0.001, 1000].
|
|
8377
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8527
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DifficultySettings.technology_price_multiplier.html Online documentation}
|
|
8378
8528
|
*/
|
|
8379
8529
|
technology_price_multiplier: double
|
|
8380
8530
|
/**
|
|
8381
8531
|
* A value in range [0.01, 100].
|
|
8382
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8532
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DifficultySettings.spoil_time_modifier.html Online documentation}
|
|
8383
8533
|
*/
|
|
8384
8534
|
spoil_time_modifier: double
|
|
8385
8535
|
}
|
|
8386
8536
|
/**
|
|
8387
8537
|
* A single pipe connection for a given fluidbox.
|
|
8388
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8538
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/PipeConnection.html Online documentation}
|
|
8389
8539
|
*/
|
|
8390
8540
|
export interface PipeConnection {
|
|
8391
8541
|
readonly flow_direction: FluidFlowDirection
|
|
@@ -8450,7 +8600,7 @@ declare module "factorio:runtime" {
|
|
|
8450
8600
|
}
|
|
8451
8601
|
/**
|
|
8452
8602
|
* @see AsteroidChunkWrite
|
|
8453
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8603
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AsteroidChunk.html Online documentation}
|
|
8454
8604
|
*/
|
|
8455
8605
|
export interface AsteroidChunk {
|
|
8456
8606
|
/**
|
|
@@ -8462,7 +8612,7 @@ declare module "factorio:runtime" {
|
|
|
8462
8612
|
}
|
|
8463
8613
|
/**
|
|
8464
8614
|
* Write form of {@link AsteroidChunk}, where some properties allow additional values as input compared to the read form.
|
|
8465
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8615
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AsteroidChunk.html Online documentation}
|
|
8466
8616
|
*/
|
|
8467
8617
|
export interface AsteroidChunkWrite {
|
|
8468
8618
|
/**
|
|
@@ -8474,7 +8624,7 @@ declare module "factorio:runtime" {
|
|
|
8474
8624
|
}
|
|
8475
8625
|
/**
|
|
8476
8626
|
* An item thrown overboard on a space platform.
|
|
8477
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8627
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EjectedItem.html Online documentation}
|
|
8478
8628
|
*/
|
|
8479
8629
|
export interface EjectedItem {
|
|
8480
8630
|
readonly item: ItemIDAndQualityIDPair
|
|
@@ -8486,7 +8636,7 @@ declare module "factorio:runtime" {
|
|
|
8486
8636
|
}
|
|
8487
8637
|
/**
|
|
8488
8638
|
* The data that can be extracted from a map exchange string, as a plain table.
|
|
8489
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8639
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/MapExchangeStringData.html Online documentation}
|
|
8490
8640
|
*/
|
|
8491
8641
|
export interface MapExchangeStringData {
|
|
8492
8642
|
readonly map_settings: MapAndDifficultySettings
|
|
@@ -8512,7 +8662,7 @@ declare module "factorio:runtime" {
|
|
|
8512
8662
|
}
|
|
8513
8663
|
/**
|
|
8514
8664
|
* A {@link ChunkPosition} with an added bounding box for the area of the chunk.
|
|
8515
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8665
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ChunkPositionAndArea.html Online documentation}
|
|
8516
8666
|
*/
|
|
8517
8667
|
export interface ChunkPositionAndArea {
|
|
8518
8668
|
readonly x: int32
|
|
@@ -8560,7 +8710,7 @@ declare module "factorio:runtime" {
|
|
|
8560
8710
|
* - `"check-box"`
|
|
8561
8711
|
* - `"switch"`
|
|
8562
8712
|
* - `"label"`
|
|
8563
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8713
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SimulationWidgetType.html Online documentation}
|
|
8564
8714
|
*/
|
|
8565
8715
|
export type SimulationWidgetType =
|
|
8566
8716
|
| "signal-id"
|
|
@@ -8748,7 +8898,7 @@ declare module "factorio:runtime" {
|
|
|
8748
8898
|
* - {@link defines.segmented_unit_ai_state.attacking}: {@link AttackingSegmentedUnitAIState}
|
|
8749
8899
|
* - {@link defines.segmented_unit_ai_state.enraged_at_target}: {@link EnragedAtTargetSegmentedUnitAIState}
|
|
8750
8900
|
* - {@link defines.segmented_unit_ai_state.enraged_at_nothing}: {@link EnragedAtNothingSegmentedUnitAIState}
|
|
8751
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8901
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SegmentedUnitAIState.html Online documentation}
|
|
8752
8902
|
*/
|
|
8753
8903
|
export type SegmentedUnitAIState =
|
|
8754
8904
|
| PatrollingSegmentedUnitAIState
|
|
@@ -8758,7 +8908,7 @@ declare module "factorio:runtime" {
|
|
|
8758
8908
|
| EnragedAtNothingSegmentedUnitAIState
|
|
8759
8909
|
/**
|
|
8760
8910
|
* Write form of {@link SegmentedUnitAIState}, where some properties allow additional values as input compared to the read form.
|
|
8761
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
8911
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SegmentedUnitAIState.html Online documentation}
|
|
8762
8912
|
*/
|
|
8763
8913
|
export type SegmentedUnitAIStateWrite =
|
|
8764
8914
|
| PatrollingSegmentedUnitAIStateWrite
|
|
@@ -8856,7 +9006,7 @@ declare module "factorio:runtime" {
|
|
|
8856
9006
|
readonly ghost_type?: string | readonly string[]
|
|
8857
9007
|
readonly direction?: defines.direction | readonly defines.direction[]
|
|
8858
9008
|
readonly collision_mask?: CollisionLayerID | readonly CollisionLayerID[] | Record<CollisionLayerID, true>
|
|
8859
|
-
readonly force?:
|
|
9009
|
+
readonly force?: ForceSet
|
|
8860
9010
|
readonly to_be_deconstructed?: boolean
|
|
8861
9011
|
readonly to_be_upgraded?: boolean
|
|
8862
9012
|
readonly limit?: uint32
|
|
@@ -8897,7 +9047,7 @@ declare module "factorio:runtime" {
|
|
|
8897
9047
|
*/
|
|
8898
9048
|
readonly to_be_deconstructed?: boolean
|
|
8899
9049
|
readonly collision_mask?: CollisionLayerID | readonly CollisionLayerID[] | Record<CollisionLayerID, true>
|
|
8900
|
-
readonly force?:
|
|
9050
|
+
readonly force?: ForceSet
|
|
8901
9051
|
/**
|
|
8902
9052
|
* If the filters should be inverted.
|
|
8903
9053
|
*/
|
|
@@ -8906,7 +9056,7 @@ declare module "factorio:runtime" {
|
|
|
8906
9056
|
/**
|
|
8907
9057
|
* 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].
|
|
8908
9058
|
* @see ColorModifierArray
|
|
8909
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9059
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ColorModifier.html Online documentation}
|
|
8910
9060
|
*/
|
|
8911
9061
|
export interface ColorModifier {
|
|
8912
9062
|
readonly r?: float
|
|
@@ -8917,7 +9067,7 @@ declare module "factorio:runtime" {
|
|
|
8917
9067
|
/**
|
|
8918
9068
|
* Array form of {@link ColorModifier}.
|
|
8919
9069
|
* @see ColorModifier
|
|
8920
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9070
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ColorModifier.html Online documentation}
|
|
8921
9071
|
*/
|
|
8922
9072
|
export type ColorModifierArray = readonly [r: double, g: double, b: double, a?: double]
|
|
8923
9073
|
export interface Decorative {
|
|
@@ -8936,7 +9086,7 @@ declare module "factorio:runtime" {
|
|
|
8936
9086
|
/**
|
|
8937
9087
|
* An area defined using the map editor.
|
|
8938
9088
|
* @see ScriptAreaWrite
|
|
8939
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9089
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ScriptArea.html Online documentation}
|
|
8940
9090
|
*/
|
|
8941
9091
|
export interface ScriptArea {
|
|
8942
9092
|
readonly area: BoundingBox
|
|
@@ -8946,7 +9096,7 @@ declare module "factorio:runtime" {
|
|
|
8946
9096
|
}
|
|
8947
9097
|
/**
|
|
8948
9098
|
* Write form of {@link ScriptArea}, where some properties allow additional values as input compared to the read form.
|
|
8949
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9099
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ScriptArea.html Online documentation}
|
|
8950
9100
|
*/
|
|
8951
9101
|
export interface ScriptAreaWrite {
|
|
8952
9102
|
readonly area: BoundingBoxWrite | BoundingBoxArray
|
|
@@ -8957,7 +9107,7 @@ declare module "factorio:runtime" {
|
|
|
8957
9107
|
/**
|
|
8958
9108
|
* A position defined using the map editor.
|
|
8959
9109
|
* @see ScriptPositionWrite
|
|
8960
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9110
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ScriptPosition.html Online documentation}
|
|
8961
9111
|
*/
|
|
8962
9112
|
export interface ScriptPosition {
|
|
8963
9113
|
readonly position: MapPosition
|
|
@@ -8967,7 +9117,7 @@ declare module "factorio:runtime" {
|
|
|
8967
9117
|
}
|
|
8968
9118
|
/**
|
|
8969
9119
|
* Write form of {@link ScriptPosition}, where some properties allow additional values as input compared to the read form.
|
|
8970
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9120
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ScriptPosition.html Online documentation}
|
|
8971
9121
|
*/
|
|
8972
9122
|
export interface ScriptPositionWrite {
|
|
8973
9123
|
readonly position: MapPosition | MapPositionArray
|
|
@@ -8977,7 +9127,7 @@ declare module "factorio:runtime" {
|
|
|
8977
9127
|
}
|
|
8978
9128
|
/**
|
|
8979
9129
|
* A table used to define a manual shape for a piece of equipment.
|
|
8980
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9130
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EquipmentPoint.html Online documentation}
|
|
8981
9131
|
*/
|
|
8982
9132
|
export interface EquipmentPoint {
|
|
8983
9133
|
readonly x: uint32
|
|
@@ -8986,7 +9136,7 @@ declare module "factorio:runtime" {
|
|
|
8986
9136
|
/**
|
|
8987
9137
|
* 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.
|
|
8988
9138
|
* @see GuiLocationArray
|
|
8989
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9139
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GuiLocation.html Online documentation}
|
|
8990
9140
|
*/
|
|
8991
9141
|
export interface GuiLocation {
|
|
8992
9142
|
readonly x: int32
|
|
@@ -8995,7 +9145,7 @@ declare module "factorio:runtime" {
|
|
|
8995
9145
|
/**
|
|
8996
9146
|
* Array form of {@link GuiLocation}.
|
|
8997
9147
|
* @see GuiLocation
|
|
8998
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9148
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GuiLocation.html Online documentation}
|
|
8999
9149
|
*/
|
|
9000
9150
|
export type GuiLocationArray = readonly [int32, int32]
|
|
9001
9151
|
export interface TabAndContent {
|
|
@@ -9024,7 +9174,7 @@ declare module "factorio:runtime" {
|
|
|
9024
9174
|
}
|
|
9025
9175
|
/**
|
|
9026
9176
|
* Either `icon`, `text`, or both must be provided.
|
|
9027
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9177
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ChartTagSpec.html Online documentation}
|
|
9028
9178
|
*/
|
|
9029
9179
|
export interface ChartTagSpec {
|
|
9030
9180
|
readonly position: MapPosition | MapPositionArray
|
|
@@ -9153,7 +9303,7 @@ declare module "factorio:runtime" {
|
|
|
9153
9303
|
* - `"any-goal-accessible"`: The method will return {@link TrainPathFinderOneGoalResult}.
|
|
9154
9304
|
* - `"all-goals-accessible"`: The method will return {@link TrainPathAllGoalsResult}.
|
|
9155
9305
|
* - `"all-goals-penalties"`: The method will return {@link TrainPathAllGoalsResult} with `penalties`.
|
|
9156
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9306
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TrainPathRequestType.html Online documentation}
|
|
9157
9307
|
*/
|
|
9158
9308
|
export type TrainPathRequestType = "path" | "any-goal-accessible" | "all-goals-accessible" | "all-goals-penalties"
|
|
9159
9309
|
/**
|
|
@@ -9162,7 +9312,7 @@ declare module "factorio:runtime" {
|
|
|
9162
9312
|
* - {@link RailEndGoal}
|
|
9163
9313
|
* - {@link LuaRailEnd}
|
|
9164
9314
|
* - {@link LuaEntity}: Only if it points at train-stop that is connected to a rail.
|
|
9165
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9315
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TrainPathFinderGoal.html Online documentation}
|
|
9166
9316
|
*/
|
|
9167
9317
|
export type TrainPathFinderGoal = TrainStopGoal | RailEndGoal | LuaRailEnd | LuaEntity
|
|
9168
9318
|
export interface TrainStopGoal {
|
|
@@ -9357,7 +9507,7 @@ declare module "factorio:runtime" {
|
|
|
9357
9507
|
* - {@link LuaSegmentedUnitCreatedEventFilter}
|
|
9358
9508
|
* - {@link LuaScriptRaisedDestroyEventFilter}
|
|
9359
9509
|
* @see EventFilterWrite
|
|
9360
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9510
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EventFilter.html Online documentation}
|
|
9361
9511
|
*/
|
|
9362
9512
|
export type EventFilter =
|
|
9363
9513
|
| LuaSegmentedUnitDiedEventFilter[]
|
|
@@ -9392,7 +9542,7 @@ declare module "factorio:runtime" {
|
|
|
9392
9542
|
| LuaScriptRaisedDestroyEventFilter[]
|
|
9393
9543
|
/**
|
|
9394
9544
|
* Write form of {@link EventFilter}, where some properties allow additional values as input compared to the read form.
|
|
9395
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9545
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EventFilter.html Online documentation}
|
|
9396
9546
|
*/
|
|
9397
9547
|
export type EventFilterWrite =
|
|
9398
9548
|
| readonly LuaSegmentedUnitDiedEventFilter[]
|
|
@@ -9427,7 +9577,7 @@ declare module "factorio:runtime" {
|
|
|
9427
9577
|
| readonly LuaScriptRaisedDestroyEventFilter[]
|
|
9428
9578
|
/**
|
|
9429
9579
|
* @see CircuitConditionDefinitionWrite
|
|
9430
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9580
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/CircuitConditionDefinition.html Online documentation}
|
|
9431
9581
|
*/
|
|
9432
9582
|
export interface CircuitConditionDefinition {
|
|
9433
9583
|
/**
|
|
@@ -9453,7 +9603,7 @@ declare module "factorio:runtime" {
|
|
|
9453
9603
|
}
|
|
9454
9604
|
/**
|
|
9455
9605
|
* Write form of {@link CircuitConditionDefinition}, where some properties allow additional values as input compared to the read form.
|
|
9456
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9606
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/CircuitConditionDefinition.html Online documentation}
|
|
9457
9607
|
*/
|
|
9458
9608
|
export interface CircuitConditionDefinitionWrite {
|
|
9459
9609
|
/**
|
|
@@ -9503,7 +9653,7 @@ declare module "factorio:runtime" {
|
|
|
9503
9653
|
* - {@link LuaSchedule}: Target type {@link defines.target_type.schedule schedule}
|
|
9504
9654
|
* - {@link LuaTerritory}: Target type {@link defines.target_type.territory territory}
|
|
9505
9655
|
* - {@link LuaSegmentedUnit}: Target type {@link defines.target_type.segmented_unit segmented_unit}; `useful_id` {@link LuaSegmentedUnit#unit_number LuaSegmentedUnit::unit_number}
|
|
9506
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9656
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/RegistrationTarget.html Online documentation}
|
|
9507
9657
|
*/
|
|
9508
9658
|
export type RegistrationTarget =
|
|
9509
9659
|
| LuaEntity
|
|
@@ -9574,7 +9724,7 @@ declare module "factorio:runtime" {
|
|
|
9574
9724
|
* - `"surface"`
|
|
9575
9725
|
* - `"mod-data"`
|
|
9576
9726
|
* - `"custom-event"`
|
|
9577
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9727
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/IDType.html Online documentation}
|
|
9578
9728
|
*/
|
|
9579
9729
|
export type IDType =
|
|
9580
9730
|
| "custom-input"
|
|
@@ -9619,9 +9769,15 @@ declare module "factorio:runtime" {
|
|
|
9619
9769
|
| "surface"
|
|
9620
9770
|
| "mod-data"
|
|
9621
9771
|
| "custom-event"
|
|
9772
|
+
export interface BlueprintQualityID {
|
|
9773
|
+
/**
|
|
9774
|
+
* The name of the quality prototype. Defaults to `"normal"`.
|
|
9775
|
+
*/
|
|
9776
|
+
readonly name?: string
|
|
9777
|
+
}
|
|
9622
9778
|
/**
|
|
9623
9779
|
* An item prototype with optional quality specification.
|
|
9624
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9780
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintItemIDAndQualityIDPair.html Online documentation}
|
|
9625
9781
|
*/
|
|
9626
9782
|
export interface BlueprintItemIDAndQualityIDPair {
|
|
9627
9783
|
/**
|
|
@@ -9649,7 +9805,7 @@ declare module "factorio:runtime" {
|
|
|
9649
9805
|
}
|
|
9650
9806
|
/**
|
|
9651
9807
|
* @see EntityIDFilterWrite
|
|
9652
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9808
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EntityIDFilter.html Online documentation}
|
|
9653
9809
|
*/
|
|
9654
9810
|
export interface EntityIDFilter {
|
|
9655
9811
|
/**
|
|
@@ -9667,7 +9823,7 @@ declare module "factorio:runtime" {
|
|
|
9667
9823
|
}
|
|
9668
9824
|
/**
|
|
9669
9825
|
* Write form of {@link EntityIDFilter}, where some properties allow additional values as input compared to the read form.
|
|
9670
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9826
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EntityIDFilter.html Online documentation}
|
|
9671
9827
|
*/
|
|
9672
9828
|
export interface EntityIDFilterWrite {
|
|
9673
9829
|
/**
|
|
@@ -9702,7 +9858,7 @@ declare module "factorio:runtime" {
|
|
|
9702
9858
|
* - {@link FluidPrototypeFilter}
|
|
9703
9859
|
* - {@link EntityPrototypeFilter}
|
|
9704
9860
|
* @see PrototypeFilterWrite
|
|
9705
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9861
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/PrototypeFilter.html Online documentation}
|
|
9706
9862
|
*/
|
|
9707
9863
|
export type PrototypeFilter =
|
|
9708
9864
|
| ModSettingPrototypeFilter[]
|
|
@@ -9719,7 +9875,7 @@ declare module "factorio:runtime" {
|
|
|
9719
9875
|
| EntityPrototypeFilter[]
|
|
9720
9876
|
/**
|
|
9721
9877
|
* Write form of {@link PrototypeFilter}, where some properties allow additional values as input compared to the read form.
|
|
9722
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9878
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/PrototypeFilter.html Online documentation}
|
|
9723
9879
|
*/
|
|
9724
9880
|
export type PrototypeFilterWrite =
|
|
9725
9881
|
| readonly ModSettingPrototypeFilter[]
|
|
@@ -9738,7 +9894,7 @@ declare module "factorio:runtime" {
|
|
|
9738
9894
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
|
9739
9895
|
*
|
|
9740
9896
|
* By default, none of these flags are set.
|
|
9741
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9897
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EntityPrototypeFlags.html Online documentation}
|
|
9742
9898
|
*/
|
|
9743
9899
|
export type EntityPrototypeFlags = {
|
|
9744
9900
|
readonly [T in EntityPrototypeFlag]?: true
|
|
@@ -9772,7 +9928,7 @@ declare module "factorio:runtime" {
|
|
|
9772
9928
|
* - `"building-direction-16-way"`
|
|
9773
9929
|
* - `"snap-to-rail-support-spot"`
|
|
9774
9930
|
* - `"not-in-made-in"`: Prevents the entity from being shown in the "made in" list in recipe tooltips.
|
|
9775
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9931
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EntityPrototypeFlag.html Online documentation}
|
|
9776
9932
|
*/
|
|
9777
9933
|
export type EntityPrototypeFlag =
|
|
9778
9934
|
| "not-rotatable"
|
|
@@ -9802,7 +9958,7 @@ declare module "factorio:runtime" {
|
|
|
9802
9958
|
| "not-in-made-in"
|
|
9803
9959
|
/**
|
|
9804
9960
|
* A single filter used by an infinity-pipe type entity.
|
|
9805
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9961
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/InfinityPipeFilter.html Online documentation}
|
|
9806
9962
|
*/
|
|
9807
9963
|
export interface InfinityPipeFilter {
|
|
9808
9964
|
/**
|
|
@@ -9832,7 +9988,7 @@ declare module "factorio:runtime" {
|
|
|
9832
9988
|
}
|
|
9833
9989
|
/**
|
|
9834
9990
|
* @see ProgrammableSpeakerParametersWrite
|
|
9835
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
9991
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ProgrammableSpeakerParameters.html Online documentation}
|
|
9836
9992
|
*/
|
|
9837
9993
|
export interface ProgrammableSpeakerParameters {
|
|
9838
9994
|
readonly playback_volume: float
|
|
@@ -9843,7 +9999,7 @@ declare module "factorio:runtime" {
|
|
|
9843
9999
|
}
|
|
9844
10000
|
/**
|
|
9845
10001
|
* Write form of {@link ProgrammableSpeakerParameters}, where some properties allow additional values as input compared to the read form.
|
|
9846
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10002
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ProgrammableSpeakerParameters.html Online documentation}
|
|
9847
10003
|
*/
|
|
9848
10004
|
export interface ProgrammableSpeakerParametersWrite {
|
|
9849
10005
|
readonly playback_volume: float
|
|
@@ -9859,12 +10015,12 @@ declare module "factorio:runtime" {
|
|
|
9859
10015
|
* - `"local"`: The sound can be heard within the audible range around the speaker.
|
|
9860
10016
|
* - `"surface"`: The sound can be heard anywhere on the speaker's surface.
|
|
9861
10017
|
* - `"global"`: The sound can be heard everywhere.
|
|
9862
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10018
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ProgrammableSpeakerPlaybackMode.html Online documentation}
|
|
9863
10019
|
*/
|
|
9864
10020
|
export type ProgrammableSpeakerPlaybackMode = "local" | "surface" | "global"
|
|
9865
10021
|
/**
|
|
9866
10022
|
* @see ProgrammableSpeakerAlertParametersWrite
|
|
9867
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10023
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ProgrammableSpeakerAlertParameters.html Online documentation}
|
|
9868
10024
|
*/
|
|
9869
10025
|
export interface ProgrammableSpeakerAlertParameters {
|
|
9870
10026
|
readonly show_alert: boolean
|
|
@@ -9874,7 +10030,7 @@ declare module "factorio:runtime" {
|
|
|
9874
10030
|
}
|
|
9875
10031
|
/**
|
|
9876
10032
|
* Write form of {@link ProgrammableSpeakerAlertParameters}, where some properties allow additional values as input compared to the read form.
|
|
9877
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10033
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ProgrammableSpeakerAlertParameters.html Online documentation}
|
|
9878
10034
|
*/
|
|
9879
10035
|
export interface ProgrammableSpeakerAlertParametersWrite {
|
|
9880
10036
|
readonly show_alert: boolean
|
|
@@ -9889,7 +10045,7 @@ declare module "factorio:runtime" {
|
|
|
9889
10045
|
readonly note_id: uint32
|
|
9890
10046
|
}
|
|
9891
10047
|
export interface BlueprintMiningDrillFilter {
|
|
9892
|
-
readonly filters?: SlotFilter
|
|
10048
|
+
readonly filters?: SlotFilter[]
|
|
9893
10049
|
/**
|
|
9894
10050
|
* Defaults to `"whitelist"`.
|
|
9895
10051
|
*/
|
|
@@ -9902,12 +10058,12 @@ declare module "factorio:runtime" {
|
|
|
9902
10058
|
* - `"exactly"`
|
|
9903
10059
|
* - `"add"`
|
|
9904
10060
|
* - `"remove"`
|
|
9905
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10061
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/HeatSettingMode.html Online documentation}
|
|
9906
10062
|
*/
|
|
9907
10063
|
export type HeatSettingMode = "at-least" | "at-most" | "exactly" | "add" | "remove"
|
|
9908
10064
|
/**
|
|
9909
10065
|
* The settings used by a heat-interface type entity.
|
|
9910
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10066
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/HeatSetting.html Online documentation}
|
|
9911
10067
|
*/
|
|
9912
10068
|
export interface HeatSetting {
|
|
9913
10069
|
/**
|
|
@@ -9941,7 +10097,7 @@ declare module "factorio:runtime" {
|
|
|
9941
10097
|
* - `"none-to-south"`
|
|
9942
10098
|
* - `"south-to-none"`
|
|
9943
10099
|
* - `"none-to-north"`
|
|
9944
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10100
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/CliffOrientation.html Online documentation}
|
|
9945
10101
|
*/
|
|
9946
10102
|
export type CliffOrientation =
|
|
9947
10103
|
| "west-to-east"
|
|
@@ -9971,7 +10127,7 @@ declare module "factorio:runtime" {
|
|
|
9971
10127
|
* - `"one-way"`: Fluid will flow if input level > output level.
|
|
9972
10128
|
* - `"overflow"`: Fluid will flow if input level > {@link import("factorio:prototype").ValvePrototype#threshold ValvePrototype::threshold} and input level > output level.
|
|
9973
10129
|
* - `"top-up"`: Fluid will flow if output level < {@link import("factorio:prototype").ValvePrototype#threshold ValvePrototype::threshold} and input level > output level.
|
|
9974
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10130
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ValveMode.html Online documentation}
|
|
9975
10131
|
*/
|
|
9976
10132
|
export type ValveMode = "one-way" | "overflow" | "top-up"
|
|
9977
10133
|
/**
|
|
@@ -9979,7 +10135,7 @@ declare module "factorio:runtime" {
|
|
|
9979
10135
|
* - `"fresh_first"`
|
|
9980
10136
|
* - `"none"`
|
|
9981
10137
|
* - `"spoiled_first"`
|
|
9982
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10138
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SpoilPriority.html Online documentation}
|
|
9983
10139
|
*/
|
|
9984
10140
|
export type SpoilPriority = "fresh_first" | "none" | "spoiled_first"
|
|
9985
10141
|
export interface SpiderLegSpecification {
|
|
@@ -9999,7 +10155,7 @@ declare module "factorio:runtime" {
|
|
|
9999
10155
|
}
|
|
10000
10156
|
/**
|
|
10001
10157
|
* @see BlueprintInfinityInventorySettingsWrite
|
|
10002
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10158
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintInfinityInventorySettings.html Online documentation}
|
|
10003
10159
|
*/
|
|
10004
10160
|
export interface BlueprintInfinityInventorySettings {
|
|
10005
10161
|
readonly filters?: InfinityInventoryFilter[]
|
|
@@ -10010,7 +10166,7 @@ declare module "factorio:runtime" {
|
|
|
10010
10166
|
}
|
|
10011
10167
|
/**
|
|
10012
10168
|
* Write form of {@link BlueprintInfinityInventorySettings}, where some properties allow additional values as input compared to the read form.
|
|
10013
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10169
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintInfinityInventorySettings.html Online documentation}
|
|
10014
10170
|
*/
|
|
10015
10171
|
export interface BlueprintInfinityInventorySettingsWrite {
|
|
10016
10172
|
readonly filters?: readonly InfinityInventoryFilterWrite[]
|
|
@@ -10054,7 +10210,7 @@ declare module "factorio:runtime" {
|
|
|
10054
10210
|
}
|
|
10055
10211
|
/**
|
|
10056
10212
|
* Defines an item type that a blueprint entity will request.
|
|
10057
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10213
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintInsertPlan.html Online documentation}
|
|
10058
10214
|
*/
|
|
10059
10215
|
export interface BlueprintInsertPlan {
|
|
10060
10216
|
/**
|
|
@@ -10092,7 +10248,7 @@ declare module "factorio:runtime" {
|
|
|
10092
10248
|
}
|
|
10093
10249
|
/**
|
|
10094
10250
|
* A single offer on a market entity.
|
|
10095
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10251
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Offer.html Online documentation}
|
|
10096
10252
|
*/
|
|
10097
10253
|
export interface Offer {
|
|
10098
10254
|
/**
|
|
@@ -10138,7 +10294,7 @@ declare module "factorio:runtime" {
|
|
|
10138
10294
|
/**
|
|
10139
10295
|
* A single filter used by an infinity-filters instance.
|
|
10140
10296
|
* @see InfinityInventoryFilterWrite
|
|
10141
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10297
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/InfinityInventoryFilter.html Online documentation}
|
|
10142
10298
|
*/
|
|
10143
10299
|
export interface InfinityInventoryFilter {
|
|
10144
10300
|
/**
|
|
@@ -10164,7 +10320,7 @@ declare module "factorio:runtime" {
|
|
|
10164
10320
|
}
|
|
10165
10321
|
/**
|
|
10166
10322
|
* Write form of {@link InfinityInventoryFilter}, where some properties allow additional values as input compared to the read form.
|
|
10167
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10323
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/InfinityInventoryFilter.html Online documentation}
|
|
10168
10324
|
*/
|
|
10169
10325
|
export interface InfinityInventoryFilterWrite {
|
|
10170
10326
|
/**
|
|
@@ -10200,7 +10356,7 @@ declare module "factorio:runtime" {
|
|
|
10200
10356
|
*/
|
|
10201
10357
|
readonly decrease: float
|
|
10202
10358
|
/**
|
|
10203
|
-
* Percentual damage decrease.
|
|
10359
|
+
* Percentual damage decrease. Expected range is from 0 to 1, e.g. 0.5 is 50%.
|
|
10204
10360
|
*/
|
|
10205
10361
|
readonly percent: float
|
|
10206
10362
|
}
|
|
@@ -10228,14 +10384,14 @@ declare module "factorio:runtime" {
|
|
|
10228
10384
|
*
|
|
10229
10385
|
* The validity of a SoundPath can be verified at runtime using {@link LuaHelpers#is_valid_sound_path LuaHelpers::is_valid_sound_path}.
|
|
10230
10386
|
*
|
|
10231
|
-
* {@link https://lua-api.factorio.com/2.0.
|
|
10387
|
+
* {@link https://lua-api.factorio.com/2.0.75/concepts/SoundPath.html > The utility and ambient types each contain general use sound prototypes defined by the game itself.}
|
|
10232
10388
|
*
|
|
10233
|
-
* {@link https://lua-api.factorio.com/2.0.
|
|
10389
|
+
* {@link https://lua-api.factorio.com/2.0.75/concepts/SoundPath.html > The following types can be combined with any tile name as long as its prototype defines the corresponding sound.}
|
|
10234
10390
|
*
|
|
10235
|
-
* {@link https://lua-api.factorio.com/2.0.
|
|
10391
|
+
* {@link https://lua-api.factorio.com/2.0.75/concepts/SoundPath.html > The following types can be combined with any entity name as long as its prototype defines the corresponding sound.}
|
|
10236
10392
|
*
|
|
10237
|
-
* {@link https://lua-api.factorio.com/2.0.
|
|
10238
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10393
|
+
* {@link https://lua-api.factorio.com/2.0.75/concepts/SoundPath.html > The following types can be combined with any item name as long as its prototype defines the corresponding sound.}
|
|
10394
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SoundPath.html Online documentation}
|
|
10239
10395
|
*/
|
|
10240
10396
|
export type SoundPath = (string & { _?: never }) | `${SoundCategory}/${string}`
|
|
10241
10397
|
/**
|
|
@@ -10253,7 +10409,7 @@ declare module "factorio:runtime" {
|
|
|
10253
10409
|
* - `"weapon"`
|
|
10254
10410
|
* - `"explosion"`
|
|
10255
10411
|
* - `"enemy"`
|
|
10256
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10412
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SoundType.html Online documentation}
|
|
10257
10413
|
*/
|
|
10258
10414
|
export type SoundType =
|
|
10259
10415
|
| "game-effect"
|
|
@@ -10294,7 +10450,7 @@ declare module "factorio:runtime" {
|
|
|
10294
10450
|
}
|
|
10295
10451
|
/**
|
|
10296
10452
|
* @see BlueprintLogisticFilterWrite
|
|
10297
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10453
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintLogisticFilter.html Online documentation}
|
|
10298
10454
|
*/
|
|
10299
10455
|
export interface BlueprintLogisticFilter {
|
|
10300
10456
|
readonly index: LogisticFilterIndex
|
|
@@ -10324,7 +10480,7 @@ declare module "factorio:runtime" {
|
|
|
10324
10480
|
}
|
|
10325
10481
|
/**
|
|
10326
10482
|
* Write form of {@link BlueprintLogisticFilter}, where some properties allow additional values as input compared to the read form.
|
|
10327
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10483
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintLogisticFilter.html Online documentation}
|
|
10328
10484
|
*/
|
|
10329
10485
|
export interface BlueprintLogisticFilterWrite {
|
|
10330
10486
|
readonly index: LogisticFilterIndex
|
|
@@ -10354,7 +10510,7 @@ declare module "factorio:runtime" {
|
|
|
10354
10510
|
}
|
|
10355
10511
|
/**
|
|
10356
10512
|
* @see BlueprintLogisticSectionsWrite
|
|
10357
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10513
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintLogisticSections.html Online documentation}
|
|
10358
10514
|
*/
|
|
10359
10515
|
export interface BlueprintLogisticSections {
|
|
10360
10516
|
readonly sections?: LogisticSection[]
|
|
@@ -10369,7 +10525,7 @@ declare module "factorio:runtime" {
|
|
|
10369
10525
|
}
|
|
10370
10526
|
/**
|
|
10371
10527
|
* Write form of {@link BlueprintLogisticSections}, where some properties allow additional values as input compared to the read form.
|
|
10372
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10528
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/BlueprintLogisticSections.html Online documentation}
|
|
10373
10529
|
*/
|
|
10374
10530
|
export interface BlueprintLogisticSectionsWrite {
|
|
10375
10531
|
readonly sections?: readonly LogisticSectionWrite[]
|
|
@@ -10384,7 +10540,7 @@ declare module "factorio:runtime" {
|
|
|
10384
10540
|
}
|
|
10385
10541
|
/**
|
|
10386
10542
|
* @see LogisticSectionWrite
|
|
10387
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10543
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LogisticSection.html Online documentation}
|
|
10388
10544
|
*/
|
|
10389
10545
|
export interface LogisticSection {
|
|
10390
10546
|
readonly index: uint8
|
|
@@ -10401,7 +10557,7 @@ declare module "factorio:runtime" {
|
|
|
10401
10557
|
}
|
|
10402
10558
|
/**
|
|
10403
10559
|
* Write form of {@link LogisticSection}, where some properties allow additional values as input compared to the read form.
|
|
10404
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10560
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LogisticSection.html Online documentation}
|
|
10405
10561
|
*/
|
|
10406
10562
|
export interface LogisticSectionWrite {
|
|
10407
10563
|
readonly index: uint8
|
|
@@ -10422,7 +10578,7 @@ declare module "factorio:runtime" {
|
|
|
10422
10578
|
}
|
|
10423
10579
|
/**
|
|
10424
10580
|
* @see LogisticSectionsWrite
|
|
10425
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10581
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LogisticSections.html Online documentation}
|
|
10426
10582
|
*/
|
|
10427
10583
|
export interface LogisticSections {
|
|
10428
10584
|
readonly sections?: LogisticSection[]
|
|
@@ -10433,7 +10589,7 @@ declare module "factorio:runtime" {
|
|
|
10433
10589
|
}
|
|
10434
10590
|
/**
|
|
10435
10591
|
* Write form of {@link LogisticSections}, where some properties allow additional values as input compared to the read form.
|
|
10436
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10592
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LogisticSections.html Online documentation}
|
|
10437
10593
|
*/
|
|
10438
10594
|
export interface LogisticSectionsWrite {
|
|
10439
10595
|
readonly sections?: readonly LogisticSectionWrite[]
|
|
@@ -10456,7 +10612,7 @@ declare module "factorio:runtime" {
|
|
|
10456
10612
|
* - {@link LuaAsteroidChunkPrototype}
|
|
10457
10613
|
* - {@link LuaVirtualSignalPrototype}
|
|
10458
10614
|
* - {@link LuaSurfacePrototype}
|
|
10459
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10615
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/FactoriopediaID.html Online documentation}
|
|
10460
10616
|
*/
|
|
10461
10617
|
export type FactoriopediaID =
|
|
10462
10618
|
| LuaItemPrototype
|
|
@@ -10477,7 +10633,7 @@ declare module "factorio:runtime" {
|
|
|
10477
10633
|
* ## Union members
|
|
10478
10634
|
* - `"horizontal"`
|
|
10479
10635
|
* - `"vertical"`
|
|
10480
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10636
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/GuiDirection.html Online documentation}
|
|
10481
10637
|
*/
|
|
10482
10638
|
export type GuiDirection = "horizontal" | "vertical"
|
|
10483
10639
|
/**
|
|
@@ -10496,7 +10652,7 @@ declare module "factorio:runtime" {
|
|
|
10496
10652
|
* - `"middle-right"`
|
|
10497
10653
|
* - `"right"`: The same as `"middle-right"`
|
|
10498
10654
|
* - `"bottom-right"`
|
|
10499
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10655
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Alignment.html Online documentation}
|
|
10500
10656
|
*/
|
|
10501
10657
|
export type Alignment =
|
|
10502
10658
|
| "top-left"
|
|
@@ -10555,7 +10711,7 @@ declare module "factorio:runtime" {
|
|
|
10555
10711
|
}
|
|
10556
10712
|
/**
|
|
10557
10713
|
* A set of trigger target masks.
|
|
10558
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10714
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TriggerTargetMask.html Online documentation}
|
|
10559
10715
|
*/
|
|
10560
10716
|
export type TriggerTargetMask = Record<string, true>
|
|
10561
10717
|
export interface AttackReactionItem {
|
|
@@ -10625,7 +10781,7 @@ declare module "factorio:runtime" {
|
|
|
10625
10781
|
* - `"destroy-decoratives"`
|
|
10626
10782
|
* - `"camera-effect"`
|
|
10627
10783
|
* - `"activate-impact"`
|
|
10628
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10784
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TriggerEffectItemType.html Online documentation}
|
|
10629
10785
|
*/
|
|
10630
10786
|
export type TriggerEffectItemType =
|
|
10631
10787
|
| "damage"
|
|
@@ -10758,7 +10914,7 @@ declare module "factorio:runtime" {
|
|
|
10758
10914
|
* Other attributes may be specified depending on `type`:
|
|
10759
10915
|
* - `"projectile"`: {@link ProjectileAttackParameters}
|
|
10760
10916
|
* - `"stream"`: {@link StreamAttackParameters}
|
|
10761
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10917
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AttackParameters.html Online documentation}
|
|
10762
10918
|
*/
|
|
10763
10919
|
export type AttackParameters = ProjectileAttackParameters | StreamAttackParameters | OtherAttackParameters
|
|
10764
10920
|
/**
|
|
@@ -10766,7 +10922,7 @@ declare module "factorio:runtime" {
|
|
|
10766
10922
|
* - `"left"`
|
|
10767
10923
|
* - `"none"`
|
|
10768
10924
|
* - `"right"`
|
|
10769
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10925
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SplitterPriority.html Online documentation}
|
|
10770
10926
|
*/
|
|
10771
10927
|
export type SplitterPriority = "left" | "none" | "right"
|
|
10772
10928
|
/**
|
|
@@ -10777,12 +10933,12 @@ declare module "factorio:runtime" {
|
|
|
10777
10933
|
* Tables inside Tags that have numeric keys but are not sequences (e.g. `tags = {foo = {nil, "something"}}` or `tags = {bar = {[4] = "cat"}}`) will have their keys converted to strings when read back from the game (e.g. `{foo = {["2"] = "something"}}` or `{bar = {["4"] = "cat"}}`). Only sequences without gaps will have their keys maintained as numeric.
|
|
10778
10934
|
* @example
|
|
10779
10935
|
* {a = 1, b = true, c = "three", d = {e = "f"}}
|
|
10780
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10936
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Tags.html Online documentation}
|
|
10781
10937
|
*/
|
|
10782
10938
|
export type Tags = Record<string, AnyBasic>
|
|
10783
10939
|
/**
|
|
10784
10940
|
* @see TileWrite
|
|
10785
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10941
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Tile.html Online documentation}
|
|
10786
10942
|
*/
|
|
10787
10943
|
export interface Tile {
|
|
10788
10944
|
/**
|
|
@@ -10796,7 +10952,7 @@ declare module "factorio:runtime" {
|
|
|
10796
10952
|
}
|
|
10797
10953
|
/**
|
|
10798
10954
|
* Write form of {@link Tile}, where some properties allow additional values as input compared to the read form.
|
|
10799
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10955
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Tile.html Online documentation}
|
|
10800
10956
|
*/
|
|
10801
10957
|
export interface TileWrite {
|
|
10802
10958
|
/**
|
|
@@ -10820,99 +10976,99 @@ declare module "factorio:runtime" {
|
|
|
10820
10976
|
}
|
|
10821
10977
|
/**
|
|
10822
10978
|
* 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.
|
|
10823
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10979
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/float.html Online documentation}
|
|
10824
10980
|
*/
|
|
10825
10981
|
export type float = number
|
|
10826
10982
|
/**
|
|
10827
10983
|
* A double-precision floating-point number. This is the same data type as all Lua numbers use.
|
|
10828
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10984
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/double.html Online documentation}
|
|
10829
10985
|
*/
|
|
10830
10986
|
export type double = number
|
|
10831
10987
|
/**
|
|
10832
10988
|
* 8-bit unsigned integer. Possible values are `0` to `255`.
|
|
10833
10989
|
*
|
|
10834
10990
|
* Since Lua 5.2 only uses doubles, any API that asks for `uint8` will floor the given double.
|
|
10835
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10991
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/uint8.html Online documentation}
|
|
10836
10992
|
*/
|
|
10837
10993
|
export type uint8 = number
|
|
10838
10994
|
/**
|
|
10839
10995
|
* 8-bit signed integer. Possible values are `-128` to `127`.
|
|
10840
10996
|
*
|
|
10841
10997
|
* Since Lua 5.2 only uses doubles, any API that asks for `int8` will floor the given double.
|
|
10842
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
10998
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/int8.html Online documentation}
|
|
10843
10999
|
*/
|
|
10844
11000
|
export type int8 = number
|
|
10845
11001
|
/**
|
|
10846
11002
|
* 16-bit unsigned integer. Possible values are `0` to `65 535`.
|
|
10847
11003
|
*
|
|
10848
11004
|
* Since Lua 5.2 only uses doubles, any API that asks for `uint16` will floor the given double.
|
|
10849
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11005
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/uint16.html Online documentation}
|
|
10850
11006
|
*/
|
|
10851
11007
|
export type uint16 = number
|
|
10852
11008
|
/**
|
|
10853
11009
|
* 16 bit signed integer. Possible values are `-32 768` to `32 767`.
|
|
10854
11010
|
*
|
|
10855
11011
|
* Since Lua 5.2 only uses doubles, any API that asks for `int16` will floor the given double.
|
|
10856
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11012
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/int16.html Online documentation}
|
|
10857
11013
|
*/
|
|
10858
11014
|
export type int16 = number
|
|
10859
11015
|
/**
|
|
10860
11016
|
* 32-bit unsigned integer. Possible values are `0` to `4 294 967 295`.
|
|
10861
11017
|
*
|
|
10862
11018
|
* Since Lua 5.2 only uses doubles, any API that asks for `uint` will floor the given double.
|
|
10863
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11019
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/uint32.html Online documentation}
|
|
10864
11020
|
*/
|
|
10865
11021
|
export type uint32 = number
|
|
10866
11022
|
/**
|
|
10867
11023
|
* 32-bit signed integer. Possible values are `-2 147 483 648` to `2 147 483 647`.
|
|
10868
11024
|
*
|
|
10869
11025
|
* Since Lua 5.2 only uses doubles, any API that asks for `int` will floor the given double.
|
|
10870
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11026
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/int32.html Online documentation}
|
|
10871
11027
|
*/
|
|
10872
11028
|
export type int32 = number
|
|
10873
11029
|
/**
|
|
10874
11030
|
* 64-bit unsigned integer. Possible values are `0` to `18 446 744 073 709 551 615`.
|
|
10875
11031
|
*
|
|
10876
11032
|
* Since Lua 5.2 only uses doubles, any API that asks for `uint64` will floor the given double.
|
|
10877
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11033
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/uint64.html Online documentation}
|
|
10878
11034
|
*/
|
|
10879
11035
|
export type uint64 = number
|
|
10880
11036
|
/**
|
|
10881
11037
|
* 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.
|
|
10882
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11038
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/nil.html Online documentation}
|
|
10883
11039
|
*/
|
|
10884
11040
|
export type nil = undefined
|
|
10885
11041
|
/**
|
|
10886
11042
|
* Tables are enclosed in curly brackets, like this `{}`.
|
|
10887
11043
|
*
|
|
10888
11044
|
* 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.
|
|
10889
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11045
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/table.html Online documentation}
|
|
10890
11046
|
*/
|
|
10891
11047
|
export type table = object
|
|
10892
11048
|
/**
|
|
10893
|
-
* Any LuaObject listed on the {@linkplain https://lua-api.factorio.com/2.0.
|
|
10894
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11049
|
+
* Any LuaObject listed on the {@linkplain https://lua-api.factorio.com/2.0.75/classes.html Classes} page.
|
|
11050
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaObject.html Online documentation}
|
|
10895
11051
|
*/
|
|
10896
11052
|
export interface LuaObject {
|
|
10897
11053
|
readonly object_name: string
|
|
10898
11054
|
}
|
|
10899
11055
|
/**
|
|
10900
11056
|
* Any basic type (string, number, boolean) or table.
|
|
10901
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11057
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AnyBasic.html Online documentation}
|
|
10902
11058
|
*/
|
|
10903
11059
|
export type AnyBasic = string | boolean | number | table
|
|
10904
11060
|
/**
|
|
10905
11061
|
* Any basic type (string, number, boolean), table, or LuaObject.
|
|
10906
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11062
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/Any.html Online documentation}
|
|
10907
11063
|
*/
|
|
10908
11064
|
export type Any = string | boolean | number | table | LuaObject
|
|
10909
11065
|
/**
|
|
10910
11066
|
* 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}`.
|
|
10911
11067
|
*
|
|
10912
|
-
* {@link https://lua-api.factorio.com/2.0.
|
|
11068
|
+
* {@link https://lua-api.factorio.com/2.0.75/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:}
|
|
10913
11069
|
*
|
|
10914
|
-
* {@link https://lua-api.factorio.com/2.0.
|
|
10915
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11070
|
+
* {@link https://lua-api.factorio.com/2.0.75/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:}
|
|
11071
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/PropertyExpressionNames.html Online documentation}
|
|
10916
11072
|
*/
|
|
10917
11073
|
export type PropertyExpressionNames = Record<string, string>
|
|
10918
11074
|
/**
|
|
@@ -10969,7 +11125,7 @@ declare module "factorio:runtime" {
|
|
|
10969
11125
|
* - `"type"`: {@link TypeModSettingPrototypeFilter}
|
|
10970
11126
|
* - `"mod"`: {@link ModModSettingPrototypeFilter}
|
|
10971
11127
|
* - `"setting-type"`: {@link SettingTypeModSettingPrototypeFilter}
|
|
10972
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11128
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ModSettingPrototypeFilter.html Online documentation}
|
|
10973
11129
|
*/
|
|
10974
11130
|
export type ModSettingPrototypeFilter =
|
|
10975
11131
|
| TypeModSettingPrototypeFilter
|
|
@@ -11033,7 +11189,7 @@ declare module "factorio:runtime" {
|
|
|
11033
11189
|
* Other attributes may be specified depending on `filter`:
|
|
11034
11190
|
* - `"type"`: {@link TypeSpaceLocationPrototypeFilter}
|
|
11035
11191
|
* - `"solar-power-in-space"`: {@link SolarPowerInSpaceSpaceLocationPrototypeFilter}
|
|
11036
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11192
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SpaceLocationPrototypeFilter.html Online documentation}
|
|
11037
11193
|
*/
|
|
11038
11194
|
export type SpaceLocationPrototypeFilter =
|
|
11039
11195
|
| TypeSpaceLocationPrototypeFilter
|
|
@@ -11041,7 +11197,7 @@ declare module "factorio:runtime" {
|
|
|
11041
11197
|
| OtherSpaceLocationPrototypeFilter
|
|
11042
11198
|
/**
|
|
11043
11199
|
* Write form of {@link SpaceLocationPrototypeFilter}, where some properties allow additional values as input compared to the read form.
|
|
11044
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11200
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/SpaceLocationPrototypeFilter.html Online documentation}
|
|
11045
11201
|
*/
|
|
11046
11202
|
export type SpaceLocationPrototypeFilterWrite =
|
|
11047
11203
|
| TypeSpaceLocationPrototypeFilter
|
|
@@ -11089,7 +11245,7 @@ declare module "factorio:runtime" {
|
|
|
11089
11245
|
*
|
|
11090
11246
|
* Other attributes may be specified depending on `filter`:
|
|
11091
11247
|
* - `"collision-mask"`: {@link CollisionMaskDecorativePrototypeFilter}
|
|
11092
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11248
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/DecorativePrototypeFilter.html Online documentation}
|
|
11093
11249
|
*/
|
|
11094
11250
|
export type DecorativePrototypeFilter = CollisionMaskDecorativePrototypeFilter | OtherDecorativePrototypeFilter
|
|
11095
11251
|
/**
|
|
@@ -11231,7 +11387,7 @@ declare module "factorio:runtime" {
|
|
|
11231
11387
|
* - `"vehicle-friction-modifier"`: {@link VehicleFrictionModifierTilePrototypeFilter}
|
|
11232
11388
|
* - `"decorative-removal-probability"`: {@link DecorativeRemovalProbabilityTilePrototypeFilter}
|
|
11233
11389
|
* - `"absorptions-per-second"`: {@link AbsorptionsPerSecondTilePrototypeFilter}
|
|
11234
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11390
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TilePrototypeFilter.html Online documentation}
|
|
11235
11391
|
*/
|
|
11236
11392
|
export type TilePrototypeFilter =
|
|
11237
11393
|
| CollisionMaskTilePrototypeFilter
|
|
@@ -11242,7 +11398,7 @@ declare module "factorio:runtime" {
|
|
|
11242
11398
|
| OtherTilePrototypeFilter
|
|
11243
11399
|
/**
|
|
11244
11400
|
* Write form of {@link TilePrototypeFilter}, where some properties allow additional values as input compared to the read form.
|
|
11245
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11401
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TilePrototypeFilter.html Online documentation}
|
|
11246
11402
|
*/
|
|
11247
11403
|
export type TilePrototypeFilterWrite =
|
|
11248
11404
|
| CollisionMaskTilePrototypeFilter
|
|
@@ -11597,7 +11753,7 @@ declare module "factorio:runtime" {
|
|
|
11597
11753
|
* - `"fuel-acceleration-multiplier"`: {@link FuelAccelerationMultiplierItemPrototypeFilter}
|
|
11598
11754
|
* - `"fuel-top-speed-multiplier"`: {@link FuelTopSpeedMultiplierItemPrototypeFilter}
|
|
11599
11755
|
* - `"fuel-emissions-multiplier"`: {@link FuelEmissionsMultiplierItemPrototypeFilter}
|
|
11600
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11756
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ItemPrototypeFilter.html Online documentation}
|
|
11601
11757
|
*/
|
|
11602
11758
|
export type ItemPrototypeFilter =
|
|
11603
11759
|
| PlaceResultItemPrototypeFilter
|
|
@@ -11619,7 +11775,7 @@ declare module "factorio:runtime" {
|
|
|
11619
11775
|
| OtherItemPrototypeFilter
|
|
11620
11776
|
/**
|
|
11621
11777
|
* Write form of {@link ItemPrototypeFilter}, where some properties allow additional values as input compared to the read form.
|
|
11622
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11778
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/ItemPrototypeFilter.html Online documentation}
|
|
11623
11779
|
*/
|
|
11624
11780
|
export type ItemPrototypeFilterWrite =
|
|
11625
11781
|
| PlaceResultItemPrototypeFilterWrite
|
|
@@ -11759,7 +11915,7 @@ declare module "factorio:runtime" {
|
|
|
11759
11915
|
* - `"level"`: {@link LevelTechnologyPrototypeFilter}
|
|
11760
11916
|
* - `"max-level"`: {@link MaxLevelTechnologyPrototypeFilter}
|
|
11761
11917
|
* - `"time"`: {@link TimeTechnologyPrototypeFilter}
|
|
11762
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11918
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TechnologyPrototypeFilter.html Online documentation}
|
|
11763
11919
|
*/
|
|
11764
11920
|
export type TechnologyPrototypeFilter =
|
|
11765
11921
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
|
@@ -11770,7 +11926,7 @@ declare module "factorio:runtime" {
|
|
|
11770
11926
|
| OtherTechnologyPrototypeFilter
|
|
11771
11927
|
/**
|
|
11772
11928
|
* Write form of {@link TechnologyPrototypeFilter}, where some properties allow additional values as input compared to the read form.
|
|
11773
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
11929
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/TechnologyPrototypeFilter.html Online documentation}
|
|
11774
11930
|
*/
|
|
11775
11931
|
export type TechnologyPrototypeFilterWrite =
|
|
11776
11932
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
|
@@ -12030,7 +12186,7 @@ declare module "factorio:runtime" {
|
|
|
12030
12186
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierRecipePrototypeFilter}
|
|
12031
12187
|
* - `"request-paste-multiplier"`: {@link RequestPasteMultiplierRecipePrototypeFilter}
|
|
12032
12188
|
* - `"overload-multiplier"`: {@link OverloadMultiplierRecipePrototypeFilter}
|
|
12033
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
12189
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/RecipePrototypeFilter.html Online documentation}
|
|
12034
12190
|
*/
|
|
12035
12191
|
export type RecipePrototypeFilter =
|
|
12036
12192
|
| HasIngredientItemRecipePrototypeFilter
|
|
@@ -12046,7 +12202,7 @@ declare module "factorio:runtime" {
|
|
|
12046
12202
|
| OtherRecipePrototypeFilter
|
|
12047
12203
|
/**
|
|
12048
12204
|
* Write form of {@link RecipePrototypeFilter}, where some properties allow additional values as input compared to the read form.
|
|
12049
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
12205
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/RecipePrototypeFilter.html Online documentation}
|
|
12050
12206
|
*/
|
|
12051
12207
|
export type RecipePrototypeFilterWrite =
|
|
12052
12208
|
| HasIngredientItemRecipePrototypeFilterWrite
|
|
@@ -12098,7 +12254,7 @@ declare module "factorio:runtime" {
|
|
|
12098
12254
|
*
|
|
12099
12255
|
* Other attributes may be specified depending on `filter`:
|
|
12100
12256
|
* - `"type"`: {@link TypeAchievementPrototypeFilter}
|
|
12101
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
12257
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/AchievementPrototypeFilter.html Online documentation}
|
|
12102
12258
|
*/
|
|
12103
12259
|
export type AchievementPrototypeFilter = TypeAchievementPrototypeFilter | OtherAchievementPrototypeFilter
|
|
12104
12260
|
/**
|
|
@@ -12139,7 +12295,7 @@ declare module "factorio:runtime" {
|
|
|
12139
12295
|
*
|
|
12140
12296
|
* Other attributes may be specified depending on `filter`:
|
|
12141
12297
|
* - `"type"`: {@link TypeEquipmentPrototypeFilter}
|
|
12142
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
12298
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EquipmentPrototypeFilter.html Online documentation}
|
|
12143
12299
|
*/
|
|
12144
12300
|
export type EquipmentPrototypeFilter = TypeEquipmentPrototypeFilter | OtherEquipmentPrototypeFilter
|
|
12145
12301
|
/**
|
|
@@ -12324,7 +12480,7 @@ declare module "factorio:runtime" {
|
|
|
12324
12480
|
* - `"fuel-value"`: {@link FuelValueFluidPrototypeFilter}
|
|
12325
12481
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierFluidPrototypeFilter}
|
|
12326
12482
|
* - `"gas-temperature"`: {@link GasTemperatureFluidPrototypeFilter}
|
|
12327
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
12483
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/FluidPrototypeFilter.html Online documentation}
|
|
12328
12484
|
*/
|
|
12329
12485
|
export type FluidPrototypeFilter =
|
|
12330
12486
|
| NameFluidPrototypeFilter
|
|
@@ -12338,7 +12494,7 @@ declare module "factorio:runtime" {
|
|
|
12338
12494
|
| OtherFluidPrototypeFilter
|
|
12339
12495
|
/**
|
|
12340
12496
|
* Write form of {@link FluidPrototypeFilter}, where some properties allow additional values as input compared to the read form.
|
|
12341
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
12497
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/FluidPrototypeFilter.html Online documentation}
|
|
12342
12498
|
*/
|
|
12343
12499
|
export type FluidPrototypeFilterWrite =
|
|
12344
12500
|
| NameFluidPrototypeFilter
|
|
@@ -12578,7 +12734,7 @@ declare module "factorio:runtime" {
|
|
|
12578
12734
|
* - `"selection-priority"`: {@link SelectionPriorityEntityPrototypeFilter}
|
|
12579
12735
|
* - `"emissions-per-second"`: {@link EmissionsPerSecondEntityPrototypeFilter}
|
|
12580
12736
|
* - `"crafting-category"`: {@link CraftingCategoryEntityPrototypeFilter}
|
|
12581
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
12737
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EntityPrototypeFilter.html Online documentation}
|
|
12582
12738
|
*/
|
|
12583
12739
|
export type EntityPrototypeFilter =
|
|
12584
12740
|
| NameEntityPrototypeFilter
|
|
@@ -12592,7 +12748,7 @@ declare module "factorio:runtime" {
|
|
|
12592
12748
|
| OtherEntityPrototypeFilter
|
|
12593
12749
|
/**
|
|
12594
12750
|
* Write form of {@link EntityPrototypeFilter}, where some properties allow additional values as input compared to the read form.
|
|
12595
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
12751
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/EntityPrototypeFilter.html Online documentation}
|
|
12596
12752
|
*/
|
|
12597
12753
|
export type EntityPrototypeFilterWrite =
|
|
12598
12754
|
| NameEntityPrototypeFilter
|
|
@@ -12636,7 +12792,7 @@ declare module "factorio:runtime" {
|
|
|
12636
12792
|
*
|
|
12637
12793
|
* Other attributes may be specified depending on `filter`:
|
|
12638
12794
|
* - `"name"`: {@link NameSegmentedUnitDiedEventFilter}
|
|
12639
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
12795
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaSegmentedUnitDiedEventFilter.html Online documentation}
|
|
12640
12796
|
*/
|
|
12641
12797
|
export type LuaSegmentedUnitDiedEventFilter = NameSegmentedUnitDiedEventFilter
|
|
12642
12798
|
/**
|
|
@@ -12736,7 +12892,7 @@ declare module "factorio:runtime" {
|
|
|
12736
12892
|
* - `"name"`: {@link NameScriptRaisedTeleportedEventFilter}
|
|
12737
12893
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedTeleportedEventFilter}
|
|
12738
12894
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedTeleportedEventFilter}
|
|
12739
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
12895
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaScriptRaisedTeleportedEventFilter.html Online documentation}
|
|
12740
12896
|
*/
|
|
12741
12897
|
export type LuaScriptRaisedTeleportedEventFilter =
|
|
12742
12898
|
| TypeScriptRaisedTeleportedEventFilter
|
|
@@ -12841,7 +12997,7 @@ declare module "factorio:runtime" {
|
|
|
12841
12997
|
* - `"name"`: {@link NamePreRobotMinedEntityEventFilter}
|
|
12842
12998
|
* - `"ghost_type"`: {@link GhostTypePreRobotMinedEntityEventFilter}
|
|
12843
12999
|
* - `"ghost_name"`: {@link GhostNamePreRobotMinedEntityEventFilter}
|
|
12844
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
13000
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaPreRobotMinedEntityEventFilter.html Online documentation}
|
|
12845
13001
|
*/
|
|
12846
13002
|
export type LuaPreRobotMinedEntityEventFilter =
|
|
12847
13003
|
| TypePreRobotMinedEntityEventFilter
|
|
@@ -12946,7 +13102,7 @@ declare module "factorio:runtime" {
|
|
|
12946
13102
|
* - `"name"`: {@link NameScriptRaisedBuiltEventFilter}
|
|
12947
13103
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedBuiltEventFilter}
|
|
12948
13104
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedBuiltEventFilter}
|
|
12949
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
13105
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaScriptRaisedBuiltEventFilter.html Online documentation}
|
|
12950
13106
|
*/
|
|
12951
13107
|
export type LuaScriptRaisedBuiltEventFilter =
|
|
12952
13108
|
| TypeScriptRaisedBuiltEventFilter
|
|
@@ -13051,7 +13207,7 @@ declare module "factorio:runtime" {
|
|
|
13051
13207
|
* - `"name"`: {@link NamePlatformMinedEntityEventFilter}
|
|
13052
13208
|
* - `"ghost_type"`: {@link GhostTypePlatformMinedEntityEventFilter}
|
|
13053
13209
|
* - `"ghost_name"`: {@link GhostNamePlatformMinedEntityEventFilter}
|
|
13054
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
13210
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaPlatformMinedEntityEventFilter.html Online documentation}
|
|
13055
13211
|
*/
|
|
13056
13212
|
export type LuaPlatformMinedEntityEventFilter =
|
|
13057
13213
|
| TypePlatformMinedEntityEventFilter
|
|
@@ -13168,7 +13324,7 @@ declare module "factorio:runtime" {
|
|
|
13168
13324
|
* - `"ghost_type"`: {@link GhostTypeRobotBuiltEntityEventFilter}
|
|
13169
13325
|
* - `"ghost_name"`: {@link GhostNameRobotBuiltEntityEventFilter}
|
|
13170
13326
|
* - `"force"`: {@link ForceRobotBuiltEntityEventFilter}
|
|
13171
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
13327
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaRobotBuiltEntityEventFilter.html Online documentation}
|
|
13172
13328
|
*/
|
|
13173
13329
|
export type LuaRobotBuiltEntityEventFilter =
|
|
13174
13330
|
| TypeRobotBuiltEntityEventFilter
|
|
@@ -13274,7 +13430,7 @@ declare module "factorio:runtime" {
|
|
|
13274
13430
|
* - `"name"`: {@link NamePrePlayerMinedEntityEventFilter}
|
|
13275
13431
|
* - `"ghost_type"`: {@link GhostTypePrePlayerMinedEntityEventFilter}
|
|
13276
13432
|
* - `"ghost_name"`: {@link GhostNamePrePlayerMinedEntityEventFilter}
|
|
13277
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
13433
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaPrePlayerMinedEntityEventFilter.html Online documentation}
|
|
13278
13434
|
*/
|
|
13279
13435
|
export type LuaPrePlayerMinedEntityEventFilter =
|
|
13280
13436
|
| TypePrePlayerMinedEntityEventFilter
|
|
@@ -13381,7 +13537,7 @@ declare module "factorio:runtime" {
|
|
|
13381
13537
|
* - `"name"`: {@link NameEntityDeconstructionCancelledEventFilter}
|
|
13382
13538
|
* - `"ghost_type"`: {@link GhostTypeEntityDeconstructionCancelledEventFilter}
|
|
13383
13539
|
* - `"ghost_name"`: {@link GhostNameEntityDeconstructionCancelledEventFilter}
|
|
13384
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
13540
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaEntityDeconstructionCancelledEventFilter.html Online documentation}
|
|
13385
13541
|
*/
|
|
13386
13542
|
export type LuaEntityDeconstructionCancelledEventFilter =
|
|
13387
13543
|
| TypeEntityDeconstructionCancelledEventFilter
|
|
@@ -13486,7 +13642,7 @@ declare module "factorio:runtime" {
|
|
|
13486
13642
|
* - `"name"`: {@link NamePreGhostUpgradedEventFilter}
|
|
13487
13643
|
* - `"ghost_type"`: {@link GhostTypePreGhostUpgradedEventFilter}
|
|
13488
13644
|
* - `"ghost_name"`: {@link GhostNamePreGhostUpgradedEventFilter}
|
|
13489
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
13645
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaPreGhostUpgradedEventFilter.html Online documentation}
|
|
13490
13646
|
*/
|
|
13491
13647
|
export type LuaPreGhostUpgradedEventFilter =
|
|
13492
13648
|
| TypePreGhostUpgradedEventFilter
|
|
@@ -13603,7 +13759,7 @@ declare module "factorio:runtime" {
|
|
|
13603
13759
|
* - `"ghost_type"`: {@link GhostTypePlatformBuiltEntityEventFilter}
|
|
13604
13760
|
* - `"ghost_name"`: {@link GhostNamePlatformBuiltEntityEventFilter}
|
|
13605
13761
|
* - `"force"`: {@link ForcePlatformBuiltEntityEventFilter}
|
|
13606
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
13762
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaPlatformBuiltEntityEventFilter.html Online documentation}
|
|
13607
13763
|
*/
|
|
13608
13764
|
export type LuaPlatformBuiltEntityEventFilter =
|
|
13609
13765
|
| TypePlatformBuiltEntityEventFilter
|
|
@@ -13709,7 +13865,7 @@ declare module "factorio:runtime" {
|
|
|
13709
13865
|
* - `"name"`: {@link NamePrePlatformMinedEntityEventFilter}
|
|
13710
13866
|
* - `"ghost_type"`: {@link GhostTypePrePlatformMinedEntityEventFilter}
|
|
13711
13867
|
* - `"ghost_name"`: {@link GhostNamePrePlatformMinedEntityEventFilter}
|
|
13712
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
13868
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaPrePlatformMinedEntityEventFilter.html Online documentation}
|
|
13713
13869
|
*/
|
|
13714
13870
|
export type LuaPrePlatformMinedEntityEventFilter =
|
|
13715
13871
|
| TypePrePlatformMinedEntityEventFilter
|
|
@@ -13814,7 +13970,7 @@ declare module "factorio:runtime" {
|
|
|
13814
13970
|
* - `"name"`: {@link NameEntityClonedEventFilter}
|
|
13815
13971
|
* - `"ghost_type"`: {@link GhostTypeEntityClonedEventFilter}
|
|
13816
13972
|
* - `"ghost_name"`: {@link GhostNameEntityClonedEventFilter}
|
|
13817
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
13973
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaEntityClonedEventFilter.html Online documentation}
|
|
13818
13974
|
*/
|
|
13819
13975
|
export type LuaEntityClonedEventFilter =
|
|
13820
13976
|
| TypeEntityClonedEventFilter
|
|
@@ -13919,7 +14075,7 @@ declare module "factorio:runtime" {
|
|
|
13919
14075
|
* - `"name"`: {@link NamePlayerRepairedEntityEventFilter}
|
|
13920
14076
|
* - `"ghost_type"`: {@link GhostTypePlayerRepairedEntityEventFilter}
|
|
13921
14077
|
* - `"ghost_name"`: {@link GhostNamePlayerRepairedEntityEventFilter}
|
|
13922
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
14078
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaPlayerRepairedEntityEventFilter.html Online documentation}
|
|
13923
14079
|
*/
|
|
13924
14080
|
export type LuaPlayerRepairedEntityEventFilter =
|
|
13925
14081
|
| TypePlayerRepairedEntityEventFilter
|
|
@@ -13959,7 +14115,7 @@ declare module "factorio:runtime" {
|
|
|
13959
14115
|
*
|
|
13960
14116
|
* Other attributes may be specified depending on `filter`:
|
|
13961
14117
|
* - `"type"`: {@link TypePostEntityDiedEventFilter}
|
|
13962
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
14118
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaPostEntityDiedEventFilter.html Online documentation}
|
|
13963
14119
|
*/
|
|
13964
14120
|
export type LuaPostEntityDiedEventFilter = TypePostEntityDiedEventFilter
|
|
13965
14121
|
/**
|
|
@@ -13995,7 +14151,7 @@ declare module "factorio:runtime" {
|
|
|
13995
14151
|
*
|
|
13996
14152
|
* Other attributes may be specified depending on `filter`:
|
|
13997
14153
|
* - `"name"`: {@link NameScriptRaisedDestroySegmentedUnitEventFilter}
|
|
13998
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
14154
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaScriptRaisedDestroySegmentedUnitEventFilter.html Online documentation}
|
|
13999
14155
|
*/
|
|
14000
14156
|
export type LuaScriptRaisedDestroySegmentedUnitEventFilter = NameScriptRaisedDestroySegmentedUnitEventFilter
|
|
14001
14157
|
/**
|
|
@@ -14102,7 +14258,7 @@ declare module "factorio:runtime" {
|
|
|
14102
14258
|
* - `"final-damage-amount"`: {@link FinalDamageAmountSegmentedUnitDamagedEventFilter}
|
|
14103
14259
|
* - `"damage-type"`: {@link DamageTypeSegmentedUnitDamagedEventFilter}
|
|
14104
14260
|
* - `"final-health"`: {@link FinalHealthSegmentedUnitDamagedEventFilter}
|
|
14105
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
14261
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaSegmentedUnitDamagedEventFilter.html Online documentation}
|
|
14106
14262
|
*/
|
|
14107
14263
|
export type LuaSegmentedUnitDamagedEventFilter =
|
|
14108
14264
|
| NameSegmentedUnitDamagedEventFilter
|
|
@@ -14112,7 +14268,7 @@ declare module "factorio:runtime" {
|
|
|
14112
14268
|
| FinalHealthSegmentedUnitDamagedEventFilter
|
|
14113
14269
|
/**
|
|
14114
14270
|
* Write form of {@link LuaSegmentedUnitDamagedEventFilter}, where some properties allow additional values as input compared to the read form.
|
|
14115
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
14271
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaSegmentedUnitDamagedEventFilter.html Online documentation}
|
|
14116
14272
|
*/
|
|
14117
14273
|
export type LuaSegmentedUnitDamagedEventFilterWrite =
|
|
14118
14274
|
| NameSegmentedUnitDamagedEventFilter
|
|
@@ -14217,7 +14373,7 @@ declare module "factorio:runtime" {
|
|
|
14217
14373
|
* - `"name"`: {@link NamePreGhostDeconstructedEventFilter}
|
|
14218
14374
|
* - `"ghost_type"`: {@link GhostTypePreGhostDeconstructedEventFilter}
|
|
14219
14375
|
* - `"ghost_name"`: {@link GhostNamePreGhostDeconstructedEventFilter}
|
|
14220
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
14376
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaPreGhostDeconstructedEventFilter.html Online documentation}
|
|
14221
14377
|
*/
|
|
14222
14378
|
export type LuaPreGhostDeconstructedEventFilter =
|
|
14223
14379
|
| TypePreGhostDeconstructedEventFilter
|
|
@@ -14322,7 +14478,7 @@ declare module "factorio:runtime" {
|
|
|
14322
14478
|
* - `"name"`: {@link NamePlayerMinedEntityEventFilter}
|
|
14323
14479
|
* - `"ghost_type"`: {@link GhostTypePlayerMinedEntityEventFilter}
|
|
14324
14480
|
* - `"ghost_name"`: {@link GhostNamePlayerMinedEntityEventFilter}
|
|
14325
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
14481
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaPlayerMinedEntityEventFilter.html Online documentation}
|
|
14326
14482
|
*/
|
|
14327
14483
|
export type LuaPlayerMinedEntityEventFilter =
|
|
14328
14484
|
| TypePlayerMinedEntityEventFilter
|
|
@@ -14427,7 +14583,7 @@ declare module "factorio:runtime" {
|
|
|
14427
14583
|
* - `"name"`: {@link NameSectorScannedEventFilter}
|
|
14428
14584
|
* - `"ghost_type"`: {@link GhostTypeSectorScannedEventFilter}
|
|
14429
14585
|
* - `"ghost_name"`: {@link GhostNameSectorScannedEventFilter}
|
|
14430
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
14586
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaSectorScannedEventFilter.html Online documentation}
|
|
14431
14587
|
*/
|
|
14432
14588
|
export type LuaSectorScannedEventFilter =
|
|
14433
14589
|
| TypeSectorScannedEventFilter
|
|
@@ -14532,7 +14688,7 @@ declare module "factorio:runtime" {
|
|
|
14532
14688
|
* - `"name"`: {@link NameRobotMinedEntityEventFilter}
|
|
14533
14689
|
* - `"ghost_type"`: {@link GhostTypeRobotMinedEntityEventFilter}
|
|
14534
14690
|
* - `"ghost_name"`: {@link GhostNameRobotMinedEntityEventFilter}
|
|
14535
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
14691
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaRobotMinedEntityEventFilter.html Online documentation}
|
|
14536
14692
|
*/
|
|
14537
14693
|
export type LuaRobotMinedEntityEventFilter =
|
|
14538
14694
|
| TypeRobotMinedEntityEventFilter
|
|
@@ -14639,7 +14795,7 @@ declare module "factorio:runtime" {
|
|
|
14639
14795
|
* - `"name"`: {@link NameEntityMarkedForDeconstructionEventFilter}
|
|
14640
14796
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForDeconstructionEventFilter}
|
|
14641
14797
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForDeconstructionEventFilter}
|
|
14642
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
14798
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaEntityMarkedForDeconstructionEventFilter.html Online documentation}
|
|
14643
14799
|
*/
|
|
14644
14800
|
export type LuaEntityMarkedForDeconstructionEventFilter =
|
|
14645
14801
|
| TypeEntityMarkedForDeconstructionEventFilter
|
|
@@ -14679,7 +14835,7 @@ declare module "factorio:runtime" {
|
|
|
14679
14835
|
*
|
|
14680
14836
|
* Other attributes may be specified depending on `filter`:
|
|
14681
14837
|
* - `"name"`: {@link NamePostSegmentedUnitDiedEventFilter}
|
|
14682
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
14838
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaPostSegmentedUnitDiedEventFilter.html Online documentation}
|
|
14683
14839
|
*/
|
|
14684
14840
|
export type LuaPostSegmentedUnitDiedEventFilter = NamePostSegmentedUnitDiedEventFilter
|
|
14685
14841
|
/**
|
|
@@ -14779,7 +14935,7 @@ declare module "factorio:runtime" {
|
|
|
14779
14935
|
* - `"name"`: {@link NameScriptRaisedReviveEventFilter}
|
|
14780
14936
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedReviveEventFilter}
|
|
14781
14937
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedReviveEventFilter}
|
|
14782
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
14938
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaScriptRaisedReviveEventFilter.html Online documentation}
|
|
14783
14939
|
*/
|
|
14784
14940
|
export type LuaScriptRaisedReviveEventFilter =
|
|
14785
14941
|
| TypeScriptRaisedReviveEventFilter
|
|
@@ -14896,7 +15052,7 @@ declare module "factorio:runtime" {
|
|
|
14896
15052
|
* - `"ghost_type"`: {@link GhostTypePlayerBuiltEntityEventFilter}
|
|
14897
15053
|
* - `"ghost_name"`: {@link GhostNamePlayerBuiltEntityEventFilter}
|
|
14898
15054
|
* - `"force"`: {@link ForcePlayerBuiltEntityEventFilter}
|
|
14899
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
15055
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaPlayerBuiltEntityEventFilter.html Online documentation}
|
|
14900
15056
|
*/
|
|
14901
15057
|
export type LuaPlayerBuiltEntityEventFilter =
|
|
14902
15058
|
| TypePlayerBuiltEntityEventFilter
|
|
@@ -15002,7 +15158,7 @@ declare module "factorio:runtime" {
|
|
|
15002
15158
|
* - `"name"`: {@link NameUpgradeCancelledEventFilter}
|
|
15003
15159
|
* - `"ghost_type"`: {@link GhostTypeUpgradeCancelledEventFilter}
|
|
15004
15160
|
* - `"ghost_name"`: {@link GhostNameUpgradeCancelledEventFilter}
|
|
15005
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
15161
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaUpgradeCancelledEventFilter.html Online documentation}
|
|
15006
15162
|
*/
|
|
15007
15163
|
export type LuaUpgradeCancelledEventFilter =
|
|
15008
15164
|
| TypeUpgradeCancelledEventFilter
|
|
@@ -15182,7 +15338,7 @@ declare module "factorio:runtime" {
|
|
|
15182
15338
|
* - `"final-damage-amount"`: {@link FinalDamageAmountEntityDamagedEventFilter}
|
|
15183
15339
|
* - `"damage-type"`: {@link DamageTypeEntityDamagedEventFilter}
|
|
15184
15340
|
* - `"final-health"`: {@link FinalHealthEntityDamagedEventFilter}
|
|
15185
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
15341
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaEntityDamagedEventFilter.html Online documentation}
|
|
15186
15342
|
*/
|
|
15187
15343
|
export type LuaEntityDamagedEventFilter =
|
|
15188
15344
|
| TypeEntityDamagedEventFilter
|
|
@@ -15196,7 +15352,7 @@ declare module "factorio:runtime" {
|
|
|
15196
15352
|
| OtherEntityDamagedEventFilter
|
|
15197
15353
|
/**
|
|
15198
15354
|
* Write form of {@link LuaEntityDamagedEventFilter}, where some properties allow additional values as input compared to the read form.
|
|
15199
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
15355
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaEntityDamagedEventFilter.html Online documentation}
|
|
15200
15356
|
*/
|
|
15201
15357
|
export type LuaEntityDamagedEventFilterWrite =
|
|
15202
15358
|
| TypeEntityDamagedEventFilter
|
|
@@ -15317,7 +15473,7 @@ declare module "factorio:runtime" {
|
|
|
15317
15473
|
* - `"ghost_type"`: {@link GhostTypeEntityDiedEventFilter}
|
|
15318
15474
|
* - `"ghost_name"`: {@link GhostNameEntityDiedEventFilter}
|
|
15319
15475
|
* - `"force"`: {@link ForceEntityDiedEventFilter}
|
|
15320
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
15476
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaEntityDiedEventFilter.html Online documentation}
|
|
15321
15477
|
*/
|
|
15322
15478
|
export type LuaEntityDiedEventFilter =
|
|
15323
15479
|
| TypeEntityDiedEventFilter
|
|
@@ -15423,7 +15579,7 @@ declare module "factorio:runtime" {
|
|
|
15423
15579
|
* - `"name"`: {@link NameEntityMarkedForUpgradeEventFilter}
|
|
15424
15580
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForUpgradeEventFilter}
|
|
15425
15581
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForUpgradeEventFilter}
|
|
15426
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
15582
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaEntityMarkedForUpgradeEventFilter.html Online documentation}
|
|
15427
15583
|
*/
|
|
15428
15584
|
export type LuaEntityMarkedForUpgradeEventFilter =
|
|
15429
15585
|
| TypeEntityMarkedForUpgradeEventFilter
|
|
@@ -15474,7 +15630,7 @@ declare module "factorio:runtime" {
|
|
|
15474
15630
|
* Other attributes may be specified depending on `filter`:
|
|
15475
15631
|
* - `"name"`: {@link NameSegmentedUnitCreatedEventFilter}
|
|
15476
15632
|
* - `"cause"`: {@link CauseSegmentedUnitCreatedEventFilter}
|
|
15477
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
15633
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaSegmentedUnitCreatedEventFilter.html Online documentation}
|
|
15478
15634
|
*/
|
|
15479
15635
|
export type LuaSegmentedUnitCreatedEventFilter =
|
|
15480
15636
|
| NameSegmentedUnitCreatedEventFilter
|
|
@@ -15576,7 +15732,7 @@ declare module "factorio:runtime" {
|
|
|
15576
15732
|
* - `"name"`: {@link NameScriptRaisedDestroyEventFilter}
|
|
15577
15733
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedDestroyEventFilter}
|
|
15578
15734
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedDestroyEventFilter}
|
|
15579
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
15735
|
+
* @see {@link https://lua-api.factorio.com/2.0.75/concepts/LuaScriptRaisedDestroyEventFilter.html Online documentation}
|
|
15580
15736
|
*/
|
|
15581
15737
|
export type LuaScriptRaisedDestroyEventFilter =
|
|
15582
15738
|
| TypeScriptRaisedDestroyEventFilter
|