typed-factorio 2.3.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +3 -2
- package/prototype/generated/prototypes.d.ts +1762 -1752
- package/prototype/generated/types.d.ts +1903 -1524
- package/runtime/generated/builtin-types.d.ts +12 -12
- package/runtime/generated/classes.d.ts +3330 -3326
- package/runtime/generated/concepts.d.ts +188 -176
- package/runtime/generated/defines.d.ts +134 -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
@@ -18,9 +18,21 @@ declare module "factorio:runtime" {
|
|
18
18
|
*/
|
19
19
|
readonly sound?: defines.print_sound
|
20
20
|
/**
|
21
|
-
*
|
21
|
+
* Condition when to skip adding message. Defaults to `defines.print_skip.if_redundant`.
|
22
22
|
*/
|
23
|
-
readonly
|
23
|
+
readonly skip?: defines.print_skip
|
24
|
+
/**
|
25
|
+
* The sound to play. If not given, {@link import("factorio:prototype").UtilitySounds#console_message UtilitySounds::console_message} will be used instead.
|
26
|
+
*/
|
27
|
+
readonly sound_path?: SoundPath
|
28
|
+
/**
|
29
|
+
* The volume of the sound to play. Must be between 0 and 1 inclusive. Defaults to 1.
|
30
|
+
*/
|
31
|
+
readonly volume_modifier?: double
|
32
|
+
/**
|
33
|
+
* If set to false, message will not be part of game state and will dissapear from output console after save-load. Defaults to `true`.
|
34
|
+
*/
|
35
|
+
readonly game_state?: boolean
|
24
36
|
}
|
25
37
|
export interface RadiusVisualisationSpecification {
|
26
38
|
readonly distance: double
|
@@ -50,7 +62,7 @@ declare module "factorio:runtime" {
|
|
50
62
|
* - `"none-to-south"`
|
51
63
|
* - `"south-to-none"`
|
52
64
|
* - `"none-to-north"`
|
53
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
65
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#CliffOrientation Online documentation}
|
54
66
|
*/
|
55
67
|
export type CliffOrientation =
|
56
68
|
| "west-to-east"
|
@@ -95,7 +107,7 @@ declare module "factorio:runtime" {
|
|
95
107
|
* game.print({"", {"item-name.iron-plate"}, ": ", 60})
|
96
108
|
* @example As an example of a localised string with fallback, consider this:
|
97
109
|
* {"?", {"", {"entity-description.furnace"}, "\n"}, {"item-description.furnace"}, "optional fallback"}
|
98
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
110
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LocalisedString Online documentation}
|
99
111
|
*/
|
100
112
|
export type LocalisedString = string | number | boolean | LuaObject | nil | [string, ...LocalisedString[]]
|
101
113
|
export interface DisplayResolution {
|
@@ -114,7 +126,7 @@ declare module "factorio:runtime" {
|
|
114
126
|
* 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".
|
115
127
|
*
|
116
128
|
* For example then, a value of `0.625` would indicate "south-west", and a value of `0.875` would indicate "north-west".
|
117
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
129
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#RealOrientation Online documentation}
|
118
130
|
*/
|
119
131
|
export type RealOrientation = float
|
120
132
|
/**
|
@@ -127,7 +139,7 @@ declare module "factorio:runtime" {
|
|
127
139
|
* {y = 2.25, x = 5.125}
|
128
140
|
* @example Shorthand:
|
129
141
|
* {1.625, 2.375}
|
130
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
142
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#MapPosition Online documentation}
|
131
143
|
*/
|
132
144
|
export interface MapPosition {
|
133
145
|
readonly x: double
|
@@ -136,13 +148,13 @@ declare module "factorio:runtime" {
|
|
136
148
|
/**
|
137
149
|
* Array form of {@link MapPosition}.
|
138
150
|
* @see MapPosition
|
139
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
151
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#MapPosition Online documentation}
|
140
152
|
*/
|
141
153
|
export type MapPositionArray = readonly [x: double, y: double]
|
142
154
|
/**
|
143
155
|
* 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.
|
144
156
|
* @see ChunkPositionArray
|
145
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
157
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ChunkPosition Online documentation}
|
146
158
|
*/
|
147
159
|
export interface ChunkPosition {
|
148
160
|
readonly x: int
|
@@ -151,13 +163,13 @@ declare module "factorio:runtime" {
|
|
151
163
|
/**
|
152
164
|
* Array form of {@link ChunkPosition}.
|
153
165
|
* @see ChunkPosition
|
154
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
166
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ChunkPosition Online documentation}
|
155
167
|
*/
|
156
168
|
export type ChunkPositionArray = readonly [x: int, y: int]
|
157
169
|
/**
|
158
170
|
* 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.
|
159
171
|
* @see TilePositionArray
|
160
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
172
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#TilePosition Online documentation}
|
161
173
|
*/
|
162
174
|
export interface TilePosition {
|
163
175
|
readonly x: int
|
@@ -166,7 +178,7 @@ declare module "factorio:runtime" {
|
|
166
178
|
/**
|
167
179
|
* Array form of {@link TilePosition}.
|
168
180
|
* @see TilePosition
|
169
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
181
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#TilePosition Online documentation}
|
170
182
|
*/
|
171
183
|
export type TilePositionArray = readonly [x: int, y: int]
|
172
184
|
/**
|
@@ -177,7 +189,7 @@ declare module "factorio:runtime" {
|
|
177
189
|
* {y = 2, x = 5}
|
178
190
|
* @example Shorthand:
|
179
191
|
* {1, 2}
|
180
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
192
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#EquipmentPosition Online documentation}
|
181
193
|
*/
|
182
194
|
export interface EquipmentPosition {
|
183
195
|
readonly x: int
|
@@ -186,13 +198,13 @@ declare module "factorio:runtime" {
|
|
186
198
|
/**
|
187
199
|
* Array form of {@link EquipmentPosition}.
|
188
200
|
* @see EquipmentPosition
|
189
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
201
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#EquipmentPosition Online documentation}
|
190
202
|
*/
|
191
203
|
export type EquipmentPositionArray = readonly [x: int, y: int]
|
192
204
|
/**
|
193
205
|
* 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.
|
194
206
|
* @see GuiLocationArray
|
195
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
207
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GuiLocation Online documentation}
|
196
208
|
*/
|
197
209
|
export interface GuiLocation {
|
198
210
|
readonly x: int
|
@@ -201,12 +213,12 @@ declare module "factorio:runtime" {
|
|
201
213
|
/**
|
202
214
|
* Array form of {@link GuiLocation}.
|
203
215
|
* @see GuiLocation
|
204
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
216
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GuiLocation Online documentation}
|
205
217
|
*/
|
206
218
|
export type GuiLocationArray = readonly [x: int, y: int]
|
207
219
|
/**
|
208
220
|
* A {@link ChunkPosition} with an added bounding box for the area of the chunk.
|
209
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
221
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ChunkPositionAndArea Online documentation}
|
210
222
|
*/
|
211
223
|
export interface ChunkPositionAndArea {
|
212
224
|
readonly x: int
|
@@ -215,7 +227,7 @@ declare module "factorio:runtime" {
|
|
215
227
|
}
|
216
228
|
/**
|
217
229
|
* A table used to define a manual shape for a piece of equipment.
|
218
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
230
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#EquipmentPoint Online documentation}
|
219
231
|
*/
|
220
232
|
export interface EquipmentPoint {
|
221
233
|
readonly x: uint
|
@@ -251,12 +263,12 @@ declare module "factorio:runtime" {
|
|
251
263
|
* 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.
|
252
264
|
* @example
|
253
265
|
* {a = 1, b = true, c = "three", d = {e = "f"}}
|
254
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
266
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#Tags Online documentation}
|
255
267
|
*/
|
256
268
|
export type Tags = Record<string, AnyBasic>
|
257
269
|
/**
|
258
270
|
* @remarks The vectors for all 5 position attributes are a table with `x` and `y` keys instead of an array.
|
259
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
271
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#SmokeSource Online documentation}
|
260
272
|
*/
|
261
273
|
export interface SmokeSource {
|
262
274
|
readonly name: string
|
@@ -283,7 +295,7 @@ declare module "factorio:runtime" {
|
|
283
295
|
* 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.
|
284
296
|
* @example
|
285
297
|
* right = {1.0, 0.0}
|
286
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
298
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#Vector Online documentation}
|
287
299
|
*/
|
288
300
|
export type Vector = MapPositionArray
|
289
301
|
/**
|
@@ -293,7 +305,7 @@ declare module "factorio:runtime" {
|
|
293
305
|
* {left_top = {x = -2, y = -3}, right_bottom = {x = 5, y = 8}}
|
294
306
|
* @example Shorthand:
|
295
307
|
* {{-2, -3}, {5, 8}}
|
296
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
308
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#BoundingBox Online documentation}
|
297
309
|
*/
|
298
310
|
export interface BoundingBox {
|
299
311
|
readonly left_top: MapPosition
|
@@ -311,7 +323,7 @@ declare module "factorio:runtime" {
|
|
311
323
|
/**
|
312
324
|
* Array form of {@link BoundingBox}.
|
313
325
|
* @see BoundingBox
|
314
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
326
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#BoundingBox Online documentation}
|
315
327
|
*/
|
316
328
|
export type BoundingBoxArray = readonly [
|
317
329
|
left_top: MapPosition | MapPositionArray,
|
@@ -321,7 +333,7 @@ declare module "factorio:runtime" {
|
|
321
333
|
/**
|
322
334
|
* An area defined using the map editor.
|
323
335
|
* @see ScriptAreaWrite
|
324
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
336
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ScriptArea Online documentation}
|
325
337
|
*/
|
326
338
|
export interface ScriptArea {
|
327
339
|
readonly area: BoundingBox
|
@@ -331,7 +343,7 @@ declare module "factorio:runtime" {
|
|
331
343
|
}
|
332
344
|
/**
|
333
345
|
* Write form of {@link ScriptArea}, where table-or-array concepts are allowed to take an array form.
|
334
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
346
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ScriptArea Online documentation}
|
335
347
|
*/
|
336
348
|
export interface ScriptAreaWrite {
|
337
349
|
readonly area: BoundingBoxWrite | BoundingBoxArray
|
@@ -342,7 +354,7 @@ declare module "factorio:runtime" {
|
|
342
354
|
/**
|
343
355
|
* A position defined using the map editor.
|
344
356
|
* @see ScriptPositionWrite
|
345
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
357
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ScriptPosition Online documentation}
|
346
358
|
*/
|
347
359
|
export interface ScriptPosition {
|
348
360
|
readonly position: MapPosition
|
@@ -352,7 +364,7 @@ declare module "factorio:runtime" {
|
|
352
364
|
}
|
353
365
|
/**
|
354
366
|
* Write form of {@link ScriptPosition}, where table-or-array concepts are allowed to take an array form.
|
355
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
367
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ScriptPosition Online documentation}
|
356
368
|
*/
|
357
369
|
export interface ScriptPositionWrite {
|
358
370
|
readonly position: MapPosition | MapPositionArray
|
@@ -370,7 +382,7 @@ declare module "factorio:runtime" {
|
|
370
382
|
* red2 = {r = 0.5, a = 0.5} -- Same color as red1
|
371
383
|
* black = {} -- All channels omitted: black
|
372
384
|
* red1_short = {0.5, 0, 0, 0.5} -- Same color as red1 in short-hand notation
|
373
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
385
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#Color Online documentation}
|
374
386
|
*/
|
375
387
|
export interface Color {
|
376
388
|
readonly r?: float
|
@@ -381,13 +393,13 @@ declare module "factorio:runtime" {
|
|
381
393
|
/**
|
382
394
|
* Array form of {@link Color}.
|
383
395
|
* @see Color
|
384
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
396
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#Color Online documentation}
|
385
397
|
*/
|
386
398
|
export type ColorArray = readonly [r?: float, g?: float, b?: float, a?: float]
|
387
399
|
/**
|
388
400
|
* 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].
|
389
401
|
* @see ColorModifierArray
|
390
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
402
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ColorModifier Online documentation}
|
391
403
|
*/
|
392
404
|
export interface ColorModifier {
|
393
405
|
readonly r?: float
|
@@ -398,7 +410,7 @@ declare module "factorio:runtime" {
|
|
398
410
|
/**
|
399
411
|
* Array form of {@link ColorModifier}.
|
400
412
|
* @see ColorModifier
|
401
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
413
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ColorModifier Online documentation}
|
402
414
|
*/
|
403
415
|
export type ColorModifierArray = readonly [r?: float, g?: float, b?: float, a?: float]
|
404
416
|
export interface CraftingQueueItem {
|
@@ -438,7 +450,7 @@ declare module "factorio:runtime" {
|
|
438
450
|
}
|
439
451
|
/**
|
440
452
|
* One vertex of a ScriptRenderPolygon.
|
441
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
453
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ScriptRenderVertexTarget Online documentation}
|
442
454
|
*/
|
443
455
|
export interface ScriptRenderVertexTarget {
|
444
456
|
readonly target: (MapPosition | MapPositionArray) | LuaEntity
|
@@ -504,7 +516,7 @@ declare module "factorio:runtime" {
|
|
504
516
|
}
|
505
517
|
/**
|
506
518
|
* @remarks Either `icon`, `text`, or both must be provided.
|
507
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
519
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ChartTagSpec Online documentation}
|
508
520
|
*/
|
509
521
|
export interface ChartTagSpec {
|
510
522
|
readonly position: MapPosition | MapPositionArray
|
@@ -514,88 +526,88 @@ declare module "factorio:runtime" {
|
|
514
526
|
}
|
515
527
|
/**
|
516
528
|
* 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.
|
517
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
529
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GameViewSettings Online documentation}
|
518
530
|
*/
|
519
531
|
export interface GameViewSettings {
|
520
532
|
/**
|
521
533
|
* Show the controller GUI elements. This includes the toolbar, the selected tool slot, the armour slot, and the gun and ammunition slots.
|
522
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
534
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GameViewSettings.show_controller_gui Online documentation}
|
523
535
|
*/
|
524
536
|
show_controller_gui: boolean
|
525
537
|
/**
|
526
538
|
* Show the chart in the upper right-hand corner of the screen.
|
527
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
539
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GameViewSettings.show_minimap Online documentation}
|
528
540
|
*/
|
529
541
|
show_minimap: boolean
|
530
542
|
/**
|
531
543
|
* Show research progress and name in the upper right-hand corner of the screen.
|
532
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
544
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GameViewSettings.show_research_info Online documentation}
|
533
545
|
*/
|
534
546
|
show_research_info: boolean
|
535
547
|
/**
|
536
548
|
* Show overlay icons on entities. Also known as "alt-mode".
|
537
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
549
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GameViewSettings.show_entity_info Online documentation}
|
538
550
|
*/
|
539
551
|
show_entity_info: boolean
|
540
552
|
/**
|
541
553
|
* Show the flashing alert icons next to the player's toolbar.
|
542
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
554
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GameViewSettings.show_alert_gui Online documentation}
|
543
555
|
*/
|
544
556
|
show_alert_gui: boolean
|
545
557
|
/**
|
546
558
|
* When `true` (the default), mousing over an entity will select it. Otherwise, moving the mouse won't update entity selection.
|
547
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
559
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GameViewSettings.update_entity_selection Online documentation}
|
548
560
|
*/
|
549
561
|
update_entity_selection: boolean
|
550
562
|
/**
|
551
563
|
* When `true` (`false` is default), the rails will always show the rail block visualisation.
|
552
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
564
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GameViewSettings.show_rail_block_visualisation Online documentation}
|
553
565
|
*/
|
554
566
|
show_rail_block_visualisation: boolean
|
555
567
|
/**
|
556
568
|
* Shows or hides the buttons row.
|
557
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
569
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GameViewSettings.show_side_menu Online documentation}
|
558
570
|
*/
|
559
571
|
show_side_menu: boolean
|
560
572
|
/**
|
561
573
|
* Shows or hides the view options when map is opened.
|
562
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
574
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GameViewSettings.show_map_view_options Online documentation}
|
563
575
|
*/
|
564
576
|
show_map_view_options: boolean
|
565
577
|
/**
|
566
578
|
* Shows or hides the tooltip that is displayed when selecting an entity.
|
567
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
579
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GameViewSettings.show_entity_tooltip Online documentation}
|
568
580
|
*/
|
569
581
|
show_entity_tooltip: boolean
|
570
582
|
/**
|
571
583
|
* Shows or hides quickbar of shortcuts.
|
572
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
584
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GameViewSettings.show_quickbar Online documentation}
|
573
585
|
*/
|
574
586
|
show_quickbar: boolean
|
575
587
|
/**
|
576
588
|
* Shows or hides the shortcut bar.
|
577
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
589
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GameViewSettings.show_shortcut_bar Online documentation}
|
578
590
|
*/
|
579
591
|
show_shortcut_bar: boolean
|
580
592
|
/**
|
581
593
|
* Shows or hides the crafting queue.
|
582
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
594
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GameViewSettings.show_crafting_queue Online documentation}
|
583
595
|
*/
|
584
596
|
show_crafting_queue: boolean
|
585
597
|
/**
|
586
598
|
* Shows or hides the tool window with the weapons and armor.
|
587
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
599
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GameViewSettings.show_tool_bar Online documentation}
|
588
600
|
*/
|
589
601
|
show_tool_bar: boolean
|
590
602
|
/**
|
591
603
|
* Shows or hides the mouse and keyboard/controller button hints in the bottom left corner if they are enabled in the interface settings.
|
592
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
604
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GameViewSettings.show_hotkey_suggestions Online documentation}
|
593
605
|
*/
|
594
606
|
show_hotkey_suggestions: boolean
|
595
607
|
}
|
596
608
|
/**
|
597
609
|
* What is shown in the map view. If a field is not given, that setting will not be changed.
|
598
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
610
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#MapViewSettings Online documentation}
|
599
611
|
*/
|
600
612
|
export interface MapViewSettings {
|
601
613
|
readonly "show-logistic-network"?: boolean
|
@@ -609,7 +621,7 @@ declare module "factorio:runtime" {
|
|
609
621
|
}
|
610
622
|
/**
|
611
623
|
* These values are for the time frame of one second (60 ticks).
|
612
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
624
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#PollutionMapSettings Online documentation}
|
613
625
|
*/
|
614
626
|
export interface PollutionMapSettings {
|
615
627
|
/**
|
@@ -663,7 +675,7 @@ declare module "factorio:runtime" {
|
|
663
675
|
}
|
664
676
|
/**
|
665
677
|
* These values represent a percentual increase in evolution. This means a value of `0.1` would increase evolution by 10%.
|
666
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
678
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#EnemyEvolutionMapSettings Online documentation}
|
667
679
|
*/
|
668
680
|
export interface EnemyEvolutionMapSettings {
|
669
681
|
/**
|
@@ -703,7 +715,7 @@ declare module "factorio:runtime" {
|
|
703
715
|
*
|
704
716
|
* score(chunk) = 1 / (1 + player + base)
|
705
717
|
* ```
|
706
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
718
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#EnemyExpansionMapSettings Online documentation}
|
707
719
|
*/
|
708
720
|
export interface EnemyExpansionMapSettings {
|
709
721
|
/**
|
@@ -964,7 +976,7 @@ declare module "factorio:runtime" {
|
|
964
976
|
* Various game-related settings. Updating any of the attributes will immediately take effect in the game engine.
|
965
977
|
* @example Increase the number of short paths the pathfinder can cache.
|
966
978
|
* game.map_settings.path_finder.short_cache_size = 15
|
967
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
979
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#MapSettings Online documentation}
|
968
980
|
*/
|
969
981
|
export interface MapSettings {
|
970
982
|
pollution: PollutionMapSettings
|
@@ -975,31 +987,31 @@ declare module "factorio:runtime" {
|
|
975
987
|
path_finder: PathFinderMapSettings
|
976
988
|
/**
|
977
989
|
* If a behavior fails this many times, the enemy (or enemy group) is destroyed. This solves biters getting stuck within their own base.
|
978
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
990
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#MapSettings.max_failed_behavior_count Online documentation}
|
979
991
|
*/
|
980
992
|
max_failed_behavior_count: uint
|
981
993
|
}
|
982
994
|
/**
|
983
995
|
* Technology and recipe difficulty settings. Updating any of the attributes will immediately take effect in the game engine.
|
984
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
996
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#DifficultySettings Online documentation}
|
985
997
|
*/
|
986
998
|
export interface DifficultySettings {
|
987
999
|
recipe_difficulty: defines.difficulty_settings.recipe_difficulty
|
988
1000
|
technology_difficulty: defines.difficulty_settings.technology_difficulty
|
989
1001
|
/**
|
990
1002
|
* A value in range [0.001, 1000].
|
991
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1003
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#DifficultySettings.technology_price_multiplier Online documentation}
|
992
1004
|
*/
|
993
1005
|
technology_price_multiplier: double
|
994
1006
|
/**
|
995
1007
|
* 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.
|
996
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1008
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#DifficultySettings.research_queue_setting Online documentation}
|
997
1009
|
*/
|
998
1010
|
research_queue_setting: "after-victory" | "always" | "never"
|
999
1011
|
}
|
1000
1012
|
/**
|
1001
1013
|
* A standard table containing all {@link MapSettings} attributes plus an additional table that contains all {@link DifficultySettings} properties.
|
1002
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1014
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#MapAndDifficultySettings Online documentation}
|
1003
1015
|
*/
|
1004
1016
|
export interface MapAndDifficultySettings {
|
1005
1017
|
readonly pollution: PollutionMapSettings
|
@@ -1028,7 +1040,7 @@ declare module "factorio:runtime" {
|
|
1028
1040
|
}
|
1029
1041
|
/**
|
1030
1042
|
* The data that can be extracted from a map exchange string, as a plain table.
|
1031
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1043
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#MapExchangeStringData Online documentation}
|
1032
1044
|
*/
|
1033
1045
|
export interface MapExchangeStringData {
|
1034
1046
|
readonly map_settings: MapAndDifficultySettings
|
@@ -1047,7 +1059,7 @@ declare module "factorio:runtime" {
|
|
1047
1059
|
/**
|
1048
1060
|
* 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.
|
1049
1061
|
* @see BlueprintEntityWrite
|
1050
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1062
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#BlueprintEntity Online documentation}
|
1051
1063
|
*/
|
1052
1064
|
export interface BlueprintEntity {
|
1053
1065
|
/**
|
@@ -1226,7 +1238,7 @@ declare module "factorio:runtime" {
|
|
1226
1238
|
}
|
1227
1239
|
/**
|
1228
1240
|
* Write form of {@link BlueprintEntity}, where table-or-array concepts are allowed to take an array form.
|
1229
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1241
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#BlueprintEntity Online documentation}
|
1230
1242
|
*/
|
1231
1243
|
export interface BlueprintEntityWrite {
|
1232
1244
|
/**
|
@@ -1314,7 +1326,7 @@ declare module "factorio:runtime" {
|
|
1314
1326
|
}
|
1315
1327
|
/**
|
1316
1328
|
* @see TileWrite
|
1317
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1329
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#Tile Online documentation}
|
1318
1330
|
*/
|
1319
1331
|
export interface Tile {
|
1320
1332
|
/**
|
@@ -1328,7 +1340,7 @@ declare module "factorio:runtime" {
|
|
1328
1340
|
}
|
1329
1341
|
/**
|
1330
1342
|
* Write form of {@link Tile}, where table-or-array concepts are allowed to take an array form.
|
1331
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1343
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#Tile Online documentation}
|
1332
1344
|
*/
|
1333
1345
|
export interface TileWrite {
|
1334
1346
|
/**
|
@@ -1400,7 +1412,7 @@ declare module "factorio:runtime" {
|
|
1400
1412
|
*
|
1401
1413
|
* Other attributes may be specified depending on `type`:
|
1402
1414
|
* - `"fluid"`: {@link FluidIngredient}
|
1403
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1415
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#Ingredient Online documentation}
|
1404
1416
|
*/
|
1405
1417
|
export type Ingredient = FluidIngredient | OtherIngredient
|
1406
1418
|
/**
|
@@ -1465,7 +1477,7 @@ declare module "factorio:runtime" {
|
|
1465
1477
|
* {type="fluid", name="petroleum-gas", amount=5.5}}
|
1466
1478
|
* @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:
|
1467
1479
|
* {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
|
1468
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1480
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#Product Online documentation}
|
1469
1481
|
*/
|
1470
1482
|
export type Product = FluidProduct | OtherProduct
|
1471
1483
|
export interface Loot {
|
@@ -1667,7 +1679,7 @@ declare module "factorio:runtime" {
|
|
1667
1679
|
* - `"unlock-recipe"`: {@link UnlockRecipeTechnologyModifier}
|
1668
1680
|
* - `"nothing"`: {@link NothingTechnologyModifier}
|
1669
1681
|
* - Other types: {@link OtherTechnologyModifier}
|
1670
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1682
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#TechnologyModifier Online documentation}
|
1671
1683
|
*/
|
1672
1684
|
export type TechnologyModifier =
|
1673
1685
|
| GunSpeedTechnologyModifier
|
@@ -1679,7 +1691,7 @@ declare module "factorio:runtime" {
|
|
1679
1691
|
| OtherTechnologyModifier
|
1680
1692
|
/**
|
1681
1693
|
* A single offer on a market entity.
|
1682
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1694
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#Offer Online documentation}
|
1683
1695
|
*/
|
1684
1696
|
export interface Offer {
|
1685
1697
|
/**
|
@@ -1693,7 +1705,7 @@ declare module "factorio:runtime" {
|
|
1693
1705
|
}
|
1694
1706
|
/**
|
1695
1707
|
* 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.
|
1696
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1708
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#AutoplaceSpecification Online documentation}
|
1697
1709
|
*/
|
1698
1710
|
export interface AutoplaceSpecification {
|
1699
1711
|
readonly probability_expression: NoiseExpression
|
@@ -1719,7 +1731,7 @@ declare module "factorio:runtime" {
|
|
1719
1731
|
}
|
1720
1732
|
/**
|
1721
1733
|
* 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}.
|
1722
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1734
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#NoiseExpression Online documentation}
|
1723
1735
|
*/
|
1724
1736
|
export interface NoiseExpression {
|
1725
1737
|
/**
|
@@ -1811,7 +1823,7 @@ declare module "factorio:runtime" {
|
|
1811
1823
|
* - `"very-big"`: equivalent to `2`.
|
1812
1824
|
* - `"very-good"`: equivalent to `2`.
|
1813
1825
|
* @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.
|
1814
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1826
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#MapGenSize Online documentation}
|
1815
1827
|
*/
|
1816
1828
|
export type MapGenSize =
|
1817
1829
|
| float
|
@@ -1833,7 +1845,7 @@ declare module "factorio:runtime" {
|
|
1833
1845
|
| "very-good"
|
1834
1846
|
/**
|
1835
1847
|
* @see AutoplaceControlWrite
|
1836
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1848
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#AutoplaceControl Online documentation}
|
1837
1849
|
*/
|
1838
1850
|
export interface AutoplaceControl {
|
1839
1851
|
/**
|
@@ -1851,7 +1863,7 @@ declare module "factorio:runtime" {
|
|
1851
1863
|
}
|
1852
1864
|
/**
|
1853
1865
|
* Write form of {@link AutoplaceControl}, where table-or-array concepts are allowed to take an array form.
|
1854
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1866
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#AutoplaceControl Online documentation}
|
1855
1867
|
*/
|
1856
1868
|
export interface AutoplaceControlWrite {
|
1857
1869
|
/**
|
@@ -1869,7 +1881,7 @@ declare module "factorio:runtime" {
|
|
1869
1881
|
}
|
1870
1882
|
/**
|
1871
1883
|
* @see AutoplaceSettingsWrite
|
1872
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1884
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#AutoplaceSettings Online documentation}
|
1873
1885
|
*/
|
1874
1886
|
export interface AutoplaceSettings {
|
1875
1887
|
/**
|
@@ -1880,7 +1892,7 @@ declare module "factorio:runtime" {
|
|
1880
1892
|
}
|
1881
1893
|
/**
|
1882
1894
|
* Write form of {@link AutoplaceSettings}, where table-or-array concepts are allowed to take an array form.
|
1883
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1895
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#AutoplaceSettings Online documentation}
|
1884
1896
|
*/
|
1885
1897
|
export interface AutoplaceSettingsWrite {
|
1886
1898
|
/**
|
@@ -1891,7 +1903,7 @@ declare module "factorio:runtime" {
|
|
1891
1903
|
}
|
1892
1904
|
/**
|
1893
1905
|
* @see CliffPlacementSettingsWrite
|
1894
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1906
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#CliffPlacementSettings Online documentation}
|
1895
1907
|
*/
|
1896
1908
|
export interface CliffPlacementSettings {
|
1897
1909
|
/**
|
@@ -1913,7 +1925,7 @@ declare module "factorio:runtime" {
|
|
1913
1925
|
}
|
1914
1926
|
/**
|
1915
1927
|
* Write form of {@link CliffPlacementSettings}, where table-or-array concepts are allowed to take an array form.
|
1916
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1928
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#CliffPlacementSettings Online documentation}
|
1917
1929
|
*/
|
1918
1930
|
export interface CliffPlacementSettingsWrite {
|
1919
1931
|
/**
|
@@ -1946,7 +1958,7 @@ declare module "factorio:runtime" {
|
|
1946
1958
|
* local mgs = surface.map_gen_settings
|
1947
1959
|
* mgs.property_expression_names["tile:deepwater:probability"] = -1000
|
1948
1960
|
* surface.map_gen_settings = mgs
|
1949
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1961
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#MapGenSettings Online documentation}
|
1950
1962
|
*/
|
1951
1963
|
export interface MapGenSettings {
|
1952
1964
|
/**
|
@@ -2016,7 +2028,7 @@ declare module "factorio:runtime" {
|
|
2016
2028
|
}
|
2017
2029
|
/**
|
2018
2030
|
* Write form of {@link MapGenSettings}, where table-or-array concepts are allowed to take an array form.
|
2019
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2031
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#MapGenSettings Online documentation}
|
2020
2032
|
*/
|
2021
2033
|
export interface MapGenSettingsWrite {
|
2022
2034
|
/**
|
@@ -2114,7 +2126,7 @@ declare module "factorio:runtime" {
|
|
2114
2126
|
}
|
2115
2127
|
/**
|
2116
2128
|
* An actual signal transmitted by the network.
|
2117
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2129
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#Signal Online documentation}
|
2118
2130
|
*/
|
2119
2131
|
export interface Signal {
|
2120
2132
|
/**
|
@@ -2138,7 +2150,7 @@ declare module "factorio:runtime" {
|
|
2138
2150
|
}
|
2139
2151
|
/**
|
2140
2152
|
* A single filter used by an infinity-filters instance.
|
2141
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2153
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#InfinityInventoryFilter Online documentation}
|
2142
2154
|
*/
|
2143
2155
|
export interface InfinityInventoryFilter {
|
2144
2156
|
/**
|
@@ -2160,7 +2172,7 @@ declare module "factorio:runtime" {
|
|
2160
2172
|
}
|
2161
2173
|
/**
|
2162
2174
|
* A single filter used by an infinity-pipe type entity.
|
2163
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2175
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#InfinityPipeFilter Online documentation}
|
2164
2176
|
*/
|
2165
2177
|
export interface InfinityPipeFilter {
|
2166
2178
|
/**
|
@@ -2214,7 +2226,7 @@ declare module "factorio:runtime" {
|
|
2214
2226
|
}
|
2215
2227
|
/**
|
2216
2228
|
* The settings used by a heat-interface type entity.
|
2217
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2229
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#HeatSetting Online documentation}
|
2218
2230
|
*/
|
2219
2231
|
export interface HeatSetting {
|
2220
2232
|
/**
|
@@ -2232,7 +2244,7 @@ declare module "factorio:runtime" {
|
|
2232
2244
|
}
|
2233
2245
|
/**
|
2234
2246
|
* A definition of a fluidbox connection point.
|
2235
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2247
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#FluidBoxConnection Online documentation}
|
2236
2248
|
*/
|
2237
2249
|
export interface FluidBoxConnection {
|
2238
2250
|
/**
|
@@ -2250,7 +2262,7 @@ declare module "factorio:runtime" {
|
|
2250
2262
|
}
|
2251
2263
|
/**
|
2252
2264
|
* A single pipe connection for a given fluidbox.
|
2253
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2265
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#PipeConnection Online documentation}
|
2254
2266
|
*/
|
2255
2267
|
export interface PipeConnection {
|
2256
2268
|
/**
|
@@ -2336,14 +2348,14 @@ declare module "factorio:runtime" {
|
|
2336
2348
|
* - `"≠"`: "not equal to"
|
2337
2349
|
* - `"!="`: "not equal to"
|
2338
2350
|
* @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.
|
2339
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2351
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ComparatorString Online documentation}
|
2340
2352
|
*/
|
2341
2353
|
export type ComparatorString = "=" | ">" | "<" | "≥" | ">=" | "≤" | "<=" | "≠" | "!="
|
2342
2354
|
/** @see ComparatorString */
|
2343
2355
|
export type ComparatorStringRead = "=" | ">" | "<" | "≥" | "≤" | "≠"
|
2344
2356
|
/**
|
2345
2357
|
* @see DeciderCombinatorParametersWrite
|
2346
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2358
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#DeciderCombinatorParameters Online documentation}
|
2347
2359
|
*/
|
2348
2360
|
export interface DeciderCombinatorParameters {
|
2349
2361
|
/**
|
@@ -2373,7 +2385,7 @@ declare module "factorio:runtime" {
|
|
2373
2385
|
}
|
2374
2386
|
/**
|
2375
2387
|
* Write form of {@link DeciderCombinatorParameters}, where table-or-array concepts are allowed to take an array form.
|
2376
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2388
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#DeciderCombinatorParameters Online documentation}
|
2377
2389
|
*/
|
2378
2390
|
export interface DeciderCombinatorParametersWrite {
|
2379
2391
|
/**
|
@@ -2407,7 +2419,7 @@ declare module "factorio:runtime" {
|
|
2407
2419
|
}
|
2408
2420
|
/**
|
2409
2421
|
* @see CircuitConditionWrite
|
2410
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2422
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#CircuitCondition Online documentation}
|
2411
2423
|
*/
|
2412
2424
|
export interface CircuitCondition {
|
2413
2425
|
/**
|
@@ -2429,7 +2441,7 @@ declare module "factorio:runtime" {
|
|
2429
2441
|
}
|
2430
2442
|
/**
|
2431
2443
|
* Write form of {@link CircuitCondition}, where table-or-array concepts are allowed to take an array form.
|
2432
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2444
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#CircuitCondition Online documentation}
|
2433
2445
|
*/
|
2434
2446
|
export interface CircuitConditionWrite {
|
2435
2447
|
/**
|
@@ -2451,7 +2463,7 @@ declare module "factorio:runtime" {
|
|
2451
2463
|
}
|
2452
2464
|
/**
|
2453
2465
|
* @see CircuitConditionDefinitionWrite
|
2454
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2466
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#CircuitConditionDefinition Online documentation}
|
2455
2467
|
*/
|
2456
2468
|
export interface CircuitConditionDefinition {
|
2457
2469
|
readonly condition: CircuitCondition
|
@@ -2462,7 +2474,7 @@ declare module "factorio:runtime" {
|
|
2462
2474
|
}
|
2463
2475
|
/**
|
2464
2476
|
* Write form of {@link CircuitConditionDefinition}, where table-or-array concepts are allowed to take an array form.
|
2465
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2477
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#CircuitConditionDefinition Online documentation}
|
2466
2478
|
*/
|
2467
2479
|
export interface CircuitConditionDefinitionWrite {
|
2468
2480
|
readonly condition: CircuitConditionWrite
|
@@ -2778,7 +2790,7 @@ declare module "factorio:runtime" {
|
|
2778
2790
|
* - {@link defines.command.stop}: {@link StopCommand}
|
2779
2791
|
* - {@link defines.command.flee}: {@link FleeCommand}
|
2780
2792
|
* - {@link defines.command.build_base}: {@link BuildBaseCommand}
|
2781
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2793
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#Command Online documentation}
|
2782
2794
|
*/
|
2783
2795
|
export type Command =
|
2784
2796
|
| AttackCommand
|
@@ -2792,7 +2804,7 @@ declare module "factorio:runtime" {
|
|
2792
2804
|
| BuildBaseCommand
|
2793
2805
|
/**
|
2794
2806
|
* Write form of {@link Command}, where table-or-array concepts are allowed to take an array form.
|
2795
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2807
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#Command Online documentation}
|
2796
2808
|
*/
|
2797
2809
|
export type CommandWrite =
|
2798
2810
|
| AttackCommand
|
@@ -2888,7 +2900,7 @@ declare module "factorio:runtime" {
|
|
2888
2900
|
* {name="copper-plate", count=47}
|
2889
2901
|
* @example These are both full stacks of iron plates (for iron-plate, a full stack is 100 plates):
|
2890
2902
|
* "iron-plate"
|
2891
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2903
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#SimpleItemStack Online documentation}
|
2892
2904
|
*/
|
2893
2905
|
export type SimpleItemStack = string | ItemStackDefinition
|
2894
2906
|
/**
|
@@ -2898,7 +2910,7 @@ declare module "factorio:runtime" {
|
|
2898
2910
|
* - `string`: The fluid name.
|
2899
2911
|
* - {@link LuaFluidPrototype}: The fluid prototype.
|
2900
2912
|
* - {@link Fluid}: The fluid.
|
2901
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2913
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#FluidIdentification Online documentation}
|
2902
2914
|
*/
|
2903
2915
|
export type FluidIdentification = string | LuaFluidPrototype | Fluid
|
2904
2916
|
/**
|
@@ -2908,7 +2920,7 @@ declare module "factorio:runtime" {
|
|
2908
2920
|
* - ForceIndex: The force index.
|
2909
2921
|
* - `string`: The force name.
|
2910
2922
|
* - {@link LuaForce}: A reference to {@link LuaForce} may be passed directly.
|
2911
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2923
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ForceIdentification Online documentation}
|
2912
2924
|
*/
|
2913
2925
|
export type ForceIdentification = ForceIndex | string | LuaForce
|
2914
2926
|
/**
|
@@ -2918,7 +2930,7 @@ declare module "factorio:runtime" {
|
|
2918
2930
|
* - `string`: The technology name.
|
2919
2931
|
* - {@link LuaTechnology}: A reference to {@link LuaTechnology} may be passed directly.
|
2920
2932
|
* - {@link LuaTechnologyPrototype}: A reference to {@link LuaTechnologyPrototype} may be passed directly.
|
2921
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2933
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#TechnologyIdentification Online documentation}
|
2922
2934
|
*/
|
2923
2935
|
export type TechnologyIdentification = string | LuaTechnology | LuaTechnologyPrototype
|
2924
2936
|
/**
|
@@ -2928,7 +2940,7 @@ declare module "factorio:runtime" {
|
|
2928
2940
|
* - 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.
|
2929
2941
|
* - `string`: It will be the surface name. E.g. `"nauvis"`.
|
2930
2942
|
* - {@link LuaSurface}: A reference to {@link LuaSurface} may be passed directly.
|
2931
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2943
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#SurfaceIdentification Online documentation}
|
2932
2944
|
*/
|
2933
2945
|
export type SurfaceIdentification = SurfaceIndex | string | LuaSurface
|
2934
2946
|
/**
|
@@ -2938,7 +2950,7 @@ declare module "factorio:runtime" {
|
|
2938
2950
|
* - PlayerIndex: The player index.
|
2939
2951
|
* - `string`: The player name.
|
2940
2952
|
* - {@link LuaPlayer}: A reference to {@link LuaPlayer} may be passed directly.
|
2941
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2953
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#PlayerIdentification Online documentation}
|
2942
2954
|
*/
|
2943
2955
|
export type PlayerIdentification = PlayerIndex | string | LuaPlayer
|
2944
2956
|
/**
|
@@ -2947,7 +2959,7 @@ declare module "factorio:runtime" {
|
|
2947
2959
|
* ## Union members
|
2948
2960
|
* - {@link SimpleItemStack}
|
2949
2961
|
* - {@link LuaItemStack}
|
2950
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2962
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ItemStackIdentification Online documentation}
|
2951
2963
|
*/
|
2952
2964
|
export type ItemStackIdentification = SimpleItemStack | LuaItemStack
|
2953
2965
|
/**
|
@@ -2957,7 +2969,7 @@ declare module "factorio:runtime" {
|
|
2957
2969
|
* - {@link LuaEntity}: The entity.
|
2958
2970
|
* - {@link LuaEntityPrototype}: The entity prototype.
|
2959
2971
|
* - `string`: The prototype name.
|
2960
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2972
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#EntityPrototypeIdentification Online documentation}
|
2961
2973
|
*/
|
2962
2974
|
export type EntityPrototypeIdentification = LuaEntity | LuaEntityPrototype | string
|
2963
2975
|
/**
|
@@ -2967,12 +2979,12 @@ declare module "factorio:runtime" {
|
|
2967
2979
|
* - {@link LuaItemStack}: The item.
|
2968
2980
|
* - {@link LuaItemPrototype}: The item prototype.
|
2969
2981
|
* - `string`: The prototype name.
|
2970
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2982
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ItemPrototypeIdentification Online documentation}
|
2971
2983
|
*/
|
2972
2984
|
export type ItemPrototypeIdentification = LuaItemStack | LuaItemPrototype | string
|
2973
2985
|
/**
|
2974
2986
|
* @see WaitConditionWrite
|
2975
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2987
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#WaitCondition Online documentation}
|
2976
2988
|
*/
|
2977
2989
|
export interface WaitCondition {
|
2978
2990
|
/**
|
@@ -3004,7 +3016,7 @@ declare module "factorio:runtime" {
|
|
3004
3016
|
}
|
3005
3017
|
/**
|
3006
3018
|
* Write form of {@link WaitCondition}, where table-or-array concepts are allowed to take an array form.
|
3007
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3019
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#WaitCondition Online documentation}
|
3008
3020
|
*/
|
3009
3021
|
export interface WaitConditionWrite {
|
3010
3022
|
/**
|
@@ -3036,7 +3048,7 @@ declare module "factorio:runtime" {
|
|
3036
3048
|
}
|
3037
3049
|
/**
|
3038
3050
|
* @see TrainScheduleRecordWrite
|
3039
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3051
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#TrainScheduleRecord Online documentation}
|
3040
3052
|
*/
|
3041
3053
|
export interface TrainScheduleRecord {
|
3042
3054
|
/**
|
@@ -3059,7 +3071,7 @@ declare module "factorio:runtime" {
|
|
3059
3071
|
}
|
3060
3072
|
/**
|
3061
3073
|
* Write form of {@link TrainScheduleRecord}, where table-or-array concepts are allowed to take an array form.
|
3062
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3074
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#TrainScheduleRecord Online documentation}
|
3063
3075
|
*/
|
3064
3076
|
export interface TrainScheduleRecordWrite {
|
3065
3077
|
/**
|
@@ -3082,7 +3094,7 @@ declare module "factorio:runtime" {
|
|
3082
3094
|
}
|
3083
3095
|
/**
|
3084
3096
|
* @see TrainScheduleWrite
|
3085
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3097
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#TrainSchedule Online documentation}
|
3086
3098
|
*/
|
3087
3099
|
export interface TrainSchedule {
|
3088
3100
|
/**
|
@@ -3093,7 +3105,7 @@ declare module "factorio:runtime" {
|
|
3093
3105
|
}
|
3094
3106
|
/**
|
3095
3107
|
* Write form of {@link TrainSchedule}, where table-or-array concepts are allowed to take an array form.
|
3096
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3108
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#TrainSchedule Online documentation}
|
3097
3109
|
*/
|
3098
3110
|
export interface TrainScheduleWrite {
|
3099
3111
|
/**
|
@@ -3172,7 +3184,7 @@ declare module "factorio:runtime" {
|
|
3172
3184
|
* - `"position"`: {@link PositionGuiArrowSpecification}
|
3173
3185
|
* - `"crafting_queue"`: {@link CraftingQueueGuiArrowSpecification}
|
3174
3186
|
* - `"item_stack"`: {@link ItemStackGuiArrowSpecification}
|
3175
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3187
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GuiArrowSpecification Online documentation}
|
3176
3188
|
*/
|
3177
3189
|
export type GuiArrowSpecification =
|
3178
3190
|
| EntityGuiArrowSpecification
|
@@ -3247,7 +3259,7 @@ declare module "factorio:runtime" {
|
|
3247
3259
|
* - `"equipment"`
|
3248
3260
|
* - `"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.
|
3249
3261
|
* - `"utility"` - sprite defined in the utility-sprites object, these are the pictures used by the game internally for the UI.
|
3250
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3262
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#SpritePath Online documentation}
|
3251
3263
|
*/
|
3252
3264
|
export type SpritePath =
|
3253
3265
|
| (string & {
|
@@ -3297,7 +3309,7 @@ declare module "factorio:runtime" {
|
|
3297
3309
|
* - `"entity-rotated"` - Uses {@link import("factorio:prototype").EntityPrototype#rotated_sound EntityPrototype::rotated_sound}
|
3298
3310
|
* - `"entity-open"` - Uses {@link import("factorio:prototype").EntityPrototype#open_sound Entity::open_sound}
|
3299
3311
|
* - `"entity-close"` - Uses {@link import("factorio:prototype").EntityPrototype#close_sound Entity::close_sound}
|
3300
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3312
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#SoundPath Online documentation}
|
3301
3313
|
*/
|
3302
3314
|
export type SoundPath =
|
3303
3315
|
| (string & {
|
@@ -3316,7 +3328,7 @@ declare module "factorio:runtime" {
|
|
3316
3328
|
* speed={bonus=-0.15},
|
3317
3329
|
* productivity={bonus=0.06},
|
3318
3330
|
* pollution={bonus=0.075}}
|
3319
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3331
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ModuleEffects Online documentation}
|
3320
3332
|
*/
|
3321
3333
|
export interface ModuleEffects {
|
3322
3334
|
readonly consumption?: ModuleEffectValue
|
@@ -3356,7 +3368,7 @@ declare module "factorio:runtime" {
|
|
3356
3368
|
* - `"not-upgradable"`: Prevents the entity from being selected by the upgrade planner.
|
3357
3369
|
* - `"not-in-kill-statistics"`: Prevents the entity from being shown in the kill statistics.
|
3358
3370
|
* - `"not-in-made-in"`: Prevents the entity from being shown in the "made in" list in recipe tooltips.
|
3359
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3371
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#EntityPrototypeFlags Online documentation}
|
3360
3372
|
*/
|
3361
3373
|
export interface EntityPrototypeFlags {
|
3362
3374
|
/**
|
@@ -3478,7 +3490,7 @@ declare module "factorio:runtime" {
|
|
3478
3490
|
* - `"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.
|
3479
3491
|
* - `"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.
|
3480
3492
|
* - `"spawnable"`: Allows the item to be spawned by a quickbar shortcut or custom input.
|
3481
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3493
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ItemPrototypeFlags Online documentation}
|
3482
3494
|
*/
|
3483
3495
|
export interface ItemPrototypeFlags {
|
3484
3496
|
/**
|
@@ -3545,7 +3557,7 @@ declare module "factorio:runtime" {
|
|
3545
3557
|
* - `"rail-layer"`
|
3546
3558
|
* - `"transport-belt-layer"`
|
3547
3559
|
* - `"not-setup"`
|
3548
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3560
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#CollisionMaskLayer Online documentation}
|
3549
3561
|
*/
|
3550
3562
|
export type CollisionMaskLayer =
|
3551
3563
|
| "ground-tile"
|
@@ -3564,7 +3576,7 @@ declare module "factorio:runtime" {
|
|
3564
3576
|
| `layer-${bigint}`
|
3565
3577
|
/**
|
3566
3578
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
3567
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3579
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#CollisionMask Online documentation}
|
3568
3580
|
*/
|
3569
3581
|
export type CollisionMask = {
|
3570
3582
|
readonly [T in CollisionMaskLayer]?: true
|
@@ -3577,7 +3589,7 @@ declare module "factorio:runtime" {
|
|
3577
3589
|
* - `"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.
|
3578
3590
|
* - `"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.
|
3579
3591
|
* - `"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.
|
3580
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3592
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#CollisionMaskWithFlags Online documentation}
|
3581
3593
|
*/
|
3582
3594
|
export type CollisionMaskWithFlags = {
|
3583
3595
|
/**
|
@@ -3597,7 +3609,7 @@ declare module "factorio:runtime" {
|
|
3597
3609
|
}
|
3598
3610
|
/**
|
3599
3611
|
* A set of trigger target masks.
|
3600
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3612
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#TriggerTargetMask Online documentation}
|
3601
3613
|
*/
|
3602
3614
|
export type TriggerTargetMask = Record<string, boolean>
|
3603
3615
|
export interface TriggerEffectItem {
|
@@ -3786,7 +3798,7 @@ declare module "factorio:runtime" {
|
|
3786
3798
|
* Other attributes may be specified depending on `type`:
|
3787
3799
|
* - `"projectile"`: {@link ProjectileAttackParameters}
|
3788
3800
|
* - `"stream"`: {@link StreamAttackParameters}
|
3789
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3801
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#AttackParameters Online documentation}
|
3790
3802
|
*/
|
3791
3803
|
export type AttackParameters = ProjectileAttackParameters | StreamAttackParameters | OtherAttackParameters
|
3792
3804
|
export interface BaseCapsuleAction {
|
@@ -3849,7 +3861,7 @@ declare module "factorio:runtime" {
|
|
3849
3861
|
* - `"use-on-self"`: {@link UseOnSelfCapsuleAction}
|
3850
3862
|
* - `"artillery-remote"`: {@link ArtilleryRemoteCapsuleAction}
|
3851
3863
|
* - `"destroy-cliffs"`: {@link DestroyCliffsCapsuleAction}
|
3852
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3864
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#CapsuleAction Online documentation}
|
3853
3865
|
*/
|
3854
3866
|
export type CapsuleAction =
|
3855
3867
|
| ThrowCapsuleAction
|
@@ -3885,7 +3897,7 @@ declare module "factorio:runtime" {
|
|
3885
3897
|
* - `"avoid-rolling-stock"`: Selects entities that are not `rolling-stock`s.
|
3886
3898
|
* - `"entity-ghost"`: Selects entities that are `entity-ghost`s.
|
3887
3899
|
* - `"tile-ghost"`: Selects entities that are `tile-ghost`s.
|
3888
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3900
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#SelectionModeFlags Online documentation}
|
3889
3901
|
*/
|
3890
3902
|
export interface SelectionModeFlags {
|
3891
3903
|
/**
|
@@ -4010,12 +4022,12 @@ declare module "factorio:runtime" {
|
|
4010
4022
|
}
|
4011
4023
|
/**
|
4012
4024
|
* Any basic type (string, number, boolean) or table.
|
4013
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4025
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#AnyBasic Online documentation}
|
4014
4026
|
*/
|
4015
4027
|
export type AnyBasic = string | boolean | number | table
|
4016
4028
|
/**
|
4017
4029
|
* Any basic type (string, number, boolean), table, or LuaObject.
|
4018
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4030
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#Any Online documentation}
|
4019
4031
|
*/
|
4020
4032
|
export type Any = string | boolean | number | table | LuaObject
|
4021
4033
|
export interface ProgrammableSpeakerParameters {
|
@@ -4053,7 +4065,7 @@ declare module "factorio:runtime" {
|
|
4053
4065
|
* - `"top-right"`
|
4054
4066
|
* - `"right"`: The same as `"middle-right"`
|
4055
4067
|
* - `"bottom-right"`
|
4056
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4068
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#Alignment Online documentation}
|
4057
4069
|
*/
|
4058
4070
|
export type Alignment =
|
4059
4071
|
| "top-left"
|
@@ -4068,8 +4080,8 @@ declare module "factorio:runtime" {
|
|
4068
4080
|
| "right"
|
4069
4081
|
| "bottom-right"
|
4070
4082
|
/**
|
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.
|
4072
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4083
|
+
* 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.95/events.html the list of Factorio events} for more information on these.
|
4084
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#EventData Online documentation}
|
4073
4085
|
*/
|
4074
4086
|
export interface EventData {
|
4075
4087
|
/**
|
@@ -4179,7 +4191,7 @@ declare module "factorio:runtime" {
|
|
4179
4191
|
* - `"button-7"`
|
4180
4192
|
* - `"button-8"`
|
4181
4193
|
* - `"button-9"`
|
4182
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4194
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#MouseButtonFlags Online documentation}
|
4183
4195
|
*/
|
4184
4196
|
export interface MouseButtonFlags {
|
4185
4197
|
readonly left?: true
|
@@ -4204,7 +4216,7 @@ declare module "factorio:runtime" {
|
|
4204
4216
|
* - `"train-visualization"`: White box.
|
4205
4217
|
* - `"logistics"`: Light blue box.
|
4206
4218
|
* - `"blueprint-snap-rectangle"`: Green box.
|
4207
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4219
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#CursorBoxRenderType Online documentation}
|
4208
4220
|
*/
|
4209
4221
|
export type CursorBoxRenderType =
|
4210
4222
|
| "entity"
|
@@ -4224,7 +4236,7 @@ declare module "factorio:runtime" {
|
|
4224
4236
|
* - `"not-friend"`: Forces which are not friends pass.
|
4225
4237
|
* - `"same"`: The same force pass.
|
4226
4238
|
* - `"not-same"`: The non-same forces pass.
|
4227
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4239
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ForceCondition Online documentation}
|
4228
4240
|
*/
|
4229
4241
|
export type ForceCondition = "all" | "enemy" | "ally" | "friend" | "not-friend" | "same" | "not-same"
|
4230
4242
|
/**
|
@@ -4275,7 +4287,7 @@ declare module "factorio:runtime" {
|
|
4275
4287
|
* - `"collision-selection-box"`: 189
|
4276
4288
|
* - `"arrow"`: 190
|
4277
4289
|
* - `"cursor"`: 210
|
4278
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4290
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#RenderLayer Online documentation}
|
4279
4291
|
*/
|
4280
4292
|
export type RenderLayer =
|
4281
4293
|
| `${bigint}`
|
@@ -4341,7 +4353,7 @@ declare module "factorio:runtime" {
|
|
4341
4353
|
* - `"walking"`
|
4342
4354
|
* - `"alert"`
|
4343
4355
|
* - `"wind"`
|
4344
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4356
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#SoundType Online documentation}
|
4345
4357
|
*/
|
4346
4358
|
export type SoundType = "game-effect" | "gui-effect" | "ambient" | "environment" | "walking" | "alert" | "wind"
|
4347
4359
|
/**
|
@@ -4371,7 +4383,7 @@ declare module "factorio:runtime" {
|
|
4371
4383
|
* - `"tabbed-pane"`: A collection of `tab`s and their contents. Relevant event: {@link OnGuiSelectedTabChangedEvent on_gui_selected_tab_changed}
|
4372
4384
|
* - `"tab"`: A tab for use in a `tabbed-pane`.
|
4373
4385
|
* - `"switch"`: A switch with three possible states. Can have labels attached to either side. Relevant event: {@link OnGuiSwitchStateChangedEvent on_gui_switch_state_changed}
|
4374
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4386
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GuiElementType Online documentation}
|
4375
4387
|
*/
|
4376
4388
|
export type GuiElementType =
|
4377
4389
|
| "button"
|
@@ -4409,7 +4421,7 @@ declare module "factorio:runtime" {
|
|
4409
4421
|
* - `"position"`
|
4410
4422
|
* - `"crafting_queue"`
|
4411
4423
|
* - `"item_stack"`
|
4412
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4424
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#GuiArrowType Online documentation}
|
4413
4425
|
*/
|
4414
4426
|
export type GuiArrowType =
|
4415
4427
|
| "nowhere"
|
@@ -4435,7 +4447,7 @@ declare module "factorio:runtime" {
|
|
4435
4447
|
* - TechnologyPrototypeFilter: for type `"technology"`
|
4436
4448
|
* @see PrototypeFilterWrite
|
4437
4449
|
* @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.
|
4438
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4450
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#PrototypeFilter Online documentation}
|
4439
4451
|
*/
|
4440
4452
|
export type PrototypeFilter = (
|
4441
4453
|
| ItemPrototypeFilter
|
@@ -4450,7 +4462,7 @@ declare module "factorio:runtime" {
|
|
4450
4462
|
)[]
|
4451
4463
|
/**
|
4452
4464
|
* Write form of {@link PrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
4453
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4465
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#PrototypeFilter Online documentation}
|
4454
4466
|
*/
|
4455
4467
|
export type PrototypeFilterWrite = readonly (
|
4456
4468
|
| ItemPrototypeFilterWrite
|
@@ -4796,7 +4808,7 @@ declare module "factorio:runtime" {
|
|
4796
4808
|
* - `"fuel-acceleration-multiplier"`: {@link FuelAccelerationMultiplierItemPrototypeFilter}
|
4797
4809
|
* - `"fuel-top-speed-multiplier"`: {@link FuelTopSpeedMultiplierItemPrototypeFilter}
|
4798
4810
|
* - `"fuel-emissions-multiplier"`: {@link FuelEmissionsMultiplierItemPrototypeFilter}
|
4799
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4811
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ItemPrototypeFilter Online documentation}
|
4800
4812
|
*/
|
4801
4813
|
export type ItemPrototypeFilter =
|
4802
4814
|
| PlaceResultItemPrototypeFilter
|
@@ -4818,7 +4830,7 @@ declare module "factorio:runtime" {
|
|
4818
4830
|
| OtherItemPrototypeFilter
|
4819
4831
|
/**
|
4820
4832
|
* Write form of {@link ItemPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
4821
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4833
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ItemPrototypeFilter Online documentation}
|
4822
4834
|
*/
|
4823
4835
|
export type ItemPrototypeFilterWrite =
|
4824
4836
|
| PlaceResultItemPrototypeFilterWrite
|
@@ -4894,7 +4906,7 @@ declare module "factorio:runtime" {
|
|
4894
4906
|
* - `"type"`: {@link TypeModSettingPrototypeFilter}
|
4895
4907
|
* - `"mod"`: {@link ModModSettingPrototypeFilter}
|
4896
4908
|
* - `"setting-type"`: {@link SettingTypeModSettingPrototypeFilter}
|
4897
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4909
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#ModSettingPrototypeFilter Online documentation}
|
4898
4910
|
*/
|
4899
4911
|
export type ModSettingPrototypeFilter =
|
4900
4912
|
| TypeModSettingPrototypeFilter
|
@@ -5022,7 +5034,7 @@ declare module "factorio:runtime" {
|
|
5022
5034
|
* - `"level"`: {@link LevelTechnologyPrototypeFilter}
|
5023
5035
|
* - `"max-level"`: {@link MaxLevelTechnologyPrototypeFilter}
|
5024
5036
|
* - `"time"`: {@link TimeTechnologyPrototypeFilter}
|
5025
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5037
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#TechnologyPrototypeFilter Online documentation}
|
5026
5038
|
*/
|
5027
5039
|
export type TechnologyPrototypeFilter =
|
5028
5040
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -5033,7 +5045,7 @@ declare module "factorio:runtime" {
|
|
5033
5045
|
| OtherTechnologyPrototypeFilter
|
5034
5046
|
/**
|
5035
5047
|
* Write form of {@link TechnologyPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5036
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5048
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#TechnologyPrototypeFilter Online documentation}
|
5037
5049
|
*/
|
5038
5050
|
export type TechnologyPrototypeFilterWrite =
|
5039
5051
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -5083,7 +5095,7 @@ declare module "factorio:runtime" {
|
|
5083
5095
|
*
|
5084
5096
|
* Other attributes may be specified depending on `filter`:
|
5085
5097
|
* - `"collision-mask"`: {@link CollisionMaskDecorativePrototypeFilter}
|
5086
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5098
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#DecorativePrototypeFilter Online documentation}
|
5087
5099
|
*/
|
5088
5100
|
export type DecorativePrototypeFilter = CollisionMaskDecorativePrototypeFilter | OtherDecorativePrototypeFilter
|
5089
5101
|
/**
|
@@ -5126,7 +5138,7 @@ declare module "factorio:runtime" {
|
|
5126
5138
|
*
|
5127
5139
|
* Other attributes may be specified depending on `filter`:
|
5128
5140
|
* - `"type"`: {@link TypeAchievementPrototypeFilter}
|
5129
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5141
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#AchievementPrototypeFilter Online documentation}
|
5130
5142
|
*/
|
5131
5143
|
export type AchievementPrototypeFilter = TypeAchievementPrototypeFilter | OtherAchievementPrototypeFilter
|
5132
5144
|
/**
|
@@ -5311,7 +5323,7 @@ declare module "factorio:runtime" {
|
|
5311
5323
|
* - `"fuel-value"`: {@link FuelValueFluidPrototypeFilter}
|
5312
5324
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierFluidPrototypeFilter}
|
5313
5325
|
* - `"gas-temperature"`: {@link GasTemperatureFluidPrototypeFilter}
|
5314
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5326
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#FluidPrototypeFilter Online documentation}
|
5315
5327
|
*/
|
5316
5328
|
export type FluidPrototypeFilter =
|
5317
5329
|
| NameFluidPrototypeFilter
|
@@ -5325,7 +5337,7 @@ declare module "factorio:runtime" {
|
|
5325
5337
|
| OtherFluidPrototypeFilter
|
5326
5338
|
/**
|
5327
5339
|
* Write form of {@link FluidPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5328
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5340
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#FluidPrototypeFilter Online documentation}
|
5329
5341
|
*/
|
5330
5342
|
export type FluidPrototypeFilterWrite =
|
5331
5343
|
| NameFluidPrototypeFilter
|
@@ -5377,7 +5389,7 @@ declare module "factorio:runtime" {
|
|
5377
5389
|
*
|
5378
5390
|
* Other attributes may be specified depending on `filter`:
|
5379
5391
|
* - `"type"`: {@link TypeEquipmentPrototypeFilter}
|
5380
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5392
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#EquipmentPrototypeFilter Online documentation}
|
5381
5393
|
*/
|
5382
5394
|
export type EquipmentPrototypeFilter = TypeEquipmentPrototypeFilter | OtherEquipmentPrototypeFilter
|
5383
5395
|
/**
|
@@ -5510,7 +5522,7 @@ declare module "factorio:runtime" {
|
|
5510
5522
|
* - `"vehicle-friction-modifier"`: {@link VehicleFrictionModifierTilePrototypeFilter}
|
5511
5523
|
* - `"decorative-removal-probability"`: {@link DecorativeRemovalProbabilityTilePrototypeFilter}
|
5512
5524
|
* - `"emissions"`: {@link EmissionsTilePrototypeFilter}
|
5513
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5525
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#TilePrototypeFilter Online documentation}
|
5514
5526
|
*/
|
5515
5527
|
export type TilePrototypeFilter =
|
5516
5528
|
| CollisionMaskTilePrototypeFilter
|
@@ -5521,7 +5533,7 @@ declare module "factorio:runtime" {
|
|
5521
5533
|
| OtherTilePrototypeFilter
|
5522
5534
|
/**
|
5523
5535
|
* Write form of {@link TilePrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5524
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5536
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#TilePrototypeFilter Online documentation}
|
5525
5537
|
*/
|
5526
5538
|
export type TilePrototypeFilterWrite =
|
5527
5539
|
| CollisionMaskTilePrototypeFilter
|
@@ -5785,7 +5797,7 @@ declare module "factorio:runtime" {
|
|
5785
5797
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierRecipePrototypeFilter}
|
5786
5798
|
* - `"request-paste-multiplier"`: {@link RequestPasteMultiplierRecipePrototypeFilter}
|
5787
5799
|
* - `"overload-multiplier"`: {@link OverloadMultiplierRecipePrototypeFilter}
|
5788
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5800
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#RecipePrototypeFilter Online documentation}
|
5789
5801
|
*/
|
5790
5802
|
export type RecipePrototypeFilter =
|
5791
5803
|
| HasIngredientItemRecipePrototypeFilter
|
@@ -5801,7 +5813,7 @@ declare module "factorio:runtime" {
|
|
5801
5813
|
| OtherRecipePrototypeFilter
|
5802
5814
|
/**
|
5803
5815
|
* Write form of {@link RecipePrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5804
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5816
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#RecipePrototypeFilter Online documentation}
|
5805
5817
|
*/
|
5806
5818
|
export type RecipePrototypeFilterWrite =
|
5807
5819
|
| HasIngredientItemRecipePrototypeFilterWrite
|
@@ -6038,7 +6050,7 @@ declare module "factorio:runtime" {
|
|
6038
6050
|
* - `"selection-priority"`: {@link SelectionPriorityEntityPrototypeFilter}
|
6039
6051
|
* - `"emissions"`: {@link EmissionsEntityPrototypeFilter}
|
6040
6052
|
* - `"crafting-category"`: {@link CraftingCategoryEntityPrototypeFilter}
|
6041
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6053
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#EntityPrototypeFilter Online documentation}
|
6042
6054
|
*/
|
6043
6055
|
export type EntityPrototypeFilter =
|
6044
6056
|
| NameEntityPrototypeFilter
|
@@ -6052,7 +6064,7 @@ declare module "factorio:runtime" {
|
|
6052
6064
|
| OtherEntityPrototypeFilter
|
6053
6065
|
/**
|
6054
6066
|
* Write form of {@link EntityPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
6055
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6067
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#EntityPrototypeFilter Online documentation}
|
6056
6068
|
*/
|
6057
6069
|
export type EntityPrototypeFilterWrite =
|
6058
6070
|
| NameEntityPrototypeFilter
|
@@ -6091,7 +6103,7 @@ declare module "factorio:runtime" {
|
|
6091
6103
|
* - {@link LuaPlayerRepairedEntityEventFilter}
|
6092
6104
|
* @see EventFilterWrite
|
6093
6105
|
* @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.
|
6094
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6106
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#EventFilter Online documentation}
|
6095
6107
|
*/
|
6096
6108
|
export type EventFilter = (
|
6097
6109
|
| LuaEntityClonedEventFilter
|
@@ -6118,7 +6130,7 @@ declare module "factorio:runtime" {
|
|
6118
6130
|
)[]
|
6119
6131
|
/**
|
6120
6132
|
* Write form of {@link EventFilter}, where table-or-array concepts are allowed to take an array form.
|
6121
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6133
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#EventFilter Online documentation}
|
6122
6134
|
*/
|
6123
6135
|
export type EventFilterWrite = readonly (
|
6124
6136
|
| LuaEntityClonedEventFilter
|
@@ -6246,7 +6258,7 @@ declare module "factorio:runtime" {
|
|
6246
6258
|
* - `"name"`: {@link NameScriptRaisedReviveEventFilter}
|
6247
6259
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedReviveEventFilter}
|
6248
6260
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedReviveEventFilter}
|
6249
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6261
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaScriptRaisedReviveEventFilter Online documentation}
|
6250
6262
|
*/
|
6251
6263
|
export type LuaScriptRaisedReviveEventFilter =
|
6252
6264
|
| TypeScriptRaisedReviveEventFilter
|
@@ -6353,7 +6365,7 @@ declare module "factorio:runtime" {
|
|
6353
6365
|
* - `"name"`: {@link NameEntityDiedEventFilter}
|
6354
6366
|
* - `"ghost_type"`: {@link GhostTypeEntityDiedEventFilter}
|
6355
6367
|
* - `"ghost_name"`: {@link GhostNameEntityDiedEventFilter}
|
6356
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6368
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaEntityDiedEventFilter Online documentation}
|
6357
6369
|
*/
|
6358
6370
|
export type LuaEntityDiedEventFilter =
|
6359
6371
|
| TypeEntityDiedEventFilter
|
@@ -6462,7 +6474,7 @@ declare module "factorio:runtime" {
|
|
6462
6474
|
* - `"name"`: {@link NameEntityMarkedForDeconstructionEventFilter}
|
6463
6475
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForDeconstructionEventFilter}
|
6464
6476
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForDeconstructionEventFilter}
|
6465
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6477
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaEntityMarkedForDeconstructionEventFilter Online documentation}
|
6466
6478
|
*/
|
6467
6479
|
export type LuaEntityMarkedForDeconstructionEventFilter =
|
6468
6480
|
| TypeEntityMarkedForDeconstructionEventFilter
|
@@ -6569,7 +6581,7 @@ declare module "factorio:runtime" {
|
|
6569
6581
|
* - `"name"`: {@link NamePreGhostDeconstructedEventFilter}
|
6570
6582
|
* - `"ghost_type"`: {@link GhostTypePreGhostDeconstructedEventFilter}
|
6571
6583
|
* - `"ghost_name"`: {@link GhostNamePreGhostDeconstructedEventFilter}
|
6572
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6584
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaPreGhostDeconstructedEventFilter Online documentation}
|
6573
6585
|
*/
|
6574
6586
|
export type LuaPreGhostDeconstructedEventFilter =
|
6575
6587
|
| TypePreGhostDeconstructedEventFilter
|
@@ -6676,7 +6688,7 @@ declare module "factorio:runtime" {
|
|
6676
6688
|
* - `"name"`: {@link NameScriptRaisedDestroyEventFilter}
|
6677
6689
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedDestroyEventFilter}
|
6678
6690
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedDestroyEventFilter}
|
6679
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6691
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaScriptRaisedDestroyEventFilter Online documentation}
|
6680
6692
|
*/
|
6681
6693
|
export type LuaScriptRaisedDestroyEventFilter =
|
6682
6694
|
| TypeScriptRaisedDestroyEventFilter
|
@@ -6783,7 +6795,7 @@ declare module "factorio:runtime" {
|
|
6783
6795
|
* - `"name"`: {@link NameUpgradeCancelledEventFilter}
|
6784
6796
|
* - `"ghost_type"`: {@link GhostTypeUpgradeCancelledEventFilter}
|
6785
6797
|
* - `"ghost_name"`: {@link GhostNameUpgradeCancelledEventFilter}
|
6786
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6798
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaUpgradeCancelledEventFilter Online documentation}
|
6787
6799
|
*/
|
6788
6800
|
export type LuaUpgradeCancelledEventFilter =
|
6789
6801
|
| TypeUpgradeCancelledEventFilter
|
@@ -6890,7 +6902,7 @@ declare module "factorio:runtime" {
|
|
6890
6902
|
* - `"name"`: {@link NamePlayerRepairedEntityEventFilter}
|
6891
6903
|
* - `"ghost_type"`: {@link GhostTypePlayerRepairedEntityEventFilter}
|
6892
6904
|
* - `"ghost_name"`: {@link GhostNamePlayerRepairedEntityEventFilter}
|
6893
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6905
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaPlayerRepairedEntityEventFilter Online documentation}
|
6894
6906
|
*/
|
6895
6907
|
export type LuaPlayerRepairedEntityEventFilter =
|
6896
6908
|
| TypePlayerRepairedEntityEventFilter
|
@@ -6997,7 +7009,7 @@ declare module "factorio:runtime" {
|
|
6997
7009
|
* - `"name"`: {@link NameScriptRaisedTeleportedEventFilter}
|
6998
7010
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedTeleportedEventFilter}
|
6999
7011
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedTeleportedEventFilter}
|
7000
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7012
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaScriptRaisedTeleportedEventFilter Online documentation}
|
7001
7013
|
*/
|
7002
7014
|
export type LuaScriptRaisedTeleportedEventFilter =
|
7003
7015
|
| TypeScriptRaisedTeleportedEventFilter
|
@@ -7104,7 +7116,7 @@ declare module "factorio:runtime" {
|
|
7104
7116
|
* - `"name"`: {@link NameEntityMarkedForUpgradeEventFilter}
|
7105
7117
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForUpgradeEventFilter}
|
7106
7118
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForUpgradeEventFilter}
|
7107
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7119
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaEntityMarkedForUpgradeEventFilter Online documentation}
|
7108
7120
|
*/
|
7109
7121
|
export type LuaEntityMarkedForUpgradeEventFilter =
|
7110
7122
|
| TypeEntityMarkedForUpgradeEventFilter
|
@@ -7146,7 +7158,7 @@ declare module "factorio:runtime" {
|
|
7146
7158
|
*
|
7147
7159
|
* Other attributes may be specified depending on `filter`:
|
7148
7160
|
* - `"type"`: {@link TypePostEntityDiedEventFilter}
|
7149
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7161
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaPostEntityDiedEventFilter Online documentation}
|
7150
7162
|
*/
|
7151
7163
|
export type LuaPostEntityDiedEventFilter = TypePostEntityDiedEventFilter
|
7152
7164
|
/**
|
@@ -7248,7 +7260,7 @@ declare module "factorio:runtime" {
|
|
7248
7260
|
* - `"name"`: {@link NamePreRobotMinedEntityEventFilter}
|
7249
7261
|
* - `"ghost_type"`: {@link GhostTypePreRobotMinedEntityEventFilter}
|
7250
7262
|
* - `"ghost_name"`: {@link GhostNamePreRobotMinedEntityEventFilter}
|
7251
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7263
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaPreRobotMinedEntityEventFilter Online documentation}
|
7252
7264
|
*/
|
7253
7265
|
export type LuaPreRobotMinedEntityEventFilter =
|
7254
7266
|
| TypePreRobotMinedEntityEventFilter
|
@@ -7355,7 +7367,7 @@ declare module "factorio:runtime" {
|
|
7355
7367
|
* - `"name"`: {@link NameEntityClonedEventFilter}
|
7356
7368
|
* - `"ghost_type"`: {@link GhostTypeEntityClonedEventFilter}
|
7357
7369
|
* - `"ghost_name"`: {@link GhostNameEntityClonedEventFilter}
|
7358
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7370
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaEntityClonedEventFilter Online documentation}
|
7359
7371
|
*/
|
7360
7372
|
export type LuaEntityClonedEventFilter =
|
7361
7373
|
| TypeEntityClonedEventFilter
|
@@ -7462,7 +7474,7 @@ declare module "factorio:runtime" {
|
|
7462
7474
|
* - `"name"`: {@link NameScriptRaisedBuiltEventFilter}
|
7463
7475
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedBuiltEventFilter}
|
7464
7476
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedBuiltEventFilter}
|
7465
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7477
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaScriptRaisedBuiltEventFilter Online documentation}
|
7466
7478
|
*/
|
7467
7479
|
export type LuaScriptRaisedBuiltEventFilter =
|
7468
7480
|
| TypeScriptRaisedBuiltEventFilter
|
@@ -7569,7 +7581,7 @@ declare module "factorio:runtime" {
|
|
7569
7581
|
* - `"name"`: {@link NameRobotMinedEntityEventFilter}
|
7570
7582
|
* - `"ghost_type"`: {@link GhostTypeRobotMinedEntityEventFilter}
|
7571
7583
|
* - `"ghost_name"`: {@link GhostNameRobotMinedEntityEventFilter}
|
7572
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7584
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaRobotMinedEntityEventFilter Online documentation}
|
7573
7585
|
*/
|
7574
7586
|
export type LuaRobotMinedEntityEventFilter =
|
7575
7587
|
| TypeRobotMinedEntityEventFilter
|
@@ -7676,7 +7688,7 @@ declare module "factorio:runtime" {
|
|
7676
7688
|
* - `"name"`: {@link NamePrePlayerMinedEntityEventFilter}
|
7677
7689
|
* - `"ghost_type"`: {@link GhostTypePrePlayerMinedEntityEventFilter}
|
7678
7690
|
* - `"ghost_name"`: {@link GhostNamePrePlayerMinedEntityEventFilter}
|
7679
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7691
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaPrePlayerMinedEntityEventFilter Online documentation}
|
7680
7692
|
*/
|
7681
7693
|
export type LuaPrePlayerMinedEntityEventFilter =
|
7682
7694
|
| TypePrePlayerMinedEntityEventFilter
|
@@ -7795,7 +7807,7 @@ declare module "factorio:runtime" {
|
|
7795
7807
|
* - `"ghost_type"`: {@link GhostTypeRobotBuiltEntityEventFilter}
|
7796
7808
|
* - `"ghost_name"`: {@link GhostNameRobotBuiltEntityEventFilter}
|
7797
7809
|
* - `"force"`: {@link ForceRobotBuiltEntityEventFilter}
|
7798
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7810
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaRobotBuiltEntityEventFilter Online documentation}
|
7799
7811
|
*/
|
7800
7812
|
export type LuaRobotBuiltEntityEventFilter =
|
7801
7813
|
| TypeRobotBuiltEntityEventFilter
|
@@ -7903,7 +7915,7 @@ declare module "factorio:runtime" {
|
|
7903
7915
|
* - `"name"`: {@link NamePreGhostUpgradedEventFilter}
|
7904
7916
|
* - `"ghost_type"`: {@link GhostTypePreGhostUpgradedEventFilter}
|
7905
7917
|
* - `"ghost_name"`: {@link GhostNamePreGhostUpgradedEventFilter}
|
7906
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7918
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaPreGhostUpgradedEventFilter Online documentation}
|
7907
7919
|
*/
|
7908
7920
|
export type LuaPreGhostUpgradedEventFilter =
|
7909
7921
|
| TypePreGhostUpgradedEventFilter
|
@@ -8012,7 +8024,7 @@ declare module "factorio:runtime" {
|
|
8012
8024
|
* - `"name"`: {@link NameEntityDeconstructionCancelledEventFilter}
|
8013
8025
|
* - `"ghost_type"`: {@link GhostTypeEntityDeconstructionCancelledEventFilter}
|
8014
8026
|
* - `"ghost_name"`: {@link GhostNameEntityDeconstructionCancelledEventFilter}
|
8015
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8027
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaEntityDeconstructionCancelledEventFilter Online documentation}
|
8016
8028
|
*/
|
8017
8029
|
export type LuaEntityDeconstructionCancelledEventFilter =
|
8018
8030
|
| TypeEntityDeconstructionCancelledEventFilter
|
@@ -8131,7 +8143,7 @@ declare module "factorio:runtime" {
|
|
8131
8143
|
* - `"ghost_type"`: {@link GhostTypePlayerBuiltEntityEventFilter}
|
8132
8144
|
* - `"ghost_name"`: {@link GhostNamePlayerBuiltEntityEventFilter}
|
8133
8145
|
* - `"force"`: {@link ForcePlayerBuiltEntityEventFilter}
|
8134
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8146
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaPlayerBuiltEntityEventFilter Online documentation}
|
8135
8147
|
*/
|
8136
8148
|
export type LuaPlayerBuiltEntityEventFilter =
|
8137
8149
|
| TypePlayerBuiltEntityEventFilter
|
@@ -8239,7 +8251,7 @@ declare module "factorio:runtime" {
|
|
8239
8251
|
* - `"name"`: {@link NamePlayerMinedEntityEventFilter}
|
8240
8252
|
* - `"ghost_type"`: {@link GhostTypePlayerMinedEntityEventFilter}
|
8241
8253
|
* - `"ghost_name"`: {@link GhostNamePlayerMinedEntityEventFilter}
|
8242
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8254
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaPlayerMinedEntityEventFilter Online documentation}
|
8243
8255
|
*/
|
8244
8256
|
export type LuaPlayerMinedEntityEventFilter =
|
8245
8257
|
| TypePlayerMinedEntityEventFilter
|
@@ -8421,7 +8433,7 @@ declare module "factorio:runtime" {
|
|
8421
8433
|
* - `"final-damage-amount"`: {@link FinalDamageAmountEntityDamagedEventFilter}
|
8422
8434
|
* - `"damage-type"`: {@link DamageTypeEntityDamagedEventFilter}
|
8423
8435
|
* - `"final-health"`: {@link FinalHealthEntityDamagedEventFilter}
|
8424
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8436
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaEntityDamagedEventFilter Online documentation}
|
8425
8437
|
*/
|
8426
8438
|
export type LuaEntityDamagedEventFilter =
|
8427
8439
|
| TypeEntityDamagedEventFilter
|
@@ -8435,7 +8447,7 @@ declare module "factorio:runtime" {
|
|
8435
8447
|
| OtherEntityDamagedEventFilter
|
8436
8448
|
/**
|
8437
8449
|
* Write form of {@link LuaEntityDamagedEventFilter}, where table-or-array concepts are allowed to take an array form.
|
8438
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8450
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaEntityDamagedEventFilter Online documentation}
|
8439
8451
|
*/
|
8440
8452
|
export type LuaEntityDamagedEventFilterWrite =
|
8441
8453
|
| TypeEntityDamagedEventFilter
|
@@ -8546,7 +8558,7 @@ declare module "factorio:runtime" {
|
|
8546
8558
|
* - `"name"`: {@link NameSectorScannedEventFilter}
|
8547
8559
|
* - `"ghost_type"`: {@link GhostTypeSectorScannedEventFilter}
|
8548
8560
|
* - `"ghost_name"`: {@link GhostNameSectorScannedEventFilter}
|
8549
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8561
|
+
* @see {@link https://lua-api.factorio.com/1.1.95/concepts.html#LuaSectorScannedEventFilter Online documentation}
|
8550
8562
|
*/
|
8551
8563
|
export type LuaSectorScannedEventFilter =
|
8552
8564
|
| TypeSectorScannedEventFilter
|