typed-factorio 4.0.0 → 4.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/README.md +2 -6
- package/package.json +21 -24
- package/prototype/generated/prototypes.d.ts +2519 -2522
- package/prototype/generated/types.d.ts +2598 -2600
- package/runtime/generated/classes.d.ts +5027 -5020
- package/runtime/generated/concepts.d.ts +11241 -11270
- package/runtime/generated/defines.d.ts +290 -286
- package/runtime/generated/events.d.ts +224 -230
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +7 -7
|
@@ -282,7 +282,7 @@ declare global {
|
|
|
282
282
|
}
|
|
283
283
|
/**
|
|
284
284
|
* AI command exit status, see {@link LuaCommandable#set_command LuaCommandable::set_command}
|
|
285
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
285
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.behavior_result Online documentation}
|
|
286
286
|
*/
|
|
287
287
|
enum behavior_result {
|
|
288
288
|
in_progress,
|
|
@@ -306,33 +306,33 @@ declare global {
|
|
|
306
306
|
enum cargo_destination {
|
|
307
307
|
/**
|
|
308
308
|
* The default destination type of a cargo pod when created runtime. Setting its destination to any other type will instantly launch it.
|
|
309
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
309
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.cargo_destination.invalid Online documentation}
|
|
310
310
|
*/
|
|
311
311
|
invalid,
|
|
312
312
|
/**
|
|
313
313
|
* Cargo pods with orbit destination are destroyed when ascent is completed.
|
|
314
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
314
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.cargo_destination.orbit Online documentation}
|
|
315
315
|
*/
|
|
316
316
|
orbit,
|
|
317
317
|
/**
|
|
318
318
|
* Any cargo landing pad or space platform hub.
|
|
319
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
319
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.cargo_destination.station Online documentation}
|
|
320
320
|
*/
|
|
321
321
|
station,
|
|
322
322
|
/**
|
|
323
323
|
* 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.
|
|
324
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
324
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.cargo_destination.surface Online documentation}
|
|
325
325
|
*/
|
|
326
326
|
surface,
|
|
327
327
|
/**
|
|
328
328
|
* 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.
|
|
329
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
329
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.cargo_destination.space_platform Online documentation}
|
|
330
330
|
*/
|
|
331
331
|
space_platform,
|
|
332
332
|
}
|
|
333
333
|
/**
|
|
334
334
|
* State of a chain signal.
|
|
335
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
335
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.chain_signal_state Online documentation}
|
|
336
336
|
*/
|
|
337
337
|
enum chain_signal_state {
|
|
338
338
|
none,
|
|
@@ -350,73 +350,73 @@ declare global {
|
|
|
350
350
|
}
|
|
351
351
|
/**
|
|
352
352
|
* Command given to units describing what they should do.
|
|
353
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
353
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command Online documentation}
|
|
354
354
|
*/
|
|
355
355
|
enum command {
|
|
356
356
|
/**
|
|
357
357
|
* Attack another entity.
|
|
358
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
358
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.attack Online documentation}
|
|
359
359
|
*/
|
|
360
360
|
attack = 0,
|
|
361
361
|
/**
|
|
362
362
|
* Go to a specific position.
|
|
363
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
363
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.go_to_location Online documentation}
|
|
364
364
|
*/
|
|
365
365
|
go_to_location = 1,
|
|
366
366
|
/**
|
|
367
367
|
* Chain commands together, see {@link defines.compound_command}.
|
|
368
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
368
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.compound Online documentation}
|
|
369
369
|
*/
|
|
370
370
|
compound = 2,
|
|
371
371
|
/**
|
|
372
372
|
* Do what your group wants you to do.
|
|
373
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
373
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.group Online documentation}
|
|
374
374
|
*/
|
|
375
375
|
group = 3,
|
|
376
376
|
/**
|
|
377
377
|
* Go to a place and attack what you see.
|
|
378
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
378
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.attack_area Online documentation}
|
|
379
379
|
*/
|
|
380
380
|
attack_area = 4,
|
|
381
381
|
/**
|
|
382
382
|
* Chill.
|
|
383
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
383
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.wander Online documentation}
|
|
384
384
|
*/
|
|
385
385
|
wander = 5,
|
|
386
386
|
/**
|
|
387
387
|
* Flee from another entity.
|
|
388
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
388
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.flee Online documentation}
|
|
389
389
|
*/
|
|
390
390
|
flee = 6,
|
|
391
391
|
/**
|
|
392
392
|
* Stop moving and stay where you are.
|
|
393
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
393
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.stop Online documentation}
|
|
394
394
|
*/
|
|
395
395
|
stop = 7,
|
|
396
396
|
/**
|
|
397
397
|
* Go to a position and build a base there.
|
|
398
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
398
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.build_base Online documentation}
|
|
399
399
|
*/
|
|
400
400
|
build_base = 8,
|
|
401
401
|
}
|
|
402
402
|
/**
|
|
403
403
|
* How commands are joined together in a compound command (see {@link defines.command.compound}).
|
|
404
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
404
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.compound_command Online documentation}
|
|
405
405
|
*/
|
|
406
406
|
enum compound_command {
|
|
407
407
|
/**
|
|
408
408
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
|
409
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
409
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.compound_command.logical_and Online documentation}
|
|
410
410
|
*/
|
|
411
411
|
logical_and,
|
|
412
412
|
/**
|
|
413
413
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
|
414
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
414
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.compound_command.logical_or Online documentation}
|
|
415
415
|
*/
|
|
416
416
|
logical_or,
|
|
417
417
|
/**
|
|
418
418
|
* Execute all commands in sequence and fail or succeed depending on the return status of the last command.
|
|
419
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
419
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.compound_command.return_last Online documentation}
|
|
420
420
|
*/
|
|
421
421
|
return_last,
|
|
422
422
|
}
|
|
@@ -480,197 +480,197 @@ declare global {
|
|
|
480
480
|
enum type {
|
|
481
481
|
/**
|
|
482
482
|
* {@link LuaContainerControlBehavior}
|
|
483
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
483
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.container Online documentation}
|
|
484
484
|
*/
|
|
485
485
|
container,
|
|
486
486
|
/**
|
|
487
487
|
* {@link LuaGenericOnOffControlBehavior}
|
|
488
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
488
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
|
|
489
489
|
*/
|
|
490
490
|
generic_on_off,
|
|
491
491
|
/**
|
|
492
492
|
* {@link LuaInserterControlBehavior}
|
|
493
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
493
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.inserter Online documentation}
|
|
494
494
|
*/
|
|
495
495
|
inserter,
|
|
496
496
|
/**
|
|
497
497
|
* {@link LuaLampControlBehavior}
|
|
498
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
498
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.lamp Online documentation}
|
|
499
499
|
*/
|
|
500
500
|
lamp,
|
|
501
501
|
/**
|
|
502
502
|
* {@link LuaLogisticContainerControlBehavior}
|
|
503
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
503
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.logistic_container Online documentation}
|
|
504
504
|
*/
|
|
505
505
|
logistic_container,
|
|
506
506
|
/**
|
|
507
507
|
* {@link LuaRoboportControlBehavior}
|
|
508
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
508
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.roboport Online documentation}
|
|
509
509
|
*/
|
|
510
510
|
roboport,
|
|
511
511
|
/**
|
|
512
512
|
* {@link LuaSingleFluidBoxControlBehavior}
|
|
513
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
513
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.single_fluid_box Online documentation}
|
|
514
514
|
*/
|
|
515
515
|
single_fluid_box,
|
|
516
516
|
/**
|
|
517
517
|
* {@link LuaTrainStopControlBehavior}
|
|
518
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
518
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.train_stop Online documentation}
|
|
519
519
|
*/
|
|
520
520
|
train_stop,
|
|
521
521
|
/**
|
|
522
522
|
* {@link LuaDeciderCombinatorControlBehavior}
|
|
523
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
523
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
|
|
524
524
|
*/
|
|
525
525
|
decider_combinator,
|
|
526
526
|
/**
|
|
527
527
|
* {@link LuaArithmeticCombinatorControlBehavior}
|
|
528
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
528
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
|
|
529
529
|
*/
|
|
530
530
|
arithmetic_combinator,
|
|
531
531
|
/**
|
|
532
532
|
* {@link LuaConstantCombinatorControlBehavior}
|
|
533
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
533
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
|
|
534
534
|
*/
|
|
535
535
|
constant_combinator,
|
|
536
536
|
/**
|
|
537
537
|
* {@link LuaTransportBeltControlBehavior}
|
|
538
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
538
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.transport_belt Online documentation}
|
|
539
539
|
*/
|
|
540
540
|
transport_belt,
|
|
541
541
|
/**
|
|
542
542
|
* {@link LuaAccumulatorControlBehavior}
|
|
543
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
543
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.accumulator Online documentation}
|
|
544
544
|
*/
|
|
545
545
|
accumulator,
|
|
546
546
|
/**
|
|
547
547
|
* {@link LuaRailSignalBaseControlBehavior}
|
|
548
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
548
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.rail_signal Online documentation}
|
|
549
549
|
*/
|
|
550
550
|
rail_signal,
|
|
551
551
|
/**
|
|
552
552
|
* {@link LuaRailSignalBaseControlBehavior}
|
|
553
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
553
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
|
|
554
554
|
*/
|
|
555
555
|
rail_chain_signal,
|
|
556
556
|
/**
|
|
557
557
|
* {@link LuaWallControlBehavior}
|
|
558
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
558
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.wall Online documentation}
|
|
559
559
|
*/
|
|
560
560
|
wall,
|
|
561
561
|
/**
|
|
562
562
|
* {@link LuaMiningDrillControlBehavior}
|
|
563
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
563
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.mining_drill Online documentation}
|
|
564
564
|
*/
|
|
565
565
|
mining_drill,
|
|
566
566
|
/**
|
|
567
567
|
* {@link LuaProgrammableSpeakerControlBehavior}
|
|
568
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
568
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
|
|
569
569
|
*/
|
|
570
570
|
programmable_speaker,
|
|
571
571
|
/**
|
|
572
572
|
* {@link LuaAssemblingMachineControlBehavior}
|
|
573
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
573
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.assembling_machine Online documentation}
|
|
574
574
|
*/
|
|
575
575
|
assembling_machine,
|
|
576
576
|
/**
|
|
577
577
|
* {@link LuaPumpControlBehavior}
|
|
578
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
578
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.pump Online documentation}
|
|
579
579
|
*/
|
|
580
580
|
pump,
|
|
581
581
|
/**
|
|
582
582
|
* {@link LuaSelectorCombinatorControlBehavior}
|
|
583
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
583
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.selector_combinator Online documentation}
|
|
584
584
|
*/
|
|
585
585
|
selector_combinator,
|
|
586
586
|
/**
|
|
587
587
|
* {@link LuaRocketSiloControlBehavior}
|
|
588
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
588
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.rocket_silo Online documentation}
|
|
589
589
|
*/
|
|
590
590
|
rocket_silo,
|
|
591
591
|
/**
|
|
592
592
|
* {@link LuaTurretControlBehavior}
|
|
593
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
593
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.turret Online documentation}
|
|
594
594
|
*/
|
|
595
595
|
turret,
|
|
596
596
|
/**
|
|
597
597
|
* {@link LuaReactorControlBehavior}
|
|
598
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
598
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.reactor Online documentation}
|
|
599
599
|
*/
|
|
600
600
|
reactor,
|
|
601
601
|
/**
|
|
602
602
|
* {@link LuaSpacePlatformHubControlBehavior}
|
|
603
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
603
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.space_platform_hub Online documentation}
|
|
604
604
|
*/
|
|
605
605
|
space_platform_hub,
|
|
606
606
|
/**
|
|
607
607
|
* {@link LuaArtilleryTurretControlBehavior}
|
|
608
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
608
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.artillery_turret Online documentation}
|
|
609
609
|
*/
|
|
610
610
|
artillery_turret,
|
|
611
611
|
/**
|
|
612
612
|
* {@link LuaAsteroidCollectorControlBehavior}
|
|
613
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
613
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.asteroid_collector Online documentation}
|
|
614
614
|
*/
|
|
615
615
|
asteroid_collector,
|
|
616
616
|
/**
|
|
617
617
|
* {@link LuaRadarControlBehavior}
|
|
618
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
618
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.radar Online documentation}
|
|
619
619
|
*/
|
|
620
620
|
radar,
|
|
621
621
|
/**
|
|
622
622
|
* {@link LuaDisplayPanelControlBehavior}
|
|
623
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
623
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.display_panel Online documentation}
|
|
624
624
|
*/
|
|
625
625
|
display_panel,
|
|
626
626
|
/**
|
|
627
627
|
* {@link LuaLoaderControlBehavior}
|
|
628
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
628
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.loader Online documentation}
|
|
629
629
|
*/
|
|
630
630
|
loader,
|
|
631
631
|
/**
|
|
632
632
|
* {@link LuaCargoLandingPadControlBehavior}
|
|
633
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
633
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.cargo_landing_pad Online documentation}
|
|
634
634
|
*/
|
|
635
635
|
cargo_landing_pad,
|
|
636
636
|
/**
|
|
637
637
|
* {@link LuaAgriculturalTowerControlBehavior}
|
|
638
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
638
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.agricultural_tower Online documentation}
|
|
639
639
|
*/
|
|
640
640
|
agricultural_tower,
|
|
641
641
|
/**
|
|
642
642
|
* {@link LuaFurnaceControlBehavior}
|
|
643
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
643
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.furnace Online documentation}
|
|
644
644
|
*/
|
|
645
645
|
furnace,
|
|
646
646
|
/**
|
|
647
647
|
* {@link LuaProxyContainerControlBehavior}
|
|
648
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
648
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.proxy_container Online documentation}
|
|
649
649
|
*/
|
|
650
650
|
proxy_container,
|
|
651
651
|
/**
|
|
652
652
|
* {@link LuaSplitterControlBehavior}
|
|
653
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
653
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.splitter Online documentation}
|
|
654
654
|
*/
|
|
655
655
|
splitter,
|
|
656
656
|
/**
|
|
657
657
|
* {@link LuaLabControlBehavior}
|
|
658
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
658
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.lab Online documentation}
|
|
659
659
|
*/
|
|
660
660
|
lab,
|
|
661
661
|
/**
|
|
662
662
|
* {@link LuaHeatPipeControlBehavior}
|
|
663
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
663
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.heat_pipe Online documentation}
|
|
664
664
|
*/
|
|
665
665
|
heat_pipe,
|
|
666
666
|
/**
|
|
667
667
|
* {@link LuaBoilerControlBehavior}
|
|
668
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
668
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.boiler Online documentation}
|
|
669
669
|
*/
|
|
670
670
|
boiler,
|
|
671
671
|
/**
|
|
672
672
|
* {@link LuaLandMineControlBehavior}
|
|
673
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
673
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.land_mine Online documentation}
|
|
674
674
|
*/
|
|
675
675
|
land_mine,
|
|
676
676
|
}
|
|
@@ -678,37 +678,37 @@ declare global {
|
|
|
678
678
|
enum controllers {
|
|
679
679
|
/**
|
|
680
680
|
* Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
|
|
681
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
681
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.controllers.ghost Online documentation}
|
|
682
682
|
*/
|
|
683
683
|
ghost,
|
|
684
684
|
/**
|
|
685
685
|
* The controller controls a character. This is the default controller in freeplay.
|
|
686
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
686
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.controllers.character Online documentation}
|
|
687
687
|
*/
|
|
688
688
|
character,
|
|
689
689
|
/**
|
|
690
690
|
* The controller isn't tied to a character. This is the default controller in sandbox.
|
|
691
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
691
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.controllers.god Online documentation}
|
|
692
692
|
*/
|
|
693
693
|
god,
|
|
694
694
|
/**
|
|
695
695
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
|
696
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
696
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.controllers.editor Online documentation}
|
|
697
697
|
*/
|
|
698
698
|
editor,
|
|
699
699
|
/**
|
|
700
700
|
* The player can't interact with the world, and the camera pans around in a predefined manner.
|
|
701
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
701
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.controllers.cutscene Online documentation}
|
|
702
702
|
*/
|
|
703
703
|
cutscene,
|
|
704
704
|
/**
|
|
705
705
|
* Can't change anything in the world but can view anything.
|
|
706
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
706
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.controllers.spectator Online documentation}
|
|
707
707
|
*/
|
|
708
708
|
spectator,
|
|
709
709
|
/**
|
|
710
710
|
* Can't move/change items but can build ghosts/change settings.
|
|
711
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
711
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.controllers.remote Online documentation}
|
|
712
712
|
*/
|
|
713
713
|
remote,
|
|
714
714
|
}
|
|
@@ -767,22 +767,22 @@ declare global {
|
|
|
767
767
|
enum distraction {
|
|
768
768
|
/**
|
|
769
769
|
* Perform command even if someone attacks the unit.
|
|
770
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
770
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.distraction.none Online documentation}
|
|
771
771
|
*/
|
|
772
772
|
none,
|
|
773
773
|
/**
|
|
774
774
|
* Attack closer enemy entities with force.
|
|
775
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
775
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.distraction.by_enemy Online documentation}
|
|
776
776
|
*/
|
|
777
777
|
by_enemy,
|
|
778
778
|
/**
|
|
779
779
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
|
780
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
780
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.distraction.by_anything Online documentation}
|
|
781
781
|
*/
|
|
782
782
|
by_anything,
|
|
783
783
|
/**
|
|
784
784
|
* Attack when attacked.
|
|
785
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
785
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.distraction.by_damage Online documentation}
|
|
786
786
|
*/
|
|
787
787
|
by_damage,
|
|
788
788
|
}
|
|
@@ -802,12 +802,12 @@ declare global {
|
|
|
802
802
|
normal,
|
|
803
803
|
/**
|
|
804
804
|
* Used by ghosts.
|
|
805
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
805
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.ghost Online documentation}
|
|
806
806
|
*/
|
|
807
807
|
ghost,
|
|
808
808
|
/**
|
|
809
809
|
* Only used if set through {@link import("factorio:prototype").ContainerPrototype#default_status ContainerPrototype::default_status}.
|
|
810
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
810
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.broken Online documentation}
|
|
811
811
|
*/
|
|
812
812
|
broken,
|
|
813
813
|
no_power,
|
|
@@ -821,297 +821,297 @@ declare global {
|
|
|
821
821
|
marked_for_deconstruction,
|
|
822
822
|
/**
|
|
823
823
|
* Used by space platform hubs.
|
|
824
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
824
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.paused Online documentation}
|
|
825
825
|
*/
|
|
826
826
|
paused,
|
|
827
827
|
/**
|
|
828
828
|
* Used by generators and solar panels.
|
|
829
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
829
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
|
|
830
830
|
*/
|
|
831
831
|
not_plugged_in_electric_network,
|
|
832
832
|
/**
|
|
833
833
|
* Used by power switches.
|
|
834
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
834
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.networks_connected Online documentation}
|
|
835
835
|
*/
|
|
836
836
|
networks_connected,
|
|
837
837
|
/**
|
|
838
838
|
* Used by power switches.
|
|
839
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
839
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.networks_disconnected Online documentation}
|
|
840
840
|
*/
|
|
841
841
|
networks_disconnected,
|
|
842
842
|
/**
|
|
843
843
|
* Used by accumulators.
|
|
844
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
844
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.charging Online documentation}
|
|
845
845
|
*/
|
|
846
846
|
charging,
|
|
847
847
|
/**
|
|
848
848
|
* Used by accumulators.
|
|
849
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
849
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.discharging Online documentation}
|
|
850
850
|
*/
|
|
851
851
|
discharging,
|
|
852
852
|
/**
|
|
853
853
|
* Used by accumulators.
|
|
854
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
854
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.fully_charged Online documentation}
|
|
855
855
|
*/
|
|
856
856
|
fully_charged,
|
|
857
857
|
/**
|
|
858
858
|
* Used by logistic containers.
|
|
859
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
859
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
|
|
860
860
|
*/
|
|
861
861
|
out_of_logistic_network,
|
|
862
862
|
/**
|
|
863
863
|
* Used by assembling machines.
|
|
864
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
864
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_recipe Online documentation}
|
|
865
865
|
*/
|
|
866
866
|
no_recipe,
|
|
867
867
|
/**
|
|
868
868
|
* Used by furnaces.
|
|
869
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
869
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_ingredients Online documentation}
|
|
870
870
|
*/
|
|
871
871
|
no_ingredients,
|
|
872
872
|
/**
|
|
873
873
|
* Used by boilers, fluid turrets, and fluid energy sources: Boiler has no fluid to work with.
|
|
874
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
874
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_input_fluid Online documentation}
|
|
875
875
|
*/
|
|
876
876
|
no_input_fluid,
|
|
877
877
|
/**
|
|
878
878
|
* Used by labs.
|
|
879
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
879
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_research_in_progress Online documentation}
|
|
880
880
|
*/
|
|
881
881
|
no_research_in_progress,
|
|
882
882
|
/**
|
|
883
883
|
* Used by mining drills.
|
|
884
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
884
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_minable_resources Online documentation}
|
|
885
885
|
*/
|
|
886
886
|
no_minable_resources,
|
|
887
887
|
/**
|
|
888
888
|
* Used by cargo bays.
|
|
889
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
889
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.hatches_blocked_by_elevated_rail Online documentation}
|
|
890
890
|
*/
|
|
891
891
|
hatches_blocked_by_elevated_rail,
|
|
892
892
|
/**
|
|
893
893
|
* Used by cargo bays.
|
|
894
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
894
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.not_connected_to_hub_or_pad Online documentation}
|
|
895
895
|
*/
|
|
896
896
|
not_connected_to_hub_or_pad,
|
|
897
897
|
/**
|
|
898
898
|
* Used by some cargo bays.
|
|
899
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
899
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.too_far_from_pad_to_unload Online documentation}
|
|
900
900
|
*/
|
|
901
901
|
too_far_from_pad_to_unload,
|
|
902
902
|
/**
|
|
903
903
|
* Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
|
|
904
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
904
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.low_input_fluid Online documentation}
|
|
905
905
|
*/
|
|
906
906
|
low_input_fluid,
|
|
907
907
|
/**
|
|
908
908
|
* Used by crafting machines.
|
|
909
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
909
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
|
|
910
910
|
*/
|
|
911
911
|
fluid_ingredient_shortage,
|
|
912
912
|
/**
|
|
913
913
|
* Used by crafting machines, boilers, burner energy sources, and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
|
|
914
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
914
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.full_output Online documentation}
|
|
915
915
|
*/
|
|
916
916
|
full_output,
|
|
917
917
|
/**
|
|
918
918
|
* Used by agricultural towers.
|
|
919
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
919
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.not_enough_space_in_output Online documentation}
|
|
920
920
|
*/
|
|
921
921
|
not_enough_space_in_output,
|
|
922
922
|
/**
|
|
923
923
|
* Used by burner energy sources.
|
|
924
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
924
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
|
|
925
925
|
*/
|
|
926
926
|
full_burnt_result_output,
|
|
927
927
|
/**
|
|
928
928
|
* Used by crafting machines.
|
|
929
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
929
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
|
|
930
930
|
*/
|
|
931
931
|
item_ingredient_shortage,
|
|
932
932
|
/**
|
|
933
933
|
* Used by mining drills when the mining fluid is missing.
|
|
934
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
934
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.missing_required_fluid Online documentation}
|
|
935
935
|
*/
|
|
936
936
|
missing_required_fluid,
|
|
937
937
|
/**
|
|
938
938
|
* Used by labs.
|
|
939
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
939
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.missing_science_packs Online documentation}
|
|
940
940
|
*/
|
|
941
941
|
missing_science_packs,
|
|
942
942
|
/**
|
|
943
943
|
* Used by inserters.
|
|
944
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
944
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
|
|
945
945
|
*/
|
|
946
946
|
waiting_for_source_items,
|
|
947
947
|
/**
|
|
948
948
|
* Used by inserters when wait_for_full_hand is set.
|
|
949
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
949
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_more_items Online documentation}
|
|
950
950
|
*/
|
|
951
951
|
waiting_for_more_items,
|
|
952
952
|
/**
|
|
953
953
|
* Used by inserters, mining drills, and crafting machines using vector_to_place_result.
|
|
954
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
954
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
|
|
955
955
|
*/
|
|
956
956
|
waiting_for_space_in_destination,
|
|
957
957
|
/**
|
|
958
958
|
* Used by the rocket silo.
|
|
959
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
959
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
|
|
960
960
|
*/
|
|
961
961
|
preparing_rocket_for_launch,
|
|
962
962
|
/**
|
|
963
963
|
* Used by the rocket silo.
|
|
964
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
964
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
|
|
965
965
|
*/
|
|
966
966
|
waiting_to_launch_rocket,
|
|
967
967
|
/**
|
|
968
968
|
* Used by the rocket silo.
|
|
969
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
969
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_space_in_platform_hub Online documentation}
|
|
970
970
|
*/
|
|
971
971
|
waiting_for_space_in_platform_hub,
|
|
972
972
|
/**
|
|
973
973
|
* Used by the rocket silo.
|
|
974
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
974
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.launching_rocket Online documentation}
|
|
975
975
|
*/
|
|
976
976
|
launching_rocket,
|
|
977
977
|
/**
|
|
978
978
|
* Used by thrusters.
|
|
979
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
979
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.thrust_not_required Online documentation}
|
|
980
980
|
*/
|
|
981
981
|
thrust_not_required,
|
|
982
982
|
/**
|
|
983
983
|
* Used by space platform hubs.
|
|
984
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
984
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.on_the_way Online documentation}
|
|
985
985
|
*/
|
|
986
986
|
on_the_way,
|
|
987
987
|
/**
|
|
988
988
|
* Used by space platform hubs.
|
|
989
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
989
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_in_orbit Online documentation}
|
|
990
990
|
*/
|
|
991
991
|
waiting_in_orbit,
|
|
992
992
|
/**
|
|
993
993
|
* Used by trains.
|
|
994
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
994
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_at_stop Online documentation}
|
|
995
995
|
*/
|
|
996
996
|
waiting_at_stop,
|
|
997
997
|
/**
|
|
998
998
|
* Used by trains.
|
|
999
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
999
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_upgrade Online documentation}
|
|
1000
1000
|
*/
|
|
1001
1001
|
waiting_for_upgrade,
|
|
1002
1002
|
/**
|
|
1003
1003
|
* Used by space platform hubs.
|
|
1004
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1004
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_rockets_to_arrive Online documentation}
|
|
1005
1005
|
*/
|
|
1006
1006
|
waiting_for_rockets_to_arrive,
|
|
1007
1007
|
/**
|
|
1008
1008
|
* Used by space platform hubs.
|
|
1009
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1009
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_to_clear_drop_slots Online documentation}
|
|
1010
1010
|
*/
|
|
1011
1011
|
waiting_to_clear_drop_slots,
|
|
1012
1012
|
/**
|
|
1013
1013
|
* Used by space platform hubs.
|
|
1014
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1014
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.not_enough_thrust Online documentation}
|
|
1015
1015
|
*/
|
|
1016
1016
|
not_enough_thrust,
|
|
1017
1017
|
/**
|
|
1018
1018
|
* Used by trains.
|
|
1019
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1019
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.destination_stop_full Online documentation}
|
|
1020
1020
|
*/
|
|
1021
1021
|
destination_stop_full,
|
|
1022
1022
|
/**
|
|
1023
1023
|
* Used by trains and space platform hubs.
|
|
1024
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1024
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_path Online documentation}
|
|
1025
1025
|
*/
|
|
1026
1026
|
no_path,
|
|
1027
1027
|
/**
|
|
1028
1028
|
* Used by beacons.
|
|
1029
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1029
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
|
|
1030
1030
|
*/
|
|
1031
1031
|
no_modules_to_transmit,
|
|
1032
1032
|
/**
|
|
1033
1033
|
* Used by roboports.
|
|
1034
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1034
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
|
|
1035
1035
|
*/
|
|
1036
1036
|
recharging_after_power_outage,
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Used by inserters targeting entity ghosts.
|
|
1039
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1039
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
|
|
1040
1040
|
*/
|
|
1041
1041
|
waiting_for_target_to_be_built,
|
|
1042
1042
|
/**
|
|
1043
1043
|
* Used by inserters targeting rails.
|
|
1044
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1044
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_train Online documentation}
|
|
1045
1045
|
*/
|
|
1046
1046
|
waiting_for_train,
|
|
1047
1047
|
/**
|
|
1048
1048
|
* Used by ammo turrets.
|
|
1049
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1049
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_ammo Online documentation}
|
|
1050
1050
|
*/
|
|
1051
1051
|
no_ammo,
|
|
1052
1052
|
/**
|
|
1053
1053
|
* Used by heat energy sources.
|
|
1054
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1054
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.low_temperature Online documentation}
|
|
1055
1055
|
*/
|
|
1056
1056
|
low_temperature,
|
|
1057
1057
|
/**
|
|
1058
|
-
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
|
1059
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1058
|
+
* Used by constant combinators: Combinator is turned off via switch in GUI. Also used by inserters.
|
|
1059
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.disabled Online documentation}
|
|
1060
1060
|
*/
|
|
1061
1061
|
disabled,
|
|
1062
1062
|
/**
|
|
1063
1063
|
* Used by lamps.
|
|
1064
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1064
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
|
|
1065
1065
|
*/
|
|
1066
1066
|
turned_off_during_daytime,
|
|
1067
1067
|
/**
|
|
1068
1068
|
* Used by rail signals.
|
|
1069
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1069
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
|
|
1070
1070
|
*/
|
|
1071
1071
|
not_connected_to_rail,
|
|
1072
1072
|
/**
|
|
1073
1073
|
* Used by rail signals.
|
|
1074
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1074
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.cant_divide_segments Online documentation}
|
|
1075
1075
|
*/
|
|
1076
1076
|
cant_divide_segments,
|
|
1077
1077
|
/**
|
|
1078
1078
|
* Used by filter inserters.
|
|
1079
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1079
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_filter Online documentation}
|
|
1080
1080
|
*/
|
|
1081
1081
|
no_filter,
|
|
1082
1082
|
/**
|
|
1083
1083
|
* Used by agricultural towers.
|
|
1084
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1084
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_spot_seedable_by_inputs Online documentation}
|
|
1085
1085
|
*/
|
|
1086
1086
|
no_spot_seedable_by_inputs,
|
|
1087
1087
|
/**
|
|
1088
1088
|
* Used by agricultural towers.
|
|
1089
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1089
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_plants_to_grow Online documentation}
|
|
1090
1090
|
*/
|
|
1091
1091
|
waiting_for_plants_to_grow,
|
|
1092
1092
|
/**
|
|
1093
1093
|
* Used by asteroid collectors.
|
|
1094
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1094
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.computing_navigation Online documentation}
|
|
1095
1095
|
*/
|
|
1096
1096
|
computing_navigation,
|
|
1097
1097
|
/**
|
|
1098
1098
|
* Used by pipes, pipes to ground, and storage tanks.
|
|
1099
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1099
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.pipeline_overextended Online documentation}
|
|
1100
1100
|
*/
|
|
1101
1101
|
pipeline_overextended,
|
|
1102
1102
|
/**
|
|
1103
1103
|
* Used by assembling machines.
|
|
1104
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1104
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.recipe_not_researched Online documentation}
|
|
1105
1105
|
*/
|
|
1106
1106
|
recipe_not_researched,
|
|
1107
1107
|
/**
|
|
1108
1108
|
* Used by assembling machines.
|
|
1109
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1109
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.recipe_is_parameter Online documentation}
|
|
1110
1110
|
*/
|
|
1111
1111
|
recipe_is_parameter,
|
|
1112
1112
|
/**
|
|
1113
1113
|
* Used by land mines.
|
|
1114
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1114
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.armed Online documentation}
|
|
1115
1115
|
*/
|
|
1116
1116
|
armed,
|
|
1117
1117
|
}
|
|
@@ -1121,8 +1121,8 @@ declare global {
|
|
|
1121
1121
|
yellow,
|
|
1122
1122
|
}
|
|
1123
1123
|
/**
|
|
1124
|
-
* See the {@linkplain https://lua-api.factorio.com/2.1.
|
|
1125
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1124
|
+
* See the {@linkplain https://lua-api.factorio.com/2.1.9/events.html events page} for more info on what events contain and when they get raised.
|
|
1125
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.events Online documentation}
|
|
1126
1126
|
*/
|
|
1127
1127
|
namespace events {
|
|
1128
1128
|
/**
|
|
@@ -2084,8 +2084,8 @@ declare global {
|
|
|
2084
2084
|
const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent, LuaScriptRaisedTeleportedEventFilter>
|
|
2085
2085
|
}
|
|
2086
2086
|
/**
|
|
2087
|
-
* See the {@linkplain https://lua-api.factorio.com/2.1.
|
|
2088
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2087
|
+
* See the {@linkplain https://lua-api.factorio.com/2.1.9/events.html events page} for more info on what events contain and when they get raised.
|
|
2088
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.events Online documentation}
|
|
2089
2089
|
*/
|
|
2090
2090
|
type events = (typeof events)[keyof typeof events]
|
|
2091
2091
|
enum flow_precision_index {
|
|
@@ -2101,17 +2101,17 @@ declare global {
|
|
|
2101
2101
|
enum game_controller_interaction {
|
|
2102
2102
|
/**
|
|
2103
2103
|
* Game controller will always hover this element regardless of type or state.
|
|
2104
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2104
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.game_controller_interaction.always Online documentation}
|
|
2105
2105
|
*/
|
|
2106
2106
|
always,
|
|
2107
2107
|
/**
|
|
2108
2108
|
* Never hover this element with a game controller.
|
|
2109
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2109
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.game_controller_interaction.never Online documentation}
|
|
2110
2110
|
*/
|
|
2111
2111
|
never,
|
|
2112
2112
|
/**
|
|
2113
2113
|
* Hover according to the element type and implementation.
|
|
2114
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2114
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.game_controller_interaction.normal Online documentation}
|
|
2115
2115
|
*/
|
|
2116
2116
|
normal,
|
|
2117
2117
|
}
|
|
@@ -2151,6 +2151,7 @@ declare global {
|
|
|
2151
2151
|
activate_interrupt,
|
|
2152
2152
|
activate_paste,
|
|
2153
2153
|
add_decider_combinator_condition,
|
|
2154
|
+
add_decider_combinator_else_output,
|
|
2154
2155
|
add_decider_combinator_output,
|
|
2155
2156
|
add_logistic_section,
|
|
2156
2157
|
add_permission_group,
|
|
@@ -2226,6 +2227,7 @@ declare global {
|
|
|
2226
2227
|
destroy_opened_item,
|
|
2227
2228
|
disconnect_rolling_stock,
|
|
2228
2229
|
drag_decider_combinator_condition,
|
|
2230
|
+
drag_decider_combinator_else_output,
|
|
2229
2231
|
drag_decider_combinator_output,
|
|
2230
2232
|
drag_research_condition,
|
|
2231
2233
|
drag_train_schedule,
|
|
@@ -2281,6 +2283,7 @@ declare global {
|
|
|
2281
2283
|
market_offer,
|
|
2282
2284
|
mod_settings_changed,
|
|
2283
2285
|
modify_decider_combinator_condition,
|
|
2286
|
+
modify_decider_combinator_else_output,
|
|
2284
2287
|
modify_decider_combinator_output,
|
|
2285
2288
|
move_pin,
|
|
2286
2289
|
move_research,
|
|
@@ -2320,6 +2323,7 @@ declare global {
|
|
|
2320
2323
|
remote_view_surface,
|
|
2321
2324
|
remove_cables,
|
|
2322
2325
|
remove_decider_combinator_condition,
|
|
2326
|
+
remove_decider_combinator_else_output,
|
|
2323
2327
|
remove_decider_combinator_output,
|
|
2324
2328
|
remove_logistic_section,
|
|
2325
2329
|
remove_pin,
|
|
@@ -2466,7 +2470,7 @@ declare global {
|
|
|
2466
2470
|
robot_repair,
|
|
2467
2471
|
/**
|
|
2468
2472
|
* Used for ejected items, or items held by inserters that can't be inserted due the recipe being changed with the circuit network.
|
|
2469
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2473
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.inventory.assembling_machine_dump Online documentation}
|
|
2470
2474
|
*/
|
|
2471
2475
|
assembling_machine_dump,
|
|
2472
2476
|
lab_input,
|
|
@@ -2479,7 +2483,7 @@ declare global {
|
|
|
2479
2483
|
rocket_silo_attached_cargo_unit,
|
|
2480
2484
|
/**
|
|
2481
2485
|
* Inventory of cargo pod.
|
|
2482
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2486
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.inventory.cargo_unit Online documentation}
|
|
2483
2487
|
*/
|
|
2484
2488
|
cargo_unit,
|
|
2485
2489
|
car_trunk,
|
|
@@ -2508,7 +2512,7 @@ declare global {
|
|
|
2508
2512
|
crafter_modules,
|
|
2509
2513
|
/**
|
|
2510
2514
|
* 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.
|
|
2511
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2515
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.inventory.crafter_trash Online documentation}
|
|
2512
2516
|
*/
|
|
2513
2517
|
crafter_trash,
|
|
2514
2518
|
asteroid_collector_output,
|
|
@@ -2566,12 +2570,12 @@ declare global {
|
|
|
2566
2570
|
circuit_controlled,
|
|
2567
2571
|
/**
|
|
2568
2572
|
* Used by rocket silos.
|
|
2569
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2573
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
|
|
2570
2574
|
*/
|
|
2571
2575
|
transitional_request_controlled,
|
|
2572
2576
|
/**
|
|
2573
2577
|
* Used by space platform hubs.
|
|
2574
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2578
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
|
|
2575
2579
|
*/
|
|
2576
2580
|
request_missing_materials_controlled,
|
|
2577
2581
|
}
|
|
@@ -2590,17 +2594,17 @@ declare global {
|
|
|
2590
2594
|
enum print_skip {
|
|
2591
2595
|
/**
|
|
2592
2596
|
* Print will not be skipped.
|
|
2593
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2597
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.print_skip.never Online documentation}
|
|
2594
2598
|
*/
|
|
2595
2599
|
never,
|
|
2596
2600
|
/**
|
|
2597
2601
|
* Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
|
|
2598
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2602
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.print_skip.if_redundant Online documentation}
|
|
2599
2603
|
*/
|
|
2600
2604
|
if_redundant,
|
|
2601
2605
|
/**
|
|
2602
2606
|
* Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
|
|
2603
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2607
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.print_skip.if_visible Online documentation}
|
|
2604
2608
|
*/
|
|
2605
2609
|
if_visible,
|
|
2606
2610
|
}
|
|
@@ -2611,11 +2615,11 @@ declare global {
|
|
|
2611
2615
|
}
|
|
2612
2616
|
/**
|
|
2613
2617
|
* 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, ...}`.
|
|
2614
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2618
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.prototypes Online documentation}
|
|
2615
2619
|
*/
|
|
2616
2620
|
interface prototypes {
|
|
2617
|
-
achievement: {
|
|
2618
|
-
achievement: 0
|
|
2621
|
+
"achievement": {
|
|
2622
|
+
"achievement": 0
|
|
2619
2623
|
"build-entity-achievement": 0
|
|
2620
2624
|
"change-surface-achievement": 0
|
|
2621
2625
|
"combat-robot-count-achievement": 0
|
|
@@ -2660,7 +2664,7 @@ declare global {
|
|
|
2660
2664
|
"ammo-category": {
|
|
2661
2665
|
"ammo-category": 0
|
|
2662
2666
|
}
|
|
2663
|
-
animation: {
|
|
2667
|
+
"animation": {
|
|
2664
2668
|
animation: 0
|
|
2665
2669
|
}
|
|
2666
2670
|
"asteroid-chunk": {
|
|
@@ -2684,7 +2688,7 @@ declare global {
|
|
|
2684
2688
|
"damage-type": {
|
|
2685
2689
|
"damage-type": 0
|
|
2686
2690
|
}
|
|
2687
|
-
decorative: {
|
|
2691
|
+
"decorative": {
|
|
2688
2692
|
"optimized-decorative": 0
|
|
2689
2693
|
}
|
|
2690
2694
|
"deliver-category": {
|
|
@@ -2696,37 +2700,37 @@ declare global {
|
|
|
2696
2700
|
"editor-controller": {
|
|
2697
2701
|
"editor-controller": 0
|
|
2698
2702
|
}
|
|
2699
|
-
entity: {
|
|
2700
|
-
accumulator: 0
|
|
2703
|
+
"entity": {
|
|
2704
|
+
"accumulator": 0
|
|
2701
2705
|
"agricultural-tower": 0
|
|
2702
2706
|
"ammo-turret": 0
|
|
2703
2707
|
"arithmetic-combinator": 0
|
|
2704
|
-
arrow: 0
|
|
2708
|
+
"arrow": 0
|
|
2705
2709
|
"artillery-flare": 0
|
|
2706
2710
|
"artillery-projectile": 0
|
|
2707
2711
|
"artillery-turret": 0
|
|
2708
2712
|
"artillery-wagon": 0
|
|
2709
2713
|
"assembling-machine": 0
|
|
2710
|
-
asteroid: 0
|
|
2714
|
+
"asteroid": 0
|
|
2711
2715
|
"asteroid-collector": 0
|
|
2712
|
-
beacon: 0
|
|
2713
|
-
beam: 0
|
|
2714
|
-
boiler: 0
|
|
2716
|
+
"beacon": 0
|
|
2717
|
+
"beam": 0
|
|
2718
|
+
"boiler": 0
|
|
2715
2719
|
"burner-generator": 0
|
|
2716
2720
|
"capture-robot": 0
|
|
2717
|
-
car: 0
|
|
2721
|
+
"car": 0
|
|
2718
2722
|
"cargo-bay": 0
|
|
2719
2723
|
"cargo-landing-pad": 0
|
|
2720
2724
|
"cargo-pod": 0
|
|
2721
2725
|
"cargo-wagon": 0
|
|
2722
|
-
character: 0
|
|
2726
|
+
"character": 0
|
|
2723
2727
|
"character-corpse": 0
|
|
2724
|
-
cliff: 0
|
|
2728
|
+
"cliff": 0
|
|
2725
2729
|
"combat-robot": 0
|
|
2726
2730
|
"constant-combinator": 0
|
|
2727
2731
|
"construction-robot": 0
|
|
2728
|
-
container: 0
|
|
2729
|
-
corpse: 0
|
|
2732
|
+
"container": 0
|
|
2733
|
+
"corpse": 0
|
|
2730
2734
|
"curved-rail-a": 0
|
|
2731
2735
|
"curved-rail-b": 0
|
|
2732
2736
|
"decider-combinator": 0
|
|
@@ -2740,16 +2744,16 @@ declare global {
|
|
|
2740
2744
|
"elevated-half-diagonal-rail": 0
|
|
2741
2745
|
"elevated-straight-rail": 0
|
|
2742
2746
|
"entity-ghost": 0
|
|
2743
|
-
explosion: 0
|
|
2744
|
-
fire: 0
|
|
2745
|
-
fish: 0
|
|
2747
|
+
"explosion": 0
|
|
2748
|
+
"fire": 0
|
|
2749
|
+
"fish": 0
|
|
2746
2750
|
"fluid-turret": 0
|
|
2747
2751
|
"fluid-wagon": 0
|
|
2748
|
-
furnace: 0
|
|
2752
|
+
"furnace": 0
|
|
2749
2753
|
"fusion-generator": 0
|
|
2750
2754
|
"fusion-reactor": 0
|
|
2751
|
-
gate: 0
|
|
2752
|
-
generator: 0
|
|
2755
|
+
"gate": 0
|
|
2756
|
+
"generator": 0
|
|
2753
2757
|
"half-diagonal-rail": 0
|
|
2754
2758
|
"heat-interface": 0
|
|
2755
2759
|
"heat-pipe": 0
|
|
@@ -2757,50 +2761,50 @@ declare global {
|
|
|
2757
2761
|
"infinity-cargo-wagon": 0
|
|
2758
2762
|
"infinity-container": 0
|
|
2759
2763
|
"infinity-pipe": 0
|
|
2760
|
-
inserter: 0
|
|
2764
|
+
"inserter": 0
|
|
2761
2765
|
"item-entity": 0
|
|
2762
2766
|
"item-request-proxy": 0
|
|
2763
|
-
lab: 0
|
|
2764
|
-
lamp: 0
|
|
2767
|
+
"lab": 0
|
|
2768
|
+
"lamp": 0
|
|
2765
2769
|
"land-mine": 0
|
|
2766
2770
|
"lane-splitter": 0
|
|
2767
2771
|
"legacy-curved-rail": 0
|
|
2768
2772
|
"legacy-straight-rail": 0
|
|
2769
|
-
lightning: 0
|
|
2773
|
+
"lightning": 0
|
|
2770
2774
|
"lightning-attractor": 0
|
|
2771
2775
|
"linked-belt": 0
|
|
2772
2776
|
"linked-container": 0
|
|
2773
|
-
loader: 0
|
|
2777
|
+
"loader": 0
|
|
2774
2778
|
"loader-1x1": 0
|
|
2775
|
-
locomotive: 0
|
|
2779
|
+
"locomotive": 0
|
|
2776
2780
|
"logistic-container": 0
|
|
2777
2781
|
"logistic-robot": 0
|
|
2778
|
-
market: 0
|
|
2782
|
+
"market": 0
|
|
2779
2783
|
"mining-drill": 0
|
|
2780
2784
|
"offshore-pump": 0
|
|
2781
2785
|
"particle-source": 0
|
|
2782
|
-
pipe: 0
|
|
2786
|
+
"pipe": 0
|
|
2783
2787
|
"pipe-to-ground": 0
|
|
2784
|
-
plant: 0
|
|
2788
|
+
"plant": 0
|
|
2785
2789
|
"player-port": 0
|
|
2786
2790
|
"power-switch": 0
|
|
2787
2791
|
"programmable-speaker": 0
|
|
2788
|
-
projectile: 0
|
|
2792
|
+
"projectile": 0
|
|
2789
2793
|
"proxy-container": 0
|
|
2790
|
-
pump: 0
|
|
2791
|
-
radar: 0
|
|
2794
|
+
"pump": 0
|
|
2795
|
+
"radar": 0
|
|
2792
2796
|
"rail-chain-signal": 0
|
|
2793
2797
|
"rail-ramp": 0
|
|
2794
2798
|
"rail-remnants": 0
|
|
2795
2799
|
"rail-signal": 0
|
|
2796
2800
|
"rail-support": 0
|
|
2797
|
-
reactor: 0
|
|
2798
|
-
resource: 0
|
|
2799
|
-
roboport: 0
|
|
2801
|
+
"reactor": 0
|
|
2802
|
+
"resource": 0
|
|
2803
|
+
"roboport": 0
|
|
2800
2804
|
"rocket-silo": 0
|
|
2801
2805
|
"rocket-silo-rocket": 0
|
|
2802
2806
|
"rocket-silo-rocket-shadow": 0
|
|
2803
|
-
segment: 0
|
|
2807
|
+
"segment": 0
|
|
2804
2808
|
"segmented-unit": 0
|
|
2805
2809
|
"selector-combinator": 0
|
|
2806
2810
|
"simple-entity": 0
|
|
@@ -2813,25 +2817,25 @@ declare global {
|
|
|
2813
2817
|
"spider-leg": 0
|
|
2814
2818
|
"spider-unit": 0
|
|
2815
2819
|
"spider-vehicle": 0
|
|
2816
|
-
splitter: 0
|
|
2817
|
-
sticker: 0
|
|
2820
|
+
"splitter": 0
|
|
2821
|
+
"sticker": 0
|
|
2818
2822
|
"storage-tank": 0
|
|
2819
2823
|
"straight-rail": 0
|
|
2820
|
-
stream: 0
|
|
2824
|
+
"stream": 0
|
|
2821
2825
|
"temporary-container": 0
|
|
2822
|
-
thruster: 0
|
|
2826
|
+
"thruster": 0
|
|
2823
2827
|
"tile-ghost": 0
|
|
2824
2828
|
"train-stop": 0
|
|
2825
2829
|
"transport-belt": 0
|
|
2826
|
-
tree: 0
|
|
2827
|
-
turret: 0
|
|
2830
|
+
"tree": 0
|
|
2831
|
+
"turret": 0
|
|
2828
2832
|
"underground-belt": 0
|
|
2829
|
-
unit: 0
|
|
2833
|
+
"unit": 0
|
|
2830
2834
|
"unit-spawner": 0
|
|
2831
|
-
valve: 0
|
|
2832
|
-
wall: 0
|
|
2835
|
+
"valve": 0
|
|
2836
|
+
"wall": 0
|
|
2833
2837
|
}
|
|
2834
|
-
equipment: {
|
|
2838
|
+
"equipment": {
|
|
2835
2839
|
"active-defense-equipment": 0
|
|
2836
2840
|
"battery-equipment": 0
|
|
2837
2841
|
"belt-immunity-equipment": 0
|
|
@@ -2851,10 +2855,10 @@ declare global {
|
|
|
2851
2855
|
"equipment-grid": {
|
|
2852
2856
|
"equipment-grid": 0
|
|
2853
2857
|
}
|
|
2854
|
-
fluid: {
|
|
2858
|
+
"fluid": {
|
|
2855
2859
|
fluid: 0
|
|
2856
2860
|
}
|
|
2857
|
-
font: {
|
|
2861
|
+
"font": {
|
|
2858
2862
|
font: 0
|
|
2859
2863
|
}
|
|
2860
2864
|
"fuel-category": {
|
|
@@ -2869,27 +2873,27 @@ declare global {
|
|
|
2869
2873
|
"impact-category": {
|
|
2870
2874
|
"impact-category": 0
|
|
2871
2875
|
}
|
|
2872
|
-
item: {
|
|
2873
|
-
ammo: 0
|
|
2874
|
-
armor: 0
|
|
2875
|
-
blueprint: 0
|
|
2876
|
+
"item": {
|
|
2877
|
+
"ammo": 0
|
|
2878
|
+
"armor": 0
|
|
2879
|
+
"blueprint": 0
|
|
2876
2880
|
"blueprint-book": 0
|
|
2877
|
-
capsule: 0
|
|
2881
|
+
"capsule": 0
|
|
2878
2882
|
"copy-paste-tool": 0
|
|
2879
2883
|
"deconstruction-item": 0
|
|
2880
|
-
gun: 0
|
|
2881
|
-
item: 0
|
|
2884
|
+
"gun": 0
|
|
2885
|
+
"item": 0
|
|
2882
2886
|
"item-with-entity-data": 0
|
|
2883
2887
|
"item-with-inventory": 0
|
|
2884
2888
|
"item-with-label": 0
|
|
2885
2889
|
"item-with-tags": 0
|
|
2886
|
-
module: 0
|
|
2890
|
+
"module": 0
|
|
2887
2891
|
"rail-planner": 0
|
|
2888
2892
|
"repair-tool": 0
|
|
2889
2893
|
"selection-tool": 0
|
|
2890
2894
|
"space-platform-starter-pack": 0
|
|
2891
2895
|
"spidertron-remote": 0
|
|
2892
|
-
tool: 0
|
|
2896
|
+
"tool": 0
|
|
2893
2897
|
"upgrade-item": 0
|
|
2894
2898
|
}
|
|
2895
2899
|
"item-group": {
|
|
@@ -2919,19 +2923,19 @@ declare global {
|
|
|
2919
2923
|
"noise-function": {
|
|
2920
2924
|
"noise-function": 0
|
|
2921
2925
|
}
|
|
2922
|
-
particle: {
|
|
2926
|
+
"particle": {
|
|
2923
2927
|
"optimized-particle": 0
|
|
2924
2928
|
}
|
|
2925
|
-
procession: {
|
|
2929
|
+
"procession": {
|
|
2926
2930
|
procession: 0
|
|
2927
2931
|
}
|
|
2928
2932
|
"procession-layer-inheritance-group": {
|
|
2929
2933
|
"procession-layer-inheritance-group": 0
|
|
2930
2934
|
}
|
|
2931
|
-
quality: {
|
|
2935
|
+
"quality": {
|
|
2932
2936
|
quality: 0
|
|
2933
2937
|
}
|
|
2934
|
-
recipe: {
|
|
2938
|
+
"recipe": {
|
|
2935
2939
|
recipe: 0
|
|
2936
2940
|
}
|
|
2937
2941
|
"recipe-category": {
|
|
@@ -2943,35 +2947,35 @@ declare global {
|
|
|
2943
2947
|
"resource-category": {
|
|
2944
2948
|
"resource-category": 0
|
|
2945
2949
|
}
|
|
2946
|
-
shortcut: {
|
|
2950
|
+
"shortcut": {
|
|
2947
2951
|
shortcut: 0
|
|
2948
2952
|
}
|
|
2949
|
-
sound: {
|
|
2953
|
+
"sound": {
|
|
2950
2954
|
sound: 0
|
|
2951
2955
|
}
|
|
2952
2956
|
"space-connection": {
|
|
2953
2957
|
"space-connection": 0
|
|
2954
2958
|
}
|
|
2955
2959
|
"space-location": {
|
|
2956
|
-
planet: 0
|
|
2960
|
+
"planet": 0
|
|
2957
2961
|
"space-location": 0
|
|
2958
2962
|
}
|
|
2959
2963
|
"spectator-controller": {
|
|
2960
2964
|
"spectator-controller": 0
|
|
2961
2965
|
}
|
|
2962
|
-
sprite: {
|
|
2966
|
+
"sprite": {
|
|
2963
2967
|
sprite: 0
|
|
2964
2968
|
}
|
|
2965
|
-
surface: {
|
|
2969
|
+
"surface": {
|
|
2966
2970
|
surface: 0
|
|
2967
2971
|
}
|
|
2968
2972
|
"surface-property": {
|
|
2969
2973
|
"surface-property": 0
|
|
2970
2974
|
}
|
|
2971
|
-
technology: {
|
|
2975
|
+
"technology": {
|
|
2972
2976
|
technology: 0
|
|
2973
2977
|
}
|
|
2974
|
-
tile: {
|
|
2978
|
+
"tile": {
|
|
2975
2979
|
tile: 0
|
|
2976
2980
|
}
|
|
2977
2981
|
"tile-effect": {
|
|
@@ -2989,7 +2993,7 @@ declare global {
|
|
|
2989
2993
|
"trivial-smoke": {
|
|
2990
2994
|
"trivial-smoke": 0
|
|
2991
2995
|
}
|
|
2992
|
-
tutorial: {
|
|
2996
|
+
"tutorial": {
|
|
2993
2997
|
tutorial: 0
|
|
2994
2998
|
}
|
|
2995
2999
|
"utility-constants": {
|
|
@@ -3007,7 +3011,7 @@ declare global {
|
|
|
3007
3011
|
}
|
|
3008
3012
|
/**
|
|
3009
3013
|
* 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, ...}`.
|
|
3010
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3014
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.prototypes Online documentation}
|
|
3011
3015
|
*/
|
|
3012
3016
|
const prototypes: prototypes
|
|
3013
3017
|
enum rail_connection_direction {
|
|
@@ -3137,189 +3141,189 @@ declare global {
|
|
|
3137
3141
|
enum robot_order_type {
|
|
3138
3142
|
/**
|
|
3139
3143
|
* Construct a ghost.
|
|
3140
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3144
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.construct Online documentation}
|
|
3141
3145
|
*/
|
|
3142
3146
|
construct,
|
|
3143
3147
|
/**
|
|
3144
3148
|
* Pickup an item.
|
|
3145
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3149
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.pickup Online documentation}
|
|
3146
3150
|
*/
|
|
3147
3151
|
pickup,
|
|
3148
3152
|
/**
|
|
3149
3153
|
* Deliver an item.
|
|
3150
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3154
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.deliver Online documentation}
|
|
3151
3155
|
*/
|
|
3152
3156
|
deliver,
|
|
3153
3157
|
/**
|
|
3154
3158
|
* Repair an entity.
|
|
3155
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3159
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.repair Online documentation}
|
|
3156
3160
|
*/
|
|
3157
3161
|
repair,
|
|
3158
3162
|
/**
|
|
3159
3163
|
* Deconstruct an entity.
|
|
3160
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3164
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.deconstruct Online documentation}
|
|
3161
3165
|
*/
|
|
3162
3166
|
deconstruct,
|
|
3163
3167
|
/**
|
|
3164
3168
|
* Deliver specific items to an entity (item request proxy).
|
|
3165
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3169
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.deliver_items Online documentation}
|
|
3166
3170
|
*/
|
|
3167
3171
|
deliver_items,
|
|
3168
3172
|
/**
|
|
3169
3173
|
* Upgrade an entity.
|
|
3170
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3174
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.upgrade Online documentation}
|
|
3171
3175
|
*/
|
|
3172
3176
|
upgrade,
|
|
3173
3177
|
/**
|
|
3174
3178
|
* Explode a cliff.
|
|
3175
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3179
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.explode_cliff Online documentation}
|
|
3176
3180
|
*/
|
|
3177
3181
|
explode_cliff,
|
|
3178
3182
|
/**
|
|
3179
3183
|
* Pickup items from an entity (item request proxy).
|
|
3180
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3184
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.pickup_items Online documentation}
|
|
3181
3185
|
*/
|
|
3182
3186
|
pickup_items,
|
|
3183
3187
|
}
|
|
3184
3188
|
/**
|
|
3185
3189
|
* The various parts of the launch sequence of the rocket silo.
|
|
3186
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3190
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status Online documentation}
|
|
3187
3191
|
*/
|
|
3188
3192
|
enum rocket_silo_status {
|
|
3189
3193
|
/**
|
|
3190
3194
|
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
|
3191
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3195
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
|
|
3192
3196
|
*/
|
|
3193
3197
|
building_rocket,
|
|
3194
3198
|
/**
|
|
3195
3199
|
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
|
3196
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3200
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
|
|
3197
3201
|
*/
|
|
3198
3202
|
create_rocket,
|
|
3199
3203
|
/**
|
|
3200
3204
|
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
|
3201
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3205
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
|
|
3202
3206
|
*/
|
|
3203
3207
|
lights_blinking_open,
|
|
3204
3208
|
/**
|
|
3205
3209
|
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
|
3206
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3210
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
|
|
3207
3211
|
*/
|
|
3208
3212
|
doors_opening,
|
|
3209
3213
|
/**
|
|
3210
3214
|
* 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.
|
|
3211
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3215
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
|
|
3212
3216
|
*/
|
|
3213
3217
|
doors_opened,
|
|
3214
3218
|
/**
|
|
3215
3219
|
* 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.
|
|
3216
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3220
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
|
|
3217
3221
|
*/
|
|
3218
3222
|
rocket_rising,
|
|
3219
3223
|
/**
|
|
3220
3224
|
* 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.
|
|
3221
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3225
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
|
|
3222
3226
|
*/
|
|
3223
3227
|
arms_advance,
|
|
3224
3228
|
/**
|
|
3225
3229
|
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
|
3226
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3230
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
|
|
3227
3231
|
*/
|
|
3228
3232
|
rocket_ready,
|
|
3229
3233
|
/**
|
|
3230
3234
|
* The next state is `launch_started`.
|
|
3231
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3235
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
|
|
3232
3236
|
*/
|
|
3233
3237
|
launch_starting,
|
|
3234
3238
|
/**
|
|
3235
3239
|
* 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.
|
|
3236
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3240
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
|
|
3237
3241
|
*/
|
|
3238
3242
|
engine_starting,
|
|
3239
3243
|
/**
|
|
3240
3244
|
* 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.
|
|
3241
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3245
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
|
|
3242
3246
|
*/
|
|
3243
3247
|
arms_retract,
|
|
3244
3248
|
/**
|
|
3245
3249
|
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
|
3246
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3250
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
|
|
3247
3251
|
*/
|
|
3248
3252
|
rocket_flying,
|
|
3249
3253
|
/**
|
|
3250
3254
|
* The next state is `doors_closing`.
|
|
3251
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3255
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
|
|
3252
3256
|
*/
|
|
3253
3257
|
lights_blinking_close,
|
|
3254
3258
|
/**
|
|
3255
3259
|
* The next state is `building_rocket`.
|
|
3256
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3260
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
|
|
3257
3261
|
*/
|
|
3258
3262
|
doors_closing,
|
|
3259
3263
|
/**
|
|
3260
3264
|
* 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.
|
|
3261
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3265
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.launch_started Online documentation}
|
|
3262
3266
|
*/
|
|
3263
3267
|
launch_started,
|
|
3264
3268
|
}
|
|
3265
3269
|
enum segmented_unit_activity_mode {
|
|
3266
3270
|
/**
|
|
3267
3271
|
* The segmented unit is completely asleep, only performing the bare minimum checks to wake up if needed.
|
|
3268
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3272
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_activity_mode.asleep Online documentation}
|
|
3269
3273
|
*/
|
|
3270
3274
|
asleep,
|
|
3271
3275
|
/**
|
|
3272
3276
|
* The segmented unit is minimally active, reducing unnecessary entity movement and trigger effects while continuing to patrol around its territory.
|
|
3273
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3277
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_activity_mode.minimal Online documentation}
|
|
3274
3278
|
*/
|
|
3275
3279
|
minimal,
|
|
3276
3280
|
/**
|
|
3277
3281
|
* The segmented unit is fully active and simulated as if it is being observed by a player.
|
|
3278
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3282
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_activity_mode.full Online documentation}
|
|
3279
3283
|
*/
|
|
3280
3284
|
full,
|
|
3281
3285
|
}
|
|
3282
3286
|
enum segmented_unit_ai_state {
|
|
3283
3287
|
/**
|
|
3284
3288
|
* 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.
|
|
3285
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3289
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_ai_state.patrolling Online documentation}
|
|
3286
3290
|
*/
|
|
3287
3291
|
patrolling,
|
|
3288
3292
|
/**
|
|
3289
3293
|
* The segmented unit is investigating a location where it detected a disturbance.
|
|
3290
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3294
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_ai_state.investigating Online documentation}
|
|
3291
3295
|
*/
|
|
3292
3296
|
investigating,
|
|
3293
3297
|
/**
|
|
3294
3298
|
* The segmented unit is attacking an entity that is trespassing on its territory, but the segmented unit is not using its full strength.
|
|
3295
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3299
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_ai_state.attacking Online documentation}
|
|
3296
3300
|
*/
|
|
3297
3301
|
attacking,
|
|
3298
3302
|
/**
|
|
3299
3303
|
* The segmented unit is angry because it was attacked and is aggressively attacking an entity with its full strength.
|
|
3300
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3304
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_ai_state.enraged_at_target Online documentation}
|
|
3301
3305
|
*/
|
|
3302
3306
|
enraged_at_target,
|
|
3303
3307
|
/**
|
|
3304
3308
|
* 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.
|
|
3305
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3309
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_ai_state.enraged_at_nothing Online documentation}
|
|
3306
3310
|
*/
|
|
3307
3311
|
enraged_at_nothing,
|
|
3308
3312
|
}
|
|
3309
3313
|
enum segmented_unit_created_cause {
|
|
3310
3314
|
/**
|
|
3311
3315
|
* The segmented unit was spawned naturally by the map generator.
|
|
3312
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3316
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_created_cause.map_generated Online documentation}
|
|
3313
3317
|
*/
|
|
3314
3318
|
map_generated,
|
|
3315
3319
|
/**
|
|
3316
3320
|
* The segmented unit was created manually via script.
|
|
3317
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3321
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_created_cause.script_created Online documentation}
|
|
3318
3322
|
*/
|
|
3319
3323
|
script_created,
|
|
3320
3324
|
/**
|
|
3321
3325
|
* The segmented unit was cloned from an existing segmented unit via script.
|
|
3322
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3326
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_created_cause.script_cloned Online documentation}
|
|
3323
3327
|
*/
|
|
3324
3328
|
script_cloned,
|
|
3325
3329
|
}
|
|
@@ -3336,74 +3340,74 @@ declare global {
|
|
|
3336
3340
|
}
|
|
3337
3341
|
/**
|
|
3338
3342
|
* State of an ordinary rail signal.
|
|
3339
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3343
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.signal_state Online documentation}
|
|
3340
3344
|
*/
|
|
3341
3345
|
enum signal_state {
|
|
3342
3346
|
/**
|
|
3343
3347
|
* Green.
|
|
3344
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3348
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.signal_state.open Online documentation}
|
|
3345
3349
|
*/
|
|
3346
3350
|
open,
|
|
3347
3351
|
/**
|
|
3348
3352
|
* Red.
|
|
3349
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3353
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.signal_state.closed Online documentation}
|
|
3350
3354
|
*/
|
|
3351
3355
|
closed,
|
|
3352
3356
|
/**
|
|
3353
3357
|
* Orange.
|
|
3354
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3358
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.signal_state.reserved Online documentation}
|
|
3355
3359
|
*/
|
|
3356
3360
|
reserved,
|
|
3357
3361
|
/**
|
|
3358
3362
|
* Red - From circuit network.
|
|
3359
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3363
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
|
3360
3364
|
*/
|
|
3361
3365
|
reserved_by_circuit_network,
|
|
3362
3366
|
}
|
|
3363
3367
|
enum space_platform_state {
|
|
3364
3368
|
/**
|
|
3365
3369
|
* Waiting for a starter pack.
|
|
3366
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3370
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
|
|
3367
3371
|
*/
|
|
3368
3372
|
waiting_for_starter_pack,
|
|
3369
3373
|
/**
|
|
3370
3374
|
* Starter pack was requested from the logistics system.
|
|
3371
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3375
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
|
|
3372
3376
|
*/
|
|
3373
3377
|
starter_pack_requested,
|
|
3374
3378
|
/**
|
|
3375
3379
|
* Starter pack is on the way.
|
|
3376
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3380
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
|
|
3377
3381
|
*/
|
|
3378
3382
|
starter_pack_on_the_way,
|
|
3379
3383
|
/**
|
|
3380
3384
|
* Following the path.
|
|
3381
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3385
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.on_the_path Online documentation}
|
|
3382
3386
|
*/
|
|
3383
3387
|
on_the_path,
|
|
3384
3388
|
/**
|
|
3385
3389
|
* Platform is ready to leave this planet and does not accept deliveries.
|
|
3386
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3390
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
|
|
3387
3391
|
*/
|
|
3388
3392
|
waiting_for_departure,
|
|
3389
3393
|
/**
|
|
3390
3394
|
* Doesn't have any stations in schedule.
|
|
3391
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3395
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.no_schedule Online documentation}
|
|
3392
3396
|
*/
|
|
3393
3397
|
no_schedule,
|
|
3394
3398
|
/**
|
|
3395
3399
|
* Doesn't have anywhere to go.
|
|
3396
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3400
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.no_path Online documentation}
|
|
3397
3401
|
*/
|
|
3398
3402
|
no_path,
|
|
3399
3403
|
/**
|
|
3400
3404
|
* Waiting at a station.
|
|
3401
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3405
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
|
|
3402
3406
|
*/
|
|
3403
3407
|
waiting_at_station,
|
|
3404
3408
|
/**
|
|
3405
3409
|
* Paused.
|
|
3406
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3410
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.paused Online documentation}
|
|
3407
3411
|
*/
|
|
3408
3412
|
paused,
|
|
3409
3413
|
}
|
|
@@ -3437,64 +3441,64 @@ declare global {
|
|
|
3437
3441
|
enum territory_created_cause {
|
|
3438
3442
|
/**
|
|
3439
3443
|
* The territory was spawned naturally by the map generator.
|
|
3440
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3444
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.territory_created_cause.map_generated Online documentation}
|
|
3441
3445
|
*/
|
|
3442
3446
|
map_generated,
|
|
3443
3447
|
/**
|
|
3444
3448
|
* The territory was created manually via script.
|
|
3445
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3449
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.territory_created_cause.script_created Online documentation}
|
|
3446
3450
|
*/
|
|
3447
3451
|
script_created,
|
|
3448
3452
|
}
|
|
3449
3453
|
enum train_state {
|
|
3450
3454
|
/**
|
|
3451
3455
|
* Normal state -- following the path.
|
|
3452
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3456
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.on_the_path Online documentation}
|
|
3453
3457
|
*/
|
|
3454
3458
|
on_the_path,
|
|
3455
3459
|
/**
|
|
3456
3460
|
* Doesn't have anywhere to go.
|
|
3457
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3461
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.no_schedule Online documentation}
|
|
3458
3462
|
*/
|
|
3459
3463
|
no_schedule,
|
|
3460
3464
|
/**
|
|
3461
3465
|
* Has no path and is stopped.
|
|
3462
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3466
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.no_path Online documentation}
|
|
3463
3467
|
*/
|
|
3464
3468
|
no_path,
|
|
3465
3469
|
/**
|
|
3466
3470
|
* Braking before a rail signal.
|
|
3467
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3471
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.arrive_signal Online documentation}
|
|
3468
3472
|
*/
|
|
3469
3473
|
arrive_signal,
|
|
3470
3474
|
/**
|
|
3471
3475
|
* Waiting at a signal.
|
|
3472
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3476
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.wait_signal Online documentation}
|
|
3473
3477
|
*/
|
|
3474
3478
|
wait_signal,
|
|
3475
3479
|
/**
|
|
3476
3480
|
* Braking before a station.
|
|
3477
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3481
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.arrive_station Online documentation}
|
|
3478
3482
|
*/
|
|
3479
3483
|
arrive_station,
|
|
3480
3484
|
/**
|
|
3481
3485
|
* Switched to manual control and has to stop.
|
|
3482
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3486
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.manual_control_stop Online documentation}
|
|
3483
3487
|
*/
|
|
3484
3488
|
manual_control_stop,
|
|
3485
3489
|
/**
|
|
3486
3490
|
* Can move if user explicitly sits in and rides the train.
|
|
3487
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3491
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.manual_control Online documentation}
|
|
3488
3492
|
*/
|
|
3489
3493
|
manual_control,
|
|
3490
3494
|
/**
|
|
3491
3495
|
* Waiting at a station.
|
|
3492
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3496
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.wait_station Online documentation}
|
|
3493
3497
|
*/
|
|
3494
3498
|
wait_station,
|
|
3495
3499
|
/**
|
|
3496
3500
|
* Same as no_path but all candidate train stops are full
|
|
3497
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3501
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.destination_full Online documentation}
|
|
3498
3502
|
*/
|
|
3499
3503
|
destination_full,
|
|
3500
3504
|
}
|
|
@@ -3524,17 +3528,17 @@ declare global {
|
|
|
3524
3528
|
enum wire_origin {
|
|
3525
3529
|
/**
|
|
3526
3530
|
* 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.
|
|
3527
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3531
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.wire_origin.player Online documentation}
|
|
3528
3532
|
*/
|
|
3529
3533
|
player,
|
|
3530
3534
|
/**
|
|
3531
3535
|
* 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.
|
|
3532
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3536
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.wire_origin.script Online documentation}
|
|
3533
3537
|
*/
|
|
3534
3538
|
script,
|
|
3535
3539
|
/**
|
|
3536
3540
|
* These wires can only be modified by the game. They are not visible to the player, irrespective of the `draw_circuit_wires` prototype property.
|
|
3537
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3541
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.wire_origin.radars Online documentation}
|
|
3538
3542
|
*/
|
|
3539
3543
|
radars,
|
|
3540
3544
|
}
|