typed-factorio 2.0.1 → 2.2.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/lualib/util.d.ts +4 -4
- package/package.json +3 -3
- package/prototype/generated/prototypes.d.ts +1809 -1710
- package/prototype/generated/types.d.ts +1426 -1420
- package/runtime/generated/builtin-types.d.ts +16 -16
- package/runtime/generated/classes.d.ts +3291 -3305
- package/runtime/generated/concepts.d.ts +1817 -1817
- package/runtime/generated/defines.d.ts +165 -101
- package/runtime/generated/events.d.ts +190 -186
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +6 -6
- package/runtime/pairs.d.ts +1 -1
@@ -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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/defines.html#defines.distraction.by_damage Online documentation}
|
602
602
|
*/
|
603
603
|
by_damage,
|
604
604
|
}
|
@@ -615,173 +615,173 @@ 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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/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.92/defines.html#defines.entity_status.full_output Online documentation}
|
689
689
|
*/
|
690
690
|
full_output,
|
691
691
|
/**
|
692
692
|
* Used by crafting machines.
|
693
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
693
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
|
694
694
|
*/
|
695
695
|
item_ingredient_shortage,
|
696
696
|
/**
|
697
697
|
* Used by mining drills when the mining fluid is missing.
|
698
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
698
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.missing_required_fluid Online documentation}
|
699
699
|
*/
|
700
700
|
missing_required_fluid,
|
701
701
|
/**
|
702
702
|
* Used by labs.
|
703
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
703
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.missing_science_packs Online documentation}
|
704
704
|
*/
|
705
705
|
missing_science_packs,
|
706
706
|
/**
|
707
707
|
* Used by inserters.
|
708
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
708
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
|
709
709
|
*/
|
710
710
|
waiting_for_source_items,
|
711
711
|
/**
|
712
712
|
* Used by inserters and mining drills.
|
713
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
713
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
|
714
714
|
*/
|
715
715
|
waiting_for_space_in_destination,
|
716
716
|
/**
|
717
717
|
* Used by the rocket silo.
|
718
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
718
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
|
719
719
|
*/
|
720
720
|
preparing_rocket_for_launch,
|
721
721
|
/**
|
722
722
|
* Used by the rocket silo.
|
723
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
723
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
|
724
724
|
*/
|
725
725
|
waiting_to_launch_rocket,
|
726
726
|
/**
|
727
727
|
* Used by the rocket silo.
|
728
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
728
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.launching_rocket Online documentation}
|
729
729
|
*/
|
730
730
|
launching_rocket,
|
731
731
|
/**
|
732
732
|
* Used by beacons.
|
733
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
733
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
|
734
734
|
*/
|
735
735
|
no_modules_to_transmit,
|
736
736
|
/**
|
737
737
|
* Used by roboports.
|
738
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
738
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
|
739
739
|
*/
|
740
740
|
recharging_after_power_outage,
|
741
741
|
/**
|
742
742
|
* Used by inserters targeting entity ghosts.
|
743
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
743
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
|
744
744
|
*/
|
745
745
|
waiting_for_target_to_be_built,
|
746
746
|
/**
|
747
747
|
* Used by inserters targeting rails.
|
748
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
748
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.waiting_for_train Online documentation}
|
749
749
|
*/
|
750
750
|
waiting_for_train,
|
751
751
|
/**
|
752
752
|
* Used by ammo turrets.
|
753
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
753
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.no_ammo Online documentation}
|
754
754
|
*/
|
755
755
|
no_ammo,
|
756
756
|
/**
|
757
757
|
* Used by heat energy sources.
|
758
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
758
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.low_temperature Online documentation}
|
759
759
|
*/
|
760
760
|
low_temperature,
|
761
761
|
/**
|
762
762
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
763
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
763
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.disabled Online documentation}
|
764
764
|
*/
|
765
765
|
disabled,
|
766
766
|
/**
|
767
767
|
* Used by lamps.
|
768
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
768
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
|
769
769
|
*/
|
770
770
|
turned_off_during_daytime,
|
771
771
|
/**
|
772
772
|
* Used by rail signals.
|
773
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
773
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
|
774
774
|
*/
|
775
775
|
not_connected_to_rail,
|
776
776
|
/**
|
777
777
|
* Used by rail signals.
|
778
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
778
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.entity_status.cant_divide_segments Online documentation}
|
779
779
|
*/
|
780
780
|
cant_divide_segments,
|
781
781
|
}
|
782
782
|
/**
|
783
|
-
* See the {@linkplain https://lua-api.factorio.com/1.1.
|
784
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
783
|
+
* See the {@linkplain https://lua-api.factorio.com/1.1.92/events.html events page} for more info on what events contain and when they get raised.
|
784
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.events Online documentation}
|
785
785
|
*/
|
786
786
|
namespace events {
|
787
787
|
/**
|
@@ -1572,8 +1572,8 @@ declare global {
|
|
1572
1572
|
const on_player_input_method_changed: EventId<OnPlayerInputMethodChangedEvent>
|
1573
1573
|
}
|
1574
1574
|
/**
|
1575
|
-
* See the {@linkplain https://lua-api.factorio.com/1.1.
|
1576
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1575
|
+
* See the {@linkplain https://lua-api.factorio.com/1.1.92/events.html events page} for more info on what events contain and when they get raised.
|
1576
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.events Online documentation}
|
1577
1577
|
*/
|
1578
1578
|
type events = (typeof events)[keyof typeof events]
|
1579
1579
|
enum flow_precision_index {
|
@@ -1589,17 +1589,17 @@ declare global {
|
|
1589
1589
|
enum game_controller_interaction {
|
1590
1590
|
/**
|
1591
1591
|
* Game controller will always hover this element regardless of type or state.
|
1592
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1592
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.game_controller_interaction.always Online documentation}
|
1593
1593
|
*/
|
1594
1594
|
always,
|
1595
1595
|
/**
|
1596
1596
|
* Hover according to the element type and implementation.
|
1597
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1597
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.game_controller_interaction.never Online documentation}
|
1598
1598
|
*/
|
1599
1599
|
never,
|
1600
1600
|
/**
|
1601
1601
|
* Never hover this element with a game controller.
|
1602
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1602
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.game_controller_interaction.normal Online documentation}
|
1603
1603
|
*/
|
1604
1604
|
normal,
|
1605
1605
|
}
|
@@ -1914,7 +1914,7 @@ declare global {
|
|
1914
1914
|
}
|
1915
1915
|
/**
|
1916
1916
|
* 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, ...}`.
|
1917
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1917
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.prototypes Online documentation}
|
1918
1918
|
*/
|
1919
1919
|
const prototypes: {
|
1920
1920
|
[type in keyof PrototypeMap]: {
|
@@ -2026,21 +2026,85 @@ declare global {
|
|
2026
2026
|
right,
|
2027
2027
|
}
|
2028
2028
|
}
|
2029
|
+
/**
|
2030
|
+
* The various parts of the launch sequence of the rocket silo.
|
2031
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.rocket_silo_status Online documentation}
|
2032
|
+
*/
|
2029
2033
|
enum rocket_silo_status {
|
2034
|
+
/**
|
2035
|
+
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
2036
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
|
2037
|
+
*/
|
2030
2038
|
building_rocket,
|
2039
|
+
/**
|
2040
|
+
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
2041
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
|
2042
|
+
*/
|
2031
2043
|
create_rocket,
|
2044
|
+
/**
|
2045
|
+
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
2046
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
|
2047
|
+
*/
|
2032
2048
|
lights_blinking_open,
|
2049
|
+
/**
|
2050
|
+
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
2051
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
|
2052
|
+
*/
|
2033
2053
|
doors_opening,
|
2054
|
+
/**
|
2055
|
+
* 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.
|
2056
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
|
2057
|
+
*/
|
2034
2058
|
doors_opened,
|
2059
|
+
/**
|
2060
|
+
* 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.
|
2061
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
|
2062
|
+
*/
|
2035
2063
|
rocket_rising,
|
2064
|
+
/**
|
2065
|
+
* 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.
|
2066
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
|
2067
|
+
*/
|
2036
2068
|
arms_advance,
|
2069
|
+
/**
|
2070
|
+
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
2071
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
|
2072
|
+
*/
|
2037
2073
|
rocket_ready,
|
2074
|
+
/**
|
2075
|
+
* The next state is `launch_started`.
|
2076
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
|
2077
|
+
*/
|
2038
2078
|
launch_starting,
|
2079
|
+
/**
|
2080
|
+
* 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.
|
2081
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
|
2082
|
+
*/
|
2039
2083
|
engine_starting,
|
2084
|
+
/**
|
2085
|
+
* 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.
|
2086
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
|
2087
|
+
*/
|
2040
2088
|
arms_retract,
|
2089
|
+
/**
|
2090
|
+
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
2091
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
|
2092
|
+
*/
|
2041
2093
|
rocket_flying,
|
2094
|
+
/**
|
2095
|
+
* The next state is `doors_closing`.
|
2096
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
|
2097
|
+
*/
|
2042
2098
|
lights_blinking_close,
|
2099
|
+
/**
|
2100
|
+
* The next state is `building_rocket`.
|
2101
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
|
2102
|
+
*/
|
2043
2103
|
doors_closing,
|
2104
|
+
/**
|
2105
|
+
* 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.
|
2106
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.rocket_silo_status.launch_started Online documentation}
|
2107
|
+
*/
|
2044
2108
|
launch_started,
|
2045
2109
|
}
|
2046
2110
|
enum shooting {
|
@@ -2050,84 +2114,84 @@ declare global {
|
|
2050
2114
|
}
|
2051
2115
|
/**
|
2052
2116
|
* State of an ordinary rail signal.
|
2053
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2117
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.signal_state Online documentation}
|
2054
2118
|
*/
|
2055
2119
|
enum signal_state {
|
2056
2120
|
/**
|
2057
2121
|
* Green.
|
2058
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2122
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.signal_state.open Online documentation}
|
2059
2123
|
*/
|
2060
2124
|
open,
|
2061
2125
|
/**
|
2062
2126
|
* Red.
|
2063
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2127
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.signal_state.closed Online documentation}
|
2064
2128
|
*/
|
2065
2129
|
closed,
|
2066
2130
|
/**
|
2067
2131
|
* Orange.
|
2068
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2132
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.signal_state.reserved Online documentation}
|
2069
2133
|
*/
|
2070
2134
|
reserved,
|
2071
2135
|
/**
|
2072
2136
|
* Red - From circuit network.
|
2073
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2137
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
2074
2138
|
*/
|
2075
2139
|
reserved_by_circuit_network,
|
2076
2140
|
}
|
2077
2141
|
enum train_state {
|
2078
2142
|
/**
|
2079
2143
|
* Normal state -- following the path.
|
2080
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2144
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.train_state.on_the_path Online documentation}
|
2081
2145
|
*/
|
2082
2146
|
on_the_path,
|
2083
2147
|
/**
|
2084
2148
|
* Had path and lost it -- must stop.
|
2085
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2149
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.train_state.path_lost Online documentation}
|
2086
2150
|
*/
|
2087
2151
|
path_lost,
|
2088
2152
|
/**
|
2089
2153
|
* Doesn't have anywhere to go.
|
2090
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2154
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.train_state.no_schedule Online documentation}
|
2091
2155
|
*/
|
2092
2156
|
no_schedule,
|
2093
2157
|
/**
|
2094
2158
|
* Has no path and is stopped.
|
2095
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2159
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.train_state.no_path Online documentation}
|
2096
2160
|
*/
|
2097
2161
|
no_path,
|
2098
2162
|
/**
|
2099
2163
|
* Braking before a rail signal.
|
2100
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2164
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.train_state.arrive_signal Online documentation}
|
2101
2165
|
*/
|
2102
2166
|
arrive_signal,
|
2103
2167
|
/**
|
2104
2168
|
* Waiting at a signal.
|
2105
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2169
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.train_state.wait_signal Online documentation}
|
2106
2170
|
*/
|
2107
2171
|
wait_signal,
|
2108
2172
|
/**
|
2109
2173
|
* Braking before a station.
|
2110
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2174
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.train_state.arrive_station Online documentation}
|
2111
2175
|
*/
|
2112
2176
|
arrive_station,
|
2113
2177
|
/**
|
2114
2178
|
* Waiting at a station.
|
2115
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2179
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.train_state.wait_station Online documentation}
|
2116
2180
|
*/
|
2117
2181
|
wait_station,
|
2118
2182
|
/**
|
2119
2183
|
* Switched to manual control and has to stop.
|
2120
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2184
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.train_state.manual_control_stop Online documentation}
|
2121
2185
|
*/
|
2122
2186
|
manual_control_stop,
|
2123
2187
|
/**
|
2124
2188
|
* Can move if user explicitly sits in and rides the train.
|
2125
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2189
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.train_state.manual_control Online documentation}
|
2126
2190
|
*/
|
2127
2191
|
manual_control,
|
2128
2192
|
/**
|
2129
2193
|
* Same as no_path but all candidate train stops are full
|
2130
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2194
|
+
* @see {@link https://lua-api.factorio.com/1.1.92/defines.html#defines.train_state.destination_full Online documentation}
|
2131
2195
|
*/
|
2132
2196
|
destination_full,
|
2133
2197
|
}
|