typed-factorio 0.13.1 → 0.13.2
Sign up to get free protection for your applications and to get access to all the features.
- package/Changelog.md +4 -1
- package/generated/builtin-types.d.ts +9 -9
- package/generated/classes.d.ts +2078 -2078
- package/generated/concepts.d.ts +116 -116
- package/generated/defines.d.ts +100 -100
- package/generated/events.d.ts +174 -174
- package/generated/global-objects.d.ts +7 -7
- package/package.json +1 -1
package/generated/concepts.d.ts
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
* Furthermore, when an API function expects a localised string, it will also accept a regular string (i.e. not a table)
|
20
20
|
* which will not be translated, as well as a number or boolean, which will be converted to their textual representation.
|
21
21
|
*
|
22
|
-
* {@link https://lua-api.factorio.com/
|
22
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LocalisedString View documentation}
|
23
23
|
*
|
24
24
|
* @example
|
25
25
|
* In the English translation, this will print `"No ammo"`; in the Czech translation, it will print `"Bez munice"`:
|
@@ -69,7 +69,7 @@ interface LogisticParameters {
|
|
69
69
|
*
|
70
70
|
* For example then, a value of `0.625` would indicate "south-west", and a value of `0.875` would indicate "north-west".
|
71
71
|
*
|
72
|
-
* {@link https://lua-api.factorio.com/
|
72
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#RealOrientation View documentation}
|
73
73
|
*/
|
74
74
|
type RealOrientation = float
|
75
75
|
|
@@ -84,7 +84,7 @@ type PositionArray = readonly [x: int, y: int]
|
|
84
84
|
* Coordinates of a tile in a map. Positions may be specified either as a dictionary with `x`, `y` as keys, or simply as
|
85
85
|
* an array with two elements.
|
86
86
|
*
|
87
|
-
* {@link https://lua-api.factorio.com/
|
87
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#Position View documentation}
|
88
88
|
*
|
89
89
|
* @example
|
90
90
|
* Explicit definition:
|
@@ -105,7 +105,7 @@ type Position = PositionTable | PositionArray
|
|
105
105
|
* Coordinates of an entity on a map. This uses the same format as {@link Position}, meaning it can be specified either
|
106
106
|
* with or without explicit keys.
|
107
107
|
*
|
108
|
-
* {@link https://lua-api.factorio.com/
|
108
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#MapPosition View documentation}
|
109
109
|
*/
|
110
110
|
interface MapPosition {
|
111
111
|
readonly x: double
|
@@ -124,7 +124,7 @@ type ChunkPositionArray = readonly [x: int, y: int]
|
|
124
124
|
* same format as {@link Position}, meaning it can be specified either with or without explicit keys. A {@link Position}
|
125
125
|
* can be translated to a ChunkPosition by dividing the `x`/`y` values by 32.
|
126
126
|
*
|
127
|
-
* {@link https://lua-api.factorio.com/
|
127
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#ChunkPosition View documentation}
|
128
128
|
*/
|
129
129
|
type ChunkPosition = ChunkPositionTable | ChunkPositionArray
|
130
130
|
|
@@ -140,7 +140,7 @@ type TilePositionArray = readonly [x: int, y: int]
|
|
140
140
|
* uses the same format as {@link Position} except it rounds any `x`/`y` down to whole numbers. It can be specified
|
141
141
|
* either with or without explicit keys.
|
142
142
|
*
|
143
|
-
* {@link https://lua-api.factorio.com/
|
143
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#TilePosition View documentation}
|
144
144
|
*/
|
145
145
|
type TilePosition = TilePositionTable | TilePositionArray
|
146
146
|
|
@@ -155,14 +155,14 @@ type GuiLocationArray = readonly [x: int, y: int]
|
|
155
155
|
* Screen coordinates of a GUI element in a {@link LuaGui}. This uses the same format as {@link Position} except it rounds
|
156
156
|
* any `x`/`y` down to whole numbers. It can be specified either with or without explicit keys.
|
157
157
|
*
|
158
|
-
* {@link https://lua-api.factorio.com/
|
158
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#GuiLocation View documentation}
|
159
159
|
*/
|
160
160
|
type GuiLocation = GuiLocationTable | GuiLocationArray
|
161
161
|
|
162
162
|
/**
|
163
163
|
* A {@link ChunkPosition} with an added bounding box for the area of the chunk.
|
164
164
|
*
|
165
|
-
* {@link https://lua-api.factorio.com/
|
165
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#ChunkPositionAndArea View documentation}
|
166
166
|
*/
|
167
167
|
interface ChunkPositionAndArea {
|
168
168
|
readonly x: int
|
@@ -173,7 +173,7 @@ interface ChunkPositionAndArea {
|
|
173
173
|
/**
|
174
174
|
* A table used to define a manual shape for a piece of equipment.
|
175
175
|
*
|
176
|
-
* {@link https://lua-api.factorio.com/
|
176
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#EquipmentPoint View documentation}
|
177
177
|
*/
|
178
178
|
interface EquipmentPoint {
|
179
179
|
readonly x: uint
|
@@ -207,7 +207,7 @@ interface OldTileAndPosition {
|
|
207
207
|
/**
|
208
208
|
* A dictionary of string to the four basic Lua types: `string`, `boolean`, `number`, `table`.
|
209
209
|
*
|
210
|
-
* {@link https://lua-api.factorio.com/
|
210
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#Tags View documentation}
|
211
211
|
*
|
212
212
|
* @example
|
213
213
|
* ```lua
|
@@ -219,7 +219,7 @@ type Tags = Record<string, AnyBasic | undefined>
|
|
219
219
|
/**
|
220
220
|
* **Note**: The vectors for all 5 position attributes are a table with `x` and `y` keys instead of an array.
|
221
221
|
*
|
222
|
-
* {@link https://lua-api.factorio.com/
|
222
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#SmokeSource View documentation}
|
223
223
|
*/
|
224
224
|
interface SmokeSource {
|
225
225
|
readonly name: string
|
@@ -247,7 +247,7 @@ interface SmokeSource {
|
|
247
247
|
* A vector is a two-element array containing the `x` and `y` components. In some specific cases, the vector is a table
|
248
248
|
* with `x` and `y` keys instead, which the documentation will point out.
|
249
249
|
*
|
250
|
-
* {@link https://lua-api.factorio.com/
|
250
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#Vector View documentation}
|
251
251
|
*
|
252
252
|
* @example
|
253
253
|
* ```lua
|
@@ -269,7 +269,7 @@ type BoundingBoxArray = readonly [left_top: Position, right_bottom: Position, or
|
|
269
269
|
* the names of the members may be omitted. When read from the game, the third member `orientation` is present if it is
|
270
270
|
* non-zero, however it is ignored when provided to the game.
|
271
271
|
*
|
272
|
-
* {@link https://lua-api.factorio.com/
|
272
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#BoundingBox View documentation}
|
273
273
|
*
|
274
274
|
* @example
|
275
275
|
* Explicit definition:
|
@@ -288,7 +288,7 @@ type BoundingBox = BoundingBoxTable | BoundingBoxArray
|
|
288
288
|
/**
|
289
289
|
* An area defined using the map editor.
|
290
290
|
*
|
291
|
-
* {@link https://lua-api.factorio.com/
|
291
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#ScriptArea View documentation}
|
292
292
|
*/
|
293
293
|
interface ScriptArea {
|
294
294
|
readonly area: BoundingBox
|
@@ -300,7 +300,7 @@ interface ScriptArea {
|
|
300
300
|
/**
|
301
301
|
* A position defined using the map editor.
|
302
302
|
*
|
303
|
-
* {@link https://lua-api.factorio.com/
|
303
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#ScriptPosition View documentation}
|
304
304
|
*/
|
305
305
|
interface ScriptPosition {
|
306
306
|
readonly position: Position
|
@@ -325,7 +325,7 @@ type ColorArray = readonly [r?: float, g?: float, b?: float, a?: float]
|
|
325
325
|
* Similar to {@link Position}, Color allows the short-hand notation of passing an array of exactly 3 or 4 numbers. The
|
326
326
|
* game usually expects colors to be in pre-multiplied form (color channels are pre-multiplied by alpha).
|
327
327
|
*
|
328
|
-
* {@link https://lua-api.factorio.com/
|
328
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#Color View documentation}
|
329
329
|
*
|
330
330
|
* @example
|
331
331
|
* ```lua
|
@@ -350,7 +350,7 @@ type ColorModifierArray = readonly [r?: float, g?: float, b?: float, a?: float]
|
|
350
350
|
* Same as {@link Color}, but red, green, blue and alpha values can be any floating point number, without any special
|
351
351
|
* handling of the range [1, 255].
|
352
352
|
*
|
353
|
-
* {@link https://lua-api.factorio.com/
|
353
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#ColorModifier View documentation}
|
354
354
|
*/
|
355
355
|
type ColorModifier = ColorModifierTable | ColorModifierArray
|
356
356
|
|
@@ -378,7 +378,7 @@ interface Alert {
|
|
378
378
|
/**
|
379
379
|
* One vertex of a ScriptRenderPolygon.
|
380
380
|
*
|
381
|
-
* {@link https://lua-api.factorio.com/
|
381
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#ScriptRenderVertexTarget View documentation}
|
382
382
|
*/
|
383
383
|
interface ScriptRenderVertexTarget {
|
384
384
|
readonly target: Position | LuaEntity
|
@@ -422,7 +422,7 @@ interface DecorativeResult {
|
|
422
422
|
/**
|
423
423
|
* **Note**: Either `icon`, `text`, or both must be provided.
|
424
424
|
*
|
425
|
-
* {@link https://lua-api.factorio.com/
|
425
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#ChartTagSpec View documentation}
|
426
426
|
*/
|
427
427
|
interface ChartTagSpec {
|
428
428
|
readonly position: Position
|
@@ -435,75 +435,75 @@ interface ChartTagSpec {
|
|
435
435
|
* Parameters that affect the look and control of the game. Updating any of the member attributes here will immediately
|
436
436
|
* take effect in the game engine.
|
437
437
|
*
|
438
|
-
* {@link https://lua-api.factorio.com/
|
438
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#GameViewSettings View documentation}
|
439
439
|
*/
|
440
440
|
interface GameViewSettings {
|
441
441
|
/**
|
442
442
|
* Show the controller GUI elements. This includes the toolbar, the selected tool slot, the armour slot, and the gun
|
443
443
|
* and ammunition slots.
|
444
444
|
*
|
445
|
-
* {@link https://lua-api.factorio.com/
|
445
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#GameViewSettings#GameViewSettings.show_controller_gui View documentation}
|
446
446
|
*/
|
447
447
|
show_controller_gui: boolean
|
448
448
|
/**
|
449
449
|
* Show the chart in the upper right-hand corner of the screen.
|
450
450
|
*
|
451
|
-
* {@link https://lua-api.factorio.com/
|
451
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#GameViewSettings#GameViewSettings.show_minimap View documentation}
|
452
452
|
*/
|
453
453
|
show_minimap: boolean
|
454
454
|
/**
|
455
455
|
* Show research progress and name in the upper right-hand corner of the screen.
|
456
456
|
*
|
457
|
-
* {@link https://lua-api.factorio.com/
|
457
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#GameViewSettings#GameViewSettings.show_research_info View documentation}
|
458
458
|
*/
|
459
459
|
show_research_info: boolean
|
460
460
|
/**
|
461
461
|
* Show overlay icons on entities. Also known as "alt-mode".
|
462
462
|
*
|
463
|
-
* {@link https://lua-api.factorio.com/
|
463
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#GameViewSettings#GameViewSettings.show_entity_info View documentation}
|
464
464
|
*/
|
465
465
|
show_entity_info: boolean
|
466
466
|
/**
|
467
467
|
* Show the flashing alert icons next to the player's toolbar.
|
468
468
|
*
|
469
|
-
* {@link https://lua-api.factorio.com/
|
469
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#GameViewSettings#GameViewSettings.show_alert_gui View documentation}
|
470
470
|
*/
|
471
471
|
show_alert_gui: boolean
|
472
472
|
/**
|
473
473
|
* When `true` (the default), mousing over an entity will select it. Otherwise, moving the mouse won't update entity
|
474
474
|
* selection.
|
475
475
|
*
|
476
|
-
* {@link https://lua-api.factorio.com/
|
476
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#GameViewSettings#GameViewSettings.update_entity_selection View documentation}
|
477
477
|
*/
|
478
478
|
update_entity_selection: boolean
|
479
479
|
/**
|
480
480
|
* When `true` (`false` is default), the rails will always show the rail block visualisation.
|
481
481
|
*
|
482
|
-
* {@link https://lua-api.factorio.com/
|
482
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#GameViewSettings#GameViewSettings.show_rail_block_visualisation View documentation}
|
483
483
|
*/
|
484
484
|
show_rail_block_visualisation: boolean
|
485
485
|
/**
|
486
486
|
* Shows or hides the buttons row.
|
487
487
|
*
|
488
|
-
* {@link https://lua-api.factorio.com/
|
488
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#GameViewSettings#GameViewSettings.show_side_menu View documentation}
|
489
489
|
*/
|
490
490
|
show_side_menu: boolean
|
491
491
|
/**
|
492
492
|
* Shows or hides the view options when map is opened.
|
493
493
|
*
|
494
|
-
* {@link https://lua-api.factorio.com/
|
494
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#GameViewSettings#GameViewSettings.show_map_view_options View documentation}
|
495
495
|
*/
|
496
496
|
show_map_view_options: boolean
|
497
497
|
/**
|
498
498
|
* Shows or hides quickbar of shortcuts.
|
499
499
|
*
|
500
|
-
* {@link https://lua-api.factorio.com/
|
500
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#GameViewSettings#GameViewSettings.show_quickbar View documentation}
|
501
501
|
*/
|
502
502
|
show_quickbar: boolean
|
503
503
|
/**
|
504
504
|
* Shows or hides the shortcut bar.
|
505
505
|
*
|
506
|
-
* {@link https://lua-api.factorio.com/
|
506
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#GameViewSettings#GameViewSettings.show_shortcut_bar View documentation}
|
507
507
|
*/
|
508
508
|
show_shortcut_bar: boolean
|
509
509
|
}
|
@@ -511,7 +511,7 @@ interface GameViewSettings {
|
|
511
511
|
/**
|
512
512
|
* What is shown in the map view. If a field is not given, that setting will not be changed.
|
513
513
|
*
|
514
|
-
* {@link https://lua-api.factorio.com/
|
514
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#MapViewSettings View documentation}
|
515
515
|
*/
|
516
516
|
interface MapViewSettings {
|
517
517
|
readonly "show-logistic-network"?: boolean
|
@@ -527,7 +527,7 @@ interface MapViewSettings {
|
|
527
527
|
/**
|
528
528
|
* These values are for the time frame of one second (60 ticks).
|
529
529
|
*
|
530
|
-
* {@link https://lua-api.factorio.com/
|
530
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#PollutionMapSettings View documentation}
|
531
531
|
*/
|
532
532
|
interface PollutionMapSettings {
|
533
533
|
/** Whether pollution is enabled at all. */
|
@@ -562,7 +562,7 @@ interface PollutionMapSettings {
|
|
562
562
|
/**
|
563
563
|
* These values represent a percentual increase in evolution. This means a value of `0.1` would increase evolution by 10%.
|
564
564
|
*
|
565
|
-
* {@link https://lua-api.factorio.com/
|
565
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#EnemyEvolutionMapSettings View documentation}
|
566
566
|
*/
|
567
567
|
interface EnemyEvolutionMapSettings {
|
568
568
|
/** Whether enemy evolution is enabled at all. */
|
@@ -599,7 +599,7 @@ interface EnemyEvolutionMapSettings {
|
|
599
599
|
* score(chunk) = 1 / (1 + player + base)
|
600
600
|
* ```
|
601
601
|
*
|
602
|
-
* {@link https://lua-api.factorio.com/
|
602
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#EnemyExpansionMapSettings View documentation}
|
603
603
|
*/
|
604
604
|
interface EnemyExpansionMapSettings {
|
605
605
|
/** Whether enemy expansion is enabled at all. */
|
@@ -833,7 +833,7 @@ interface PathFinderMapSettings {
|
|
833
833
|
/**
|
834
834
|
* Various game-related settings. Updating any of the attributes will immediately take effect in the game engine.
|
835
835
|
*
|
836
|
-
* {@link https://lua-api.factorio.com/
|
836
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#MapSettings View documentation}
|
837
837
|
*
|
838
838
|
* @example
|
839
839
|
* Increase the number of short paths the pathfinder can cache.
|
@@ -859,7 +859,7 @@ interface MapSettings {
|
|
859
859
|
/**
|
860
860
|
* Technology and recipe difficulty settings. Updating any of the attributes will immediately take effect in the game engine.
|
861
861
|
*
|
862
|
-
* {@link https://lua-api.factorio.com/
|
862
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#DifficultySettings View documentation}
|
863
863
|
*/
|
864
864
|
interface DifficultySettings {
|
865
865
|
readonly recipe_difficulty: defines.difficulty_settings.recipe_difficulty
|
@@ -876,7 +876,7 @@ interface DifficultySettings {
|
|
876
876
|
/**
|
877
877
|
* The data that can be extracted from a map exchange string, as a plain table.
|
878
878
|
*
|
879
|
-
* {@link https://lua-api.factorio.com/
|
879
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#MapExchangeStringData View documentation}
|
880
880
|
*/
|
881
881
|
interface MapExchangeStringData {
|
882
882
|
/**
|
@@ -947,7 +947,7 @@ interface BlueprintCircuitConnection {
|
|
947
947
|
* The representation of an entity inside of a blueprint. It has at least these fields, but can contain additional ones
|
948
948
|
* depending on the kind of entity.
|
949
949
|
*
|
950
|
-
* {@link https://lua-api.factorio.com/
|
950
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#BlueprintEntity View documentation}
|
951
951
|
*/
|
952
952
|
interface BlueprintEntity {
|
953
953
|
/** The entity's unique identifier in the blueprint. */
|
@@ -1028,7 +1028,7 @@ interface ItemIngredient extends BaseIngredient {
|
|
1028
1028
|
/**
|
1029
1029
|
* Other attributes may be specified depending on `type`:
|
1030
1030
|
*
|
1031
|
-
* {@link https://lua-api.factorio.com/
|
1031
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#Ingredient View documentation}
|
1032
1032
|
*/
|
1033
1033
|
type Ingredient = FluidIngredient | ItemIngredient
|
1034
1034
|
|
@@ -1062,7 +1062,7 @@ interface ItemProduct extends BaseProduct {
|
|
1062
1062
|
/**
|
1063
1063
|
* Other attributes may be specified depending on `type`:
|
1064
1064
|
*
|
1065
|
-
* {@link https://lua-api.factorio.com/
|
1065
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#Product View documentation}
|
1066
1066
|
*
|
1067
1067
|
* @example
|
1068
1068
|
* Products of the "steel-chest" recipe (an array of Product):
|
@@ -1263,7 +1263,7 @@ interface OtherTechnologyModifier extends BaseTechnologyModifier {
|
|
1263
1263
|
*
|
1264
1264
|
* Other attributes may be specified depending on `type`:
|
1265
1265
|
*
|
1266
|
-
* {@link https://lua-api.factorio.com/
|
1266
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#TechnologyModifier View documentation}
|
1267
1267
|
*/
|
1268
1268
|
type TechnologyModifier =
|
1269
1269
|
| GunSpeedTechnologyModifier
|
@@ -1277,7 +1277,7 @@ type TechnologyModifier =
|
|
1277
1277
|
/**
|
1278
1278
|
* A single offer on a market entity.
|
1279
1279
|
*
|
1280
|
-
* {@link https://lua-api.factorio.com/
|
1280
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#Offer View documentation}
|
1281
1281
|
*/
|
1282
1282
|
interface Offer {
|
1283
1283
|
/** List of prices. */
|
@@ -1290,7 +1290,7 @@ interface Offer {
|
|
1290
1290
|
* Specifies how probability and richness are calculated when placing something on the map. Can be specified either
|
1291
1291
|
* using `probability_expression` and `richness_expression` or by using all the other fields.
|
1292
1292
|
*
|
1293
|
-
* {@link https://lua-api.factorio.com/
|
1293
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#AutoplaceSpecification View documentation}
|
1294
1294
|
*/
|
1295
1295
|
interface AutoplaceSpecification {
|
1296
1296
|
readonly probability_expression: NoiseExpression
|
@@ -1318,7 +1318,7 @@ interface AutoplaceSpecification {
|
|
1318
1318
|
* generation. These can only be meaningfully written/modified during the data load phase. More detailed information is
|
1319
1319
|
* found on the {@link https://wiki.factorio.com/Types/NoiseExpression wiki}.
|
1320
1320
|
*
|
1321
|
-
* {@link https://lua-api.factorio.com/
|
1321
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#NoiseExpression View documentation}
|
1322
1322
|
*/
|
1323
1323
|
interface NoiseExpression {
|
1324
1324
|
/** Names the type of the expression and determines what other fields are required. */
|
@@ -1394,7 +1394,7 @@ interface Resistance {
|
|
1394
1394
|
* **Note**: The map generation algorithm officially supports the range of values the in-game map generation screen
|
1395
1395
|
* shows (specifically `0` and values from `1/6` to `6`). Values outside this range are not guaranteed to work as expected.
|
1396
1396
|
*
|
1397
|
-
* {@link https://lua-api.factorio.com/
|
1397
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#MapGenSize View documentation}
|
1398
1398
|
*/
|
1399
1399
|
type MapGenSize =
|
1400
1400
|
| number
|
@@ -1483,7 +1483,7 @@ interface CliffPlacementSettings {
|
|
1483
1483
|
* the island preset. If generators are available for other properties, the 'map type' dropdown in the GUI will be
|
1484
1484
|
* renamed to 'elevation' and shown along with selectors for the other selectable properties.
|
1485
1485
|
*
|
1486
|
-
* {@link https://lua-api.factorio.com/
|
1486
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#MapGenSettings View documentation}
|
1487
1487
|
*
|
1488
1488
|
* @example
|
1489
1489
|
* Assuming a NamedNoiseExpression with the name "my-alternate-grass1-probability" is defined
|
@@ -1594,7 +1594,7 @@ interface SignalID {
|
|
1594
1594
|
/**
|
1595
1595
|
* An actual signal transmitted by the network.
|
1596
1596
|
*
|
1597
|
-
* {@link https://lua-api.factorio.com/
|
1597
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#Signal View documentation}
|
1598
1598
|
*/
|
1599
1599
|
interface Signal {
|
1600
1600
|
/** ID of the signal. */
|
@@ -1613,7 +1613,7 @@ interface UpgradeFilter {
|
|
1613
1613
|
/**
|
1614
1614
|
* A single filter used by an infinity-filters instance.
|
1615
1615
|
*
|
1616
|
-
* {@link https://lua-api.factorio.com/
|
1616
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#InfinityInventoryFilter View documentation}
|
1617
1617
|
*/
|
1618
1618
|
interface InfinityInventoryFilter {
|
1619
1619
|
/** Name of the item. */
|
@@ -1629,7 +1629,7 @@ interface InfinityInventoryFilter {
|
|
1629
1629
|
/**
|
1630
1630
|
* A single filter used by an infinity-pipe type entity.
|
1631
1631
|
*
|
1632
|
-
* {@link https://lua-api.factorio.com/
|
1632
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#InfinityPipeFilter View documentation}
|
1633
1633
|
*/
|
1634
1634
|
interface InfinityPipeFilter {
|
1635
1635
|
/** Name of the fluid. */
|
@@ -1665,7 +1665,7 @@ interface FluidBoxFilterSpec {
|
|
1665
1665
|
/**
|
1666
1666
|
* The settings used by a heat-interface type entity.
|
1667
1667
|
*
|
1668
|
-
* {@link https://lua-api.factorio.com/
|
1668
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#HeatSetting View documentation}
|
1669
1669
|
*/
|
1670
1670
|
interface HeatSetting {
|
1671
1671
|
/** The target temperature. Defaults to the minimum temperature of the heat buffer. */
|
@@ -1682,7 +1682,7 @@ interface HeatConnection {
|
|
1682
1682
|
/**
|
1683
1683
|
* A definition of a fluidbox connection point.
|
1684
1684
|
*
|
1685
|
-
* {@link https://lua-api.factorio.com/
|
1685
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#FluidBoxConnection View documentation}
|
1686
1686
|
*/
|
1687
1687
|
interface FluidBoxConnection {
|
1688
1688
|
/** The connection type: "input", "output", or "input-output". */
|
@@ -1726,7 +1726,7 @@ interface ConstantCombinatorParameters {
|
|
1726
1726
|
* **Note**: While the API accepts both versions for `"less/greater than or equal to"` and `"not equal"`, it'll always
|
1727
1727
|
* return `"≥"`, `"≤"` or `"≠"` respectively when reading them back.
|
1728
1728
|
*
|
1729
|
-
* {@link https://lua-api.factorio.com/
|
1729
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#ComparatorString View documentation}
|
1730
1730
|
*/
|
1731
1731
|
type ComparatorString /** "equal to" */ =
|
1732
1732
|
| "=" /** "greater than" */
|
@@ -1927,7 +1927,7 @@ interface BuildBaseCommand extends BaseCommand {
|
|
1927
1927
|
*
|
1928
1928
|
* Other attributes may be specified depending on `type`:
|
1929
1929
|
*
|
1930
|
-
* {@link https://lua-api.factorio.com/
|
1930
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#Command View documentation}
|
1931
1931
|
*/
|
1932
1932
|
type Command =
|
1933
1933
|
| AttackCommand
|
@@ -1997,7 +1997,7 @@ interface ItemStackDefinition {
|
|
1997
1997
|
* - String: The name of the item, which represents a full stack of that item.
|
1998
1998
|
* - ItemStackDefinition: The detailed definition of an item stack.
|
1999
1999
|
*
|
2000
|
-
* {@link https://lua-api.factorio.com/
|
2000
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#SimpleItemStack View documentation}
|
2001
2001
|
*
|
2002
2002
|
* @example
|
2003
2003
|
* Both of these lines specify an item stack of one iron plate:
|
@@ -2035,7 +2035,7 @@ type SimpleItemStack = string | ItemStackDefinition
|
|
2035
2035
|
* - LuaFluidPrototype: The fluid prototype.
|
2036
2036
|
* - Fluid: The fluid.
|
2037
2037
|
*
|
2038
|
-
* {@link https://lua-api.factorio.com/
|
2038
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#FluidIdentification View documentation}
|
2039
2039
|
*/
|
2040
2040
|
type FluidIdentification = string | LuaFluidPrototype | Fluid
|
2041
2041
|
|
@@ -2043,7 +2043,7 @@ type FluidIdentification = string | LuaFluidPrototype | Fluid
|
|
2043
2043
|
* - String: The force name.
|
2044
2044
|
* - LuaForce: A reference to {@link LuaForce} may be passed directly.
|
2045
2045
|
*
|
2046
|
-
* {@link https://lua-api.factorio.com/
|
2046
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#ForceIdentification View documentation}
|
2047
2047
|
*/
|
2048
2048
|
type ForceIdentification = string | LuaForce
|
2049
2049
|
|
@@ -2052,7 +2052,7 @@ type ForceIdentification = string | LuaForce
|
|
2052
2052
|
* - LuaTechnology: A reference to {@link LuaTechnology} may be passed directly.
|
2053
2053
|
* - LuaTechnologyPrototype: A reference to {@link LuaTechnologyPrototype} may be passed directly.
|
2054
2054
|
*
|
2055
|
-
* {@link https://lua-api.factorio.com/
|
2055
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#TechnologyIdentification View documentation}
|
2056
2056
|
*/
|
2057
2057
|
type TechnologyIdentification = string | LuaTechnology | LuaTechnologyPrototype
|
2058
2058
|
|
@@ -2062,7 +2062,7 @@ type TechnologyIdentification = string | LuaTechnology | LuaTechnologyPrototype
|
|
2062
2062
|
* - String: It will be the surface name. E.g. `"nauvis"`.
|
2063
2063
|
* - LuaSurface: A reference to {@link LuaSurface} may be passed directly.
|
2064
2064
|
*
|
2065
|
-
* {@link https://lua-api.factorio.com/
|
2065
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#SurfaceIdentification View documentation}
|
2066
2066
|
*/
|
2067
2067
|
type SurfaceIdentification = uint | string | LuaSurface
|
2068
2068
|
|
@@ -2071,7 +2071,7 @@ type SurfaceIdentification = uint | string | LuaSurface
|
|
2071
2071
|
* - String: The player name.
|
2072
2072
|
* - LuaPlayer: A reference to {@link LuaPlayer} may be passed directly.
|
2073
2073
|
*
|
2074
|
-
* {@link https://lua-api.factorio.com/
|
2074
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#PlayerIdentification View documentation}
|
2075
2075
|
*/
|
2076
2076
|
type PlayerIdentification = uint | string | LuaPlayer
|
2077
2077
|
|
@@ -2082,7 +2082,7 @@ type ItemStackIdentification = SimpleItemStack | LuaItemStack
|
|
2082
2082
|
* - LuaEntityPrototype: The entity prototype.
|
2083
2083
|
* - String: The prototype name.
|
2084
2084
|
*
|
2085
|
-
* {@link https://lua-api.factorio.com/
|
2085
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#EntityPrototypeIdentification View documentation}
|
2086
2086
|
*/
|
2087
2087
|
type EntityPrototypeIdentification = LuaEntity | LuaEntityPrototype | string
|
2088
2088
|
|
@@ -2091,7 +2091,7 @@ type EntityPrototypeIdentification = LuaEntity | LuaEntityPrototype | string
|
|
2091
2091
|
* - LuaItemPrototype: The item prototype.
|
2092
2092
|
* - String: The prototype name.
|
2093
2093
|
*
|
2094
|
-
* {@link https://lua-api.factorio.com/
|
2094
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#ItemPrototypeIdentification View documentation}
|
2095
2095
|
*/
|
2096
2096
|
type ItemPrototypeIdentification = LuaItemStack | LuaItemPrototype | string
|
2097
2097
|
|
@@ -2209,7 +2209,7 @@ interface ActiveWindowGuiArrowSpecification extends BaseGuiArrowSpecification {
|
|
2209
2209
|
*
|
2210
2210
|
* Other attributes may be specified depending on `type`:
|
2211
2211
|
*
|
2212
|
-
* {@link https://lua-api.factorio.com/
|
2212
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#GuiArrowSpecification View documentation}
|
2213
2213
|
*/
|
2214
2214
|
type GuiArrowSpecification =
|
2215
2215
|
| EntityGuiArrowSpecification
|
@@ -2285,7 +2285,7 @@ type SpriteType =
|
|
2285
2285
|
* slower; for frequently used sprites, it is better to define sprite prototype and use it instead.
|
2286
2286
|
* - `"utility"` - sprite defined in the utility-sprites object, these are the pictures used by the game internally for the UI.
|
2287
2287
|
*
|
2288
|
-
* {@link https://lua-api.factorio.com/
|
2288
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#SpritePath View documentation}
|
2289
2289
|
*/
|
2290
2290
|
type SpritePath = string | `${SpriteType}/${string}`
|
2291
2291
|
|
@@ -2327,7 +2327,7 @@ type SpritePath = string | `${SpriteType}/${string}`
|
|
2327
2327
|
* - `"entity-open"` - Uses {@link https://wiki.factorio.com/Prototype/Entity#open_sound Entity::open_sound}
|
2328
2328
|
* - `"entity-close"` - Uses {@link https://wiki.factorio.com/Prototype/Entity#close_sound Entity::close_sound}
|
2329
2329
|
*
|
2330
|
-
* {@link https://lua-api.factorio.com/
|
2330
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#SoundPath View documentation}
|
2331
2331
|
*/
|
2332
2332
|
type SoundPath = string | `${SoundType}/${string}`
|
2333
2333
|
|
@@ -2337,7 +2337,7 @@ interface ModuleEffectValue {
|
|
2337
2337
|
}
|
2338
2338
|
|
2339
2339
|
/**
|
2340
|
-
* {@link https://lua-api.factorio.com/
|
2340
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#ModuleEffects View documentation}
|
2341
2341
|
*
|
2342
2342
|
* @example
|
2343
2343
|
* These are the effects of the vanilla Productivity Module 3 (up to floating point imprecisions):
|
@@ -2361,7 +2361,7 @@ interface ModuleEffects {
|
|
2361
2361
|
* the dictionary with the value `true`. Unset flags aren't present in the dictionary at all. So, the boolean value is
|
2362
2362
|
* meaningless and exists just for easy table lookup if a flag is set.
|
2363
2363
|
*
|
2364
|
-
* {@link https://lua-api.factorio.com/
|
2364
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#EntityPrototypeFlags View documentation}
|
2365
2365
|
*/
|
2366
2366
|
interface EntityPrototypeFlags {
|
2367
2367
|
readonly "not-rotatable"?: boolean
|
@@ -2396,7 +2396,7 @@ interface EntityPrototypeFlags {
|
|
2396
2396
|
* dictionary with the value `true`. Unset flags aren't present in the dictionary at all. So, the boolean value is
|
2397
2397
|
* meaningless and exists just for easy table lookup if a flag is set.
|
2398
2398
|
*
|
2399
|
-
* {@link https://lua-api.factorio.com/
|
2399
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#ItemPrototypeFlags View documentation}
|
2400
2400
|
*/
|
2401
2401
|
interface ItemPrototypeFlags {
|
2402
2402
|
readonly "draw-logistic-overlay"?: boolean
|
@@ -2435,7 +2435,7 @@ interface ItemPrototypeFlags {
|
|
2435
2435
|
* change. If a mod is going to use one of the unused layers it's recommended to start at the higher layers because the
|
2436
2436
|
* base game will take from the lower ones.
|
2437
2437
|
*
|
2438
|
-
* {@link https://lua-api.factorio.com/
|
2438
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#CollisionMaskLayer View documentation}
|
2439
2439
|
*/
|
2440
2440
|
type CollisionMaskLayer =
|
2441
2441
|
| "ground-tile"
|
@@ -2457,7 +2457,7 @@ type CollisionMaskLayer =
|
|
2457
2457
|
* This is a set of masks given as a dictionary[{@link CollisionMaskLayer} → {@link boolean}]. Only set masks are present
|
2458
2458
|
* in the dictionary and they have the value `true`. Unset flags aren't present at all.
|
2459
2459
|
*
|
2460
|
-
* {@link https://lua-api.factorio.com/
|
2460
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#CollisionMask View documentation}
|
2461
2461
|
*/
|
2462
2462
|
type CollisionMask = {
|
2463
2463
|
readonly [P in CollisionMaskLayer]?: true
|
@@ -2472,7 +2472,7 @@ type CollisionMask = {
|
|
2472
2472
|
* - `"consider-tile-transitions"`
|
2473
2473
|
* - `"colliding-with-tiles-only"`
|
2474
2474
|
*
|
2475
|
-
* {@link https://lua-api.factorio.com/
|
2475
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#CollisionMaskWithFlags View documentation}
|
2476
2476
|
*/
|
2477
2477
|
type CollisionMaskWithFlags = {
|
2478
2478
|
readonly [P in
|
@@ -2485,7 +2485,7 @@ type CollisionMaskWithFlags = {
|
|
2485
2485
|
/**
|
2486
2486
|
* This is a set of trigger target masks given as a dictionary[{@link string} → {@link boolean}].
|
2487
2487
|
*
|
2488
|
-
* {@link https://lua-api.factorio.com/
|
2488
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#TriggerTargetMask View documentation}
|
2489
2489
|
*/
|
2490
2490
|
type TriggerTargetMask = {
|
2491
2491
|
readonly [P in string]?: true
|
@@ -2569,7 +2569,7 @@ interface CircularParticleCreationSpecification {
|
|
2569
2569
|
* - A {@link RealOrientation}
|
2570
2570
|
* - A {@link Vector}
|
2571
2571
|
*
|
2572
|
-
* {@link https://lua-api.factorio.com/
|
2572
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#CircularProjectileCreationSpecification View documentation}
|
2573
2573
|
*/
|
2574
2574
|
type CircularProjectileCreationSpecification = [RealOrientation, Vector]
|
2575
2575
|
|
@@ -2648,7 +2648,7 @@ interface BeamAttackParameters extends BaseAttackParameters {
|
|
2648
2648
|
/**
|
2649
2649
|
* Other attributes may be specified depending on `type`:
|
2650
2650
|
*
|
2651
|
-
* {@link https://lua-api.factorio.com/
|
2651
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#AttackParameters View documentation}
|
2652
2652
|
*/
|
2653
2653
|
type AttackParameters = ProjectileAttackParameters | StreamAttackParameters | BeamAttackParameters
|
2654
2654
|
|
@@ -2665,7 +2665,7 @@ interface CapsuleAction {
|
|
2665
2665
|
* This is a set of flags given as a dictionary[{@link string} → {@link boolean}]. Set flags are present in the dictionary
|
2666
2666
|
* with the value `true`; unset flags aren't present at all.
|
2667
2667
|
*
|
2668
|
-
* {@link https://lua-api.factorio.com/
|
2668
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#SelectionModeFlags View documentation}
|
2669
2669
|
*/
|
2670
2670
|
interface SelectionModeFlags {
|
2671
2671
|
/** Entities that can be selected for blueprint. */
|
@@ -2709,7 +2709,7 @@ interface LogisticFilter {
|
|
2709
2709
|
* **Note**: Runtime settings can be changed through console commands and by the mod that owns the settings by writing a
|
2710
2710
|
* new table to the ModSetting.
|
2711
2711
|
*
|
2712
|
-
* {@link https://lua-api.factorio.com/
|
2712
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#ModSetting View documentation}
|
2713
2713
|
*/
|
2714
2714
|
interface ModSetting {
|
2715
2715
|
/** The value of the mod setting. The type depends on the setting. */
|
@@ -2719,14 +2719,14 @@ interface ModSetting {
|
|
2719
2719
|
/**
|
2720
2720
|
* Any basic type (string, number, boolean) or table.
|
2721
2721
|
*
|
2722
|
-
* {@link https://lua-api.factorio.com/
|
2722
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#AnyBasic View documentation}
|
2723
2723
|
*/
|
2724
2724
|
type AnyBasic = string | number | boolean | table
|
2725
2725
|
|
2726
2726
|
/**
|
2727
2727
|
* Any basic type (string, number, boolean), table, or LuaObject.
|
2728
2728
|
*
|
2729
|
-
* {@link https://lua-api.factorio.com/
|
2729
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#Any View documentation}
|
2730
2730
|
*/
|
2731
2731
|
type Any = any
|
2732
2732
|
|
@@ -2757,7 +2757,7 @@ interface ProgrammableSpeakerInstrument {
|
|
2757
2757
|
/**
|
2758
2758
|
* A {@link string} that specifies where a gui element should be.
|
2759
2759
|
*
|
2760
|
-
* {@link https://lua-api.factorio.com/
|
2760
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#Alignment View documentation}
|
2761
2761
|
*/
|
2762
2762
|
type Alignment =
|
2763
2763
|
| "top-left"
|
@@ -2774,9 +2774,9 @@ type Alignment =
|
|
2774
2774
|
|
2775
2775
|
/**
|
2776
2776
|
* Information about the event that has been raised. The table can also contain other fields depending on the type of
|
2777
|
-
* event. See {@link https://lua-api.factorio.com/
|
2777
|
+
* event. See {@link https://lua-api.factorio.com/latest/events.html the list of Factorio events} for more information on these.
|
2778
2778
|
*
|
2779
|
-
* {@link https://lua-api.factorio.com/
|
2779
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#EventData View documentation}
|
2780
2780
|
*/
|
2781
2781
|
interface EventData {
|
2782
2782
|
/** The identifier of the event this handler was registered to. */
|
@@ -2877,14 +2877,14 @@ type MouseButtonFlagsArray = readonly (MouseButtonFlag | "left-and-right")[]
|
|
2877
2877
|
* - `"button-8"`
|
2878
2878
|
* - `"button-9"`
|
2879
2879
|
*
|
2880
|
-
* {@link https://lua-api.factorio.com/
|
2880
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#MouseButtonFlags View documentation}
|
2881
2881
|
*/
|
2882
2882
|
type MouseButtonFlags = MouseButtonFlagsTable | MouseButtonFlagsArray
|
2883
2883
|
|
2884
2884
|
/**
|
2885
2885
|
* It is specified by {@link string}.
|
2886
2886
|
*
|
2887
|
-
* {@link https://lua-api.factorio.com/
|
2887
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#CursorBoxRenderType View documentation}
|
2888
2888
|
*/
|
2889
2889
|
type CursorBoxRenderType /** Yellow box. */ =
|
2890
2890
|
| "entity" /** Red box. */
|
@@ -2899,7 +2899,7 @@ type CursorBoxRenderType /** Yellow box. */ =
|
|
2899
2899
|
/**
|
2900
2900
|
* It is specified by {@link string}.
|
2901
2901
|
*
|
2902
|
-
* {@link https://lua-api.factorio.com/
|
2902
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#ForceCondition View documentation}
|
2903
2903
|
*/
|
2904
2904
|
type ForceCondition /** All forces pass. */ =
|
2905
2905
|
| "all" /** Forces which will attack pass. */
|
@@ -2958,7 +2958,7 @@ type ForceCondition /** All forces pass. */ =
|
|
2958
2958
|
* - `"arrow"`: 190
|
2959
2959
|
* - `"cursor"`: 210
|
2960
2960
|
*
|
2961
|
-
* {@link https://lua-api.factorio.com/
|
2961
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#RenderLayer View documentation}
|
2962
2962
|
*/
|
2963
2963
|
type RenderLayer =
|
2964
2964
|
| number
|
@@ -3042,7 +3042,7 @@ interface VehicleAutomaticTargetingParameters {
|
|
3042
3042
|
* Defines which slider in the game's sound settings affects the volume of this sound. Furthermore, some sound types are
|
3043
3043
|
* mixed differently than others, e.g. zoom level effects are applied.
|
3044
3044
|
*
|
3045
|
-
* {@link https://lua-api.factorio.com/
|
3045
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#SoundType View documentation}
|
3046
3046
|
*/
|
3047
3047
|
type SoundType = "game-effect" | "gui-effect" | "ambient" | "environment" | "walking" | "alert" | "wind"
|
3048
3048
|
|
@@ -3239,7 +3239,7 @@ interface FuelItemPrototypeFilter extends BaseItemPrototypeFilter {
|
|
3239
3239
|
/**
|
3240
3240
|
* Other attributes may be specified depending on `filter`:
|
3241
3241
|
*
|
3242
|
-
* {@link https://lua-api.factorio.com/
|
3242
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#ItemPrototypeFilter View documentation}
|
3243
3243
|
*/
|
3244
3244
|
type ItemPrototypeFilter =
|
3245
3245
|
| PlaceResultItemPrototypeFilter
|
@@ -3299,7 +3299,7 @@ interface SettingTypeModSettingPrototypeFilter extends BaseModSettingPrototypeFi
|
|
3299
3299
|
/**
|
3300
3300
|
* Other attributes may be specified depending on `filter`:
|
3301
3301
|
*
|
3302
|
-
* {@link https://lua-api.factorio.com/
|
3302
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#ModSettingPrototypeFilter View documentation}
|
3303
3303
|
*/
|
3304
3304
|
type ModSettingPrototypeFilter =
|
3305
3305
|
| TypeModSettingPrototypeFilter
|
@@ -3385,7 +3385,7 @@ interface HasPrerequisitesTechnologyPrototypeFilter extends BaseTechnologyProtot
|
|
3385
3385
|
/**
|
3386
3386
|
* Other attributes may be specified depending on `filter`:
|
3387
3387
|
*
|
3388
|
-
* {@link https://lua-api.factorio.com/
|
3388
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#TechnologyPrototypeFilter View documentation}
|
3389
3389
|
*/
|
3390
3390
|
type TechnologyPrototypeFilter =
|
3391
3391
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -3429,7 +3429,7 @@ interface AutoplaceDecorativePrototypeFilter extends BaseDecorativePrototypeFilt
|
|
3429
3429
|
/**
|
3430
3430
|
* Other attributes may be specified depending on `filter`:
|
3431
3431
|
*
|
3432
|
-
* {@link https://lua-api.factorio.com/
|
3432
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#DecorativePrototypeFilter View documentation}
|
3433
3433
|
*/
|
3434
3434
|
type DecorativePrototypeFilter =
|
3435
3435
|
| CollisionMaskDecorativePrototypeFilter
|
@@ -3461,7 +3461,7 @@ interface AllowedWithoutFightAchievementPrototypeFilter extends BaseAchievementP
|
|
3461
3461
|
/**
|
3462
3462
|
* Other attributes may be specified depending on `filter`:
|
3463
3463
|
*
|
3464
|
-
* {@link https://lua-api.factorio.com/
|
3464
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#AchievementPrototypeFilter View documentation}
|
3465
3465
|
*/
|
3466
3466
|
type AchievementPrototypeFilter = TypeAchievementPrototypeFilter | AllowedWithoutFightAchievementPrototypeFilter
|
3467
3467
|
|
@@ -3554,7 +3554,7 @@ interface HiddenFluidPrototypeFilter extends BaseFluidPrototypeFilter {
|
|
3554
3554
|
/**
|
3555
3555
|
* Other attributes may be specified depending on `filter`:
|
3556
3556
|
*
|
3557
|
-
* {@link https://lua-api.factorio.com/
|
3557
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#FluidPrototypeFilter View documentation}
|
3558
3558
|
*/
|
3559
3559
|
type FluidPrototypeFilter =
|
3560
3560
|
| NameFluidPrototypeFilter
|
@@ -3592,7 +3592,7 @@ interface ItemToPlaceEquipmentPrototypeFilter extends BaseEquipmentPrototypeFilt
|
|
3592
3592
|
/**
|
3593
3593
|
* Other attributes may be specified depending on `filter`:
|
3594
3594
|
*
|
3595
|
-
* {@link https://lua-api.factorio.com/
|
3595
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#EquipmentPrototypeFilter View documentation}
|
3596
3596
|
*/
|
3597
3597
|
type EquipmentPrototypeFilter = TypeEquipmentPrototypeFilter | ItemToPlaceEquipmentPrototypeFilter
|
3598
3598
|
|
@@ -3675,7 +3675,7 @@ interface ItemToPlaceTilePrototypeFilter extends BaseTilePrototypeFilter {
|
|
3675
3675
|
/**
|
3676
3676
|
* Other attributes may be specified depending on `filter`:
|
3677
3677
|
*
|
3678
|
-
* {@link https://lua-api.factorio.com/
|
3678
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#TilePrototypeFilter View documentation}
|
3679
3679
|
*/
|
3680
3680
|
type TilePrototypeFilter =
|
3681
3681
|
| CollisionMaskTilePrototypeFilter
|
@@ -3863,7 +3863,7 @@ interface HasProductsRecipePrototypeFilter extends BaseRecipePrototypeFilter {
|
|
3863
3863
|
/**
|
3864
3864
|
* Other attributes may be specified depending on `filter`:
|
3865
3865
|
*
|
3866
|
-
* {@link https://lua-api.factorio.com/
|
3866
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#RecipePrototypeFilter View documentation}
|
3867
3867
|
*/
|
3868
3868
|
type RecipePrototypeFilter =
|
3869
3869
|
| HasIngredientItemRecipePrototypeFilter
|
@@ -4122,7 +4122,7 @@ interface ItemToPlaceEntityPrototypeFilter extends BaseEntityPrototypeFilter {
|
|
4122
4122
|
/**
|
4123
4123
|
* Other attributes may be specified depending on `filter`:
|
4124
4124
|
*
|
4125
|
-
* {@link https://lua-api.factorio.com/
|
4125
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#EntityPrototypeFilter View documentation}
|
4126
4126
|
*/
|
4127
4127
|
type EntityPrototypeFilter =
|
4128
4128
|
| NameEntityPrototypeFilter
|
@@ -4261,7 +4261,7 @@ interface CircuitNetworkConnectableScriptRaisedReviveEventFilter extends BaseScr
|
|
4261
4261
|
/**
|
4262
4262
|
* Other attributes may be specified depending on `filter`:
|
4263
4263
|
*
|
4264
|
-
* {@link https://lua-api.factorio.com/
|
4264
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaScriptRaisedReviveEventFilter View documentation}
|
4265
4265
|
*/
|
4266
4266
|
type LuaScriptRaisedReviveEventFilter =
|
4267
4267
|
| TypeScriptRaisedReviveEventFilter
|
@@ -4382,7 +4382,7 @@ interface CircuitNetworkConnectableEntityDiedEventFilter extends BaseEntityDiedE
|
|
4382
4382
|
/**
|
4383
4383
|
* Other attributes may be specified depending on `filter`:
|
4384
4384
|
*
|
4385
|
-
* {@link https://lua-api.factorio.com/
|
4385
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaEntityDiedEventFilter View documentation}
|
4386
4386
|
*/
|
4387
4387
|
type LuaEntityDiedEventFilter =
|
4388
4388
|
| TypeEntityDiedEventFilter
|
@@ -4506,7 +4506,7 @@ interface CircuitNetworkConnectableEntityMarkedForDeconstructionEventFilter
|
|
4506
4506
|
/**
|
4507
4507
|
* Other attributes may be specified depending on `filter`:
|
4508
4508
|
*
|
4509
|
-
* {@link https://lua-api.factorio.com/
|
4509
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaEntityMarkedForDeconstructionEventFilter View documentation}
|
4510
4510
|
*/
|
4511
4511
|
type LuaEntityMarkedForDeconstructionEventFilter =
|
4512
4512
|
| TypeEntityMarkedForDeconstructionEventFilter
|
@@ -4627,7 +4627,7 @@ interface CircuitNetworkConnectablePreGhostDeconstructedEventFilter extends Base
|
|
4627
4627
|
/**
|
4628
4628
|
* Other attributes may be specified depending on `filter`:
|
4629
4629
|
*
|
4630
|
-
* {@link https://lua-api.factorio.com/
|
4630
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaPreGhostDeconstructedEventFilter View documentation}
|
4631
4631
|
*/
|
4632
4632
|
type LuaPreGhostDeconstructedEventFilter =
|
4633
4633
|
| TypePreGhostDeconstructedEventFilter
|
@@ -4748,7 +4748,7 @@ interface CircuitNetworkConnectableScriptRaisedDestroyEventFilter extends BaseSc
|
|
4748
4748
|
/**
|
4749
4749
|
* Other attributes may be specified depending on `filter`:
|
4750
4750
|
*
|
4751
|
-
* {@link https://lua-api.factorio.com/
|
4751
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaScriptRaisedDestroyEventFilter View documentation}
|
4752
4752
|
*/
|
4753
4753
|
type LuaScriptRaisedDestroyEventFilter =
|
4754
4754
|
| TypeScriptRaisedDestroyEventFilter
|
@@ -4869,7 +4869,7 @@ interface CircuitNetworkConnectableUpgradeCancelledEventFilter extends BaseUpgra
|
|
4869
4869
|
/**
|
4870
4870
|
* Other attributes may be specified depending on `filter`:
|
4871
4871
|
*
|
4872
|
-
* {@link https://lua-api.factorio.com/
|
4872
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaUpgradeCancelledEventFilter View documentation}
|
4873
4873
|
*/
|
4874
4874
|
type LuaUpgradeCancelledEventFilter =
|
4875
4875
|
| TypeUpgradeCancelledEventFilter
|
@@ -4990,7 +4990,7 @@ interface CircuitNetworkConnectablePlayerRepairedEntityEventFilter extends BaseP
|
|
4990
4990
|
/**
|
4991
4991
|
* Other attributes may be specified depending on `filter`:
|
4992
4992
|
*
|
4993
|
-
* {@link https://lua-api.factorio.com/
|
4993
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaPlayerRepairedEntityEventFilter View documentation}
|
4994
4994
|
*/
|
4995
4995
|
type LuaPlayerRepairedEntityEventFilter =
|
4996
4996
|
| TypePlayerRepairedEntityEventFilter
|
@@ -5111,7 +5111,7 @@ interface CircuitNetworkConnectableEntityMarkedForUpgradeEventFilter extends Bas
|
|
5111
5111
|
/**
|
5112
5112
|
* Other attributes may be specified depending on `filter`:
|
5113
5113
|
*
|
5114
|
-
* {@link https://lua-api.factorio.com/
|
5114
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaEntityMarkedForUpgradeEventFilter View documentation}
|
5115
5115
|
*/
|
5116
5116
|
type LuaEntityMarkedForUpgradeEventFilter =
|
5117
5117
|
| TypeEntityMarkedForUpgradeEventFilter
|
@@ -5151,7 +5151,7 @@ interface TypePostEntityDiedEventFilter extends BasePostEntityDiedEventFilter {
|
|
5151
5151
|
/**
|
5152
5152
|
* Other attributes may be specified depending on `filter`:
|
5153
5153
|
*
|
5154
|
-
* {@link https://lua-api.factorio.com/
|
5154
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaPostEntityDiedEventFilter View documentation}
|
5155
5155
|
*/
|
5156
5156
|
type LuaPostEntityDiedEventFilter = TypePostEntityDiedEventFilter
|
5157
5157
|
|
@@ -5257,7 +5257,7 @@ interface CircuitNetworkConnectablePreRobotMinedEntityEventFilter extends BasePr
|
|
5257
5257
|
/**
|
5258
5258
|
* Other attributes may be specified depending on `filter`:
|
5259
5259
|
*
|
5260
|
-
* {@link https://lua-api.factorio.com/
|
5260
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaPreRobotMinedEntityEventFilter View documentation}
|
5261
5261
|
*/
|
5262
5262
|
type LuaPreRobotMinedEntityEventFilter =
|
5263
5263
|
| TypePreRobotMinedEntityEventFilter
|
@@ -5378,7 +5378,7 @@ interface CircuitNetworkConnectableEntityClonedEventFilter extends BaseEntityClo
|
|
5378
5378
|
/**
|
5379
5379
|
* Other attributes may be specified depending on `filter`:
|
5380
5380
|
*
|
5381
|
-
* {@link https://lua-api.factorio.com/
|
5381
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaEntityClonedEventFilter View documentation}
|
5382
5382
|
*/
|
5383
5383
|
type LuaEntityClonedEventFilter =
|
5384
5384
|
| TypeEntityClonedEventFilter
|
@@ -5499,7 +5499,7 @@ interface CircuitNetworkConnectableScriptRaisedBuiltEventFilter extends BaseScri
|
|
5499
5499
|
/**
|
5500
5500
|
* Other attributes may be specified depending on `filter`:
|
5501
5501
|
*
|
5502
|
-
* {@link https://lua-api.factorio.com/
|
5502
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaScriptRaisedBuiltEventFilter View documentation}
|
5503
5503
|
*/
|
5504
5504
|
type LuaScriptRaisedBuiltEventFilter =
|
5505
5505
|
| TypeScriptRaisedBuiltEventFilter
|
@@ -5620,7 +5620,7 @@ interface CircuitNetworkConnectableRobotMinedEntityEventFilter extends BaseRobot
|
|
5620
5620
|
/**
|
5621
5621
|
* Other attributes may be specified depending on `filter`:
|
5622
5622
|
*
|
5623
|
-
* {@link https://lua-api.factorio.com/
|
5623
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaRobotMinedEntityEventFilter View documentation}
|
5624
5624
|
*/
|
5625
5625
|
type LuaRobotMinedEntityEventFilter =
|
5626
5626
|
| TypeRobotMinedEntityEventFilter
|
@@ -5741,7 +5741,7 @@ interface CircuitNetworkConnectablePrePlayerMinedEntityEventFilter extends BaseP
|
|
5741
5741
|
/**
|
5742
5742
|
* Other attributes may be specified depending on `filter`:
|
5743
5743
|
*
|
5744
|
-
* {@link https://lua-api.factorio.com/
|
5744
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaPrePlayerMinedEntityEventFilter View documentation}
|
5745
5745
|
*/
|
5746
5746
|
type LuaPrePlayerMinedEntityEventFilter =
|
5747
5747
|
| TypePrePlayerMinedEntityEventFilter
|
@@ -5870,7 +5870,7 @@ interface CircuitNetworkConnectableRobotBuiltEntityEventFilter extends BaseRobot
|
|
5870
5870
|
/**
|
5871
5871
|
* Other attributes may be specified depending on `filter`:
|
5872
5872
|
*
|
5873
|
-
* {@link https://lua-api.factorio.com/
|
5873
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaRobotBuiltEntityEventFilter View documentation}
|
5874
5874
|
*/
|
5875
5875
|
type LuaRobotBuiltEntityEventFilter =
|
5876
5876
|
| TypeRobotBuiltEntityEventFilter
|
@@ -5995,7 +5995,7 @@ interface CircuitNetworkConnectableEntityDeconstructionCancelledEventFilter
|
|
5995
5995
|
/**
|
5996
5996
|
* Other attributes may be specified depending on `filter`:
|
5997
5997
|
*
|
5998
|
-
* {@link https://lua-api.factorio.com/
|
5998
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaEntityDeconstructionCancelledEventFilter View documentation}
|
5999
5999
|
*/
|
6000
6000
|
type LuaEntityDeconstructionCancelledEventFilter =
|
6001
6001
|
| TypeEntityDeconstructionCancelledEventFilter
|
@@ -6124,7 +6124,7 @@ interface CircuitNetworkConnectablePlayerBuiltEntityEventFilter extends BasePlay
|
|
6124
6124
|
/**
|
6125
6125
|
* Other attributes may be specified depending on `filter`:
|
6126
6126
|
*
|
6127
|
-
* {@link https://lua-api.factorio.com/
|
6127
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaPlayerBuiltEntityEventFilter View documentation}
|
6128
6128
|
*/
|
6129
6129
|
type LuaPlayerBuiltEntityEventFilter =
|
6130
6130
|
| TypePlayerBuiltEntityEventFilter
|
@@ -6246,7 +6246,7 @@ interface CircuitNetworkConnectablePlayerMinedEntityEventFilter extends BasePlay
|
|
6246
6246
|
/**
|
6247
6247
|
* Other attributes may be specified depending on `filter`:
|
6248
6248
|
*
|
6249
|
-
* {@link https://lua-api.factorio.com/
|
6249
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaPlayerMinedEntityEventFilter View documentation}
|
6250
6250
|
*/
|
6251
6251
|
type LuaPlayerMinedEntityEventFilter =
|
6252
6252
|
| TypePlayerMinedEntityEventFilter
|
@@ -6399,7 +6399,7 @@ interface CircuitNetworkConnectableEntityDamagedEventFilter extends BaseEntityDa
|
|
6399
6399
|
/**
|
6400
6400
|
* Other attributes may be specified depending on `filter`:
|
6401
6401
|
*
|
6402
|
-
* {@link https://lua-api.factorio.com/
|
6402
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaEntityDamagedEventFilter View documentation}
|
6403
6403
|
*/
|
6404
6404
|
type LuaEntityDamagedEventFilter =
|
6405
6405
|
| TypeEntityDamagedEventFilter
|
@@ -6524,7 +6524,7 @@ interface CircuitNetworkConnectableSectorScannedEventFilter extends BaseSectorSc
|
|
6524
6524
|
/**
|
6525
6525
|
* Other attributes may be specified depending on `filter`:
|
6526
6526
|
*
|
6527
|
-
* {@link https://lua-api.factorio.com/
|
6527
|
+
* {@link https://lua-api.factorio.com/latest/Concepts.html#LuaSectorScannedEventFilter View documentation}
|
6528
6528
|
*/
|
6529
6529
|
type LuaSectorScannedEventFilter =
|
6530
6530
|
| TypeSectorScannedEventFilter
|