typed-factorio 3.30.0 → 3.31.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 +2353 -2216
- package/prototype/generated/types.d.ts +2251 -2164
- package/runtime/generated/classes.d.ts +5419 -4902
- package/runtime/generated/concepts.d.ts +739 -685
- package/runtime/generated/defines.d.ts +229 -215
- package/runtime/generated/events.d.ts +492 -458
- package/runtime/generated/global-functions.d.ts +5 -5
- package/runtime/generated/global-objects.d.ts +7 -7
- package/runtime/generated/index-types.d.ts +4 -4
@@ -46,6 +46,7 @@ import type {
|
|
46
46
|
OnCargoPodDeliveredCargoEvent,
|
47
47
|
OnCargoPodFinishedAscendingEvent,
|
48
48
|
OnCargoPodFinishedDescendingEvent,
|
49
|
+
OnCargoPodStartedAscendingEvent,
|
49
50
|
OnCharacterCorpseExpiredEvent,
|
50
51
|
OnChartTagAddedEvent,
|
51
52
|
OnChartTagModifiedEvent,
|
@@ -274,8 +275,8 @@ declare global {
|
|
274
275
|
unclaimed_cargo,
|
275
276
|
}
|
276
277
|
/**
|
277
|
-
* AI command exit status
|
278
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
278
|
+
* AI command exit status, see {@link LuaCommandable#set_command LuaCommandable::set_command}
|
279
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.behavior_result Online documentation}
|
279
280
|
*/
|
280
281
|
enum behavior_result {
|
281
282
|
in_progress,
|
@@ -299,33 +300,33 @@ declare global {
|
|
299
300
|
enum cargo_destination {
|
300
301
|
/**
|
301
302
|
* The default destination type of a cargo pod when created runtime. Setting its destination to any other type will instantly launch it.
|
302
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
303
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.cargo_destination.invalid Online documentation}
|
303
304
|
*/
|
304
305
|
invalid,
|
305
306
|
/**
|
306
307
|
* Cargo pods with orbit destination are destroyed when ascent is completed.
|
307
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
308
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.cargo_destination.orbit Online documentation}
|
308
309
|
*/
|
309
310
|
orbit,
|
310
311
|
/**
|
311
312
|
* Any cargo landing pad or space platform hub.
|
312
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
313
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.cargo_destination.station Online documentation}
|
313
314
|
*/
|
314
315
|
station,
|
315
316
|
/**
|
316
317
|
* 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.
|
317
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
318
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.cargo_destination.surface Online documentation}
|
318
319
|
*/
|
319
320
|
surface,
|
320
321
|
/**
|
321
322
|
* 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.
|
322
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
323
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.cargo_destination.space_platform Online documentation}
|
323
324
|
*/
|
324
325
|
space_platform,
|
325
326
|
}
|
326
327
|
/**
|
327
328
|
* State of a chain signal.
|
328
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
329
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.chain_signal_state Online documentation}
|
329
330
|
*/
|
330
331
|
enum chain_signal_state {
|
331
332
|
none,
|
@@ -343,73 +344,73 @@ declare global {
|
|
343
344
|
}
|
344
345
|
/**
|
345
346
|
* Command given to units describing what they should do.
|
346
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
347
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.command Online documentation}
|
347
348
|
*/
|
348
349
|
enum command {
|
349
350
|
/**
|
350
351
|
* Attack another entity.
|
351
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
352
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.command.attack Online documentation}
|
352
353
|
*/
|
353
354
|
attack = 0,
|
354
355
|
/**
|
355
356
|
* Go to a specific position.
|
356
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
357
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.command.go_to_location Online documentation}
|
357
358
|
*/
|
358
359
|
go_to_location = 1,
|
359
360
|
/**
|
360
361
|
* Chain commands together, see {@link defines.compound_command}.
|
361
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
362
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.command.compound Online documentation}
|
362
363
|
*/
|
363
364
|
compound = 2,
|
364
365
|
/**
|
365
366
|
* Do what your group wants you to do.
|
366
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
367
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.command.group Online documentation}
|
367
368
|
*/
|
368
369
|
group = 3,
|
369
370
|
/**
|
370
371
|
* Go to a place and attack what you see.
|
371
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
372
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.command.attack_area Online documentation}
|
372
373
|
*/
|
373
374
|
attack_area = 4,
|
374
375
|
/**
|
375
376
|
* Chill.
|
376
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
377
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.command.wander Online documentation}
|
377
378
|
*/
|
378
379
|
wander = 5,
|
379
380
|
/**
|
380
381
|
* Flee from another entity.
|
381
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
382
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.command.flee Online documentation}
|
382
383
|
*/
|
383
384
|
flee = 6,
|
384
385
|
/**
|
385
386
|
* Stop moving and stay where you are.
|
386
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
387
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.command.stop Online documentation}
|
387
388
|
*/
|
388
389
|
stop = 7,
|
389
390
|
/**
|
390
391
|
* Go to a position and build a base there.
|
391
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
392
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.command.build_base Online documentation}
|
392
393
|
*/
|
393
394
|
build_base = 8,
|
394
395
|
}
|
395
396
|
/**
|
396
397
|
* How commands are joined together in a compound command (see {@link defines.command.compound}).
|
397
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
398
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.compound_command Online documentation}
|
398
399
|
*/
|
399
400
|
enum compound_command {
|
400
401
|
/**
|
401
402
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
402
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
403
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.compound_command.logical_and Online documentation}
|
403
404
|
*/
|
404
405
|
logical_and,
|
405
406
|
/**
|
406
407
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
407
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
408
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.compound_command.logical_or Online documentation}
|
408
409
|
*/
|
409
410
|
logical_or,
|
410
411
|
/**
|
411
412
|
* Execute all commands in sequence and fail or succeed depending on the return status of the last command.
|
412
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
413
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.compound_command.return_last Online documentation}
|
413
414
|
*/
|
414
415
|
return_last,
|
415
416
|
}
|
@@ -471,210 +472,215 @@ declare global {
|
|
471
472
|
enum type {
|
472
473
|
/**
|
473
474
|
* {@link LuaContainerControlBehavior}
|
474
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
475
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.container Online documentation}
|
475
476
|
*/
|
476
477
|
container,
|
477
478
|
/**
|
478
479
|
* {@link LuaGenericOnOffControlBehavior}
|
479
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
480
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
|
480
481
|
*/
|
481
482
|
generic_on_off,
|
482
483
|
/**
|
483
484
|
* {@link LuaInserterControlBehavior}
|
484
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
485
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.inserter Online documentation}
|
485
486
|
*/
|
486
487
|
inserter,
|
487
488
|
/**
|
488
489
|
* {@link LuaLampControlBehavior}
|
489
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
490
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.lamp Online documentation}
|
490
491
|
*/
|
491
492
|
lamp,
|
492
493
|
/**
|
493
494
|
* {@link LuaLogisticContainerControlBehavior}
|
494
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
495
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.logistic_container Online documentation}
|
495
496
|
*/
|
496
497
|
logistic_container,
|
497
498
|
/**
|
498
499
|
* {@link LuaRoboportControlBehavior}
|
499
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
500
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.roboport Online documentation}
|
500
501
|
*/
|
501
502
|
roboport,
|
502
503
|
/**
|
503
504
|
* {@link LuaStorageTankControlBehavior}
|
504
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
505
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.storage_tank Online documentation}
|
505
506
|
*/
|
506
507
|
storage_tank,
|
507
508
|
/**
|
508
509
|
* {@link LuaTrainStopControlBehavior}
|
509
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
510
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.train_stop Online documentation}
|
510
511
|
*/
|
511
512
|
train_stop,
|
512
513
|
/**
|
513
514
|
* {@link LuaDeciderCombinatorControlBehavior}
|
514
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
515
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
|
515
516
|
*/
|
516
517
|
decider_combinator,
|
517
518
|
/**
|
518
519
|
* {@link LuaArithmeticCombinatorControlBehavior}
|
519
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
520
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
|
520
521
|
*/
|
521
522
|
arithmetic_combinator,
|
522
523
|
/**
|
523
524
|
* {@link LuaConstantCombinatorControlBehavior}
|
524
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
525
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
|
525
526
|
*/
|
526
527
|
constant_combinator,
|
527
528
|
/**
|
528
529
|
* {@link LuaTransportBeltControlBehavior}
|
529
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
530
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.transport_belt Online documentation}
|
530
531
|
*/
|
531
532
|
transport_belt,
|
532
533
|
/**
|
533
534
|
* {@link LuaAccumulatorControlBehavior}
|
534
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
535
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.accumulator Online documentation}
|
535
536
|
*/
|
536
537
|
accumulator,
|
537
538
|
/**
|
538
539
|
* {@link LuaRailSignalBaseControlBehavior}
|
539
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
540
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.rail_signal Online documentation}
|
540
541
|
*/
|
541
542
|
rail_signal,
|
542
543
|
/**
|
543
544
|
* {@link LuaRailSignalBaseControlBehavior}
|
544
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
545
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
|
545
546
|
*/
|
546
547
|
rail_chain_signal,
|
547
548
|
/**
|
548
549
|
* {@link LuaWallControlBehavior}
|
549
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
550
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.wall Online documentation}
|
550
551
|
*/
|
551
552
|
wall,
|
552
553
|
/**
|
553
554
|
* {@link LuaMiningDrillControlBehavior}
|
554
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
555
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.mining_drill Online documentation}
|
555
556
|
*/
|
556
557
|
mining_drill,
|
557
558
|
/**
|
558
559
|
* {@link LuaProgrammableSpeakerControlBehavior}
|
559
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
560
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
|
560
561
|
*/
|
561
562
|
programmable_speaker,
|
562
563
|
/**
|
563
564
|
* {@link LuaAssemblingMachineControlBehavior}
|
564
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
565
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.assembling_machine Online documentation}
|
565
566
|
*/
|
566
567
|
assembling_machine,
|
567
568
|
/**
|
568
569
|
* {@link LuaPumpControlBehavior}
|
569
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
570
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.pump Online documentation}
|
570
571
|
*/
|
571
572
|
pump,
|
572
573
|
/**
|
573
574
|
* {@link LuaSelectorCombinatorControlBehavior}
|
574
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
575
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.selector_combinator Online documentation}
|
575
576
|
*/
|
576
577
|
selector_combinator,
|
577
578
|
/**
|
578
579
|
* {@link LuaRocketSiloControlBehavior}
|
579
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
580
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.rocket_silo Online documentation}
|
580
581
|
*/
|
581
582
|
rocket_silo,
|
582
583
|
/**
|
583
584
|
* {@link LuaTurretControlBehavior}
|
584
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
585
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.turret Online documentation}
|
585
586
|
*/
|
586
587
|
turret,
|
587
588
|
/**
|
588
589
|
* {@link LuaReactorControlBehavior}
|
589
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
590
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.reactor Online documentation}
|
590
591
|
*/
|
591
592
|
reactor,
|
592
593
|
/**
|
593
594
|
* {@link LuaSpacePlatformHubControlBehavior}
|
594
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
595
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.space_platform_hub Online documentation}
|
595
596
|
*/
|
596
597
|
space_platform_hub,
|
597
598
|
/**
|
598
599
|
* {@link LuaArtilleryTurretControlBehavior}
|
599
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
600
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.artillery_turret Online documentation}
|
600
601
|
*/
|
601
602
|
artillery_turret,
|
602
603
|
/**
|
603
604
|
* {@link LuaAsteroidCollectorControlBehavior}
|
604
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
605
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.asteroid_collector Online documentation}
|
605
606
|
*/
|
606
607
|
asteroid_collector,
|
607
608
|
/**
|
608
609
|
* {@link LuaRadarControlBehavior}
|
609
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
610
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.radar Online documentation}
|
610
611
|
*/
|
611
612
|
radar,
|
612
613
|
/**
|
613
614
|
* {@link LuaDisplayPanelControlBehavior}
|
614
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
615
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.display_panel Online documentation}
|
615
616
|
*/
|
616
617
|
display_panel,
|
617
618
|
/**
|
618
619
|
* {@link LuaLoaderControlBehavior}
|
619
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
620
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.loader Online documentation}
|
620
621
|
*/
|
621
622
|
loader,
|
622
623
|
/**
|
623
624
|
* {@link LuaCargoLandingPadControlBehavior}
|
624
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
625
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.cargo_landing_pad Online documentation}
|
625
626
|
*/
|
626
627
|
cargo_landing_pad,
|
627
628
|
/**
|
628
629
|
* {@link LuaAgriculturalTowerControlBehavior}
|
629
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
630
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.agricultural_tower Online documentation}
|
630
631
|
*/
|
631
632
|
agricultural_tower,
|
632
633
|
/**
|
633
634
|
* {@link LuaFurnaceControlBehavior}
|
634
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
635
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.furnace Online documentation}
|
635
636
|
*/
|
636
637
|
furnace,
|
637
638
|
/**
|
638
639
|
* {@link LuaProxyContainerControlBehavior}
|
639
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
640
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.proxy_container Online documentation}
|
640
641
|
*/
|
641
642
|
proxy_container,
|
643
|
+
/**
|
644
|
+
* {@link LuaSplitterControlBehavior}
|
645
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.control_behavior.type.splitter Online documentation}
|
646
|
+
*/
|
647
|
+
splitter,
|
642
648
|
}
|
643
649
|
}
|
644
650
|
enum controllers {
|
645
651
|
/**
|
646
652
|
* Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
|
647
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
653
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.controllers.ghost Online documentation}
|
648
654
|
*/
|
649
655
|
ghost,
|
650
656
|
/**
|
651
657
|
* The controller controls a character. This is the default controller in freeplay.
|
652
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
658
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.controllers.character Online documentation}
|
653
659
|
*/
|
654
660
|
character,
|
655
661
|
/**
|
656
662
|
* The controller isn't tied to a character. This is the default controller in sandbox.
|
657
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
663
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.controllers.god Online documentation}
|
658
664
|
*/
|
659
665
|
god,
|
660
666
|
/**
|
661
667
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
662
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
668
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.controllers.editor Online documentation}
|
663
669
|
*/
|
664
670
|
editor,
|
665
671
|
/**
|
666
672
|
* The player can't interact with the world, and the camera pans around in a predefined manner.
|
667
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
673
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.controllers.cutscene Online documentation}
|
668
674
|
*/
|
669
675
|
cutscene,
|
670
676
|
/**
|
671
677
|
* Can't change anything in the world but can view anything.
|
672
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
678
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.controllers.spectator Online documentation}
|
673
679
|
*/
|
674
680
|
spectator,
|
675
681
|
/**
|
676
682
|
* Can't move/change items but can build ghosts/change settings.
|
677
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
683
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.controllers.remote Online documentation}
|
678
684
|
*/
|
679
685
|
remote,
|
680
686
|
}
|
@@ -736,22 +742,22 @@ declare global {
|
|
736
742
|
enum distraction {
|
737
743
|
/**
|
738
744
|
* Perform command even if someone attacks the unit.
|
739
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
745
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.distraction.none Online documentation}
|
740
746
|
*/
|
741
747
|
none,
|
742
748
|
/**
|
743
749
|
* Attack closer enemy entities with force.
|
744
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
750
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.distraction.by_enemy Online documentation}
|
745
751
|
*/
|
746
752
|
by_enemy,
|
747
753
|
/**
|
748
754
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
749
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
755
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.distraction.by_anything Online documentation}
|
750
756
|
*/
|
751
757
|
by_anything,
|
752
758
|
/**
|
753
759
|
* Attack when attacked.
|
754
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
760
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.distraction.by_damage Online documentation}
|
755
761
|
*/
|
756
762
|
by_damage,
|
757
763
|
}
|
@@ -760,12 +766,12 @@ declare global {
|
|
760
766
|
normal,
|
761
767
|
/**
|
762
768
|
* Used by ghosts.
|
763
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
769
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.ghost Online documentation}
|
764
770
|
*/
|
765
771
|
ghost,
|
766
772
|
/**
|
767
773
|
* Only used if set through {@link import("factorio:prototype").ContainerPrototype#default_status ContainerPrototype::default_status}.
|
768
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
774
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.broken Online documentation}
|
769
775
|
*/
|
770
776
|
broken,
|
771
777
|
no_power,
|
@@ -779,272 +785,272 @@ declare global {
|
|
779
785
|
marked_for_deconstruction,
|
780
786
|
/**
|
781
787
|
* Used by space platform hubs.
|
782
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
788
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.paused Online documentation}
|
783
789
|
*/
|
784
790
|
paused,
|
785
791
|
/**
|
786
792
|
* Used by generators and solar panels.
|
787
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
793
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
|
788
794
|
*/
|
789
795
|
not_plugged_in_electric_network,
|
790
796
|
/**
|
791
797
|
* Used by power switches.
|
792
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
798
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.networks_connected Online documentation}
|
793
799
|
*/
|
794
800
|
networks_connected,
|
795
801
|
/**
|
796
802
|
* Used by power switches.
|
797
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
803
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.networks_disconnected Online documentation}
|
798
804
|
*/
|
799
805
|
networks_disconnected,
|
800
806
|
/**
|
801
807
|
* Used by accumulators.
|
802
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
808
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.charging Online documentation}
|
803
809
|
*/
|
804
810
|
charging,
|
805
811
|
/**
|
806
812
|
* Used by accumulators.
|
807
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
813
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.discharging Online documentation}
|
808
814
|
*/
|
809
815
|
discharging,
|
810
816
|
/**
|
811
817
|
* Used by accumulators.
|
812
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
818
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.fully_charged Online documentation}
|
813
819
|
*/
|
814
820
|
fully_charged,
|
815
821
|
/**
|
816
822
|
* Used by logistic containers.
|
817
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
823
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
|
818
824
|
*/
|
819
825
|
out_of_logistic_network,
|
820
826
|
/**
|
821
827
|
* Used by assembling machines.
|
822
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
828
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.no_recipe Online documentation}
|
823
829
|
*/
|
824
830
|
no_recipe,
|
825
831
|
/**
|
826
832
|
* Used by furnaces.
|
827
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
833
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.no_ingredients Online documentation}
|
828
834
|
*/
|
829
835
|
no_ingredients,
|
830
836
|
/**
|
831
837
|
* Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
|
832
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
838
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.no_input_fluid Online documentation}
|
833
839
|
*/
|
834
840
|
no_input_fluid,
|
835
841
|
/**
|
836
842
|
* Used by labs.
|
837
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
843
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.no_research_in_progress Online documentation}
|
838
844
|
*/
|
839
845
|
no_research_in_progress,
|
840
846
|
/**
|
841
847
|
* Used by mining drills.
|
842
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
848
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.no_minable_resources Online documentation}
|
843
849
|
*/
|
844
850
|
no_minable_resources,
|
845
851
|
/**
|
846
852
|
* Used by cargo bays.
|
847
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
853
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.not_connected_to_hub_or_pad Online documentation}
|
848
854
|
*/
|
849
855
|
not_connected_to_hub_or_pad,
|
850
856
|
/**
|
851
857
|
* Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
|
852
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
858
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.low_input_fluid Online documentation}
|
853
859
|
*/
|
854
860
|
low_input_fluid,
|
855
861
|
/**
|
856
862
|
* Used by crafting machines.
|
857
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
863
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
|
858
864
|
*/
|
859
865
|
fluid_ingredient_shortage,
|
860
866
|
/**
|
861
867
|
* Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
|
862
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
868
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.full_output Online documentation}
|
863
869
|
*/
|
864
870
|
full_output,
|
865
871
|
/**
|
866
872
|
* Used by agricultural towers.
|
867
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
873
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.not_enough_space_in_output Online documentation}
|
868
874
|
*/
|
869
875
|
not_enough_space_in_output,
|
870
876
|
/**
|
871
877
|
* Used by burner energy sources.
|
872
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
878
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
|
873
879
|
*/
|
874
880
|
full_burnt_result_output,
|
875
881
|
/**
|
876
882
|
* Used by crafting machines.
|
877
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
883
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
|
878
884
|
*/
|
879
885
|
item_ingredient_shortage,
|
880
886
|
/**
|
881
887
|
* Used by mining drills when the mining fluid is missing.
|
882
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
888
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.missing_required_fluid Online documentation}
|
883
889
|
*/
|
884
890
|
missing_required_fluid,
|
885
891
|
/**
|
886
892
|
* Used by labs.
|
887
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
893
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.missing_science_packs Online documentation}
|
888
894
|
*/
|
889
895
|
missing_science_packs,
|
890
896
|
/**
|
891
897
|
* Used by inserters.
|
892
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
898
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
|
893
899
|
*/
|
894
900
|
waiting_for_source_items,
|
895
901
|
/**
|
896
902
|
* Used by inserters when wait_for_full_hand is set.
|
897
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
903
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.waiting_for_more_items Online documentation}
|
898
904
|
*/
|
899
905
|
waiting_for_more_items,
|
900
906
|
/**
|
901
907
|
* Used by inserters and mining drills.
|
902
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
908
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
|
903
909
|
*/
|
904
910
|
waiting_for_space_in_destination,
|
905
911
|
/**
|
906
912
|
* Used by the rocket silo.
|
907
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
913
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
|
908
914
|
*/
|
909
915
|
preparing_rocket_for_launch,
|
910
916
|
/**
|
911
917
|
* Used by the rocket silo.
|
912
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
918
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
|
913
919
|
*/
|
914
920
|
waiting_to_launch_rocket,
|
915
921
|
/**
|
916
922
|
* Used by the rocket silo.
|
917
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
923
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.waiting_for_space_in_platform_hub Online documentation}
|
918
924
|
*/
|
919
925
|
waiting_for_space_in_platform_hub,
|
920
926
|
/**
|
921
927
|
* Used by the rocket silo.
|
922
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
928
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.launching_rocket Online documentation}
|
923
929
|
*/
|
924
930
|
launching_rocket,
|
925
931
|
/**
|
926
932
|
* Used by thrusters.
|
927
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
933
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.thrust_not_required Online documentation}
|
928
934
|
*/
|
929
935
|
thrust_not_required,
|
930
936
|
/**
|
931
937
|
* Used by space platform hubs.
|
932
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
938
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.on_the_way Online documentation}
|
933
939
|
*/
|
934
940
|
on_the_way,
|
935
941
|
/**
|
936
942
|
* Used by space platform hubs.
|
937
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
943
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.waiting_in_orbit Online documentation}
|
938
944
|
*/
|
939
945
|
waiting_in_orbit,
|
940
946
|
/**
|
941
947
|
* Used by trains.
|
942
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
948
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.waiting_at_stop Online documentation}
|
943
949
|
*/
|
944
950
|
waiting_at_stop,
|
945
951
|
/**
|
946
952
|
* Used by space platform hubs.
|
947
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
953
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.waiting_for_rockets_to_arrive Online documentation}
|
948
954
|
*/
|
949
955
|
waiting_for_rockets_to_arrive,
|
950
956
|
/**
|
951
957
|
* Used by space platform hubs.
|
952
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
958
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.not_enough_thrust Online documentation}
|
953
959
|
*/
|
954
960
|
not_enough_thrust,
|
955
961
|
/**
|
956
962
|
* Used by trains.
|
957
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
963
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.destination_stop_full Online documentation}
|
958
964
|
*/
|
959
965
|
destination_stop_full,
|
960
966
|
/**
|
961
967
|
* Used by trains and space platform hubs.
|
962
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
968
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.no_path Online documentation}
|
963
969
|
*/
|
964
970
|
no_path,
|
965
971
|
/**
|
966
972
|
* Used by beacons.
|
967
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
973
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
|
968
974
|
*/
|
969
975
|
no_modules_to_transmit,
|
970
976
|
/**
|
971
977
|
* Used by roboports.
|
972
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
978
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
|
973
979
|
*/
|
974
980
|
recharging_after_power_outage,
|
975
981
|
/**
|
976
982
|
* Used by inserters targeting entity ghosts.
|
977
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
983
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
|
978
984
|
*/
|
979
985
|
waiting_for_target_to_be_built,
|
980
986
|
/**
|
981
987
|
* Used by inserters targeting rails.
|
982
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
988
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.waiting_for_train Online documentation}
|
983
989
|
*/
|
984
990
|
waiting_for_train,
|
985
991
|
/**
|
986
992
|
* Used by ammo turrets.
|
987
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
993
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.no_ammo Online documentation}
|
988
994
|
*/
|
989
995
|
no_ammo,
|
990
996
|
/**
|
991
997
|
* Used by heat energy sources.
|
992
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
998
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.low_temperature Online documentation}
|
993
999
|
*/
|
994
1000
|
low_temperature,
|
995
1001
|
/**
|
996
1002
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
997
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1003
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.disabled Online documentation}
|
998
1004
|
*/
|
999
1005
|
disabled,
|
1000
1006
|
/**
|
1001
1007
|
* Used by lamps.
|
1002
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1008
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
|
1003
1009
|
*/
|
1004
1010
|
turned_off_during_daytime,
|
1005
1011
|
/**
|
1006
1012
|
* Used by rail signals.
|
1007
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1013
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
|
1008
1014
|
*/
|
1009
1015
|
not_connected_to_rail,
|
1010
1016
|
/**
|
1011
1017
|
* Used by rail signals.
|
1012
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1018
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.cant_divide_segments Online documentation}
|
1013
1019
|
*/
|
1014
1020
|
cant_divide_segments,
|
1015
1021
|
/**
|
1016
1022
|
* Used by filter inserters.
|
1017
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1023
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.no_filter Online documentation}
|
1018
1024
|
*/
|
1019
1025
|
no_filter,
|
1020
1026
|
/**
|
1021
1027
|
* Used by agricultural towers.
|
1022
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1028
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.no_spot_seedable_by_inputs Online documentation}
|
1023
1029
|
*/
|
1024
1030
|
no_spot_seedable_by_inputs,
|
1025
1031
|
/**
|
1026
1032
|
* Used by agricultural towers.
|
1027
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1033
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.waiting_for_plants_to_grow Online documentation}
|
1028
1034
|
*/
|
1029
1035
|
waiting_for_plants_to_grow,
|
1030
1036
|
/**
|
1031
1037
|
* Used by asteroid collectors.
|
1032
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1038
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.computing_navigation Online documentation}
|
1033
1039
|
*/
|
1034
1040
|
computing_navigation,
|
1035
1041
|
/**
|
1036
1042
|
* Used by pipes, pipes to ground and storage tanks.
|
1037
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1043
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.pipeline_overextended Online documentation}
|
1038
1044
|
*/
|
1039
1045
|
pipeline_overextended,
|
1040
1046
|
/**
|
1041
1047
|
* Used by assembling machines.
|
1042
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1048
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.recipe_not_researched Online documentation}
|
1043
1049
|
*/
|
1044
1050
|
recipe_not_researched,
|
1045
1051
|
/**
|
1046
1052
|
* Used by assembling machines.
|
1047
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1053
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.entity_status.recipe_is_parameter Online documentation}
|
1048
1054
|
*/
|
1049
1055
|
recipe_is_parameter,
|
1050
1056
|
}
|
@@ -1054,8 +1060,8 @@ declare global {
|
|
1054
1060
|
yellow,
|
1055
1061
|
}
|
1056
1062
|
/**
|
1057
|
-
* See the {@linkplain https://lua-api.factorio.com/2.0.
|
1058
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1063
|
+
* See the {@linkplain https://lua-api.factorio.com/2.0.68/events.html events page} for more info on what events contain and when they get raised.
|
1064
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.events Online documentation}
|
1059
1065
|
*/
|
1060
1066
|
namespace events {
|
1061
1067
|
/**
|
@@ -1115,6 +1121,10 @@ declare global {
|
|
1115
1121
|
* Event type: {@link OnCargoPodFinishedDescendingEvent}
|
1116
1122
|
*/
|
1117
1123
|
const on_cargo_pod_finished_descending: EventId<OnCargoPodFinishedDescendingEvent>
|
1124
|
+
/**
|
1125
|
+
* Event type: {@link OnCargoPodStartedAscendingEvent}
|
1126
|
+
*/
|
1127
|
+
const on_cargo_pod_started_ascending: EventId<OnCargoPodStartedAscendingEvent>
|
1118
1128
|
/**
|
1119
1129
|
* Event type: {@link OnCharacterCorpseExpiredEvent}
|
1120
1130
|
*/
|
@@ -1993,8 +2003,8 @@ declare global {
|
|
1993
2003
|
const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent, LuaScriptRaisedTeleportedEventFilter>
|
1994
2004
|
}
|
1995
2005
|
/**
|
1996
|
-
* See the {@linkplain https://lua-api.factorio.com/2.0.
|
1997
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2006
|
+
* See the {@linkplain https://lua-api.factorio.com/2.0.68/events.html events page} for more info on what events contain and when they get raised.
|
2007
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.events Online documentation}
|
1998
2008
|
*/
|
1999
2009
|
type events = (typeof events)[keyof typeof events]
|
2000
2010
|
enum flow_precision_index {
|
@@ -2010,17 +2020,17 @@ declare global {
|
|
2010
2020
|
enum game_controller_interaction {
|
2011
2021
|
/**
|
2012
2022
|
* Game controller will always hover this element regardless of type or state.
|
2013
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2023
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.game_controller_interaction.always Online documentation}
|
2014
2024
|
*/
|
2015
2025
|
always,
|
2016
2026
|
/**
|
2017
2027
|
* Never hover this element with a game controller.
|
2018
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2028
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.game_controller_interaction.never Online documentation}
|
2019
2029
|
*/
|
2020
2030
|
never,
|
2021
2031
|
/**
|
2022
2032
|
* Hover according to the element type and implementation.
|
2023
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2033
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.game_controller_interaction.normal Online documentation}
|
2024
2034
|
*/
|
2025
2035
|
normal,
|
2026
2036
|
}
|
@@ -2347,22 +2357,22 @@ declare global {
|
|
2347
2357
|
logistic_container_trash,
|
2348
2358
|
/**
|
2349
2359
|
* Deprecated, replaced by `"crafter_input"`.
|
2350
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2360
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.inventory.furnace_source Online documentation}
|
2351
2361
|
*/
|
2352
2362
|
furnace_source,
|
2353
2363
|
/**
|
2354
2364
|
* Deprecated, replaced by `"crafter_output"`.
|
2355
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2365
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.inventory.furnace_result Online documentation}
|
2356
2366
|
*/
|
2357
2367
|
furnace_result,
|
2358
2368
|
/**
|
2359
2369
|
* Deprecated, replaced by `"crafter_modules"`.
|
2360
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2370
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.inventory.furnace_modules Online documentation}
|
2361
2371
|
*/
|
2362
2372
|
furnace_modules,
|
2363
2373
|
/**
|
2364
2374
|
* Deprecated, replaced by `"crafter_trash"`.
|
2365
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2375
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.inventory.furnace_trash Online documentation}
|
2366
2376
|
*/
|
2367
2377
|
furnace_trash,
|
2368
2378
|
character_main,
|
@@ -2382,27 +2392,27 @@ declare global {
|
|
2382
2392
|
robot_repair,
|
2383
2393
|
/**
|
2384
2394
|
* Deprecated, replaced by `"crafter_input"`.
|
2385
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2395
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.inventory.assembling_machine_input Online documentation}
|
2386
2396
|
*/
|
2387
2397
|
assembling_machine_input,
|
2388
2398
|
/**
|
2389
2399
|
* Deprecated, replaced by `"crafter_output"`.
|
2390
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2400
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.inventory.assembling_machine_output Online documentation}
|
2391
2401
|
*/
|
2392
2402
|
assembling_machine_output,
|
2393
2403
|
/**
|
2394
2404
|
* Deprecated, replaced by `"crafter_modules"`.
|
2395
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2405
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.inventory.assembling_machine_modules Online documentation}
|
2396
2406
|
*/
|
2397
2407
|
assembling_machine_modules,
|
2398
2408
|
/**
|
2399
2409
|
* Used for ejected items, or items held by inserters that can't be inserted due the recipe being changed with the circuit network.
|
2400
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2410
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.inventory.assembling_machine_dump Online documentation}
|
2401
2411
|
*/
|
2402
2412
|
assembling_machine_dump,
|
2403
2413
|
/**
|
2404
2414
|
* Deprecated, replaced by `"crafter_trash"`.
|
2405
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2415
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.inventory.assembling_machine_trash Online documentation}
|
2406
2416
|
*/
|
2407
2417
|
assembling_machine_trash,
|
2408
2418
|
lab_input,
|
@@ -2414,19 +2424,23 @@ declare global {
|
|
2414
2424
|
rocket_silo_trash,
|
2415
2425
|
/**
|
2416
2426
|
* Deprecated, replaced by `"crafter_input"`.
|
2417
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2427
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.inventory.rocket_silo_input Online documentation}
|
2418
2428
|
*/
|
2419
2429
|
rocket_silo_input,
|
2420
2430
|
/**
|
2421
2431
|
* Deprecated, replaced by `"crafter_output"`.
|
2422
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2432
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.inventory.rocket_silo_output Online documentation}
|
2423
2433
|
*/
|
2424
2434
|
rocket_silo_output,
|
2425
2435
|
/**
|
2426
2436
|
* Deprecated, replaced by `"crafter_modules"`.
|
2427
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2437
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.inventory.rocket_silo_modules Online documentation}
|
2428
2438
|
*/
|
2429
2439
|
rocket_silo_modules,
|
2440
|
+
/**
|
2441
|
+
* Inventory of cargo pod.
|
2442
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.inventory.cargo_unit Online documentation}
|
2443
|
+
*/
|
2430
2444
|
cargo_unit,
|
2431
2445
|
car_trunk,
|
2432
2446
|
car_ammo,
|
@@ -2453,7 +2467,7 @@ declare global {
|
|
2453
2467
|
crafter_modules,
|
2454
2468
|
/**
|
2455
2469
|
* 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.
|
2456
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2470
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.inventory.crafter_trash Online documentation}
|
2457
2471
|
*/
|
2458
2472
|
crafter_trash,
|
2459
2473
|
asteroid_collector_output,
|
@@ -2496,12 +2510,12 @@ declare global {
|
|
2496
2510
|
circuit_controlled,
|
2497
2511
|
/**
|
2498
2512
|
* Used by rocket silos.
|
2499
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2513
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
|
2500
2514
|
*/
|
2501
2515
|
transitional_request_controlled,
|
2502
2516
|
/**
|
2503
2517
|
* Used by space platform hubs.
|
2504
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2518
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
|
2505
2519
|
*/
|
2506
2520
|
request_missing_materials_controlled,
|
2507
2521
|
}
|
@@ -2520,17 +2534,17 @@ declare global {
|
|
2520
2534
|
enum print_skip {
|
2521
2535
|
/**
|
2522
2536
|
* Print will not be skipped.
|
2523
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2537
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.print_skip.never Online documentation}
|
2524
2538
|
*/
|
2525
2539
|
never,
|
2526
2540
|
/**
|
2527
2541
|
* Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
|
2528
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2542
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.print_skip.if_redundant Online documentation}
|
2529
2543
|
*/
|
2530
2544
|
if_redundant,
|
2531
2545
|
/**
|
2532
2546
|
* Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
|
2533
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2547
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.print_skip.if_visible Online documentation}
|
2534
2548
|
*/
|
2535
2549
|
if_visible,
|
2536
2550
|
}
|
@@ -2541,7 +2555,7 @@ declare global {
|
|
2541
2555
|
}
|
2542
2556
|
/**
|
2543
2557
|
* 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, ...}`.
|
2544
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2558
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.prototypes Online documentation}
|
2545
2559
|
*/
|
2546
2560
|
interface prototypes {
|
2547
2561
|
achievement: {
|
@@ -2936,7 +2950,7 @@ declare global {
|
|
2936
2950
|
}
|
2937
2951
|
/**
|
2938
2952
|
* 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, ...}`.
|
2939
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2953
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.prototypes Online documentation}
|
2940
2954
|
*/
|
2941
2955
|
const prototypes: prototypes
|
2942
2956
|
enum rail_connection_direction {
|
@@ -3062,189 +3076,189 @@ declare global {
|
|
3062
3076
|
enum robot_order_type {
|
3063
3077
|
/**
|
3064
3078
|
* Construct a ghost.
|
3065
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3079
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.robot_order_type.construct Online documentation}
|
3066
3080
|
*/
|
3067
3081
|
construct,
|
3068
3082
|
/**
|
3069
3083
|
* Pickup an item.
|
3070
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3084
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.robot_order_type.pickup Online documentation}
|
3071
3085
|
*/
|
3072
3086
|
pickup,
|
3073
3087
|
/**
|
3074
3088
|
* Deliver an item.
|
3075
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3089
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.robot_order_type.deliver Online documentation}
|
3076
3090
|
*/
|
3077
3091
|
deliver,
|
3078
3092
|
/**
|
3079
3093
|
* Repair an entity.
|
3080
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3094
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.robot_order_type.repair Online documentation}
|
3081
3095
|
*/
|
3082
3096
|
repair,
|
3083
3097
|
/**
|
3084
3098
|
* Deconstruct an entity.
|
3085
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3099
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.robot_order_type.deconstruct Online documentation}
|
3086
3100
|
*/
|
3087
3101
|
deconstruct,
|
3088
3102
|
/**
|
3089
3103
|
* Deliver specific items to an entity (item request proxy).
|
3090
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3104
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.robot_order_type.deliver_items Online documentation}
|
3091
3105
|
*/
|
3092
3106
|
deliver_items,
|
3093
3107
|
/**
|
3094
3108
|
* Upgrade an entity.
|
3095
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3109
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.robot_order_type.upgrade Online documentation}
|
3096
3110
|
*/
|
3097
3111
|
upgrade,
|
3098
3112
|
/**
|
3099
3113
|
* Explode a cliff.
|
3100
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3114
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.robot_order_type.explode_cliff Online documentation}
|
3101
3115
|
*/
|
3102
3116
|
explode_cliff,
|
3103
3117
|
/**
|
3104
3118
|
* Pickup items from an entity (item request proxy).
|
3105
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3119
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.robot_order_type.pickup_items Online documentation}
|
3106
3120
|
*/
|
3107
3121
|
pickup_items,
|
3108
3122
|
}
|
3109
3123
|
/**
|
3110
3124
|
* The various parts of the launch sequence of the rocket silo.
|
3111
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3125
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.rocket_silo_status Online documentation}
|
3112
3126
|
*/
|
3113
3127
|
enum rocket_silo_status {
|
3114
3128
|
/**
|
3115
3129
|
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
3116
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3130
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
|
3117
3131
|
*/
|
3118
3132
|
building_rocket,
|
3119
3133
|
/**
|
3120
3134
|
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
3121
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3135
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
|
3122
3136
|
*/
|
3123
3137
|
create_rocket,
|
3124
3138
|
/**
|
3125
3139
|
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
3126
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3140
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
|
3127
3141
|
*/
|
3128
3142
|
lights_blinking_open,
|
3129
3143
|
/**
|
3130
3144
|
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
3131
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3145
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
|
3132
3146
|
*/
|
3133
3147
|
doors_opening,
|
3134
3148
|
/**
|
3135
3149
|
* 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.
|
3136
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3150
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
|
3137
3151
|
*/
|
3138
3152
|
doors_opened,
|
3139
3153
|
/**
|
3140
3154
|
* 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.
|
3141
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3155
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
|
3142
3156
|
*/
|
3143
3157
|
rocket_rising,
|
3144
3158
|
/**
|
3145
3159
|
* 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.
|
3146
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3160
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
|
3147
3161
|
*/
|
3148
3162
|
arms_advance,
|
3149
3163
|
/**
|
3150
3164
|
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
3151
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3165
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
|
3152
3166
|
*/
|
3153
3167
|
rocket_ready,
|
3154
3168
|
/**
|
3155
3169
|
* The next state is `launch_started`.
|
3156
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3170
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
|
3157
3171
|
*/
|
3158
3172
|
launch_starting,
|
3159
3173
|
/**
|
3160
3174
|
* 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.
|
3161
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3175
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
|
3162
3176
|
*/
|
3163
3177
|
engine_starting,
|
3164
3178
|
/**
|
3165
3179
|
* 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.
|
3166
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3180
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
|
3167
3181
|
*/
|
3168
3182
|
arms_retract,
|
3169
3183
|
/**
|
3170
3184
|
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
3171
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3185
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
|
3172
3186
|
*/
|
3173
3187
|
rocket_flying,
|
3174
3188
|
/**
|
3175
3189
|
* The next state is `doors_closing`.
|
3176
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3190
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
|
3177
3191
|
*/
|
3178
3192
|
lights_blinking_close,
|
3179
3193
|
/**
|
3180
3194
|
* The next state is `building_rocket`.
|
3181
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3195
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
|
3182
3196
|
*/
|
3183
3197
|
doors_closing,
|
3184
3198
|
/**
|
3185
3199
|
* 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.
|
3186
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3200
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.rocket_silo_status.launch_started Online documentation}
|
3187
3201
|
*/
|
3188
3202
|
launch_started,
|
3189
3203
|
}
|
3190
3204
|
enum segmented_unit_activity_mode {
|
3191
3205
|
/**
|
3192
3206
|
* The segmented unit is completely asleep, only performing the bare minimum checks to wake up if needed.
|
3193
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3207
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.segmented_unit_activity_mode.asleep Online documentation}
|
3194
3208
|
*/
|
3195
3209
|
asleep,
|
3196
3210
|
/**
|
3197
3211
|
* The segmented unit is minimally active, reducing unnecessary entity movement and trigger effects while continuing to patrol around its territory.
|
3198
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3212
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.segmented_unit_activity_mode.minimal Online documentation}
|
3199
3213
|
*/
|
3200
3214
|
minimal,
|
3201
3215
|
/**
|
3202
3216
|
* The segmented unit is fully active and simulated as if it is being observed by a player.
|
3203
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3217
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.segmented_unit_activity_mode.full Online documentation}
|
3204
3218
|
*/
|
3205
3219
|
full,
|
3206
3220
|
}
|
3207
3221
|
enum segmented_unit_ai_state {
|
3208
3222
|
/**
|
3209
3223
|
* 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.
|
3210
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3224
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.segmented_unit_ai_state.patrolling Online documentation}
|
3211
3225
|
*/
|
3212
3226
|
patrolling,
|
3213
3227
|
/**
|
3214
3228
|
* The segmented unit is investigating a location where it detected a disturbance.
|
3215
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3229
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.segmented_unit_ai_state.investigating Online documentation}
|
3216
3230
|
*/
|
3217
3231
|
investigating,
|
3218
3232
|
/**
|
3219
3233
|
* The segmented unit is attacking an entity that is trespassing on its territory, but the segmented unit is not using its full strength.
|
3220
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3234
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.segmented_unit_ai_state.attacking Online documentation}
|
3221
3235
|
*/
|
3222
3236
|
attacking,
|
3223
3237
|
/**
|
3224
3238
|
* The segmented unit is angry because it was attacked and is aggressively attacking an entity with its full strength.
|
3225
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3239
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.segmented_unit_ai_state.enraged_at_target Online documentation}
|
3226
3240
|
*/
|
3227
3241
|
enraged_at_target,
|
3228
3242
|
/**
|
3229
3243
|
* 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.
|
3230
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3244
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.segmented_unit_ai_state.enraged_at_nothing Online documentation}
|
3231
3245
|
*/
|
3232
3246
|
enraged_at_nothing,
|
3233
3247
|
}
|
3234
3248
|
enum segmented_unit_created_cause {
|
3235
3249
|
/**
|
3236
3250
|
* The segmented unit was spawned naturally by the map generator.
|
3237
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3251
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.segmented_unit_created_cause.map_generated Online documentation}
|
3238
3252
|
*/
|
3239
3253
|
map_generated,
|
3240
3254
|
/**
|
3241
3255
|
* The segmented unit was created manually via script.
|
3242
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3256
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.segmented_unit_created_cause.script_created Online documentation}
|
3243
3257
|
*/
|
3244
3258
|
script_created,
|
3245
3259
|
/**
|
3246
3260
|
* The segmented unit was cloned from an existing segmented unit via script.
|
3247
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3261
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.segmented_unit_created_cause.script_cloned Online documentation}
|
3248
3262
|
*/
|
3249
3263
|
script_cloned,
|
3250
3264
|
}
|
@@ -3261,74 +3275,74 @@ declare global {
|
|
3261
3275
|
}
|
3262
3276
|
/**
|
3263
3277
|
* State of an ordinary rail signal.
|
3264
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3278
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.signal_state Online documentation}
|
3265
3279
|
*/
|
3266
3280
|
enum signal_state {
|
3267
3281
|
/**
|
3268
3282
|
* Green.
|
3269
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3283
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.signal_state.open Online documentation}
|
3270
3284
|
*/
|
3271
3285
|
open,
|
3272
3286
|
/**
|
3273
3287
|
* Red.
|
3274
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3288
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.signal_state.closed Online documentation}
|
3275
3289
|
*/
|
3276
3290
|
closed,
|
3277
3291
|
/**
|
3278
3292
|
* Orange.
|
3279
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3293
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.signal_state.reserved Online documentation}
|
3280
3294
|
*/
|
3281
3295
|
reserved,
|
3282
3296
|
/**
|
3283
3297
|
* Red - From circuit network.
|
3284
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3298
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
3285
3299
|
*/
|
3286
3300
|
reserved_by_circuit_network,
|
3287
3301
|
}
|
3288
3302
|
enum space_platform_state {
|
3289
3303
|
/**
|
3290
3304
|
* Waiting for a starter pack.
|
3291
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3305
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
|
3292
3306
|
*/
|
3293
3307
|
waiting_for_starter_pack,
|
3294
3308
|
/**
|
3295
3309
|
* Starter pack was requested from the logistics system.
|
3296
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3310
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
|
3297
3311
|
*/
|
3298
3312
|
starter_pack_requested,
|
3299
3313
|
/**
|
3300
3314
|
* Starter pack is on the way.
|
3301
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3315
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
|
3302
3316
|
*/
|
3303
3317
|
starter_pack_on_the_way,
|
3304
3318
|
/**
|
3305
3319
|
* Following the path.
|
3306
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3320
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.space_platform_state.on_the_path Online documentation}
|
3307
3321
|
*/
|
3308
3322
|
on_the_path,
|
3309
3323
|
/**
|
3310
3324
|
* Platform is ready to leave this planet and does not accept deliveries.
|
3311
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3325
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
|
3312
3326
|
*/
|
3313
3327
|
waiting_for_departure,
|
3314
3328
|
/**
|
3315
3329
|
* Doesn't have any stations in schedule.
|
3316
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3330
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.space_platform_state.no_schedule Online documentation}
|
3317
3331
|
*/
|
3318
3332
|
no_schedule,
|
3319
3333
|
/**
|
3320
3334
|
* Doesn't have anywhere to go.
|
3321
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3335
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.space_platform_state.no_path Online documentation}
|
3322
3336
|
*/
|
3323
3337
|
no_path,
|
3324
3338
|
/**
|
3325
3339
|
* Waiting at a station.
|
3326
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3340
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
|
3327
3341
|
*/
|
3328
3342
|
waiting_at_station,
|
3329
3343
|
/**
|
3330
3344
|
* Paused.
|
3331
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3345
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.space_platform_state.paused Online documentation}
|
3332
3346
|
*/
|
3333
3347
|
paused,
|
3334
3348
|
}
|
@@ -3359,64 +3373,64 @@ declare global {
|
|
3359
3373
|
enum territory_created_cause {
|
3360
3374
|
/**
|
3361
3375
|
* The territory was spawned naturally by the map generator.
|
3362
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3376
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.territory_created_cause.map_generated Online documentation}
|
3363
3377
|
*/
|
3364
3378
|
map_generated,
|
3365
3379
|
/**
|
3366
3380
|
* The territory was created manually via script.
|
3367
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3381
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.territory_created_cause.script_created Online documentation}
|
3368
3382
|
*/
|
3369
3383
|
script_created,
|
3370
3384
|
}
|
3371
3385
|
enum train_state {
|
3372
3386
|
/**
|
3373
3387
|
* Normal state -- following the path.
|
3374
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3388
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.train_state.on_the_path Online documentation}
|
3375
3389
|
*/
|
3376
3390
|
on_the_path,
|
3377
3391
|
/**
|
3378
3392
|
* Doesn't have anywhere to go.
|
3379
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3393
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.train_state.no_schedule Online documentation}
|
3380
3394
|
*/
|
3381
3395
|
no_schedule,
|
3382
3396
|
/**
|
3383
3397
|
* Has no path and is stopped.
|
3384
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3398
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.train_state.no_path Online documentation}
|
3385
3399
|
*/
|
3386
3400
|
no_path,
|
3387
3401
|
/**
|
3388
3402
|
* Braking before a rail signal.
|
3389
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3403
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.train_state.arrive_signal Online documentation}
|
3390
3404
|
*/
|
3391
3405
|
arrive_signal,
|
3392
3406
|
/**
|
3393
3407
|
* Waiting at a signal.
|
3394
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3408
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.train_state.wait_signal Online documentation}
|
3395
3409
|
*/
|
3396
3410
|
wait_signal,
|
3397
3411
|
/**
|
3398
3412
|
* Braking before a station.
|
3399
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3413
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.train_state.arrive_station Online documentation}
|
3400
3414
|
*/
|
3401
3415
|
arrive_station,
|
3402
3416
|
/**
|
3403
3417
|
* Switched to manual control and has to stop.
|
3404
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3418
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.train_state.manual_control_stop Online documentation}
|
3405
3419
|
*/
|
3406
3420
|
manual_control_stop,
|
3407
3421
|
/**
|
3408
3422
|
* Can move if user explicitly sits in and rides the train.
|
3409
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3423
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.train_state.manual_control Online documentation}
|
3410
3424
|
*/
|
3411
3425
|
manual_control,
|
3412
3426
|
/**
|
3413
3427
|
* Waiting at a station.
|
3414
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3428
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.train_state.wait_station Online documentation}
|
3415
3429
|
*/
|
3416
3430
|
wait_station,
|
3417
3431
|
/**
|
3418
3432
|
* Same as no_path but all candidate train stops are full
|
3419
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3433
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.train_state.destination_full Online documentation}
|
3420
3434
|
*/
|
3421
3435
|
destination_full,
|
3422
3436
|
}
|
@@ -3446,17 +3460,17 @@ declare global {
|
|
3446
3460
|
enum wire_origin {
|
3447
3461
|
/**
|
3448
3462
|
* 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.
|
3449
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3463
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.wire_origin.player Online documentation}
|
3450
3464
|
*/
|
3451
3465
|
player,
|
3452
3466
|
/**
|
3453
3467
|
* 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.
|
3454
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3468
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.wire_origin.script Online documentation}
|
3455
3469
|
*/
|
3456
3470
|
script,
|
3457
3471
|
/**
|
3458
3472
|
* These wires can only be modified by the game. They are not visible to the player, irrespective of the `draw_circuit_wires` prototype property.
|
3459
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3473
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/defines.html#defines.wire_origin.radars Online documentation}
|
3460
3474
|
*/
|
3461
3475
|
radars,
|
3462
3476
|
}
|