typed-factorio 3.33.0 → 4.0.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.
@@ -38,6 +38,7 @@ import type {
38
38
  OnAiCommandCompletedEvent,
39
39
  OnAreaClonedEvent,
40
40
  OnBiterBaseBuiltEvent,
41
+ OnBlueprintSettingsPastedEvent,
41
42
  OnBrushClonedEvent,
42
43
  OnBuildBaseArrivedEvent,
43
44
  OnBuiltEntityEvent,
@@ -84,6 +85,7 @@ import type {
84
85
  OnGuiConfirmedEvent,
85
86
  OnGuiElemChangedEvent,
86
87
  OnGuiHoverEvent,
88
+ OnGuiInventoryActionEvent,
87
89
  OnGuiLeaveEvent,
88
90
  OnGuiLocationChangedEvent,
89
91
  OnGuiOpenedEvent,
@@ -118,6 +120,7 @@ import type {
118
120
  OnPlayerCheatModeDisabledEvent,
119
121
  OnPlayerCheatModeEnabledEvent,
120
122
  OnPlayerClickedGpsTagEvent,
123
+ OnPlayerColorChangedEvent,
121
124
  OnPlayerConfiguredBlueprintEvent,
122
125
  OnPlayerControllerChangedEvent,
123
126
  OnPlayerCraftedItemEvent,
@@ -145,6 +148,7 @@ import type {
145
148
  OnPlayerMinedEntityEvent,
146
149
  OnPlayerMinedItemEvent,
147
150
  OnPlayerMinedTileEvent,
151
+ OnPlayerMusicChangedEvent,
148
152
  OnPlayerMutedEvent,
149
153
  OnPlayerPipetteEvent,
150
154
  OnPlayerPlacedEquipmentEvent,
@@ -261,6 +265,7 @@ declare global {
261
265
  custom,
262
266
  entity_destroyed,
263
267
  entity_under_attack,
268
+ fluid_mixing,
264
269
  no_material_for_construction,
265
270
  no_platform_storage,
266
271
  no_roboport_storage,
@@ -277,7 +282,7 @@ declare global {
277
282
  }
278
283
  /**
279
284
  * AI command exit status, see {@link LuaCommandable#set_command LuaCommandable::set_command}
280
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.behavior_result Online documentation}
285
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.behavior_result Online documentation}
281
286
  */
282
287
  enum behavior_result {
283
288
  in_progress,
@@ -301,33 +306,33 @@ declare global {
301
306
  enum cargo_destination {
302
307
  /**
303
308
  * The default destination type of a cargo pod when created runtime. Setting its destination to any other type will instantly launch it.
304
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.cargo_destination.invalid Online documentation}
309
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.cargo_destination.invalid Online documentation}
305
310
  */
306
311
  invalid,
307
312
  /**
308
313
  * Cargo pods with orbit destination are destroyed when ascent is completed.
309
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.cargo_destination.orbit Online documentation}
314
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.cargo_destination.orbit Online documentation}
310
315
  */
311
316
  orbit,
312
317
  /**
313
318
  * Any cargo landing pad or space platform hub.
314
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.cargo_destination.station Online documentation}
319
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.cargo_destination.station Online documentation}
315
320
  */
316
321
  station,
317
322
  /**
318
323
  * 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.
319
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.cargo_destination.surface Online documentation}
324
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.cargo_destination.surface Online documentation}
320
325
  */
321
326
  surface,
322
327
  /**
323
328
  * 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.
324
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.cargo_destination.space_platform Online documentation}
329
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.cargo_destination.space_platform Online documentation}
325
330
  */
326
331
  space_platform,
327
332
  }
328
333
  /**
329
334
  * State of a chain signal.
330
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.chain_signal_state Online documentation}
335
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.chain_signal_state Online documentation}
331
336
  */
332
337
  enum chain_signal_state {
333
338
  none,
@@ -345,76 +350,79 @@ declare global {
345
350
  }
346
351
  /**
347
352
  * Command given to units describing what they should do.
348
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.command Online documentation}
353
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command Online documentation}
349
354
  */
350
355
  enum command {
351
356
  /**
352
357
  * Attack another entity.
353
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.command.attack Online documentation}
358
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.attack Online documentation}
354
359
  */
355
360
  attack = 0,
356
361
  /**
357
362
  * Go to a specific position.
358
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.command.go_to_location Online documentation}
363
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.go_to_location Online documentation}
359
364
  */
360
365
  go_to_location = 1,
361
366
  /**
362
367
  * Chain commands together, see {@link defines.compound_command}.
363
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.command.compound Online documentation}
368
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.compound Online documentation}
364
369
  */
365
370
  compound = 2,
366
371
  /**
367
372
  * Do what your group wants you to do.
368
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.command.group Online documentation}
373
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.group Online documentation}
369
374
  */
370
375
  group = 3,
371
376
  /**
372
377
  * Go to a place and attack what you see.
373
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.command.attack_area Online documentation}
378
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.attack_area Online documentation}
374
379
  */
375
380
  attack_area = 4,
376
381
  /**
377
382
  * Chill.
378
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.command.wander Online documentation}
383
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.wander Online documentation}
379
384
  */
380
385
  wander = 5,
381
386
  /**
382
387
  * Flee from another entity.
383
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.command.flee Online documentation}
388
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.flee Online documentation}
384
389
  */
385
390
  flee = 6,
386
391
  /**
387
392
  * Stop moving and stay where you are.
388
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.command.stop Online documentation}
393
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.stop Online documentation}
389
394
  */
390
395
  stop = 7,
391
396
  /**
392
397
  * Go to a position and build a base there.
393
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.command.build_base Online documentation}
398
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.build_base Online documentation}
394
399
  */
395
400
  build_base = 8,
396
401
  }
397
402
  /**
398
403
  * How commands are joined together in a compound command (see {@link defines.command.compound}).
399
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.compound_command Online documentation}
404
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.compound_command Online documentation}
400
405
  */
401
406
  enum compound_command {
402
407
  /**
403
408
  * Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
404
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.compound_command.logical_and Online documentation}
409
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.compound_command.logical_and Online documentation}
405
410
  */
406
411
  logical_and,
407
412
  /**
408
413
  * Succeed on first success. Only fails if all commands (executed one after another) fail.
409
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.compound_command.logical_or Online documentation}
414
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.compound_command.logical_or Online documentation}
410
415
  */
411
416
  logical_or,
412
417
  /**
413
418
  * Execute all commands in sequence and fail or succeed depending on the return status of the last command.
414
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.compound_command.return_last Online documentation}
419
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.compound_command.return_last Online documentation}
415
420
  */
416
421
  return_last,
417
422
  }
423
+ enum constant {
424
+ default_icon_size,
425
+ }
418
426
  namespace control_behavior {
419
427
  namespace inserter {
420
428
  enum hand_read_mode {
@@ -422,13 +430,6 @@ declare global {
422
430
  pulse,
423
431
  }
424
432
  }
425
- namespace logistic_container {
426
- enum exclusive_mode {
427
- send_contents,
428
- set_requests,
429
- none,
430
- }
431
- }
432
433
  namespace lamp {
433
434
  enum color_mode {
434
435
  color_mapping,
@@ -463,225 +464,251 @@ declare global {
463
464
  missing_requests,
464
465
  }
465
466
  }
466
- namespace cargo_landing_pad {
467
+ namespace single_fluid_box {
467
468
  enum exclusive_mode {
468
469
  none,
469
470
  send_contents,
470
- set_requests,
471
+ send_segment_contents,
472
+ }
473
+ }
474
+ namespace radar {
475
+ enum mode {
476
+ surface,
477
+ universe,
471
478
  }
472
479
  }
473
480
  enum type {
474
481
  /**
475
482
  * {@link LuaContainerControlBehavior}
476
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.container Online documentation}
483
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.container Online documentation}
477
484
  */
478
485
  container,
479
486
  /**
480
487
  * {@link LuaGenericOnOffControlBehavior}
481
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
488
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
482
489
  */
483
490
  generic_on_off,
484
491
  /**
485
492
  * {@link LuaInserterControlBehavior}
486
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.inserter Online documentation}
493
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.inserter Online documentation}
487
494
  */
488
495
  inserter,
489
496
  /**
490
497
  * {@link LuaLampControlBehavior}
491
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.lamp Online documentation}
498
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.lamp Online documentation}
492
499
  */
493
500
  lamp,
494
501
  /**
495
502
  * {@link LuaLogisticContainerControlBehavior}
496
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.logistic_container Online documentation}
503
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.logistic_container Online documentation}
497
504
  */
498
505
  logistic_container,
499
506
  /**
500
507
  * {@link LuaRoboportControlBehavior}
501
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.roboport Online documentation}
508
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.roboport Online documentation}
502
509
  */
503
510
  roboport,
504
511
  /**
505
- * {@link LuaStorageTankControlBehavior}
506
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.storage_tank Online documentation}
512
+ * {@link LuaSingleFluidBoxControlBehavior}
513
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.single_fluid_box Online documentation}
507
514
  */
508
- storage_tank,
515
+ single_fluid_box,
509
516
  /**
510
517
  * {@link LuaTrainStopControlBehavior}
511
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.train_stop Online documentation}
518
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.train_stop Online documentation}
512
519
  */
513
520
  train_stop,
514
521
  /**
515
522
  * {@link LuaDeciderCombinatorControlBehavior}
516
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
523
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
517
524
  */
518
525
  decider_combinator,
519
526
  /**
520
527
  * {@link LuaArithmeticCombinatorControlBehavior}
521
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
528
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
522
529
  */
523
530
  arithmetic_combinator,
524
531
  /**
525
532
  * {@link LuaConstantCombinatorControlBehavior}
526
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
533
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
527
534
  */
528
535
  constant_combinator,
529
536
  /**
530
537
  * {@link LuaTransportBeltControlBehavior}
531
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.transport_belt Online documentation}
538
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.transport_belt Online documentation}
532
539
  */
533
540
  transport_belt,
534
541
  /**
535
542
  * {@link LuaAccumulatorControlBehavior}
536
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.accumulator Online documentation}
543
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.accumulator Online documentation}
537
544
  */
538
545
  accumulator,
539
546
  /**
540
547
  * {@link LuaRailSignalBaseControlBehavior}
541
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.rail_signal Online documentation}
548
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.rail_signal Online documentation}
542
549
  */
543
550
  rail_signal,
544
551
  /**
545
552
  * {@link LuaRailSignalBaseControlBehavior}
546
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
553
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
547
554
  */
548
555
  rail_chain_signal,
549
556
  /**
550
557
  * {@link LuaWallControlBehavior}
551
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.wall Online documentation}
558
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.wall Online documentation}
552
559
  */
553
560
  wall,
554
561
  /**
555
562
  * {@link LuaMiningDrillControlBehavior}
556
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.mining_drill Online documentation}
563
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.mining_drill Online documentation}
557
564
  */
558
565
  mining_drill,
559
566
  /**
560
567
  * {@link LuaProgrammableSpeakerControlBehavior}
561
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
568
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
562
569
  */
563
570
  programmable_speaker,
564
571
  /**
565
572
  * {@link LuaAssemblingMachineControlBehavior}
566
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.assembling_machine Online documentation}
573
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.assembling_machine Online documentation}
567
574
  */
568
575
  assembling_machine,
569
576
  /**
570
577
  * {@link LuaPumpControlBehavior}
571
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.pump Online documentation}
578
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.pump Online documentation}
572
579
  */
573
580
  pump,
574
581
  /**
575
582
  * {@link LuaSelectorCombinatorControlBehavior}
576
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.selector_combinator Online documentation}
583
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.selector_combinator Online documentation}
577
584
  */
578
585
  selector_combinator,
579
586
  /**
580
587
  * {@link LuaRocketSiloControlBehavior}
581
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.rocket_silo Online documentation}
588
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.rocket_silo Online documentation}
582
589
  */
583
590
  rocket_silo,
584
591
  /**
585
592
  * {@link LuaTurretControlBehavior}
586
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.turret Online documentation}
593
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.turret Online documentation}
587
594
  */
588
595
  turret,
589
596
  /**
590
597
  * {@link LuaReactorControlBehavior}
591
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.reactor Online documentation}
598
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.reactor Online documentation}
592
599
  */
593
600
  reactor,
594
601
  /**
595
602
  * {@link LuaSpacePlatformHubControlBehavior}
596
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.space_platform_hub Online documentation}
603
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.space_platform_hub Online documentation}
597
604
  */
598
605
  space_platform_hub,
599
606
  /**
600
607
  * {@link LuaArtilleryTurretControlBehavior}
601
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.artillery_turret Online documentation}
608
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.artillery_turret Online documentation}
602
609
  */
603
610
  artillery_turret,
604
611
  /**
605
612
  * {@link LuaAsteroidCollectorControlBehavior}
606
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.asteroid_collector Online documentation}
613
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.asteroid_collector Online documentation}
607
614
  */
608
615
  asteroid_collector,
609
616
  /**
610
617
  * {@link LuaRadarControlBehavior}
611
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.radar Online documentation}
618
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.radar Online documentation}
612
619
  */
613
620
  radar,
614
621
  /**
615
622
  * {@link LuaDisplayPanelControlBehavior}
616
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.display_panel Online documentation}
623
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.display_panel Online documentation}
617
624
  */
618
625
  display_panel,
619
626
  /**
620
627
  * {@link LuaLoaderControlBehavior}
621
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.loader Online documentation}
628
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.loader Online documentation}
622
629
  */
623
630
  loader,
624
631
  /**
625
632
  * {@link LuaCargoLandingPadControlBehavior}
626
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.cargo_landing_pad Online documentation}
633
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.cargo_landing_pad Online documentation}
627
634
  */
628
635
  cargo_landing_pad,
629
636
  /**
630
637
  * {@link LuaAgriculturalTowerControlBehavior}
631
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.agricultural_tower Online documentation}
638
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.agricultural_tower Online documentation}
632
639
  */
633
640
  agricultural_tower,
634
641
  /**
635
642
  * {@link LuaFurnaceControlBehavior}
636
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.furnace Online documentation}
643
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.furnace Online documentation}
637
644
  */
638
645
  furnace,
639
646
  /**
640
647
  * {@link LuaProxyContainerControlBehavior}
641
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.proxy_container Online documentation}
648
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.proxy_container Online documentation}
642
649
  */
643
650
  proxy_container,
644
651
  /**
645
652
  * {@link LuaSplitterControlBehavior}
646
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.control_behavior.type.splitter Online documentation}
653
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.splitter Online documentation}
647
654
  */
648
655
  splitter,
656
+ /**
657
+ * {@link LuaLabControlBehavior}
658
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.lab Online documentation}
659
+ */
660
+ lab,
661
+ /**
662
+ * {@link LuaHeatPipeControlBehavior}
663
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.heat_pipe Online documentation}
664
+ */
665
+ heat_pipe,
666
+ /**
667
+ * {@link LuaBoilerControlBehavior}
668
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.boiler Online documentation}
669
+ */
670
+ boiler,
671
+ /**
672
+ * {@link LuaLandMineControlBehavior}
673
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.land_mine Online documentation}
674
+ */
675
+ land_mine,
649
676
  }
650
677
  }
651
678
  enum controllers {
652
679
  /**
653
680
  * Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
654
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.controllers.ghost Online documentation}
681
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.controllers.ghost Online documentation}
655
682
  */
656
683
  ghost,
657
684
  /**
658
685
  * The controller controls a character. This is the default controller in freeplay.
659
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.controllers.character Online documentation}
686
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.controllers.character Online documentation}
660
687
  */
661
688
  character,
662
689
  /**
663
690
  * The controller isn't tied to a character. This is the default controller in sandbox.
664
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.controllers.god Online documentation}
691
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.controllers.god Online documentation}
665
692
  */
666
693
  god,
667
694
  /**
668
695
  * The Editor Controller near ultimate power to do almost anything in the game.
669
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.controllers.editor Online documentation}
696
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.controllers.editor Online documentation}
670
697
  */
671
698
  editor,
672
699
  /**
673
700
  * The player can't interact with the world, and the camera pans around in a predefined manner.
674
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.controllers.cutscene Online documentation}
701
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.controllers.cutscene Online documentation}
675
702
  */
676
703
  cutscene,
677
704
  /**
678
705
  * Can't change anything in the world but can view anything.
679
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.controllers.spectator Online documentation}
706
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.controllers.spectator Online documentation}
680
707
  */
681
708
  spectator,
682
709
  /**
683
710
  * Can't move/change items but can build ghosts/change settings.
684
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.controllers.remote Online documentation}
711
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.controllers.remote Online documentation}
685
712
  */
686
713
  remote,
687
714
  }
@@ -701,9 +728,6 @@ declare global {
701
728
  only,
702
729
  }
703
730
  }
704
- // See https://forums.factorio.com/viewtopic.php?f=233&t=118305
705
- /** @omit */
706
- enum default_icon_size {}
707
731
  enum difficulty {
708
732
  easy,
709
733
  normal,
@@ -743,36 +767,47 @@ declare global {
743
767
  enum distraction {
744
768
  /**
745
769
  * Perform command even if someone attacks the unit.
746
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.distraction.none Online documentation}
770
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.distraction.none Online documentation}
747
771
  */
748
772
  none,
749
773
  /**
750
774
  * Attack closer enemy entities with force.
751
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.distraction.by_enemy Online documentation}
775
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.distraction.by_enemy Online documentation}
752
776
  */
753
777
  by_enemy,
754
778
  /**
755
779
  * Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
756
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.distraction.by_anything Online documentation}
780
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.distraction.by_anything Online documentation}
757
781
  */
758
782
  by_anything,
759
783
  /**
760
784
  * Attack when attacked.
761
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.distraction.by_damage Online documentation}
785
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.distraction.by_damage Online documentation}
762
786
  */
763
787
  by_damage,
764
788
  }
789
+ enum electric_interface_mode {
790
+ solar_output,
791
+ primary_output,
792
+ secondary_output,
793
+ tertiary_output,
794
+ primary_input,
795
+ secondary_input,
796
+ tertiary_input,
797
+ tertiary_input_output,
798
+ accumulator,
799
+ }
765
800
  enum entity_status {
766
801
  working,
767
802
  normal,
768
803
  /**
769
804
  * Used by ghosts.
770
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.ghost Online documentation}
805
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.ghost Online documentation}
771
806
  */
772
807
  ghost,
773
808
  /**
774
809
  * Only used if set through {@link import("factorio:prototype").ContainerPrototype#default_status ContainerPrototype::default_status}.
775
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.broken Online documentation}
810
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.broken Online documentation}
776
811
  */
777
812
  broken,
778
813
  no_power,
@@ -786,274 +821,299 @@ declare global {
786
821
  marked_for_deconstruction,
787
822
  /**
788
823
  * Used by space platform hubs.
789
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.paused Online documentation}
824
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.paused Online documentation}
790
825
  */
791
826
  paused,
792
827
  /**
793
828
  * Used by generators and solar panels.
794
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
829
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
795
830
  */
796
831
  not_plugged_in_electric_network,
797
832
  /**
798
833
  * Used by power switches.
799
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.networks_connected Online documentation}
834
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.networks_connected Online documentation}
800
835
  */
801
836
  networks_connected,
802
837
  /**
803
838
  * Used by power switches.
804
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.networks_disconnected Online documentation}
839
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.networks_disconnected Online documentation}
805
840
  */
806
841
  networks_disconnected,
807
842
  /**
808
843
  * Used by accumulators.
809
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.charging Online documentation}
844
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.charging Online documentation}
810
845
  */
811
846
  charging,
812
847
  /**
813
848
  * Used by accumulators.
814
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.discharging Online documentation}
849
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.discharging Online documentation}
815
850
  */
816
851
  discharging,
817
852
  /**
818
853
  * Used by accumulators.
819
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.fully_charged Online documentation}
854
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.fully_charged Online documentation}
820
855
  */
821
856
  fully_charged,
822
857
  /**
823
858
  * Used by logistic containers.
824
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
859
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
825
860
  */
826
861
  out_of_logistic_network,
827
862
  /**
828
863
  * Used by assembling machines.
829
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.no_recipe Online documentation}
864
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_recipe Online documentation}
830
865
  */
831
866
  no_recipe,
832
867
  /**
833
868
  * Used by furnaces.
834
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.no_ingredients Online documentation}
869
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_ingredients Online documentation}
835
870
  */
836
871
  no_ingredients,
837
872
  /**
838
- * Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
839
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.no_input_fluid Online documentation}
873
+ * 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.7/defines.html#defines.entity_status.no_input_fluid Online documentation}
840
875
  */
841
876
  no_input_fluid,
842
877
  /**
843
878
  * Used by labs.
844
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.no_research_in_progress Online documentation}
879
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_research_in_progress Online documentation}
845
880
  */
846
881
  no_research_in_progress,
847
882
  /**
848
883
  * Used by mining drills.
849
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.no_minable_resources Online documentation}
884
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_minable_resources Online documentation}
850
885
  */
851
886
  no_minable_resources,
852
887
  /**
853
888
  * Used by cargo bays.
854
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.not_connected_to_hub_or_pad Online documentation}
889
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.hatches_blocked_by_elevated_rail Online documentation}
890
+ */
891
+ hatches_blocked_by_elevated_rail,
892
+ /**
893
+ * Used by cargo bays.
894
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.not_connected_to_hub_or_pad Online documentation}
855
895
  */
856
896
  not_connected_to_hub_or_pad,
897
+ /**
898
+ * Used by some cargo bays.
899
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.too_far_from_pad_to_unload Online documentation}
900
+ */
901
+ too_far_from_pad_to_unload,
857
902
  /**
858
903
  * Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
859
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.low_input_fluid Online documentation}
904
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.low_input_fluid Online documentation}
860
905
  */
861
906
  low_input_fluid,
862
907
  /**
863
908
  * Used by crafting machines.
864
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
909
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
865
910
  */
866
911
  fluid_ingredient_shortage,
867
912
  /**
868
- * Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
869
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.full_output Online documentation}
913
+ * 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.7/defines.html#defines.entity_status.full_output Online documentation}
870
915
  */
871
916
  full_output,
872
917
  /**
873
918
  * Used by agricultural towers.
874
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.not_enough_space_in_output Online documentation}
919
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.not_enough_space_in_output Online documentation}
875
920
  */
876
921
  not_enough_space_in_output,
877
922
  /**
878
923
  * Used by burner energy sources.
879
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
924
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
880
925
  */
881
926
  full_burnt_result_output,
882
927
  /**
883
928
  * Used by crafting machines.
884
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
929
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
885
930
  */
886
931
  item_ingredient_shortage,
887
932
  /**
888
933
  * Used by mining drills when the mining fluid is missing.
889
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.missing_required_fluid Online documentation}
934
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.missing_required_fluid Online documentation}
890
935
  */
891
936
  missing_required_fluid,
892
937
  /**
893
938
  * Used by labs.
894
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.missing_science_packs Online documentation}
939
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.missing_science_packs Online documentation}
895
940
  */
896
941
  missing_science_packs,
897
942
  /**
898
943
  * Used by inserters.
899
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
944
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
900
945
  */
901
946
  waiting_for_source_items,
902
947
  /**
903
948
  * Used by inserters when wait_for_full_hand is set.
904
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.waiting_for_more_items Online documentation}
949
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_more_items Online documentation}
905
950
  */
906
951
  waiting_for_more_items,
907
952
  /**
908
- * Used by inserters and mining drills.
909
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
953
+ * Used by inserters, mining drills, and crafting machines using vector_to_place_result.
954
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
910
955
  */
911
956
  waiting_for_space_in_destination,
912
957
  /**
913
958
  * Used by the rocket silo.
914
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
959
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
915
960
  */
916
961
  preparing_rocket_for_launch,
917
962
  /**
918
963
  * Used by the rocket silo.
919
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
964
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
920
965
  */
921
966
  waiting_to_launch_rocket,
922
967
  /**
923
968
  * Used by the rocket silo.
924
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.waiting_for_space_in_platform_hub Online documentation}
969
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_space_in_platform_hub Online documentation}
925
970
  */
926
971
  waiting_for_space_in_platform_hub,
927
972
  /**
928
973
  * Used by the rocket silo.
929
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.launching_rocket Online documentation}
974
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.launching_rocket Online documentation}
930
975
  */
931
976
  launching_rocket,
932
977
  /**
933
978
  * Used by thrusters.
934
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.thrust_not_required Online documentation}
979
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.thrust_not_required Online documentation}
935
980
  */
936
981
  thrust_not_required,
937
982
  /**
938
983
  * Used by space platform hubs.
939
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.on_the_way Online documentation}
984
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.on_the_way Online documentation}
940
985
  */
941
986
  on_the_way,
942
987
  /**
943
988
  * Used by space platform hubs.
944
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.waiting_in_orbit Online documentation}
989
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_in_orbit Online documentation}
945
990
  */
946
991
  waiting_in_orbit,
947
992
  /**
948
993
  * Used by trains.
949
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.waiting_at_stop Online documentation}
994
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_at_stop Online documentation}
950
995
  */
951
996
  waiting_at_stop,
997
+ /**
998
+ * Used by trains.
999
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_upgrade Online documentation}
1000
+ */
1001
+ waiting_for_upgrade,
952
1002
  /**
953
1003
  * Used by space platform hubs.
954
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.waiting_for_rockets_to_arrive Online documentation}
1004
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_rockets_to_arrive Online documentation}
955
1005
  */
956
1006
  waiting_for_rockets_to_arrive,
957
1007
  /**
958
1008
  * Used by space platform hubs.
959
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.not_enough_thrust Online documentation}
1009
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_to_clear_drop_slots Online documentation}
1010
+ */
1011
+ waiting_to_clear_drop_slots,
1012
+ /**
1013
+ * Used by space platform hubs.
1014
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.not_enough_thrust Online documentation}
960
1015
  */
961
1016
  not_enough_thrust,
962
1017
  /**
963
1018
  * Used by trains.
964
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.destination_stop_full Online documentation}
1019
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.destination_stop_full Online documentation}
965
1020
  */
966
1021
  destination_stop_full,
967
1022
  /**
968
1023
  * Used by trains and space platform hubs.
969
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.no_path Online documentation}
1024
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_path Online documentation}
970
1025
  */
971
1026
  no_path,
972
1027
  /**
973
1028
  * Used by beacons.
974
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
1029
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
975
1030
  */
976
1031
  no_modules_to_transmit,
977
1032
  /**
978
1033
  * Used by roboports.
979
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
1034
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
980
1035
  */
981
1036
  recharging_after_power_outage,
982
1037
  /**
983
1038
  * Used by inserters targeting entity ghosts.
984
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
1039
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
985
1040
  */
986
1041
  waiting_for_target_to_be_built,
987
1042
  /**
988
1043
  * Used by inserters targeting rails.
989
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.waiting_for_train Online documentation}
1044
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_train Online documentation}
990
1045
  */
991
1046
  waiting_for_train,
992
1047
  /**
993
1048
  * Used by ammo turrets.
994
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.no_ammo Online documentation}
1049
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_ammo Online documentation}
995
1050
  */
996
1051
  no_ammo,
997
1052
  /**
998
1053
  * Used by heat energy sources.
999
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.low_temperature Online documentation}
1054
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.low_temperature Online documentation}
1000
1055
  */
1001
1056
  low_temperature,
1002
1057
  /**
1003
1058
  * Used by constant combinators: Combinator is turned off via switch in GUI.
1004
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.disabled Online documentation}
1059
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.disabled Online documentation}
1005
1060
  */
1006
1061
  disabled,
1007
1062
  /**
1008
1063
  * Used by lamps.
1009
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
1064
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
1010
1065
  */
1011
1066
  turned_off_during_daytime,
1012
1067
  /**
1013
1068
  * Used by rail signals.
1014
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
1069
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
1015
1070
  */
1016
1071
  not_connected_to_rail,
1017
1072
  /**
1018
1073
  * Used by rail signals.
1019
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.cant_divide_segments Online documentation}
1074
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.cant_divide_segments Online documentation}
1020
1075
  */
1021
1076
  cant_divide_segments,
1022
1077
  /**
1023
1078
  * Used by filter inserters.
1024
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.no_filter Online documentation}
1079
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_filter Online documentation}
1025
1080
  */
1026
1081
  no_filter,
1027
1082
  /**
1028
1083
  * Used by agricultural towers.
1029
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.no_spot_seedable_by_inputs Online documentation}
1084
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_spot_seedable_by_inputs Online documentation}
1030
1085
  */
1031
1086
  no_spot_seedable_by_inputs,
1032
1087
  /**
1033
1088
  * Used by agricultural towers.
1034
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.waiting_for_plants_to_grow Online documentation}
1089
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_plants_to_grow Online documentation}
1035
1090
  */
1036
1091
  waiting_for_plants_to_grow,
1037
1092
  /**
1038
1093
  * Used by asteroid collectors.
1039
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.computing_navigation Online documentation}
1094
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.computing_navigation Online documentation}
1040
1095
  */
1041
1096
  computing_navigation,
1042
1097
  /**
1043
- * Used by pipes, pipes to ground and storage tanks.
1044
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.pipeline_overextended Online documentation}
1098
+ * Used by pipes, pipes to ground, and storage tanks.
1099
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.pipeline_overextended Online documentation}
1045
1100
  */
1046
1101
  pipeline_overextended,
1047
1102
  /**
1048
1103
  * Used by assembling machines.
1049
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.recipe_not_researched Online documentation}
1104
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.recipe_not_researched Online documentation}
1050
1105
  */
1051
1106
  recipe_not_researched,
1052
1107
  /**
1053
1108
  * Used by assembling machines.
1054
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.entity_status.recipe_is_parameter Online documentation}
1109
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.recipe_is_parameter Online documentation}
1055
1110
  */
1056
1111
  recipe_is_parameter,
1112
+ /**
1113
+ * Used by land mines.
1114
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.armed Online documentation}
1115
+ */
1116
+ armed,
1057
1117
  }
1058
1118
  enum entity_status_diode {
1059
1119
  green,
@@ -1061,8 +1121,8 @@ declare global {
1061
1121
  yellow,
1062
1122
  }
1063
1123
  /**
1064
- * See the {@linkplain https://lua-api.factorio.com/2.0.72/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.72/defines.html#defines.events Online documentation}
1124
+ * See the {@linkplain https://lua-api.factorio.com/2.1.7/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.7/defines.html#defines.events Online documentation}
1066
1126
  */
1067
1127
  namespace events {
1068
1128
  /**
@@ -1081,6 +1141,10 @@ declare global {
1081
1141
  * Event type: {@link OnBiterBaseBuiltEvent}
1082
1142
  */
1083
1143
  const on_biter_base_built: EventId<OnBiterBaseBuiltEvent>
1144
+ /**
1145
+ * Event type: {@link OnBlueprintSettingsPastedEvent}
1146
+ */
1147
+ const on_blueprint_settings_pasted: EventId<OnBlueprintSettingsPastedEvent>
1084
1148
  /**
1085
1149
  * Event type: {@link OnBrushClonedEvent}
1086
1150
  */
@@ -1280,6 +1344,10 @@ declare global {
1280
1344
  * Event type: {@link OnGuiHoverEvent}
1281
1345
  */
1282
1346
  const on_gui_hover: EventId<OnGuiHoverEvent>
1347
+ /**
1348
+ * Event type: {@link OnGuiInventoryActionEvent}
1349
+ */
1350
+ const on_gui_inventory_action: EventId<OnGuiInventoryActionEvent>
1283
1351
  /**
1284
1352
  * Event type: {@link OnGuiLeaveEvent}
1285
1353
  */
@@ -1423,6 +1491,10 @@ declare global {
1423
1491
  * Event type: {@link OnPlayerClickedGpsTagEvent}
1424
1492
  */
1425
1493
  const on_player_clicked_gps_tag: EventId<OnPlayerClickedGpsTagEvent>
1494
+ /**
1495
+ * Event type: {@link OnPlayerColorChangedEvent}
1496
+ */
1497
+ const on_player_color_changed: EventId<OnPlayerColorChangedEvent>
1426
1498
  /**
1427
1499
  * Event type: {@link OnPlayerConfiguredBlueprintEvent}
1428
1500
  */
@@ -1533,6 +1605,10 @@ declare global {
1533
1605
  * Event type: {@link OnPlayerMinedTileEvent}
1534
1606
  */
1535
1607
  const on_player_mined_tile: EventId<OnPlayerMinedTileEvent>
1608
+ /**
1609
+ * Event type: {@link OnPlayerMusicChangedEvent}
1610
+ */
1611
+ const on_player_music_changed: EventId<OnPlayerMusicChangedEvent>
1536
1612
  /**
1537
1613
  * Event type: {@link OnPlayerMutedEvent}
1538
1614
  */
@@ -2008,8 +2084,8 @@ declare global {
2008
2084
  const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent, LuaScriptRaisedTeleportedEventFilter>
2009
2085
  }
2010
2086
  /**
2011
- * See the {@linkplain https://lua-api.factorio.com/2.0.72/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.72/defines.html#defines.events Online documentation}
2087
+ * See the {@linkplain https://lua-api.factorio.com/2.1.7/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.7/defines.html#defines.events Online documentation}
2013
2089
  */
2014
2090
  type events = (typeof events)[keyof typeof events]
2015
2091
  enum flow_precision_index {
@@ -2025,17 +2101,17 @@ declare global {
2025
2101
  enum game_controller_interaction {
2026
2102
  /**
2027
2103
  * Game controller will always hover this element regardless of type or state.
2028
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.game_controller_interaction.always Online documentation}
2104
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.game_controller_interaction.always Online documentation}
2029
2105
  */
2030
2106
  always,
2031
2107
  /**
2032
2108
  * Never hover this element with a game controller.
2033
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.game_controller_interaction.never Online documentation}
2109
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.game_controller_interaction.never Online documentation}
2034
2110
  */
2035
2111
  never,
2036
2112
  /**
2037
2113
  * Hover according to the element type and implementation.
2038
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.game_controller_interaction.normal Online documentation}
2114
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.game_controller_interaction.normal Online documentation}
2039
2115
  */
2040
2116
  normal,
2041
2117
  }
@@ -2050,6 +2126,7 @@ declare global {
2050
2126
  }
2051
2127
  enum gui_type {
2052
2128
  achievement,
2129
+ alerts_config,
2053
2130
  blueprint_library,
2054
2131
  bonus,
2055
2132
  controller,
@@ -2111,10 +2188,12 @@ declare global {
2111
2188
  change_programmable_speaker_alert_parameters,
2112
2189
  change_programmable_speaker_circuit_parameters,
2113
2190
  change_programmable_speaker_parameters,
2191
+ change_research_condition,
2114
2192
  change_riding_state,
2115
2193
  change_selector_combinator_parameters,
2116
2194
  change_shooting_state,
2117
2195
  change_train_name,
2196
+ change_train_station,
2118
2197
  change_train_stop_station,
2119
2198
  change_train_wait_condition,
2120
2199
  change_train_wait_condition_data,
@@ -2148,6 +2227,7 @@ declare global {
2148
2227
  disconnect_rolling_stock,
2149
2228
  drag_decider_combinator_condition,
2150
2229
  drag_decider_combinator_output,
2230
+ drag_research_condition,
2151
2231
  drag_train_schedule,
2152
2232
  drag_train_schedule_interrupt,
2153
2233
  drag_train_wait_condition,
@@ -2177,6 +2257,9 @@ declare global {
2177
2257
  gui_confirmed,
2178
2258
  gui_elem_changed,
2179
2259
  gui_hover,
2260
+ gui_inventory_action,
2261
+ gui_inventory_bar_changed,
2262
+ gui_inventory_filter_changed,
2180
2263
  gui_leave,
2181
2264
  gui_location_changed,
2182
2265
  gui_selected_tab_changed,
@@ -2227,6 +2310,7 @@ declare global {
2227
2310
  pin_search_result,
2228
2311
  pipette,
2229
2312
  place_equipment,
2313
+ providing_to_other_platforms,
2230
2314
  quick_bar_pick_slot,
2231
2315
  quick_bar_set_selected_page,
2232
2316
  quick_bar_set_slot,
@@ -2268,16 +2352,20 @@ declare global {
2268
2352
  set_circuit_condition,
2269
2353
  set_circuit_mode_of_operation,
2270
2354
  set_combinator_description,
2355
+ set_control_behavior_input_networks,
2356
+ set_control_behavior_output_networks,
2271
2357
  set_copy_color_from_train_stop,
2272
2358
  set_deconstruction_item_tile_selection_mode,
2273
2359
  set_deconstruction_item_trees_and_rocks_only,
2274
2360
  set_entity_color,
2275
2361
  set_entity_energy_property,
2362
+ set_equipment_energy_property,
2276
2363
  set_filter,
2277
2364
  set_ghost_cursor,
2278
2365
  set_heat_interface_mode,
2279
2366
  set_heat_interface_temperature,
2280
2367
  set_infinity_container_filter_item,
2368
+ set_infinity_container_logistic_mode,
2281
2369
  set_infinity_container_remove_unfiltered_items,
2282
2370
  set_infinity_pipe_filter,
2283
2371
  set_inserter_max_stack_size,
@@ -2330,6 +2418,7 @@ declare global {
2330
2418
  switch_power_switch_state,
2331
2419
  take_equipment,
2332
2420
  toggle_artillery_auto_targeting,
2421
+ toggle_blueprint_snap_to_grid,
2333
2422
  toggle_deconstruction_item_entity_filter_mode,
2334
2423
  toggle_deconstruction_item_tile_filter_mode,
2335
2424
  toggle_driving,
@@ -2341,7 +2430,7 @@ declare global {
2341
2430
  toggle_personal_roboport,
2342
2431
  toggle_selected_entity,
2343
2432
  toggle_show_entity_info,
2344
- translate_string,
2433
+ toggle_tall_entity_visibility,
2345
2434
  trash_not_requested_items,
2346
2435
  undo,
2347
2436
  upgrade,
@@ -2360,26 +2449,6 @@ declare global {
2360
2449
  burnt_result,
2361
2450
  chest,
2362
2451
  logistic_container_trash,
2363
- /**
2364
- * Deprecated, replaced by `"crafter_input"`.
2365
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.inventory.furnace_source Online documentation}
2366
- */
2367
- furnace_source,
2368
- /**
2369
- * Deprecated, replaced by `"crafter_output"`.
2370
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.inventory.furnace_result Online documentation}
2371
- */
2372
- furnace_result,
2373
- /**
2374
- * Deprecated, replaced by `"crafter_modules"`.
2375
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.inventory.furnace_modules Online documentation}
2376
- */
2377
- furnace_modules,
2378
- /**
2379
- * Deprecated, replaced by `"crafter_trash"`.
2380
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.inventory.furnace_trash Online documentation}
2381
- */
2382
- furnace_trash,
2383
2452
  character_main,
2384
2453
  character_guns,
2385
2454
  character_ammo,
@@ -2395,31 +2464,11 @@ declare global {
2395
2464
  roboport_material,
2396
2465
  robot_cargo,
2397
2466
  robot_repair,
2398
- /**
2399
- * Deprecated, replaced by `"crafter_input"`.
2400
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.inventory.assembling_machine_input Online documentation}
2401
- */
2402
- assembling_machine_input,
2403
- /**
2404
- * Deprecated, replaced by `"crafter_output"`.
2405
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.inventory.assembling_machine_output Online documentation}
2406
- */
2407
- assembling_machine_output,
2408
- /**
2409
- * Deprecated, replaced by `"crafter_modules"`.
2410
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.inventory.assembling_machine_modules Online documentation}
2411
- */
2412
- assembling_machine_modules,
2413
2467
  /**
2414
2468
  * Used for ejected items, or items held by inserters that can't be inserted due the recipe being changed with the circuit network.
2415
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.inventory.assembling_machine_dump Online documentation}
2469
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.inventory.assembling_machine_dump Online documentation}
2416
2470
  */
2417
2471
  assembling_machine_dump,
2418
- /**
2419
- * Deprecated, replaced by `"crafter_trash"`.
2420
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.inventory.assembling_machine_trash Online documentation}
2421
- */
2422
- assembling_machine_trash,
2423
2472
  lab_input,
2424
2473
  lab_modules,
2425
2474
  lab_trash,
@@ -2427,24 +2476,10 @@ declare global {
2427
2476
  item_main,
2428
2477
  rocket_silo_rocket,
2429
2478
  rocket_silo_trash,
2430
- /**
2431
- * Deprecated, replaced by `"crafter_input"`.
2432
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.inventory.rocket_silo_input Online documentation}
2433
- */
2434
- rocket_silo_input,
2435
- /**
2436
- * Deprecated, replaced by `"crafter_output"`.
2437
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.inventory.rocket_silo_output Online documentation}
2438
- */
2439
- rocket_silo_output,
2440
- /**
2441
- * Deprecated, replaced by `"crafter_modules"`.
2442
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.inventory.rocket_silo_modules Online documentation}
2443
- */
2444
- rocket_silo_modules,
2479
+ rocket_silo_attached_cargo_unit,
2445
2480
  /**
2446
2481
  * Inventory of cargo pod.
2447
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.inventory.cargo_unit Online documentation}
2482
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.inventory.cargo_unit Online documentation}
2448
2483
  */
2449
2484
  cargo_unit,
2450
2485
  car_trunk,
@@ -2466,18 +2501,31 @@ declare global {
2466
2501
  proxy_main,
2467
2502
  agricultural_tower_input,
2468
2503
  agricultural_tower_output,
2504
+ agricultural_tower_modules,
2469
2505
  linked_container_main,
2470
2506
  crafter_input,
2471
2507
  crafter_output,
2472
2508
  crafter_modules,
2473
2509
  /**
2474
2510
  * 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.
2475
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.inventory.crafter_trash Online documentation}
2511
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.inventory.crafter_trash Online documentation}
2476
2512
  */
2477
2513
  crafter_trash,
2478
2514
  asteroid_collector_output,
2479
2515
  asteroid_collector_arm,
2480
2516
  }
2517
+ enum inventory_actions {
2518
+ cursor_transfer,
2519
+ cursor_split,
2520
+ stack_transfer,
2521
+ stack_split,
2522
+ inventory_transfer,
2523
+ inventory_split,
2524
+ open_item,
2525
+ open_mod_item,
2526
+ send_stack_to_trash,
2527
+ send_stacks_to_trash,
2528
+ }
2481
2529
  enum logistic_group_type {
2482
2530
  with_trash,
2483
2531
  roboport,
@@ -2501,6 +2549,9 @@ declare global {
2501
2549
  rocket_silo_trash_provider,
2502
2550
  space_platform_hub_requester,
2503
2551
  space_platform_hub_provider,
2552
+ cargo_landing_pad_requester,
2553
+ cargo_landing_pad_provider,
2554
+ cargo_landing_pad_trash_provider,
2504
2555
  }
2505
2556
  enum logistic_mode {
2506
2557
  none,
@@ -2515,12 +2566,12 @@ declare global {
2515
2566
  circuit_controlled,
2516
2567
  /**
2517
2568
  * Used by rocket silos.
2518
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
2569
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
2519
2570
  */
2520
2571
  transitional_request_controlled,
2521
2572
  /**
2522
2573
  * Used by space platform hubs.
2523
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
2574
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
2524
2575
  */
2525
2576
  request_missing_materials_controlled,
2526
2577
  }
@@ -2539,17 +2590,17 @@ declare global {
2539
2590
  enum print_skip {
2540
2591
  /**
2541
2592
  * Print will not be skipped.
2542
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.print_skip.never Online documentation}
2593
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.print_skip.never Online documentation}
2543
2594
  */
2544
2595
  never,
2545
2596
  /**
2546
2597
  * Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
2547
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.print_skip.if_redundant Online documentation}
2598
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.print_skip.if_redundant Online documentation}
2548
2599
  */
2549
2600
  if_redundant,
2550
2601
  /**
2551
2602
  * Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
2552
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.print_skip.if_visible Online documentation}
2603
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.print_skip.if_visible Online documentation}
2553
2604
  */
2554
2605
  if_visible,
2555
2606
  }
@@ -2560,7 +2611,7 @@ declare global {
2560
2611
  }
2561
2612
  /**
2562
2613
  * 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, ...}`.
2563
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.prototypes Online documentation}
2614
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.prototypes Online documentation}
2564
2615
  */
2565
2616
  interface prototypes {
2566
2617
  achievement: {
@@ -2784,6 +2835,7 @@ declare global {
2784
2835
  "active-defense-equipment": 0
2785
2836
  "battery-equipment": 0
2786
2837
  "belt-immunity-equipment": 0
2838
+ "electric-energy-interface-equipment": 0
2787
2839
  "energy-shield-equipment": 0
2788
2840
  "equipment-ghost": 0
2789
2841
  "generator-equipment": 0
@@ -2955,7 +3007,7 @@ declare global {
2955
3007
  }
2956
3008
  /**
2957
3009
  * 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, ...}`.
2958
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.prototypes Online documentation}
3010
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.prototypes Online documentation}
2959
3011
  */
2960
3012
  const prototypes: prototypes
2961
3013
  enum rail_connection_direction {
@@ -2984,6 +3036,7 @@ declare global {
2984
3036
  additional_entity_info_gui,
2985
3037
  admin_gui,
2986
3038
  agriculture_tower_gui,
3039
+ alerts_config_gui,
2987
3040
  arithmetic_combinator_gui,
2988
3041
  armor_gui,
2989
3042
  assembling_machine_gui,
@@ -2993,6 +3046,7 @@ declare global {
2993
3046
  blueprint_book_gui,
2994
3047
  blueprint_library_gui,
2995
3048
  blueprint_setup_gui,
3049
+ boiler_gui,
2996
3050
  bonus_gui,
2997
3051
  burner_equipment_gui,
2998
3052
  car_gui,
@@ -3003,6 +3057,7 @@ declare global {
3003
3057
  decider_combinator_gui,
3004
3058
  deconstruction_item_gui,
3005
3059
  display_panel_gui,
3060
+ electric_energy_interface_equipment_gui,
3006
3061
  electric_energy_interface_gui,
3007
3062
  electric_network_gui,
3008
3063
  entity_variations_gui,
@@ -3013,6 +3068,7 @@ declare global {
3013
3068
  ghost_picker_gui,
3014
3069
  global_electric_network_gui,
3015
3070
  heat_interface_gui,
3071
+ heat_pipe_gui,
3016
3072
  infinity_pipe_gui,
3017
3073
  inserter_gui,
3018
3074
  item_with_inventory_gui,
@@ -3032,6 +3088,7 @@ declare global {
3032
3088
  programmable_speaker_gui,
3033
3089
  proxy_container_gui,
3034
3090
  pump_gui,
3091
+ radar_gui,
3035
3092
  rail_signal_base_gui,
3036
3093
  reactor_gui,
3037
3094
  resource_entity_gui,
@@ -3044,7 +3101,6 @@ declare global {
3044
3101
  spider_vehicle_gui,
3045
3102
  splitter_gui,
3046
3103
  standalone_character_gui,
3047
- storage_tank_gui,
3048
3104
  tile_variations_gui,
3049
3105
  tips_and_tricks_gui,
3050
3106
  train_gui,
@@ -3081,189 +3137,189 @@ declare global {
3081
3137
  enum robot_order_type {
3082
3138
  /**
3083
3139
  * Construct a ghost.
3084
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.robot_order_type.construct Online documentation}
3140
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.construct Online documentation}
3085
3141
  */
3086
3142
  construct,
3087
3143
  /**
3088
3144
  * Pickup an item.
3089
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.robot_order_type.pickup Online documentation}
3145
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.pickup Online documentation}
3090
3146
  */
3091
3147
  pickup,
3092
3148
  /**
3093
3149
  * Deliver an item.
3094
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.robot_order_type.deliver Online documentation}
3150
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.deliver Online documentation}
3095
3151
  */
3096
3152
  deliver,
3097
3153
  /**
3098
3154
  * Repair an entity.
3099
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.robot_order_type.repair Online documentation}
3155
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.repair Online documentation}
3100
3156
  */
3101
3157
  repair,
3102
3158
  /**
3103
3159
  * Deconstruct an entity.
3104
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.robot_order_type.deconstruct Online documentation}
3160
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.deconstruct Online documentation}
3105
3161
  */
3106
3162
  deconstruct,
3107
3163
  /**
3108
3164
  * Deliver specific items to an entity (item request proxy).
3109
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.robot_order_type.deliver_items Online documentation}
3165
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.deliver_items Online documentation}
3110
3166
  */
3111
3167
  deliver_items,
3112
3168
  /**
3113
3169
  * Upgrade an entity.
3114
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.robot_order_type.upgrade Online documentation}
3170
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.upgrade Online documentation}
3115
3171
  */
3116
3172
  upgrade,
3117
3173
  /**
3118
3174
  * Explode a cliff.
3119
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.robot_order_type.explode_cliff Online documentation}
3175
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.explode_cliff Online documentation}
3120
3176
  */
3121
3177
  explode_cliff,
3122
3178
  /**
3123
3179
  * Pickup items from an entity (item request proxy).
3124
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.robot_order_type.pickup_items Online documentation}
3180
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.pickup_items Online documentation}
3125
3181
  */
3126
3182
  pickup_items,
3127
3183
  }
3128
3184
  /**
3129
3185
  * The various parts of the launch sequence of the rocket silo.
3130
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.rocket_silo_status Online documentation}
3186
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status Online documentation}
3131
3187
  */
3132
3188
  enum rocket_silo_status {
3133
3189
  /**
3134
3190
  * The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
3135
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
3191
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
3136
3192
  */
3137
3193
  building_rocket,
3138
3194
  /**
3139
3195
  * The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
3140
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
3196
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
3141
3197
  */
3142
3198
  create_rocket,
3143
3199
  /**
3144
3200
  * The next state is `doors_opening`. The rocket is getting prepared for launch.
3145
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
3201
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
3146
3202
  */
3147
3203
  lights_blinking_open,
3148
3204
  /**
3149
3205
  * The next state is `doors_opened`. The rocket is getting prepared for launch.
3150
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
3206
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
3151
3207
  */
3152
3208
  doors_opening,
3153
3209
  /**
3154
3210
  * 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.
3155
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
3211
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
3156
3212
  */
3157
3213
  doors_opened,
3158
3214
  /**
3159
3215
  * 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.
3160
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
3216
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
3161
3217
  */
3162
3218
  rocket_rising,
3163
3219
  /**
3164
3220
  * 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.
3165
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
3221
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
3166
3222
  */
3167
3223
  arms_advance,
3168
3224
  /**
3169
3225
  * The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
3170
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
3226
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
3171
3227
  */
3172
3228
  rocket_ready,
3173
3229
  /**
3174
3230
  * The next state is `launch_started`.
3175
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
3231
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
3176
3232
  */
3177
3233
  launch_starting,
3178
3234
  /**
3179
3235
  * 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.
3180
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
3236
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
3181
3237
  */
3182
3238
  engine_starting,
3183
3239
  /**
3184
3240
  * 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.
3185
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
3241
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
3186
3242
  */
3187
3243
  arms_retract,
3188
3244
  /**
3189
3245
  * The next state is `lights_blinking_close`. The rocket is getting launched.
3190
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
3246
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
3191
3247
  */
3192
3248
  rocket_flying,
3193
3249
  /**
3194
3250
  * The next state is `doors_closing`.
3195
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
3251
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
3196
3252
  */
3197
3253
  lights_blinking_close,
3198
3254
  /**
3199
3255
  * The next state is `building_rocket`.
3200
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
3256
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
3201
3257
  */
3202
3258
  doors_closing,
3203
3259
  /**
3204
3260
  * 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.
3205
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.rocket_silo_status.launch_started Online documentation}
3261
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.launch_started Online documentation}
3206
3262
  */
3207
3263
  launch_started,
3208
3264
  }
3209
3265
  enum segmented_unit_activity_mode {
3210
3266
  /**
3211
3267
  * The segmented unit is completely asleep, only performing the bare minimum checks to wake up if needed.
3212
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.segmented_unit_activity_mode.asleep Online documentation}
3268
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_activity_mode.asleep Online documentation}
3213
3269
  */
3214
3270
  asleep,
3215
3271
  /**
3216
3272
  * The segmented unit is minimally active, reducing unnecessary entity movement and trigger effects while continuing to patrol around its territory.
3217
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.segmented_unit_activity_mode.minimal Online documentation}
3273
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_activity_mode.minimal Online documentation}
3218
3274
  */
3219
3275
  minimal,
3220
3276
  /**
3221
3277
  * The segmented unit is fully active and simulated as if it is being observed by a player.
3222
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.segmented_unit_activity_mode.full Online documentation}
3278
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_activity_mode.full Online documentation}
3223
3279
  */
3224
3280
  full,
3225
3281
  }
3226
3282
  enum segmented_unit_ai_state {
3227
3283
  /**
3228
3284
  * 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.
3229
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.segmented_unit_ai_state.patrolling Online documentation}
3285
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_ai_state.patrolling Online documentation}
3230
3286
  */
3231
3287
  patrolling,
3232
3288
  /**
3233
3289
  * The segmented unit is investigating a location where it detected a disturbance.
3234
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.segmented_unit_ai_state.investigating Online documentation}
3290
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_ai_state.investigating Online documentation}
3235
3291
  */
3236
3292
  investigating,
3237
3293
  /**
3238
3294
  * The segmented unit is attacking an entity that is trespassing on its territory, but the segmented unit is not using its full strength.
3239
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.segmented_unit_ai_state.attacking Online documentation}
3295
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_ai_state.attacking Online documentation}
3240
3296
  */
3241
3297
  attacking,
3242
3298
  /**
3243
3299
  * The segmented unit is angry because it was attacked and is aggressively attacking an entity with its full strength.
3244
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.segmented_unit_ai_state.enraged_at_target Online documentation}
3300
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_ai_state.enraged_at_target Online documentation}
3245
3301
  */
3246
3302
  enraged_at_target,
3247
3303
  /**
3248
3304
  * 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.
3249
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.segmented_unit_ai_state.enraged_at_nothing Online documentation}
3305
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_ai_state.enraged_at_nothing Online documentation}
3250
3306
  */
3251
3307
  enraged_at_nothing,
3252
3308
  }
3253
3309
  enum segmented_unit_created_cause {
3254
3310
  /**
3255
3311
  * The segmented unit was spawned naturally by the map generator.
3256
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.segmented_unit_created_cause.map_generated Online documentation}
3312
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_created_cause.map_generated Online documentation}
3257
3313
  */
3258
3314
  map_generated,
3259
3315
  /**
3260
3316
  * The segmented unit was created manually via script.
3261
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.segmented_unit_created_cause.script_created Online documentation}
3317
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_created_cause.script_created Online documentation}
3262
3318
  */
3263
3319
  script_created,
3264
3320
  /**
3265
3321
  * The segmented unit was cloned from an existing segmented unit via script.
3266
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.segmented_unit_created_cause.script_cloned Online documentation}
3322
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_created_cause.script_cloned Online documentation}
3267
3323
  */
3268
3324
  script_cloned,
3269
3325
  }
@@ -3280,74 +3336,74 @@ declare global {
3280
3336
  }
3281
3337
  /**
3282
3338
  * State of an ordinary rail signal.
3283
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.signal_state Online documentation}
3339
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.signal_state Online documentation}
3284
3340
  */
3285
3341
  enum signal_state {
3286
3342
  /**
3287
3343
  * Green.
3288
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.signal_state.open Online documentation}
3344
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.signal_state.open Online documentation}
3289
3345
  */
3290
3346
  open,
3291
3347
  /**
3292
3348
  * Red.
3293
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.signal_state.closed Online documentation}
3349
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.signal_state.closed Online documentation}
3294
3350
  */
3295
3351
  closed,
3296
3352
  /**
3297
3353
  * Orange.
3298
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.signal_state.reserved Online documentation}
3354
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.signal_state.reserved Online documentation}
3299
3355
  */
3300
3356
  reserved,
3301
3357
  /**
3302
3358
  * Red - From circuit network.
3303
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
3359
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
3304
3360
  */
3305
3361
  reserved_by_circuit_network,
3306
3362
  }
3307
3363
  enum space_platform_state {
3308
3364
  /**
3309
3365
  * Waiting for a starter pack.
3310
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
3366
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
3311
3367
  */
3312
3368
  waiting_for_starter_pack,
3313
3369
  /**
3314
3370
  * Starter pack was requested from the logistics system.
3315
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
3371
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
3316
3372
  */
3317
3373
  starter_pack_requested,
3318
3374
  /**
3319
3375
  * Starter pack is on the way.
3320
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
3376
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
3321
3377
  */
3322
3378
  starter_pack_on_the_way,
3323
3379
  /**
3324
3380
  * Following the path.
3325
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.space_platform_state.on_the_path Online documentation}
3381
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.on_the_path Online documentation}
3326
3382
  */
3327
3383
  on_the_path,
3328
3384
  /**
3329
3385
  * Platform is ready to leave this planet and does not accept deliveries.
3330
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
3386
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
3331
3387
  */
3332
3388
  waiting_for_departure,
3333
3389
  /**
3334
3390
  * Doesn't have any stations in schedule.
3335
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.space_platform_state.no_schedule Online documentation}
3391
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.no_schedule Online documentation}
3336
3392
  */
3337
3393
  no_schedule,
3338
3394
  /**
3339
3395
  * Doesn't have anywhere to go.
3340
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.space_platform_state.no_path Online documentation}
3396
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.no_path Online documentation}
3341
3397
  */
3342
3398
  no_path,
3343
3399
  /**
3344
3400
  * Waiting at a station.
3345
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
3401
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
3346
3402
  */
3347
3403
  waiting_at_station,
3348
3404
  /**
3349
3405
  * Paused.
3350
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.space_platform_state.paused Online documentation}
3406
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.paused Online documentation}
3351
3407
  */
3352
3408
  paused,
3353
3409
  }
@@ -3374,68 +3430,71 @@ declare global {
3374
3430
  schedule,
3375
3431
  territory,
3376
3432
  segmented_unit,
3433
+ electric_network,
3434
+ electric_sub_network,
3435
+ force,
3377
3436
  }
3378
3437
  enum territory_created_cause {
3379
3438
  /**
3380
3439
  * The territory was spawned naturally by the map generator.
3381
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.territory_created_cause.map_generated Online documentation}
3440
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.territory_created_cause.map_generated Online documentation}
3382
3441
  */
3383
3442
  map_generated,
3384
3443
  /**
3385
3444
  * The territory was created manually via script.
3386
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.territory_created_cause.script_created Online documentation}
3445
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.territory_created_cause.script_created Online documentation}
3387
3446
  */
3388
3447
  script_created,
3389
3448
  }
3390
3449
  enum train_state {
3391
3450
  /**
3392
3451
  * Normal state -- following the path.
3393
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.train_state.on_the_path Online documentation}
3452
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.on_the_path Online documentation}
3394
3453
  */
3395
3454
  on_the_path,
3396
3455
  /**
3397
3456
  * Doesn't have anywhere to go.
3398
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.train_state.no_schedule Online documentation}
3457
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.no_schedule Online documentation}
3399
3458
  */
3400
3459
  no_schedule,
3401
3460
  /**
3402
3461
  * Has no path and is stopped.
3403
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.train_state.no_path Online documentation}
3462
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.no_path Online documentation}
3404
3463
  */
3405
3464
  no_path,
3406
3465
  /**
3407
3466
  * Braking before a rail signal.
3408
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.train_state.arrive_signal Online documentation}
3467
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.arrive_signal Online documentation}
3409
3468
  */
3410
3469
  arrive_signal,
3411
3470
  /**
3412
3471
  * Waiting at a signal.
3413
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.train_state.wait_signal Online documentation}
3472
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.wait_signal Online documentation}
3414
3473
  */
3415
3474
  wait_signal,
3416
3475
  /**
3417
3476
  * Braking before a station.
3418
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.train_state.arrive_station Online documentation}
3477
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.arrive_station Online documentation}
3419
3478
  */
3420
3479
  arrive_station,
3421
3480
  /**
3422
3481
  * Switched to manual control and has to stop.
3423
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.train_state.manual_control_stop Online documentation}
3482
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.manual_control_stop Online documentation}
3424
3483
  */
3425
3484
  manual_control_stop,
3426
3485
  /**
3427
3486
  * Can move if user explicitly sits in and rides the train.
3428
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.train_state.manual_control Online documentation}
3487
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.manual_control Online documentation}
3429
3488
  */
3430
3489
  manual_control,
3431
3490
  /**
3432
3491
  * Waiting at a station.
3433
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.train_state.wait_station Online documentation}
3492
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.wait_station Online documentation}
3434
3493
  */
3435
3494
  wait_station,
3436
3495
  /**
3437
3496
  * Same as no_path but all candidate train stops are full
3438
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.train_state.destination_full Online documentation}
3497
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.destination_full Online documentation}
3439
3498
  */
3440
3499
  destination_full,
3441
3500
  }
@@ -3465,17 +3524,17 @@ declare global {
3465
3524
  enum wire_origin {
3466
3525
  /**
3467
3526
  * 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.
3468
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.wire_origin.player Online documentation}
3527
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.wire_origin.player Online documentation}
3469
3528
  */
3470
3529
  player,
3471
3530
  /**
3472
3531
  * 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.
3473
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.wire_origin.script Online documentation}
3532
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.wire_origin.script Online documentation}
3474
3533
  */
3475
3534
  script,
3476
3535
  /**
3477
3536
  * These wires can only be modified by the game. They are not visible to the player, irrespective of the `draw_circuit_wires` prototype property.
3478
- * @see {@link https://lua-api.factorio.com/2.0.72/defines.html#defines.wire_origin.radars Online documentation}
3537
+ * @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.wire_origin.radars Online documentation}
3479
3538
  */
3480
3539
  radars,
3481
3540
  }