typed-factorio 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/common/types.d.ts +9 -7
- package/package.json +1 -1
- package/prototype/generated/prototypes.d.ts +1852 -1750
- package/prototype/generated/types.d.ts +1627 -1431
- package/runtime/generated/builtin-types.d.ts +12 -12
- package/runtime/generated/classes.d.ts +3673 -3520
- package/runtime/generated/concepts.d.ts +674 -561
- package/runtime/generated/defines.d.ts +125 -120
- package/runtime/generated/events.d.ts +187 -187
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +6 -6
@@ -229,7 +229,7 @@ declare global {
|
|
229
229
|
}
|
230
230
|
/**
|
231
231
|
* AI command exit status. See {@link LuaEntity#set_command LuaEntity::set_command}
|
232
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
232
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.behavior_result Online documentation}
|
233
233
|
*/
|
234
234
|
enum behavior_result {
|
235
235
|
in_progress,
|
@@ -247,7 +247,7 @@ declare global {
|
|
247
247
|
}
|
248
248
|
/**
|
249
249
|
* State of a chain signal.
|
250
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
250
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.chain_signal_state Online documentation}
|
251
251
|
*/
|
252
252
|
enum chain_signal_state {
|
253
253
|
none,
|
@@ -294,73 +294,73 @@ declare global {
|
|
294
294
|
}
|
295
295
|
/**
|
296
296
|
* Command given to units describing what they should do.
|
297
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
297
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.command Online documentation}
|
298
298
|
*/
|
299
299
|
enum command {
|
300
300
|
/**
|
301
301
|
* Attack another entity.
|
302
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
302
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.command.attack Online documentation}
|
303
303
|
*/
|
304
304
|
attack = 0,
|
305
305
|
/**
|
306
306
|
* Go to a specific position.
|
307
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
307
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.command.go_to_location Online documentation}
|
308
308
|
*/
|
309
309
|
go_to_location = 1,
|
310
310
|
/**
|
311
311
|
* Chain commands together, see {@link defines.compound_command}.
|
312
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
312
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.command.compound Online documentation}
|
313
313
|
*/
|
314
314
|
compound = 2,
|
315
315
|
/**
|
316
316
|
* Do what your group wants you to do.
|
317
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
317
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.command.group Online documentation}
|
318
318
|
*/
|
319
319
|
group = 3,
|
320
320
|
/**
|
321
321
|
* Go to a place and attack what you see.
|
322
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
322
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.command.attack_area Online documentation}
|
323
323
|
*/
|
324
324
|
attack_area = 4,
|
325
325
|
/**
|
326
326
|
* Chill.
|
327
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
327
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.command.wander Online documentation}
|
328
328
|
*/
|
329
329
|
wander = 5,
|
330
330
|
/**
|
331
331
|
* Flee from another entity.
|
332
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
332
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.command.flee Online documentation}
|
333
333
|
*/
|
334
334
|
flee = 6,
|
335
335
|
/**
|
336
336
|
* Stop moving and stay where you are.
|
337
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
337
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.command.stop Online documentation}
|
338
338
|
*/
|
339
339
|
stop = 7,
|
340
340
|
/**
|
341
341
|
* Go to a position and build a base there.
|
342
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
342
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.command.build_base Online documentation}
|
343
343
|
*/
|
344
344
|
build_base = 8,
|
345
345
|
}
|
346
346
|
/**
|
347
347
|
* How commands are joined together in a compound command (see {@link defines.command.compound}).
|
348
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
348
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.compound_command Online documentation}
|
349
349
|
*/
|
350
350
|
enum compound_command {
|
351
351
|
/**
|
352
352
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
353
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
353
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.compound_command.logical_and Online documentation}
|
354
354
|
*/
|
355
355
|
logical_and,
|
356
356
|
/**
|
357
357
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
358
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
358
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.compound_command.logical_or Online documentation}
|
359
359
|
*/
|
360
360
|
logical_or,
|
361
361
|
/**
|
362
362
|
* Execute all commands in sequence and fail or succeed depending on the return status of the last command.
|
363
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
363
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.compound_command.return_last Online documentation}
|
364
364
|
*/
|
365
365
|
return_last,
|
366
366
|
}
|
@@ -404,92 +404,92 @@ declare global {
|
|
404
404
|
enum type {
|
405
405
|
/**
|
406
406
|
* {@link LuaContainerControlBehavior}
|
407
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
407
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.container Online documentation}
|
408
408
|
*/
|
409
409
|
container,
|
410
410
|
/**
|
411
411
|
* {@link LuaGenericOnOffControlBehavior}
|
412
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
412
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
|
413
413
|
*/
|
414
414
|
generic_on_off,
|
415
415
|
/**
|
416
416
|
* {@link LuaInserterControlBehavior}
|
417
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
417
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.inserter Online documentation}
|
418
418
|
*/
|
419
419
|
inserter,
|
420
420
|
/**
|
421
421
|
* {@link LuaLampControlBehavior}
|
422
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
422
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.lamp Online documentation}
|
423
423
|
*/
|
424
424
|
lamp,
|
425
425
|
/**
|
426
426
|
* {@link LuaLogisticContainerControlBehavior}
|
427
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
427
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.logistic_container Online documentation}
|
428
428
|
*/
|
429
429
|
logistic_container,
|
430
430
|
/**
|
431
431
|
* {@link LuaRoboportControlBehavior}
|
432
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
432
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.roboport Online documentation}
|
433
433
|
*/
|
434
434
|
roboport,
|
435
435
|
/**
|
436
436
|
* {@link LuaStorageTankControlBehavior}
|
437
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
437
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.storage_tank Online documentation}
|
438
438
|
*/
|
439
439
|
storage_tank,
|
440
440
|
/**
|
441
441
|
* {@link LuaTrainStopControlBehavior}
|
442
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
442
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.train_stop Online documentation}
|
443
443
|
*/
|
444
444
|
train_stop,
|
445
445
|
/**
|
446
446
|
* {@link LuaDeciderCombinatorControlBehavior}
|
447
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
447
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
|
448
448
|
*/
|
449
449
|
decider_combinator,
|
450
450
|
/**
|
451
451
|
* {@link LuaArithmeticCombinatorControlBehavior}
|
452
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
452
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
|
453
453
|
*/
|
454
454
|
arithmetic_combinator,
|
455
455
|
/**
|
456
456
|
* {@link LuaConstantCombinatorControlBehavior}
|
457
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
457
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
|
458
458
|
*/
|
459
459
|
constant_combinator,
|
460
460
|
/**
|
461
461
|
* {@link LuaTransportBeltControlBehavior}
|
462
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
462
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.transport_belt Online documentation}
|
463
463
|
*/
|
464
464
|
transport_belt,
|
465
465
|
/**
|
466
466
|
* {@link LuaAccumulatorControlBehavior}
|
467
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
467
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.accumulator Online documentation}
|
468
468
|
*/
|
469
469
|
accumulator,
|
470
470
|
/**
|
471
471
|
* {@link LuaRailSignalControlBehavior}
|
472
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
472
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.rail_signal Online documentation}
|
473
473
|
*/
|
474
474
|
rail_signal,
|
475
475
|
/**
|
476
476
|
* {@link LuaRailChainSignalControlBehavior}
|
477
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
477
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
|
478
478
|
*/
|
479
479
|
rail_chain_signal,
|
480
480
|
/**
|
481
481
|
* {@link LuaWallControlBehavior}
|
482
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
482
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.wall Online documentation}
|
483
483
|
*/
|
484
484
|
wall,
|
485
485
|
/**
|
486
486
|
* {@link LuaMiningDrillControlBehavior}
|
487
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
487
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.mining_drill Online documentation}
|
488
488
|
*/
|
489
489
|
mining_drill,
|
490
490
|
/**
|
491
491
|
* {@link LuaProgrammableSpeakerControlBehavior}
|
492
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
492
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
|
493
493
|
*/
|
494
494
|
programmable_speaker,
|
495
495
|
}
|
@@ -497,32 +497,32 @@ declare global {
|
|
497
497
|
enum controllers {
|
498
498
|
/**
|
499
499
|
* Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
|
500
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
500
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.controllers.ghost Online documentation}
|
501
501
|
*/
|
502
502
|
ghost,
|
503
503
|
/**
|
504
504
|
* The controller controls a character. This is the default controller in freeplay.
|
505
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
505
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.controllers.character Online documentation}
|
506
506
|
*/
|
507
507
|
character,
|
508
508
|
/**
|
509
509
|
* The controller isn't tied to a character. This is the default controller in sandbox.
|
510
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
510
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.controllers.god Online documentation}
|
511
511
|
*/
|
512
512
|
god,
|
513
513
|
/**
|
514
514
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
515
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
515
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.controllers.editor Online documentation}
|
516
516
|
*/
|
517
517
|
editor,
|
518
518
|
/**
|
519
519
|
* The player can't interact with the world, and the camera pans around in a predefined manner.
|
520
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
520
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.controllers.cutscene Online documentation}
|
521
521
|
*/
|
522
522
|
cutscene,
|
523
523
|
/**
|
524
524
|
* Can't change anything in the world but can view anything.
|
525
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
525
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.controllers.spectator Online documentation}
|
526
526
|
*/
|
527
527
|
spectator,
|
528
528
|
}
|
@@ -583,22 +583,22 @@ declare global {
|
|
583
583
|
enum distraction {
|
584
584
|
/**
|
585
585
|
* Perform command even if someone attacks the unit.
|
586
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
586
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.distraction.none Online documentation}
|
587
587
|
*/
|
588
588
|
none,
|
589
589
|
/**
|
590
590
|
* Attack closer enemy entities with force.
|
591
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
591
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.distraction.by_enemy Online documentation}
|
592
592
|
*/
|
593
593
|
by_enemy,
|
594
594
|
/**
|
595
595
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
596
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
596
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.distraction.by_anything Online documentation}
|
597
597
|
*/
|
598
598
|
by_anything,
|
599
599
|
/**
|
600
600
|
* Attack when attacked.
|
601
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
601
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.distraction.by_damage Online documentation}
|
602
602
|
*/
|
603
603
|
by_damage,
|
604
604
|
}
|
@@ -615,173 +615,178 @@ declare global {
|
|
615
615
|
marked_for_deconstruction,
|
616
616
|
/**
|
617
617
|
* Used by generators and solar panels.
|
618
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
618
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
|
619
619
|
*/
|
620
620
|
not_plugged_in_electric_network,
|
621
621
|
/**
|
622
622
|
* Used by power switches.
|
623
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
623
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.networks_connected Online documentation}
|
624
624
|
*/
|
625
625
|
networks_connected,
|
626
626
|
/**
|
627
627
|
* Used by power switches.
|
628
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
628
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.networks_disconnected Online documentation}
|
629
629
|
*/
|
630
630
|
networks_disconnected,
|
631
631
|
/**
|
632
632
|
* Used by accumulators.
|
633
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
633
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.charging Online documentation}
|
634
634
|
*/
|
635
635
|
charging,
|
636
636
|
/**
|
637
637
|
* Used by accumulators.
|
638
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
638
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.discharging Online documentation}
|
639
639
|
*/
|
640
640
|
discharging,
|
641
641
|
/**
|
642
642
|
* Used by accumulators.
|
643
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
643
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.fully_charged Online documentation}
|
644
644
|
*/
|
645
645
|
fully_charged,
|
646
646
|
/**
|
647
647
|
* Used by logistic containers.
|
648
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
648
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
|
649
649
|
*/
|
650
650
|
out_of_logistic_network,
|
651
651
|
/**
|
652
652
|
* Used by assembling machines.
|
653
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
653
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.no_recipe Online documentation}
|
654
654
|
*/
|
655
655
|
no_recipe,
|
656
656
|
/**
|
657
657
|
* Used by furnaces.
|
658
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
658
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.no_ingredients Online documentation}
|
659
659
|
*/
|
660
660
|
no_ingredients,
|
661
661
|
/**
|
662
662
|
* Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
|
663
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
663
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.no_input_fluid Online documentation}
|
664
664
|
*/
|
665
665
|
no_input_fluid,
|
666
666
|
/**
|
667
667
|
* Used by labs.
|
668
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
668
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.no_research_in_progress Online documentation}
|
669
669
|
*/
|
670
670
|
no_research_in_progress,
|
671
671
|
/**
|
672
672
|
* Used by mining drills.
|
673
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
673
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.no_minable_resources Online documentation}
|
674
674
|
*/
|
675
675
|
no_minable_resources,
|
676
676
|
/**
|
677
677
|
* Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
|
678
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
678
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.low_input_fluid Online documentation}
|
679
679
|
*/
|
680
680
|
low_input_fluid,
|
681
681
|
/**
|
682
682
|
* Used by crafting machines.
|
683
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
683
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
|
684
684
|
*/
|
685
685
|
fluid_ingredient_shortage,
|
686
686
|
/**
|
687
687
|
* Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
|
688
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
688
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.full_output Online documentation}
|
689
689
|
*/
|
690
690
|
full_output,
|
691
|
+
/**
|
692
|
+
* Used by burner energy sources.
|
693
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
|
694
|
+
*/
|
695
|
+
full_burnt_result_output,
|
691
696
|
/**
|
692
697
|
* Used by crafting machines.
|
693
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
698
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
|
694
699
|
*/
|
695
700
|
item_ingredient_shortage,
|
696
701
|
/**
|
697
702
|
* Used by mining drills when the mining fluid is missing.
|
698
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
703
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.missing_required_fluid Online documentation}
|
699
704
|
*/
|
700
705
|
missing_required_fluid,
|
701
706
|
/**
|
702
707
|
* Used by labs.
|
703
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
708
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.missing_science_packs Online documentation}
|
704
709
|
*/
|
705
710
|
missing_science_packs,
|
706
711
|
/**
|
707
712
|
* Used by inserters.
|
708
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
713
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
|
709
714
|
*/
|
710
715
|
waiting_for_source_items,
|
711
716
|
/**
|
712
717
|
* Used by inserters and mining drills.
|
713
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
718
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
|
714
719
|
*/
|
715
720
|
waiting_for_space_in_destination,
|
716
721
|
/**
|
717
722
|
* Used by the rocket silo.
|
718
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
723
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
|
719
724
|
*/
|
720
725
|
preparing_rocket_for_launch,
|
721
726
|
/**
|
722
727
|
* Used by the rocket silo.
|
723
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
728
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
|
724
729
|
*/
|
725
730
|
waiting_to_launch_rocket,
|
726
731
|
/**
|
727
732
|
* Used by the rocket silo.
|
728
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
733
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.launching_rocket Online documentation}
|
729
734
|
*/
|
730
735
|
launching_rocket,
|
731
736
|
/**
|
732
737
|
* Used by beacons.
|
733
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
738
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
|
734
739
|
*/
|
735
740
|
no_modules_to_transmit,
|
736
741
|
/**
|
737
742
|
* Used by roboports.
|
738
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
743
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
|
739
744
|
*/
|
740
745
|
recharging_after_power_outage,
|
741
746
|
/**
|
742
747
|
* Used by inserters targeting entity ghosts.
|
743
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
748
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
|
744
749
|
*/
|
745
750
|
waiting_for_target_to_be_built,
|
746
751
|
/**
|
747
752
|
* Used by inserters targeting rails.
|
748
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
753
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.waiting_for_train Online documentation}
|
749
754
|
*/
|
750
755
|
waiting_for_train,
|
751
756
|
/**
|
752
757
|
* Used by ammo turrets.
|
753
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
758
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.no_ammo Online documentation}
|
754
759
|
*/
|
755
760
|
no_ammo,
|
756
761
|
/**
|
757
762
|
* Used by heat energy sources.
|
758
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
763
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.low_temperature Online documentation}
|
759
764
|
*/
|
760
765
|
low_temperature,
|
761
766
|
/**
|
762
767
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
763
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
768
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.disabled Online documentation}
|
764
769
|
*/
|
765
770
|
disabled,
|
766
771
|
/**
|
767
772
|
* Used by lamps.
|
768
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
773
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
|
769
774
|
*/
|
770
775
|
turned_off_during_daytime,
|
771
776
|
/**
|
772
777
|
* Used by rail signals.
|
773
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
778
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
|
774
779
|
*/
|
775
780
|
not_connected_to_rail,
|
776
781
|
/**
|
777
782
|
* Used by rail signals.
|
778
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
783
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.entity_status.cant_divide_segments Online documentation}
|
779
784
|
*/
|
780
785
|
cant_divide_segments,
|
781
786
|
}
|
782
787
|
/**
|
783
|
-
* See the {@linkplain https://lua-api.factorio.com/1.1.
|
784
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
788
|
+
* See the {@linkplain https://lua-api.factorio.com/1.1.103/events.html events page} for more info on what events contain and when they get raised.
|
789
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.events Online documentation}
|
785
790
|
*/
|
786
791
|
namespace events {
|
787
792
|
/**
|
@@ -1572,8 +1577,8 @@ declare global {
|
|
1572
1577
|
const on_player_input_method_changed: EventId<OnPlayerInputMethodChangedEvent>
|
1573
1578
|
}
|
1574
1579
|
/**
|
1575
|
-
* See the {@linkplain https://lua-api.factorio.com/1.1.
|
1576
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1580
|
+
* See the {@linkplain https://lua-api.factorio.com/1.1.103/events.html events page} for more info on what events contain and when they get raised.
|
1581
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.events Online documentation}
|
1577
1582
|
*/
|
1578
1583
|
type events = (typeof events)[keyof typeof events]
|
1579
1584
|
enum flow_precision_index {
|
@@ -1589,17 +1594,17 @@ declare global {
|
|
1589
1594
|
enum game_controller_interaction {
|
1590
1595
|
/**
|
1591
1596
|
* Game controller will always hover this element regardless of type or state.
|
1592
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1597
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.game_controller_interaction.always Online documentation}
|
1593
1598
|
*/
|
1594
1599
|
always,
|
1595
1600
|
/**
|
1596
1601
|
* Hover according to the element type and implementation.
|
1597
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1602
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.game_controller_interaction.never Online documentation}
|
1598
1603
|
*/
|
1599
1604
|
never,
|
1600
1605
|
/**
|
1601
1606
|
* Never hover this element with a game controller.
|
1602
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1607
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.game_controller_interaction.normal Online documentation}
|
1603
1608
|
*/
|
1604
1609
|
normal,
|
1605
1610
|
}
|
@@ -1915,17 +1920,17 @@ declare global {
|
|
1915
1920
|
enum print_skip {
|
1916
1921
|
/**
|
1917
1922
|
* Print will not be skipped.
|
1918
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1923
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.print_skip.never Online documentation}
|
1919
1924
|
*/
|
1920
1925
|
never,
|
1921
1926
|
/**
|
1922
1927
|
* Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
|
1923
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1928
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.print_skip.if_redundant Online documentation}
|
1924
1929
|
*/
|
1925
1930
|
if_redundant,
|
1926
1931
|
/**
|
1927
1932
|
* Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
|
1928
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1933
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.print_skip.if_visible Online documentation}
|
1929
1934
|
*/
|
1930
1935
|
if_visible,
|
1931
1936
|
}
|
@@ -1936,7 +1941,7 @@ declare global {
|
|
1936
1941
|
}
|
1937
1942
|
/**
|
1938
1943
|
* 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, ...}`.
|
1939
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1944
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.prototypes Online documentation}
|
1940
1945
|
*/
|
1941
1946
|
const prototypes: {
|
1942
1947
|
[type in keyof PrototypeMap]: {
|
@@ -2050,82 +2055,82 @@ declare global {
|
|
2050
2055
|
}
|
2051
2056
|
/**
|
2052
2057
|
* The various parts of the launch sequence of the rocket silo.
|
2053
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2058
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.rocket_silo_status Online documentation}
|
2054
2059
|
*/
|
2055
2060
|
enum rocket_silo_status {
|
2056
2061
|
/**
|
2057
2062
|
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
2058
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2063
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
|
2059
2064
|
*/
|
2060
2065
|
building_rocket,
|
2061
2066
|
/**
|
2062
2067
|
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
2063
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2068
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
|
2064
2069
|
*/
|
2065
2070
|
create_rocket,
|
2066
2071
|
/**
|
2067
2072
|
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
2068
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2073
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
|
2069
2074
|
*/
|
2070
2075
|
lights_blinking_open,
|
2071
2076
|
/**
|
2072
2077
|
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
2073
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2078
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
|
2074
2079
|
*/
|
2075
2080
|
doors_opening,
|
2076
2081
|
/**
|
2077
2082
|
* 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.
|
2078
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2083
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
|
2079
2084
|
*/
|
2080
2085
|
doors_opened,
|
2081
2086
|
/**
|
2082
2087
|
* 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.
|
2083
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2088
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
|
2084
2089
|
*/
|
2085
2090
|
rocket_rising,
|
2086
2091
|
/**
|
2087
2092
|
* 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.
|
2088
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2093
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
|
2089
2094
|
*/
|
2090
2095
|
arms_advance,
|
2091
2096
|
/**
|
2092
2097
|
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
2093
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2098
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
|
2094
2099
|
*/
|
2095
2100
|
rocket_ready,
|
2096
2101
|
/**
|
2097
2102
|
* The next state is `launch_started`.
|
2098
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2103
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
|
2099
2104
|
*/
|
2100
2105
|
launch_starting,
|
2101
2106
|
/**
|
2102
2107
|
* 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.
|
2103
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2108
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
|
2104
2109
|
*/
|
2105
2110
|
engine_starting,
|
2106
2111
|
/**
|
2107
2112
|
* 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.
|
2108
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2113
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
|
2109
2114
|
*/
|
2110
2115
|
arms_retract,
|
2111
2116
|
/**
|
2112
2117
|
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
2113
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2118
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
|
2114
2119
|
*/
|
2115
2120
|
rocket_flying,
|
2116
2121
|
/**
|
2117
2122
|
* The next state is `doors_closing`.
|
2118
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2123
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
|
2119
2124
|
*/
|
2120
2125
|
lights_blinking_close,
|
2121
2126
|
/**
|
2122
2127
|
* The next state is `building_rocket`.
|
2123
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2128
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
|
2124
2129
|
*/
|
2125
2130
|
doors_closing,
|
2126
2131
|
/**
|
2127
2132
|
* 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.
|
2128
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2133
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.rocket_silo_status.launch_started Online documentation}
|
2129
2134
|
*/
|
2130
2135
|
launch_started,
|
2131
2136
|
}
|
@@ -2136,84 +2141,84 @@ declare global {
|
|
2136
2141
|
}
|
2137
2142
|
/**
|
2138
2143
|
* State of an ordinary rail signal.
|
2139
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2144
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.signal_state Online documentation}
|
2140
2145
|
*/
|
2141
2146
|
enum signal_state {
|
2142
2147
|
/**
|
2143
2148
|
* Green.
|
2144
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2149
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.signal_state.open Online documentation}
|
2145
2150
|
*/
|
2146
2151
|
open,
|
2147
2152
|
/**
|
2148
2153
|
* Red.
|
2149
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2154
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.signal_state.closed Online documentation}
|
2150
2155
|
*/
|
2151
2156
|
closed,
|
2152
2157
|
/**
|
2153
2158
|
* Orange.
|
2154
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2159
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.signal_state.reserved Online documentation}
|
2155
2160
|
*/
|
2156
2161
|
reserved,
|
2157
2162
|
/**
|
2158
2163
|
* Red - From circuit network.
|
2159
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2164
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
2160
2165
|
*/
|
2161
2166
|
reserved_by_circuit_network,
|
2162
2167
|
}
|
2163
2168
|
enum train_state {
|
2164
2169
|
/**
|
2165
2170
|
* Normal state -- following the path.
|
2166
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2171
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.train_state.on_the_path Online documentation}
|
2167
2172
|
*/
|
2168
2173
|
on_the_path,
|
2169
2174
|
/**
|
2170
2175
|
* Had path and lost it -- must stop.
|
2171
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2176
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.train_state.path_lost Online documentation}
|
2172
2177
|
*/
|
2173
2178
|
path_lost,
|
2174
2179
|
/**
|
2175
2180
|
* Doesn't have anywhere to go.
|
2176
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2181
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.train_state.no_schedule Online documentation}
|
2177
2182
|
*/
|
2178
2183
|
no_schedule,
|
2179
2184
|
/**
|
2180
2185
|
* Has no path and is stopped.
|
2181
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2186
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.train_state.no_path Online documentation}
|
2182
2187
|
*/
|
2183
2188
|
no_path,
|
2184
2189
|
/**
|
2185
2190
|
* Braking before a rail signal.
|
2186
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2191
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.train_state.arrive_signal Online documentation}
|
2187
2192
|
*/
|
2188
2193
|
arrive_signal,
|
2189
2194
|
/**
|
2190
2195
|
* Waiting at a signal.
|
2191
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2196
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.train_state.wait_signal Online documentation}
|
2192
2197
|
*/
|
2193
2198
|
wait_signal,
|
2194
2199
|
/**
|
2195
2200
|
* Braking before a station.
|
2196
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2201
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.train_state.arrive_station Online documentation}
|
2197
2202
|
*/
|
2198
2203
|
arrive_station,
|
2199
2204
|
/**
|
2200
2205
|
* Waiting at a station.
|
2201
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2206
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.train_state.wait_station Online documentation}
|
2202
2207
|
*/
|
2203
2208
|
wait_station,
|
2204
2209
|
/**
|
2205
2210
|
* Switched to manual control and has to stop.
|
2206
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2211
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.train_state.manual_control_stop Online documentation}
|
2207
2212
|
*/
|
2208
2213
|
manual_control_stop,
|
2209
2214
|
/**
|
2210
2215
|
* Can move if user explicitly sits in and rides the train.
|
2211
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2216
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.train_state.manual_control Online documentation}
|
2212
2217
|
*/
|
2213
2218
|
manual_control,
|
2214
2219
|
/**
|
2215
2220
|
* Same as no_path but all candidate train stops are full
|
2216
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2221
|
+
* @see {@link https://lua-api.factorio.com/1.1.103/defines.html#defines.train_state.destination_full Online documentation}
|
2217
2222
|
*/
|
2218
2223
|
destination_full,
|
2219
2224
|
}
|