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