typed-factorio 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/prototype/generated/prototypes.d.ts +1787 -1779
- package/prototype/generated/types.d.ts +1418 -1418
- package/runtime/generated/builtin-types.d.ts +12 -12
- package/runtime/generated/classes.d.ts +3431 -3301
- package/runtime/generated/concepts.d.ts +238 -218
- package/runtime/generated/defines.d.ts +122 -117
- package/runtime/generated/events.d.ts +185 -185
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +6 -6
@@ -8,6 +8,71 @@ import type { VersionString } from "factorio:common"
|
|
8
8
|
* @noResolution
|
9
9
|
*/
|
10
10
|
declare module "factorio:runtime" {
|
11
|
+
export interface PrintSettings {
|
12
|
+
/**
|
13
|
+
* Color of the message to print. Defaults to white.
|
14
|
+
*/
|
15
|
+
readonly color?: Color | ColorArray
|
16
|
+
/**
|
17
|
+
* If a sound should be emitted for this message. Defaults to `defines.print_sound.use_player_settings`.
|
18
|
+
*/
|
19
|
+
readonly sound?: defines.print_sound
|
20
|
+
/**
|
21
|
+
* If true and a message with the same text is still visible in the console, it will do nothing. Defaults to `true`.
|
22
|
+
*/
|
23
|
+
readonly skip_if_redundant?: boolean
|
24
|
+
}
|
25
|
+
export interface RadiusVisualisationSpecification {
|
26
|
+
readonly distance: double
|
27
|
+
readonly offset: Vector
|
28
|
+
readonly draw_in_cursor: boolean
|
29
|
+
readonly draw_on_selection: boolean
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* ## Union members
|
33
|
+
* - `"west-to-east"`
|
34
|
+
* - `"north-to-south"`
|
35
|
+
* - `"east-to-west"`
|
36
|
+
* - `"south-to-north"`
|
37
|
+
* - `"west-to-north"`
|
38
|
+
* - `"north-to-east"`
|
39
|
+
* - `"east-to-south"`
|
40
|
+
* - `"south-to-west"`
|
41
|
+
* - `"west-to-south"`
|
42
|
+
* - `"north-to-west"`
|
43
|
+
* - `"east-to-north"`
|
44
|
+
* - `"south-to-east"`
|
45
|
+
* - `"west-to-none"`
|
46
|
+
* - `"none-to-east"`
|
47
|
+
* - `"east-to-none"`
|
48
|
+
* - `"none-to-west"`
|
49
|
+
* - `"north-to-none"`
|
50
|
+
* - `"none-to-south"`
|
51
|
+
* - `"south-to-none"`
|
52
|
+
* - `"none-to-north"`
|
53
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#CliffOrientation Online documentation}
|
54
|
+
*/
|
55
|
+
export type CliffOrientation =
|
56
|
+
| "west-to-east"
|
57
|
+
| "north-to-south"
|
58
|
+
| "east-to-west"
|
59
|
+
| "south-to-north"
|
60
|
+
| "west-to-north"
|
61
|
+
| "north-to-east"
|
62
|
+
| "east-to-south"
|
63
|
+
| "south-to-west"
|
64
|
+
| "west-to-south"
|
65
|
+
| "north-to-west"
|
66
|
+
| "east-to-north"
|
67
|
+
| "south-to-east"
|
68
|
+
| "west-to-none"
|
69
|
+
| "none-to-east"
|
70
|
+
| "east-to-none"
|
71
|
+
| "none-to-west"
|
72
|
+
| "north-to-none"
|
73
|
+
| "none-to-south"
|
74
|
+
| "south-to-none"
|
75
|
+
| "none-to-north"
|
11
76
|
/**
|
12
77
|
* 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.
|
13
78
|
*
|
@@ -30,7 +95,7 @@ declare module "factorio:runtime" {
|
|
30
95
|
* game.print({"", {"item-name.iron-plate"}, ": ", 60})
|
31
96
|
* @example As an example of a localised string with fallback, consider this:
|
32
97
|
* {"?", {"", {"entity-description.furnace"}, "\n"}, {"item-description.furnace"}, "optional fallback"}
|
33
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
98
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LocalisedString Online documentation}
|
34
99
|
*/
|
35
100
|
export type LocalisedString = string | number | boolean | LuaObject | nil | [string, ...LocalisedString[]]
|
36
101
|
export interface DisplayResolution {
|
@@ -49,7 +114,7 @@ declare module "factorio:runtime" {
|
|
49
114
|
* The smooth orientation. It is a {@link float} in the range `[0, 1)` that covers a full circle, starting at the top and going clockwise. This means a value of `0` indicates "north", a value of `0.5` indicates "south".
|
50
115
|
*
|
51
116
|
* For example then, a value of `0.625` would indicate "south-west", and a value of `0.875` would indicate "north-west".
|
52
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
117
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#RealOrientation Online documentation}
|
53
118
|
*/
|
54
119
|
export type RealOrientation = float
|
55
120
|
/**
|
@@ -62,7 +127,7 @@ declare module "factorio:runtime" {
|
|
62
127
|
* {y = 2.25, x = 5.125}
|
63
128
|
* @example Shorthand:
|
64
129
|
* {1.625, 2.375}
|
65
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
130
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#MapPosition Online documentation}
|
66
131
|
*/
|
67
132
|
export interface MapPosition {
|
68
133
|
readonly x: double
|
@@ -71,13 +136,13 @@ declare module "factorio:runtime" {
|
|
71
136
|
/**
|
72
137
|
* Array form of {@link MapPosition}.
|
73
138
|
* @see MapPosition
|
74
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
139
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#MapPosition Online documentation}
|
75
140
|
*/
|
76
141
|
export type MapPositionArray = readonly [x: double, y: double]
|
77
142
|
/**
|
78
143
|
* 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.
|
79
144
|
* @see ChunkPositionArray
|
80
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
145
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ChunkPosition Online documentation}
|
81
146
|
*/
|
82
147
|
export interface ChunkPosition {
|
83
148
|
readonly x: int
|
@@ -86,13 +151,13 @@ declare module "factorio:runtime" {
|
|
86
151
|
/**
|
87
152
|
* Array form of {@link ChunkPosition}.
|
88
153
|
* @see ChunkPosition
|
89
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
154
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ChunkPosition Online documentation}
|
90
155
|
*/
|
91
156
|
export type ChunkPositionArray = readonly [x: int, y: int]
|
92
157
|
/**
|
93
158
|
* 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.
|
94
159
|
* @see TilePositionArray
|
95
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
160
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#TilePosition Online documentation}
|
96
161
|
*/
|
97
162
|
export interface TilePosition {
|
98
163
|
readonly x: int
|
@@ -101,7 +166,7 @@ declare module "factorio:runtime" {
|
|
101
166
|
/**
|
102
167
|
* Array form of {@link TilePosition}.
|
103
168
|
* @see TilePosition
|
104
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
169
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#TilePosition Online documentation}
|
105
170
|
*/
|
106
171
|
export type TilePositionArray = readonly [x: int, y: int]
|
107
172
|
/**
|
@@ -112,7 +177,7 @@ declare module "factorio:runtime" {
|
|
112
177
|
* {y = 2, x = 5}
|
113
178
|
* @example Shorthand:
|
114
179
|
* {1, 2}
|
115
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
180
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#EquipmentPosition Online documentation}
|
116
181
|
*/
|
117
182
|
export interface EquipmentPosition {
|
118
183
|
readonly x: int
|
@@ -121,13 +186,13 @@ declare module "factorio:runtime" {
|
|
121
186
|
/**
|
122
187
|
* Array form of {@link EquipmentPosition}.
|
123
188
|
* @see EquipmentPosition
|
124
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
189
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#EquipmentPosition Online documentation}
|
125
190
|
*/
|
126
191
|
export type EquipmentPositionArray = readonly [x: int, y: int]
|
127
192
|
/**
|
128
193
|
* 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.
|
129
194
|
* @see GuiLocationArray
|
130
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
195
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GuiLocation Online documentation}
|
131
196
|
*/
|
132
197
|
export interface GuiLocation {
|
133
198
|
readonly x: int
|
@@ -136,12 +201,12 @@ declare module "factorio:runtime" {
|
|
136
201
|
/**
|
137
202
|
* Array form of {@link GuiLocation}.
|
138
203
|
* @see GuiLocation
|
139
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
204
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GuiLocation Online documentation}
|
140
205
|
*/
|
141
206
|
export type GuiLocationArray = readonly [x: int, y: int]
|
142
207
|
/**
|
143
208
|
* A {@link ChunkPosition} with an added bounding box for the area of the chunk.
|
144
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
209
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ChunkPositionAndArea Online documentation}
|
145
210
|
*/
|
146
211
|
export interface ChunkPositionAndArea {
|
147
212
|
readonly x: int
|
@@ -150,7 +215,7 @@ declare module "factorio:runtime" {
|
|
150
215
|
}
|
151
216
|
/**
|
152
217
|
* A table used to define a manual shape for a piece of equipment.
|
153
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
218
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#EquipmentPoint Online documentation}
|
154
219
|
*/
|
155
220
|
export interface EquipmentPoint {
|
156
221
|
readonly x: uint
|
@@ -186,12 +251,12 @@ declare module "factorio:runtime" {
|
|
186
251
|
* Note that the API returns tags as a simple table, meaning any modifications to it will not propagate back to the game. Thus, to modify a set of tags, the whole table needs to be written back to the respective property.
|
187
252
|
* @example
|
188
253
|
* {a = 1, b = true, c = "three", d = {e = "f"}}
|
189
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
254
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#Tags Online documentation}
|
190
255
|
*/
|
191
256
|
export type Tags = Record<string, AnyBasic>
|
192
257
|
/**
|
193
258
|
* @remarks The vectors for all 5 position attributes are a table with `x` and `y` keys instead of an array.
|
194
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
259
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#SmokeSource Online documentation}
|
195
260
|
*/
|
196
261
|
export interface SmokeSource {
|
197
262
|
readonly name: string
|
@@ -218,7 +283,7 @@ declare module "factorio:runtime" {
|
|
218
283
|
* A vector is a two-element array containing the `x` and `y` components. In some specific cases, the vector is a table with `x` and `y` keys instead, which the documentation will point out.
|
219
284
|
* @example
|
220
285
|
* right = {1.0, 0.0}
|
221
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
286
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#Vector Online documentation}
|
222
287
|
*/
|
223
288
|
export type Vector = MapPositionArray
|
224
289
|
/**
|
@@ -228,7 +293,7 @@ declare module "factorio:runtime" {
|
|
228
293
|
* {left_top = {x = -2, y = -3}, right_bottom = {x = 5, y = 8}}
|
229
294
|
* @example Shorthand:
|
230
295
|
* {{-2, -3}, {5, 8}}
|
231
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
296
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#BoundingBox Online documentation}
|
232
297
|
*/
|
233
298
|
export interface BoundingBox {
|
234
299
|
readonly left_top: MapPosition
|
@@ -246,7 +311,7 @@ declare module "factorio:runtime" {
|
|
246
311
|
/**
|
247
312
|
* Array form of {@link BoundingBox}.
|
248
313
|
* @see BoundingBox
|
249
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
314
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#BoundingBox Online documentation}
|
250
315
|
*/
|
251
316
|
export type BoundingBoxArray = readonly [
|
252
317
|
left_top: MapPosition | MapPositionArray,
|
@@ -256,7 +321,7 @@ declare module "factorio:runtime" {
|
|
256
321
|
/**
|
257
322
|
* An area defined using the map editor.
|
258
323
|
* @see ScriptAreaWrite
|
259
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
324
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ScriptArea Online documentation}
|
260
325
|
*/
|
261
326
|
export interface ScriptArea {
|
262
327
|
readonly area: BoundingBox
|
@@ -266,7 +331,7 @@ declare module "factorio:runtime" {
|
|
266
331
|
}
|
267
332
|
/**
|
268
333
|
* Write form of {@link ScriptArea}, where table-or-array concepts are allowed to take an array form.
|
269
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
334
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ScriptArea Online documentation}
|
270
335
|
*/
|
271
336
|
export interface ScriptAreaWrite {
|
272
337
|
readonly area: BoundingBoxWrite | BoundingBoxArray
|
@@ -277,7 +342,7 @@ declare module "factorio:runtime" {
|
|
277
342
|
/**
|
278
343
|
* A position defined using the map editor.
|
279
344
|
* @see ScriptPositionWrite
|
280
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
345
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ScriptPosition Online documentation}
|
281
346
|
*/
|
282
347
|
export interface ScriptPosition {
|
283
348
|
readonly position: MapPosition
|
@@ -287,7 +352,7 @@ declare module "factorio:runtime" {
|
|
287
352
|
}
|
288
353
|
/**
|
289
354
|
* Write form of {@link ScriptPosition}, where table-or-array concepts are allowed to take an array form.
|
290
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
355
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ScriptPosition Online documentation}
|
291
356
|
*/
|
292
357
|
export interface ScriptPositionWrite {
|
293
358
|
readonly position: MapPosition | MapPositionArray
|
@@ -305,7 +370,7 @@ declare module "factorio:runtime" {
|
|
305
370
|
* red2 = {r = 0.5, a = 0.5} -- Same color as red1
|
306
371
|
* black = {} -- All channels omitted: black
|
307
372
|
* red1_short = {0.5, 0, 0, 0.5} -- Same color as red1 in short-hand notation
|
308
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
373
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#Color Online documentation}
|
309
374
|
*/
|
310
375
|
export interface Color {
|
311
376
|
readonly r?: float
|
@@ -316,13 +381,13 @@ declare module "factorio:runtime" {
|
|
316
381
|
/**
|
317
382
|
* Array form of {@link Color}.
|
318
383
|
* @see Color
|
319
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
384
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#Color Online documentation}
|
320
385
|
*/
|
321
386
|
export type ColorArray = readonly [r?: float, g?: float, b?: float, a?: float]
|
322
387
|
/**
|
323
388
|
* 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].
|
324
389
|
* @see ColorModifierArray
|
325
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
390
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ColorModifier Online documentation}
|
326
391
|
*/
|
327
392
|
export interface ColorModifier {
|
328
393
|
readonly r?: float
|
@@ -333,7 +398,7 @@ declare module "factorio:runtime" {
|
|
333
398
|
/**
|
334
399
|
* Array form of {@link ColorModifier}.
|
335
400
|
* @see ColorModifier
|
336
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
401
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ColorModifier Online documentation}
|
337
402
|
*/
|
338
403
|
export type ColorModifierArray = readonly [r?: float, g?: float, b?: float, a?: float]
|
339
404
|
export interface CraftingQueueItem {
|
@@ -373,7 +438,7 @@ declare module "factorio:runtime" {
|
|
373
438
|
}
|
374
439
|
/**
|
375
440
|
* One vertex of a ScriptRenderPolygon.
|
376
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
441
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ScriptRenderVertexTarget Online documentation}
|
377
442
|
*/
|
378
443
|
export interface ScriptRenderVertexTarget {
|
379
444
|
readonly target: (MapPosition | MapPositionArray) | LuaEntity
|
@@ -439,7 +504,7 @@ declare module "factorio:runtime" {
|
|
439
504
|
}
|
440
505
|
/**
|
441
506
|
* @remarks Either `icon`, `text`, or both must be provided.
|
442
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
507
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ChartTagSpec Online documentation}
|
443
508
|
*/
|
444
509
|
export interface ChartTagSpec {
|
445
510
|
readonly position: MapPosition | MapPositionArray
|
@@ -449,88 +514,88 @@ declare module "factorio:runtime" {
|
|
449
514
|
}
|
450
515
|
/**
|
451
516
|
* 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.
|
452
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
517
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GameViewSettings Online documentation}
|
453
518
|
*/
|
454
519
|
export interface GameViewSettings {
|
455
520
|
/**
|
456
521
|
* Show the controller GUI elements. This includes the toolbar, the selected tool slot, the armour slot, and the gun and ammunition slots.
|
457
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
522
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GameViewSettings.show_controller_gui Online documentation}
|
458
523
|
*/
|
459
524
|
show_controller_gui: boolean
|
460
525
|
/**
|
461
526
|
* Show the chart in the upper right-hand corner of the screen.
|
462
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
527
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GameViewSettings.show_minimap Online documentation}
|
463
528
|
*/
|
464
529
|
show_minimap: boolean
|
465
530
|
/**
|
466
531
|
* Show research progress and name in the upper right-hand corner of the screen.
|
467
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
532
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GameViewSettings.show_research_info Online documentation}
|
468
533
|
*/
|
469
534
|
show_research_info: boolean
|
470
535
|
/**
|
471
536
|
* Show overlay icons on entities. Also known as "alt-mode".
|
472
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
537
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GameViewSettings.show_entity_info Online documentation}
|
473
538
|
*/
|
474
539
|
show_entity_info: boolean
|
475
540
|
/**
|
476
541
|
* Show the flashing alert icons next to the player's toolbar.
|
477
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
542
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GameViewSettings.show_alert_gui Online documentation}
|
478
543
|
*/
|
479
544
|
show_alert_gui: boolean
|
480
545
|
/**
|
481
546
|
* When `true` (the default), mousing over an entity will select it. Otherwise, moving the mouse won't update entity selection.
|
482
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
547
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GameViewSettings.update_entity_selection Online documentation}
|
483
548
|
*/
|
484
549
|
update_entity_selection: boolean
|
485
550
|
/**
|
486
551
|
* When `true` (`false` is default), the rails will always show the rail block visualisation.
|
487
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
552
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GameViewSettings.show_rail_block_visualisation Online documentation}
|
488
553
|
*/
|
489
554
|
show_rail_block_visualisation: boolean
|
490
555
|
/**
|
491
556
|
* Shows or hides the buttons row.
|
492
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
557
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GameViewSettings.show_side_menu Online documentation}
|
493
558
|
*/
|
494
559
|
show_side_menu: boolean
|
495
560
|
/**
|
496
561
|
* Shows or hides the view options when map is opened.
|
497
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
562
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GameViewSettings.show_map_view_options Online documentation}
|
498
563
|
*/
|
499
564
|
show_map_view_options: boolean
|
500
565
|
/**
|
501
566
|
* Shows or hides the tooltip that is displayed when selecting an entity.
|
502
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
567
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GameViewSettings.show_entity_tooltip Online documentation}
|
503
568
|
*/
|
504
569
|
show_entity_tooltip: boolean
|
505
570
|
/**
|
506
571
|
* Shows or hides quickbar of shortcuts.
|
507
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
572
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GameViewSettings.show_quickbar Online documentation}
|
508
573
|
*/
|
509
574
|
show_quickbar: boolean
|
510
575
|
/**
|
511
576
|
* Shows or hides the shortcut bar.
|
512
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
577
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GameViewSettings.show_shortcut_bar Online documentation}
|
513
578
|
*/
|
514
579
|
show_shortcut_bar: boolean
|
515
580
|
/**
|
516
581
|
* Shows or hides the crafting queue.
|
517
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
582
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GameViewSettings.show_crafting_queue Online documentation}
|
518
583
|
*/
|
519
584
|
show_crafting_queue: boolean
|
520
585
|
/**
|
521
586
|
* Shows or hides the tool window with the weapons and armor.
|
522
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
587
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GameViewSettings.show_tool_bar Online documentation}
|
523
588
|
*/
|
524
589
|
show_tool_bar: boolean
|
525
590
|
/**
|
526
591
|
* Shows or hides the mouse and keyboard/controller button hints in the bottom left corner if they are enabled in the interface settings.
|
527
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
592
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GameViewSettings.show_hotkey_suggestions Online documentation}
|
528
593
|
*/
|
529
594
|
show_hotkey_suggestions: boolean
|
530
595
|
}
|
531
596
|
/**
|
532
597
|
* What is shown in the map view. If a field is not given, that setting will not be changed.
|
533
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
598
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#MapViewSettings Online documentation}
|
534
599
|
*/
|
535
600
|
export interface MapViewSettings {
|
536
601
|
readonly "show-logistic-network"?: boolean
|
@@ -544,7 +609,7 @@ declare module "factorio:runtime" {
|
|
544
609
|
}
|
545
610
|
/**
|
546
611
|
* These values are for the time frame of one second (60 ticks).
|
547
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
612
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#PollutionMapSettings Online documentation}
|
548
613
|
*/
|
549
614
|
export interface PollutionMapSettings {
|
550
615
|
/**
|
@@ -598,7 +663,7 @@ declare module "factorio:runtime" {
|
|
598
663
|
}
|
599
664
|
/**
|
600
665
|
* These values represent a percentual increase in evolution. This means a value of `0.1` would increase evolution by 10%.
|
601
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
666
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#EnemyEvolutionMapSettings Online documentation}
|
602
667
|
*/
|
603
668
|
export interface EnemyEvolutionMapSettings {
|
604
669
|
/**
|
@@ -638,7 +703,7 @@ declare module "factorio:runtime" {
|
|
638
703
|
*
|
639
704
|
* score(chunk) = 1 / (1 + player + base)
|
640
705
|
* ```
|
641
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
706
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#EnemyExpansionMapSettings Online documentation}
|
642
707
|
*/
|
643
708
|
export interface EnemyExpansionMapSettings {
|
644
709
|
/**
|
@@ -899,7 +964,7 @@ declare module "factorio:runtime" {
|
|
899
964
|
* Various game-related settings. Updating any of the attributes will immediately take effect in the game engine.
|
900
965
|
* @example Increase the number of short paths the pathfinder can cache.
|
901
966
|
* game.map_settings.path_finder.short_cache_size = 15
|
902
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
967
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#MapSettings Online documentation}
|
903
968
|
*/
|
904
969
|
export interface MapSettings {
|
905
970
|
pollution: PollutionMapSettings
|
@@ -910,31 +975,31 @@ declare module "factorio:runtime" {
|
|
910
975
|
path_finder: PathFinderMapSettings
|
911
976
|
/**
|
912
977
|
* If a behavior fails this many times, the enemy (or enemy group) is destroyed. This solves biters getting stuck within their own base.
|
913
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
978
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#MapSettings.max_failed_behavior_count Online documentation}
|
914
979
|
*/
|
915
980
|
max_failed_behavior_count: uint
|
916
981
|
}
|
917
982
|
/**
|
918
983
|
* Technology and recipe difficulty settings. Updating any of the attributes will immediately take effect in the game engine.
|
919
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
984
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#DifficultySettings Online documentation}
|
920
985
|
*/
|
921
986
|
export interface DifficultySettings {
|
922
987
|
recipe_difficulty: defines.difficulty_settings.recipe_difficulty
|
923
988
|
technology_difficulty: defines.difficulty_settings.technology_difficulty
|
924
989
|
/**
|
925
990
|
* A value in range [0.001, 1000].
|
926
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
991
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#DifficultySettings.technology_price_multiplier Online documentation}
|
927
992
|
*/
|
928
993
|
technology_price_multiplier: double
|
929
994
|
/**
|
930
995
|
* Either `"after-victory"`, `"always"` or `"never"`. Changing this to `"always"` or `"after-victory"` does not automatically unlock the research queue. See {@link LuaForce} for that.
|
931
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
996
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#DifficultySettings.research_queue_setting Online documentation}
|
932
997
|
*/
|
933
998
|
research_queue_setting: "after-victory" | "always" | "never"
|
934
999
|
}
|
935
1000
|
/**
|
936
1001
|
* A standard table containing all {@link MapSettings} attributes plus an additional table that contains all {@link DifficultySettings} properties.
|
937
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1002
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#MapAndDifficultySettings Online documentation}
|
938
1003
|
*/
|
939
1004
|
export interface MapAndDifficultySettings {
|
940
1005
|
readonly pollution: PollutionMapSettings
|
@@ -963,7 +1028,7 @@ declare module "factorio:runtime" {
|
|
963
1028
|
}
|
964
1029
|
/**
|
965
1030
|
* The data that can be extracted from a map exchange string, as a plain table.
|
966
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1031
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#MapExchangeStringData Online documentation}
|
967
1032
|
*/
|
968
1033
|
export interface MapExchangeStringData {
|
969
1034
|
readonly map_settings: MapAndDifficultySettings
|
@@ -982,7 +1047,7 @@ declare module "factorio:runtime" {
|
|
982
1047
|
/**
|
983
1048
|
* The representation of an entity inside of a blueprint. It has at least these fields, but can contain additional ones depending on the kind of entity.
|
984
1049
|
* @see BlueprintEntityWrite
|
985
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1050
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#BlueprintEntity Online documentation}
|
986
1051
|
*/
|
987
1052
|
export interface BlueprintEntity {
|
988
1053
|
/**
|
@@ -1161,7 +1226,7 @@ declare module "factorio:runtime" {
|
|
1161
1226
|
}
|
1162
1227
|
/**
|
1163
1228
|
* Write form of {@link BlueprintEntity}, where table-or-array concepts are allowed to take an array form.
|
1164
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1229
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#BlueprintEntity Online documentation}
|
1165
1230
|
*/
|
1166
1231
|
export interface BlueprintEntityWrite {
|
1167
1232
|
/**
|
@@ -1249,7 +1314,7 @@ declare module "factorio:runtime" {
|
|
1249
1314
|
}
|
1250
1315
|
/**
|
1251
1316
|
* @see TileWrite
|
1252
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1317
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#Tile Online documentation}
|
1253
1318
|
*/
|
1254
1319
|
export interface Tile {
|
1255
1320
|
/**
|
@@ -1263,7 +1328,7 @@ declare module "factorio:runtime" {
|
|
1263
1328
|
}
|
1264
1329
|
/**
|
1265
1330
|
* Write form of {@link Tile}, where table-or-array concepts are allowed to take an array form.
|
1266
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1331
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#Tile Online documentation}
|
1267
1332
|
*/
|
1268
1333
|
export interface TileWrite {
|
1269
1334
|
/**
|
@@ -1335,7 +1400,7 @@ declare module "factorio:runtime" {
|
|
1335
1400
|
*
|
1336
1401
|
* Other attributes may be specified depending on `type`:
|
1337
1402
|
* - `"fluid"`: {@link FluidIngredient}
|
1338
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1403
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#Ingredient Online documentation}
|
1339
1404
|
*/
|
1340
1405
|
export type Ingredient = FluidIngredient | OtherIngredient
|
1341
1406
|
/**
|
@@ -1400,7 +1465,7 @@ declare module "factorio:runtime" {
|
|
1400
1465
|
* {type="fluid", name="petroleum-gas", amount=5.5}}
|
1401
1466
|
* @example What a custom recipe would look like that had a probability of 0.5 to return a minimum amount of 1 and a maximum amount of 5:
|
1402
1467
|
* {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
|
1403
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1468
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#Product Online documentation}
|
1404
1469
|
*/
|
1405
1470
|
export type Product = FluidProduct | OtherProduct
|
1406
1471
|
export interface Loot {
|
@@ -1602,7 +1667,7 @@ declare module "factorio:runtime" {
|
|
1602
1667
|
* - `"unlock-recipe"`: {@link UnlockRecipeTechnologyModifier}
|
1603
1668
|
* - `"nothing"`: {@link NothingTechnologyModifier}
|
1604
1669
|
* - Other types: {@link OtherTechnologyModifier}
|
1605
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1670
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#TechnologyModifier Online documentation}
|
1606
1671
|
*/
|
1607
1672
|
export type TechnologyModifier =
|
1608
1673
|
| GunSpeedTechnologyModifier
|
@@ -1614,7 +1679,7 @@ declare module "factorio:runtime" {
|
|
1614
1679
|
| OtherTechnologyModifier
|
1615
1680
|
/**
|
1616
1681
|
* A single offer on a market entity.
|
1617
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1682
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#Offer Online documentation}
|
1618
1683
|
*/
|
1619
1684
|
export interface Offer {
|
1620
1685
|
/**
|
@@ -1628,7 +1693,7 @@ declare module "factorio:runtime" {
|
|
1628
1693
|
}
|
1629
1694
|
/**
|
1630
1695
|
* Specifies how probability and richness are calculated when placing something on the map. Can be specified either using `probability_expression` and `richness_expression` or by using all the other fields.
|
1631
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1696
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#AutoplaceSpecification Online documentation}
|
1632
1697
|
*/
|
1633
1698
|
export interface AutoplaceSpecification {
|
1634
1699
|
readonly probability_expression: NoiseExpression
|
@@ -1654,7 +1719,7 @@ declare module "factorio:runtime" {
|
|
1654
1719
|
}
|
1655
1720
|
/**
|
1656
1721
|
* A fragment of a functional program used to generate coherent noise, probably for purposes related to terrain generation. These can only be meaningfully written/modified during the data load phase. More detailed information is found on the {@link import("factorio:prototype").NamedNoiseExpression prototype docs}.
|
1657
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1722
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#NoiseExpression Online documentation}
|
1658
1723
|
*/
|
1659
1724
|
export interface NoiseExpression {
|
1660
1725
|
/**
|
@@ -1746,7 +1811,7 @@ declare module "factorio:runtime" {
|
|
1746
1811
|
* - `"very-big"`: equivalent to `2`.
|
1747
1812
|
* - `"very-good"`: equivalent to `2`.
|
1748
1813
|
* @remarks The map generation algorithm officially supports the range of values the in-game map generation screen shows (specifically `0` and values from `1/6` to `6`). Values outside this range are not guaranteed to work as expected.
|
1749
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1814
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#MapGenSize Online documentation}
|
1750
1815
|
*/
|
1751
1816
|
export type MapGenSize =
|
1752
1817
|
| float
|
@@ -1768,7 +1833,7 @@ declare module "factorio:runtime" {
|
|
1768
1833
|
| "very-good"
|
1769
1834
|
/**
|
1770
1835
|
* @see AutoplaceControlWrite
|
1771
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1836
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#AutoplaceControl Online documentation}
|
1772
1837
|
*/
|
1773
1838
|
export interface AutoplaceControl {
|
1774
1839
|
/**
|
@@ -1786,7 +1851,7 @@ declare module "factorio:runtime" {
|
|
1786
1851
|
}
|
1787
1852
|
/**
|
1788
1853
|
* Write form of {@link AutoplaceControl}, where table-or-array concepts are allowed to take an array form.
|
1789
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1854
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#AutoplaceControl Online documentation}
|
1790
1855
|
*/
|
1791
1856
|
export interface AutoplaceControlWrite {
|
1792
1857
|
/**
|
@@ -1804,7 +1869,7 @@ declare module "factorio:runtime" {
|
|
1804
1869
|
}
|
1805
1870
|
/**
|
1806
1871
|
* @see AutoplaceSettingsWrite
|
1807
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1872
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#AutoplaceSettings Online documentation}
|
1808
1873
|
*/
|
1809
1874
|
export interface AutoplaceSettings {
|
1810
1875
|
/**
|
@@ -1815,7 +1880,7 @@ declare module "factorio:runtime" {
|
|
1815
1880
|
}
|
1816
1881
|
/**
|
1817
1882
|
* Write form of {@link AutoplaceSettings}, where table-or-array concepts are allowed to take an array form.
|
1818
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1883
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#AutoplaceSettings Online documentation}
|
1819
1884
|
*/
|
1820
1885
|
export interface AutoplaceSettingsWrite {
|
1821
1886
|
/**
|
@@ -1826,7 +1891,7 @@ declare module "factorio:runtime" {
|
|
1826
1891
|
}
|
1827
1892
|
/**
|
1828
1893
|
* @see CliffPlacementSettingsWrite
|
1829
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1894
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#CliffPlacementSettings Online documentation}
|
1830
1895
|
*/
|
1831
1896
|
export interface CliffPlacementSettings {
|
1832
1897
|
/**
|
@@ -1848,7 +1913,7 @@ declare module "factorio:runtime" {
|
|
1848
1913
|
}
|
1849
1914
|
/**
|
1850
1915
|
* Write form of {@link CliffPlacementSettings}, where table-or-array concepts are allowed to take an array form.
|
1851
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1916
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#CliffPlacementSettings Online documentation}
|
1852
1917
|
*/
|
1853
1918
|
export interface CliffPlacementSettingsWrite {
|
1854
1919
|
/**
|
@@ -1881,7 +1946,7 @@ declare module "factorio:runtime" {
|
|
1881
1946
|
* local mgs = surface.map_gen_settings
|
1882
1947
|
* mgs.property_expression_names["tile:deepwater:probability"] = -1000
|
1883
1948
|
* surface.map_gen_settings = mgs
|
1884
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1949
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#MapGenSettings Online documentation}
|
1885
1950
|
*/
|
1886
1951
|
export interface MapGenSettings {
|
1887
1952
|
/**
|
@@ -1951,7 +2016,7 @@ declare module "factorio:runtime" {
|
|
1951
2016
|
}
|
1952
2017
|
/**
|
1953
2018
|
* Write form of {@link MapGenSettings}, where table-or-array concepts are allowed to take an array form.
|
1954
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2019
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#MapGenSettings Online documentation}
|
1955
2020
|
*/
|
1956
2021
|
export interface MapGenSettingsWrite {
|
1957
2022
|
/**
|
@@ -2049,7 +2114,7 @@ declare module "factorio:runtime" {
|
|
2049
2114
|
}
|
2050
2115
|
/**
|
2051
2116
|
* An actual signal transmitted by the network.
|
2052
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2117
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#Signal Online documentation}
|
2053
2118
|
*/
|
2054
2119
|
export interface Signal {
|
2055
2120
|
/**
|
@@ -2073,7 +2138,7 @@ declare module "factorio:runtime" {
|
|
2073
2138
|
}
|
2074
2139
|
/**
|
2075
2140
|
* A single filter used by an infinity-filters instance.
|
2076
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2141
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#InfinityInventoryFilter Online documentation}
|
2077
2142
|
*/
|
2078
2143
|
export interface InfinityInventoryFilter {
|
2079
2144
|
/**
|
@@ -2095,7 +2160,7 @@ declare module "factorio:runtime" {
|
|
2095
2160
|
}
|
2096
2161
|
/**
|
2097
2162
|
* A single filter used by an infinity-pipe type entity.
|
2098
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2163
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#InfinityPipeFilter Online documentation}
|
2099
2164
|
*/
|
2100
2165
|
export interface InfinityPipeFilter {
|
2101
2166
|
/**
|
@@ -2149,7 +2214,7 @@ declare module "factorio:runtime" {
|
|
2149
2214
|
}
|
2150
2215
|
/**
|
2151
2216
|
* The settings used by a heat-interface type entity.
|
2152
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2217
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#HeatSetting Online documentation}
|
2153
2218
|
*/
|
2154
2219
|
export interface HeatSetting {
|
2155
2220
|
/**
|
@@ -2167,7 +2232,7 @@ declare module "factorio:runtime" {
|
|
2167
2232
|
}
|
2168
2233
|
/**
|
2169
2234
|
* A definition of a fluidbox connection point.
|
2170
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2235
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#FluidBoxConnection Online documentation}
|
2171
2236
|
*/
|
2172
2237
|
export interface FluidBoxConnection {
|
2173
2238
|
/**
|
@@ -2185,7 +2250,7 @@ declare module "factorio:runtime" {
|
|
2185
2250
|
}
|
2186
2251
|
/**
|
2187
2252
|
* A single pipe connection for a given fluidbox.
|
2188
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2253
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#PipeConnection Online documentation}
|
2189
2254
|
*/
|
2190
2255
|
export interface PipeConnection {
|
2191
2256
|
/**
|
@@ -2271,14 +2336,14 @@ declare module "factorio:runtime" {
|
|
2271
2336
|
* - `"≠"`: "not equal to"
|
2272
2337
|
* - `"!="`: "not equal to"
|
2273
2338
|
* @remarks While the API accepts both versions for `"less/greater than or equal to"` and `"not equal"`, it'll always return `"≥"`, `"≤"` or `"≠"` respectively when reading them back.
|
2274
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2339
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ComparatorString Online documentation}
|
2275
2340
|
*/
|
2276
2341
|
export type ComparatorString = "=" | ">" | "<" | "≥" | ">=" | "≤" | "<=" | "≠" | "!="
|
2277
2342
|
/** @see ComparatorString */
|
2278
2343
|
export type ComparatorStringRead = "=" | ">" | "<" | "≥" | "≤" | "≠"
|
2279
2344
|
/**
|
2280
2345
|
* @see DeciderCombinatorParametersWrite
|
2281
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2346
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#DeciderCombinatorParameters Online documentation}
|
2282
2347
|
*/
|
2283
2348
|
export interface DeciderCombinatorParameters {
|
2284
2349
|
/**
|
@@ -2308,7 +2373,7 @@ declare module "factorio:runtime" {
|
|
2308
2373
|
}
|
2309
2374
|
/**
|
2310
2375
|
* Write form of {@link DeciderCombinatorParameters}, where table-or-array concepts are allowed to take an array form.
|
2311
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2376
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#DeciderCombinatorParameters Online documentation}
|
2312
2377
|
*/
|
2313
2378
|
export interface DeciderCombinatorParametersWrite {
|
2314
2379
|
/**
|
@@ -2342,7 +2407,7 @@ declare module "factorio:runtime" {
|
|
2342
2407
|
}
|
2343
2408
|
/**
|
2344
2409
|
* @see CircuitConditionWrite
|
2345
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2410
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#CircuitCondition Online documentation}
|
2346
2411
|
*/
|
2347
2412
|
export interface CircuitCondition {
|
2348
2413
|
/**
|
@@ -2364,7 +2429,7 @@ declare module "factorio:runtime" {
|
|
2364
2429
|
}
|
2365
2430
|
/**
|
2366
2431
|
* Write form of {@link CircuitCondition}, where table-or-array concepts are allowed to take an array form.
|
2367
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2432
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#CircuitCondition Online documentation}
|
2368
2433
|
*/
|
2369
2434
|
export interface CircuitConditionWrite {
|
2370
2435
|
/**
|
@@ -2386,7 +2451,7 @@ declare module "factorio:runtime" {
|
|
2386
2451
|
}
|
2387
2452
|
/**
|
2388
2453
|
* @see CircuitConditionDefinitionWrite
|
2389
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2454
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#CircuitConditionDefinition Online documentation}
|
2390
2455
|
*/
|
2391
2456
|
export interface CircuitConditionDefinition {
|
2392
2457
|
readonly condition: CircuitCondition
|
@@ -2397,7 +2462,7 @@ declare module "factorio:runtime" {
|
|
2397
2462
|
}
|
2398
2463
|
/**
|
2399
2464
|
* Write form of {@link CircuitConditionDefinition}, where table-or-array concepts are allowed to take an array form.
|
2400
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2465
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#CircuitConditionDefinition Online documentation}
|
2401
2466
|
*/
|
2402
2467
|
export interface CircuitConditionDefinitionWrite {
|
2403
2468
|
readonly condition: CircuitConditionWrite
|
@@ -2713,7 +2778,7 @@ declare module "factorio:runtime" {
|
|
2713
2778
|
* - {@link defines.command.stop}: {@link StopCommand}
|
2714
2779
|
* - {@link defines.command.flee}: {@link FleeCommand}
|
2715
2780
|
* - {@link defines.command.build_base}: {@link BuildBaseCommand}
|
2716
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2781
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#Command Online documentation}
|
2717
2782
|
*/
|
2718
2783
|
export type Command =
|
2719
2784
|
| AttackCommand
|
@@ -2727,7 +2792,7 @@ declare module "factorio:runtime" {
|
|
2727
2792
|
| BuildBaseCommand
|
2728
2793
|
/**
|
2729
2794
|
* Write form of {@link Command}, where table-or-array concepts are allowed to take an array form.
|
2730
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2795
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#Command Online documentation}
|
2731
2796
|
*/
|
2732
2797
|
export type CommandWrite =
|
2733
2798
|
| AttackCommand
|
@@ -2823,7 +2888,7 @@ declare module "factorio:runtime" {
|
|
2823
2888
|
* {name="copper-plate", count=47}
|
2824
2889
|
* @example These are both full stacks of iron plates (for iron-plate, a full stack is 100 plates):
|
2825
2890
|
* "iron-plate"
|
2826
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2891
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#SimpleItemStack Online documentation}
|
2827
2892
|
*/
|
2828
2893
|
export type SimpleItemStack = string | ItemStackDefinition
|
2829
2894
|
/**
|
@@ -2833,7 +2898,7 @@ declare module "factorio:runtime" {
|
|
2833
2898
|
* - `string`: The fluid name.
|
2834
2899
|
* - {@link LuaFluidPrototype}: The fluid prototype.
|
2835
2900
|
* - {@link Fluid}: The fluid.
|
2836
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2901
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#FluidIdentification Online documentation}
|
2837
2902
|
*/
|
2838
2903
|
export type FluidIdentification = string | LuaFluidPrototype | Fluid
|
2839
2904
|
/**
|
@@ -2843,7 +2908,7 @@ declare module "factorio:runtime" {
|
|
2843
2908
|
* - ForceIndex: The force index.
|
2844
2909
|
* - `string`: The force name.
|
2845
2910
|
* - {@link LuaForce}: A reference to {@link LuaForce} may be passed directly.
|
2846
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2911
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ForceIdentification Online documentation}
|
2847
2912
|
*/
|
2848
2913
|
export type ForceIdentification = ForceIndex | string | LuaForce
|
2849
2914
|
/**
|
@@ -2853,7 +2918,7 @@ declare module "factorio:runtime" {
|
|
2853
2918
|
* - `string`: The technology name.
|
2854
2919
|
* - {@link LuaTechnology}: A reference to {@link LuaTechnology} may be passed directly.
|
2855
2920
|
* - {@link LuaTechnologyPrototype}: A reference to {@link LuaTechnologyPrototype} may be passed directly.
|
2856
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2921
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#TechnologyIdentification Online documentation}
|
2857
2922
|
*/
|
2858
2923
|
export type TechnologyIdentification = string | LuaTechnology | LuaTechnologyPrototype
|
2859
2924
|
/**
|
@@ -2863,7 +2928,7 @@ declare module "factorio:runtime" {
|
|
2863
2928
|
* - 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.
|
2864
2929
|
* - `string`: It will be the surface name. E.g. `"nauvis"`.
|
2865
2930
|
* - {@link LuaSurface}: A reference to {@link LuaSurface} may be passed directly.
|
2866
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2931
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#SurfaceIdentification Online documentation}
|
2867
2932
|
*/
|
2868
2933
|
export type SurfaceIdentification = SurfaceIndex | string | LuaSurface
|
2869
2934
|
/**
|
@@ -2873,7 +2938,7 @@ declare module "factorio:runtime" {
|
|
2873
2938
|
* - PlayerIndex: The player index.
|
2874
2939
|
* - `string`: The player name.
|
2875
2940
|
* - {@link LuaPlayer}: A reference to {@link LuaPlayer} may be passed directly.
|
2876
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2941
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#PlayerIdentification Online documentation}
|
2877
2942
|
*/
|
2878
2943
|
export type PlayerIdentification = PlayerIndex | string | LuaPlayer
|
2879
2944
|
/**
|
@@ -2882,7 +2947,7 @@ declare module "factorio:runtime" {
|
|
2882
2947
|
* ## Union members
|
2883
2948
|
* - {@link SimpleItemStack}
|
2884
2949
|
* - {@link LuaItemStack}
|
2885
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2950
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ItemStackIdentification Online documentation}
|
2886
2951
|
*/
|
2887
2952
|
export type ItemStackIdentification = SimpleItemStack | LuaItemStack
|
2888
2953
|
/**
|
@@ -2892,7 +2957,7 @@ declare module "factorio:runtime" {
|
|
2892
2957
|
* - {@link LuaEntity}: The entity.
|
2893
2958
|
* - {@link LuaEntityPrototype}: The entity prototype.
|
2894
2959
|
* - `string`: The prototype name.
|
2895
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2960
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#EntityPrototypeIdentification Online documentation}
|
2896
2961
|
*/
|
2897
2962
|
export type EntityPrototypeIdentification = LuaEntity | LuaEntityPrototype | string
|
2898
2963
|
/**
|
@@ -2902,12 +2967,12 @@ declare module "factorio:runtime" {
|
|
2902
2967
|
* - {@link LuaItemStack}: The item.
|
2903
2968
|
* - {@link LuaItemPrototype}: The item prototype.
|
2904
2969
|
* - `string`: The prototype name.
|
2905
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2970
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ItemPrototypeIdentification Online documentation}
|
2906
2971
|
*/
|
2907
2972
|
export type ItemPrototypeIdentification = LuaItemStack | LuaItemPrototype | string
|
2908
2973
|
/**
|
2909
2974
|
* @see WaitConditionWrite
|
2910
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2975
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#WaitCondition Online documentation}
|
2911
2976
|
*/
|
2912
2977
|
export interface WaitCondition {
|
2913
2978
|
/**
|
@@ -2939,7 +3004,7 @@ declare module "factorio:runtime" {
|
|
2939
3004
|
}
|
2940
3005
|
/**
|
2941
3006
|
* Write form of {@link WaitCondition}, where table-or-array concepts are allowed to take an array form.
|
2942
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3007
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#WaitCondition Online documentation}
|
2943
3008
|
*/
|
2944
3009
|
export interface WaitConditionWrite {
|
2945
3010
|
/**
|
@@ -2971,7 +3036,7 @@ declare module "factorio:runtime" {
|
|
2971
3036
|
}
|
2972
3037
|
/**
|
2973
3038
|
* @see TrainScheduleRecordWrite
|
2974
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3039
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#TrainScheduleRecord Online documentation}
|
2975
3040
|
*/
|
2976
3041
|
export interface TrainScheduleRecord {
|
2977
3042
|
/**
|
@@ -2994,7 +3059,7 @@ declare module "factorio:runtime" {
|
|
2994
3059
|
}
|
2995
3060
|
/**
|
2996
3061
|
* Write form of {@link TrainScheduleRecord}, where table-or-array concepts are allowed to take an array form.
|
2997
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3062
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#TrainScheduleRecord Online documentation}
|
2998
3063
|
*/
|
2999
3064
|
export interface TrainScheduleRecordWrite {
|
3000
3065
|
/**
|
@@ -3017,7 +3082,7 @@ declare module "factorio:runtime" {
|
|
3017
3082
|
}
|
3018
3083
|
/**
|
3019
3084
|
* @see TrainScheduleWrite
|
3020
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3085
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#TrainSchedule Online documentation}
|
3021
3086
|
*/
|
3022
3087
|
export interface TrainSchedule {
|
3023
3088
|
/**
|
@@ -3028,7 +3093,7 @@ declare module "factorio:runtime" {
|
|
3028
3093
|
}
|
3029
3094
|
/**
|
3030
3095
|
* Write form of {@link TrainSchedule}, where table-or-array concepts are allowed to take an array form.
|
3031
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3096
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#TrainSchedule Online documentation}
|
3032
3097
|
*/
|
3033
3098
|
export interface TrainScheduleWrite {
|
3034
3099
|
/**
|
@@ -3107,7 +3172,7 @@ declare module "factorio:runtime" {
|
|
3107
3172
|
* - `"position"`: {@link PositionGuiArrowSpecification}
|
3108
3173
|
* - `"crafting_queue"`: {@link CraftingQueueGuiArrowSpecification}
|
3109
3174
|
* - `"item_stack"`: {@link ItemStackGuiArrowSpecification}
|
3110
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3175
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GuiArrowSpecification Online documentation}
|
3111
3176
|
*/
|
3112
3177
|
export type GuiArrowSpecification =
|
3113
3178
|
| EntityGuiArrowSpecification
|
@@ -3182,7 +3247,7 @@ declare module "factorio:runtime" {
|
|
3182
3247
|
* - `"equipment"`
|
3183
3248
|
* - `"file"` - path to an image file located inside the current scenario. This file is not preloaded so it will be slower; for frequently used sprites, it is better to define sprite prototype and use it instead.
|
3184
3249
|
* - `"utility"` - sprite defined in the utility-sprites object, these are the pictures used by the game internally for the UI.
|
3185
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3250
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#SpritePath Online documentation}
|
3186
3251
|
*/
|
3187
3252
|
export type SpritePath =
|
3188
3253
|
| (string & {
|
@@ -3232,7 +3297,7 @@ declare module "factorio:runtime" {
|
|
3232
3297
|
* - `"entity-rotated"` - Uses {@link import("factorio:prototype").EntityPrototype#rotated_sound EntityPrototype::rotated_sound}
|
3233
3298
|
* - `"entity-open"` - Uses {@link import("factorio:prototype").EntityPrototype#open_sound Entity::open_sound}
|
3234
3299
|
* - `"entity-close"` - Uses {@link import("factorio:prototype").EntityPrototype#close_sound Entity::close_sound}
|
3235
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3300
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#SoundPath Online documentation}
|
3236
3301
|
*/
|
3237
3302
|
export type SoundPath =
|
3238
3303
|
| (string & {
|
@@ -3251,7 +3316,7 @@ declare module "factorio:runtime" {
|
|
3251
3316
|
* speed={bonus=-0.15},
|
3252
3317
|
* productivity={bonus=0.06},
|
3253
3318
|
* pollution={bonus=0.075}}
|
3254
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3319
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ModuleEffects Online documentation}
|
3255
3320
|
*/
|
3256
3321
|
export interface ModuleEffects {
|
3257
3322
|
readonly consumption?: ModuleEffectValue
|
@@ -3291,7 +3356,7 @@ declare module "factorio:runtime" {
|
|
3291
3356
|
* - `"not-upgradable"`: Prevents the entity from being selected by the upgrade planner.
|
3292
3357
|
* - `"not-in-kill-statistics"`: Prevents the entity from being shown in the kill statistics.
|
3293
3358
|
* - `"not-in-made-in"`: Prevents the entity from being shown in the "made in" list in recipe tooltips.
|
3294
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3359
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#EntityPrototypeFlags Online documentation}
|
3295
3360
|
*/
|
3296
3361
|
export interface EntityPrototypeFlags {
|
3297
3362
|
/**
|
@@ -3413,7 +3478,7 @@ declare module "factorio:runtime" {
|
|
3413
3478
|
* - `"mod-openable"`: Allows the item to be opened by the player, firing the `on_mod_item_opened` event. Only has an effect for selection tool items.
|
3414
3479
|
* - `"only-in-cursor"`: Makes it so the item is deleted when clearing the cursor, instead of being put into the player's inventory. The copy-paste tools use this by default, for example.
|
3415
3480
|
* - `"spawnable"`: Allows the item to be spawned by a quickbar shortcut or custom input.
|
3416
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3481
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ItemPrototypeFlags Online documentation}
|
3417
3482
|
*/
|
3418
3483
|
export interface ItemPrototypeFlags {
|
3419
3484
|
/**
|
@@ -3480,7 +3545,7 @@ declare module "factorio:runtime" {
|
|
3480
3545
|
* - `"rail-layer"`
|
3481
3546
|
* - `"transport-belt-layer"`
|
3482
3547
|
* - `"not-setup"`
|
3483
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3548
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#CollisionMaskLayer Online documentation}
|
3484
3549
|
*/
|
3485
3550
|
export type CollisionMaskLayer =
|
3486
3551
|
| "ground-tile"
|
@@ -3499,7 +3564,7 @@ declare module "factorio:runtime" {
|
|
3499
3564
|
| `layer-${bigint}`
|
3500
3565
|
/**
|
3501
3566
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
3502
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3567
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#CollisionMask Online documentation}
|
3503
3568
|
*/
|
3504
3569
|
export type CollisionMask = {
|
3505
3570
|
readonly [T in CollisionMaskLayer]?: true
|
@@ -3512,7 +3577,7 @@ declare module "factorio:runtime" {
|
|
3512
3577
|
* - `"not-colliding-with-itself"`: Any two entities that both have this option enabled on their prototype and have an identical collision mask layers list will not collide. Other collision mask options are not included in the identical layer list check. This does mean that two different prototypes with the same collision mask layers and this option enabled will not collide.
|
3513
3578
|
* - `"consider-tile-transitions"`: Uses the prototypes position rather than its collision box when doing collision checks with tile prototypes. Allows the prototype to overlap colliding tiles up until its center point. This is only respected for character movement and cars driven by players.
|
3514
3579
|
* - `"colliding-with-tiles-only"`: Any prototype with this collision option will only be checked for collision with other prototype's collision masks if they are a tile.
|
3515
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3580
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#CollisionMaskWithFlags Online documentation}
|
3516
3581
|
*/
|
3517
3582
|
export type CollisionMaskWithFlags = {
|
3518
3583
|
/**
|
@@ -3532,7 +3597,7 @@ declare module "factorio:runtime" {
|
|
3532
3597
|
}
|
3533
3598
|
/**
|
3534
3599
|
* A set of trigger target masks.
|
3535
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3600
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#TriggerTargetMask Online documentation}
|
3536
3601
|
*/
|
3537
3602
|
export type TriggerTargetMask = Record<string, boolean>
|
3538
3603
|
export interface TriggerEffectItem {
|
@@ -3721,7 +3786,7 @@ declare module "factorio:runtime" {
|
|
3721
3786
|
* Other attributes may be specified depending on `type`:
|
3722
3787
|
* - `"projectile"`: {@link ProjectileAttackParameters}
|
3723
3788
|
* - `"stream"`: {@link StreamAttackParameters}
|
3724
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3789
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#AttackParameters Online documentation}
|
3725
3790
|
*/
|
3726
3791
|
export type AttackParameters = ProjectileAttackParameters | StreamAttackParameters | OtherAttackParameters
|
3727
3792
|
export interface BaseCapsuleAction {
|
@@ -3784,7 +3849,7 @@ declare module "factorio:runtime" {
|
|
3784
3849
|
* - `"use-on-self"`: {@link UseOnSelfCapsuleAction}
|
3785
3850
|
* - `"artillery-remote"`: {@link ArtilleryRemoteCapsuleAction}
|
3786
3851
|
* - `"destroy-cliffs"`: {@link DestroyCliffsCapsuleAction}
|
3787
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3852
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#CapsuleAction Online documentation}
|
3788
3853
|
*/
|
3789
3854
|
export type CapsuleAction =
|
3790
3855
|
| ThrowCapsuleAction
|
@@ -3820,7 +3885,7 @@ declare module "factorio:runtime" {
|
|
3820
3885
|
* - `"avoid-rolling-stock"`: Selects entities that are not `rolling-stock`s.
|
3821
3886
|
* - `"entity-ghost"`: Selects entities that are `entity-ghost`s.
|
3822
3887
|
* - `"tile-ghost"`: Selects entities that are `tile-ghost`s.
|
3823
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3888
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#SelectionModeFlags Online documentation}
|
3824
3889
|
*/
|
3825
3890
|
export interface SelectionModeFlags {
|
3826
3891
|
/**
|
@@ -3945,12 +4010,12 @@ declare module "factorio:runtime" {
|
|
3945
4010
|
}
|
3946
4011
|
/**
|
3947
4012
|
* Any basic type (string, number, boolean) or table.
|
3948
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4013
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#AnyBasic Online documentation}
|
3949
4014
|
*/
|
3950
4015
|
export type AnyBasic = string | boolean | number | table
|
3951
4016
|
/**
|
3952
4017
|
* Any basic type (string, number, boolean), table, or LuaObject.
|
3953
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4018
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#Any Online documentation}
|
3954
4019
|
*/
|
3955
4020
|
export type Any = string | boolean | number | table | LuaObject
|
3956
4021
|
export interface ProgrammableSpeakerParameters {
|
@@ -3988,7 +4053,7 @@ declare module "factorio:runtime" {
|
|
3988
4053
|
* - `"top-right"`
|
3989
4054
|
* - `"right"`: The same as `"middle-right"`
|
3990
4055
|
* - `"bottom-right"`
|
3991
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4056
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#Alignment Online documentation}
|
3992
4057
|
*/
|
3993
4058
|
export type Alignment =
|
3994
4059
|
| "top-left"
|
@@ -4003,8 +4068,8 @@ declare module "factorio:runtime" {
|
|
4003
4068
|
| "right"
|
4004
4069
|
| "bottom-right"
|
4005
4070
|
/**
|
4006
|
-
* 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/1.1.
|
4007
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4071
|
+
* 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/1.1.94/events.html the list of Factorio events} for more information on these.
|
4072
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#EventData Online documentation}
|
4008
4073
|
*/
|
4009
4074
|
export interface EventData {
|
4010
4075
|
/**
|
@@ -4114,7 +4179,7 @@ declare module "factorio:runtime" {
|
|
4114
4179
|
* - `"button-7"`
|
4115
4180
|
* - `"button-8"`
|
4116
4181
|
* - `"button-9"`
|
4117
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4182
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#MouseButtonFlags Online documentation}
|
4118
4183
|
*/
|
4119
4184
|
export interface MouseButtonFlags {
|
4120
4185
|
readonly left?: true
|
@@ -4139,7 +4204,7 @@ declare module "factorio:runtime" {
|
|
4139
4204
|
* - `"train-visualization"`: White box.
|
4140
4205
|
* - `"logistics"`: Light blue box.
|
4141
4206
|
* - `"blueprint-snap-rectangle"`: Green box.
|
4142
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4207
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#CursorBoxRenderType Online documentation}
|
4143
4208
|
*/
|
4144
4209
|
export type CursorBoxRenderType =
|
4145
4210
|
| "entity"
|
@@ -4159,7 +4224,7 @@ declare module "factorio:runtime" {
|
|
4159
4224
|
* - `"not-friend"`: Forces which are not friends pass.
|
4160
4225
|
* - `"same"`: The same force pass.
|
4161
4226
|
* - `"not-same"`: The non-same forces pass.
|
4162
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4227
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ForceCondition Online documentation}
|
4163
4228
|
*/
|
4164
4229
|
export type ForceCondition = "all" | "enemy" | "ally" | "friend" | "not-friend" | "same" | "not-same"
|
4165
4230
|
/**
|
@@ -4210,7 +4275,7 @@ declare module "factorio:runtime" {
|
|
4210
4275
|
* - `"collision-selection-box"`: 189
|
4211
4276
|
* - `"arrow"`: 190
|
4212
4277
|
* - `"cursor"`: 210
|
4213
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4278
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#RenderLayer Online documentation}
|
4214
4279
|
*/
|
4215
4280
|
export type RenderLayer =
|
4216
4281
|
| `${bigint}`
|
@@ -4257,51 +4322,6 @@ declare module "factorio:runtime" {
|
|
4257
4322
|
| "collision-selection-box"
|
4258
4323
|
| "arrow"
|
4259
4324
|
| "cursor"
|
4260
|
-
/**
|
4261
|
-
* ## Union members
|
4262
|
-
* - `"west-to-east"`
|
4263
|
-
* - `"north-to-south"`
|
4264
|
-
* - `"east-to-west"`
|
4265
|
-
* - `"south-to-north"`
|
4266
|
-
* - `"west-to-north"`
|
4267
|
-
* - `"north-to-east"`
|
4268
|
-
* - `"east-to-south"`
|
4269
|
-
* - `"south-to-west"`
|
4270
|
-
* - `"west-to-south"`
|
4271
|
-
* - `"north-to-west"`
|
4272
|
-
* - `"east-to-north"`
|
4273
|
-
* - `"south-to-east"`
|
4274
|
-
* - `"west-to-none"`
|
4275
|
-
* - `"none-to-east"`
|
4276
|
-
* - `"east-to-none"`
|
4277
|
-
* - `"none-to-west"`
|
4278
|
-
* - `"north-to-none"`
|
4279
|
-
* - `"none-to-south"`
|
4280
|
-
* - `"south-to-none"`
|
4281
|
-
* - `"none-to-north"`
|
4282
|
-
* @see {@link https://lua-api.factorio.com/1.1.92/concepts.html#CliffOrientation Online documentation}
|
4283
|
-
*/
|
4284
|
-
export type CliffOrientation =
|
4285
|
-
| "west-to-east"
|
4286
|
-
| "north-to-south"
|
4287
|
-
| "east-to-west"
|
4288
|
-
| "south-to-north"
|
4289
|
-
| "west-to-north"
|
4290
|
-
| "north-to-east"
|
4291
|
-
| "east-to-south"
|
4292
|
-
| "south-to-west"
|
4293
|
-
| "west-to-south"
|
4294
|
-
| "north-to-west"
|
4295
|
-
| "east-to-north"
|
4296
|
-
| "south-to-east"
|
4297
|
-
| "west-to-none"
|
4298
|
-
| "none-to-east"
|
4299
|
-
| "east-to-none"
|
4300
|
-
| "none-to-west"
|
4301
|
-
| "north-to-none"
|
4302
|
-
| "none-to-south"
|
4303
|
-
| "south-to-none"
|
4304
|
-
| "none-to-north"
|
4305
4325
|
export interface ItemStackLocation {
|
4306
4326
|
readonly inventory: defines.inventory
|
4307
4327
|
readonly slot: uint
|
@@ -4321,7 +4341,7 @@ declare module "factorio:runtime" {
|
|
4321
4341
|
* - `"walking"`
|
4322
4342
|
* - `"alert"`
|
4323
4343
|
* - `"wind"`
|
4324
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4344
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#SoundType Online documentation}
|
4325
4345
|
*/
|
4326
4346
|
export type SoundType = "game-effect" | "gui-effect" | "ambient" | "environment" | "walking" | "alert" | "wind"
|
4327
4347
|
/**
|
@@ -4351,7 +4371,7 @@ declare module "factorio:runtime" {
|
|
4351
4371
|
* - `"tabbed-pane"`: A collection of `tab`s and their contents. Relevant event: {@link OnGuiSelectedTabChangedEvent on_gui_selected_tab_changed}
|
4352
4372
|
* - `"tab"`: A tab for use in a `tabbed-pane`.
|
4353
4373
|
* - `"switch"`: A switch with three possible states. Can have labels attached to either side. Relevant event: {@link OnGuiSwitchStateChangedEvent on_gui_switch_state_changed}
|
4354
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4374
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GuiElementType Online documentation}
|
4355
4375
|
*/
|
4356
4376
|
export type GuiElementType =
|
4357
4377
|
| "button"
|
@@ -4389,7 +4409,7 @@ declare module "factorio:runtime" {
|
|
4389
4409
|
* - `"position"`
|
4390
4410
|
* - `"crafting_queue"`
|
4391
4411
|
* - `"item_stack"`
|
4392
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4412
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#GuiArrowType Online documentation}
|
4393
4413
|
*/
|
4394
4414
|
export type GuiArrowType =
|
4395
4415
|
| "nowhere"
|
@@ -4415,7 +4435,7 @@ declare module "factorio:runtime" {
|
|
4415
4435
|
* - TechnologyPrototypeFilter: for type `"technology"`
|
4416
4436
|
* @see PrototypeFilterWrite
|
4417
4437
|
* @remarks Filters are always used as an array of filters of a specific type. Every filter can only be used with its corresponding event, and different types of event filters can not be mixed.
|
4418
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4438
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#PrototypeFilter Online documentation}
|
4419
4439
|
*/
|
4420
4440
|
export type PrototypeFilter = (
|
4421
4441
|
| ItemPrototypeFilter
|
@@ -4430,7 +4450,7 @@ declare module "factorio:runtime" {
|
|
4430
4450
|
)[]
|
4431
4451
|
/**
|
4432
4452
|
* Write form of {@link PrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
4433
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4453
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#PrototypeFilter Online documentation}
|
4434
4454
|
*/
|
4435
4455
|
export type PrototypeFilterWrite = readonly (
|
4436
4456
|
| ItemPrototypeFilterWrite
|
@@ -4776,7 +4796,7 @@ declare module "factorio:runtime" {
|
|
4776
4796
|
* - `"fuel-acceleration-multiplier"`: {@link FuelAccelerationMultiplierItemPrototypeFilter}
|
4777
4797
|
* - `"fuel-top-speed-multiplier"`: {@link FuelTopSpeedMultiplierItemPrototypeFilter}
|
4778
4798
|
* - `"fuel-emissions-multiplier"`: {@link FuelEmissionsMultiplierItemPrototypeFilter}
|
4779
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4799
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ItemPrototypeFilter Online documentation}
|
4780
4800
|
*/
|
4781
4801
|
export type ItemPrototypeFilter =
|
4782
4802
|
| PlaceResultItemPrototypeFilter
|
@@ -4798,7 +4818,7 @@ declare module "factorio:runtime" {
|
|
4798
4818
|
| OtherItemPrototypeFilter
|
4799
4819
|
/**
|
4800
4820
|
* Write form of {@link ItemPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
4801
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4821
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ItemPrototypeFilter Online documentation}
|
4802
4822
|
*/
|
4803
4823
|
export type ItemPrototypeFilterWrite =
|
4804
4824
|
| PlaceResultItemPrototypeFilterWrite
|
@@ -4874,7 +4894,7 @@ declare module "factorio:runtime" {
|
|
4874
4894
|
* - `"type"`: {@link TypeModSettingPrototypeFilter}
|
4875
4895
|
* - `"mod"`: {@link ModModSettingPrototypeFilter}
|
4876
4896
|
* - `"setting-type"`: {@link SettingTypeModSettingPrototypeFilter}
|
4877
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4897
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#ModSettingPrototypeFilter Online documentation}
|
4878
4898
|
*/
|
4879
4899
|
export type ModSettingPrototypeFilter =
|
4880
4900
|
| TypeModSettingPrototypeFilter
|
@@ -5002,7 +5022,7 @@ declare module "factorio:runtime" {
|
|
5002
5022
|
* - `"level"`: {@link LevelTechnologyPrototypeFilter}
|
5003
5023
|
* - `"max-level"`: {@link MaxLevelTechnologyPrototypeFilter}
|
5004
5024
|
* - `"time"`: {@link TimeTechnologyPrototypeFilter}
|
5005
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5025
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#TechnologyPrototypeFilter Online documentation}
|
5006
5026
|
*/
|
5007
5027
|
export type TechnologyPrototypeFilter =
|
5008
5028
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -5013,7 +5033,7 @@ declare module "factorio:runtime" {
|
|
5013
5033
|
| OtherTechnologyPrototypeFilter
|
5014
5034
|
/**
|
5015
5035
|
* Write form of {@link TechnologyPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5016
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5036
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#TechnologyPrototypeFilter Online documentation}
|
5017
5037
|
*/
|
5018
5038
|
export type TechnologyPrototypeFilterWrite =
|
5019
5039
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -5063,7 +5083,7 @@ declare module "factorio:runtime" {
|
|
5063
5083
|
*
|
5064
5084
|
* Other attributes may be specified depending on `filter`:
|
5065
5085
|
* - `"collision-mask"`: {@link CollisionMaskDecorativePrototypeFilter}
|
5066
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5086
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#DecorativePrototypeFilter Online documentation}
|
5067
5087
|
*/
|
5068
5088
|
export type DecorativePrototypeFilter = CollisionMaskDecorativePrototypeFilter | OtherDecorativePrototypeFilter
|
5069
5089
|
/**
|
@@ -5106,7 +5126,7 @@ declare module "factorio:runtime" {
|
|
5106
5126
|
*
|
5107
5127
|
* Other attributes may be specified depending on `filter`:
|
5108
5128
|
* - `"type"`: {@link TypeAchievementPrototypeFilter}
|
5109
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5129
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#AchievementPrototypeFilter Online documentation}
|
5110
5130
|
*/
|
5111
5131
|
export type AchievementPrototypeFilter = TypeAchievementPrototypeFilter | OtherAchievementPrototypeFilter
|
5112
5132
|
/**
|
@@ -5291,7 +5311,7 @@ declare module "factorio:runtime" {
|
|
5291
5311
|
* - `"fuel-value"`: {@link FuelValueFluidPrototypeFilter}
|
5292
5312
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierFluidPrototypeFilter}
|
5293
5313
|
* - `"gas-temperature"`: {@link GasTemperatureFluidPrototypeFilter}
|
5294
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5314
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#FluidPrototypeFilter Online documentation}
|
5295
5315
|
*/
|
5296
5316
|
export type FluidPrototypeFilter =
|
5297
5317
|
| NameFluidPrototypeFilter
|
@@ -5305,7 +5325,7 @@ declare module "factorio:runtime" {
|
|
5305
5325
|
| OtherFluidPrototypeFilter
|
5306
5326
|
/**
|
5307
5327
|
* Write form of {@link FluidPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5308
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5328
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#FluidPrototypeFilter Online documentation}
|
5309
5329
|
*/
|
5310
5330
|
export type FluidPrototypeFilterWrite =
|
5311
5331
|
| NameFluidPrototypeFilter
|
@@ -5357,7 +5377,7 @@ declare module "factorio:runtime" {
|
|
5357
5377
|
*
|
5358
5378
|
* Other attributes may be specified depending on `filter`:
|
5359
5379
|
* - `"type"`: {@link TypeEquipmentPrototypeFilter}
|
5360
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5380
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#EquipmentPrototypeFilter Online documentation}
|
5361
5381
|
*/
|
5362
5382
|
export type EquipmentPrototypeFilter = TypeEquipmentPrototypeFilter | OtherEquipmentPrototypeFilter
|
5363
5383
|
/**
|
@@ -5490,7 +5510,7 @@ declare module "factorio:runtime" {
|
|
5490
5510
|
* - `"vehicle-friction-modifier"`: {@link VehicleFrictionModifierTilePrototypeFilter}
|
5491
5511
|
* - `"decorative-removal-probability"`: {@link DecorativeRemovalProbabilityTilePrototypeFilter}
|
5492
5512
|
* - `"emissions"`: {@link EmissionsTilePrototypeFilter}
|
5493
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5513
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#TilePrototypeFilter Online documentation}
|
5494
5514
|
*/
|
5495
5515
|
export type TilePrototypeFilter =
|
5496
5516
|
| CollisionMaskTilePrototypeFilter
|
@@ -5501,7 +5521,7 @@ declare module "factorio:runtime" {
|
|
5501
5521
|
| OtherTilePrototypeFilter
|
5502
5522
|
/**
|
5503
5523
|
* Write form of {@link TilePrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5504
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5524
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#TilePrototypeFilter Online documentation}
|
5505
5525
|
*/
|
5506
5526
|
export type TilePrototypeFilterWrite =
|
5507
5527
|
| CollisionMaskTilePrototypeFilter
|
@@ -5765,7 +5785,7 @@ declare module "factorio:runtime" {
|
|
5765
5785
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierRecipePrototypeFilter}
|
5766
5786
|
* - `"request-paste-multiplier"`: {@link RequestPasteMultiplierRecipePrototypeFilter}
|
5767
5787
|
* - `"overload-multiplier"`: {@link OverloadMultiplierRecipePrototypeFilter}
|
5768
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5788
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#RecipePrototypeFilter Online documentation}
|
5769
5789
|
*/
|
5770
5790
|
export type RecipePrototypeFilter =
|
5771
5791
|
| HasIngredientItemRecipePrototypeFilter
|
@@ -5781,7 +5801,7 @@ declare module "factorio:runtime" {
|
|
5781
5801
|
| OtherRecipePrototypeFilter
|
5782
5802
|
/**
|
5783
5803
|
* Write form of {@link RecipePrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5784
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5804
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#RecipePrototypeFilter Online documentation}
|
5785
5805
|
*/
|
5786
5806
|
export type RecipePrototypeFilterWrite =
|
5787
5807
|
| HasIngredientItemRecipePrototypeFilterWrite
|
@@ -6018,7 +6038,7 @@ declare module "factorio:runtime" {
|
|
6018
6038
|
* - `"selection-priority"`: {@link SelectionPriorityEntityPrototypeFilter}
|
6019
6039
|
* - `"emissions"`: {@link EmissionsEntityPrototypeFilter}
|
6020
6040
|
* - `"crafting-category"`: {@link CraftingCategoryEntityPrototypeFilter}
|
6021
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6041
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#EntityPrototypeFilter Online documentation}
|
6022
6042
|
*/
|
6023
6043
|
export type EntityPrototypeFilter =
|
6024
6044
|
| NameEntityPrototypeFilter
|
@@ -6032,7 +6052,7 @@ declare module "factorio:runtime" {
|
|
6032
6052
|
| OtherEntityPrototypeFilter
|
6033
6053
|
/**
|
6034
6054
|
* Write form of {@link EntityPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
6035
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6055
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#EntityPrototypeFilter Online documentation}
|
6036
6056
|
*/
|
6037
6057
|
export type EntityPrototypeFilterWrite =
|
6038
6058
|
| NameEntityPrototypeFilter
|
@@ -6071,7 +6091,7 @@ declare module "factorio:runtime" {
|
|
6071
6091
|
* - {@link LuaPlayerRepairedEntityEventFilter}
|
6072
6092
|
* @see EventFilterWrite
|
6073
6093
|
* @remarks Filters are always used as an array of filters of a specific type. Every filter can only be used with its corresponding event, and different types of event filters can not be mixed.
|
6074
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6094
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#EventFilter Online documentation}
|
6075
6095
|
*/
|
6076
6096
|
export type EventFilter = (
|
6077
6097
|
| LuaEntityClonedEventFilter
|
@@ -6098,7 +6118,7 @@ declare module "factorio:runtime" {
|
|
6098
6118
|
)[]
|
6099
6119
|
/**
|
6100
6120
|
* Write form of {@link EventFilter}, where table-or-array concepts are allowed to take an array form.
|
6101
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6121
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#EventFilter Online documentation}
|
6102
6122
|
*/
|
6103
6123
|
export type EventFilterWrite = readonly (
|
6104
6124
|
| LuaEntityClonedEventFilter
|
@@ -6226,7 +6246,7 @@ declare module "factorio:runtime" {
|
|
6226
6246
|
* - `"name"`: {@link NameScriptRaisedReviveEventFilter}
|
6227
6247
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedReviveEventFilter}
|
6228
6248
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedReviveEventFilter}
|
6229
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6249
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaScriptRaisedReviveEventFilter Online documentation}
|
6230
6250
|
*/
|
6231
6251
|
export type LuaScriptRaisedReviveEventFilter =
|
6232
6252
|
| TypeScriptRaisedReviveEventFilter
|
@@ -6333,7 +6353,7 @@ declare module "factorio:runtime" {
|
|
6333
6353
|
* - `"name"`: {@link NameEntityDiedEventFilter}
|
6334
6354
|
* - `"ghost_type"`: {@link GhostTypeEntityDiedEventFilter}
|
6335
6355
|
* - `"ghost_name"`: {@link GhostNameEntityDiedEventFilter}
|
6336
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6356
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaEntityDiedEventFilter Online documentation}
|
6337
6357
|
*/
|
6338
6358
|
export type LuaEntityDiedEventFilter =
|
6339
6359
|
| TypeEntityDiedEventFilter
|
@@ -6442,7 +6462,7 @@ declare module "factorio:runtime" {
|
|
6442
6462
|
* - `"name"`: {@link NameEntityMarkedForDeconstructionEventFilter}
|
6443
6463
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForDeconstructionEventFilter}
|
6444
6464
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForDeconstructionEventFilter}
|
6445
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6465
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaEntityMarkedForDeconstructionEventFilter Online documentation}
|
6446
6466
|
*/
|
6447
6467
|
export type LuaEntityMarkedForDeconstructionEventFilter =
|
6448
6468
|
| TypeEntityMarkedForDeconstructionEventFilter
|
@@ -6549,7 +6569,7 @@ declare module "factorio:runtime" {
|
|
6549
6569
|
* - `"name"`: {@link NamePreGhostDeconstructedEventFilter}
|
6550
6570
|
* - `"ghost_type"`: {@link GhostTypePreGhostDeconstructedEventFilter}
|
6551
6571
|
* - `"ghost_name"`: {@link GhostNamePreGhostDeconstructedEventFilter}
|
6552
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6572
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaPreGhostDeconstructedEventFilter Online documentation}
|
6553
6573
|
*/
|
6554
6574
|
export type LuaPreGhostDeconstructedEventFilter =
|
6555
6575
|
| TypePreGhostDeconstructedEventFilter
|
@@ -6656,7 +6676,7 @@ declare module "factorio:runtime" {
|
|
6656
6676
|
* - `"name"`: {@link NameScriptRaisedDestroyEventFilter}
|
6657
6677
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedDestroyEventFilter}
|
6658
6678
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedDestroyEventFilter}
|
6659
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6679
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaScriptRaisedDestroyEventFilter Online documentation}
|
6660
6680
|
*/
|
6661
6681
|
export type LuaScriptRaisedDestroyEventFilter =
|
6662
6682
|
| TypeScriptRaisedDestroyEventFilter
|
@@ -6763,7 +6783,7 @@ declare module "factorio:runtime" {
|
|
6763
6783
|
* - `"name"`: {@link NameUpgradeCancelledEventFilter}
|
6764
6784
|
* - `"ghost_type"`: {@link GhostTypeUpgradeCancelledEventFilter}
|
6765
6785
|
* - `"ghost_name"`: {@link GhostNameUpgradeCancelledEventFilter}
|
6766
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6786
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaUpgradeCancelledEventFilter Online documentation}
|
6767
6787
|
*/
|
6768
6788
|
export type LuaUpgradeCancelledEventFilter =
|
6769
6789
|
| TypeUpgradeCancelledEventFilter
|
@@ -6870,7 +6890,7 @@ declare module "factorio:runtime" {
|
|
6870
6890
|
* - `"name"`: {@link NamePlayerRepairedEntityEventFilter}
|
6871
6891
|
* - `"ghost_type"`: {@link GhostTypePlayerRepairedEntityEventFilter}
|
6872
6892
|
* - `"ghost_name"`: {@link GhostNamePlayerRepairedEntityEventFilter}
|
6873
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6893
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaPlayerRepairedEntityEventFilter Online documentation}
|
6874
6894
|
*/
|
6875
6895
|
export type LuaPlayerRepairedEntityEventFilter =
|
6876
6896
|
| TypePlayerRepairedEntityEventFilter
|
@@ -6977,7 +6997,7 @@ declare module "factorio:runtime" {
|
|
6977
6997
|
* - `"name"`: {@link NameScriptRaisedTeleportedEventFilter}
|
6978
6998
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedTeleportedEventFilter}
|
6979
6999
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedTeleportedEventFilter}
|
6980
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7000
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaScriptRaisedTeleportedEventFilter Online documentation}
|
6981
7001
|
*/
|
6982
7002
|
export type LuaScriptRaisedTeleportedEventFilter =
|
6983
7003
|
| TypeScriptRaisedTeleportedEventFilter
|
@@ -7084,7 +7104,7 @@ declare module "factorio:runtime" {
|
|
7084
7104
|
* - `"name"`: {@link NameEntityMarkedForUpgradeEventFilter}
|
7085
7105
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForUpgradeEventFilter}
|
7086
7106
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForUpgradeEventFilter}
|
7087
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7107
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaEntityMarkedForUpgradeEventFilter Online documentation}
|
7088
7108
|
*/
|
7089
7109
|
export type LuaEntityMarkedForUpgradeEventFilter =
|
7090
7110
|
| TypeEntityMarkedForUpgradeEventFilter
|
@@ -7126,7 +7146,7 @@ declare module "factorio:runtime" {
|
|
7126
7146
|
*
|
7127
7147
|
* Other attributes may be specified depending on `filter`:
|
7128
7148
|
* - `"type"`: {@link TypePostEntityDiedEventFilter}
|
7129
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7149
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaPostEntityDiedEventFilter Online documentation}
|
7130
7150
|
*/
|
7131
7151
|
export type LuaPostEntityDiedEventFilter = TypePostEntityDiedEventFilter
|
7132
7152
|
/**
|
@@ -7228,7 +7248,7 @@ declare module "factorio:runtime" {
|
|
7228
7248
|
* - `"name"`: {@link NamePreRobotMinedEntityEventFilter}
|
7229
7249
|
* - `"ghost_type"`: {@link GhostTypePreRobotMinedEntityEventFilter}
|
7230
7250
|
* - `"ghost_name"`: {@link GhostNamePreRobotMinedEntityEventFilter}
|
7231
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7251
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaPreRobotMinedEntityEventFilter Online documentation}
|
7232
7252
|
*/
|
7233
7253
|
export type LuaPreRobotMinedEntityEventFilter =
|
7234
7254
|
| TypePreRobotMinedEntityEventFilter
|
@@ -7335,7 +7355,7 @@ declare module "factorio:runtime" {
|
|
7335
7355
|
* - `"name"`: {@link NameEntityClonedEventFilter}
|
7336
7356
|
* - `"ghost_type"`: {@link GhostTypeEntityClonedEventFilter}
|
7337
7357
|
* - `"ghost_name"`: {@link GhostNameEntityClonedEventFilter}
|
7338
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7358
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaEntityClonedEventFilter Online documentation}
|
7339
7359
|
*/
|
7340
7360
|
export type LuaEntityClonedEventFilter =
|
7341
7361
|
| TypeEntityClonedEventFilter
|
@@ -7442,7 +7462,7 @@ declare module "factorio:runtime" {
|
|
7442
7462
|
* - `"name"`: {@link NameScriptRaisedBuiltEventFilter}
|
7443
7463
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedBuiltEventFilter}
|
7444
7464
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedBuiltEventFilter}
|
7445
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7465
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaScriptRaisedBuiltEventFilter Online documentation}
|
7446
7466
|
*/
|
7447
7467
|
export type LuaScriptRaisedBuiltEventFilter =
|
7448
7468
|
| TypeScriptRaisedBuiltEventFilter
|
@@ -7549,7 +7569,7 @@ declare module "factorio:runtime" {
|
|
7549
7569
|
* - `"name"`: {@link NameRobotMinedEntityEventFilter}
|
7550
7570
|
* - `"ghost_type"`: {@link GhostTypeRobotMinedEntityEventFilter}
|
7551
7571
|
* - `"ghost_name"`: {@link GhostNameRobotMinedEntityEventFilter}
|
7552
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7572
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaRobotMinedEntityEventFilter Online documentation}
|
7553
7573
|
*/
|
7554
7574
|
export type LuaRobotMinedEntityEventFilter =
|
7555
7575
|
| TypeRobotMinedEntityEventFilter
|
@@ -7656,7 +7676,7 @@ declare module "factorio:runtime" {
|
|
7656
7676
|
* - `"name"`: {@link NamePrePlayerMinedEntityEventFilter}
|
7657
7677
|
* - `"ghost_type"`: {@link GhostTypePrePlayerMinedEntityEventFilter}
|
7658
7678
|
* - `"ghost_name"`: {@link GhostNamePrePlayerMinedEntityEventFilter}
|
7659
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7679
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaPrePlayerMinedEntityEventFilter Online documentation}
|
7660
7680
|
*/
|
7661
7681
|
export type LuaPrePlayerMinedEntityEventFilter =
|
7662
7682
|
| TypePrePlayerMinedEntityEventFilter
|
@@ -7775,7 +7795,7 @@ declare module "factorio:runtime" {
|
|
7775
7795
|
* - `"ghost_type"`: {@link GhostTypeRobotBuiltEntityEventFilter}
|
7776
7796
|
* - `"ghost_name"`: {@link GhostNameRobotBuiltEntityEventFilter}
|
7777
7797
|
* - `"force"`: {@link ForceRobotBuiltEntityEventFilter}
|
7778
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7798
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaRobotBuiltEntityEventFilter Online documentation}
|
7779
7799
|
*/
|
7780
7800
|
export type LuaRobotBuiltEntityEventFilter =
|
7781
7801
|
| TypeRobotBuiltEntityEventFilter
|
@@ -7883,7 +7903,7 @@ declare module "factorio:runtime" {
|
|
7883
7903
|
* - `"name"`: {@link NamePreGhostUpgradedEventFilter}
|
7884
7904
|
* - `"ghost_type"`: {@link GhostTypePreGhostUpgradedEventFilter}
|
7885
7905
|
* - `"ghost_name"`: {@link GhostNamePreGhostUpgradedEventFilter}
|
7886
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7906
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaPreGhostUpgradedEventFilter Online documentation}
|
7887
7907
|
*/
|
7888
7908
|
export type LuaPreGhostUpgradedEventFilter =
|
7889
7909
|
| TypePreGhostUpgradedEventFilter
|
@@ -7992,7 +8012,7 @@ declare module "factorio:runtime" {
|
|
7992
8012
|
* - `"name"`: {@link NameEntityDeconstructionCancelledEventFilter}
|
7993
8013
|
* - `"ghost_type"`: {@link GhostTypeEntityDeconstructionCancelledEventFilter}
|
7994
8014
|
* - `"ghost_name"`: {@link GhostNameEntityDeconstructionCancelledEventFilter}
|
7995
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8015
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaEntityDeconstructionCancelledEventFilter Online documentation}
|
7996
8016
|
*/
|
7997
8017
|
export type LuaEntityDeconstructionCancelledEventFilter =
|
7998
8018
|
| TypeEntityDeconstructionCancelledEventFilter
|
@@ -8111,7 +8131,7 @@ declare module "factorio:runtime" {
|
|
8111
8131
|
* - `"ghost_type"`: {@link GhostTypePlayerBuiltEntityEventFilter}
|
8112
8132
|
* - `"ghost_name"`: {@link GhostNamePlayerBuiltEntityEventFilter}
|
8113
8133
|
* - `"force"`: {@link ForcePlayerBuiltEntityEventFilter}
|
8114
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8134
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaPlayerBuiltEntityEventFilter Online documentation}
|
8115
8135
|
*/
|
8116
8136
|
export type LuaPlayerBuiltEntityEventFilter =
|
8117
8137
|
| TypePlayerBuiltEntityEventFilter
|
@@ -8219,7 +8239,7 @@ declare module "factorio:runtime" {
|
|
8219
8239
|
* - `"name"`: {@link NamePlayerMinedEntityEventFilter}
|
8220
8240
|
* - `"ghost_type"`: {@link GhostTypePlayerMinedEntityEventFilter}
|
8221
8241
|
* - `"ghost_name"`: {@link GhostNamePlayerMinedEntityEventFilter}
|
8222
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8242
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaPlayerMinedEntityEventFilter Online documentation}
|
8223
8243
|
*/
|
8224
8244
|
export type LuaPlayerMinedEntityEventFilter =
|
8225
8245
|
| TypePlayerMinedEntityEventFilter
|
@@ -8401,7 +8421,7 @@ declare module "factorio:runtime" {
|
|
8401
8421
|
* - `"final-damage-amount"`: {@link FinalDamageAmountEntityDamagedEventFilter}
|
8402
8422
|
* - `"damage-type"`: {@link DamageTypeEntityDamagedEventFilter}
|
8403
8423
|
* - `"final-health"`: {@link FinalHealthEntityDamagedEventFilter}
|
8404
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8424
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaEntityDamagedEventFilter Online documentation}
|
8405
8425
|
*/
|
8406
8426
|
export type LuaEntityDamagedEventFilter =
|
8407
8427
|
| TypeEntityDamagedEventFilter
|
@@ -8415,7 +8435,7 @@ declare module "factorio:runtime" {
|
|
8415
8435
|
| OtherEntityDamagedEventFilter
|
8416
8436
|
/**
|
8417
8437
|
* Write form of {@link LuaEntityDamagedEventFilter}, where table-or-array concepts are allowed to take an array form.
|
8418
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8438
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaEntityDamagedEventFilter Online documentation}
|
8419
8439
|
*/
|
8420
8440
|
export type LuaEntityDamagedEventFilterWrite =
|
8421
8441
|
| TypeEntityDamagedEventFilter
|
@@ -8526,7 +8546,7 @@ declare module "factorio:runtime" {
|
|
8526
8546
|
* - `"name"`: {@link NameSectorScannedEventFilter}
|
8527
8547
|
* - `"ghost_type"`: {@link GhostTypeSectorScannedEventFilter}
|
8528
8548
|
* - `"ghost_name"`: {@link GhostNameSectorScannedEventFilter}
|
8529
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8549
|
+
* @see {@link https://lua-api.factorio.com/1.1.94/concepts.html#LuaSectorScannedEventFilter Online documentation}
|
8530
8550
|
*/
|
8531
8551
|
export type LuaSectorScannedEventFilter =
|
8532
8552
|
| TypeSectorScannedEventFilter
|