typed-factorio 2.5.2 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -21
- package/README.md +38 -23
- package/common/serpent.d.ts +8 -7
- package/common/types.d.ts +28 -0
- package/package.json +17 -16
- package/prototype/generated/prototypes.d.ts +1920 -1908
- package/prototype/generated/types.d.ts +1606 -1437
- package/runtime/generated/builtin-types.d.ts +12 -12
- package/runtime/generated/classes.d.ts +3432 -3346
- package/runtime/generated/concepts.d.ts +399 -326
- package/runtime/generated/defines.d.ts +120 -120
- 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
@@ -34,6 +34,145 @@ declare module "factorio:runtime" {
|
|
34
34
|
*/
|
35
35
|
readonly game_state?: boolean
|
36
36
|
}
|
37
|
+
export interface RailEnd {
|
38
|
+
readonly rail: LuaEntity
|
39
|
+
readonly direction: defines.rail_direction
|
40
|
+
}
|
41
|
+
export interface TrainPathFinderRequest {
|
42
|
+
readonly goals: readonly (TrainStopGoal | RailEnd)[]
|
43
|
+
/**
|
44
|
+
* Defaults to false. If set to true, pathfinder will not return a path that cannot have its beginning immediately reserved causing train to stop inside of intersection.
|
45
|
+
*/
|
46
|
+
readonly in_chain_signal_section?: boolean
|
47
|
+
/**
|
48
|
+
* Mandatory if from_front and from_back are not provided, optional otherwise. Selects a context for the pathfinder to decide which train to exclude from penalties and which signals are considered possible to reacquire. If from_front and from_back are not provided, then it is also used to collect front and back ends for the search
|
49
|
+
*/
|
50
|
+
readonly train?: LuaTrain
|
51
|
+
/**
|
52
|
+
* Request type. "path", "any-goal-accessible", "all-goals-accessible" or "all-goals-penalties". Defaults to "path"
|
53
|
+
*/
|
54
|
+
readonly type?: "path" | "any-goal-accessible" | "all-goals-accessible" | "all-goals-penalties"
|
55
|
+
/**
|
56
|
+
* Only relevant if request type is "path". Returning a full path is expensive due to multiple LuaEntity created. In order for path to be returned, true must be provided here. Defaults to false in which case a path will not be provided.
|
57
|
+
*/
|
58
|
+
readonly return_path?: boolean
|
59
|
+
/**
|
60
|
+
* Manually provided starting front of the train.
|
61
|
+
*/
|
62
|
+
readonly from_front?: RailEnd
|
63
|
+
/**
|
64
|
+
* Only relevant if from_front is given. Defaults to true. Providing false will cause the pathfinder to reject a path that starts on front and ends within the same segment as the path would be too short to provide correct alignment with a goal.
|
65
|
+
*/
|
66
|
+
readonly allow_path_within_segment_front?: boolean
|
67
|
+
/**
|
68
|
+
* Manually provided starting back of the train.
|
69
|
+
*/
|
70
|
+
readonly from_back?: RailEnd
|
71
|
+
/**
|
72
|
+
* Only relevant if from_back is given. Defaults to true. Providing false will cause the pathfinder to reject a path that starts on back and ends within the same segment as the path would be too short to provide correct alignment with a goal.
|
73
|
+
*/
|
74
|
+
readonly allow_path_within_segment_back?: boolean
|
75
|
+
/**
|
76
|
+
* Only relevant if none of from_front/from_back was provied in which case from_front and from_back are deduced from the train. Selects which train ends should be considered as starts. Possible values: "respect-movement-direction", "any-direction-with-locomotives". Defaults to "any-direction-with-locomotives"
|
77
|
+
*/
|
78
|
+
readonly search_direction?: "respect-movement-direction" | "any-direction-with-locomotives"
|
79
|
+
/**
|
80
|
+
* Maximum amount of steps pathfinder is allowed to perform
|
81
|
+
*/
|
82
|
+
readonly steps_limit?: uint
|
83
|
+
}
|
84
|
+
export interface TrainStopGoal {
|
85
|
+
/**
|
86
|
+
* Train stop target. Must be connected to rail (LuaEntity::connected_rail returns valid LuaEntity)
|
87
|
+
*/
|
88
|
+
readonly train_stop: LuaEntity
|
89
|
+
}
|
90
|
+
export interface TrainPathFinderPathResult {
|
91
|
+
/**
|
92
|
+
* True if found path.
|
93
|
+
*/
|
94
|
+
readonly found_path: boolean
|
95
|
+
/**
|
96
|
+
* Only returned if return_path was set to true and path was found. Contains all rails in order that are part of the found path
|
97
|
+
*/
|
98
|
+
readonly path?: LuaEntity[]
|
99
|
+
/**
|
100
|
+
* If path was found, provides index of the specific goal to which the path goes to
|
101
|
+
*/
|
102
|
+
readonly goal_index?: uint
|
103
|
+
/**
|
104
|
+
* Penalty of the path to goal if path was found
|
105
|
+
*/
|
106
|
+
readonly penalty?: double
|
107
|
+
/**
|
108
|
+
* If path was found, provides total length of all rails of the path
|
109
|
+
*/
|
110
|
+
readonly total_length?: double
|
111
|
+
/**
|
112
|
+
* If path was found, tells if the path was reached from the from_front or train's front end.
|
113
|
+
*/
|
114
|
+
readonly is_front?: boolean
|
115
|
+
/**
|
116
|
+
* Amount of steps pathfinder performed. This is a measure of how expensive this search was.
|
117
|
+
*/
|
118
|
+
readonly steps_count: uint
|
119
|
+
}
|
120
|
+
export interface TrainPathAnyGoalResult {
|
121
|
+
/**
|
122
|
+
* True if any goal was accessible
|
123
|
+
*/
|
124
|
+
readonly found_path: boolean
|
125
|
+
/**
|
126
|
+
* If any goal was accessible, this gives index of the particular goal that was found
|
127
|
+
*/
|
128
|
+
readonly goal_index?: uint
|
129
|
+
/**
|
130
|
+
* Penalty of the path to goal if a goal was accessible
|
131
|
+
*/
|
132
|
+
readonly penalty?: double
|
133
|
+
/**
|
134
|
+
* Amount of steps pathfinder performed. This is a measure of how expensive this search was.
|
135
|
+
*/
|
136
|
+
readonly steps_count: uint
|
137
|
+
}
|
138
|
+
export interface TrainPathAllGoalsResult {
|
139
|
+
/**
|
140
|
+
* Amount of goals that are accessible
|
141
|
+
*/
|
142
|
+
readonly amount_accessible: uint
|
143
|
+
/**
|
144
|
+
* Table of the same length as requested goals: each field will tell if related goal is accessible for the train
|
145
|
+
*/
|
146
|
+
readonly accessible: boolean[]
|
147
|
+
/**
|
148
|
+
* Table of the same length as requested goals. Only present if request type was "all-goals-penalties"
|
149
|
+
*/
|
150
|
+
readonly penalties?: double[]
|
151
|
+
/**
|
152
|
+
* Amount of steps pathfinder performed. This is a measure of how expensive this search was.
|
153
|
+
*/
|
154
|
+
readonly steps_count: uint
|
155
|
+
}
|
156
|
+
export interface ElemID {
|
157
|
+
/**
|
158
|
+
* One of `"achievement"`, `"decorative"`, `"entity"`, `"equipment"`, `"fluid"`, `"item"`, `"item-group"`, `"recipe"`, `"signal"`, or `"technology"`.
|
159
|
+
*/
|
160
|
+
readonly type:
|
161
|
+
| "achievement"
|
162
|
+
| "decorative"
|
163
|
+
| "entity"
|
164
|
+
| "equipment"
|
165
|
+
| "fluid"
|
166
|
+
| "item"
|
167
|
+
| "item-group"
|
168
|
+
| "recipe"
|
169
|
+
| "signal"
|
170
|
+
| "technology"
|
171
|
+
/**
|
172
|
+
* Name of a prototype as defined by `type`.
|
173
|
+
*/
|
174
|
+
readonly name: string
|
175
|
+
}
|
37
176
|
export interface RadiusVisualisationSpecification {
|
38
177
|
readonly distance: double
|
39
178
|
readonly offset: Vector
|
@@ -62,7 +201,7 @@ declare module "factorio:runtime" {
|
|
62
201
|
* - `"none-to-south"`
|
63
202
|
* - `"south-to-none"`
|
64
203
|
* - `"none-to-north"`
|
65
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
204
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#CliffOrientation Online documentation}
|
66
205
|
*/
|
67
206
|
export type CliffOrientation =
|
68
207
|
| "west-to-east"
|
@@ -107,7 +246,7 @@ declare module "factorio:runtime" {
|
|
107
246
|
* game.print({"", {"item-name.iron-plate"}, ": ", 60})
|
108
247
|
* @example As an example of a localised string with fallback, consider this:
|
109
248
|
* {"?", {"", {"entity-description.furnace"}, "\n"}, {"item-description.furnace"}, "optional fallback"}
|
110
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
249
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LocalisedString Online documentation}
|
111
250
|
*/
|
112
251
|
export type LocalisedString = string | number | boolean | LuaObject | nil | [string, ...LocalisedString[]]
|
113
252
|
export interface DisplayResolution {
|
@@ -126,7 +265,7 @@ declare module "factorio:runtime" {
|
|
126
265
|
* 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".
|
127
266
|
*
|
128
267
|
* For example then, a value of `0.625` would indicate "south-west", and a value of `0.875` would indicate "north-west".
|
129
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
268
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#RealOrientation Online documentation}
|
130
269
|
*/
|
131
270
|
export type RealOrientation = float
|
132
271
|
/**
|
@@ -139,7 +278,7 @@ declare module "factorio:runtime" {
|
|
139
278
|
* {y = 2.25, x = 5.125}
|
140
279
|
* @example Shorthand:
|
141
280
|
* {1.625, 2.375}
|
142
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
281
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#MapPosition Online documentation}
|
143
282
|
*/
|
144
283
|
export interface MapPosition {
|
145
284
|
readonly x: double
|
@@ -148,13 +287,13 @@ declare module "factorio:runtime" {
|
|
148
287
|
/**
|
149
288
|
* Array form of {@link MapPosition}.
|
150
289
|
* @see MapPosition
|
151
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
290
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#MapPosition Online documentation}
|
152
291
|
*/
|
153
292
|
export type MapPositionArray = readonly [x: double, y: double]
|
154
293
|
/**
|
155
294
|
* 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.
|
156
295
|
* @see ChunkPositionArray
|
157
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
296
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ChunkPosition Online documentation}
|
158
297
|
*/
|
159
298
|
export interface ChunkPosition {
|
160
299
|
readonly x: int
|
@@ -163,13 +302,13 @@ declare module "factorio:runtime" {
|
|
163
302
|
/**
|
164
303
|
* Array form of {@link ChunkPosition}.
|
165
304
|
* @see ChunkPosition
|
166
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
305
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ChunkPosition Online documentation}
|
167
306
|
*/
|
168
307
|
export type ChunkPositionArray = readonly [x: int, y: int]
|
169
308
|
/**
|
170
309
|
* 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.
|
171
310
|
* @see TilePositionArray
|
172
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
311
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#TilePosition Online documentation}
|
173
312
|
*/
|
174
313
|
export interface TilePosition {
|
175
314
|
readonly x: int
|
@@ -178,7 +317,7 @@ declare module "factorio:runtime" {
|
|
178
317
|
/**
|
179
318
|
* Array form of {@link TilePosition}.
|
180
319
|
* @see TilePosition
|
181
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
320
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#TilePosition Online documentation}
|
182
321
|
*/
|
183
322
|
export type TilePositionArray = readonly [x: int, y: int]
|
184
323
|
/**
|
@@ -189,7 +328,7 @@ declare module "factorio:runtime" {
|
|
189
328
|
* {y = 2, x = 5}
|
190
329
|
* @example Shorthand:
|
191
330
|
* {1, 2}
|
192
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
331
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#EquipmentPosition Online documentation}
|
193
332
|
*/
|
194
333
|
export interface EquipmentPosition {
|
195
334
|
readonly x: int
|
@@ -198,13 +337,13 @@ declare module "factorio:runtime" {
|
|
198
337
|
/**
|
199
338
|
* Array form of {@link EquipmentPosition}.
|
200
339
|
* @see EquipmentPosition
|
201
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
340
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#EquipmentPosition Online documentation}
|
202
341
|
*/
|
203
342
|
export type EquipmentPositionArray = readonly [x: int, y: int]
|
204
343
|
/**
|
205
344
|
* 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.
|
206
345
|
* @see GuiLocationArray
|
207
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
346
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GuiLocation Online documentation}
|
208
347
|
*/
|
209
348
|
export interface GuiLocation {
|
210
349
|
readonly x: int
|
@@ -213,12 +352,12 @@ declare module "factorio:runtime" {
|
|
213
352
|
/**
|
214
353
|
* Array form of {@link GuiLocation}.
|
215
354
|
* @see GuiLocation
|
216
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
355
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GuiLocation Online documentation}
|
217
356
|
*/
|
218
357
|
export type GuiLocationArray = readonly [x: int, y: int]
|
219
358
|
/**
|
220
359
|
* A {@link ChunkPosition} with an added bounding box for the area of the chunk.
|
221
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
360
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ChunkPositionAndArea Online documentation}
|
222
361
|
*/
|
223
362
|
export interface ChunkPositionAndArea {
|
224
363
|
readonly x: int
|
@@ -227,7 +366,7 @@ declare module "factorio:runtime" {
|
|
227
366
|
}
|
228
367
|
/**
|
229
368
|
* A table used to define a manual shape for a piece of equipment.
|
230
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
369
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#EquipmentPoint Online documentation}
|
231
370
|
*/
|
232
371
|
export interface EquipmentPoint {
|
233
372
|
readonly x: uint
|
@@ -263,12 +402,12 @@ declare module "factorio:runtime" {
|
|
263
402
|
* 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.
|
264
403
|
* @example
|
265
404
|
* {a = 1, b = true, c = "three", d = {e = "f"}}
|
266
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
405
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#Tags Online documentation}
|
267
406
|
*/
|
268
407
|
export type Tags = Record<string, AnyBasic>
|
269
408
|
/**
|
270
409
|
* @remarks The vectors for all 5 position attributes are a table with `x` and `y` keys instead of an array.
|
271
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
410
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#SmokeSource Online documentation}
|
272
411
|
*/
|
273
412
|
export interface SmokeSource {
|
274
413
|
readonly name: string
|
@@ -295,7 +434,7 @@ declare module "factorio:runtime" {
|
|
295
434
|
* 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.
|
296
435
|
* @example
|
297
436
|
* right = {1.0, 0.0}
|
298
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
437
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#Vector Online documentation}
|
299
438
|
*/
|
300
439
|
export type Vector = MapPositionArray
|
301
440
|
/**
|
@@ -305,7 +444,7 @@ declare module "factorio:runtime" {
|
|
305
444
|
* {left_top = {x = -2, y = -3}, right_bottom = {x = 5, y = 8}}
|
306
445
|
* @example Shorthand:
|
307
446
|
* {{-2, -3}, {5, 8}}
|
308
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
447
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#BoundingBox Online documentation}
|
309
448
|
*/
|
310
449
|
export interface BoundingBox {
|
311
450
|
readonly left_top: MapPosition
|
@@ -323,7 +462,7 @@ declare module "factorio:runtime" {
|
|
323
462
|
/**
|
324
463
|
* Array form of {@link BoundingBox}.
|
325
464
|
* @see BoundingBox
|
326
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
465
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#BoundingBox Online documentation}
|
327
466
|
*/
|
328
467
|
export type BoundingBoxArray = readonly [
|
329
468
|
left_top: MapPosition | MapPositionArray,
|
@@ -333,7 +472,7 @@ declare module "factorio:runtime" {
|
|
333
472
|
/**
|
334
473
|
* An area defined using the map editor.
|
335
474
|
* @see ScriptAreaWrite
|
336
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
475
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ScriptArea Online documentation}
|
337
476
|
*/
|
338
477
|
export interface ScriptArea {
|
339
478
|
readonly area: BoundingBox
|
@@ -343,7 +482,7 @@ declare module "factorio:runtime" {
|
|
343
482
|
}
|
344
483
|
/**
|
345
484
|
* Write form of {@link ScriptArea}, where table-or-array concepts are allowed to take an array form.
|
346
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
485
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ScriptArea Online documentation}
|
347
486
|
*/
|
348
487
|
export interface ScriptAreaWrite {
|
349
488
|
readonly area: BoundingBoxWrite | BoundingBoxArray
|
@@ -354,7 +493,7 @@ declare module "factorio:runtime" {
|
|
354
493
|
/**
|
355
494
|
* A position defined using the map editor.
|
356
495
|
* @see ScriptPositionWrite
|
357
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
496
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ScriptPosition Online documentation}
|
358
497
|
*/
|
359
498
|
export interface ScriptPosition {
|
360
499
|
readonly position: MapPosition
|
@@ -364,7 +503,7 @@ declare module "factorio:runtime" {
|
|
364
503
|
}
|
365
504
|
/**
|
366
505
|
* Write form of {@link ScriptPosition}, where table-or-array concepts are allowed to take an array form.
|
367
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
506
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ScriptPosition Online documentation}
|
368
507
|
*/
|
369
508
|
export interface ScriptPositionWrite {
|
370
509
|
readonly position: MapPosition | MapPositionArray
|
@@ -382,7 +521,7 @@ declare module "factorio:runtime" {
|
|
382
521
|
* red2 = {r = 0.5, a = 0.5} -- Same color as red1
|
383
522
|
* black = {} -- All channels omitted: black
|
384
523
|
* red1_short = {0.5, 0, 0, 0.5} -- Same color as red1 in short-hand notation
|
385
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
524
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#Color Online documentation}
|
386
525
|
*/
|
387
526
|
export interface Color {
|
388
527
|
readonly r?: float
|
@@ -393,13 +532,13 @@ declare module "factorio:runtime" {
|
|
393
532
|
/**
|
394
533
|
* Array form of {@link Color}.
|
395
534
|
* @see Color
|
396
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
535
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#Color Online documentation}
|
397
536
|
*/
|
398
537
|
export type ColorArray = readonly [r?: float, g?: float, b?: float, a?: float]
|
399
538
|
/**
|
400
539
|
* 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].
|
401
540
|
* @see ColorModifierArray
|
402
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
541
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ColorModifier Online documentation}
|
403
542
|
*/
|
404
543
|
export interface ColorModifier {
|
405
544
|
readonly r?: float
|
@@ -410,7 +549,7 @@ declare module "factorio:runtime" {
|
|
410
549
|
/**
|
411
550
|
* Array form of {@link ColorModifier}.
|
412
551
|
* @see ColorModifier
|
413
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
552
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ColorModifier Online documentation}
|
414
553
|
*/
|
415
554
|
export type ColorModifierArray = readonly [r?: float, g?: float, b?: float, a?: float]
|
416
555
|
export interface CraftingQueueItem {
|
@@ -450,7 +589,7 @@ declare module "factorio:runtime" {
|
|
450
589
|
}
|
451
590
|
/**
|
452
591
|
* One vertex of a ScriptRenderPolygon.
|
453
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
592
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ScriptRenderVertexTarget Online documentation}
|
454
593
|
*/
|
455
594
|
export interface ScriptRenderVertexTarget {
|
456
595
|
readonly target: (MapPosition | MapPositionArray) | LuaEntity
|
@@ -516,7 +655,7 @@ declare module "factorio:runtime" {
|
|
516
655
|
}
|
517
656
|
/**
|
518
657
|
* @remarks Either `icon`, `text`, or both must be provided.
|
519
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
658
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ChartTagSpec Online documentation}
|
520
659
|
*/
|
521
660
|
export interface ChartTagSpec {
|
522
661
|
readonly position: MapPosition | MapPositionArray
|
@@ -526,88 +665,88 @@ declare module "factorio:runtime" {
|
|
526
665
|
}
|
527
666
|
/**
|
528
667
|
* 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.
|
529
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
668
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GameViewSettings Online documentation}
|
530
669
|
*/
|
531
670
|
export interface GameViewSettings {
|
532
671
|
/**
|
533
672
|
* Show the controller GUI elements. This includes the toolbar, the selected tool slot, the armour slot, and the gun and ammunition slots.
|
534
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
673
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GameViewSettings.show_controller_gui Online documentation}
|
535
674
|
*/
|
536
675
|
show_controller_gui: boolean
|
537
676
|
/**
|
538
677
|
* Show the chart in the upper right-hand corner of the screen.
|
539
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
678
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GameViewSettings.show_minimap Online documentation}
|
540
679
|
*/
|
541
680
|
show_minimap: boolean
|
542
681
|
/**
|
543
682
|
* Show research progress and name in the upper right-hand corner of the screen.
|
544
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
683
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GameViewSettings.show_research_info Online documentation}
|
545
684
|
*/
|
546
685
|
show_research_info: boolean
|
547
686
|
/**
|
548
687
|
* Show overlay icons on entities. Also known as "alt-mode".
|
549
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
688
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GameViewSettings.show_entity_info Online documentation}
|
550
689
|
*/
|
551
690
|
show_entity_info: boolean
|
552
691
|
/**
|
553
692
|
* Show the flashing alert icons next to the player's toolbar.
|
554
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
693
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GameViewSettings.show_alert_gui Online documentation}
|
555
694
|
*/
|
556
695
|
show_alert_gui: boolean
|
557
696
|
/**
|
558
697
|
* When `true` (the default), mousing over an entity will select it. Otherwise, moving the mouse won't update entity selection.
|
559
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
698
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GameViewSettings.update_entity_selection Online documentation}
|
560
699
|
*/
|
561
700
|
update_entity_selection: boolean
|
562
701
|
/**
|
563
702
|
* When `true` (`false` is default), the rails will always show the rail block visualisation.
|
564
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
703
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GameViewSettings.show_rail_block_visualisation Online documentation}
|
565
704
|
*/
|
566
705
|
show_rail_block_visualisation: boolean
|
567
706
|
/**
|
568
707
|
* Shows or hides the buttons row.
|
569
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
708
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GameViewSettings.show_side_menu Online documentation}
|
570
709
|
*/
|
571
710
|
show_side_menu: boolean
|
572
711
|
/**
|
573
712
|
* Shows or hides the view options when map is opened.
|
574
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
713
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GameViewSettings.show_map_view_options Online documentation}
|
575
714
|
*/
|
576
715
|
show_map_view_options: boolean
|
577
716
|
/**
|
578
717
|
* Shows or hides the tooltip that is displayed when selecting an entity.
|
579
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
718
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GameViewSettings.show_entity_tooltip Online documentation}
|
580
719
|
*/
|
581
720
|
show_entity_tooltip: boolean
|
582
721
|
/**
|
583
722
|
* Shows or hides quickbar of shortcuts.
|
584
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
723
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GameViewSettings.show_quickbar Online documentation}
|
585
724
|
*/
|
586
725
|
show_quickbar: boolean
|
587
726
|
/**
|
588
727
|
* Shows or hides the shortcut bar.
|
589
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
728
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GameViewSettings.show_shortcut_bar Online documentation}
|
590
729
|
*/
|
591
730
|
show_shortcut_bar: boolean
|
592
731
|
/**
|
593
732
|
* Shows or hides the crafting queue.
|
594
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
733
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GameViewSettings.show_crafting_queue Online documentation}
|
595
734
|
*/
|
596
735
|
show_crafting_queue: boolean
|
597
736
|
/**
|
598
737
|
* Shows or hides the tool window with the weapons and armor.
|
599
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
738
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GameViewSettings.show_tool_bar Online documentation}
|
600
739
|
*/
|
601
740
|
show_tool_bar: boolean
|
602
741
|
/**
|
603
742
|
* Shows or hides the mouse and keyboard/controller button hints in the bottom left corner if they are enabled in the interface settings.
|
604
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
743
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GameViewSettings.show_hotkey_suggestions Online documentation}
|
605
744
|
*/
|
606
745
|
show_hotkey_suggestions: boolean
|
607
746
|
}
|
608
747
|
/**
|
609
748
|
* What is shown in the map view. If a field is not given, that setting will not be changed.
|
610
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
749
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#MapViewSettings Online documentation}
|
611
750
|
*/
|
612
751
|
export interface MapViewSettings {
|
613
752
|
readonly "show-logistic-network"?: boolean
|
@@ -621,7 +760,7 @@ declare module "factorio:runtime" {
|
|
621
760
|
}
|
622
761
|
/**
|
623
762
|
* These values are for the time frame of one second (60 ticks).
|
624
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
763
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#PollutionMapSettings Online documentation}
|
625
764
|
*/
|
626
765
|
export interface PollutionMapSettings {
|
627
766
|
/**
|
@@ -675,7 +814,7 @@ declare module "factorio:runtime" {
|
|
675
814
|
}
|
676
815
|
/**
|
677
816
|
* These values represent a percentual increase in evolution. This means a value of `0.1` would increase evolution by 10%.
|
678
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
817
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#EnemyEvolutionMapSettings Online documentation}
|
679
818
|
*/
|
680
819
|
export interface EnemyEvolutionMapSettings {
|
681
820
|
/**
|
@@ -715,7 +854,7 @@ declare module "factorio:runtime" {
|
|
715
854
|
*
|
716
855
|
* score(chunk) = 1 / (1 + player + base)
|
717
856
|
* ```
|
718
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
857
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#EnemyExpansionMapSettings Online documentation}
|
719
858
|
*/
|
720
859
|
export interface EnemyExpansionMapSettings {
|
721
860
|
/**
|
@@ -976,7 +1115,7 @@ declare module "factorio:runtime" {
|
|
976
1115
|
* Various game-related settings. Updating any of the attributes will immediately take effect in the game engine.
|
977
1116
|
* @example Increase the number of short paths the pathfinder can cache.
|
978
1117
|
* game.map_settings.path_finder.short_cache_size = 15
|
979
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1118
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#MapSettings Online documentation}
|
980
1119
|
*/
|
981
1120
|
export interface MapSettings {
|
982
1121
|
pollution: PollutionMapSettings
|
@@ -987,31 +1126,31 @@ declare module "factorio:runtime" {
|
|
987
1126
|
path_finder: PathFinderMapSettings
|
988
1127
|
/**
|
989
1128
|
* If a behavior fails this many times, the enemy (or enemy group) is destroyed. This solves biters getting stuck within their own base.
|
990
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1129
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#MapSettings.max_failed_behavior_count Online documentation}
|
991
1130
|
*/
|
992
1131
|
max_failed_behavior_count: uint
|
993
1132
|
}
|
994
1133
|
/**
|
995
1134
|
* Technology and recipe difficulty settings. Updating any of the attributes will immediately take effect in the game engine.
|
996
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1135
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#DifficultySettings Online documentation}
|
997
1136
|
*/
|
998
1137
|
export interface DifficultySettings {
|
999
1138
|
recipe_difficulty: defines.difficulty_settings.recipe_difficulty
|
1000
1139
|
technology_difficulty: defines.difficulty_settings.technology_difficulty
|
1001
1140
|
/**
|
1002
1141
|
* A value in range [0.001, 1000].
|
1003
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1142
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#DifficultySettings.technology_price_multiplier Online documentation}
|
1004
1143
|
*/
|
1005
1144
|
technology_price_multiplier: double
|
1006
1145
|
/**
|
1007
1146
|
* 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.
|
1008
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1147
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#DifficultySettings.research_queue_setting Online documentation}
|
1009
1148
|
*/
|
1010
1149
|
research_queue_setting: "after-victory" | "always" | "never"
|
1011
1150
|
}
|
1012
1151
|
/**
|
1013
1152
|
* A standard table containing all {@link MapSettings} attributes plus an additional table that contains all {@link DifficultySettings} properties.
|
1014
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1153
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#MapAndDifficultySettings Online documentation}
|
1015
1154
|
*/
|
1016
1155
|
export interface MapAndDifficultySettings {
|
1017
1156
|
readonly pollution: PollutionMapSettings
|
@@ -1040,7 +1179,7 @@ declare module "factorio:runtime" {
|
|
1040
1179
|
}
|
1041
1180
|
/**
|
1042
1181
|
* The data that can be extracted from a map exchange string, as a plain table.
|
1043
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1182
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#MapExchangeStringData Online documentation}
|
1044
1183
|
*/
|
1045
1184
|
export interface MapExchangeStringData {
|
1046
1185
|
readonly map_settings: MapAndDifficultySettings
|
@@ -1059,7 +1198,7 @@ declare module "factorio:runtime" {
|
|
1059
1198
|
/**
|
1060
1199
|
* 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.
|
1061
1200
|
* @see BlueprintEntityWrite
|
1062
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1201
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#BlueprintEntity Online documentation}
|
1063
1202
|
*/
|
1064
1203
|
export interface BlueprintEntity {
|
1065
1204
|
/**
|
@@ -1238,7 +1377,7 @@ declare module "factorio:runtime" {
|
|
1238
1377
|
}
|
1239
1378
|
/**
|
1240
1379
|
* Write form of {@link BlueprintEntity}, where table-or-array concepts are allowed to take an array form.
|
1241
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1380
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#BlueprintEntity Online documentation}
|
1242
1381
|
*/
|
1243
1382
|
export interface BlueprintEntityWrite {
|
1244
1383
|
/**
|
@@ -1326,7 +1465,7 @@ declare module "factorio:runtime" {
|
|
1326
1465
|
}
|
1327
1466
|
/**
|
1328
1467
|
* @see TileWrite
|
1329
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1468
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#Tile Online documentation}
|
1330
1469
|
*/
|
1331
1470
|
export interface Tile {
|
1332
1471
|
/**
|
@@ -1340,7 +1479,7 @@ declare module "factorio:runtime" {
|
|
1340
1479
|
}
|
1341
1480
|
/**
|
1342
1481
|
* Write form of {@link Tile}, where table-or-array concepts are allowed to take an array form.
|
1343
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1482
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#Tile Online documentation}
|
1344
1483
|
*/
|
1345
1484
|
export interface TileWrite {
|
1346
1485
|
/**
|
@@ -1412,7 +1551,7 @@ declare module "factorio:runtime" {
|
|
1412
1551
|
*
|
1413
1552
|
* Other attributes may be specified depending on `type`:
|
1414
1553
|
* - `"fluid"`: {@link FluidIngredient}
|
1415
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1554
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#Ingredient Online documentation}
|
1416
1555
|
*/
|
1417
1556
|
export type Ingredient = FluidIngredient | OtherIngredient
|
1418
1557
|
/**
|
@@ -1477,7 +1616,7 @@ declare module "factorio:runtime" {
|
|
1477
1616
|
* {type="fluid", name="petroleum-gas", amount=5.5}}
|
1478
1617
|
* @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:
|
1479
1618
|
* {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
|
1480
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1619
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#Product Online documentation}
|
1481
1620
|
*/
|
1482
1621
|
export type Product = FluidProduct | OtherProduct
|
1483
1622
|
export interface Loot {
|
@@ -1679,7 +1818,7 @@ declare module "factorio:runtime" {
|
|
1679
1818
|
* - `"unlock-recipe"`: {@link UnlockRecipeTechnologyModifier}
|
1680
1819
|
* - `"nothing"`: {@link NothingTechnologyModifier}
|
1681
1820
|
* - Other types: {@link OtherTechnologyModifier}
|
1682
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1821
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#TechnologyModifier Online documentation}
|
1683
1822
|
*/
|
1684
1823
|
export type TechnologyModifier =
|
1685
1824
|
| GunSpeedTechnologyModifier
|
@@ -1691,7 +1830,7 @@ declare module "factorio:runtime" {
|
|
1691
1830
|
| OtherTechnologyModifier
|
1692
1831
|
/**
|
1693
1832
|
* A single offer on a market entity.
|
1694
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1833
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#Offer Online documentation}
|
1695
1834
|
*/
|
1696
1835
|
export interface Offer {
|
1697
1836
|
/**
|
@@ -1705,7 +1844,7 @@ declare module "factorio:runtime" {
|
|
1705
1844
|
}
|
1706
1845
|
/**
|
1707
1846
|
* 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.
|
1708
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1847
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#AutoplaceSpecification Online documentation}
|
1709
1848
|
*/
|
1710
1849
|
export interface AutoplaceSpecification {
|
1711
1850
|
readonly probability_expression: NoiseExpression
|
@@ -1731,7 +1870,7 @@ declare module "factorio:runtime" {
|
|
1731
1870
|
}
|
1732
1871
|
/**
|
1733
1872
|
* 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}.
|
1734
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1873
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#NoiseExpression Online documentation}
|
1735
1874
|
*/
|
1736
1875
|
export interface NoiseExpression {
|
1737
1876
|
/**
|
@@ -1823,7 +1962,7 @@ declare module "factorio:runtime" {
|
|
1823
1962
|
* - `"very-big"`: equivalent to `2`.
|
1824
1963
|
* - `"very-good"`: equivalent to `2`.
|
1825
1964
|
* @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.
|
1826
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1965
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#MapGenSize Online documentation}
|
1827
1966
|
*/
|
1828
1967
|
export type MapGenSize =
|
1829
1968
|
| float
|
@@ -1845,7 +1984,7 @@ declare module "factorio:runtime" {
|
|
1845
1984
|
| "very-good"
|
1846
1985
|
/**
|
1847
1986
|
* @see AutoplaceControlWrite
|
1848
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1987
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#AutoplaceControl Online documentation}
|
1849
1988
|
*/
|
1850
1989
|
export interface AutoplaceControl {
|
1851
1990
|
/**
|
@@ -1863,7 +2002,7 @@ declare module "factorio:runtime" {
|
|
1863
2002
|
}
|
1864
2003
|
/**
|
1865
2004
|
* Write form of {@link AutoplaceControl}, where table-or-array concepts are allowed to take an array form.
|
1866
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2005
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#AutoplaceControl Online documentation}
|
1867
2006
|
*/
|
1868
2007
|
export interface AutoplaceControlWrite {
|
1869
2008
|
/**
|
@@ -1881,7 +2020,7 @@ declare module "factorio:runtime" {
|
|
1881
2020
|
}
|
1882
2021
|
/**
|
1883
2022
|
* @see AutoplaceSettingsWrite
|
1884
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2023
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#AutoplaceSettings Online documentation}
|
1885
2024
|
*/
|
1886
2025
|
export interface AutoplaceSettings {
|
1887
2026
|
/**
|
@@ -1892,7 +2031,7 @@ declare module "factorio:runtime" {
|
|
1892
2031
|
}
|
1893
2032
|
/**
|
1894
2033
|
* Write form of {@link AutoplaceSettings}, where table-or-array concepts are allowed to take an array form.
|
1895
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2034
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#AutoplaceSettings Online documentation}
|
1896
2035
|
*/
|
1897
2036
|
export interface AutoplaceSettingsWrite {
|
1898
2037
|
/**
|
@@ -1903,7 +2042,7 @@ declare module "factorio:runtime" {
|
|
1903
2042
|
}
|
1904
2043
|
/**
|
1905
2044
|
* @see CliffPlacementSettingsWrite
|
1906
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2045
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#CliffPlacementSettings Online documentation}
|
1907
2046
|
*/
|
1908
2047
|
export interface CliffPlacementSettings {
|
1909
2048
|
/**
|
@@ -1925,7 +2064,7 @@ declare module "factorio:runtime" {
|
|
1925
2064
|
}
|
1926
2065
|
/**
|
1927
2066
|
* Write form of {@link CliffPlacementSettings}, where table-or-array concepts are allowed to take an array form.
|
1928
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2067
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#CliffPlacementSettings Online documentation}
|
1929
2068
|
*/
|
1930
2069
|
export interface CliffPlacementSettingsWrite {
|
1931
2070
|
/**
|
@@ -1958,7 +2097,7 @@ declare module "factorio:runtime" {
|
|
1958
2097
|
* local mgs = surface.map_gen_settings
|
1959
2098
|
* mgs.property_expression_names["tile:deepwater:probability"] = -1000
|
1960
2099
|
* surface.map_gen_settings = mgs
|
1961
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2100
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#MapGenSettings Online documentation}
|
1962
2101
|
*/
|
1963
2102
|
export interface MapGenSettings {
|
1964
2103
|
/**
|
@@ -2028,7 +2167,7 @@ declare module "factorio:runtime" {
|
|
2028
2167
|
}
|
2029
2168
|
/**
|
2030
2169
|
* Write form of {@link MapGenSettings}, where table-or-array concepts are allowed to take an array form.
|
2031
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2170
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#MapGenSettings Online documentation}
|
2032
2171
|
*/
|
2033
2172
|
export interface MapGenSettingsWrite {
|
2034
2173
|
/**
|
@@ -2126,7 +2265,7 @@ declare module "factorio:runtime" {
|
|
2126
2265
|
}
|
2127
2266
|
/**
|
2128
2267
|
* An actual signal transmitted by the network.
|
2129
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2268
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#Signal Online documentation}
|
2130
2269
|
*/
|
2131
2270
|
export interface Signal {
|
2132
2271
|
/**
|
@@ -2150,7 +2289,7 @@ declare module "factorio:runtime" {
|
|
2150
2289
|
}
|
2151
2290
|
/**
|
2152
2291
|
* A single filter used by an infinity-filters instance.
|
2153
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2292
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#InfinityInventoryFilter Online documentation}
|
2154
2293
|
*/
|
2155
2294
|
export interface InfinityInventoryFilter {
|
2156
2295
|
/**
|
@@ -2172,7 +2311,7 @@ declare module "factorio:runtime" {
|
|
2172
2311
|
}
|
2173
2312
|
/**
|
2174
2313
|
* A single filter used by an infinity-pipe type entity.
|
2175
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2314
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#InfinityPipeFilter Online documentation}
|
2176
2315
|
*/
|
2177
2316
|
export interface InfinityPipeFilter {
|
2178
2317
|
/**
|
@@ -2226,7 +2365,7 @@ declare module "factorio:runtime" {
|
|
2226
2365
|
}
|
2227
2366
|
/**
|
2228
2367
|
* The settings used by a heat-interface type entity.
|
2229
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2368
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#HeatSetting Online documentation}
|
2230
2369
|
*/
|
2231
2370
|
export interface HeatSetting {
|
2232
2371
|
/**
|
@@ -2244,7 +2383,7 @@ declare module "factorio:runtime" {
|
|
2244
2383
|
}
|
2245
2384
|
/**
|
2246
2385
|
* A definition of a fluidbox connection point.
|
2247
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2386
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#FluidBoxConnection Online documentation}
|
2248
2387
|
*/
|
2249
2388
|
export interface FluidBoxConnection {
|
2250
2389
|
/**
|
@@ -2262,7 +2401,7 @@ declare module "factorio:runtime" {
|
|
2262
2401
|
}
|
2263
2402
|
/**
|
2264
2403
|
* A single pipe connection for a given fluidbox.
|
2265
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2404
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#PipeConnection Online documentation}
|
2266
2405
|
*/
|
2267
2406
|
export interface PipeConnection {
|
2268
2407
|
/**
|
@@ -2348,14 +2487,14 @@ declare module "factorio:runtime" {
|
|
2348
2487
|
* - `"≠"`: "not equal to"
|
2349
2488
|
* - `"!="`: "not equal to"
|
2350
2489
|
* @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.
|
2351
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2490
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ComparatorString Online documentation}
|
2352
2491
|
*/
|
2353
2492
|
export type ComparatorString = "=" | ">" | "<" | "≥" | ">=" | "≤" | "<=" | "≠" | "!="
|
2354
2493
|
/** @see ComparatorString */
|
2355
2494
|
export type ComparatorStringRead = "=" | ">" | "<" | "≥" | "≤" | "≠"
|
2356
2495
|
/**
|
2357
2496
|
* @see DeciderCombinatorParametersWrite
|
2358
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2497
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#DeciderCombinatorParameters Online documentation}
|
2359
2498
|
*/
|
2360
2499
|
export interface DeciderCombinatorParameters {
|
2361
2500
|
/**
|
@@ -2385,7 +2524,7 @@ declare module "factorio:runtime" {
|
|
2385
2524
|
}
|
2386
2525
|
/**
|
2387
2526
|
* Write form of {@link DeciderCombinatorParameters}, where table-or-array concepts are allowed to take an array form.
|
2388
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2527
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#DeciderCombinatorParameters Online documentation}
|
2389
2528
|
*/
|
2390
2529
|
export interface DeciderCombinatorParametersWrite {
|
2391
2530
|
/**
|
@@ -2419,7 +2558,7 @@ declare module "factorio:runtime" {
|
|
2419
2558
|
}
|
2420
2559
|
/**
|
2421
2560
|
* @see CircuitConditionWrite
|
2422
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2561
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#CircuitCondition Online documentation}
|
2423
2562
|
*/
|
2424
2563
|
export interface CircuitCondition {
|
2425
2564
|
/**
|
@@ -2441,7 +2580,7 @@ declare module "factorio:runtime" {
|
|
2441
2580
|
}
|
2442
2581
|
/**
|
2443
2582
|
* Write form of {@link CircuitCondition}, where table-or-array concepts are allowed to take an array form.
|
2444
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2583
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#CircuitCondition Online documentation}
|
2445
2584
|
*/
|
2446
2585
|
export interface CircuitConditionWrite {
|
2447
2586
|
/**
|
@@ -2463,7 +2602,7 @@ declare module "factorio:runtime" {
|
|
2463
2602
|
}
|
2464
2603
|
/**
|
2465
2604
|
* @see CircuitConditionDefinitionWrite
|
2466
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2605
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#CircuitConditionDefinition Online documentation}
|
2467
2606
|
*/
|
2468
2607
|
export interface CircuitConditionDefinition {
|
2469
2608
|
readonly condition: CircuitCondition
|
@@ -2474,7 +2613,7 @@ declare module "factorio:runtime" {
|
|
2474
2613
|
}
|
2475
2614
|
/**
|
2476
2615
|
* Write form of {@link CircuitConditionDefinition}, where table-or-array concepts are allowed to take an array form.
|
2477
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2616
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#CircuitConditionDefinition Online documentation}
|
2478
2617
|
*/
|
2479
2618
|
export interface CircuitConditionDefinitionWrite {
|
2480
2619
|
readonly condition: CircuitConditionWrite
|
@@ -2790,7 +2929,7 @@ declare module "factorio:runtime" {
|
|
2790
2929
|
* - {@link defines.command.stop}: {@link StopCommand}
|
2791
2930
|
* - {@link defines.command.flee}: {@link FleeCommand}
|
2792
2931
|
* - {@link defines.command.build_base}: {@link BuildBaseCommand}
|
2793
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2932
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#Command Online documentation}
|
2794
2933
|
*/
|
2795
2934
|
export type Command =
|
2796
2935
|
| AttackCommand
|
@@ -2804,7 +2943,7 @@ declare module "factorio:runtime" {
|
|
2804
2943
|
| BuildBaseCommand
|
2805
2944
|
/**
|
2806
2945
|
* Write form of {@link Command}, where table-or-array concepts are allowed to take an array form.
|
2807
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2946
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#Command Online documentation}
|
2808
2947
|
*/
|
2809
2948
|
export type CommandWrite =
|
2810
2949
|
| AttackCommand
|
@@ -2900,7 +3039,7 @@ declare module "factorio:runtime" {
|
|
2900
3039
|
* {name="copper-plate", count=47}
|
2901
3040
|
* @example These are both full stacks of iron plates (for iron-plate, a full stack is 100 plates):
|
2902
3041
|
* "iron-plate"
|
2903
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3042
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#SimpleItemStack Online documentation}
|
2904
3043
|
*/
|
2905
3044
|
export type SimpleItemStack = string | ItemStackDefinition
|
2906
3045
|
/**
|
@@ -2910,7 +3049,7 @@ declare module "factorio:runtime" {
|
|
2910
3049
|
* - `string`: The fluid name.
|
2911
3050
|
* - {@link LuaFluidPrototype}: The fluid prototype.
|
2912
3051
|
* - {@link Fluid}: The fluid.
|
2913
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3052
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#FluidIdentification Online documentation}
|
2914
3053
|
*/
|
2915
3054
|
export type FluidIdentification = string | LuaFluidPrototype | Fluid
|
2916
3055
|
/**
|
@@ -2920,7 +3059,7 @@ declare module "factorio:runtime" {
|
|
2920
3059
|
* - ForceIndex: The force index.
|
2921
3060
|
* - `string`: The force name.
|
2922
3061
|
* - {@link LuaForce}: A reference to {@link LuaForce} may be passed directly.
|
2923
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3062
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ForceIdentification Online documentation}
|
2924
3063
|
*/
|
2925
3064
|
export type ForceIdentification = ForceIndex | string | LuaForce
|
2926
3065
|
/**
|
@@ -2930,7 +3069,7 @@ declare module "factorio:runtime" {
|
|
2930
3069
|
* - `string`: The technology name.
|
2931
3070
|
* - {@link LuaTechnology}: A reference to {@link LuaTechnology} may be passed directly.
|
2932
3071
|
* - {@link LuaTechnologyPrototype}: A reference to {@link LuaTechnologyPrototype} may be passed directly.
|
2933
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3072
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#TechnologyIdentification Online documentation}
|
2934
3073
|
*/
|
2935
3074
|
export type TechnologyIdentification = string | LuaTechnology | LuaTechnologyPrototype
|
2936
3075
|
/**
|
@@ -2940,7 +3079,7 @@ declare module "factorio:runtime" {
|
|
2940
3079
|
* - 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.
|
2941
3080
|
* - `string`: It will be the surface name. E.g. `"nauvis"`.
|
2942
3081
|
* - {@link LuaSurface}: A reference to {@link LuaSurface} may be passed directly.
|
2943
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3082
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#SurfaceIdentification Online documentation}
|
2944
3083
|
*/
|
2945
3084
|
export type SurfaceIdentification = SurfaceIndex | string | LuaSurface
|
2946
3085
|
/**
|
@@ -2950,7 +3089,7 @@ declare module "factorio:runtime" {
|
|
2950
3089
|
* - PlayerIndex: The player index.
|
2951
3090
|
* - `string`: The player name.
|
2952
3091
|
* - {@link LuaPlayer}: A reference to {@link LuaPlayer} may be passed directly.
|
2953
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3092
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#PlayerIdentification Online documentation}
|
2954
3093
|
*/
|
2955
3094
|
export type PlayerIdentification = PlayerIndex | string | LuaPlayer
|
2956
3095
|
/**
|
@@ -2959,7 +3098,7 @@ declare module "factorio:runtime" {
|
|
2959
3098
|
* ## Union members
|
2960
3099
|
* - {@link SimpleItemStack}
|
2961
3100
|
* - {@link LuaItemStack}
|
2962
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3101
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ItemStackIdentification Online documentation}
|
2963
3102
|
*/
|
2964
3103
|
export type ItemStackIdentification = SimpleItemStack | LuaItemStack
|
2965
3104
|
/**
|
@@ -2969,7 +3108,7 @@ declare module "factorio:runtime" {
|
|
2969
3108
|
* - {@link LuaEntity}: The entity.
|
2970
3109
|
* - {@link LuaEntityPrototype}: The entity prototype.
|
2971
3110
|
* - `string`: The prototype name.
|
2972
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3111
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#EntityPrototypeIdentification Online documentation}
|
2973
3112
|
*/
|
2974
3113
|
export type EntityPrototypeIdentification = LuaEntity | LuaEntityPrototype | string
|
2975
3114
|
/**
|
@@ -2979,12 +3118,12 @@ declare module "factorio:runtime" {
|
|
2979
3118
|
* - {@link LuaItemStack}: The item.
|
2980
3119
|
* - {@link LuaItemPrototype}: The item prototype.
|
2981
3120
|
* - `string`: The prototype name.
|
2982
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3121
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ItemPrototypeIdentification Online documentation}
|
2983
3122
|
*/
|
2984
3123
|
export type ItemPrototypeIdentification = LuaItemStack | LuaItemPrototype | string
|
2985
3124
|
/**
|
2986
3125
|
* @see WaitConditionWrite
|
2987
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3126
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#WaitCondition Online documentation}
|
2988
3127
|
*/
|
2989
3128
|
export interface WaitCondition {
|
2990
3129
|
/**
|
@@ -3016,7 +3155,7 @@ declare module "factorio:runtime" {
|
|
3016
3155
|
}
|
3017
3156
|
/**
|
3018
3157
|
* Write form of {@link WaitCondition}, where table-or-array concepts are allowed to take an array form.
|
3019
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3158
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#WaitCondition Online documentation}
|
3020
3159
|
*/
|
3021
3160
|
export interface WaitConditionWrite {
|
3022
3161
|
/**
|
@@ -3048,7 +3187,7 @@ declare module "factorio:runtime" {
|
|
3048
3187
|
}
|
3049
3188
|
/**
|
3050
3189
|
* @see TrainScheduleRecordWrite
|
3051
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3190
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#TrainScheduleRecord Online documentation}
|
3052
3191
|
*/
|
3053
3192
|
export interface TrainScheduleRecord {
|
3054
3193
|
/**
|
@@ -3071,7 +3210,7 @@ declare module "factorio:runtime" {
|
|
3071
3210
|
}
|
3072
3211
|
/**
|
3073
3212
|
* Write form of {@link TrainScheduleRecord}, where table-or-array concepts are allowed to take an array form.
|
3074
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3213
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#TrainScheduleRecord Online documentation}
|
3075
3214
|
*/
|
3076
3215
|
export interface TrainScheduleRecordWrite {
|
3077
3216
|
/**
|
@@ -3094,7 +3233,7 @@ declare module "factorio:runtime" {
|
|
3094
3233
|
}
|
3095
3234
|
/**
|
3096
3235
|
* @see TrainScheduleWrite
|
3097
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3236
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#TrainSchedule Online documentation}
|
3098
3237
|
*/
|
3099
3238
|
export interface TrainSchedule {
|
3100
3239
|
/**
|
@@ -3105,7 +3244,7 @@ declare module "factorio:runtime" {
|
|
3105
3244
|
}
|
3106
3245
|
/**
|
3107
3246
|
* Write form of {@link TrainSchedule}, where table-or-array concepts are allowed to take an array form.
|
3108
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3247
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#TrainSchedule Online documentation}
|
3109
3248
|
*/
|
3110
3249
|
export interface TrainScheduleWrite {
|
3111
3250
|
/**
|
@@ -3184,7 +3323,7 @@ declare module "factorio:runtime" {
|
|
3184
3323
|
* - `"position"`: {@link PositionGuiArrowSpecification}
|
3185
3324
|
* - `"crafting_queue"`: {@link CraftingQueueGuiArrowSpecification}
|
3186
3325
|
* - `"item_stack"`: {@link ItemStackGuiArrowSpecification}
|
3187
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3326
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GuiArrowSpecification Online documentation}
|
3188
3327
|
*/
|
3189
3328
|
export type GuiArrowSpecification =
|
3190
3329
|
| EntityGuiArrowSpecification
|
@@ -3259,7 +3398,7 @@ declare module "factorio:runtime" {
|
|
3259
3398
|
* - `"equipment"`
|
3260
3399
|
* - `"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.
|
3261
3400
|
* - `"utility"` - sprite defined in the utility-sprites object, these are the pictures used by the game internally for the UI.
|
3262
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3401
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#SpritePath Online documentation}
|
3263
3402
|
*/
|
3264
3403
|
export type SpritePath =
|
3265
3404
|
| (string & {
|
@@ -3309,7 +3448,7 @@ declare module "factorio:runtime" {
|
|
3309
3448
|
* - `"entity-rotated"` - Uses {@link import("factorio:prototype").EntityPrototype#rotated_sound EntityPrototype::rotated_sound}
|
3310
3449
|
* - `"entity-open"` - Uses {@link import("factorio:prototype").EntityPrototype#open_sound Entity::open_sound}
|
3311
3450
|
* - `"entity-close"` - Uses {@link import("factorio:prototype").EntityPrototype#close_sound Entity::close_sound}
|
3312
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3451
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#SoundPath Online documentation}
|
3313
3452
|
*/
|
3314
3453
|
export type SoundPath =
|
3315
3454
|
| (string & {
|
@@ -3328,7 +3467,7 @@ declare module "factorio:runtime" {
|
|
3328
3467
|
* speed={bonus=-0.15},
|
3329
3468
|
* productivity={bonus=0.06},
|
3330
3469
|
* pollution={bonus=0.075}}
|
3331
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3470
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ModuleEffects Online documentation}
|
3332
3471
|
*/
|
3333
3472
|
export interface ModuleEffects {
|
3334
3473
|
readonly consumption?: ModuleEffectValue
|
@@ -3340,6 +3479,13 @@ declare module "factorio:runtime" {
|
|
3340
3479
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
3341
3480
|
*
|
3342
3481
|
* By default, none of these flags are set.
|
3482
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#EntityPrototypeFlags Online documentation}
|
3483
|
+
*/
|
3484
|
+
export type EntityPrototypeFlags = {
|
3485
|
+
readonly [T in EntityPrototypeFlag]?: true
|
3486
|
+
}
|
3487
|
+
/**
|
3488
|
+
* A `string` specifying an entity prototype flag.
|
3343
3489
|
*
|
3344
3490
|
* ## Union members
|
3345
3491
|
* - `"not-rotatable"`: Prevents the entity from being rotated before or after placement.
|
@@ -3368,115 +3514,46 @@ declare module "factorio:runtime" {
|
|
3368
3514
|
* - `"not-upgradable"`: Prevents the entity from being selected by the upgrade planner.
|
3369
3515
|
* - `"not-in-kill-statistics"`: Prevents the entity from being shown in the kill statistics.
|
3370
3516
|
* - `"not-in-made-in"`: Prevents the entity from being shown in the "made in" list in recipe tooltips.
|
3371
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3372
|
-
*/
|
3373
|
-
export
|
3374
|
-
|
3375
|
-
|
3376
|
-
|
3377
|
-
|
3378
|
-
|
3379
|
-
|
3380
|
-
|
3381
|
-
|
3382
|
-
|
3383
|
-
|
3384
|
-
|
3385
|
-
|
3386
|
-
|
3387
|
-
|
3388
|
-
|
3389
|
-
|
3390
|
-
|
3391
|
-
|
3392
|
-
|
3393
|
-
|
3394
|
-
|
3395
|
-
|
3396
|
-
|
3397
|
-
|
3398
|
-
|
3399
|
-
|
3400
|
-
*/
|
3401
|
-
readonly "building-direction-8-way"?: true
|
3402
|
-
/**
|
3403
|
-
* Used to automatically detect the proper direction of the entity if possible. Used by the pump, train stop, and train signal by default.
|
3404
|
-
*/
|
3405
|
-
readonly "filter-directions"?: true
|
3406
|
-
/**
|
3407
|
-
* Fast replace will not apply when building while moving.
|
3408
|
-
*/
|
3409
|
-
readonly "fast-replaceable-no-build-while-moving"?: true
|
3410
|
-
/**
|
3411
|
-
* Used to specify that the entity breathes air, and is thus affected by poison.
|
3412
|
-
*/
|
3413
|
-
readonly "breaths-air"?: true
|
3414
|
-
/**
|
3415
|
-
* Used to specify that the entity can not be 'healed' by repair packs.
|
3416
|
-
*/
|
3417
|
-
readonly "not-repairable"?: true
|
3418
|
-
/**
|
3419
|
-
* Prevents the entity from being drawn on the map.
|
3420
|
-
*/
|
3421
|
-
readonly "not-on-map"?: true
|
3422
|
-
/**
|
3423
|
-
* Prevents the entity from being deconstructed.
|
3424
|
-
*/
|
3425
|
-
readonly "not-deconstructable"?: true
|
3426
|
-
/**
|
3427
|
-
* Prevents the entity from being part of a blueprint.
|
3428
|
-
*/
|
3429
|
-
readonly "not-blueprintable"?: true
|
3430
|
-
/**
|
3431
|
-
* Hides the entity from the bonus GUI and from the "made in"-property of recipe tooltips.
|
3432
|
-
*/
|
3433
|
-
readonly hidden?: true
|
3434
|
-
/**
|
3435
|
-
* Hides the alt-info of this entity when in alt-mode.
|
3436
|
-
*/
|
3437
|
-
readonly "hide-alt-info"?: true
|
3438
|
-
/**
|
3439
|
-
* Does not fast replace this entity over other entity types when building while moving.
|
3440
|
-
*/
|
3441
|
-
readonly "fast-replaceable-no-cross-type-while-moving"?: true
|
3442
|
-
readonly "no-gap-fill-while-building"?: true
|
3443
|
-
/**
|
3444
|
-
* Does not apply fire stickers to the entity.
|
3445
|
-
*/
|
3446
|
-
readonly "not-flammable"?: true
|
3447
|
-
/**
|
3448
|
-
* Prevents inserters and loaders from taking items from this entity.
|
3449
|
-
*/
|
3450
|
-
readonly "no-automated-item-removal"?: true
|
3451
|
-
/**
|
3452
|
-
* Prevents inserters and loaders from inserting items into this entity.
|
3453
|
-
*/
|
3454
|
-
readonly "no-automated-item-insertion"?: true
|
3455
|
-
/**
|
3456
|
-
* Prevents the entity from being copy-pasted.
|
3457
|
-
*/
|
3458
|
-
readonly "no-copy-paste"?: true
|
3459
|
-
/**
|
3460
|
-
* Disallows selection of the entity even when a selection box is specified for other reasons. For example, selection boxes are used to determine the size of outlines to be shown when highlighting entities inside electric pole ranges.
|
3461
|
-
*/
|
3462
|
-
readonly "not-selectable-in-game"?: true
|
3463
|
-
/**
|
3464
|
-
* Prevents the entity from being selected by the upgrade planner.
|
3465
|
-
*/
|
3466
|
-
readonly "not-upgradable"?: true
|
3467
|
-
/**
|
3468
|
-
* Prevents the entity from being shown in the kill statistics.
|
3469
|
-
*/
|
3470
|
-
readonly "not-in-kill-statistics"?: true
|
3471
|
-
/**
|
3472
|
-
* Prevents the entity from being shown in the "made in" list in recipe tooltips.
|
3473
|
-
*/
|
3474
|
-
readonly "not-in-made-in"?: true
|
3475
|
-
}
|
3517
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#EntityPrototypeFlag Online documentation}
|
3518
|
+
*/
|
3519
|
+
export type EntityPrototypeFlag =
|
3520
|
+
| "not-rotatable"
|
3521
|
+
| "placeable-neutral"
|
3522
|
+
| "placeable-player"
|
3523
|
+
| "placeable-enemy"
|
3524
|
+
| "placeable-off-grid"
|
3525
|
+
| "player-creation"
|
3526
|
+
| "building-direction-8-way"
|
3527
|
+
| "filter-directions"
|
3528
|
+
| "fast-replaceable-no-build-while-moving"
|
3529
|
+
| "breaths-air"
|
3530
|
+
| "not-repairable"
|
3531
|
+
| "not-on-map"
|
3532
|
+
| "not-deconstructable"
|
3533
|
+
| "not-blueprintable"
|
3534
|
+
| "hidden"
|
3535
|
+
| "hide-alt-info"
|
3536
|
+
| "fast-replaceable-no-cross-type-while-moving"
|
3537
|
+
| "no-gap-fill-while-building"
|
3538
|
+
| "not-flammable"
|
3539
|
+
| "no-automated-item-removal"
|
3540
|
+
| "no-automated-item-insertion"
|
3541
|
+
| "no-copy-paste"
|
3542
|
+
| "not-selectable-in-game"
|
3543
|
+
| "not-upgradable"
|
3544
|
+
| "not-in-kill-statistics"
|
3545
|
+
| "not-in-made-in"
|
3476
3546
|
/**
|
3477
3547
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
3478
3548
|
*
|
3479
3549
|
* By default, none of these flags are set.
|
3550
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ItemPrototypeFlags Online documentation}
|
3551
|
+
*/
|
3552
|
+
export type ItemPrototypeFlags = {
|
3553
|
+
readonly [T in ItemPrototypeFlag]?: true
|
3554
|
+
}
|
3555
|
+
/**
|
3556
|
+
* A `string` specifying an item prototype flag.
|
3480
3557
|
*
|
3481
3558
|
* ## Union members
|
3482
3559
|
* - `"draw-logistic-overlay"`: Determines whether the logistics areas of roboports should be drawn when holding this item. Used by the deconstruction planner by default.
|
@@ -3490,54 +3567,20 @@ declare module "factorio:runtime" {
|
|
3490
3567
|
* - `"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.
|
3491
3568
|
* - `"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.
|
3492
3569
|
* - `"spawnable"`: Allows the item to be spawned by a quickbar shortcut or custom input.
|
3493
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3494
|
-
*/
|
3495
|
-
export
|
3496
|
-
|
3497
|
-
|
3498
|
-
|
3499
|
-
|
3500
|
-
|
3501
|
-
|
3502
|
-
|
3503
|
-
|
3504
|
-
|
3505
|
-
|
3506
|
-
|
3507
|
-
readonly "always-show"?: true
|
3508
|
-
/**
|
3509
|
-
* Hides the item from the bonus GUI.
|
3510
|
-
*/
|
3511
|
-
readonly "hide-from-bonus-gui"?: true
|
3512
|
-
/**
|
3513
|
-
* Hides the item from the tooltip that's shown when hovering over a burner inventory.
|
3514
|
-
*/
|
3515
|
-
readonly "hide-from-fuel-tooltip"?: true
|
3516
|
-
/**
|
3517
|
-
* Prevents the item from being stacked. It also prevents the item from stacking in assembling machine input slots, which can otherwise exceed the item stack size if required by the recipe. Additionally, the item does not show an item count when in the cursor.
|
3518
|
-
*/
|
3519
|
-
readonly "not-stackable"?: true
|
3520
|
-
/**
|
3521
|
-
* Makes the item act as an extension to the inventory that it is placed in. Only has an effect for items with inventory.
|
3522
|
-
*/
|
3523
|
-
readonly "can-extend-inventory"?: true
|
3524
|
-
/**
|
3525
|
-
* Makes construction bots prefer this item when building the entity specified by its `place_result`.
|
3526
|
-
*/
|
3527
|
-
readonly "primary-place-result"?: true
|
3528
|
-
/**
|
3529
|
-
* Allows the item to be opened by the player, firing the `on_mod_item_opened` event. Only has an effect for selection tool items.
|
3530
|
-
*/
|
3531
|
-
readonly "mod-openable"?: true
|
3532
|
-
/**
|
3533
|
-
* 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.
|
3534
|
-
*/
|
3535
|
-
readonly "only-in-cursor"?: true
|
3536
|
-
/**
|
3537
|
-
* Allows the item to be spawned by a quickbar shortcut or custom input.
|
3538
|
-
*/
|
3539
|
-
readonly spawnable?: true
|
3540
|
-
}
|
3570
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ItemPrototypeFlag Online documentation}
|
3571
|
+
*/
|
3572
|
+
export type ItemPrototypeFlag =
|
3573
|
+
| "draw-logistic-overlay"
|
3574
|
+
| "hidden"
|
3575
|
+
| "always-show"
|
3576
|
+
| "hide-from-bonus-gui"
|
3577
|
+
| "hide-from-fuel-tooltip"
|
3578
|
+
| "not-stackable"
|
3579
|
+
| "can-extend-inventory"
|
3580
|
+
| "primary-place-result"
|
3581
|
+
| "mod-openable"
|
3582
|
+
| "only-in-cursor"
|
3583
|
+
| "spawnable"
|
3541
3584
|
/**
|
3542
3585
|
* A `string` specifying a collision mask layer.
|
3543
3586
|
*
|
@@ -3557,7 +3600,7 @@ declare module "factorio:runtime" {
|
|
3557
3600
|
* - `"rail-layer"`
|
3558
3601
|
* - `"transport-belt-layer"`
|
3559
3602
|
* - `"not-setup"`
|
3560
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3603
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#CollisionMaskLayer Online documentation}
|
3561
3604
|
*/
|
3562
3605
|
export type CollisionMaskLayer =
|
3563
3606
|
| "ground-tile"
|
@@ -3576,7 +3619,7 @@ declare module "factorio:runtime" {
|
|
3576
3619
|
| `layer-${bigint}`
|
3577
3620
|
/**
|
3578
3621
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
3579
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3622
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#CollisionMask Online documentation}
|
3580
3623
|
*/
|
3581
3624
|
export type CollisionMask = {
|
3582
3625
|
readonly [T in CollisionMaskLayer]?: true
|
@@ -3589,7 +3632,7 @@ declare module "factorio:runtime" {
|
|
3589
3632
|
* - `"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.
|
3590
3633
|
* - `"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.
|
3591
3634
|
* - `"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.
|
3592
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3635
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#CollisionMaskWithFlags Online documentation}
|
3593
3636
|
*/
|
3594
3637
|
export type CollisionMaskWithFlags = {
|
3595
3638
|
/**
|
@@ -3609,7 +3652,7 @@ declare module "factorio:runtime" {
|
|
3609
3652
|
}
|
3610
3653
|
/**
|
3611
3654
|
* A set of trigger target masks.
|
3612
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3655
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#TriggerTargetMask Online documentation}
|
3613
3656
|
*/
|
3614
3657
|
export type TriggerTargetMask = Record<string, boolean>
|
3615
3658
|
export interface TriggerEffectItem {
|
@@ -3781,7 +3824,7 @@ declare module "factorio:runtime" {
|
|
3781
3824
|
export interface StreamAttackParameters extends BaseAttackParameters {
|
3782
3825
|
readonly type: "stream"
|
3783
3826
|
readonly gun_barrel_length: float
|
3784
|
-
readonly gun_center_shift:
|
3827
|
+
readonly gun_center_shift: GunShift4Way
|
3785
3828
|
readonly fluid_consumption: float
|
3786
3829
|
readonly fluids?: AttackParameterFluid[]
|
3787
3830
|
readonly projectile_creation_parameters?: CircularProjectileCreationSpecification[]
|
@@ -3798,9 +3841,15 @@ declare module "factorio:runtime" {
|
|
3798
3841
|
* Other attributes may be specified depending on `type`:
|
3799
3842
|
* - `"projectile"`: {@link ProjectileAttackParameters}
|
3800
3843
|
* - `"stream"`: {@link StreamAttackParameters}
|
3801
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3844
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#AttackParameters Online documentation}
|
3802
3845
|
*/
|
3803
3846
|
export type AttackParameters = ProjectileAttackParameters | StreamAttackParameters | OtherAttackParameters
|
3847
|
+
export interface GunShift4Way {
|
3848
|
+
readonly north: Vector
|
3849
|
+
readonly east: Vector
|
3850
|
+
readonly south: Vector
|
3851
|
+
readonly west: Vector
|
3852
|
+
}
|
3804
3853
|
export interface BaseCapsuleAction {
|
3805
3854
|
/**
|
3806
3855
|
* One of `"throw"`, `"equipment-remote"`, `"use-on-self"`, `"artillery-remote"`, `"destroy-cliffs"`.
|
@@ -3861,7 +3910,7 @@ declare module "factorio:runtime" {
|
|
3861
3910
|
* - `"use-on-self"`: {@link UseOnSelfCapsuleAction}
|
3862
3911
|
* - `"artillery-remote"`: {@link ArtilleryRemoteCapsuleAction}
|
3863
3912
|
* - `"destroy-cliffs"`: {@link DestroyCliffsCapsuleAction}
|
3864
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3913
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#CapsuleAction Online documentation}
|
3865
3914
|
*/
|
3866
3915
|
export type CapsuleAction =
|
3867
3916
|
| ThrowCapsuleAction
|
@@ -3897,7 +3946,7 @@ declare module "factorio:runtime" {
|
|
3897
3946
|
* - `"avoid-rolling-stock"`: Selects entities that are not `rolling-stock`s.
|
3898
3947
|
* - `"entity-ghost"`: Selects entities that are `entity-ghost`s.
|
3899
3948
|
* - `"tile-ghost"`: Selects entities that are `tile-ghost`s.
|
3900
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3949
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#SelectionModeFlags Online documentation}
|
3901
3950
|
*/
|
3902
3951
|
export interface SelectionModeFlags {
|
3903
3952
|
/**
|
@@ -4011,6 +4060,30 @@ declare module "factorio:runtime" {
|
|
4011
4060
|
*/
|
4012
4061
|
readonly count: uint
|
4013
4062
|
}
|
4063
|
+
export interface LogisticsNetworkSupplyCounts {
|
4064
|
+
/**
|
4065
|
+
* Number of available items in the storage members.
|
4066
|
+
*/
|
4067
|
+
readonly storage: uint
|
4068
|
+
/**
|
4069
|
+
* Number of available items in the passive provider members.
|
4070
|
+
*/
|
4071
|
+
readonly "passive-provider": uint
|
4072
|
+
/**
|
4073
|
+
* Number of available items in the buffer members.
|
4074
|
+
*/
|
4075
|
+
readonly buffer: uint
|
4076
|
+
/**
|
4077
|
+
* Number of available items in the active provider members.
|
4078
|
+
*/
|
4079
|
+
readonly "active-provider": uint
|
4080
|
+
}
|
4081
|
+
export interface LogisticsNetworkSupplyPoints {
|
4082
|
+
readonly storage: LuaLogisticPoint[]
|
4083
|
+
readonly "passive-provider": LuaLogisticPoint[]
|
4084
|
+
readonly buffer: LuaLogisticPoint[]
|
4085
|
+
readonly "active-provider": LuaLogisticPoint[]
|
4086
|
+
}
|
4014
4087
|
export interface ModSetting {
|
4015
4088
|
/**
|
4016
4089
|
* The value of the mod setting. The type depends on the kind of setting.
|
@@ -4022,12 +4095,12 @@ declare module "factorio:runtime" {
|
|
4022
4095
|
}
|
4023
4096
|
/**
|
4024
4097
|
* Any basic type (string, number, boolean) or table.
|
4025
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4098
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#AnyBasic Online documentation}
|
4026
4099
|
*/
|
4027
4100
|
export type AnyBasic = string | boolean | number | table
|
4028
4101
|
/**
|
4029
4102
|
* Any basic type (string, number, boolean), table, or LuaObject.
|
4030
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4103
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#Any Online documentation}
|
4031
4104
|
*/
|
4032
4105
|
export type Any = string | boolean | number | table | LuaObject
|
4033
4106
|
export interface ProgrammableSpeakerParameters {
|
@@ -4065,7 +4138,7 @@ declare module "factorio:runtime" {
|
|
4065
4138
|
* - `"top-right"`
|
4066
4139
|
* - `"right"`: The same as `"middle-right"`
|
4067
4140
|
* - `"bottom-right"`
|
4068
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4141
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#Alignment Online documentation}
|
4069
4142
|
*/
|
4070
4143
|
export type Alignment =
|
4071
4144
|
| "top-left"
|
@@ -4080,8 +4153,8 @@ declare module "factorio:runtime" {
|
|
4080
4153
|
| "right"
|
4081
4154
|
| "bottom-right"
|
4082
4155
|
/**
|
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.
|
4084
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4156
|
+
* 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.101/events.html the list of Factorio events} for more information on these.
|
4157
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#EventData Online documentation}
|
4085
4158
|
*/
|
4086
4159
|
export interface EventData {
|
4087
4160
|
/**
|
@@ -4191,7 +4264,7 @@ declare module "factorio:runtime" {
|
|
4191
4264
|
* - `"button-7"`
|
4192
4265
|
* - `"button-8"`
|
4193
4266
|
* - `"button-9"`
|
4194
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4267
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#MouseButtonFlags Online documentation}
|
4195
4268
|
*/
|
4196
4269
|
export interface MouseButtonFlags {
|
4197
4270
|
readonly left?: true
|
@@ -4216,7 +4289,7 @@ declare module "factorio:runtime" {
|
|
4216
4289
|
* - `"train-visualization"`: White box.
|
4217
4290
|
* - `"logistics"`: Light blue box.
|
4218
4291
|
* - `"blueprint-snap-rectangle"`: Green box.
|
4219
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4292
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#CursorBoxRenderType Online documentation}
|
4220
4293
|
*/
|
4221
4294
|
export type CursorBoxRenderType =
|
4222
4295
|
| "entity"
|
@@ -4236,7 +4309,7 @@ declare module "factorio:runtime" {
|
|
4236
4309
|
* - `"not-friend"`: Forces which are not friends pass.
|
4237
4310
|
* - `"same"`: The same force pass.
|
4238
4311
|
* - `"not-same"`: The non-same forces pass.
|
4239
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4312
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ForceCondition Online documentation}
|
4240
4313
|
*/
|
4241
4314
|
export type ForceCondition = "all" | "enemy" | "ally" | "friend" | "not-friend" | "same" | "not-same"
|
4242
4315
|
/**
|
@@ -4287,7 +4360,7 @@ declare module "factorio:runtime" {
|
|
4287
4360
|
* - `"collision-selection-box"`: 189
|
4288
4361
|
* - `"arrow"`: 190
|
4289
4362
|
* - `"cursor"`: 210
|
4290
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4363
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#RenderLayer Online documentation}
|
4291
4364
|
*/
|
4292
4365
|
export type RenderLayer =
|
4293
4366
|
| `${bigint}`
|
@@ -4353,7 +4426,7 @@ declare module "factorio:runtime" {
|
|
4353
4426
|
* - `"walking"`
|
4354
4427
|
* - `"alert"`
|
4355
4428
|
* - `"wind"`
|
4356
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4429
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#SoundType Online documentation}
|
4357
4430
|
*/
|
4358
4431
|
export type SoundType = "game-effect" | "gui-effect" | "ambient" | "environment" | "walking" | "alert" | "wind"
|
4359
4432
|
/**
|
@@ -4383,7 +4456,7 @@ declare module "factorio:runtime" {
|
|
4383
4456
|
* - `"tabbed-pane"`: A collection of `tab`s and their contents. Relevant event: {@link OnGuiSelectedTabChangedEvent on_gui_selected_tab_changed}
|
4384
4457
|
* - `"tab"`: A tab for use in a `tabbed-pane`.
|
4385
4458
|
* - `"switch"`: A switch with three possible states. Can have labels attached to either side. Relevant event: {@link OnGuiSwitchStateChangedEvent on_gui_switch_state_changed}
|
4386
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4459
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GuiElementType Online documentation}
|
4387
4460
|
*/
|
4388
4461
|
export type GuiElementType =
|
4389
4462
|
| "button"
|
@@ -4421,7 +4494,7 @@ declare module "factorio:runtime" {
|
|
4421
4494
|
* - `"position"`
|
4422
4495
|
* - `"crafting_queue"`
|
4423
4496
|
* - `"item_stack"`
|
4424
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4497
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#GuiArrowType Online documentation}
|
4425
4498
|
*/
|
4426
4499
|
export type GuiArrowType =
|
4427
4500
|
| "nowhere"
|
@@ -4447,7 +4520,7 @@ declare module "factorio:runtime" {
|
|
4447
4520
|
* - TechnologyPrototypeFilter: for type `"technology"`
|
4448
4521
|
* @see PrototypeFilterWrite
|
4449
4522
|
* @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.
|
4450
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4523
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#PrototypeFilter Online documentation}
|
4451
4524
|
*/
|
4452
4525
|
export type PrototypeFilter = (
|
4453
4526
|
| ItemPrototypeFilter
|
@@ -4462,7 +4535,7 @@ declare module "factorio:runtime" {
|
|
4462
4535
|
)[]
|
4463
4536
|
/**
|
4464
4537
|
* Write form of {@link PrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
4465
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4538
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#PrototypeFilter Online documentation}
|
4466
4539
|
*/
|
4467
4540
|
export type PrototypeFilterWrite = readonly (
|
4468
4541
|
| ItemPrototypeFilterWrite
|
@@ -4808,7 +4881,7 @@ declare module "factorio:runtime" {
|
|
4808
4881
|
* - `"fuel-acceleration-multiplier"`: {@link FuelAccelerationMultiplierItemPrototypeFilter}
|
4809
4882
|
* - `"fuel-top-speed-multiplier"`: {@link FuelTopSpeedMultiplierItemPrototypeFilter}
|
4810
4883
|
* - `"fuel-emissions-multiplier"`: {@link FuelEmissionsMultiplierItemPrototypeFilter}
|
4811
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4884
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ItemPrototypeFilter Online documentation}
|
4812
4885
|
*/
|
4813
4886
|
export type ItemPrototypeFilter =
|
4814
4887
|
| PlaceResultItemPrototypeFilter
|
@@ -4830,7 +4903,7 @@ declare module "factorio:runtime" {
|
|
4830
4903
|
| OtherItemPrototypeFilter
|
4831
4904
|
/**
|
4832
4905
|
* Write form of {@link ItemPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
4833
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4906
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ItemPrototypeFilter Online documentation}
|
4834
4907
|
*/
|
4835
4908
|
export type ItemPrototypeFilterWrite =
|
4836
4909
|
| PlaceResultItemPrototypeFilterWrite
|
@@ -4906,7 +4979,7 @@ declare module "factorio:runtime" {
|
|
4906
4979
|
* - `"type"`: {@link TypeModSettingPrototypeFilter}
|
4907
4980
|
* - `"mod"`: {@link ModModSettingPrototypeFilter}
|
4908
4981
|
* - `"setting-type"`: {@link SettingTypeModSettingPrototypeFilter}
|
4909
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4982
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#ModSettingPrototypeFilter Online documentation}
|
4910
4983
|
*/
|
4911
4984
|
export type ModSettingPrototypeFilter =
|
4912
4985
|
| TypeModSettingPrototypeFilter
|
@@ -5034,7 +5107,7 @@ declare module "factorio:runtime" {
|
|
5034
5107
|
* - `"level"`: {@link LevelTechnologyPrototypeFilter}
|
5035
5108
|
* - `"max-level"`: {@link MaxLevelTechnologyPrototypeFilter}
|
5036
5109
|
* - `"time"`: {@link TimeTechnologyPrototypeFilter}
|
5037
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5110
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#TechnologyPrototypeFilter Online documentation}
|
5038
5111
|
*/
|
5039
5112
|
export type TechnologyPrototypeFilter =
|
5040
5113
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -5045,7 +5118,7 @@ declare module "factorio:runtime" {
|
|
5045
5118
|
| OtherTechnologyPrototypeFilter
|
5046
5119
|
/**
|
5047
5120
|
* Write form of {@link TechnologyPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5048
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5121
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#TechnologyPrototypeFilter Online documentation}
|
5049
5122
|
*/
|
5050
5123
|
export type TechnologyPrototypeFilterWrite =
|
5051
5124
|
| ResearchUnitIngredientTechnologyPrototypeFilter
|
@@ -5095,7 +5168,7 @@ declare module "factorio:runtime" {
|
|
5095
5168
|
*
|
5096
5169
|
* Other attributes may be specified depending on `filter`:
|
5097
5170
|
* - `"collision-mask"`: {@link CollisionMaskDecorativePrototypeFilter}
|
5098
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5171
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#DecorativePrototypeFilter Online documentation}
|
5099
5172
|
*/
|
5100
5173
|
export type DecorativePrototypeFilter = CollisionMaskDecorativePrototypeFilter | OtherDecorativePrototypeFilter
|
5101
5174
|
/**
|
@@ -5138,7 +5211,7 @@ declare module "factorio:runtime" {
|
|
5138
5211
|
*
|
5139
5212
|
* Other attributes may be specified depending on `filter`:
|
5140
5213
|
* - `"type"`: {@link TypeAchievementPrototypeFilter}
|
5141
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5214
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#AchievementPrototypeFilter Online documentation}
|
5142
5215
|
*/
|
5143
5216
|
export type AchievementPrototypeFilter = TypeAchievementPrototypeFilter | OtherAchievementPrototypeFilter
|
5144
5217
|
/**
|
@@ -5323,7 +5396,7 @@ declare module "factorio:runtime" {
|
|
5323
5396
|
* - `"fuel-value"`: {@link FuelValueFluidPrototypeFilter}
|
5324
5397
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierFluidPrototypeFilter}
|
5325
5398
|
* - `"gas-temperature"`: {@link GasTemperatureFluidPrototypeFilter}
|
5326
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5399
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#FluidPrototypeFilter Online documentation}
|
5327
5400
|
*/
|
5328
5401
|
export type FluidPrototypeFilter =
|
5329
5402
|
| NameFluidPrototypeFilter
|
@@ -5337,7 +5410,7 @@ declare module "factorio:runtime" {
|
|
5337
5410
|
| OtherFluidPrototypeFilter
|
5338
5411
|
/**
|
5339
5412
|
* Write form of {@link FluidPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5340
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5413
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#FluidPrototypeFilter Online documentation}
|
5341
5414
|
*/
|
5342
5415
|
export type FluidPrototypeFilterWrite =
|
5343
5416
|
| NameFluidPrototypeFilter
|
@@ -5389,7 +5462,7 @@ declare module "factorio:runtime" {
|
|
5389
5462
|
*
|
5390
5463
|
* Other attributes may be specified depending on `filter`:
|
5391
5464
|
* - `"type"`: {@link TypeEquipmentPrototypeFilter}
|
5392
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5465
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#EquipmentPrototypeFilter Online documentation}
|
5393
5466
|
*/
|
5394
5467
|
export type EquipmentPrototypeFilter = TypeEquipmentPrototypeFilter | OtherEquipmentPrototypeFilter
|
5395
5468
|
/**
|
@@ -5522,7 +5595,7 @@ declare module "factorio:runtime" {
|
|
5522
5595
|
* - `"vehicle-friction-modifier"`: {@link VehicleFrictionModifierTilePrototypeFilter}
|
5523
5596
|
* - `"decorative-removal-probability"`: {@link DecorativeRemovalProbabilityTilePrototypeFilter}
|
5524
5597
|
* - `"emissions"`: {@link EmissionsTilePrototypeFilter}
|
5525
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5598
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#TilePrototypeFilter Online documentation}
|
5526
5599
|
*/
|
5527
5600
|
export type TilePrototypeFilter =
|
5528
5601
|
| CollisionMaskTilePrototypeFilter
|
@@ -5533,7 +5606,7 @@ declare module "factorio:runtime" {
|
|
5533
5606
|
| OtherTilePrototypeFilter
|
5534
5607
|
/**
|
5535
5608
|
* Write form of {@link TilePrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5536
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5609
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#TilePrototypeFilter Online documentation}
|
5537
5610
|
*/
|
5538
5611
|
export type TilePrototypeFilterWrite =
|
5539
5612
|
| CollisionMaskTilePrototypeFilter
|
@@ -5797,7 +5870,7 @@ declare module "factorio:runtime" {
|
|
5797
5870
|
* - `"emissions-multiplier"`: {@link EmissionsMultiplierRecipePrototypeFilter}
|
5798
5871
|
* - `"request-paste-multiplier"`: {@link RequestPasteMultiplierRecipePrototypeFilter}
|
5799
5872
|
* - `"overload-multiplier"`: {@link OverloadMultiplierRecipePrototypeFilter}
|
5800
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5873
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#RecipePrototypeFilter Online documentation}
|
5801
5874
|
*/
|
5802
5875
|
export type RecipePrototypeFilter =
|
5803
5876
|
| HasIngredientItemRecipePrototypeFilter
|
@@ -5813,7 +5886,7 @@ declare module "factorio:runtime" {
|
|
5813
5886
|
| OtherRecipePrototypeFilter
|
5814
5887
|
/**
|
5815
5888
|
* Write form of {@link RecipePrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
5816
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
5889
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#RecipePrototypeFilter Online documentation}
|
5817
5890
|
*/
|
5818
5891
|
export type RecipePrototypeFilterWrite =
|
5819
5892
|
| HasIngredientItemRecipePrototypeFilterWrite
|
@@ -6050,7 +6123,7 @@ declare module "factorio:runtime" {
|
|
6050
6123
|
* - `"selection-priority"`: {@link SelectionPriorityEntityPrototypeFilter}
|
6051
6124
|
* - `"emissions"`: {@link EmissionsEntityPrototypeFilter}
|
6052
6125
|
* - `"crafting-category"`: {@link CraftingCategoryEntityPrototypeFilter}
|
6053
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6126
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#EntityPrototypeFilter Online documentation}
|
6054
6127
|
*/
|
6055
6128
|
export type EntityPrototypeFilter =
|
6056
6129
|
| NameEntityPrototypeFilter
|
@@ -6064,7 +6137,7 @@ declare module "factorio:runtime" {
|
|
6064
6137
|
| OtherEntityPrototypeFilter
|
6065
6138
|
/**
|
6066
6139
|
* Write form of {@link EntityPrototypeFilter}, where table-or-array concepts are allowed to take an array form.
|
6067
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6140
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#EntityPrototypeFilter Online documentation}
|
6068
6141
|
*/
|
6069
6142
|
export type EntityPrototypeFilterWrite =
|
6070
6143
|
| NameEntityPrototypeFilter
|
@@ -6103,7 +6176,7 @@ declare module "factorio:runtime" {
|
|
6103
6176
|
* - {@link LuaPlayerRepairedEntityEventFilter}
|
6104
6177
|
* @see EventFilterWrite
|
6105
6178
|
* @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.
|
6106
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6179
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#EventFilter Online documentation}
|
6107
6180
|
*/
|
6108
6181
|
export type EventFilter = (
|
6109
6182
|
| LuaEntityClonedEventFilter
|
@@ -6130,7 +6203,7 @@ declare module "factorio:runtime" {
|
|
6130
6203
|
)[]
|
6131
6204
|
/**
|
6132
6205
|
* Write form of {@link EventFilter}, where table-or-array concepts are allowed to take an array form.
|
6133
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6206
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#EventFilter Online documentation}
|
6134
6207
|
*/
|
6135
6208
|
export type EventFilterWrite = readonly (
|
6136
6209
|
| LuaEntityClonedEventFilter
|
@@ -6258,7 +6331,7 @@ declare module "factorio:runtime" {
|
|
6258
6331
|
* - `"name"`: {@link NameScriptRaisedReviveEventFilter}
|
6259
6332
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedReviveEventFilter}
|
6260
6333
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedReviveEventFilter}
|
6261
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6334
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaScriptRaisedReviveEventFilter Online documentation}
|
6262
6335
|
*/
|
6263
6336
|
export type LuaScriptRaisedReviveEventFilter =
|
6264
6337
|
| TypeScriptRaisedReviveEventFilter
|
@@ -6365,7 +6438,7 @@ declare module "factorio:runtime" {
|
|
6365
6438
|
* - `"name"`: {@link NameEntityDiedEventFilter}
|
6366
6439
|
* - `"ghost_type"`: {@link GhostTypeEntityDiedEventFilter}
|
6367
6440
|
* - `"ghost_name"`: {@link GhostNameEntityDiedEventFilter}
|
6368
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6441
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaEntityDiedEventFilter Online documentation}
|
6369
6442
|
*/
|
6370
6443
|
export type LuaEntityDiedEventFilter =
|
6371
6444
|
| TypeEntityDiedEventFilter
|
@@ -6474,7 +6547,7 @@ declare module "factorio:runtime" {
|
|
6474
6547
|
* - `"name"`: {@link NameEntityMarkedForDeconstructionEventFilter}
|
6475
6548
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForDeconstructionEventFilter}
|
6476
6549
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForDeconstructionEventFilter}
|
6477
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6550
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaEntityMarkedForDeconstructionEventFilter Online documentation}
|
6478
6551
|
*/
|
6479
6552
|
export type LuaEntityMarkedForDeconstructionEventFilter =
|
6480
6553
|
| TypeEntityMarkedForDeconstructionEventFilter
|
@@ -6581,7 +6654,7 @@ declare module "factorio:runtime" {
|
|
6581
6654
|
* - `"name"`: {@link NamePreGhostDeconstructedEventFilter}
|
6582
6655
|
* - `"ghost_type"`: {@link GhostTypePreGhostDeconstructedEventFilter}
|
6583
6656
|
* - `"ghost_name"`: {@link GhostNamePreGhostDeconstructedEventFilter}
|
6584
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6657
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaPreGhostDeconstructedEventFilter Online documentation}
|
6585
6658
|
*/
|
6586
6659
|
export type LuaPreGhostDeconstructedEventFilter =
|
6587
6660
|
| TypePreGhostDeconstructedEventFilter
|
@@ -6688,7 +6761,7 @@ declare module "factorio:runtime" {
|
|
6688
6761
|
* - `"name"`: {@link NameScriptRaisedDestroyEventFilter}
|
6689
6762
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedDestroyEventFilter}
|
6690
6763
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedDestroyEventFilter}
|
6691
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6764
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaScriptRaisedDestroyEventFilter Online documentation}
|
6692
6765
|
*/
|
6693
6766
|
export type LuaScriptRaisedDestroyEventFilter =
|
6694
6767
|
| TypeScriptRaisedDestroyEventFilter
|
@@ -6795,7 +6868,7 @@ declare module "factorio:runtime" {
|
|
6795
6868
|
* - `"name"`: {@link NameUpgradeCancelledEventFilter}
|
6796
6869
|
* - `"ghost_type"`: {@link GhostTypeUpgradeCancelledEventFilter}
|
6797
6870
|
* - `"ghost_name"`: {@link GhostNameUpgradeCancelledEventFilter}
|
6798
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6871
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaUpgradeCancelledEventFilter Online documentation}
|
6799
6872
|
*/
|
6800
6873
|
export type LuaUpgradeCancelledEventFilter =
|
6801
6874
|
| TypeUpgradeCancelledEventFilter
|
@@ -6902,7 +6975,7 @@ declare module "factorio:runtime" {
|
|
6902
6975
|
* - `"name"`: {@link NamePlayerRepairedEntityEventFilter}
|
6903
6976
|
* - `"ghost_type"`: {@link GhostTypePlayerRepairedEntityEventFilter}
|
6904
6977
|
* - `"ghost_name"`: {@link GhostNamePlayerRepairedEntityEventFilter}
|
6905
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
6978
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaPlayerRepairedEntityEventFilter Online documentation}
|
6906
6979
|
*/
|
6907
6980
|
export type LuaPlayerRepairedEntityEventFilter =
|
6908
6981
|
| TypePlayerRepairedEntityEventFilter
|
@@ -7009,7 +7082,7 @@ declare module "factorio:runtime" {
|
|
7009
7082
|
* - `"name"`: {@link NameScriptRaisedTeleportedEventFilter}
|
7010
7083
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedTeleportedEventFilter}
|
7011
7084
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedTeleportedEventFilter}
|
7012
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7085
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaScriptRaisedTeleportedEventFilter Online documentation}
|
7013
7086
|
*/
|
7014
7087
|
export type LuaScriptRaisedTeleportedEventFilter =
|
7015
7088
|
| TypeScriptRaisedTeleportedEventFilter
|
@@ -7116,7 +7189,7 @@ declare module "factorio:runtime" {
|
|
7116
7189
|
* - `"name"`: {@link NameEntityMarkedForUpgradeEventFilter}
|
7117
7190
|
* - `"ghost_type"`: {@link GhostTypeEntityMarkedForUpgradeEventFilter}
|
7118
7191
|
* - `"ghost_name"`: {@link GhostNameEntityMarkedForUpgradeEventFilter}
|
7119
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7192
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaEntityMarkedForUpgradeEventFilter Online documentation}
|
7120
7193
|
*/
|
7121
7194
|
export type LuaEntityMarkedForUpgradeEventFilter =
|
7122
7195
|
| TypeEntityMarkedForUpgradeEventFilter
|
@@ -7158,7 +7231,7 @@ declare module "factorio:runtime" {
|
|
7158
7231
|
*
|
7159
7232
|
* Other attributes may be specified depending on `filter`:
|
7160
7233
|
* - `"type"`: {@link TypePostEntityDiedEventFilter}
|
7161
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7234
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaPostEntityDiedEventFilter Online documentation}
|
7162
7235
|
*/
|
7163
7236
|
export type LuaPostEntityDiedEventFilter = TypePostEntityDiedEventFilter
|
7164
7237
|
/**
|
@@ -7260,7 +7333,7 @@ declare module "factorio:runtime" {
|
|
7260
7333
|
* - `"name"`: {@link NamePreRobotMinedEntityEventFilter}
|
7261
7334
|
* - `"ghost_type"`: {@link GhostTypePreRobotMinedEntityEventFilter}
|
7262
7335
|
* - `"ghost_name"`: {@link GhostNamePreRobotMinedEntityEventFilter}
|
7263
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7336
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaPreRobotMinedEntityEventFilter Online documentation}
|
7264
7337
|
*/
|
7265
7338
|
export type LuaPreRobotMinedEntityEventFilter =
|
7266
7339
|
| TypePreRobotMinedEntityEventFilter
|
@@ -7367,7 +7440,7 @@ declare module "factorio:runtime" {
|
|
7367
7440
|
* - `"name"`: {@link NameEntityClonedEventFilter}
|
7368
7441
|
* - `"ghost_type"`: {@link GhostTypeEntityClonedEventFilter}
|
7369
7442
|
* - `"ghost_name"`: {@link GhostNameEntityClonedEventFilter}
|
7370
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7443
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaEntityClonedEventFilter Online documentation}
|
7371
7444
|
*/
|
7372
7445
|
export type LuaEntityClonedEventFilter =
|
7373
7446
|
| TypeEntityClonedEventFilter
|
@@ -7474,7 +7547,7 @@ declare module "factorio:runtime" {
|
|
7474
7547
|
* - `"name"`: {@link NameScriptRaisedBuiltEventFilter}
|
7475
7548
|
* - `"ghost_type"`: {@link GhostTypeScriptRaisedBuiltEventFilter}
|
7476
7549
|
* - `"ghost_name"`: {@link GhostNameScriptRaisedBuiltEventFilter}
|
7477
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7550
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaScriptRaisedBuiltEventFilter Online documentation}
|
7478
7551
|
*/
|
7479
7552
|
export type LuaScriptRaisedBuiltEventFilter =
|
7480
7553
|
| TypeScriptRaisedBuiltEventFilter
|
@@ -7581,7 +7654,7 @@ declare module "factorio:runtime" {
|
|
7581
7654
|
* - `"name"`: {@link NameRobotMinedEntityEventFilter}
|
7582
7655
|
* - `"ghost_type"`: {@link GhostTypeRobotMinedEntityEventFilter}
|
7583
7656
|
* - `"ghost_name"`: {@link GhostNameRobotMinedEntityEventFilter}
|
7584
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7657
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaRobotMinedEntityEventFilter Online documentation}
|
7585
7658
|
*/
|
7586
7659
|
export type LuaRobotMinedEntityEventFilter =
|
7587
7660
|
| TypeRobotMinedEntityEventFilter
|
@@ -7688,7 +7761,7 @@ declare module "factorio:runtime" {
|
|
7688
7761
|
* - `"name"`: {@link NamePrePlayerMinedEntityEventFilter}
|
7689
7762
|
* - `"ghost_type"`: {@link GhostTypePrePlayerMinedEntityEventFilter}
|
7690
7763
|
* - `"ghost_name"`: {@link GhostNamePrePlayerMinedEntityEventFilter}
|
7691
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7764
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaPrePlayerMinedEntityEventFilter Online documentation}
|
7692
7765
|
*/
|
7693
7766
|
export type LuaPrePlayerMinedEntityEventFilter =
|
7694
7767
|
| TypePrePlayerMinedEntityEventFilter
|
@@ -7807,7 +7880,7 @@ declare module "factorio:runtime" {
|
|
7807
7880
|
* - `"ghost_type"`: {@link GhostTypeRobotBuiltEntityEventFilter}
|
7808
7881
|
* - `"ghost_name"`: {@link GhostNameRobotBuiltEntityEventFilter}
|
7809
7882
|
* - `"force"`: {@link ForceRobotBuiltEntityEventFilter}
|
7810
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7883
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaRobotBuiltEntityEventFilter Online documentation}
|
7811
7884
|
*/
|
7812
7885
|
export type LuaRobotBuiltEntityEventFilter =
|
7813
7886
|
| TypeRobotBuiltEntityEventFilter
|
@@ -7915,7 +7988,7 @@ declare module "factorio:runtime" {
|
|
7915
7988
|
* - `"name"`: {@link NamePreGhostUpgradedEventFilter}
|
7916
7989
|
* - `"ghost_type"`: {@link GhostTypePreGhostUpgradedEventFilter}
|
7917
7990
|
* - `"ghost_name"`: {@link GhostNamePreGhostUpgradedEventFilter}
|
7918
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
7991
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaPreGhostUpgradedEventFilter Online documentation}
|
7919
7992
|
*/
|
7920
7993
|
export type LuaPreGhostUpgradedEventFilter =
|
7921
7994
|
| TypePreGhostUpgradedEventFilter
|
@@ -8024,7 +8097,7 @@ declare module "factorio:runtime" {
|
|
8024
8097
|
* - `"name"`: {@link NameEntityDeconstructionCancelledEventFilter}
|
8025
8098
|
* - `"ghost_type"`: {@link GhostTypeEntityDeconstructionCancelledEventFilter}
|
8026
8099
|
* - `"ghost_name"`: {@link GhostNameEntityDeconstructionCancelledEventFilter}
|
8027
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8100
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaEntityDeconstructionCancelledEventFilter Online documentation}
|
8028
8101
|
*/
|
8029
8102
|
export type LuaEntityDeconstructionCancelledEventFilter =
|
8030
8103
|
| TypeEntityDeconstructionCancelledEventFilter
|
@@ -8143,7 +8216,7 @@ declare module "factorio:runtime" {
|
|
8143
8216
|
* - `"ghost_type"`: {@link GhostTypePlayerBuiltEntityEventFilter}
|
8144
8217
|
* - `"ghost_name"`: {@link GhostNamePlayerBuiltEntityEventFilter}
|
8145
8218
|
* - `"force"`: {@link ForcePlayerBuiltEntityEventFilter}
|
8146
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8219
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaPlayerBuiltEntityEventFilter Online documentation}
|
8147
8220
|
*/
|
8148
8221
|
export type LuaPlayerBuiltEntityEventFilter =
|
8149
8222
|
| TypePlayerBuiltEntityEventFilter
|
@@ -8251,7 +8324,7 @@ declare module "factorio:runtime" {
|
|
8251
8324
|
* - `"name"`: {@link NamePlayerMinedEntityEventFilter}
|
8252
8325
|
* - `"ghost_type"`: {@link GhostTypePlayerMinedEntityEventFilter}
|
8253
8326
|
* - `"ghost_name"`: {@link GhostNamePlayerMinedEntityEventFilter}
|
8254
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8327
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaPlayerMinedEntityEventFilter Online documentation}
|
8255
8328
|
*/
|
8256
8329
|
export type LuaPlayerMinedEntityEventFilter =
|
8257
8330
|
| TypePlayerMinedEntityEventFilter
|
@@ -8433,7 +8506,7 @@ declare module "factorio:runtime" {
|
|
8433
8506
|
* - `"final-damage-amount"`: {@link FinalDamageAmountEntityDamagedEventFilter}
|
8434
8507
|
* - `"damage-type"`: {@link DamageTypeEntityDamagedEventFilter}
|
8435
8508
|
* - `"final-health"`: {@link FinalHealthEntityDamagedEventFilter}
|
8436
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8509
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaEntityDamagedEventFilter Online documentation}
|
8437
8510
|
*/
|
8438
8511
|
export type LuaEntityDamagedEventFilter =
|
8439
8512
|
| TypeEntityDamagedEventFilter
|
@@ -8447,7 +8520,7 @@ declare module "factorio:runtime" {
|
|
8447
8520
|
| OtherEntityDamagedEventFilter
|
8448
8521
|
/**
|
8449
8522
|
* Write form of {@link LuaEntityDamagedEventFilter}, where table-or-array concepts are allowed to take an array form.
|
8450
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8523
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaEntityDamagedEventFilter Online documentation}
|
8451
8524
|
*/
|
8452
8525
|
export type LuaEntityDamagedEventFilterWrite =
|
8453
8526
|
| TypeEntityDamagedEventFilter
|
@@ -8558,7 +8631,7 @@ declare module "factorio:runtime" {
|
|
8558
8631
|
* - `"name"`: {@link NameSectorScannedEventFilter}
|
8559
8632
|
* - `"ghost_type"`: {@link GhostTypeSectorScannedEventFilter}
|
8560
8633
|
* - `"ghost_name"`: {@link GhostNameSectorScannedEventFilter}
|
8561
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
8634
|
+
* @see {@link https://lua-api.factorio.com/1.1.101/concepts.html#LuaSectorScannedEventFilter Online documentation}
|
8562
8635
|
*/
|
8563
8636
|
export type LuaSectorScannedEventFilter =
|
8564
8637
|
| TypeSectorScannedEventFilter
|