typed-factorio 4.2.0 → 4.7.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.
@@ -101,6 +101,7 @@ import type {
101
101
  OnMarketItemPurchasedEvent,
102
102
  OnModItemOpenedEvent,
103
103
  OnMultiplayerInitEvent,
104
+ OnNextDayStartedEvent,
104
105
  OnObjectDestroyedEvent,
105
106
  OnPermissionGroupAddedEvent,
106
107
  OnPermissionGroupDeletedEvent,
@@ -114,9 +115,11 @@ import type {
114
115
  OnPlayerBannedEvent,
115
116
  OnPlayerBuiltTileEvent,
116
117
  OnPlayerCancelledCraftingEvent,
118
+ OnPlayerCancelSelectedAreaEvent,
117
119
  OnPlayerChangedForceEvent,
118
120
  OnPlayerChangedPositionEvent,
119
121
  OnPlayerChangedSurfaceEvent,
122
+ OnPlayerChangeSelectedAreaEvent,
120
123
  OnPlayerCheatModeDisabledEvent,
121
124
  OnPlayerCheatModeEnabledEvent,
122
125
  OnPlayerClickedGpsTagEvent,
@@ -162,6 +165,8 @@ import type {
162
165
  OnPlayerSelectedAreaEvent,
163
166
  OnPlayerSetQuickBarSlotEvent,
164
167
  OnPlayerSetupBlueprintEvent,
168
+ OnPlayerStartSelectedAreaEvent,
169
+ OnPlayerSuperForcedSelectedAreaEvent,
165
170
  OnPlayerToggledAltModeEvent,
166
171
  OnPlayerToggledMapEditorEvent,
167
172
  OnPlayerTrashInventoryChangedEvent,
@@ -265,6 +270,7 @@ declare global {
265
270
  custom,
266
271
  entity_destroyed,
267
272
  entity_under_attack,
273
+ expansion_base_built,
268
274
  fluid_mixing,
269
275
  no_material_for_construction,
270
276
  no_platform_storage,
@@ -282,7 +288,7 @@ declare global {
282
288
  }
283
289
  /**
284
290
  * AI command exit status, see {@link LuaCommandable#set_command LuaCommandable::set_command}
285
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.behavior_result Online documentation}
291
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.behavior_result Online documentation}
286
292
  */
287
293
  enum behavior_result {
288
294
  in_progress,
@@ -306,33 +312,33 @@ declare global {
306
312
  enum cargo_destination {
307
313
  /**
308
314
  * The default destination type of a cargo pod when created runtime. Setting its destination to any other type will instantly launch it.
309
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.cargo_destination.invalid Online documentation}
315
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.cargo_destination.invalid Online documentation}
310
316
  */
311
317
  invalid,
312
318
  /**
313
319
  * Cargo pods with orbit destination are destroyed when ascent is completed.
314
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.cargo_destination.orbit Online documentation}
320
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.cargo_destination.orbit Online documentation}
315
321
  */
316
322
  orbit,
317
323
  /**
318
324
  * Any cargo landing pad or space platform hub.
319
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.cargo_destination.station Online documentation}
325
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.cargo_destination.station Online documentation}
320
326
  */
321
327
  station,
322
328
  /**
323
329
  * Cargo pods will switch destination type from surface to station before starting descent if there is a station available and {@link CargoDestination#position CargoDestination::position} has not been specified. Note, setting the destination to "surface" when the surface is the same as the one the pod is on forces it to find and set a landing position.
324
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.cargo_destination.surface Online documentation}
330
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.cargo_destination.surface Online documentation}
325
331
  */
326
332
  surface,
327
333
  /**
328
334
  * Only used for sending a space platform starter pack to a platform that is waiting for one. Regular deliveries to space platform hubs use {@link defines.cargo_destination.station station} destination type instead.
329
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.cargo_destination.space_platform Online documentation}
335
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.cargo_destination.space_platform Online documentation}
330
336
  */
331
337
  space_platform,
332
338
  }
333
339
  /**
334
340
  * State of a chain signal.
335
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.chain_signal_state Online documentation}
341
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.chain_signal_state Online documentation}
336
342
  */
337
343
  enum chain_signal_state {
338
344
  none,
@@ -350,73 +356,73 @@ declare global {
350
356
  }
351
357
  /**
352
358
  * Command given to units describing what they should do.
353
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command Online documentation}
359
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.command Online documentation}
354
360
  */
355
361
  enum command {
356
362
  /**
357
363
  * Attack another entity.
358
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.attack Online documentation}
364
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.command.attack Online documentation}
359
365
  */
360
366
  attack = 0,
361
367
  /**
362
368
  * Go to a specific position.
363
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.go_to_location Online documentation}
369
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.command.go_to_location Online documentation}
364
370
  */
365
371
  go_to_location = 1,
366
372
  /**
367
373
  * Chain commands together, see {@link defines.compound_command}.
368
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.compound Online documentation}
374
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.command.compound Online documentation}
369
375
  */
370
376
  compound = 2,
371
377
  /**
372
378
  * Do what your group wants you to do.
373
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.group Online documentation}
379
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.command.group Online documentation}
374
380
  */
375
381
  group = 3,
376
382
  /**
377
383
  * Go to a place and attack what you see.
378
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.attack_area Online documentation}
384
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.command.attack_area Online documentation}
379
385
  */
380
386
  attack_area = 4,
381
387
  /**
382
388
  * Chill.
383
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.wander Online documentation}
389
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.command.wander Online documentation}
384
390
  */
385
391
  wander = 5,
386
392
  /**
387
393
  * Flee from another entity.
388
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.flee Online documentation}
394
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.command.flee Online documentation}
389
395
  */
390
396
  flee = 6,
391
397
  /**
392
398
  * Stop moving and stay where you are.
393
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.stop Online documentation}
399
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.command.stop Online documentation}
394
400
  */
395
401
  stop = 7,
396
402
  /**
397
403
  * Go to a position and build a base there.
398
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.command.build_base Online documentation}
404
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.command.build_base Online documentation}
399
405
  */
400
406
  build_base = 8,
401
407
  }
402
408
  /**
403
409
  * How commands are joined together in a compound command (see {@link defines.command.compound}).
404
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.compound_command Online documentation}
410
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.compound_command Online documentation}
405
411
  */
406
412
  enum compound_command {
407
413
  /**
408
414
  * Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
409
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.compound_command.logical_and Online documentation}
415
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.compound_command.logical_and Online documentation}
410
416
  */
411
417
  logical_and,
412
418
  /**
413
419
  * Succeed on first success. Only fails if all commands (executed one after another) fail.
414
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.compound_command.logical_or Online documentation}
420
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.compound_command.logical_or Online documentation}
415
421
  */
416
422
  logical_or,
417
423
  /**
418
424
  * Execute all commands in sequence and fail or succeed depending on the return status of the last command.
419
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.compound_command.return_last Online documentation}
425
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.compound_command.return_last Online documentation}
420
426
  */
421
427
  return_last,
422
428
  }
@@ -480,197 +486,197 @@ declare global {
480
486
  enum type {
481
487
  /**
482
488
  * {@link LuaContainerControlBehavior}
483
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.container Online documentation}
489
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.container Online documentation}
484
490
  */
485
491
  container,
486
492
  /**
487
493
  * {@link LuaGenericOnOffControlBehavior}
488
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
494
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
489
495
  */
490
496
  generic_on_off,
491
497
  /**
492
498
  * {@link LuaInserterControlBehavior}
493
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.inserter Online documentation}
499
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.inserter Online documentation}
494
500
  */
495
501
  inserter,
496
502
  /**
497
503
  * {@link LuaLampControlBehavior}
498
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.lamp Online documentation}
504
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.lamp Online documentation}
499
505
  */
500
506
  lamp,
501
507
  /**
502
508
  * {@link LuaLogisticContainerControlBehavior}
503
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.logistic_container Online documentation}
509
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.logistic_container Online documentation}
504
510
  */
505
511
  logistic_container,
506
512
  /**
507
513
  * {@link LuaRoboportControlBehavior}
508
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.roboport Online documentation}
514
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.roboport Online documentation}
509
515
  */
510
516
  roboport,
511
517
  /**
512
518
  * {@link LuaSingleFluidBoxControlBehavior}
513
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.single_fluid_box Online documentation}
519
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.single_fluid_box Online documentation}
514
520
  */
515
521
  single_fluid_box,
516
522
  /**
517
523
  * {@link LuaTrainStopControlBehavior}
518
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.train_stop Online documentation}
524
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.train_stop Online documentation}
519
525
  */
520
526
  train_stop,
521
527
  /**
522
528
  * {@link LuaDeciderCombinatorControlBehavior}
523
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
529
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
524
530
  */
525
531
  decider_combinator,
526
532
  /**
527
533
  * {@link LuaArithmeticCombinatorControlBehavior}
528
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
534
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
529
535
  */
530
536
  arithmetic_combinator,
531
537
  /**
532
538
  * {@link LuaConstantCombinatorControlBehavior}
533
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
539
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
534
540
  */
535
541
  constant_combinator,
536
542
  /**
537
543
  * {@link LuaTransportBeltControlBehavior}
538
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.transport_belt Online documentation}
544
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.transport_belt Online documentation}
539
545
  */
540
546
  transport_belt,
541
547
  /**
542
548
  * {@link LuaAccumulatorControlBehavior}
543
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.accumulator Online documentation}
549
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.accumulator Online documentation}
544
550
  */
545
551
  accumulator,
546
552
  /**
547
553
  * {@link LuaRailSignalBaseControlBehavior}
548
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.rail_signal Online documentation}
554
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.rail_signal Online documentation}
549
555
  */
550
556
  rail_signal,
551
557
  /**
552
558
  * {@link LuaRailSignalBaseControlBehavior}
553
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
559
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
554
560
  */
555
561
  rail_chain_signal,
556
562
  /**
557
563
  * {@link LuaWallControlBehavior}
558
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.wall Online documentation}
564
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.wall Online documentation}
559
565
  */
560
566
  wall,
561
567
  /**
562
568
  * {@link LuaMiningDrillControlBehavior}
563
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.mining_drill Online documentation}
569
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.mining_drill Online documentation}
564
570
  */
565
571
  mining_drill,
566
572
  /**
567
573
  * {@link LuaProgrammableSpeakerControlBehavior}
568
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
574
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
569
575
  */
570
576
  programmable_speaker,
571
577
  /**
572
578
  * {@link LuaAssemblingMachineControlBehavior}
573
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.assembling_machine Online documentation}
579
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.assembling_machine Online documentation}
574
580
  */
575
581
  assembling_machine,
576
582
  /**
577
583
  * {@link LuaPumpControlBehavior}
578
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.pump Online documentation}
584
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.pump Online documentation}
579
585
  */
580
586
  pump,
581
587
  /**
582
588
  * {@link LuaSelectorCombinatorControlBehavior}
583
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.selector_combinator Online documentation}
589
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.selector_combinator Online documentation}
584
590
  */
585
591
  selector_combinator,
586
592
  /**
587
593
  * {@link LuaRocketSiloControlBehavior}
588
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.rocket_silo Online documentation}
594
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.rocket_silo Online documentation}
589
595
  */
590
596
  rocket_silo,
591
597
  /**
592
598
  * {@link LuaTurretControlBehavior}
593
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.turret Online documentation}
599
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.turret Online documentation}
594
600
  */
595
601
  turret,
596
602
  /**
597
603
  * {@link LuaReactorControlBehavior}
598
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.reactor Online documentation}
604
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.reactor Online documentation}
599
605
  */
600
606
  reactor,
601
607
  /**
602
608
  * {@link LuaSpacePlatformHubControlBehavior}
603
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.space_platform_hub Online documentation}
609
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.space_platform_hub Online documentation}
604
610
  */
605
611
  space_platform_hub,
606
612
  /**
607
613
  * {@link LuaArtilleryTurretControlBehavior}
608
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.artillery_turret Online documentation}
614
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.artillery_turret Online documentation}
609
615
  */
610
616
  artillery_turret,
611
617
  /**
612
618
  * {@link LuaAsteroidCollectorControlBehavior}
613
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.asteroid_collector Online documentation}
619
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.asteroid_collector Online documentation}
614
620
  */
615
621
  asteroid_collector,
616
622
  /**
617
623
  * {@link LuaRadarControlBehavior}
618
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.radar Online documentation}
624
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.radar Online documentation}
619
625
  */
620
626
  radar,
621
627
  /**
622
628
  * {@link LuaDisplayPanelControlBehavior}
623
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.display_panel Online documentation}
629
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.display_panel Online documentation}
624
630
  */
625
631
  display_panel,
626
632
  /**
627
633
  * {@link LuaLoaderControlBehavior}
628
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.loader Online documentation}
634
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.loader Online documentation}
629
635
  */
630
636
  loader,
631
637
  /**
632
638
  * {@link LuaCargoLandingPadControlBehavior}
633
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.cargo_landing_pad Online documentation}
639
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.cargo_landing_pad Online documentation}
634
640
  */
635
641
  cargo_landing_pad,
636
642
  /**
637
643
  * {@link LuaAgriculturalTowerControlBehavior}
638
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.agricultural_tower Online documentation}
644
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.agricultural_tower Online documentation}
639
645
  */
640
646
  agricultural_tower,
641
647
  /**
642
648
  * {@link LuaFurnaceControlBehavior}
643
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.furnace Online documentation}
649
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.furnace Online documentation}
644
650
  */
645
651
  furnace,
646
652
  /**
647
653
  * {@link LuaProxyContainerControlBehavior}
648
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.proxy_container Online documentation}
654
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.proxy_container Online documentation}
649
655
  */
650
656
  proxy_container,
651
657
  /**
652
658
  * {@link LuaSplitterControlBehavior}
653
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.splitter Online documentation}
659
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.splitter Online documentation}
654
660
  */
655
661
  splitter,
656
662
  /**
657
663
  * {@link LuaLabControlBehavior}
658
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.lab Online documentation}
664
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.lab Online documentation}
659
665
  */
660
666
  lab,
661
667
  /**
662
668
  * {@link LuaHeatPipeControlBehavior}
663
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.heat_pipe Online documentation}
669
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.heat_pipe Online documentation}
664
670
  */
665
671
  heat_pipe,
666
672
  /**
667
673
  * {@link LuaBoilerControlBehavior}
668
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.boiler Online documentation}
674
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.boiler Online documentation}
669
675
  */
670
676
  boiler,
671
677
  /**
672
678
  * {@link LuaLandMineControlBehavior}
673
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.control_behavior.type.land_mine Online documentation}
679
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.control_behavior.type.land_mine Online documentation}
674
680
  */
675
681
  land_mine,
676
682
  }
@@ -678,37 +684,37 @@ declare global {
678
684
  enum controllers {
679
685
  /**
680
686
  * Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
681
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.controllers.ghost Online documentation}
687
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.controllers.ghost Online documentation}
682
688
  */
683
689
  ghost,
684
690
  /**
685
691
  * The controller controls a character. This is the default controller in freeplay.
686
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.controllers.character Online documentation}
692
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.controllers.character Online documentation}
687
693
  */
688
694
  character,
689
695
  /**
690
696
  * The controller isn't tied to a character. This is the default controller in sandbox.
691
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.controllers.god Online documentation}
697
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.controllers.god Online documentation}
692
698
  */
693
699
  god,
694
700
  /**
695
701
  * The Editor Controller near ultimate power to do almost anything in the game.
696
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.controllers.editor Online documentation}
702
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.controllers.editor Online documentation}
697
703
  */
698
704
  editor,
699
705
  /**
700
706
  * The player can't interact with the world, and the camera pans around in a predefined manner.
701
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.controllers.cutscene Online documentation}
707
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.controllers.cutscene Online documentation}
702
708
  */
703
709
  cutscene,
704
710
  /**
705
711
  * Can't change anything in the world but can view anything.
706
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.controllers.spectator Online documentation}
712
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.controllers.spectator Online documentation}
707
713
  */
708
714
  spectator,
709
715
  /**
710
716
  * Can't move/change items but can build ghosts/change settings.
711
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.controllers.remote Online documentation}
717
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.controllers.remote Online documentation}
712
718
  */
713
719
  remote,
714
720
  }
@@ -767,22 +773,22 @@ declare global {
767
773
  enum distraction {
768
774
  /**
769
775
  * Perform command even if someone attacks the unit.
770
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.distraction.none Online documentation}
776
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.distraction.none Online documentation}
771
777
  */
772
778
  none,
773
779
  /**
774
780
  * Attack closer enemy entities with force.
775
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.distraction.by_enemy Online documentation}
781
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.distraction.by_enemy Online documentation}
776
782
  */
777
783
  by_enemy,
778
784
  /**
779
785
  * Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
780
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.distraction.by_anything Online documentation}
786
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.distraction.by_anything Online documentation}
781
787
  */
782
788
  by_anything,
783
789
  /**
784
790
  * Attack when attacked.
785
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.distraction.by_damage Online documentation}
791
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.distraction.by_damage Online documentation}
786
792
  */
787
793
  by_damage,
788
794
  }
@@ -802,12 +808,12 @@ declare global {
802
808
  normal,
803
809
  /**
804
810
  * Used by ghosts.
805
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.ghost Online documentation}
811
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.ghost Online documentation}
806
812
  */
807
813
  ghost,
808
814
  /**
809
815
  * Only used if set through {@link import("factorio:prototype").ContainerPrototype#default_status ContainerPrototype::default_status}.
810
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.broken Online documentation}
816
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.broken Online documentation}
811
817
  */
812
818
  broken,
813
819
  no_power,
@@ -821,297 +827,307 @@ declare global {
821
827
  marked_for_deconstruction,
822
828
  /**
823
829
  * Used by space platform hubs.
824
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.paused Online documentation}
830
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.paused Online documentation}
825
831
  */
826
832
  paused,
827
833
  /**
828
834
  * Used by generators and solar panels.
829
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
835
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
830
836
  */
831
837
  not_plugged_in_electric_network,
832
838
  /**
833
839
  * Used by power switches.
834
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.networks_connected Online documentation}
840
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.networks_connected Online documentation}
835
841
  */
836
842
  networks_connected,
837
843
  /**
838
844
  * Used by power switches.
839
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.networks_disconnected Online documentation}
845
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.networks_disconnected Online documentation}
840
846
  */
841
847
  networks_disconnected,
842
848
  /**
843
849
  * Used by accumulators.
844
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.charging Online documentation}
850
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.charging Online documentation}
845
851
  */
846
852
  charging,
847
853
  /**
848
854
  * Used by accumulators.
849
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.discharging Online documentation}
855
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.discharging Online documentation}
850
856
  */
851
857
  discharging,
852
858
  /**
853
859
  * Used by accumulators.
854
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.fully_charged Online documentation}
860
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.fully_charged Online documentation}
855
861
  */
856
862
  fully_charged,
857
863
  /**
858
864
  * Used by logistic containers.
859
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
865
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
860
866
  */
861
867
  out_of_logistic_network,
862
868
  /**
863
869
  * Used by assembling machines.
864
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_recipe Online documentation}
870
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.no_recipe Online documentation}
865
871
  */
866
872
  no_recipe,
867
873
  /**
868
874
  * Used by furnaces.
869
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_ingredients Online documentation}
875
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.no_ingredients Online documentation}
870
876
  */
871
877
  no_ingredients,
872
878
  /**
873
879
  * Used by boilers, fluid turrets, and fluid energy sources: Boiler has no fluid to work with.
874
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_input_fluid Online documentation}
880
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.no_input_fluid Online documentation}
875
881
  */
876
882
  no_input_fluid,
883
+ /**
884
+ * Used by entities that consume fluids or have a fluid energy source.
885
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.input_fluid_too_cold Online documentation}
886
+ */
887
+ input_fluid_too_cold,
888
+ /**
889
+ * Used by entities that consume fluids or have a fluid energy source.
890
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.input_fluid_too_hot Online documentation}
891
+ */
892
+ input_fluid_too_hot,
877
893
  /**
878
894
  * Used by labs.
879
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_research_in_progress Online documentation}
895
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.no_research_in_progress Online documentation}
880
896
  */
881
897
  no_research_in_progress,
882
898
  /**
883
899
  * Used by mining drills.
884
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_minable_resources Online documentation}
900
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.no_minable_resources Online documentation}
885
901
  */
886
902
  no_minable_resources,
887
903
  /**
888
904
  * Used by cargo bays.
889
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.hatches_blocked_by_elevated_rail Online documentation}
905
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.hatches_blocked_by_elevated_rail Online documentation}
890
906
  */
891
907
  hatches_blocked_by_elevated_rail,
892
908
  /**
893
909
  * Used by cargo bays.
894
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.not_connected_to_hub_or_pad Online documentation}
910
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.not_connected_to_hub_or_pad Online documentation}
895
911
  */
896
912
  not_connected_to_hub_or_pad,
897
913
  /**
898
914
  * Used by some cargo bays.
899
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.too_far_from_pad_to_unload Online documentation}
915
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.too_far_from_pad_to_unload Online documentation}
900
916
  */
901
917
  too_far_from_pad_to_unload,
902
918
  /**
903
919
  * Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
904
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.low_input_fluid Online documentation}
920
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.low_input_fluid Online documentation}
905
921
  */
906
922
  low_input_fluid,
907
923
  /**
908
924
  * Used by crafting machines.
909
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
925
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
910
926
  */
911
927
  fluid_ingredient_shortage,
912
928
  /**
913
929
  * Used by crafting machines, boilers, burner energy sources, and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
914
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.full_output Online documentation}
930
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.full_output Online documentation}
915
931
  */
916
932
  full_output,
917
933
  /**
918
934
  * Used by agricultural towers.
919
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.not_enough_space_in_output Online documentation}
935
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.not_enough_space_in_output Online documentation}
920
936
  */
921
937
  not_enough_space_in_output,
922
938
  /**
923
939
  * Used by burner energy sources.
924
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
940
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
925
941
  */
926
942
  full_burnt_result_output,
927
943
  /**
928
944
  * Used by crafting machines.
929
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
945
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
930
946
  */
931
947
  item_ingredient_shortage,
932
948
  /**
933
949
  * Used by mining drills when the mining fluid is missing.
934
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.missing_required_fluid Online documentation}
950
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.missing_required_fluid Online documentation}
935
951
  */
936
952
  missing_required_fluid,
937
953
  /**
938
954
  * Used by labs.
939
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.missing_science_packs Online documentation}
955
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.missing_science_packs Online documentation}
940
956
  */
941
957
  missing_science_packs,
942
958
  /**
943
959
  * Used by inserters.
944
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
960
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
945
961
  */
946
962
  waiting_for_source_items,
947
963
  /**
948
964
  * Used by inserters when wait_for_full_hand is set.
949
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_more_items Online documentation}
965
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.waiting_for_more_items Online documentation}
950
966
  */
951
967
  waiting_for_more_items,
952
968
  /**
953
969
  * Used by inserters, mining drills, and crafting machines using vector_to_place_result.
954
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
970
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
955
971
  */
956
972
  waiting_for_space_in_destination,
957
973
  /**
958
974
  * Used by the rocket silo.
959
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
975
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
960
976
  */
961
977
  preparing_rocket_for_launch,
962
978
  /**
963
979
  * Used by the rocket silo.
964
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
980
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
965
981
  */
966
982
  waiting_to_launch_rocket,
967
983
  /**
968
984
  * Used by the rocket silo.
969
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_space_in_platform_hub Online documentation}
985
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.waiting_for_space_in_platform_hub Online documentation}
970
986
  */
971
987
  waiting_for_space_in_platform_hub,
972
988
  /**
973
989
  * Used by the rocket silo.
974
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.launching_rocket Online documentation}
990
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.launching_rocket Online documentation}
975
991
  */
976
992
  launching_rocket,
977
993
  /**
978
994
  * Used by thrusters.
979
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.thrust_not_required Online documentation}
995
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.thrust_not_required Online documentation}
980
996
  */
981
997
  thrust_not_required,
982
998
  /**
983
999
  * Used by space platform hubs.
984
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.on_the_way Online documentation}
1000
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.on_the_way Online documentation}
985
1001
  */
986
1002
  on_the_way,
987
1003
  /**
988
1004
  * Used by space platform hubs.
989
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_in_orbit Online documentation}
1005
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.waiting_in_orbit Online documentation}
990
1006
  */
991
1007
  waiting_in_orbit,
992
1008
  /**
993
1009
  * Used by trains.
994
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_at_stop Online documentation}
1010
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.waiting_at_stop Online documentation}
995
1011
  */
996
1012
  waiting_at_stop,
997
1013
  /**
998
1014
  * Used by trains.
999
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_upgrade Online documentation}
1015
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.waiting_for_upgrade Online documentation}
1000
1016
  */
1001
1017
  waiting_for_upgrade,
1002
1018
  /**
1003
1019
  * Used by space platform hubs.
1004
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_rockets_to_arrive Online documentation}
1020
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.waiting_for_rockets_to_arrive Online documentation}
1005
1021
  */
1006
1022
  waiting_for_rockets_to_arrive,
1007
1023
  /**
1008
1024
  * Used by space platform hubs.
1009
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_to_clear_drop_slots Online documentation}
1025
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.waiting_to_clear_drop_slots Online documentation}
1010
1026
  */
1011
1027
  waiting_to_clear_drop_slots,
1012
1028
  /**
1013
1029
  * Used by space platform hubs.
1014
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.not_enough_thrust Online documentation}
1030
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.not_enough_thrust Online documentation}
1015
1031
  */
1016
1032
  not_enough_thrust,
1017
1033
  /**
1018
1034
  * Used by trains.
1019
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.destination_stop_full Online documentation}
1035
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.destination_stop_full Online documentation}
1020
1036
  */
1021
1037
  destination_stop_full,
1022
1038
  /**
1023
1039
  * Used by trains and space platform hubs.
1024
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_path Online documentation}
1040
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.no_path Online documentation}
1025
1041
  */
1026
1042
  no_path,
1027
1043
  /**
1028
1044
  * Used by beacons.
1029
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
1045
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
1030
1046
  */
1031
1047
  no_modules_to_transmit,
1032
1048
  /**
1033
1049
  * Used by roboports.
1034
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
1050
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
1035
1051
  */
1036
1052
  recharging_after_power_outage,
1037
1053
  /**
1038
1054
  * Used by inserters targeting entity ghosts.
1039
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
1055
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
1040
1056
  */
1041
1057
  waiting_for_target_to_be_built,
1042
1058
  /**
1043
1059
  * Used by inserters targeting rails.
1044
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_train Online documentation}
1060
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.waiting_for_train Online documentation}
1045
1061
  */
1046
1062
  waiting_for_train,
1047
1063
  /**
1048
1064
  * Used by ammo turrets.
1049
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_ammo Online documentation}
1065
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.no_ammo Online documentation}
1050
1066
  */
1051
1067
  no_ammo,
1052
1068
  /**
1053
1069
  * Used by heat energy sources.
1054
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.low_temperature Online documentation}
1070
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.low_temperature Online documentation}
1055
1071
  */
1056
1072
  low_temperature,
1057
1073
  /**
1058
1074
  * Used by constant combinators: Combinator is turned off via switch in GUI. Also used by inserters.
1059
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.disabled Online documentation}
1075
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.disabled Online documentation}
1060
1076
  */
1061
1077
  disabled,
1062
1078
  /**
1063
1079
  * Used by lamps.
1064
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
1080
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
1065
1081
  */
1066
1082
  turned_off_during_daytime,
1067
1083
  /**
1068
1084
  * Used by rail signals.
1069
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
1085
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
1070
1086
  */
1071
1087
  not_connected_to_rail,
1072
1088
  /**
1073
1089
  * Used by rail signals.
1074
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.cant_divide_segments Online documentation}
1090
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.cant_divide_segments Online documentation}
1075
1091
  */
1076
1092
  cant_divide_segments,
1077
1093
  /**
1078
1094
  * Used by filter inserters.
1079
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_filter Online documentation}
1095
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.no_filter Online documentation}
1080
1096
  */
1081
1097
  no_filter,
1082
1098
  /**
1083
1099
  * Used by agricultural towers.
1084
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.no_spot_seedable_by_inputs Online documentation}
1100
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.no_spot_seedable_by_inputs Online documentation}
1085
1101
  */
1086
1102
  no_spot_seedable_by_inputs,
1087
1103
  /**
1088
1104
  * Used by agricultural towers.
1089
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.waiting_for_plants_to_grow Online documentation}
1105
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.waiting_for_plants_to_grow Online documentation}
1090
1106
  */
1091
1107
  waiting_for_plants_to_grow,
1092
1108
  /**
1093
1109
  * Used by asteroid collectors.
1094
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.computing_navigation Online documentation}
1110
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.computing_navigation Online documentation}
1095
1111
  */
1096
1112
  computing_navigation,
1097
1113
  /**
1098
1114
  * Used by pipes, pipes to ground, and storage tanks.
1099
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.pipeline_overextended Online documentation}
1115
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.pipeline_overextended Online documentation}
1100
1116
  */
1101
1117
  pipeline_overextended,
1102
1118
  /**
1103
1119
  * Used by assembling machines.
1104
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.recipe_not_researched Online documentation}
1120
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.recipe_not_researched Online documentation}
1105
1121
  */
1106
1122
  recipe_not_researched,
1107
1123
  /**
1108
1124
  * Used by assembling machines.
1109
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.recipe_is_parameter Online documentation}
1125
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.recipe_is_parameter Online documentation}
1110
1126
  */
1111
1127
  recipe_is_parameter,
1112
1128
  /**
1113
1129
  * Used by land mines.
1114
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.entity_status.armed Online documentation}
1130
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.entity_status.armed Online documentation}
1115
1131
  */
1116
1132
  armed,
1117
1133
  }
@@ -1121,8 +1137,8 @@ declare global {
1121
1137
  yellow,
1122
1138
  }
1123
1139
  /**
1124
- * See the {@linkplain https://lua-api.factorio.com/2.1.9/events.html events page} for more info on what events contain and when they get raised.
1125
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.events Online documentation}
1140
+ * See the {@linkplain https://lua-api.factorio.com/2.1.22/events.html events page} for more info on what events contain and when they get raised.
1141
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.events Online documentation}
1126
1142
  */
1127
1143
  namespace events {
1128
1144
  /**
@@ -1415,6 +1431,10 @@ declare global {
1415
1431
  * Event type: {@link OnMultiplayerInitEvent}
1416
1432
  */
1417
1433
  const on_multiplayer_init: EventId<OnMultiplayerInitEvent>
1434
+ /**
1435
+ * Event type: {@link OnNextDayStartedEvent}
1436
+ */
1437
+ const on_next_day_started: EventId<OnNextDayStartedEvent>
1418
1438
  /**
1419
1439
  * Event type: {@link OnObjectDestroyedEvent}
1420
1440
  */
@@ -1463,10 +1483,18 @@ declare global {
1463
1483
  * Event type: {@link OnPlayerBuiltTileEvent}
1464
1484
  */
1465
1485
  const on_player_built_tile: EventId<OnPlayerBuiltTileEvent>
1486
+ /**
1487
+ * Event type: {@link OnPlayerCancelSelectedAreaEvent}
1488
+ */
1489
+ const on_player_cancel_selected_area: EventId<OnPlayerCancelSelectedAreaEvent>
1466
1490
  /**
1467
1491
  * Event type: {@link OnPlayerCancelledCraftingEvent}
1468
1492
  */
1469
1493
  const on_player_cancelled_crafting: EventId<OnPlayerCancelledCraftingEvent>
1494
+ /**
1495
+ * Event type: {@link OnPlayerChangeSelectedAreaEvent}
1496
+ */
1497
+ const on_player_change_selected_area: EventId<OnPlayerChangeSelectedAreaEvent>
1470
1498
  /**
1471
1499
  * Event type: {@link OnPlayerChangedForceEvent}
1472
1500
  */
@@ -1663,6 +1691,14 @@ declare global {
1663
1691
  * Event type: {@link OnPlayerSetupBlueprintEvent}
1664
1692
  */
1665
1693
  const on_player_setup_blueprint: EventId<OnPlayerSetupBlueprintEvent>
1694
+ /**
1695
+ * Event type: {@link OnPlayerStartSelectedAreaEvent}
1696
+ */
1697
+ const on_player_start_selected_area: EventId<OnPlayerStartSelectedAreaEvent>
1698
+ /**
1699
+ * Event type: {@link OnPlayerSuperForcedSelectedAreaEvent}
1700
+ */
1701
+ const on_player_super_forced_selected_area: EventId<OnPlayerSuperForcedSelectedAreaEvent>
1666
1702
  /**
1667
1703
  * Event type: {@link OnPlayerToggledAltModeEvent}
1668
1704
  */
@@ -2084,8 +2120,8 @@ declare global {
2084
2120
  const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent, LuaScriptRaisedTeleportedEventFilter>
2085
2121
  }
2086
2122
  /**
2087
- * See the {@linkplain https://lua-api.factorio.com/2.1.9/events.html events page} for more info on what events contain and when they get raised.
2088
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.events Online documentation}
2123
+ * See the {@linkplain https://lua-api.factorio.com/2.1.22/events.html events page} for more info on what events contain and when they get raised.
2124
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.events Online documentation}
2089
2125
  */
2090
2126
  type events = (typeof events)[keyof typeof events]
2091
2127
  enum flow_precision_index {
@@ -2101,17 +2137,17 @@ declare global {
2101
2137
  enum game_controller_interaction {
2102
2138
  /**
2103
2139
  * Game controller will always hover this element regardless of type or state.
2104
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.game_controller_interaction.always Online documentation}
2140
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.game_controller_interaction.always Online documentation}
2105
2141
  */
2106
2142
  always,
2107
2143
  /**
2108
2144
  * Never hover this element with a game controller.
2109
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.game_controller_interaction.never Online documentation}
2145
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.game_controller_interaction.never Online documentation}
2110
2146
  */
2111
2147
  never,
2112
2148
  /**
2113
2149
  * Hover according to the element type and implementation.
2114
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.game_controller_interaction.normal Online documentation}
2150
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.game_controller_interaction.normal Online documentation}
2115
2151
  */
2116
2152
  normal,
2117
2153
  }
@@ -2160,8 +2196,6 @@ declare global {
2160
2196
  add_train_station,
2161
2197
  adjust_blueprint_snapping,
2162
2198
  admin_action,
2163
- alt_reverse_select_area,
2164
- alt_select_area,
2165
2199
  alt_select_blueprint_entities,
2166
2200
  alternative_copy,
2167
2201
  begin_mining,
@@ -2174,6 +2208,7 @@ declare global {
2174
2208
  cancel_delete_space_platform,
2175
2209
  cancel_new_blueprint,
2176
2210
  cancel_research,
2211
+ cancel_select_area,
2177
2212
  cancel_upgrade,
2178
2213
  change_active_character_tab,
2179
2214
  change_active_item_group_for_crafting,
@@ -2191,6 +2226,7 @@ declare global {
2191
2226
  change_programmable_speaker_parameters,
2192
2227
  change_research_condition,
2193
2228
  change_riding_state,
2229
+ change_select_area,
2194
2230
  change_selector_combinator_parameters,
2195
2231
  change_shooting_state,
2196
2232
  change_train_name,
@@ -2288,6 +2324,7 @@ declare global {
2288
2324
  move_pin,
2289
2325
  move_research,
2290
2326
  open_achievements_gui,
2327
+ open_alerts_config_gui,
2291
2328
  open_blueprint_library_gui,
2292
2329
  open_blueprint_record,
2293
2330
  open_bonus_gui,
@@ -2334,7 +2371,6 @@ declare global {
2334
2371
  reorder_logistic_section,
2335
2372
  request_missing_construction_materials,
2336
2373
  reset_assembling_machine,
2337
- reverse_select_area,
2338
2374
  rotate_entity,
2339
2375
  select_area,
2340
2376
  select_asteroid_chunk_slot,
@@ -2404,6 +2440,7 @@ declare global {
2404
2440
  stack_transfer,
2405
2441
  start_repair,
2406
2442
  start_research,
2443
+ start_select_area,
2407
2444
  start_walking,
2408
2445
  stop_drag_build,
2409
2446
  swap_asteroid_chunk_slots,
@@ -2470,7 +2507,7 @@ declare global {
2470
2507
  robot_repair,
2471
2508
  /**
2472
2509
  * Used for ejected items, or items held by inserters that can't be inserted due the recipe being changed with the circuit network.
2473
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.inventory.assembling_machine_dump Online documentation}
2510
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.inventory.assembling_machine_dump Online documentation}
2474
2511
  */
2475
2512
  assembling_machine_dump,
2476
2513
  lab_input,
@@ -2483,7 +2520,7 @@ declare global {
2483
2520
  rocket_silo_attached_cargo_unit,
2484
2521
  /**
2485
2522
  * Inventory of cargo pod.
2486
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.inventory.cargo_unit Online documentation}
2523
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.inventory.cargo_unit Online documentation}
2487
2524
  */
2488
2525
  cargo_unit,
2489
2526
  car_trunk,
@@ -2512,7 +2549,7 @@ declare global {
2512
2549
  crafter_modules,
2513
2550
  /**
2514
2551
  * 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.
2515
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.inventory.crafter_trash Online documentation}
2552
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.inventory.crafter_trash Online documentation}
2516
2553
  */
2517
2554
  crafter_trash,
2518
2555
  asteroid_collector_output,
@@ -2570,12 +2607,12 @@ declare global {
2570
2607
  circuit_controlled,
2571
2608
  /**
2572
2609
  * Used by rocket silos.
2573
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
2610
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
2574
2611
  */
2575
2612
  transitional_request_controlled,
2576
2613
  /**
2577
2614
  * Used by space platform hubs.
2578
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
2615
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
2579
2616
  */
2580
2617
  request_missing_materials_controlled,
2581
2618
  }
@@ -2594,17 +2631,17 @@ declare global {
2594
2631
  enum print_skip {
2595
2632
  /**
2596
2633
  * Print will not be skipped.
2597
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.print_skip.never Online documentation}
2634
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.print_skip.never Online documentation}
2598
2635
  */
2599
2636
  never,
2600
2637
  /**
2601
2638
  * Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
2602
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.print_skip.if_redundant Online documentation}
2639
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.print_skip.if_redundant Online documentation}
2603
2640
  */
2604
2641
  if_redundant,
2605
2642
  /**
2606
2643
  * Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
2607
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.print_skip.if_visible Online documentation}
2644
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.print_skip.if_visible Online documentation}
2608
2645
  */
2609
2646
  if_visible,
2610
2647
  }
@@ -2615,7 +2652,7 @@ declare global {
2615
2652
  }
2616
2653
  /**
2617
2654
  * 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, ...}`.
2618
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.prototypes Online documentation}
2655
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.prototypes Online documentation}
2619
2656
  */
2620
2657
  interface prototypes {
2621
2658
  "achievement": {
@@ -3011,7 +3048,7 @@ declare global {
3011
3048
  }
3012
3049
  /**
3013
3050
  * 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, ...}`.
3014
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.prototypes Online documentation}
3051
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.prototypes Online documentation}
3015
3052
  */
3016
3053
  const prototypes: prototypes
3017
3054
  enum rail_connection_direction {
@@ -3141,195 +3178,196 @@ declare global {
3141
3178
  enum robot_order_type {
3142
3179
  /**
3143
3180
  * Construct a ghost.
3144
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.construct Online documentation}
3181
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.robot_order_type.construct Online documentation}
3145
3182
  */
3146
3183
  construct,
3147
3184
  /**
3148
3185
  * Pickup an item.
3149
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.pickup Online documentation}
3186
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.robot_order_type.pickup Online documentation}
3150
3187
  */
3151
3188
  pickup,
3152
3189
  /**
3153
3190
  * Deliver an item.
3154
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.deliver Online documentation}
3191
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.robot_order_type.deliver Online documentation}
3155
3192
  */
3156
3193
  deliver,
3157
3194
  /**
3158
3195
  * Repair an entity.
3159
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.repair Online documentation}
3196
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.robot_order_type.repair Online documentation}
3160
3197
  */
3161
3198
  repair,
3162
3199
  /**
3163
3200
  * Deconstruct an entity.
3164
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.deconstruct Online documentation}
3201
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.robot_order_type.deconstruct Online documentation}
3165
3202
  */
3166
3203
  deconstruct,
3167
3204
  /**
3168
3205
  * Deliver specific items to an entity (item request proxy).
3169
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.deliver_items Online documentation}
3206
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.robot_order_type.deliver_items Online documentation}
3170
3207
  */
3171
3208
  deliver_items,
3172
3209
  /**
3173
3210
  * Upgrade an entity.
3174
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.upgrade Online documentation}
3211
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.robot_order_type.upgrade Online documentation}
3175
3212
  */
3176
3213
  upgrade,
3177
3214
  /**
3178
3215
  * Explode a cliff.
3179
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.explode_cliff Online documentation}
3216
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.robot_order_type.explode_cliff Online documentation}
3180
3217
  */
3181
3218
  explode_cliff,
3182
3219
  /**
3183
3220
  * Pickup items from an entity (item request proxy).
3184
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.robot_order_type.pickup_items Online documentation}
3221
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.robot_order_type.pickup_items Online documentation}
3185
3222
  */
3186
3223
  pickup_items,
3187
3224
  }
3188
3225
  /**
3189
3226
  * The various parts of the launch sequence of the rocket silo.
3190
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status Online documentation}
3227
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.rocket_silo_status Online documentation}
3191
3228
  */
3192
3229
  enum rocket_silo_status {
3193
3230
  /**
3194
3231
  * The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
3195
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
3232
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
3196
3233
  */
3197
3234
  building_rocket,
3198
3235
  /**
3199
3236
  * The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
3200
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
3237
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
3201
3238
  */
3202
3239
  create_rocket,
3203
3240
  /**
3204
3241
  * The next state is `doors_opening`. The rocket is getting prepared for launch.
3205
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
3242
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
3206
3243
  */
3207
3244
  lights_blinking_open,
3208
3245
  /**
3209
3246
  * The next state is `doors_opened`. The rocket is getting prepared for launch.
3210
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
3247
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
3211
3248
  */
3212
3249
  doors_opening,
3213
3250
  /**
3214
3251
  * 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.
3215
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
3252
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
3216
3253
  */
3217
3254
  doors_opened,
3218
3255
  /**
3219
3256
  * 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.
3220
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
3257
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
3221
3258
  */
3222
3259
  rocket_rising,
3223
3260
  /**
3224
3261
  * 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.
3225
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
3262
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
3226
3263
  */
3227
3264
  arms_advance,
3228
3265
  /**
3229
3266
  * The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
3230
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
3267
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
3231
3268
  */
3232
3269
  rocket_ready,
3233
3270
  /**
3234
3271
  * The next state is `launch_started`.
3235
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
3272
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
3236
3273
  */
3237
3274
  launch_starting,
3238
3275
  /**
3239
3276
  * 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.
3240
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
3277
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
3241
3278
  */
3242
3279
  engine_starting,
3243
3280
  /**
3244
3281
  * 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.
3245
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
3282
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
3246
3283
  */
3247
3284
  arms_retract,
3248
3285
  /**
3249
3286
  * The next state is `lights_blinking_close`. The rocket is getting launched.
3250
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
3287
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
3251
3288
  */
3252
3289
  rocket_flying,
3253
3290
  /**
3254
3291
  * The next state is `doors_closing`.
3255
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
3292
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
3256
3293
  */
3257
3294
  lights_blinking_close,
3258
3295
  /**
3259
3296
  * The next state is `building_rocket`.
3260
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
3297
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
3261
3298
  */
3262
3299
  doors_closing,
3263
3300
  /**
3264
3301
  * 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.
3265
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.rocket_silo_status.launch_started Online documentation}
3302
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.rocket_silo_status.launch_started Online documentation}
3266
3303
  */
3267
3304
  launch_started,
3268
3305
  }
3269
3306
  enum segmented_unit_activity_mode {
3270
3307
  /**
3271
3308
  * The segmented unit is completely asleep, only performing the bare minimum checks to wake up if needed.
3272
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_activity_mode.asleep Online documentation}
3309
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.segmented_unit_activity_mode.asleep Online documentation}
3273
3310
  */
3274
3311
  asleep,
3275
3312
  /**
3276
3313
  * The segmented unit is minimally active, reducing unnecessary entity movement and trigger effects while continuing to patrol around its territory.
3277
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_activity_mode.minimal Online documentation}
3314
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.segmented_unit_activity_mode.minimal Online documentation}
3278
3315
  */
3279
3316
  minimal,
3280
3317
  /**
3281
3318
  * The segmented unit is fully active and simulated as if it is being observed by a player.
3282
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_activity_mode.full Online documentation}
3319
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.segmented_unit_activity_mode.full Online documentation}
3283
3320
  */
3284
3321
  full,
3285
3322
  }
3286
3323
  enum segmented_unit_ai_state {
3287
3324
  /**
3288
3325
  * 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.
3289
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_ai_state.patrolling Online documentation}
3326
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.segmented_unit_ai_state.patrolling Online documentation}
3290
3327
  */
3291
3328
  patrolling,
3292
3329
  /**
3293
3330
  * The segmented unit is investigating a location where it detected a disturbance.
3294
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_ai_state.investigating Online documentation}
3331
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.segmented_unit_ai_state.investigating Online documentation}
3295
3332
  */
3296
3333
  investigating,
3297
3334
  /**
3298
3335
  * The segmented unit is attacking an entity that is trespassing on its territory, but the segmented unit is not using its full strength.
3299
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_ai_state.attacking Online documentation}
3336
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.segmented_unit_ai_state.attacking Online documentation}
3300
3337
  */
3301
3338
  attacking,
3302
3339
  /**
3303
3340
  * The segmented unit is angry because it was attacked and is aggressively attacking an entity with its full strength.
3304
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_ai_state.enraged_at_target Online documentation}
3341
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.segmented_unit_ai_state.enraged_at_target Online documentation}
3305
3342
  */
3306
3343
  enraged_at_target,
3307
3344
  /**
3308
3345
  * 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.
3309
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_ai_state.enraged_at_nothing Online documentation}
3346
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.segmented_unit_ai_state.enraged_at_nothing Online documentation}
3310
3347
  */
3311
3348
  enraged_at_nothing,
3312
3349
  }
3313
3350
  enum segmented_unit_created_cause {
3314
3351
  /**
3315
3352
  * The segmented unit was spawned naturally by the map generator.
3316
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_created_cause.map_generated Online documentation}
3353
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.segmented_unit_created_cause.map_generated Online documentation}
3317
3354
  */
3318
3355
  map_generated,
3319
3356
  /**
3320
3357
  * The segmented unit was created manually via script.
3321
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_created_cause.script_created Online documentation}
3358
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.segmented_unit_created_cause.script_created Online documentation}
3322
3359
  */
3323
3360
  script_created,
3324
3361
  /**
3325
3362
  * The segmented unit was cloned from an existing segmented unit via script.
3326
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.segmented_unit_created_cause.script_cloned Online documentation}
3363
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.segmented_unit_created_cause.script_cloned Online documentation}
3327
3364
  */
3328
3365
  script_cloned,
3329
3366
  }
3330
3367
  enum selection_mode {
3331
3368
  select,
3332
3369
  alt_select,
3370
+ super_forced_select,
3333
3371
  reverse_select,
3334
3372
  alt_reverse_select,
3335
3373
  }
@@ -3340,74 +3378,74 @@ declare global {
3340
3378
  }
3341
3379
  /**
3342
3380
  * State of an ordinary rail signal.
3343
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.signal_state Online documentation}
3381
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.signal_state Online documentation}
3344
3382
  */
3345
3383
  enum signal_state {
3346
3384
  /**
3347
3385
  * Green.
3348
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.signal_state.open Online documentation}
3386
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.signal_state.open Online documentation}
3349
3387
  */
3350
3388
  open,
3351
3389
  /**
3352
3390
  * Red.
3353
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.signal_state.closed Online documentation}
3391
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.signal_state.closed Online documentation}
3354
3392
  */
3355
3393
  closed,
3356
3394
  /**
3357
3395
  * Orange.
3358
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.signal_state.reserved Online documentation}
3396
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.signal_state.reserved Online documentation}
3359
3397
  */
3360
3398
  reserved,
3361
3399
  /**
3362
3400
  * Red - From circuit network.
3363
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
3401
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
3364
3402
  */
3365
3403
  reserved_by_circuit_network,
3366
3404
  }
3367
3405
  enum space_platform_state {
3368
3406
  /**
3369
3407
  * Waiting for a starter pack.
3370
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
3408
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
3371
3409
  */
3372
3410
  waiting_for_starter_pack,
3373
3411
  /**
3374
3412
  * Starter pack was requested from the logistics system.
3375
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
3413
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
3376
3414
  */
3377
3415
  starter_pack_requested,
3378
3416
  /**
3379
3417
  * Starter pack is on the way.
3380
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
3418
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
3381
3419
  */
3382
3420
  starter_pack_on_the_way,
3383
3421
  /**
3384
3422
  * Following the path.
3385
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.on_the_path Online documentation}
3423
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.space_platform_state.on_the_path Online documentation}
3386
3424
  */
3387
3425
  on_the_path,
3388
3426
  /**
3389
3427
  * Platform is ready to leave this planet and does not accept deliveries.
3390
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
3428
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
3391
3429
  */
3392
3430
  waiting_for_departure,
3393
3431
  /**
3394
3432
  * Doesn't have any stations in schedule.
3395
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.no_schedule Online documentation}
3433
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.space_platform_state.no_schedule Online documentation}
3396
3434
  */
3397
3435
  no_schedule,
3398
3436
  /**
3399
3437
  * Doesn't have anywhere to go.
3400
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.no_path Online documentation}
3438
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.space_platform_state.no_path Online documentation}
3401
3439
  */
3402
3440
  no_path,
3403
3441
  /**
3404
3442
  * Waiting at a station.
3405
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
3443
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
3406
3444
  */
3407
3445
  waiting_at_station,
3408
3446
  /**
3409
3447
  * Paused.
3410
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.space_platform_state.paused Online documentation}
3448
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.space_platform_state.paused Online documentation}
3411
3449
  */
3412
3450
  paused,
3413
3451
  }
@@ -3441,64 +3479,64 @@ declare global {
3441
3479
  enum territory_created_cause {
3442
3480
  /**
3443
3481
  * The territory was spawned naturally by the map generator.
3444
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.territory_created_cause.map_generated Online documentation}
3482
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.territory_created_cause.map_generated Online documentation}
3445
3483
  */
3446
3484
  map_generated,
3447
3485
  /**
3448
3486
  * The territory was created manually via script.
3449
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.territory_created_cause.script_created Online documentation}
3487
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.territory_created_cause.script_created Online documentation}
3450
3488
  */
3451
3489
  script_created,
3452
3490
  }
3453
3491
  enum train_state {
3454
3492
  /**
3455
3493
  * Normal state -- following the path.
3456
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.on_the_path Online documentation}
3494
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.train_state.on_the_path Online documentation}
3457
3495
  */
3458
3496
  on_the_path,
3459
3497
  /**
3460
3498
  * Doesn't have anywhere to go.
3461
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.no_schedule Online documentation}
3499
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.train_state.no_schedule Online documentation}
3462
3500
  */
3463
3501
  no_schedule,
3464
3502
  /**
3465
3503
  * Has no path and is stopped.
3466
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.no_path Online documentation}
3504
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.train_state.no_path Online documentation}
3467
3505
  */
3468
3506
  no_path,
3469
3507
  /**
3470
3508
  * Braking before a rail signal.
3471
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.arrive_signal Online documentation}
3509
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.train_state.arrive_signal Online documentation}
3472
3510
  */
3473
3511
  arrive_signal,
3474
3512
  /**
3475
3513
  * Waiting at a signal.
3476
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.wait_signal Online documentation}
3514
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.train_state.wait_signal Online documentation}
3477
3515
  */
3478
3516
  wait_signal,
3479
3517
  /**
3480
3518
  * Braking before a station.
3481
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.arrive_station Online documentation}
3519
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.train_state.arrive_station Online documentation}
3482
3520
  */
3483
3521
  arrive_station,
3484
3522
  /**
3485
3523
  * Switched to manual control and has to stop.
3486
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.manual_control_stop Online documentation}
3524
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.train_state.manual_control_stop Online documentation}
3487
3525
  */
3488
3526
  manual_control_stop,
3489
3527
  /**
3490
3528
  * Can move if user explicitly sits in and rides the train.
3491
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.manual_control Online documentation}
3529
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.train_state.manual_control Online documentation}
3492
3530
  */
3493
3531
  manual_control,
3494
3532
  /**
3495
3533
  * Waiting at a station.
3496
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.wait_station Online documentation}
3534
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.train_state.wait_station Online documentation}
3497
3535
  */
3498
3536
  wait_station,
3499
3537
  /**
3500
3538
  * Same as no_path but all candidate train stops are full
3501
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.train_state.destination_full Online documentation}
3539
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.train_state.destination_full Online documentation}
3502
3540
  */
3503
3541
  destination_full,
3504
3542
  }
@@ -3528,17 +3566,17 @@ declare global {
3528
3566
  enum wire_origin {
3529
3567
  /**
3530
3568
  * 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.
3531
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.wire_origin.player Online documentation}
3569
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.wire_origin.player Online documentation}
3532
3570
  */
3533
3571
  player,
3534
3572
  /**
3535
3573
  * 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.
3536
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.wire_origin.script Online documentation}
3574
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.wire_origin.script Online documentation}
3537
3575
  */
3538
3576
  script,
3539
3577
  /**
3540
3578
  * These wires can only be modified by the game. They are not visible to the player, irrespective of the `draw_circuit_wires` prototype property.
3541
- * @see {@link https://lua-api.factorio.com/2.1.9/defines.html#defines.wire_origin.radars Online documentation}
3579
+ * @see {@link https://lua-api.factorio.com/2.1.22/defines.html#defines.wire_origin.radars Online documentation}
3542
3580
  */
3543
3581
  radars,
3544
3582
  }