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