typed-factorio 0.13.1 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- package/Changelog.md +130 -102
- package/LICENSE +21 -21
- package/README.md +128 -113
- package/data/types.d.ts +13 -13
- package/generated/builtin-types.d.ts +9 -9
- package/generated/classes.d.ts +14881 -8979
- package/generated/concepts.d.ts +241 -134
- package/generated/defines.d.ts +100 -100
- package/generated/events.d.ts +201 -201
- package/generated/global-objects.d.ts +7 -7
- package/generated/index.d.ts +3 -1
- package/generator/typescript-internal.d.ts +9 -0
- package/package.json +55 -58
- package/runtime/index.d.ts +10 -10
- package/runtime/librariesAndFunctions.d.ts +123 -123
- package/runtime/mod-gui.d.ts +11 -11
- package/runtime/pairs.d.ts +13 -13
- package/runtime/util.d.ts +116 -120
- package/settings/types.d.ts +120 -120
package/generated/defines.d.ts
CHANGED
@@ -17,7 +17,7 @@ declare namespace defines {
|
|
17
17
|
/**
|
18
18
|
* AI command exit status. See {@link LuaEntity.set_command LuaEntity::set_command}
|
19
19
|
*
|
20
|
-
* {@link https://lua-api.factorio.com/
|
20
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.behavior_result View documentation}
|
21
21
|
*/
|
22
22
|
enum behavior_result {
|
23
23
|
in_progress,
|
@@ -36,7 +36,7 @@ declare namespace defines {
|
|
36
36
|
/**
|
37
37
|
* State of a chain signal.
|
38
38
|
*
|
39
|
-
* {@link https://lua-api.factorio.com/
|
39
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.chain_signal_state View documentation}
|
40
40
|
*/
|
41
41
|
enum chain_signal_state {
|
42
42
|
none,
|
@@ -83,86 +83,86 @@ declare namespace defines {
|
|
83
83
|
/**
|
84
84
|
* Command given to units describing what they should do.
|
85
85
|
*
|
86
|
-
* {@link https://lua-api.factorio.com/
|
86
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command View documentation}
|
87
87
|
*/
|
88
88
|
enum command {
|
89
89
|
/**
|
90
90
|
* Attack another entity.
|
91
91
|
*
|
92
|
-
* {@link https://lua-api.factorio.com/
|
92
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.attack View documentation}
|
93
93
|
*/
|
94
94
|
attack = 0,
|
95
95
|
/**
|
96
96
|
* Go to a specific position.
|
97
97
|
*
|
98
|
-
* {@link https://lua-api.factorio.com/
|
98
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.go_to_location View documentation}
|
99
99
|
*/
|
100
100
|
go_to_location = 1,
|
101
101
|
/**
|
102
102
|
* Chain commands together, see {@link defines.compound_command}.
|
103
103
|
*
|
104
|
-
* {@link https://lua-api.factorio.com/
|
104
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.compound View documentation}
|
105
105
|
*/
|
106
106
|
compound = 2,
|
107
107
|
/**
|
108
108
|
* Do what your group wants you to do.
|
109
109
|
*
|
110
|
-
* {@link https://lua-api.factorio.com/
|
110
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.group View documentation}
|
111
111
|
*/
|
112
112
|
group = 3,
|
113
113
|
/**
|
114
114
|
* Go to a place and attack what you see.
|
115
115
|
*
|
116
|
-
* {@link https://lua-api.factorio.com/
|
116
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.attack_area View documentation}
|
117
117
|
*/
|
118
118
|
attack_area = 4,
|
119
119
|
/**
|
120
120
|
* Chill.
|
121
121
|
*
|
122
|
-
* {@link https://lua-api.factorio.com/
|
122
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.wander View documentation}
|
123
123
|
*/
|
124
124
|
wander = 5,
|
125
125
|
/**
|
126
126
|
* Flee from another entity.
|
127
127
|
*
|
128
|
-
* {@link https://lua-api.factorio.com/
|
128
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.flee View documentation}
|
129
129
|
*/
|
130
130
|
flee = 6,
|
131
131
|
/**
|
132
132
|
* Stop moving and stay where you are.
|
133
133
|
*
|
134
|
-
* {@link https://lua-api.factorio.com/
|
134
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.stop View documentation}
|
135
135
|
*/
|
136
136
|
stop = 7,
|
137
137
|
/**
|
138
138
|
* Go to a position and build a base there.
|
139
139
|
*
|
140
|
-
* {@link https://lua-api.factorio.com/
|
140
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.command.build_base View documentation}
|
141
141
|
*/
|
142
142
|
build_base = 8,
|
143
143
|
}
|
144
144
|
/**
|
145
145
|
* How commands are joined together in a compound command (see {@link defines.command.compound}).
|
146
146
|
*
|
147
|
-
* {@link https://lua-api.factorio.com/
|
147
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.compound_command View documentation}
|
148
148
|
*/
|
149
149
|
enum compound_command {
|
150
150
|
/**
|
151
151
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
152
152
|
*
|
153
|
-
* {@link https://lua-api.factorio.com/
|
153
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.compound_command.logical_and View documentation}
|
154
154
|
*/
|
155
155
|
logical_and,
|
156
156
|
/**
|
157
157
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
158
158
|
*
|
159
|
-
* {@link https://lua-api.factorio.com/
|
159
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.compound_command.logical_or View documentation}
|
160
160
|
*/
|
161
161
|
logical_or,
|
162
162
|
/**
|
163
163
|
* Execute all commands in sequence and fail or succeed depending on the return status of the last command.
|
164
164
|
*
|
165
|
-
* {@link https://lua-api.factorio.com/
|
165
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.compound_command.return_last View documentation}
|
166
166
|
*/
|
167
167
|
return_last,
|
168
168
|
}
|
@@ -207,109 +207,109 @@ declare namespace defines {
|
|
207
207
|
/**
|
208
208
|
* {@link LuaContainerControlBehavior}
|
209
209
|
*
|
210
|
-
* {@link https://lua-api.factorio.com/
|
210
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.container View documentation}
|
211
211
|
*/
|
212
212
|
container,
|
213
213
|
/**
|
214
214
|
* {@link LuaGenericOnOffControlBehavior}
|
215
215
|
*
|
216
|
-
* {@link https://lua-api.factorio.com/
|
216
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.generic_on_off View documentation}
|
217
217
|
*/
|
218
218
|
generic_on_off,
|
219
219
|
/**
|
220
220
|
* {@link LuaInserterControlBehavior}
|
221
221
|
*
|
222
|
-
* {@link https://lua-api.factorio.com/
|
222
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.inserter View documentation}
|
223
223
|
*/
|
224
224
|
inserter,
|
225
225
|
/**
|
226
226
|
* {@link LuaLampControlBehavior}
|
227
227
|
*
|
228
|
-
* {@link https://lua-api.factorio.com/
|
228
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.lamp View documentation}
|
229
229
|
*/
|
230
230
|
lamp,
|
231
231
|
/**
|
232
232
|
* {@link LuaLogisticContainerControlBehavior}
|
233
233
|
*
|
234
|
-
* {@link https://lua-api.factorio.com/
|
234
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.logistic_container View documentation}
|
235
235
|
*/
|
236
236
|
logistic_container,
|
237
237
|
/**
|
238
238
|
* {@link LuaRoboportControlBehavior}
|
239
239
|
*
|
240
|
-
* {@link https://lua-api.factorio.com/
|
240
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.roboport View documentation}
|
241
241
|
*/
|
242
242
|
roboport,
|
243
243
|
/**
|
244
244
|
* {@link LuaStorageTankControlBehavior}
|
245
245
|
*
|
246
|
-
* {@link https://lua-api.factorio.com/
|
246
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.storage_tank View documentation}
|
247
247
|
*/
|
248
248
|
storage_tank,
|
249
249
|
/**
|
250
250
|
* {@link LuaTrainStopControlBehavior}
|
251
251
|
*
|
252
|
-
* {@link https://lua-api.factorio.com/
|
252
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.train_stop View documentation}
|
253
253
|
*/
|
254
254
|
train_stop,
|
255
255
|
/**
|
256
256
|
* {@link LuaDeciderCombinatorControlBehavior}
|
257
257
|
*
|
258
|
-
* {@link https://lua-api.factorio.com/
|
258
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.decider_combinator View documentation}
|
259
259
|
*/
|
260
260
|
decider_combinator,
|
261
261
|
/**
|
262
262
|
* {@link LuaArithmeticCombinatorControlBehavior}
|
263
263
|
*
|
264
|
-
* {@link https://lua-api.factorio.com/
|
264
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.arithmetic_combinator View documentation}
|
265
265
|
*/
|
266
266
|
arithmetic_combinator,
|
267
267
|
/**
|
268
268
|
* {@link LuaConstantCombinatorControlBehavior}
|
269
269
|
*
|
270
|
-
* {@link https://lua-api.factorio.com/
|
270
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.constant_combinator View documentation}
|
271
271
|
*/
|
272
272
|
constant_combinator,
|
273
273
|
/**
|
274
274
|
* {@link LuaTransportBeltControlBehavior}
|
275
275
|
*
|
276
|
-
* {@link https://lua-api.factorio.com/
|
276
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.transport_belt View documentation}
|
277
277
|
*/
|
278
278
|
transport_belt,
|
279
279
|
/**
|
280
280
|
* {@link LuaAccumulatorControlBehavior}
|
281
281
|
*
|
282
|
-
* {@link https://lua-api.factorio.com/
|
282
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.accumulator View documentation}
|
283
283
|
*/
|
284
284
|
accumulator,
|
285
285
|
/**
|
286
286
|
* {@link LuaRailSignalControlBehavior}
|
287
287
|
*
|
288
|
-
* {@link https://lua-api.factorio.com/
|
288
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.rail_signal View documentation}
|
289
289
|
*/
|
290
290
|
rail_signal,
|
291
291
|
/**
|
292
292
|
* {@link LuaRailChainSignalControlBehavior}
|
293
293
|
*
|
294
|
-
* {@link https://lua-api.factorio.com/
|
294
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.rail_chain_signal View documentation}
|
295
295
|
*/
|
296
296
|
rail_chain_signal,
|
297
297
|
/**
|
298
298
|
* {@link LuaWallControlBehavior}
|
299
299
|
*
|
300
|
-
* {@link https://lua-api.factorio.com/
|
300
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.wall View documentation}
|
301
301
|
*/
|
302
302
|
wall,
|
303
303
|
/**
|
304
304
|
* {@link LuaMiningDrillControlBehavior}
|
305
305
|
*
|
306
|
-
* {@link https://lua-api.factorio.com/
|
306
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.mining_drill View documentation}
|
307
307
|
*/
|
308
308
|
mining_drill,
|
309
309
|
/**
|
310
310
|
* {@link LuaProgrammableSpeakerControlBehavior}
|
311
311
|
*
|
312
|
-
* {@link https://lua-api.factorio.com/
|
312
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.control_behavior.type.programmable_speaker View documentation}
|
313
313
|
*/
|
314
314
|
programmable_speaker,
|
315
315
|
}
|
@@ -318,37 +318,37 @@ declare namespace defines {
|
|
318
318
|
/**
|
319
319
|
* Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
|
320
320
|
*
|
321
|
-
* {@link https://lua-api.factorio.com/
|
321
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.ghost View documentation}
|
322
322
|
*/
|
323
323
|
ghost,
|
324
324
|
/**
|
325
325
|
* The controller controls a character. This is the default controller in freeplay.
|
326
326
|
*
|
327
|
-
* {@link https://lua-api.factorio.com/
|
327
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.character View documentation}
|
328
328
|
*/
|
329
329
|
character,
|
330
330
|
/**
|
331
331
|
* The controller isn't tied to a character. This is the default controller in sandbox.
|
332
332
|
*
|
333
|
-
* {@link https://lua-api.factorio.com/
|
333
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.god View documentation}
|
334
334
|
*/
|
335
335
|
god,
|
336
336
|
/**
|
337
337
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
338
338
|
*
|
339
|
-
* {@link https://lua-api.factorio.com/
|
339
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.editor View documentation}
|
340
340
|
*/
|
341
341
|
editor,
|
342
342
|
/**
|
343
343
|
* The player can't interact with the world, and the camera pans around in a predefined manner.
|
344
344
|
*
|
345
|
-
* {@link https://lua-api.factorio.com/
|
345
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.cutscene View documentation}
|
346
346
|
*/
|
347
347
|
cutscene,
|
348
348
|
/**
|
349
349
|
* Can't change anything in the world but can view anything.
|
350
350
|
*
|
351
|
-
* {@link https://lua-api.factorio.com/
|
351
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.controllers.spectator View documentation}
|
352
352
|
*/
|
353
353
|
spectator,
|
354
354
|
}
|
@@ -410,25 +410,25 @@ declare namespace defines {
|
|
410
410
|
/**
|
411
411
|
* Perform command even if someone attacks the unit.
|
412
412
|
*
|
413
|
-
* {@link https://lua-api.factorio.com/
|
413
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.distraction.none View documentation}
|
414
414
|
*/
|
415
415
|
none,
|
416
416
|
/**
|
417
417
|
* Attack closer enemy entities with force.
|
418
418
|
*
|
419
|
-
* {@link https://lua-api.factorio.com/
|
419
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.distraction.by_enemy View documentation}
|
420
420
|
*/
|
421
421
|
by_enemy,
|
422
422
|
/**
|
423
423
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
424
424
|
*
|
425
|
-
* {@link https://lua-api.factorio.com/
|
425
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.distraction.by_anything View documentation}
|
426
426
|
*/
|
427
427
|
by_anything,
|
428
428
|
/**
|
429
429
|
* Attack when attacked.
|
430
430
|
*
|
431
|
-
* {@link https://lua-api.factorio.com/
|
431
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.distraction.by_damage View documentation}
|
432
432
|
*/
|
433
433
|
by_damage,
|
434
434
|
}
|
@@ -446,208 +446,208 @@ declare namespace defines {
|
|
446
446
|
/**
|
447
447
|
* Used by generators and solar panels.
|
448
448
|
*
|
449
|
-
* {@link https://lua-api.factorio.com/
|
449
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.not_plugged_in_electric_network View documentation}
|
450
450
|
*/
|
451
451
|
not_plugged_in_electric_network,
|
452
452
|
/**
|
453
453
|
* Used by power switches.
|
454
454
|
*
|
455
|
-
* {@link https://lua-api.factorio.com/
|
455
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.networks_connected View documentation}
|
456
456
|
*/
|
457
457
|
networks_connected,
|
458
458
|
/**
|
459
459
|
* Used by power switches.
|
460
460
|
*
|
461
|
-
* {@link https://lua-api.factorio.com/
|
461
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.networks_disconnected View documentation}
|
462
462
|
*/
|
463
463
|
networks_disconnected,
|
464
464
|
/**
|
465
465
|
* Used by accumulators.
|
466
466
|
*
|
467
|
-
* {@link https://lua-api.factorio.com/
|
467
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.charging View documentation}
|
468
468
|
*/
|
469
469
|
charging,
|
470
470
|
/**
|
471
471
|
* Used by accumulators.
|
472
472
|
*
|
473
|
-
* {@link https://lua-api.factorio.com/
|
473
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.discharging View documentation}
|
474
474
|
*/
|
475
475
|
discharging,
|
476
476
|
/**
|
477
477
|
* Used by accumulators.
|
478
478
|
*
|
479
|
-
* {@link https://lua-api.factorio.com/
|
479
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.fully_charged View documentation}
|
480
480
|
*/
|
481
481
|
fully_charged,
|
482
482
|
/**
|
483
483
|
* Used by logistic containers.
|
484
484
|
*
|
485
|
-
* {@link https://lua-api.factorio.com/
|
485
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.out_of_logistic_network View documentation}
|
486
486
|
*/
|
487
487
|
out_of_logistic_network,
|
488
488
|
/**
|
489
489
|
* Used by assembling machines.
|
490
490
|
*
|
491
|
-
* {@link https://lua-api.factorio.com/
|
491
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_recipe View documentation}
|
492
492
|
*/
|
493
493
|
no_recipe,
|
494
494
|
/**
|
495
495
|
* Used by furnaces.
|
496
496
|
*
|
497
|
-
* {@link https://lua-api.factorio.com/
|
497
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_ingredients View documentation}
|
498
498
|
*/
|
499
499
|
no_ingredients,
|
500
500
|
/**
|
501
501
|
* Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
|
502
502
|
*
|
503
|
-
* {@link https://lua-api.factorio.com/
|
503
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_input_fluid View documentation}
|
504
504
|
*/
|
505
505
|
no_input_fluid,
|
506
506
|
/**
|
507
507
|
* Used by labs.
|
508
508
|
*
|
509
|
-
* {@link https://lua-api.factorio.com/
|
509
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_research_in_progress View documentation}
|
510
510
|
*/
|
511
511
|
no_research_in_progress,
|
512
512
|
/**
|
513
513
|
* Used by mining drills.
|
514
514
|
*
|
515
|
-
* {@link https://lua-api.factorio.com/
|
515
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_minable_resources View documentation}
|
516
516
|
*/
|
517
517
|
no_minable_resources,
|
518
518
|
/**
|
519
519
|
* Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
|
520
520
|
*
|
521
|
-
* {@link https://lua-api.factorio.com/
|
521
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.low_input_fluid View documentation}
|
522
522
|
*/
|
523
523
|
low_input_fluid,
|
524
524
|
/**
|
525
525
|
* Used by crafting machines.
|
526
526
|
*
|
527
|
-
* {@link https://lua-api.factorio.com/
|
527
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.fluid_ingredient_shortage View documentation}
|
528
528
|
*/
|
529
529
|
fluid_ingredient_shortage,
|
530
530
|
/**
|
531
531
|
* Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result
|
532
532
|
* inventory, boiler has full output fluidbox.
|
533
533
|
*
|
534
|
-
* {@link https://lua-api.factorio.com/
|
534
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.full_output View documentation}
|
535
535
|
*/
|
536
536
|
full_output,
|
537
537
|
/**
|
538
538
|
* Used by crafting machines.
|
539
539
|
*
|
540
|
-
* {@link https://lua-api.factorio.com/
|
540
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.item_ingredient_shortage View documentation}
|
541
541
|
*/
|
542
542
|
item_ingredient_shortage,
|
543
543
|
/**
|
544
544
|
* Used by mining drills when the mining fluid is missing.
|
545
545
|
*
|
546
|
-
* {@link https://lua-api.factorio.com/
|
546
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.missing_required_fluid View documentation}
|
547
547
|
*/
|
548
548
|
missing_required_fluid,
|
549
549
|
/**
|
550
550
|
* Used by labs.
|
551
551
|
*
|
552
|
-
* {@link https://lua-api.factorio.com/
|
552
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.missing_science_packs View documentation}
|
553
553
|
*/
|
554
554
|
missing_science_packs,
|
555
555
|
/**
|
556
556
|
* Used by inserters.
|
557
557
|
*
|
558
|
-
* {@link https://lua-api.factorio.com/
|
558
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_for_source_items View documentation}
|
559
559
|
*/
|
560
560
|
waiting_for_source_items,
|
561
561
|
/**
|
562
562
|
* Used by inserters and mining drills.
|
563
563
|
*
|
564
|
-
* {@link https://lua-api.factorio.com/
|
564
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_for_space_in_destination View documentation}
|
565
565
|
*/
|
566
566
|
waiting_for_space_in_destination,
|
567
567
|
/**
|
568
568
|
* Used by the rocket silo.
|
569
569
|
*
|
570
|
-
* {@link https://lua-api.factorio.com/
|
570
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.preparing_rocket_for_launch View documentation}
|
571
571
|
*/
|
572
572
|
preparing_rocket_for_launch,
|
573
573
|
/**
|
574
574
|
* Used by the rocket silo.
|
575
575
|
*
|
576
|
-
* {@link https://lua-api.factorio.com/
|
576
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_to_launch_rocket View documentation}
|
577
577
|
*/
|
578
578
|
waiting_to_launch_rocket,
|
579
579
|
/**
|
580
580
|
* Used by the rocket silo.
|
581
581
|
*
|
582
|
-
* {@link https://lua-api.factorio.com/
|
582
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.launching_rocket View documentation}
|
583
583
|
*/
|
584
584
|
launching_rocket,
|
585
585
|
/**
|
586
586
|
* Used by beacons.
|
587
587
|
*
|
588
|
-
* {@link https://lua-api.factorio.com/
|
588
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_modules_to_transmit View documentation}
|
589
589
|
*/
|
590
590
|
no_modules_to_transmit,
|
591
591
|
/**
|
592
592
|
* Used by roboports.
|
593
593
|
*
|
594
|
-
* {@link https://lua-api.factorio.com/
|
594
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.recharging_after_power_outage View documentation}
|
595
595
|
*/
|
596
596
|
recharging_after_power_outage,
|
597
597
|
/**
|
598
598
|
* Used by inserters targeting entity ghosts.
|
599
599
|
*
|
600
|
-
* {@link https://lua-api.factorio.com/
|
600
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_for_target_to_be_built View documentation}
|
601
601
|
*/
|
602
602
|
waiting_for_target_to_be_built,
|
603
603
|
/**
|
604
604
|
* Used by inserters targeting rails.
|
605
605
|
*
|
606
|
-
* {@link https://lua-api.factorio.com/
|
606
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.waiting_for_train View documentation}
|
607
607
|
*/
|
608
608
|
waiting_for_train,
|
609
609
|
/**
|
610
610
|
* Used by ammo turrets.
|
611
611
|
*
|
612
|
-
* {@link https://lua-api.factorio.com/
|
612
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.no_ammo View documentation}
|
613
613
|
*/
|
614
614
|
no_ammo,
|
615
615
|
/**
|
616
616
|
* Used by heat energy sources.
|
617
617
|
*
|
618
|
-
* {@link https://lua-api.factorio.com/
|
618
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.low_temperature View documentation}
|
619
619
|
*/
|
620
620
|
low_temperature,
|
621
621
|
/**
|
622
622
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
623
623
|
*
|
624
|
-
* {@link https://lua-api.factorio.com/
|
624
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.disabled View documentation}
|
625
625
|
*/
|
626
626
|
disabled,
|
627
627
|
/**
|
628
628
|
* Used by lamps.
|
629
629
|
*
|
630
|
-
* {@link https://lua-api.factorio.com/
|
630
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.turned_off_during_daytime View documentation}
|
631
631
|
*/
|
632
632
|
turned_off_during_daytime,
|
633
633
|
/**
|
634
634
|
* Used by rail signals.
|
635
635
|
*
|
636
|
-
* {@link https://lua-api.factorio.com/
|
636
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.not_connected_to_rail View documentation}
|
637
637
|
*/
|
638
638
|
not_connected_to_rail,
|
639
639
|
/**
|
640
640
|
* Used by rail signals.
|
641
641
|
*
|
642
|
-
* {@link https://lua-api.factorio.com/
|
642
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.entity_status.cant_divide_segments View documentation}
|
643
643
|
*/
|
644
644
|
cant_divide_segments,
|
645
645
|
}
|
646
646
|
/**
|
647
|
-
* See the {@link https://lua-api.factorio.com/
|
648
|
-
* when they get raised.
|
647
|
+
* See the {@link https://lua-api.factorio.com/latest/events.html events page} for more info on what events contain
|
648
|
+
* and when they get raised.
|
649
649
|
*
|
650
|
-
* {@link https://lua-api.factorio.com/
|
650
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.events View documentation}
|
651
651
|
*/
|
652
652
|
namespace events {
|
653
653
|
/** Event type: {@link OnTickEvent} */
|
@@ -1084,10 +1084,10 @@ declare namespace defines {
|
|
1084
1084
|
const on_equipment_removed: EventId<OnEquipmentRemovedEvent>
|
1085
1085
|
}
|
1086
1086
|
/**
|
1087
|
-
* See the {@link https://lua-api.factorio.com/
|
1088
|
-
* when they get raised.
|
1087
|
+
* See the {@link https://lua-api.factorio.com/latest/events.html events page} for more info on what events contain
|
1088
|
+
* and when they get raised.
|
1089
1089
|
*
|
1090
|
-
* {@link https://lua-api.factorio.com/
|
1090
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.events View documentation}
|
1091
1091
|
*/
|
1092
1092
|
type Events = typeof events[keyof typeof events]
|
1093
1093
|
enum flow_precision_index {
|
@@ -1402,7 +1402,7 @@ declare namespace defines {
|
|
1402
1402
|
* organized as a lookup table, meaning it maps the sub-prototype names to `0`. As an example,
|
1403
1403
|
* `defines.prototypes['entity']` looks like this: `{furnace=0, inserter=0, container=0, ...}`.
|
1404
1404
|
*
|
1405
|
-
* {@link https://lua-api.factorio.com/
|
1405
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.prototypes View documentation}
|
1406
1406
|
*/
|
1407
1407
|
const prototypes: {
|
1408
1408
|
readonly [Type in string]?: {
|
@@ -1523,31 +1523,31 @@ declare namespace defines {
|
|
1523
1523
|
/**
|
1524
1524
|
* State of an ordinary rail signal.
|
1525
1525
|
*
|
1526
|
-
* {@link https://lua-api.factorio.com/
|
1526
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state View documentation}
|
1527
1527
|
*/
|
1528
1528
|
enum signal_state {
|
1529
1529
|
/**
|
1530
1530
|
* Green.
|
1531
1531
|
*
|
1532
|
-
* {@link https://lua-api.factorio.com/
|
1532
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state.open View documentation}
|
1533
1533
|
*/
|
1534
1534
|
open,
|
1535
1535
|
/**
|
1536
1536
|
* Red.
|
1537
1537
|
*
|
1538
|
-
* {@link https://lua-api.factorio.com/
|
1538
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state.closed View documentation}
|
1539
1539
|
*/
|
1540
1540
|
closed,
|
1541
1541
|
/**
|
1542
1542
|
* Orange.
|
1543
1543
|
*
|
1544
|
-
* {@link https://lua-api.factorio.com/
|
1544
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state.reserved View documentation}
|
1545
1545
|
*/
|
1546
1546
|
reserved,
|
1547
1547
|
/**
|
1548
1548
|
* Red - From circuit network.
|
1549
1549
|
*
|
1550
|
-
* {@link https://lua-api.factorio.com/
|
1550
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.signal_state.reserved_by_circuit_network View documentation}
|
1551
1551
|
*/
|
1552
1552
|
reserved_by_circuit_network,
|
1553
1553
|
}
|
@@ -1555,67 +1555,67 @@ declare namespace defines {
|
|
1555
1555
|
/**
|
1556
1556
|
* Normal state -- following the path.
|
1557
1557
|
*
|
1558
|
-
* {@link https://lua-api.factorio.com/
|
1558
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.on_the_path View documentation}
|
1559
1559
|
*/
|
1560
1560
|
on_the_path,
|
1561
1561
|
/**
|
1562
1562
|
* Had path and lost it -- must stop.
|
1563
1563
|
*
|
1564
|
-
* {@link https://lua-api.factorio.com/
|
1564
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.path_lost View documentation}
|
1565
1565
|
*/
|
1566
1566
|
path_lost,
|
1567
1567
|
/**
|
1568
1568
|
* Doesn't have anywhere to go.
|
1569
1569
|
*
|
1570
|
-
* {@link https://lua-api.factorio.com/
|
1570
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.no_schedule View documentation}
|
1571
1571
|
*/
|
1572
1572
|
no_schedule,
|
1573
1573
|
/**
|
1574
1574
|
* Has no path and is stopped.
|
1575
1575
|
*
|
1576
|
-
* {@link https://lua-api.factorio.com/
|
1576
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.no_path View documentation}
|
1577
1577
|
*/
|
1578
1578
|
no_path,
|
1579
1579
|
/**
|
1580
1580
|
* Braking before a rail signal.
|
1581
1581
|
*
|
1582
|
-
* {@link https://lua-api.factorio.com/
|
1582
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.arrive_signal View documentation}
|
1583
1583
|
*/
|
1584
1584
|
arrive_signal,
|
1585
1585
|
/**
|
1586
1586
|
* Waiting at a signal.
|
1587
1587
|
*
|
1588
|
-
* {@link https://lua-api.factorio.com/
|
1588
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.wait_signal View documentation}
|
1589
1589
|
*/
|
1590
1590
|
wait_signal,
|
1591
1591
|
/**
|
1592
1592
|
* Braking before a station.
|
1593
1593
|
*
|
1594
|
-
* {@link https://lua-api.factorio.com/
|
1594
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.arrive_station View documentation}
|
1595
1595
|
*/
|
1596
1596
|
arrive_station,
|
1597
1597
|
/**
|
1598
1598
|
* Waiting at a station.
|
1599
1599
|
*
|
1600
|
-
* {@link https://lua-api.factorio.com/
|
1600
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.wait_station View documentation}
|
1601
1601
|
*/
|
1602
1602
|
wait_station,
|
1603
1603
|
/**
|
1604
1604
|
* Switched to manual control and has to stop.
|
1605
1605
|
*
|
1606
|
-
* {@link https://lua-api.factorio.com/
|
1606
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.manual_control_stop View documentation}
|
1607
1607
|
*/
|
1608
1608
|
manual_control_stop,
|
1609
1609
|
/**
|
1610
1610
|
* Can move if user explicitly sits in and rides the train.
|
1611
1611
|
*
|
1612
|
-
* {@link https://lua-api.factorio.com/
|
1612
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.manual_control View documentation}
|
1613
1613
|
*/
|
1614
1614
|
manual_control,
|
1615
1615
|
/**
|
1616
1616
|
* Same as no_path but all candidate train stops are full
|
1617
1617
|
*
|
1618
|
-
* {@link https://lua-api.factorio.com/
|
1618
|
+
* {@link https://lua-api.factorio.com/latest/defines.html#defines.train_state.destination_full View documentation}
|
1619
1619
|
*/
|
1620
1620
|
destination_full,
|
1621
1621
|
}
|