typed-factorio 2.11.0 → 2.12.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/prototype/generated/prototypes.d.ts +1727 -1727
- package/prototype/generated/types.d.ts +1434 -1434
- package/runtime/generated/classes.d.ts +3364 -3358
- package/runtime/generated/concepts.d.ts +288 -208
- package/runtime/generated/defines.d.ts +121 -121
- 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
@@ -207,7 +207,7 @@ declare global {
|
|
207
207
|
}
|
208
208
|
/**
|
209
209
|
* AI command exit status. See {@link LuaEntity#set_command LuaEntity::set_command}
|
210
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
210
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.behavior_result Online documentation}
|
211
211
|
*/
|
212
212
|
enum behavior_result {
|
213
213
|
in_progress,
|
@@ -225,7 +225,7 @@ declare global {
|
|
225
225
|
}
|
226
226
|
/**
|
227
227
|
* State of a chain signal.
|
228
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
228
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.chain_signal_state Online documentation}
|
229
229
|
*/
|
230
230
|
enum chain_signal_state {
|
231
231
|
none,
|
@@ -272,73 +272,73 @@ declare global {
|
|
272
272
|
}
|
273
273
|
/**
|
274
274
|
* Command given to units describing what they should do.
|
275
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
275
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command Online documentation}
|
276
276
|
*/
|
277
277
|
enum command {
|
278
278
|
/**
|
279
279
|
* Attack another entity.
|
280
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
280
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.attack Online documentation}
|
281
281
|
*/
|
282
282
|
attack = 0,
|
283
283
|
/**
|
284
284
|
* Go to a specific position.
|
285
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
285
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.go_to_location Online documentation}
|
286
286
|
*/
|
287
287
|
go_to_location = 1,
|
288
288
|
/**
|
289
289
|
* Chain commands together, see {@link defines.compound_command}.
|
290
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
290
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.compound Online documentation}
|
291
291
|
*/
|
292
292
|
compound = 2,
|
293
293
|
/**
|
294
294
|
* Do what your group wants you to do.
|
295
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
295
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.group Online documentation}
|
296
296
|
*/
|
297
297
|
group = 3,
|
298
298
|
/**
|
299
299
|
* Go to a place and attack what you see.
|
300
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
300
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.attack_area Online documentation}
|
301
301
|
*/
|
302
302
|
attack_area = 4,
|
303
303
|
/**
|
304
304
|
* Chill.
|
305
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
305
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.wander Online documentation}
|
306
306
|
*/
|
307
307
|
wander = 5,
|
308
308
|
/**
|
309
309
|
* Flee from another entity.
|
310
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
310
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.flee Online documentation}
|
311
311
|
*/
|
312
312
|
flee = 6,
|
313
313
|
/**
|
314
314
|
* Stop moving and stay where you are.
|
315
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
315
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.stop Online documentation}
|
316
316
|
*/
|
317
317
|
stop = 7,
|
318
318
|
/**
|
319
319
|
* Go to a position and build a base there.
|
320
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
320
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.command.build_base Online documentation}
|
321
321
|
*/
|
322
322
|
build_base = 8,
|
323
323
|
}
|
324
324
|
/**
|
325
325
|
* How commands are joined together in a compound command (see {@link defines.command.compound}).
|
326
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
326
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.compound_command Online documentation}
|
327
327
|
*/
|
328
328
|
enum compound_command {
|
329
329
|
/**
|
330
330
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
331
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
331
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.compound_command.logical_and Online documentation}
|
332
332
|
*/
|
333
333
|
logical_and,
|
334
334
|
/**
|
335
335
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
336
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
336
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.compound_command.logical_or Online documentation}
|
337
337
|
*/
|
338
338
|
logical_or,
|
339
339
|
/**
|
340
340
|
* Execute all commands in sequence and fail or succeed depending on the return status of the last command.
|
341
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
341
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.compound_command.return_last Online documentation}
|
342
342
|
*/
|
343
343
|
return_last,
|
344
344
|
}
|
@@ -382,92 +382,92 @@ declare global {
|
|
382
382
|
enum type {
|
383
383
|
/**
|
384
384
|
* {@link LuaContainerControlBehavior}
|
385
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
385
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.container Online documentation}
|
386
386
|
*/
|
387
387
|
container,
|
388
388
|
/**
|
389
389
|
* {@link LuaGenericOnOffControlBehavior}
|
390
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
390
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
|
391
391
|
*/
|
392
392
|
generic_on_off,
|
393
393
|
/**
|
394
394
|
* {@link LuaInserterControlBehavior}
|
395
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
395
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.inserter Online documentation}
|
396
396
|
*/
|
397
397
|
inserter,
|
398
398
|
/**
|
399
399
|
* {@link LuaLampControlBehavior}
|
400
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
400
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.lamp Online documentation}
|
401
401
|
*/
|
402
402
|
lamp,
|
403
403
|
/**
|
404
404
|
* {@link LuaLogisticContainerControlBehavior}
|
405
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
405
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.logistic_container Online documentation}
|
406
406
|
*/
|
407
407
|
logistic_container,
|
408
408
|
/**
|
409
409
|
* {@link LuaRoboportControlBehavior}
|
410
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
410
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.roboport Online documentation}
|
411
411
|
*/
|
412
412
|
roboport,
|
413
413
|
/**
|
414
414
|
* {@link LuaStorageTankControlBehavior}
|
415
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
415
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.storage_tank Online documentation}
|
416
416
|
*/
|
417
417
|
storage_tank,
|
418
418
|
/**
|
419
419
|
* {@link LuaTrainStopControlBehavior}
|
420
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
420
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.train_stop Online documentation}
|
421
421
|
*/
|
422
422
|
train_stop,
|
423
423
|
/**
|
424
424
|
* {@link LuaDeciderCombinatorControlBehavior}
|
425
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
425
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
|
426
426
|
*/
|
427
427
|
decider_combinator,
|
428
428
|
/**
|
429
429
|
* {@link LuaArithmeticCombinatorControlBehavior}
|
430
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
430
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
|
431
431
|
*/
|
432
432
|
arithmetic_combinator,
|
433
433
|
/**
|
434
434
|
* {@link LuaConstantCombinatorControlBehavior}
|
435
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
435
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
|
436
436
|
*/
|
437
437
|
constant_combinator,
|
438
438
|
/**
|
439
439
|
* {@link LuaTransportBeltControlBehavior}
|
440
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
440
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.transport_belt Online documentation}
|
441
441
|
*/
|
442
442
|
transport_belt,
|
443
443
|
/**
|
444
444
|
* {@link LuaAccumulatorControlBehavior}
|
445
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
445
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.accumulator Online documentation}
|
446
446
|
*/
|
447
447
|
accumulator,
|
448
448
|
/**
|
449
449
|
* {@link LuaRailSignalControlBehavior}
|
450
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
450
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.rail_signal Online documentation}
|
451
451
|
*/
|
452
452
|
rail_signal,
|
453
453
|
/**
|
454
454
|
* {@link LuaRailChainSignalControlBehavior}
|
455
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
455
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
|
456
456
|
*/
|
457
457
|
rail_chain_signal,
|
458
458
|
/**
|
459
459
|
* {@link LuaWallControlBehavior}
|
460
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
460
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.wall Online documentation}
|
461
461
|
*/
|
462
462
|
wall,
|
463
463
|
/**
|
464
464
|
* {@link LuaMiningDrillControlBehavior}
|
465
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
465
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.mining_drill Online documentation}
|
466
466
|
*/
|
467
467
|
mining_drill,
|
468
468
|
/**
|
469
469
|
* {@link LuaProgrammableSpeakerControlBehavior}
|
470
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
470
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
|
471
471
|
*/
|
472
472
|
programmable_speaker,
|
473
473
|
}
|
@@ -475,32 +475,32 @@ declare global {
|
|
475
475
|
enum controllers {
|
476
476
|
/**
|
477
477
|
* Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
|
478
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
478
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.controllers.ghost Online documentation}
|
479
479
|
*/
|
480
480
|
ghost,
|
481
481
|
/**
|
482
482
|
* The controller controls a character. This is the default controller in freeplay.
|
483
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
483
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.controllers.character Online documentation}
|
484
484
|
*/
|
485
485
|
character,
|
486
486
|
/**
|
487
487
|
* The controller isn't tied to a character. This is the default controller in sandbox.
|
488
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
488
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.controllers.god Online documentation}
|
489
489
|
*/
|
490
490
|
god,
|
491
491
|
/**
|
492
492
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
493
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
493
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.controllers.editor Online documentation}
|
494
494
|
*/
|
495
495
|
editor,
|
496
496
|
/**
|
497
497
|
* The player can't interact with the world, and the camera pans around in a predefined manner.
|
498
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
498
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.controllers.cutscene Online documentation}
|
499
499
|
*/
|
500
500
|
cutscene,
|
501
501
|
/**
|
502
502
|
* Can't change anything in the world but can view anything.
|
503
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
503
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.controllers.spectator Online documentation}
|
504
504
|
*/
|
505
505
|
spectator,
|
506
506
|
}
|
@@ -561,22 +561,22 @@ declare global {
|
|
561
561
|
enum distraction {
|
562
562
|
/**
|
563
563
|
* Perform command even if someone attacks the unit.
|
564
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
564
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.distraction.none Online documentation}
|
565
565
|
*/
|
566
566
|
none,
|
567
567
|
/**
|
568
568
|
* Attack closer enemy entities with force.
|
569
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
569
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.distraction.by_enemy Online documentation}
|
570
570
|
*/
|
571
571
|
by_enemy,
|
572
572
|
/**
|
573
573
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
574
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
574
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.distraction.by_anything Online documentation}
|
575
575
|
*/
|
576
576
|
by_anything,
|
577
577
|
/**
|
578
578
|
* Attack when attacked.
|
579
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
579
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.distraction.by_damage Online documentation}
|
580
580
|
*/
|
581
581
|
by_damage,
|
582
582
|
}
|
@@ -593,178 +593,178 @@ declare global {
|
|
593
593
|
marked_for_deconstruction,
|
594
594
|
/**
|
595
595
|
* Used by generators and solar panels.
|
596
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
596
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
|
597
597
|
*/
|
598
598
|
not_plugged_in_electric_network,
|
599
599
|
/**
|
600
600
|
* Used by power switches.
|
601
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
601
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.networks_connected Online documentation}
|
602
602
|
*/
|
603
603
|
networks_connected,
|
604
604
|
/**
|
605
605
|
* Used by power switches.
|
606
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
606
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.networks_disconnected Online documentation}
|
607
607
|
*/
|
608
608
|
networks_disconnected,
|
609
609
|
/**
|
610
610
|
* Used by accumulators.
|
611
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
611
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.charging Online documentation}
|
612
612
|
*/
|
613
613
|
charging,
|
614
614
|
/**
|
615
615
|
* Used by accumulators.
|
616
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
616
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.discharging Online documentation}
|
617
617
|
*/
|
618
618
|
discharging,
|
619
619
|
/**
|
620
620
|
* Used by accumulators.
|
621
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
621
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.fully_charged Online documentation}
|
622
622
|
*/
|
623
623
|
fully_charged,
|
624
624
|
/**
|
625
625
|
* Used by logistic containers.
|
626
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
626
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
|
627
627
|
*/
|
628
628
|
out_of_logistic_network,
|
629
629
|
/**
|
630
630
|
* Used by assembling machines.
|
631
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
631
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.no_recipe Online documentation}
|
632
632
|
*/
|
633
633
|
no_recipe,
|
634
634
|
/**
|
635
635
|
* Used by furnaces.
|
636
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
636
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.no_ingredients Online documentation}
|
637
637
|
*/
|
638
638
|
no_ingredients,
|
639
639
|
/**
|
640
640
|
* Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
|
641
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
641
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.no_input_fluid Online documentation}
|
642
642
|
*/
|
643
643
|
no_input_fluid,
|
644
644
|
/**
|
645
645
|
* Used by labs.
|
646
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
646
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.no_research_in_progress Online documentation}
|
647
647
|
*/
|
648
648
|
no_research_in_progress,
|
649
649
|
/**
|
650
650
|
* Used by mining drills.
|
651
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
651
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.no_minable_resources Online documentation}
|
652
652
|
*/
|
653
653
|
no_minable_resources,
|
654
654
|
/**
|
655
655
|
* Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
|
656
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
656
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.low_input_fluid Online documentation}
|
657
657
|
*/
|
658
658
|
low_input_fluid,
|
659
659
|
/**
|
660
660
|
* Used by crafting machines.
|
661
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
661
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
|
662
662
|
*/
|
663
663
|
fluid_ingredient_shortage,
|
664
664
|
/**
|
665
665
|
* Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
|
666
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
666
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.full_output Online documentation}
|
667
667
|
*/
|
668
668
|
full_output,
|
669
669
|
/**
|
670
670
|
* Used by burner energy sources.
|
671
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
671
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
|
672
672
|
*/
|
673
673
|
full_burnt_result_output,
|
674
674
|
/**
|
675
675
|
* Used by crafting machines.
|
676
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
676
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
|
677
677
|
*/
|
678
678
|
item_ingredient_shortage,
|
679
679
|
/**
|
680
680
|
* Used by mining drills when the mining fluid is missing.
|
681
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
681
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.missing_required_fluid Online documentation}
|
682
682
|
*/
|
683
683
|
missing_required_fluid,
|
684
684
|
/**
|
685
685
|
* Used by labs.
|
686
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
686
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.missing_science_packs Online documentation}
|
687
687
|
*/
|
688
688
|
missing_science_packs,
|
689
689
|
/**
|
690
690
|
* Used by inserters.
|
691
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
691
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
|
692
692
|
*/
|
693
693
|
waiting_for_source_items,
|
694
694
|
/**
|
695
695
|
* Used by inserters and mining drills.
|
696
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
696
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
|
697
697
|
*/
|
698
698
|
waiting_for_space_in_destination,
|
699
699
|
/**
|
700
700
|
* Used by the rocket silo.
|
701
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
701
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
|
702
702
|
*/
|
703
703
|
preparing_rocket_for_launch,
|
704
704
|
/**
|
705
705
|
* Used by the rocket silo.
|
706
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
706
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
|
707
707
|
*/
|
708
708
|
waiting_to_launch_rocket,
|
709
709
|
/**
|
710
710
|
* Used by the rocket silo.
|
711
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
711
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.launching_rocket Online documentation}
|
712
712
|
*/
|
713
713
|
launching_rocket,
|
714
714
|
/**
|
715
715
|
* Used by beacons.
|
716
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
716
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
|
717
717
|
*/
|
718
718
|
no_modules_to_transmit,
|
719
719
|
/**
|
720
720
|
* Used by roboports.
|
721
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
721
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
|
722
722
|
*/
|
723
723
|
recharging_after_power_outage,
|
724
724
|
/**
|
725
725
|
* Used by inserters targeting entity ghosts.
|
726
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
726
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
|
727
727
|
*/
|
728
728
|
waiting_for_target_to_be_built,
|
729
729
|
/**
|
730
730
|
* Used by inserters targeting rails.
|
731
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
731
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.waiting_for_train Online documentation}
|
732
732
|
*/
|
733
733
|
waiting_for_train,
|
734
734
|
/**
|
735
735
|
* Used by ammo turrets.
|
736
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
736
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.no_ammo Online documentation}
|
737
737
|
*/
|
738
738
|
no_ammo,
|
739
739
|
/**
|
740
740
|
* Used by heat energy sources.
|
741
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
741
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.low_temperature Online documentation}
|
742
742
|
*/
|
743
743
|
low_temperature,
|
744
744
|
/**
|
745
745
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
746
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
746
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.disabled Online documentation}
|
747
747
|
*/
|
748
748
|
disabled,
|
749
749
|
/**
|
750
750
|
* Used by lamps.
|
751
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
751
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
|
752
752
|
*/
|
753
753
|
turned_off_during_daytime,
|
754
754
|
/**
|
755
755
|
* Used by rail signals.
|
756
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
756
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
|
757
757
|
*/
|
758
758
|
not_connected_to_rail,
|
759
759
|
/**
|
760
760
|
* Used by rail signals.
|
761
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
761
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.entity_status.cant_divide_segments Online documentation}
|
762
762
|
*/
|
763
763
|
cant_divide_segments,
|
764
764
|
}
|
765
765
|
/**
|
766
|
-
* See the {@linkplain https://lua-api.factorio.com/1.1.
|
767
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
766
|
+
* See the {@linkplain https://lua-api.factorio.com/1.1.109/events.html events page} for more info on what events contain and when they get raised.
|
767
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.events Online documentation}
|
768
768
|
*/
|
769
769
|
namespace events {
|
770
770
|
/**
|
@@ -1505,8 +1505,8 @@ declare global {
|
|
1505
1505
|
const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent>
|
1506
1506
|
}
|
1507
1507
|
/**
|
1508
|
-
* See the {@linkplain https://lua-api.factorio.com/1.1.
|
1509
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1508
|
+
* See the {@linkplain https://lua-api.factorio.com/1.1.109/events.html events page} for more info on what events contain and when they get raised.
|
1509
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.events Online documentation}
|
1510
1510
|
*/
|
1511
1511
|
type events = (typeof events)[keyof typeof events]
|
1512
1512
|
enum flow_precision_index {
|
@@ -1522,17 +1522,17 @@ declare global {
|
|
1522
1522
|
enum game_controller_interaction {
|
1523
1523
|
/**
|
1524
1524
|
* Game controller will always hover this element regardless of type or state.
|
1525
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1525
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.game_controller_interaction.always Online documentation}
|
1526
1526
|
*/
|
1527
1527
|
always,
|
1528
1528
|
/**
|
1529
1529
|
* Never hover this element with a game controller.
|
1530
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1530
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.game_controller_interaction.never Online documentation}
|
1531
1531
|
*/
|
1532
1532
|
never,
|
1533
1533
|
/**
|
1534
1534
|
* Hover according to the element type and implementation.
|
1535
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1535
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.game_controller_interaction.normal Online documentation}
|
1536
1536
|
*/
|
1537
1537
|
normal,
|
1538
1538
|
}
|
@@ -1848,17 +1848,17 @@ declare global {
|
|
1848
1848
|
enum print_skip {
|
1849
1849
|
/**
|
1850
1850
|
* Print will not be skipped.
|
1851
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1851
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.print_skip.never Online documentation}
|
1852
1852
|
*/
|
1853
1853
|
never,
|
1854
1854
|
/**
|
1855
1855
|
* Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
|
1856
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1856
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.print_skip.if_redundant Online documentation}
|
1857
1857
|
*/
|
1858
1858
|
if_redundant,
|
1859
1859
|
/**
|
1860
1860
|
* Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
|
1861
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1861
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.print_skip.if_visible Online documentation}
|
1862
1862
|
*/
|
1863
1863
|
if_visible,
|
1864
1864
|
}
|
@@ -1869,7 +1869,7 @@ declare global {
|
|
1869
1869
|
}
|
1870
1870
|
/**
|
1871
1871
|
* A dictionary mapping all top-level prototypes by name to a list of their associated subtypes. This list is organized as a lookup table, meaning it maps the sub-prototype names to `0`. As an example, `defines.prototypes['entity']` looks like this: `{furnace=0, inserter=0, container=0, ...}`.
|
1872
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1872
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.prototypes Online documentation}
|
1873
1873
|
*/
|
1874
1874
|
const prototypes: {
|
1875
1875
|
[Type in keyof PrototypeSubclassMap]: {
|
@@ -1983,82 +1983,82 @@ declare global {
|
|
1983
1983
|
}
|
1984
1984
|
/**
|
1985
1985
|
* The various parts of the launch sequence of the rocket silo.
|
1986
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1986
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status Online documentation}
|
1987
1987
|
*/
|
1988
1988
|
enum rocket_silo_status {
|
1989
1989
|
/**
|
1990
1990
|
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
1991
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1991
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
|
1992
1992
|
*/
|
1993
1993
|
building_rocket,
|
1994
1994
|
/**
|
1995
1995
|
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
1996
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1996
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
|
1997
1997
|
*/
|
1998
1998
|
create_rocket,
|
1999
1999
|
/**
|
2000
2000
|
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
2001
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2001
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
|
2002
2002
|
*/
|
2003
2003
|
lights_blinking_open,
|
2004
2004
|
/**
|
2005
2005
|
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
2006
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2006
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
|
2007
2007
|
*/
|
2008
2008
|
doors_opening,
|
2009
2009
|
/**
|
2010
2010
|
* The next state is `rocket_rising` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
2011
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2011
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
|
2012
2012
|
*/
|
2013
2013
|
doors_opened,
|
2014
2014
|
/**
|
2015
2015
|
* The next state is `arms_advance` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
2016
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2016
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
|
2017
2017
|
*/
|
2018
2018
|
rocket_rising,
|
2019
2019
|
/**
|
2020
2020
|
* The next state is `rocket_ready` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
2021
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2021
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
|
2022
2022
|
*/
|
2023
2023
|
arms_advance,
|
2024
2024
|
/**
|
2025
2025
|
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
2026
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2026
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
|
2027
2027
|
*/
|
2028
2028
|
rocket_ready,
|
2029
2029
|
/**
|
2030
2030
|
* The next state is `launch_started`.
|
2031
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2031
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
|
2032
2032
|
*/
|
2033
2033
|
launch_starting,
|
2034
2034
|
/**
|
2035
2035
|
* The next state is `arms_retract` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
2036
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2036
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
|
2037
2037
|
*/
|
2038
2038
|
engine_starting,
|
2039
2039
|
/**
|
2040
2040
|
* The next state is `rocket_flying` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
2041
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2041
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
|
2042
2042
|
*/
|
2043
2043
|
arms_retract,
|
2044
2044
|
/**
|
2045
2045
|
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
2046
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2046
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
|
2047
2047
|
*/
|
2048
2048
|
rocket_flying,
|
2049
2049
|
/**
|
2050
2050
|
* The next state is `doors_closing`.
|
2051
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2051
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
|
2052
2052
|
*/
|
2053
2053
|
lights_blinking_close,
|
2054
2054
|
/**
|
2055
2055
|
* The next state is `building_rocket`.
|
2056
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2056
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
|
2057
2057
|
*/
|
2058
2058
|
doors_closing,
|
2059
2059
|
/**
|
2060
2060
|
* The next state is `engine_starting` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
2061
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2061
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.rocket_silo_status.launch_started Online documentation}
|
2062
2062
|
*/
|
2063
2063
|
launch_started,
|
2064
2064
|
}
|
@@ -2069,84 +2069,84 @@ declare global {
|
|
2069
2069
|
}
|
2070
2070
|
/**
|
2071
2071
|
* State of an ordinary rail signal.
|
2072
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2072
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.signal_state Online documentation}
|
2073
2073
|
*/
|
2074
2074
|
enum signal_state {
|
2075
2075
|
/**
|
2076
2076
|
* Green.
|
2077
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2077
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.signal_state.open Online documentation}
|
2078
2078
|
*/
|
2079
2079
|
open,
|
2080
2080
|
/**
|
2081
2081
|
* Red.
|
2082
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2082
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.signal_state.closed Online documentation}
|
2083
2083
|
*/
|
2084
2084
|
closed,
|
2085
2085
|
/**
|
2086
2086
|
* Orange.
|
2087
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2087
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.signal_state.reserved Online documentation}
|
2088
2088
|
*/
|
2089
2089
|
reserved,
|
2090
2090
|
/**
|
2091
2091
|
* Red - From circuit network.
|
2092
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2092
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
2093
2093
|
*/
|
2094
2094
|
reserved_by_circuit_network,
|
2095
2095
|
}
|
2096
2096
|
enum train_state {
|
2097
2097
|
/**
|
2098
2098
|
* Normal state -- following the path.
|
2099
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2099
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.on_the_path Online documentation}
|
2100
2100
|
*/
|
2101
2101
|
on_the_path,
|
2102
2102
|
/**
|
2103
2103
|
* Had path and lost it -- must stop.
|
2104
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2104
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.path_lost Online documentation}
|
2105
2105
|
*/
|
2106
2106
|
path_lost,
|
2107
2107
|
/**
|
2108
2108
|
* Doesn't have anywhere to go.
|
2109
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2109
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.no_schedule Online documentation}
|
2110
2110
|
*/
|
2111
2111
|
no_schedule,
|
2112
2112
|
/**
|
2113
2113
|
* Has no path and is stopped.
|
2114
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2114
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.no_path Online documentation}
|
2115
2115
|
*/
|
2116
2116
|
no_path,
|
2117
2117
|
/**
|
2118
2118
|
* Braking before a rail signal.
|
2119
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2119
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.arrive_signal Online documentation}
|
2120
2120
|
*/
|
2121
2121
|
arrive_signal,
|
2122
2122
|
/**
|
2123
2123
|
* Waiting at a signal.
|
2124
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2124
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.wait_signal Online documentation}
|
2125
2125
|
*/
|
2126
2126
|
wait_signal,
|
2127
2127
|
/**
|
2128
2128
|
* Braking before a station.
|
2129
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2129
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.arrive_station Online documentation}
|
2130
2130
|
*/
|
2131
2131
|
arrive_station,
|
2132
2132
|
/**
|
2133
2133
|
* Waiting at a station.
|
2134
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2134
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.wait_station Online documentation}
|
2135
2135
|
*/
|
2136
2136
|
wait_station,
|
2137
2137
|
/**
|
2138
2138
|
* Switched to manual control and has to stop.
|
2139
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2139
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.manual_control_stop Online documentation}
|
2140
2140
|
*/
|
2141
2141
|
manual_control_stop,
|
2142
2142
|
/**
|
2143
2143
|
* Can move if user explicitly sits in and rides the train.
|
2144
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2144
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.manual_control Online documentation}
|
2145
2145
|
*/
|
2146
2146
|
manual_control,
|
2147
2147
|
/**
|
2148
2148
|
* Same as no_path but all candidate train stops are full
|
2149
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2149
|
+
* @see {@link https://lua-api.factorio.com/1.1.109/defines.html#defines.train_state.destination_full Online documentation}
|
2150
2150
|
*/
|
2151
2151
|
destination_full,
|
2152
2152
|
}
|