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