typed-factorio 4.7.0 → 4.9.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/package.json +2 -2
- package/prototype/generated/prototypes.d.ts +2554 -2493
- package/prototype/generated/types.d.ts +2645 -2620
- package/runtime/generated/classes.d.ts +5267 -5068
- package/runtime/generated/concepts.d.ts +588 -520
- package/runtime/generated/defines.d.ts +217 -216
- package/runtime/generated/events.d.ts +237 -233
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +7 -7
|
@@ -288,7 +288,7 @@ declare global {
|
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* AI command exit status, see {@link LuaCommandable#set_command LuaCommandable::set_command}
|
|
291
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
291
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.behavior_result Online documentation}
|
|
292
292
|
*/
|
|
293
293
|
enum behavior_result {
|
|
294
294
|
in_progress,
|
|
@@ -312,33 +312,33 @@ declare global {
|
|
|
312
312
|
enum cargo_destination {
|
|
313
313
|
/**
|
|
314
314
|
* The default destination type of a cargo pod when created runtime. Setting its destination to any other type will instantly launch it.
|
|
315
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
315
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.cargo_destination.invalid Online documentation}
|
|
316
316
|
*/
|
|
317
317
|
invalid,
|
|
318
318
|
/**
|
|
319
319
|
* Cargo pods with orbit destination are destroyed when ascent is completed.
|
|
320
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
320
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.cargo_destination.orbit Online documentation}
|
|
321
321
|
*/
|
|
322
322
|
orbit,
|
|
323
323
|
/**
|
|
324
324
|
* Any cargo landing pad or space platform hub.
|
|
325
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
325
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.cargo_destination.station Online documentation}
|
|
326
326
|
*/
|
|
327
327
|
station,
|
|
328
328
|
/**
|
|
329
329
|
* Cargo pods will switch destination type from surface to station before starting descent if there is a station available and {@link CargoDestination#position CargoDestination::position} has not been specified. Note, setting the destination to "surface" when the surface is the same as the one the pod is on forces it to find and set a landing position.
|
|
330
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
330
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.cargo_destination.surface Online documentation}
|
|
331
331
|
*/
|
|
332
332
|
surface,
|
|
333
333
|
/**
|
|
334
334
|
* Only used for sending a space platform starter pack to a platform that is waiting for one. Regular deliveries to space platform hubs use {@link defines.cargo_destination.station station} destination type instead.
|
|
335
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
335
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.cargo_destination.space_platform Online documentation}
|
|
336
336
|
*/
|
|
337
337
|
space_platform,
|
|
338
338
|
}
|
|
339
339
|
/**
|
|
340
340
|
* State of a chain signal.
|
|
341
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
341
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.chain_signal_state Online documentation}
|
|
342
342
|
*/
|
|
343
343
|
enum chain_signal_state {
|
|
344
344
|
none,
|
|
@@ -356,73 +356,73 @@ declare global {
|
|
|
356
356
|
}
|
|
357
357
|
/**
|
|
358
358
|
* Command given to units describing what they should do.
|
|
359
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
359
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.command Online documentation}
|
|
360
360
|
*/
|
|
361
361
|
enum command {
|
|
362
362
|
/**
|
|
363
363
|
* Attack another entity.
|
|
364
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
364
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.command.attack Online documentation}
|
|
365
365
|
*/
|
|
366
366
|
attack = 0,
|
|
367
367
|
/**
|
|
368
368
|
* Go to a specific position.
|
|
369
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
369
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.command.go_to_location Online documentation}
|
|
370
370
|
*/
|
|
371
371
|
go_to_location = 1,
|
|
372
372
|
/**
|
|
373
373
|
* Chain commands together, see {@link defines.compound_command}.
|
|
374
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
374
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.command.compound Online documentation}
|
|
375
375
|
*/
|
|
376
376
|
compound = 2,
|
|
377
377
|
/**
|
|
378
378
|
* Do what your group wants you to do.
|
|
379
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
379
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.command.group Online documentation}
|
|
380
380
|
*/
|
|
381
381
|
group = 3,
|
|
382
382
|
/**
|
|
383
383
|
* Go to a place and attack what you see.
|
|
384
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
384
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.command.attack_area Online documentation}
|
|
385
385
|
*/
|
|
386
386
|
attack_area = 4,
|
|
387
387
|
/**
|
|
388
388
|
* Chill.
|
|
389
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
389
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.command.wander Online documentation}
|
|
390
390
|
*/
|
|
391
391
|
wander = 5,
|
|
392
392
|
/**
|
|
393
393
|
* Flee from another entity.
|
|
394
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
394
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.command.flee Online documentation}
|
|
395
395
|
*/
|
|
396
396
|
flee = 6,
|
|
397
397
|
/**
|
|
398
398
|
* Stop moving and stay where you are.
|
|
399
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
399
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.command.stop Online documentation}
|
|
400
400
|
*/
|
|
401
401
|
stop = 7,
|
|
402
402
|
/**
|
|
403
403
|
* Go to a position and build a base there.
|
|
404
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
404
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.command.build_base Online documentation}
|
|
405
405
|
*/
|
|
406
406
|
build_base = 8,
|
|
407
407
|
}
|
|
408
408
|
/**
|
|
409
409
|
* How commands are joined together in a compound command (see {@link defines.command.compound}).
|
|
410
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
410
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.compound_command Online documentation}
|
|
411
411
|
*/
|
|
412
412
|
enum compound_command {
|
|
413
413
|
/**
|
|
414
414
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
|
415
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
415
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.compound_command.logical_and Online documentation}
|
|
416
416
|
*/
|
|
417
417
|
logical_and,
|
|
418
418
|
/**
|
|
419
419
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
|
420
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
420
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.compound_command.logical_or Online documentation}
|
|
421
421
|
*/
|
|
422
422
|
logical_or,
|
|
423
423
|
/**
|
|
424
424
|
* Execute all commands in sequence and fail or succeed depending on the return status of the last command.
|
|
425
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
425
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.compound_command.return_last Online documentation}
|
|
426
426
|
*/
|
|
427
427
|
return_last,
|
|
428
428
|
}
|
|
@@ -486,197 +486,197 @@ declare global {
|
|
|
486
486
|
enum type {
|
|
487
487
|
/**
|
|
488
488
|
* {@link LuaContainerControlBehavior}
|
|
489
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
489
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.container Online documentation}
|
|
490
490
|
*/
|
|
491
491
|
container,
|
|
492
492
|
/**
|
|
493
493
|
* {@link LuaGenericOnOffControlBehavior}
|
|
494
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
494
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
|
|
495
495
|
*/
|
|
496
496
|
generic_on_off,
|
|
497
497
|
/**
|
|
498
498
|
* {@link LuaInserterControlBehavior}
|
|
499
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
499
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.inserter Online documentation}
|
|
500
500
|
*/
|
|
501
501
|
inserter,
|
|
502
502
|
/**
|
|
503
503
|
* {@link LuaLampControlBehavior}
|
|
504
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
504
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.lamp Online documentation}
|
|
505
505
|
*/
|
|
506
506
|
lamp,
|
|
507
507
|
/**
|
|
508
508
|
* {@link LuaLogisticContainerControlBehavior}
|
|
509
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
509
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.logistic_container Online documentation}
|
|
510
510
|
*/
|
|
511
511
|
logistic_container,
|
|
512
512
|
/**
|
|
513
513
|
* {@link LuaRoboportControlBehavior}
|
|
514
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
514
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.roboport Online documentation}
|
|
515
515
|
*/
|
|
516
516
|
roboport,
|
|
517
517
|
/**
|
|
518
518
|
* {@link LuaSingleFluidBoxControlBehavior}
|
|
519
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
519
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.single_fluid_box Online documentation}
|
|
520
520
|
*/
|
|
521
521
|
single_fluid_box,
|
|
522
522
|
/**
|
|
523
523
|
* {@link LuaTrainStopControlBehavior}
|
|
524
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
524
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.train_stop Online documentation}
|
|
525
525
|
*/
|
|
526
526
|
train_stop,
|
|
527
527
|
/**
|
|
528
528
|
* {@link LuaDeciderCombinatorControlBehavior}
|
|
529
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
529
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
|
|
530
530
|
*/
|
|
531
531
|
decider_combinator,
|
|
532
532
|
/**
|
|
533
533
|
* {@link LuaArithmeticCombinatorControlBehavior}
|
|
534
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
534
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
|
|
535
535
|
*/
|
|
536
536
|
arithmetic_combinator,
|
|
537
537
|
/**
|
|
538
538
|
* {@link LuaConstantCombinatorControlBehavior}
|
|
539
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
539
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
|
|
540
540
|
*/
|
|
541
541
|
constant_combinator,
|
|
542
542
|
/**
|
|
543
543
|
* {@link LuaTransportBeltControlBehavior}
|
|
544
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
544
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.transport_belt Online documentation}
|
|
545
545
|
*/
|
|
546
546
|
transport_belt,
|
|
547
547
|
/**
|
|
548
548
|
* {@link LuaAccumulatorControlBehavior}
|
|
549
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
549
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.accumulator Online documentation}
|
|
550
550
|
*/
|
|
551
551
|
accumulator,
|
|
552
552
|
/**
|
|
553
553
|
* {@link LuaRailSignalBaseControlBehavior}
|
|
554
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
554
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.rail_signal Online documentation}
|
|
555
555
|
*/
|
|
556
556
|
rail_signal,
|
|
557
557
|
/**
|
|
558
558
|
* {@link LuaRailSignalBaseControlBehavior}
|
|
559
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
559
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
|
|
560
560
|
*/
|
|
561
561
|
rail_chain_signal,
|
|
562
562
|
/**
|
|
563
563
|
* {@link LuaWallControlBehavior}
|
|
564
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
564
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.wall Online documentation}
|
|
565
565
|
*/
|
|
566
566
|
wall,
|
|
567
567
|
/**
|
|
568
568
|
* {@link LuaMiningDrillControlBehavior}
|
|
569
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
569
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.mining_drill Online documentation}
|
|
570
570
|
*/
|
|
571
571
|
mining_drill,
|
|
572
572
|
/**
|
|
573
573
|
* {@link LuaProgrammableSpeakerControlBehavior}
|
|
574
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
574
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
|
|
575
575
|
*/
|
|
576
576
|
programmable_speaker,
|
|
577
577
|
/**
|
|
578
578
|
* {@link LuaAssemblingMachineControlBehavior}
|
|
579
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
579
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.assembling_machine Online documentation}
|
|
580
580
|
*/
|
|
581
581
|
assembling_machine,
|
|
582
582
|
/**
|
|
583
583
|
* {@link LuaPumpControlBehavior}
|
|
584
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
584
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.pump Online documentation}
|
|
585
585
|
*/
|
|
586
586
|
pump,
|
|
587
587
|
/**
|
|
588
588
|
* {@link LuaSelectorCombinatorControlBehavior}
|
|
589
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
589
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.selector_combinator Online documentation}
|
|
590
590
|
*/
|
|
591
591
|
selector_combinator,
|
|
592
592
|
/**
|
|
593
593
|
* {@link LuaRocketSiloControlBehavior}
|
|
594
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
594
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.rocket_silo Online documentation}
|
|
595
595
|
*/
|
|
596
596
|
rocket_silo,
|
|
597
597
|
/**
|
|
598
598
|
* {@link LuaTurretControlBehavior}
|
|
599
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
599
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.turret Online documentation}
|
|
600
600
|
*/
|
|
601
601
|
turret,
|
|
602
602
|
/**
|
|
603
603
|
* {@link LuaReactorControlBehavior}
|
|
604
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
604
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.reactor Online documentation}
|
|
605
605
|
*/
|
|
606
606
|
reactor,
|
|
607
607
|
/**
|
|
608
608
|
* {@link LuaSpacePlatformHubControlBehavior}
|
|
609
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
609
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.space_platform_hub Online documentation}
|
|
610
610
|
*/
|
|
611
611
|
space_platform_hub,
|
|
612
612
|
/**
|
|
613
613
|
* {@link LuaArtilleryTurretControlBehavior}
|
|
614
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
614
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.artillery_turret Online documentation}
|
|
615
615
|
*/
|
|
616
616
|
artillery_turret,
|
|
617
617
|
/**
|
|
618
618
|
* {@link LuaAsteroidCollectorControlBehavior}
|
|
619
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
619
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.asteroid_collector Online documentation}
|
|
620
620
|
*/
|
|
621
621
|
asteroid_collector,
|
|
622
622
|
/**
|
|
623
623
|
* {@link LuaRadarControlBehavior}
|
|
624
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
624
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.radar Online documentation}
|
|
625
625
|
*/
|
|
626
626
|
radar,
|
|
627
627
|
/**
|
|
628
628
|
* {@link LuaDisplayPanelControlBehavior}
|
|
629
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
629
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.display_panel Online documentation}
|
|
630
630
|
*/
|
|
631
631
|
display_panel,
|
|
632
632
|
/**
|
|
633
633
|
* {@link LuaLoaderControlBehavior}
|
|
634
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
634
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.loader Online documentation}
|
|
635
635
|
*/
|
|
636
636
|
loader,
|
|
637
637
|
/**
|
|
638
638
|
* {@link LuaCargoLandingPadControlBehavior}
|
|
639
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
639
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.cargo_landing_pad Online documentation}
|
|
640
640
|
*/
|
|
641
641
|
cargo_landing_pad,
|
|
642
642
|
/**
|
|
643
643
|
* {@link LuaAgriculturalTowerControlBehavior}
|
|
644
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
644
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.agricultural_tower Online documentation}
|
|
645
645
|
*/
|
|
646
646
|
agricultural_tower,
|
|
647
647
|
/**
|
|
648
648
|
* {@link LuaFurnaceControlBehavior}
|
|
649
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
649
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.furnace Online documentation}
|
|
650
650
|
*/
|
|
651
651
|
furnace,
|
|
652
652
|
/**
|
|
653
653
|
* {@link LuaProxyContainerControlBehavior}
|
|
654
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
654
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.proxy_container Online documentation}
|
|
655
655
|
*/
|
|
656
656
|
proxy_container,
|
|
657
657
|
/**
|
|
658
658
|
* {@link LuaSplitterControlBehavior}
|
|
659
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
659
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.splitter Online documentation}
|
|
660
660
|
*/
|
|
661
661
|
splitter,
|
|
662
662
|
/**
|
|
663
663
|
* {@link LuaLabControlBehavior}
|
|
664
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
664
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.lab Online documentation}
|
|
665
665
|
*/
|
|
666
666
|
lab,
|
|
667
667
|
/**
|
|
668
668
|
* {@link LuaHeatPipeControlBehavior}
|
|
669
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
669
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.heat_pipe Online documentation}
|
|
670
670
|
*/
|
|
671
671
|
heat_pipe,
|
|
672
672
|
/**
|
|
673
673
|
* {@link LuaBoilerControlBehavior}
|
|
674
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
674
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.boiler Online documentation}
|
|
675
675
|
*/
|
|
676
676
|
boiler,
|
|
677
677
|
/**
|
|
678
678
|
* {@link LuaLandMineControlBehavior}
|
|
679
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
679
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.control_behavior.type.land_mine Online documentation}
|
|
680
680
|
*/
|
|
681
681
|
land_mine,
|
|
682
682
|
}
|
|
@@ -684,37 +684,37 @@ declare global {
|
|
|
684
684
|
enum controllers {
|
|
685
685
|
/**
|
|
686
686
|
* Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
|
|
687
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
687
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.controllers.ghost Online documentation}
|
|
688
688
|
*/
|
|
689
689
|
ghost,
|
|
690
690
|
/**
|
|
691
691
|
* The controller controls a character. This is the default controller in freeplay.
|
|
692
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
692
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.controllers.character Online documentation}
|
|
693
693
|
*/
|
|
694
694
|
character,
|
|
695
695
|
/**
|
|
696
696
|
* The controller isn't tied to a character. This is the default controller in sandbox.
|
|
697
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
697
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.controllers.god Online documentation}
|
|
698
698
|
*/
|
|
699
699
|
god,
|
|
700
700
|
/**
|
|
701
701
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
|
702
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
702
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.controllers.editor Online documentation}
|
|
703
703
|
*/
|
|
704
704
|
editor,
|
|
705
705
|
/**
|
|
706
706
|
* The player can't interact with the world, and the camera pans around in a predefined manner.
|
|
707
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
707
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.controllers.cutscene Online documentation}
|
|
708
708
|
*/
|
|
709
709
|
cutscene,
|
|
710
710
|
/**
|
|
711
711
|
* Can't change anything in the world but can view anything.
|
|
712
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
712
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.controllers.spectator Online documentation}
|
|
713
713
|
*/
|
|
714
714
|
spectator,
|
|
715
715
|
/**
|
|
716
716
|
* Can't move/change items but can build ghosts/change settings.
|
|
717
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
717
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.controllers.remote Online documentation}
|
|
718
718
|
*/
|
|
719
719
|
remote,
|
|
720
720
|
}
|
|
@@ -773,22 +773,22 @@ declare global {
|
|
|
773
773
|
enum distraction {
|
|
774
774
|
/**
|
|
775
775
|
* Perform command even if someone attacks the unit.
|
|
776
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
776
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.distraction.none Online documentation}
|
|
777
777
|
*/
|
|
778
778
|
none,
|
|
779
779
|
/**
|
|
780
780
|
* Attack closer enemy entities with force.
|
|
781
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
781
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.distraction.by_enemy Online documentation}
|
|
782
782
|
*/
|
|
783
783
|
by_enemy,
|
|
784
784
|
/**
|
|
785
785
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
|
786
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
786
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.distraction.by_anything Online documentation}
|
|
787
787
|
*/
|
|
788
788
|
by_anything,
|
|
789
789
|
/**
|
|
790
790
|
* Attack when attacked.
|
|
791
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
791
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.distraction.by_damage Online documentation}
|
|
792
792
|
*/
|
|
793
793
|
by_damage,
|
|
794
794
|
}
|
|
@@ -808,12 +808,12 @@ declare global {
|
|
|
808
808
|
normal,
|
|
809
809
|
/**
|
|
810
810
|
* Used by ghosts.
|
|
811
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
811
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.ghost Online documentation}
|
|
812
812
|
*/
|
|
813
813
|
ghost,
|
|
814
814
|
/**
|
|
815
815
|
* Only used if set through {@link import("factorio:prototype").ContainerPrototype#default_status ContainerPrototype::default_status}.
|
|
816
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
816
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.broken Online documentation}
|
|
817
817
|
*/
|
|
818
818
|
broken,
|
|
819
819
|
no_power,
|
|
@@ -827,307 +827,307 @@ declare global {
|
|
|
827
827
|
marked_for_deconstruction,
|
|
828
828
|
/**
|
|
829
829
|
* Used by space platform hubs.
|
|
830
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
830
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.paused Online documentation}
|
|
831
831
|
*/
|
|
832
832
|
paused,
|
|
833
833
|
/**
|
|
834
834
|
* Used by generators and solar panels.
|
|
835
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
835
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
|
|
836
836
|
*/
|
|
837
837
|
not_plugged_in_electric_network,
|
|
838
838
|
/**
|
|
839
839
|
* Used by power switches.
|
|
840
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
840
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.networks_connected Online documentation}
|
|
841
841
|
*/
|
|
842
842
|
networks_connected,
|
|
843
843
|
/**
|
|
844
844
|
* Used by power switches.
|
|
845
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
845
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.networks_disconnected Online documentation}
|
|
846
846
|
*/
|
|
847
847
|
networks_disconnected,
|
|
848
848
|
/**
|
|
849
849
|
* Used by accumulators.
|
|
850
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
850
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.charging Online documentation}
|
|
851
851
|
*/
|
|
852
852
|
charging,
|
|
853
853
|
/**
|
|
854
854
|
* Used by accumulators.
|
|
855
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
855
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.discharging Online documentation}
|
|
856
856
|
*/
|
|
857
857
|
discharging,
|
|
858
858
|
/**
|
|
859
859
|
* Used by accumulators.
|
|
860
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
860
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.fully_charged Online documentation}
|
|
861
861
|
*/
|
|
862
862
|
fully_charged,
|
|
863
863
|
/**
|
|
864
864
|
* Used by logistic containers.
|
|
865
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
865
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
|
|
866
866
|
*/
|
|
867
867
|
out_of_logistic_network,
|
|
868
868
|
/**
|
|
869
869
|
* Used by assembling machines.
|
|
870
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
870
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.no_recipe Online documentation}
|
|
871
871
|
*/
|
|
872
872
|
no_recipe,
|
|
873
873
|
/**
|
|
874
874
|
* Used by furnaces.
|
|
875
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
875
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.no_ingredients Online documentation}
|
|
876
876
|
*/
|
|
877
877
|
no_ingredients,
|
|
878
878
|
/**
|
|
879
879
|
* Used by boilers, fluid turrets, and fluid energy sources: Boiler has no fluid to work with.
|
|
880
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
880
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.no_input_fluid Online documentation}
|
|
881
881
|
*/
|
|
882
882
|
no_input_fluid,
|
|
883
883
|
/**
|
|
884
884
|
* Used by entities that consume fluids or have a fluid energy source.
|
|
885
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
885
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.input_fluid_too_cold Online documentation}
|
|
886
886
|
*/
|
|
887
887
|
input_fluid_too_cold,
|
|
888
888
|
/**
|
|
889
889
|
* Used by entities that consume fluids or have a fluid energy source.
|
|
890
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
890
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.input_fluid_too_hot Online documentation}
|
|
891
891
|
*/
|
|
892
892
|
input_fluid_too_hot,
|
|
893
893
|
/**
|
|
894
894
|
* Used by labs.
|
|
895
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
895
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.no_research_in_progress Online documentation}
|
|
896
896
|
*/
|
|
897
897
|
no_research_in_progress,
|
|
898
898
|
/**
|
|
899
899
|
* Used by mining drills.
|
|
900
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
900
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.no_minable_resources Online documentation}
|
|
901
901
|
*/
|
|
902
902
|
no_minable_resources,
|
|
903
903
|
/**
|
|
904
904
|
* Used by cargo bays.
|
|
905
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
905
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.hatches_blocked_by_elevated_rail Online documentation}
|
|
906
906
|
*/
|
|
907
907
|
hatches_blocked_by_elevated_rail,
|
|
908
908
|
/**
|
|
909
909
|
* Used by cargo bays.
|
|
910
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
910
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.not_connected_to_hub_or_pad Online documentation}
|
|
911
911
|
*/
|
|
912
912
|
not_connected_to_hub_or_pad,
|
|
913
913
|
/**
|
|
914
914
|
* Used by some cargo bays.
|
|
915
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
915
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.too_far_from_pad_to_unload Online documentation}
|
|
916
916
|
*/
|
|
917
917
|
too_far_from_pad_to_unload,
|
|
918
918
|
/**
|
|
919
919
|
* Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
|
|
920
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
920
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.low_input_fluid Online documentation}
|
|
921
921
|
*/
|
|
922
922
|
low_input_fluid,
|
|
923
923
|
/**
|
|
924
924
|
* Used by crafting machines.
|
|
925
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
925
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
|
|
926
926
|
*/
|
|
927
927
|
fluid_ingredient_shortage,
|
|
928
928
|
/**
|
|
929
929
|
* Used by crafting machines, boilers, burner energy sources, and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
|
|
930
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
930
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.full_output Online documentation}
|
|
931
931
|
*/
|
|
932
932
|
full_output,
|
|
933
933
|
/**
|
|
934
934
|
* Used by agricultural towers.
|
|
935
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
935
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.not_enough_space_in_output Online documentation}
|
|
936
936
|
*/
|
|
937
937
|
not_enough_space_in_output,
|
|
938
938
|
/**
|
|
939
939
|
* Used by burner energy sources.
|
|
940
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
940
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
|
|
941
941
|
*/
|
|
942
942
|
full_burnt_result_output,
|
|
943
943
|
/**
|
|
944
944
|
* Used by crafting machines.
|
|
945
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
945
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
|
|
946
946
|
*/
|
|
947
947
|
item_ingredient_shortage,
|
|
948
948
|
/**
|
|
949
949
|
* Used by mining drills when the mining fluid is missing.
|
|
950
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
950
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.missing_required_fluid Online documentation}
|
|
951
951
|
*/
|
|
952
952
|
missing_required_fluid,
|
|
953
953
|
/**
|
|
954
954
|
* Used by labs.
|
|
955
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
955
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.missing_science_packs Online documentation}
|
|
956
956
|
*/
|
|
957
957
|
missing_science_packs,
|
|
958
958
|
/**
|
|
959
959
|
* Used by inserters.
|
|
960
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
960
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
|
|
961
961
|
*/
|
|
962
962
|
waiting_for_source_items,
|
|
963
963
|
/**
|
|
964
964
|
* Used by inserters when wait_for_full_hand is set.
|
|
965
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
965
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.waiting_for_more_items Online documentation}
|
|
966
966
|
*/
|
|
967
967
|
waiting_for_more_items,
|
|
968
968
|
/**
|
|
969
969
|
* Used by inserters, mining drills, and crafting machines using vector_to_place_result.
|
|
970
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
970
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
|
|
971
971
|
*/
|
|
972
972
|
waiting_for_space_in_destination,
|
|
973
973
|
/**
|
|
974
974
|
* Used by the rocket silo.
|
|
975
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
975
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
|
|
976
976
|
*/
|
|
977
977
|
preparing_rocket_for_launch,
|
|
978
978
|
/**
|
|
979
979
|
* Used by the rocket silo.
|
|
980
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
980
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
|
|
981
981
|
*/
|
|
982
982
|
waiting_to_launch_rocket,
|
|
983
983
|
/**
|
|
984
984
|
* Used by the rocket silo.
|
|
985
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
985
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.waiting_for_space_in_platform_hub Online documentation}
|
|
986
986
|
*/
|
|
987
987
|
waiting_for_space_in_platform_hub,
|
|
988
988
|
/**
|
|
989
989
|
* Used by the rocket silo.
|
|
990
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
990
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.launching_rocket Online documentation}
|
|
991
991
|
*/
|
|
992
992
|
launching_rocket,
|
|
993
993
|
/**
|
|
994
994
|
* Used by thrusters.
|
|
995
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
995
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.thrust_not_required Online documentation}
|
|
996
996
|
*/
|
|
997
997
|
thrust_not_required,
|
|
998
998
|
/**
|
|
999
999
|
* Used by space platform hubs.
|
|
1000
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1000
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.on_the_way Online documentation}
|
|
1001
1001
|
*/
|
|
1002
1002
|
on_the_way,
|
|
1003
1003
|
/**
|
|
1004
1004
|
* Used by space platform hubs.
|
|
1005
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1005
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.waiting_in_orbit Online documentation}
|
|
1006
1006
|
*/
|
|
1007
1007
|
waiting_in_orbit,
|
|
1008
1008
|
/**
|
|
1009
1009
|
* Used by trains.
|
|
1010
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1010
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.waiting_at_stop Online documentation}
|
|
1011
1011
|
*/
|
|
1012
1012
|
waiting_at_stop,
|
|
1013
1013
|
/**
|
|
1014
1014
|
* Used by trains.
|
|
1015
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1015
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.waiting_for_upgrade Online documentation}
|
|
1016
1016
|
*/
|
|
1017
1017
|
waiting_for_upgrade,
|
|
1018
1018
|
/**
|
|
1019
1019
|
* Used by space platform hubs.
|
|
1020
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1020
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.waiting_for_rockets_to_arrive Online documentation}
|
|
1021
1021
|
*/
|
|
1022
1022
|
waiting_for_rockets_to_arrive,
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Used by space platform hubs.
|
|
1025
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1025
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.waiting_to_clear_drop_slots Online documentation}
|
|
1026
1026
|
*/
|
|
1027
1027
|
waiting_to_clear_drop_slots,
|
|
1028
1028
|
/**
|
|
1029
1029
|
* Used by space platform hubs.
|
|
1030
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1030
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.not_enough_thrust Online documentation}
|
|
1031
1031
|
*/
|
|
1032
1032
|
not_enough_thrust,
|
|
1033
1033
|
/**
|
|
1034
1034
|
* Used by trains.
|
|
1035
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1035
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.destination_stop_full Online documentation}
|
|
1036
1036
|
*/
|
|
1037
1037
|
destination_stop_full,
|
|
1038
1038
|
/**
|
|
1039
1039
|
* Used by trains and space platform hubs.
|
|
1040
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1040
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.no_path Online documentation}
|
|
1041
1041
|
*/
|
|
1042
1042
|
no_path,
|
|
1043
1043
|
/**
|
|
1044
1044
|
* Used by beacons.
|
|
1045
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1045
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
|
|
1046
1046
|
*/
|
|
1047
1047
|
no_modules_to_transmit,
|
|
1048
1048
|
/**
|
|
1049
1049
|
* Used by roboports.
|
|
1050
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1050
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
|
|
1051
1051
|
*/
|
|
1052
1052
|
recharging_after_power_outage,
|
|
1053
1053
|
/**
|
|
1054
1054
|
* Used by inserters targeting entity ghosts.
|
|
1055
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1055
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
|
|
1056
1056
|
*/
|
|
1057
1057
|
waiting_for_target_to_be_built,
|
|
1058
1058
|
/**
|
|
1059
1059
|
* Used by inserters targeting rails.
|
|
1060
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1060
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.waiting_for_train Online documentation}
|
|
1061
1061
|
*/
|
|
1062
1062
|
waiting_for_train,
|
|
1063
1063
|
/**
|
|
1064
1064
|
* Used by ammo turrets.
|
|
1065
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1065
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.no_ammo Online documentation}
|
|
1066
1066
|
*/
|
|
1067
1067
|
no_ammo,
|
|
1068
1068
|
/**
|
|
1069
1069
|
* Used by heat energy sources.
|
|
1070
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1070
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.low_temperature Online documentation}
|
|
1071
1071
|
*/
|
|
1072
1072
|
low_temperature,
|
|
1073
1073
|
/**
|
|
1074
1074
|
* Used by constant combinators: Combinator is turned off via switch in GUI. Also used by inserters.
|
|
1075
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1075
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.disabled Online documentation}
|
|
1076
1076
|
*/
|
|
1077
1077
|
disabled,
|
|
1078
1078
|
/**
|
|
1079
1079
|
* Used by lamps.
|
|
1080
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1080
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
|
|
1081
1081
|
*/
|
|
1082
1082
|
turned_off_during_daytime,
|
|
1083
1083
|
/**
|
|
1084
1084
|
* Used by rail signals.
|
|
1085
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1085
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
|
|
1086
1086
|
*/
|
|
1087
1087
|
not_connected_to_rail,
|
|
1088
1088
|
/**
|
|
1089
1089
|
* Used by rail signals.
|
|
1090
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1090
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.cant_divide_segments Online documentation}
|
|
1091
1091
|
*/
|
|
1092
1092
|
cant_divide_segments,
|
|
1093
1093
|
/**
|
|
1094
1094
|
* Used by filter inserters.
|
|
1095
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1095
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.no_filter Online documentation}
|
|
1096
1096
|
*/
|
|
1097
1097
|
no_filter,
|
|
1098
1098
|
/**
|
|
1099
1099
|
* Used by agricultural towers.
|
|
1100
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1100
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.no_spot_seedable_by_inputs Online documentation}
|
|
1101
1101
|
*/
|
|
1102
1102
|
no_spot_seedable_by_inputs,
|
|
1103
1103
|
/**
|
|
1104
1104
|
* Used by agricultural towers.
|
|
1105
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1105
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.waiting_for_plants_to_grow Online documentation}
|
|
1106
1106
|
*/
|
|
1107
1107
|
waiting_for_plants_to_grow,
|
|
1108
1108
|
/**
|
|
1109
1109
|
* Used by asteroid collectors.
|
|
1110
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1110
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.computing_navigation Online documentation}
|
|
1111
1111
|
*/
|
|
1112
1112
|
computing_navigation,
|
|
1113
1113
|
/**
|
|
1114
1114
|
* Used by pipes, pipes to ground, and storage tanks.
|
|
1115
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1115
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.pipeline_overextended Online documentation}
|
|
1116
1116
|
*/
|
|
1117
1117
|
pipeline_overextended,
|
|
1118
1118
|
/**
|
|
1119
1119
|
* Used by assembling machines.
|
|
1120
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1120
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.recipe_not_researched Online documentation}
|
|
1121
1121
|
*/
|
|
1122
1122
|
recipe_not_researched,
|
|
1123
1123
|
/**
|
|
1124
1124
|
* Used by assembling machines.
|
|
1125
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1125
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.recipe_is_parameter Online documentation}
|
|
1126
1126
|
*/
|
|
1127
1127
|
recipe_is_parameter,
|
|
1128
1128
|
/**
|
|
1129
1129
|
* Used by land mines.
|
|
1130
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1130
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.entity_status.armed Online documentation}
|
|
1131
1131
|
*/
|
|
1132
1132
|
armed,
|
|
1133
1133
|
}
|
|
@@ -1137,8 +1137,8 @@ declare global {
|
|
|
1137
1137
|
yellow,
|
|
1138
1138
|
}
|
|
1139
1139
|
/**
|
|
1140
|
-
* See the {@linkplain https://lua-api.factorio.com/2.1.
|
|
1141
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1140
|
+
* See the {@linkplain https://lua-api.factorio.com/2.1.25/events.html events page} for more info on what events contain and when they get raised.
|
|
1141
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.events Online documentation}
|
|
1142
1142
|
*/
|
|
1143
1143
|
namespace events {
|
|
1144
1144
|
/**
|
|
@@ -2120,8 +2120,8 @@ declare global {
|
|
|
2120
2120
|
const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent, LuaScriptRaisedTeleportedEventFilter>
|
|
2121
2121
|
}
|
|
2122
2122
|
/**
|
|
2123
|
-
* See the {@linkplain https://lua-api.factorio.com/2.1.
|
|
2124
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2123
|
+
* See the {@linkplain https://lua-api.factorio.com/2.1.25/events.html events page} for more info on what events contain and when they get raised.
|
|
2124
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.events Online documentation}
|
|
2125
2125
|
*/
|
|
2126
2126
|
type events = (typeof events)[keyof typeof events]
|
|
2127
2127
|
enum flow_precision_index {
|
|
@@ -2137,17 +2137,17 @@ declare global {
|
|
|
2137
2137
|
enum game_controller_interaction {
|
|
2138
2138
|
/**
|
|
2139
2139
|
* Game controller will always hover this element regardless of type or state.
|
|
2140
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2140
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.game_controller_interaction.always Online documentation}
|
|
2141
2141
|
*/
|
|
2142
2142
|
always,
|
|
2143
2143
|
/**
|
|
2144
2144
|
* Never hover this element with a game controller.
|
|
2145
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2145
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.game_controller_interaction.never Online documentation}
|
|
2146
2146
|
*/
|
|
2147
2147
|
never,
|
|
2148
2148
|
/**
|
|
2149
2149
|
* Hover according to the element type and implementation.
|
|
2150
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2150
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.game_controller_interaction.normal Online documentation}
|
|
2151
2151
|
*/
|
|
2152
2152
|
normal,
|
|
2153
2153
|
}
|
|
@@ -2287,6 +2287,7 @@ declare global {
|
|
|
2287
2287
|
fast_entity_transfer,
|
|
2288
2288
|
flip_entity,
|
|
2289
2289
|
flush_opened_entity_fluid,
|
|
2290
|
+
flush_opened_entity_fluid_system,
|
|
2290
2291
|
flush_opened_entity_specific_fluid,
|
|
2291
2292
|
go_to_train_station,
|
|
2292
2293
|
grab_blueprint_record,
|
|
@@ -2507,7 +2508,7 @@ declare global {
|
|
|
2507
2508
|
robot_repair,
|
|
2508
2509
|
/**
|
|
2509
2510
|
* Used for ejected items, or items held by inserters that can't be inserted due the recipe being changed with the circuit network.
|
|
2510
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2511
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.inventory.assembling_machine_dump Online documentation}
|
|
2511
2512
|
*/
|
|
2512
2513
|
assembling_machine_dump,
|
|
2513
2514
|
lab_input,
|
|
@@ -2520,7 +2521,7 @@ declare global {
|
|
|
2520
2521
|
rocket_silo_attached_cargo_unit,
|
|
2521
2522
|
/**
|
|
2522
2523
|
* Inventory of cargo pod.
|
|
2523
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2524
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.inventory.cargo_unit Online documentation}
|
|
2524
2525
|
*/
|
|
2525
2526
|
cargo_unit,
|
|
2526
2527
|
car_trunk,
|
|
@@ -2549,7 +2550,7 @@ declare global {
|
|
|
2549
2550
|
crafter_modules,
|
|
2550
2551
|
/**
|
|
2551
2552
|
* Used for spoil result items that do not fit into the recipe slots, and for items that are ejected when changing the recipe via remote view.
|
|
2552
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2553
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.inventory.crafter_trash Online documentation}
|
|
2553
2554
|
*/
|
|
2554
2555
|
crafter_trash,
|
|
2555
2556
|
asteroid_collector_output,
|
|
@@ -2607,12 +2608,12 @@ declare global {
|
|
|
2607
2608
|
circuit_controlled,
|
|
2608
2609
|
/**
|
|
2609
2610
|
* Used by rocket silos.
|
|
2610
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2611
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
|
|
2611
2612
|
*/
|
|
2612
2613
|
transitional_request_controlled,
|
|
2613
2614
|
/**
|
|
2614
2615
|
* Used by space platform hubs.
|
|
2615
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2616
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
|
|
2616
2617
|
*/
|
|
2617
2618
|
request_missing_materials_controlled,
|
|
2618
2619
|
}
|
|
@@ -2631,17 +2632,17 @@ declare global {
|
|
|
2631
2632
|
enum print_skip {
|
|
2632
2633
|
/**
|
|
2633
2634
|
* Print will not be skipped.
|
|
2634
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2635
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.print_skip.never Online documentation}
|
|
2635
2636
|
*/
|
|
2636
2637
|
never,
|
|
2637
2638
|
/**
|
|
2638
2639
|
* Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
|
|
2639
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2640
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.print_skip.if_redundant Online documentation}
|
|
2640
2641
|
*/
|
|
2641
2642
|
if_redundant,
|
|
2642
2643
|
/**
|
|
2643
2644
|
* Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
|
|
2644
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2645
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.print_skip.if_visible Online documentation}
|
|
2645
2646
|
*/
|
|
2646
2647
|
if_visible,
|
|
2647
2648
|
}
|
|
@@ -2652,7 +2653,7 @@ declare global {
|
|
|
2652
2653
|
}
|
|
2653
2654
|
/**
|
|
2654
2655
|
* This define describes all top-level prototypes and their associated subtypes. It is organized as a lookup table, meaning the values of all the defines is `0`. As an example, `defines.prototypes['entity']` looks like `{furnace=0, inserter=0, container=0, ...}`.
|
|
2655
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2656
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.prototypes Online documentation}
|
|
2656
2657
|
*/
|
|
2657
2658
|
interface prototypes {
|
|
2658
2659
|
"achievement": {
|
|
@@ -3048,7 +3049,7 @@ declare global {
|
|
|
3048
3049
|
}
|
|
3049
3050
|
/**
|
|
3050
3051
|
* This define describes all top-level prototypes and their associated subtypes. It is organized as a lookup table, meaning the values of all the defines is `0`. As an example, `defines.prototypes['entity']` looks like `{furnace=0, inserter=0, container=0, ...}`.
|
|
3051
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3052
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.prototypes Online documentation}
|
|
3052
3053
|
*/
|
|
3053
3054
|
const prototypes: prototypes
|
|
3054
3055
|
enum rail_connection_direction {
|
|
@@ -3178,189 +3179,189 @@ declare global {
|
|
|
3178
3179
|
enum robot_order_type {
|
|
3179
3180
|
/**
|
|
3180
3181
|
* Construct a ghost.
|
|
3181
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3182
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.robot_order_type.construct Online documentation}
|
|
3182
3183
|
*/
|
|
3183
3184
|
construct,
|
|
3184
3185
|
/**
|
|
3185
3186
|
* Pickup an item.
|
|
3186
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3187
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.robot_order_type.pickup Online documentation}
|
|
3187
3188
|
*/
|
|
3188
3189
|
pickup,
|
|
3189
3190
|
/**
|
|
3190
3191
|
* Deliver an item.
|
|
3191
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3192
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.robot_order_type.deliver Online documentation}
|
|
3192
3193
|
*/
|
|
3193
3194
|
deliver,
|
|
3194
3195
|
/**
|
|
3195
3196
|
* Repair an entity.
|
|
3196
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3197
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.robot_order_type.repair Online documentation}
|
|
3197
3198
|
*/
|
|
3198
3199
|
repair,
|
|
3199
3200
|
/**
|
|
3200
3201
|
* Deconstruct an entity.
|
|
3201
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3202
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.robot_order_type.deconstruct Online documentation}
|
|
3202
3203
|
*/
|
|
3203
3204
|
deconstruct,
|
|
3204
3205
|
/**
|
|
3205
3206
|
* Deliver specific items to an entity (item request proxy).
|
|
3206
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3207
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.robot_order_type.deliver_items Online documentation}
|
|
3207
3208
|
*/
|
|
3208
3209
|
deliver_items,
|
|
3209
3210
|
/**
|
|
3210
3211
|
* Upgrade an entity.
|
|
3211
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3212
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.robot_order_type.upgrade Online documentation}
|
|
3212
3213
|
*/
|
|
3213
3214
|
upgrade,
|
|
3214
3215
|
/**
|
|
3215
3216
|
* Explode a cliff.
|
|
3216
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3217
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.robot_order_type.explode_cliff Online documentation}
|
|
3217
3218
|
*/
|
|
3218
3219
|
explode_cliff,
|
|
3219
3220
|
/**
|
|
3220
3221
|
* Pickup items from an entity (item request proxy).
|
|
3221
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3222
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.robot_order_type.pickup_items Online documentation}
|
|
3222
3223
|
*/
|
|
3223
3224
|
pickup_items,
|
|
3224
3225
|
}
|
|
3225
3226
|
/**
|
|
3226
3227
|
* The various parts of the launch sequence of the rocket silo.
|
|
3227
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3228
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.rocket_silo_status Online documentation}
|
|
3228
3229
|
*/
|
|
3229
3230
|
enum rocket_silo_status {
|
|
3230
3231
|
/**
|
|
3231
3232
|
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
|
3232
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3233
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
|
|
3233
3234
|
*/
|
|
3234
3235
|
building_rocket,
|
|
3235
3236
|
/**
|
|
3236
3237
|
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
|
3237
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3238
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
|
|
3238
3239
|
*/
|
|
3239
3240
|
create_rocket,
|
|
3240
3241
|
/**
|
|
3241
3242
|
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
|
3242
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3243
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
|
|
3243
3244
|
*/
|
|
3244
3245
|
lights_blinking_open,
|
|
3245
3246
|
/**
|
|
3246
3247
|
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
|
3247
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3248
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
|
|
3248
3249
|
*/
|
|
3249
3250
|
doors_opening,
|
|
3250
3251
|
/**
|
|
3251
3252
|
* 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.
|
|
3252
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3253
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
|
|
3253
3254
|
*/
|
|
3254
3255
|
doors_opened,
|
|
3255
3256
|
/**
|
|
3256
3257
|
* 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.
|
|
3257
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3258
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
|
|
3258
3259
|
*/
|
|
3259
3260
|
rocket_rising,
|
|
3260
3261
|
/**
|
|
3261
3262
|
* 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.
|
|
3262
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3263
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
|
|
3263
3264
|
*/
|
|
3264
3265
|
arms_advance,
|
|
3265
3266
|
/**
|
|
3266
3267
|
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
|
3267
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3268
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
|
|
3268
3269
|
*/
|
|
3269
3270
|
rocket_ready,
|
|
3270
3271
|
/**
|
|
3271
3272
|
* The next state is `launch_started`.
|
|
3272
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3273
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
|
|
3273
3274
|
*/
|
|
3274
3275
|
launch_starting,
|
|
3275
3276
|
/**
|
|
3276
3277
|
* 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.
|
|
3277
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3278
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
|
|
3278
3279
|
*/
|
|
3279
3280
|
engine_starting,
|
|
3280
3281
|
/**
|
|
3281
3282
|
* 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.
|
|
3282
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3283
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
|
|
3283
3284
|
*/
|
|
3284
3285
|
arms_retract,
|
|
3285
3286
|
/**
|
|
3286
3287
|
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
|
3287
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3288
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
|
|
3288
3289
|
*/
|
|
3289
3290
|
rocket_flying,
|
|
3290
3291
|
/**
|
|
3291
3292
|
* The next state is `doors_closing`.
|
|
3292
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3293
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
|
|
3293
3294
|
*/
|
|
3294
3295
|
lights_blinking_close,
|
|
3295
3296
|
/**
|
|
3296
3297
|
* The next state is `building_rocket`.
|
|
3297
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3298
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
|
|
3298
3299
|
*/
|
|
3299
3300
|
doors_closing,
|
|
3300
3301
|
/**
|
|
3301
3302
|
* 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.
|
|
3302
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3303
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.rocket_silo_status.launch_started Online documentation}
|
|
3303
3304
|
*/
|
|
3304
3305
|
launch_started,
|
|
3305
3306
|
}
|
|
3306
3307
|
enum segmented_unit_activity_mode {
|
|
3307
3308
|
/**
|
|
3308
3309
|
* The segmented unit is completely asleep, only performing the bare minimum checks to wake up if needed.
|
|
3309
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3310
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.segmented_unit_activity_mode.asleep Online documentation}
|
|
3310
3311
|
*/
|
|
3311
3312
|
asleep,
|
|
3312
3313
|
/**
|
|
3313
3314
|
* The segmented unit is minimally active, reducing unnecessary entity movement and trigger effects while continuing to patrol around its territory.
|
|
3314
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3315
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.segmented_unit_activity_mode.minimal Online documentation}
|
|
3315
3316
|
*/
|
|
3316
3317
|
minimal,
|
|
3317
3318
|
/**
|
|
3318
3319
|
* The segmented unit is fully active and simulated as if it is being observed by a player.
|
|
3319
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3320
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.segmented_unit_activity_mode.full Online documentation}
|
|
3320
3321
|
*/
|
|
3321
3322
|
full,
|
|
3322
3323
|
}
|
|
3323
3324
|
enum segmented_unit_ai_state {
|
|
3324
3325
|
/**
|
|
3325
3326
|
* The segmented unit is navigating its territory's patrol path. If the unit is not assigned to a territory, then it is patrolling around the position it was created.
|
|
3326
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3327
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.segmented_unit_ai_state.patrolling Online documentation}
|
|
3327
3328
|
*/
|
|
3328
3329
|
patrolling,
|
|
3329
3330
|
/**
|
|
3330
3331
|
* The segmented unit is investigating a location where it detected a disturbance.
|
|
3331
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3332
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.segmented_unit_ai_state.investigating Online documentation}
|
|
3332
3333
|
*/
|
|
3333
3334
|
investigating,
|
|
3334
3335
|
/**
|
|
3335
3336
|
* The segmented unit is attacking an entity that is trespassing on its territory, but the segmented unit is not using its full strength.
|
|
3336
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3337
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.segmented_unit_ai_state.attacking Online documentation}
|
|
3337
3338
|
*/
|
|
3338
3339
|
attacking,
|
|
3339
3340
|
/**
|
|
3340
3341
|
* The segmented unit is angry because it was attacked and is aggressively attacking an entity with its full strength.
|
|
3341
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3342
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.segmented_unit_ai_state.enraged_at_target Online documentation}
|
|
3342
3343
|
*/
|
|
3343
3344
|
enraged_at_target,
|
|
3344
3345
|
/**
|
|
3345
3346
|
* The segmented unit is angry because it was attacked but it does not have a valid attack target, so it is wandering around trying to find a valid attack target.
|
|
3346
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3347
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.segmented_unit_ai_state.enraged_at_nothing Online documentation}
|
|
3347
3348
|
*/
|
|
3348
3349
|
enraged_at_nothing,
|
|
3349
3350
|
}
|
|
3350
3351
|
enum segmented_unit_created_cause {
|
|
3351
3352
|
/**
|
|
3352
3353
|
* The segmented unit was spawned naturally by the map generator.
|
|
3353
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3354
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.segmented_unit_created_cause.map_generated Online documentation}
|
|
3354
3355
|
*/
|
|
3355
3356
|
map_generated,
|
|
3356
3357
|
/**
|
|
3357
3358
|
* The segmented unit was created manually via script.
|
|
3358
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3359
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.segmented_unit_created_cause.script_created Online documentation}
|
|
3359
3360
|
*/
|
|
3360
3361
|
script_created,
|
|
3361
3362
|
/**
|
|
3362
3363
|
* The segmented unit was cloned from an existing segmented unit via script.
|
|
3363
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3364
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.segmented_unit_created_cause.script_cloned Online documentation}
|
|
3364
3365
|
*/
|
|
3365
3366
|
script_cloned,
|
|
3366
3367
|
}
|
|
@@ -3378,74 +3379,74 @@ declare global {
|
|
|
3378
3379
|
}
|
|
3379
3380
|
/**
|
|
3380
3381
|
* State of an ordinary rail signal.
|
|
3381
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3382
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.signal_state Online documentation}
|
|
3382
3383
|
*/
|
|
3383
3384
|
enum signal_state {
|
|
3384
3385
|
/**
|
|
3385
3386
|
* Green.
|
|
3386
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3387
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.signal_state.open Online documentation}
|
|
3387
3388
|
*/
|
|
3388
3389
|
open,
|
|
3389
3390
|
/**
|
|
3390
3391
|
* Red.
|
|
3391
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3392
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.signal_state.closed Online documentation}
|
|
3392
3393
|
*/
|
|
3393
3394
|
closed,
|
|
3394
3395
|
/**
|
|
3395
3396
|
* Orange.
|
|
3396
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3397
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.signal_state.reserved Online documentation}
|
|
3397
3398
|
*/
|
|
3398
3399
|
reserved,
|
|
3399
3400
|
/**
|
|
3400
3401
|
* Red - From circuit network.
|
|
3401
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3402
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
|
3402
3403
|
*/
|
|
3403
3404
|
reserved_by_circuit_network,
|
|
3404
3405
|
}
|
|
3405
3406
|
enum space_platform_state {
|
|
3406
3407
|
/**
|
|
3407
3408
|
* Waiting for a starter pack.
|
|
3408
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3409
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
|
|
3409
3410
|
*/
|
|
3410
3411
|
waiting_for_starter_pack,
|
|
3411
3412
|
/**
|
|
3412
3413
|
* Starter pack was requested from the logistics system.
|
|
3413
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3414
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
|
|
3414
3415
|
*/
|
|
3415
3416
|
starter_pack_requested,
|
|
3416
3417
|
/**
|
|
3417
3418
|
* Starter pack is on the way.
|
|
3418
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3419
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
|
|
3419
3420
|
*/
|
|
3420
3421
|
starter_pack_on_the_way,
|
|
3421
3422
|
/**
|
|
3422
3423
|
* Following the path.
|
|
3423
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3424
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.space_platform_state.on_the_path Online documentation}
|
|
3424
3425
|
*/
|
|
3425
3426
|
on_the_path,
|
|
3426
3427
|
/**
|
|
3427
3428
|
* Platform is ready to leave this planet and does not accept deliveries.
|
|
3428
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3429
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
|
|
3429
3430
|
*/
|
|
3430
3431
|
waiting_for_departure,
|
|
3431
3432
|
/**
|
|
3432
3433
|
* Doesn't have any stations in schedule.
|
|
3433
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3434
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.space_platform_state.no_schedule Online documentation}
|
|
3434
3435
|
*/
|
|
3435
3436
|
no_schedule,
|
|
3436
3437
|
/**
|
|
3437
3438
|
* Doesn't have anywhere to go.
|
|
3438
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3439
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.space_platform_state.no_path Online documentation}
|
|
3439
3440
|
*/
|
|
3440
3441
|
no_path,
|
|
3441
3442
|
/**
|
|
3442
3443
|
* Waiting at a station.
|
|
3443
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3444
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
|
|
3444
3445
|
*/
|
|
3445
3446
|
waiting_at_station,
|
|
3446
3447
|
/**
|
|
3447
3448
|
* Paused.
|
|
3448
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3449
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.space_platform_state.paused Online documentation}
|
|
3449
3450
|
*/
|
|
3450
3451
|
paused,
|
|
3451
3452
|
}
|
|
@@ -3479,64 +3480,64 @@ declare global {
|
|
|
3479
3480
|
enum territory_created_cause {
|
|
3480
3481
|
/**
|
|
3481
3482
|
* The territory was spawned naturally by the map generator.
|
|
3482
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3483
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.territory_created_cause.map_generated Online documentation}
|
|
3483
3484
|
*/
|
|
3484
3485
|
map_generated,
|
|
3485
3486
|
/**
|
|
3486
3487
|
* The territory was created manually via script.
|
|
3487
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3488
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.territory_created_cause.script_created Online documentation}
|
|
3488
3489
|
*/
|
|
3489
3490
|
script_created,
|
|
3490
3491
|
}
|
|
3491
3492
|
enum train_state {
|
|
3492
3493
|
/**
|
|
3493
3494
|
* Normal state -- following the path.
|
|
3494
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3495
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.train_state.on_the_path Online documentation}
|
|
3495
3496
|
*/
|
|
3496
3497
|
on_the_path,
|
|
3497
3498
|
/**
|
|
3498
3499
|
* Doesn't have anywhere to go.
|
|
3499
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3500
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.train_state.no_schedule Online documentation}
|
|
3500
3501
|
*/
|
|
3501
3502
|
no_schedule,
|
|
3502
3503
|
/**
|
|
3503
3504
|
* Has no path and is stopped.
|
|
3504
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3505
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.train_state.no_path Online documentation}
|
|
3505
3506
|
*/
|
|
3506
3507
|
no_path,
|
|
3507
3508
|
/**
|
|
3508
3509
|
* Braking before a rail signal.
|
|
3509
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3510
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.train_state.arrive_signal Online documentation}
|
|
3510
3511
|
*/
|
|
3511
3512
|
arrive_signal,
|
|
3512
3513
|
/**
|
|
3513
3514
|
* Waiting at a signal.
|
|
3514
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3515
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.train_state.wait_signal Online documentation}
|
|
3515
3516
|
*/
|
|
3516
3517
|
wait_signal,
|
|
3517
3518
|
/**
|
|
3518
3519
|
* Braking before a station.
|
|
3519
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3520
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.train_state.arrive_station Online documentation}
|
|
3520
3521
|
*/
|
|
3521
3522
|
arrive_station,
|
|
3522
3523
|
/**
|
|
3523
3524
|
* Switched to manual control and has to stop.
|
|
3524
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3525
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.train_state.manual_control_stop Online documentation}
|
|
3525
3526
|
*/
|
|
3526
3527
|
manual_control_stop,
|
|
3527
3528
|
/**
|
|
3528
3529
|
* Can move if user explicitly sits in and rides the train.
|
|
3529
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3530
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.train_state.manual_control Online documentation}
|
|
3530
3531
|
*/
|
|
3531
3532
|
manual_control,
|
|
3532
3533
|
/**
|
|
3533
3534
|
* Waiting at a station.
|
|
3534
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3535
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.train_state.wait_station Online documentation}
|
|
3535
3536
|
*/
|
|
3536
3537
|
wait_station,
|
|
3537
3538
|
/**
|
|
3538
3539
|
* Same as no_path but all candidate train stops are full
|
|
3539
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3540
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.train_state.destination_full Online documentation}
|
|
3540
3541
|
*/
|
|
3541
3542
|
destination_full,
|
|
3542
3543
|
}
|
|
@@ -3566,17 +3567,17 @@ declare global {
|
|
|
3566
3567
|
enum wire_origin {
|
|
3567
3568
|
/**
|
|
3568
3569
|
* These wires can be modified by players, scripts, and the game. They are visible to the player if the entity's `draw_circuit_wires` prototype property is set to `true` and both ends of it are on the same surface.
|
|
3569
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3570
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.wire_origin.player Online documentation}
|
|
3570
3571
|
*/
|
|
3571
3572
|
player,
|
|
3572
3573
|
/**
|
|
3573
3574
|
* These wires can be modified by scripts and the game. They are not visible to the player, irrespective of the `draw_circuit_wires` prototype property.
|
|
3574
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3575
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.wire_origin.script Online documentation}
|
|
3575
3576
|
*/
|
|
3576
3577
|
script,
|
|
3577
3578
|
/**
|
|
3578
3579
|
* These wires can only be modified by the game. They are not visible to the player, irrespective of the `draw_circuit_wires` prototype property.
|
|
3579
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3580
|
+
* @see {@link https://lua-api.factorio.com/2.1.25/defines.html#defines.wire_origin.radars Online documentation}
|
|
3580
3581
|
*/
|
|
3581
3582
|
radars,
|
|
3582
3583
|
}
|