typed-factorio 4.8.0 → 4.9.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.
@@ -13,7 +13,7 @@ declare module "factorio:runtime" {
13
13
  * script.on_event("my-potato-control", function(event)
14
14
  * game.print("Keyboard shortcut pressed on tick: " ..tostring(event.tick))
15
15
  * end)
16
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#CustomInputEvent Online documentation}
16
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#CustomInputEvent Online documentation}
17
17
  */
18
18
  interface CustomInputEvent extends EventData {
19
19
  /**
@@ -59,7 +59,7 @@ declare module "factorio:runtime" {
59
59
  }
60
60
  /**
61
61
  * Called when a recipe with {@link import("factorio:prototype").RecipePrototype#raise_on_crafted RecipePrototype::raise_on_crafted} is crafted.
62
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#RecipeCraftedEvent Online documentation}
62
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#RecipeCraftedEvent Online documentation}
63
63
  */
64
64
  interface RecipeCraftedEvent extends EventData {
65
65
  /**
@@ -105,7 +105,7 @@ declare module "factorio:runtime" {
105
105
  }
106
106
  /**
107
107
  * Called when an achievement is gained.
108
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_achievement_gained Online documentation}
108
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_achievement_gained Online documentation}
109
109
  */
110
110
  interface OnAchievementGainedEvent extends EventData {
111
111
  /**
@@ -124,7 +124,7 @@ declare module "factorio:runtime" {
124
124
  }
125
125
  /**
126
126
  * Called when a unit/group completes a command.
127
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_ai_command_completed Online documentation}
127
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_ai_command_completed Online documentation}
128
128
  */
129
129
  interface OnAiCommandCompletedEvent extends EventData {
130
130
  /**
@@ -147,7 +147,7 @@ declare module "factorio:runtime" {
147
147
  }
148
148
  /**
149
149
  * Called when an area of the map is cloned.
150
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_area_cloned Online documentation}
150
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_area_cloned Online documentation}
151
151
  */
152
152
  interface OnAreaClonedEvent extends EventData {
153
153
  readonly source_surface: LuaSurface
@@ -173,7 +173,7 @@ declare module "factorio:runtime" {
173
173
  * Called when a biter migration builds a base.
174
174
  *
175
175
  * This will be called multiple times for each migration, once for every biter that is sacrificed to build part of the new base.
176
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_biter_base_built Online documentation}
176
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_biter_base_built Online documentation}
177
177
  */
178
178
  interface OnBiterBaseBuiltEvent extends EventData {
179
179
  /**
@@ -195,7 +195,7 @@ declare module "factorio:runtime" {
195
195
  * The entity's settings, rotation, mirroring, wire connections, etc. may have been updated. This event is raised even if no settings actually changed.
196
196
  *
197
197
  * Note this event is not raised when an entity is upgraded or marked for upgrade, when a new entity is created, or when an entity ghost is instantly revived. {@link OnBuiltEntityEvent on_built_entity} is raised instead in those cases.
198
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_blueprint_settings_pasted Online documentation}
198
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_blueprint_settings_pasted Online documentation}
199
199
  */
200
200
  interface OnBlueprintSettingsPastedEvent extends EventData {
201
201
  /**
@@ -229,7 +229,7 @@ declare module "factorio:runtime" {
229
229
  }
230
230
  /**
231
231
  * Called when a set of positions on the map is cloned.
232
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_brush_cloned Online documentation}
232
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_brush_cloned Online documentation}
233
233
  */
234
234
  interface OnBrushClonedEvent extends EventData {
235
235
  readonly source_offset: TilePosition
@@ -254,7 +254,7 @@ declare module "factorio:runtime" {
254
254
  }
255
255
  /**
256
256
  * Called when a {@link defines.command.build_base} command reaches its destination, and before building starts.
257
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_build_base_arrived Online documentation}
257
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_build_base_arrived Online documentation}
258
258
  */
259
259
  interface OnBuildBaseArrivedEvent extends EventData {
260
260
  /**
@@ -278,7 +278,7 @@ declare module "factorio:runtime" {
278
278
  * Called when player builds something.
279
279
  *
280
280
  * Event filter: [LuaPlayerBuiltEntityEventFilter](LuaPlayerBuiltEntityEventFilter]
281
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_built_entity Online documentation}
281
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_built_entity Online documentation}
282
282
  */
283
283
  interface OnBuiltEntityEvent extends EventData {
284
284
  /**
@@ -310,7 +310,7 @@ declare module "factorio:runtime" {
310
310
  * Called when the deconstruction of an entity is canceled.
311
311
  *
312
312
  * Event filter: [LuaEntityDeconstructionCancelledEventFilter](LuaEntityDeconstructionCancelledEventFilter]
313
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_cancelled_deconstruction Online documentation}
313
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_cancelled_deconstruction Online documentation}
314
314
  */
315
315
  interface OnCancelledDeconstructionEvent extends EventData {
316
316
  readonly entity: LuaEntity
@@ -328,7 +328,7 @@ declare module "factorio:runtime" {
328
328
  * Called when the upgrade of an entity is canceled.
329
329
  *
330
330
  * Event filter: [LuaUpgradeCancelledEventFilter](LuaUpgradeCancelledEventFilter]
331
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_cancelled_upgrade Online documentation}
331
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_cancelled_upgrade Online documentation}
332
332
  */
333
333
  interface OnCancelledUpgradeEvent extends EventData {
334
334
  readonly entity: LuaEntity
@@ -346,7 +346,7 @@ declare module "factorio:runtime" {
346
346
  }
347
347
  /**
348
348
  * Called after a cargo pod has delivered its cargo.
349
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_cargo_pod_delivered_cargo Online documentation}
349
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_cargo_pod_delivered_cargo Online documentation}
350
350
  */
351
351
  interface OnCargoPodDeliveredCargoEvent extends EventData {
352
352
  readonly cargo_pod: LuaEntity
@@ -365,7 +365,7 @@ declare module "factorio:runtime" {
365
365
  }
366
366
  /**
367
367
  * Called when a cargo pod departs a surface.
368
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_cargo_pod_finished_ascending Online documentation}
368
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_cargo_pod_finished_ascending Online documentation}
369
369
  */
370
370
  interface OnCargoPodFinishedAscendingEvent extends EventData {
371
371
  readonly cargo_pod: LuaEntity
@@ -388,7 +388,7 @@ declare module "factorio:runtime" {
388
388
  }
389
389
  /**
390
390
  * Called when a cargo pods lands on a surface, either at a station or on the ground.
391
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_cargo_pod_finished_descending Online documentation}
391
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_cargo_pod_finished_descending Online documentation}
392
392
  */
393
393
  interface OnCargoPodFinishedDescendingEvent extends EventData {
394
394
  readonly cargo_pod: LuaEntity
@@ -411,7 +411,7 @@ declare module "factorio:runtime" {
411
411
  }
412
412
  /**
413
413
  * Called when a cargo pod departs from a space platform hub or by another method not attached to a rocket.
414
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_cargo_pod_started_ascending Online documentation}
414
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_cargo_pod_started_ascending Online documentation}
415
415
  */
416
416
  interface OnCargoPodStartedAscendingEvent extends EventData {
417
417
  readonly cargo_pod: LuaEntity
@@ -432,7 +432,7 @@ declare module "factorio:runtime" {
432
432
  * Called when a character corpse expires due to timeout or all of the items being removed from it.
433
433
  *
434
434
  * this is not called if the corpse is mined. See {@link defines.events.on_pre_player_mined_item} to detect that.
435
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_character_corpse_expired Online documentation}
435
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_character_corpse_expired Online documentation}
436
436
  */
437
437
  interface OnCharacterCorpseExpiredEvent extends EventData {
438
438
  /**
@@ -450,7 +450,7 @@ declare module "factorio:runtime" {
450
450
  }
451
451
  /**
452
452
  * Called when a chart tag is created.
453
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_chart_tag_added Online documentation}
453
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_chart_tag_added Online documentation}
454
454
  */
455
455
  interface OnChartTagAddedEvent extends EventData {
456
456
  readonly tag: LuaCustomChartTag
@@ -467,7 +467,7 @@ declare module "factorio:runtime" {
467
467
  }
468
468
  /**
469
469
  * Called when a chart tag is modified by a player or by script.
470
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_chart_tag_modified Online documentation}
470
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_chart_tag_modified Online documentation}
471
471
  */
472
472
  interface OnChartTagModifiedEvent extends EventData {
473
473
  readonly tag: LuaCustomChartTag
@@ -489,7 +489,7 @@ declare module "factorio:runtime" {
489
489
  }
490
490
  /**
491
491
  * Called just before a chart tag is deleted.
492
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_chart_tag_removed Online documentation}
492
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_chart_tag_removed Online documentation}
493
493
  */
494
494
  interface OnChartTagRemovedEvent extends EventData {
495
495
  readonly tag: LuaCustomChartTag
@@ -506,7 +506,7 @@ declare module "factorio:runtime" {
506
506
  }
507
507
  /**
508
508
  * Called when a chunk is charted or re-charted.
509
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_chunk_charted Online documentation}
509
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_chunk_charted Online documentation}
510
510
  */
511
511
  interface OnChunkChartedEvent extends EventData {
512
512
  readonly surface_index: SurfaceIndex
@@ -527,7 +527,7 @@ declare module "factorio:runtime" {
527
527
  }
528
528
  /**
529
529
  * Called when one or more chunks are deleted using {@link LuaSurface#delete_chunk LuaSurface::delete_chunk}.
530
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_chunk_deleted Online documentation}
530
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_chunk_deleted Online documentation}
531
531
  */
532
532
  interface OnChunkDeletedEvent extends EventData {
533
533
  readonly surface_index: SurfaceIndex
@@ -546,7 +546,7 @@ declare module "factorio:runtime" {
546
546
  }
547
547
  /**
548
548
  * Called when a chunk is generated.
549
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_chunk_generated Online documentation}
549
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_chunk_generated Online documentation}
550
550
  */
551
551
  interface OnChunkGeneratedEvent extends EventData {
552
552
  /**
@@ -572,7 +572,7 @@ declare module "factorio:runtime" {
572
572
  }
573
573
  /**
574
574
  * Called when a combat robot expires through a lack of energy, or timeout.
575
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_combat_robot_expired Online documentation}
575
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_combat_robot_expired Online documentation}
576
576
  */
577
577
  interface OnCombatRobotExpiredEvent extends EventData {
578
578
  readonly robot: LuaEntity
@@ -593,7 +593,7 @@ declare module "factorio:runtime" {
593
593
  * Called when a message is sent to the in-game console, either by a player or through the server interface.
594
594
  *
595
595
  * This event only fires for plain messages, not for any commands (including `/shout` or `/whisper`).
596
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_console_chat Online documentation}
596
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_console_chat Online documentation}
597
597
  */
598
598
  interface OnConsoleChatEvent extends EventData {
599
599
  /**
@@ -615,7 +615,7 @@ declare module "factorio:runtime" {
615
615
  }
616
616
  /**
617
617
  * Called when someone enters a command-like message regardless of it being a valid command.
618
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_console_command Online documentation}
618
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_console_command Online documentation}
619
619
  */
620
620
  interface OnConsoleCommandEvent extends EventData {
621
621
  /**
@@ -641,7 +641,7 @@ declare module "factorio:runtime" {
641
641
  }
642
642
  /**
643
643
  * Called when a cutscene is cancelled by the player or by script.
644
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_cutscene_cancelled Online documentation}
644
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_cutscene_cancelled Online documentation}
645
645
  */
646
646
  interface OnCutsceneCancelledEvent extends EventData {
647
647
  /**
@@ -659,7 +659,7 @@ declare module "factorio:runtime" {
659
659
  }
660
660
  /**
661
661
  * Called when a cutscene finishes naturally (was not cancelled).
662
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_cutscene_finished Online documentation}
662
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_cutscene_finished Online documentation}
663
663
  */
664
664
  interface OnCutsceneFinishedEvent extends EventData {
665
665
  /**
@@ -677,7 +677,7 @@ declare module "factorio:runtime" {
677
677
  }
678
678
  /**
679
679
  * Called when a cutscene starts.
680
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_cutscene_started Online documentation}
680
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_cutscene_started Online documentation}
681
681
  */
682
682
  interface OnCutsceneStartedEvent extends EventData {
683
683
  /**
@@ -697,7 +697,7 @@ declare module "factorio:runtime" {
697
697
  * Called when a cutscene is playing, each time it reaches a waypoint in that cutscene.
698
698
  *
699
699
  * This refers to an index in the table previously passed to set_controller which started the cutscene.
700
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_cutscene_waypoint_reached Online documentation}
700
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_cutscene_waypoint_reached Online documentation}
701
701
  */
702
702
  interface OnCutsceneWaypointReachedEvent extends EventData {
703
703
  /**
@@ -721,7 +721,7 @@ declare module "factorio:runtime" {
721
721
  * Called when an entity is cloned. The filter applies to the source entity.
722
722
  *
723
723
  * Event filter: [LuaEntityClonedEventFilter](LuaEntityClonedEventFilter]
724
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_entity_cloned Online documentation}
724
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_entity_cloned Online documentation}
725
725
  */
726
726
  interface OnEntityClonedEvent extends EventData {
727
727
  readonly source: LuaEntity
@@ -739,7 +739,7 @@ declare module "factorio:runtime" {
739
739
  * Called after an entity has been recolored either by the player or through script.
740
740
  *
741
741
  * Automatic recoloring due to {@link LuaPlayer#color LuaPlayer::color} will not raise events, as that is a separate mechanism.
742
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_entity_color_changed Online documentation}
742
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_entity_color_changed Online documentation}
743
743
  */
744
744
  interface OnEntityColorChangedEvent extends EventData {
745
745
  /**
@@ -759,7 +759,7 @@ declare module "factorio:runtime" {
759
759
  * Called when an entity is damaged. This is not called when an entities health is set directly by another mod.
760
760
  *
761
761
  * Event filter: [LuaEntityDamagedEventFilter](LuaEntityDamagedEventFilter]
762
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_entity_damaged Online documentation}
762
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_entity_damaged Online documentation}
763
763
  */
764
764
  interface OnEntityDamagedEvent extends EventData {
765
765
  readonly entity: LuaEntity
@@ -801,7 +801,7 @@ declare module "factorio:runtime" {
801
801
  * Called when an entity dies.
802
802
  *
803
803
  * Event filter: [LuaEntityDiedEventFilter](LuaEntityDiedEventFilter]
804
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_entity_died Online documentation}
804
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_entity_died Online documentation}
805
805
  */
806
806
  interface OnEntityDiedEvent extends EventData {
807
807
  /**
@@ -835,7 +835,7 @@ declare module "factorio:runtime" {
835
835
  }
836
836
  /**
837
837
  * Called when one of an entity's logistic slots changes.
838
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_entity_logistic_slot_changed Online documentation}
838
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_entity_logistic_slot_changed Online documentation}
839
839
  */
840
840
  interface OnEntityLogisticSlotChangedEvent extends EventData {
841
841
  /**
@@ -865,7 +865,7 @@ declare module "factorio:runtime" {
865
865
  }
866
866
  /**
867
867
  * Called after an entity has been renamed either by the player or through script.
868
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_entity_renamed Online documentation}
868
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_entity_renamed Online documentation}
869
869
  */
870
870
  interface OnEntityRenamedEvent extends EventData {
871
871
  /**
@@ -886,7 +886,7 @@ declare module "factorio:runtime" {
886
886
  }
887
887
  /**
888
888
  * Called after entity copy-paste is done.
889
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_entity_settings_pasted Online documentation}
889
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_entity_settings_pasted Online documentation}
890
890
  */
891
891
  interface OnEntitySettingsPastedEvent extends EventData {
892
892
  readonly player_index: PlayerIndex
@@ -909,7 +909,7 @@ declare module "factorio:runtime" {
909
909
  }
910
910
  /**
911
911
  * Called when an entity is spawned by a EnemySpawner
912
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_entity_spawned Online documentation}
912
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_entity_spawned Online documentation}
913
913
  */
914
914
  interface OnEntitySpawnedEvent extends EventData {
915
915
  readonly spawner: LuaEntity
@@ -925,7 +925,7 @@ declare module "factorio:runtime" {
925
925
  }
926
926
  /**
927
927
  * Called after equipment is inserted into an equipment grid.
928
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_equipment_inserted Online documentation}
928
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_equipment_inserted Online documentation}
929
929
  */
930
930
  interface OnEquipmentInsertedEvent extends EventData {
931
931
  /**
@@ -947,7 +947,7 @@ declare module "factorio:runtime" {
947
947
  }
948
948
  /**
949
949
  * Called after equipment is removed from an equipment grid.
950
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_equipment_removed Online documentation}
950
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_equipment_removed Online documentation}
951
951
  */
952
952
  interface OnEquipmentRemovedEvent extends EventData {
953
953
  /**
@@ -977,7 +977,7 @@ declare module "factorio:runtime" {
977
977
  }
978
978
  /**
979
979
  * Called when the a forces cease fire values change.
980
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_force_cease_fire_changed Online documentation}
980
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_force_cease_fire_changed Online documentation}
981
981
  */
982
982
  interface OnForceCeaseFireChangedEvent extends EventData {
983
983
  /**
@@ -1005,7 +1005,7 @@ declare module "factorio:runtime" {
1005
1005
  * Called when a new force is created using `game.create_force()`
1006
1006
  *
1007
1007
  * This is not called when the default forces (`'player'`, `'enemy'`, `'neutral'`) are created as they will always exist.
1008
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_force_created Online documentation}
1008
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_force_created Online documentation}
1009
1009
  */
1010
1010
  interface OnForceCreatedEvent extends EventData {
1011
1011
  /**
@@ -1023,7 +1023,7 @@ declare module "factorio:runtime" {
1023
1023
  }
1024
1024
  /**
1025
1025
  * Called when the a forces friends change.
1026
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_force_friends_changed Online documentation}
1026
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_force_friends_changed Online documentation}
1027
1027
  */
1028
1028
  interface OnForceFriendsChangedEvent extends EventData {
1029
1029
  /**
@@ -1049,7 +1049,7 @@ declare module "factorio:runtime" {
1049
1049
  }
1050
1050
  /**
1051
1051
  * Called when {@link LuaForce#reset LuaForce::reset} is finished.
1052
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_force_reset Online documentation}
1052
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_force_reset Online documentation}
1053
1053
  */
1054
1054
  interface OnForceResetEvent extends EventData {
1055
1055
  readonly force: LuaForce
@@ -1066,7 +1066,7 @@ declare module "factorio:runtime" {
1066
1066
  * Called after two forces have been merged using `game.merge_forces()`.
1067
1067
  *
1068
1068
  * The source force is invalidated before this event is called and the name can be re-used in this event if desired.
1069
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_forces_merged Online documentation}
1069
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_forces_merged Online documentation}
1070
1070
  */
1071
1071
  interface OnForcesMergedEvent extends EventData {
1072
1072
  /**
@@ -1092,7 +1092,7 @@ declare module "factorio:runtime" {
1092
1092
  }
1093
1093
  /**
1094
1094
  * Called when two forces are about to be merged using `game.merge_forces()`.
1095
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_forces_merging Online documentation}
1095
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_forces_merging Online documentation}
1096
1096
  */
1097
1097
  interface OnForcesMergingEvent extends EventData {
1098
1098
  /**
@@ -1116,7 +1116,7 @@ declare module "factorio:runtime" {
1116
1116
  * Called when a game is created from a scenario. This is fired for every mod, even when the scenario's save data already includes it. In those cases however, {@link LuaBootstrap#on_init LuaBootstrap::on_init} is not fired.
1117
1117
  *
1118
1118
  * This event is not fired when the scenario is loaded via the map editor.
1119
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_game_created_from_scenario Online documentation}
1119
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_game_created_from_scenario Online documentation}
1120
1120
  */
1121
1121
  interface OnGameCreatedFromScenarioEvent extends EventData {
1122
1122
  /**
@@ -1130,7 +1130,7 @@ declare module "factorio:runtime" {
1130
1130
  }
1131
1131
  /**
1132
1132
  * Called when {@link LuaGuiElement} checked state is changed (related to checkboxes and radio buttons).
1133
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_gui_checked_state_changed Online documentation}
1133
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_gui_checked_state_changed Online documentation}
1134
1134
  */
1135
1135
  interface OnGuiCheckedStateChangedEvent extends EventData {
1136
1136
  /**
@@ -1152,7 +1152,7 @@ declare module "factorio:runtime" {
1152
1152
  }
1153
1153
  /**
1154
1154
  * Called when {@link LuaGuiElement} is clicked.
1155
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_gui_click Online documentation}
1155
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_gui_click Online documentation}
1156
1156
  */
1157
1157
  interface OnGuiClickEvent extends EventData {
1158
1158
  /**
@@ -1198,7 +1198,7 @@ declare module "factorio:runtime" {
1198
1198
  * This can only be raised when the GUI's player controller is still valid. If a GUI is thus closed due to the player disconnecting, dying, or becoming a spectator in other ways, it won't cause this event to be raised.
1199
1199
  *
1200
1200
  * It's not advised to open any other GUI during this event because if this is run as a request to open a different GUI the game will force close the new opened GUI without notice to ensure the original requested GUI is opened.
1201
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_gui_closed Online documentation}
1201
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_gui_closed Online documentation}
1202
1202
  */
1203
1203
  interface OnGuiClosedEvent extends EventData {
1204
1204
  /**
@@ -1241,6 +1241,10 @@ declare module "factorio:runtime" {
1241
1241
  * The script inventory whose GUI was closed.
1242
1242
  */
1243
1243
  readonly inventory?: LuaInventory
1244
+ /**
1245
+ * Blueprint record that was closed.
1246
+ */
1247
+ readonly record?: LuaRecord
1244
1248
  /**
1245
1249
  * Identifier of the event.
1246
1250
  */
@@ -1252,7 +1256,7 @@ declare module "factorio:runtime" {
1252
1256
  }
1253
1257
  /**
1254
1258
  * Called when a {@link LuaGuiElement} is confirmed, for example by pressing Enter in a textfield.
1255
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_gui_confirmed Online documentation}
1259
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_gui_confirmed Online documentation}
1256
1260
  */
1257
1261
  interface OnGuiConfirmedEvent extends EventData {
1258
1262
  /**
@@ -1286,7 +1290,7 @@ declare module "factorio:runtime" {
1286
1290
  }
1287
1291
  /**
1288
1292
  * Called when {@link LuaGuiElement} element value is changed (related to choose element buttons).
1289
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_gui_elem_changed Online documentation}
1293
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_gui_elem_changed Online documentation}
1290
1294
  */
1291
1295
  interface OnGuiElemChangedEvent extends EventData {
1292
1296
  /**
@@ -1310,7 +1314,7 @@ declare module "factorio:runtime" {
1310
1314
  * Called when {@link LuaGuiElement} is hovered by the mouse.
1311
1315
  *
1312
1316
  * Only fired for events whose {@link LuaGuiElement#raise_hover_events LuaGuiElement::raise_hover_events} is `true`.
1313
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_gui_hover Online documentation}
1317
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_gui_hover Online documentation}
1314
1318
  */
1315
1319
  interface OnGuiHoverEvent extends EventData {
1316
1320
  /**
@@ -1332,7 +1336,7 @@ declare module "factorio:runtime" {
1332
1336
  }
1333
1337
  /**
1334
1338
  * Called when a player interacts with a custom inventory GUI.
1335
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_gui_inventory_action Online documentation}
1339
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_gui_inventory_action Online documentation}
1336
1340
  */
1337
1341
  interface OnGuiInventoryActionEvent extends EventData {
1338
1342
  /**
@@ -1392,7 +1396,7 @@ declare module "factorio:runtime" {
1392
1396
  * Called when the player's cursor leaves a {@link LuaGuiElement} that was previously hovered.
1393
1397
  *
1394
1398
  * Only fired for events whose {@link LuaGuiElement#raise_hover_events LuaGuiElement::raise_hover_events} is `true`.
1395
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_gui_leave Online documentation}
1399
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_gui_leave Online documentation}
1396
1400
  */
1397
1401
  interface OnGuiLeaveEvent extends EventData {
1398
1402
  /**
@@ -1414,7 +1418,7 @@ declare module "factorio:runtime" {
1414
1418
  }
1415
1419
  /**
1416
1420
  * Called when {@link LuaGuiElement} element location is changed (related to frames in `player.gui.screen`).
1417
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_gui_location_changed Online documentation}
1421
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_gui_location_changed Online documentation}
1418
1422
  */
1419
1423
  interface OnGuiLocationChangedEvent extends EventData {
1420
1424
  /**
@@ -1436,7 +1440,7 @@ declare module "factorio:runtime" {
1436
1440
  }
1437
1441
  /**
1438
1442
  * Called when the player opens a GUI.
1439
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_gui_opened Online documentation}
1443
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_gui_opened Online documentation}
1440
1444
  */
1441
1445
  interface OnGuiOpenedEvent extends EventData {
1442
1446
  /**
@@ -1479,6 +1483,10 @@ declare module "factorio:runtime" {
1479
1483
  * The script inventory whose GUI was opened.
1480
1484
  */
1481
1485
  readonly inventory?: LuaInventory
1486
+ /**
1487
+ * Blueprint record that was opened.
1488
+ */
1489
+ readonly record?: LuaRecord
1482
1490
  /**
1483
1491
  * Identifier of the event.
1484
1492
  */
@@ -1490,7 +1498,7 @@ declare module "factorio:runtime" {
1490
1498
  }
1491
1499
  /**
1492
1500
  * Called when {@link LuaGuiElement} selected tab is changed (related to tabbed-panes).
1493
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_gui_selected_tab_changed Online documentation}
1501
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_gui_selected_tab_changed Online documentation}
1494
1502
  */
1495
1503
  interface OnGuiSelectedTabChangedEvent extends EventData {
1496
1504
  /**
@@ -1512,7 +1520,7 @@ declare module "factorio:runtime" {
1512
1520
  }
1513
1521
  /**
1514
1522
  * Called when {@link LuaGuiElement} selection state is changed (related to drop-downs and listboxes).
1515
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_gui_selection_state_changed Online documentation}
1523
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_gui_selection_state_changed Online documentation}
1516
1524
  */
1517
1525
  interface OnGuiSelectionStateChangedEvent extends EventData {
1518
1526
  /**
@@ -1534,7 +1542,7 @@ declare module "factorio:runtime" {
1534
1542
  }
1535
1543
  /**
1536
1544
  * Called when {@link LuaGuiElement} switch state is changed (related to switches).
1537
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_gui_switch_state_changed Online documentation}
1545
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_gui_switch_state_changed Online documentation}
1538
1546
  */
1539
1547
  interface OnGuiSwitchStateChangedEvent extends EventData {
1540
1548
  /**
@@ -1556,7 +1564,7 @@ declare module "factorio:runtime" {
1556
1564
  }
1557
1565
  /**
1558
1566
  * Called when {@link LuaGuiElement} text is changed by the player.
1559
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_gui_text_changed Online documentation}
1567
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_gui_text_changed Online documentation}
1560
1568
  */
1561
1569
  interface OnGuiTextChangedEvent extends EventData {
1562
1570
  /**
@@ -1582,7 +1590,7 @@ declare module "factorio:runtime" {
1582
1590
  }
1583
1591
  /**
1584
1592
  * Called when {@link LuaGuiElement} slider value is changed (related to the slider element).
1585
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_gui_value_changed Online documentation}
1593
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_gui_value_changed Online documentation}
1586
1594
  */
1587
1595
  interface OnGuiValueChangedEvent extends EventData {
1588
1596
  /**
@@ -1604,7 +1612,7 @@ declare module "factorio:runtime" {
1604
1612
  }
1605
1613
  /**
1606
1614
  * Called when a land mine is armed.
1607
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_land_mine_armed Online documentation}
1615
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_land_mine_armed Online documentation}
1608
1616
  */
1609
1617
  interface OnLandMineArmedEvent extends EventData {
1610
1618
  readonly mine: LuaEntity
@@ -1619,7 +1627,7 @@ declare module "factorio:runtime" {
1619
1627
  }
1620
1628
  /**
1621
1629
  * Called when a custom {@link import("factorio:prototype").ShortcutPrototype Lua shortcut} is pressed.
1622
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_lua_shortcut Online documentation}
1630
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_lua_shortcut Online documentation}
1623
1631
  */
1624
1632
  interface OnLuaShortcutEvent extends EventData {
1625
1633
  readonly player_index: PlayerIndex
@@ -1640,7 +1648,7 @@ declare module "factorio:runtime" {
1640
1648
  * Called when an entity is marked for deconstruction with the Deconstruction planner or via script.
1641
1649
  *
1642
1650
  * Event filter: [LuaEntityMarkedForDeconstructionEventFilter](LuaEntityMarkedForDeconstructionEventFilter]
1643
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_marked_for_deconstruction Online documentation}
1651
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_marked_for_deconstruction Online documentation}
1644
1652
  */
1645
1653
  interface OnMarkedForDeconstructionEvent extends EventData {
1646
1654
  readonly entity: LuaEntity
@@ -1658,7 +1666,7 @@ declare module "factorio:runtime" {
1658
1666
  * Called when an entity is marked for upgrade with the upgrade planner or via script.
1659
1667
  *
1660
1668
  * Event filter: [LuaEntityMarkedForUpgradeEventFilter](LuaEntityMarkedForUpgradeEventFilter]
1661
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_marked_for_upgrade Online documentation}
1669
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_marked_for_upgrade Online documentation}
1662
1670
  */
1663
1671
  interface OnMarkedForUpgradeEvent extends EventData {
1664
1672
  readonly player_index?: PlayerIndex
@@ -1687,7 +1695,7 @@ declare module "factorio:runtime" {
1687
1695
  }
1688
1696
  /**
1689
1697
  * Called after a player purchases some offer from a `market` entity.
1690
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_market_item_purchased Online documentation}
1698
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_market_item_purchased Online documentation}
1691
1699
  */
1692
1700
  interface OnMarketItemPurchasedEvent extends EventData {
1693
1701
  /**
@@ -1717,7 +1725,7 @@ declare module "factorio:runtime" {
1717
1725
  }
1718
1726
  /**
1719
1727
  * Called when the player uses the 'Open item GUI' control on an item defined with the 'mod-openable' flag
1720
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_mod_item_opened Online documentation}
1728
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_mod_item_opened Online documentation}
1721
1729
  */
1722
1730
  interface OnModItemOpenedEvent extends EventData {
1723
1731
  /**
@@ -1743,7 +1751,7 @@ declare module "factorio:runtime" {
1743
1751
  }
1744
1752
  /**
1745
1753
  * Called when {@link LuaGameScript#is_multiplayer LuaGameScript::is_multiplayer} changes to true. May also be raised when it was already true but a game was loaded from a save file and with hosting.
1746
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_multiplayer_init Online documentation}
1754
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_multiplayer_init Online documentation}
1747
1755
  */
1748
1756
  interface OnMultiplayerInitEvent extends EventData {
1749
1757
  /**
@@ -1757,7 +1765,7 @@ declare module "factorio:runtime" {
1757
1765
  }
1758
1766
  /**
1759
1767
  * Called when value of {@link LuaSurface#daytime LuaSurface::daytime} wraps around to be in `[0, 1)` range.
1760
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_next_day_started Online documentation}
1768
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_next_day_started Online documentation}
1761
1769
  */
1762
1770
  interface OnNextDayStartedEvent extends EventData {
1763
1771
  readonly surface: LuaSurface
@@ -1774,7 +1782,7 @@ declare module "factorio:runtime" {
1774
1782
  * Called after an object is destroyed which was registered with {@link LuaBootstrap#register_on_object_destroyed LuaBootstrap::register_on_object_destroyed} previously.
1775
1783
  *
1776
1784
  * Depending on when a given object is destroyed, this event will be fired at the end of the current tick or at the end of the next tick. The event's timing is independent of the in-world object being destroyed.
1777
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_object_destroyed Online documentation}
1785
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_object_destroyed Online documentation}
1778
1786
  */
1779
1787
  interface OnObjectDestroyedEvent extends EventData {
1780
1788
  /**
@@ -1800,7 +1808,7 @@ declare module "factorio:runtime" {
1800
1808
  }
1801
1809
  /**
1802
1810
  * Called directly after a permission group is added.
1803
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_permission_group_added Online documentation}
1811
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_permission_group_added Online documentation}
1804
1812
  */
1805
1813
  interface OnPermissionGroupAddedEvent extends EventData {
1806
1814
  /**
@@ -1822,7 +1830,7 @@ declare module "factorio:runtime" {
1822
1830
  }
1823
1831
  /**
1824
1832
  * Called directly after a permission group is deleted.
1825
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_permission_group_deleted Online documentation}
1833
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_permission_group_deleted Online documentation}
1826
1834
  */
1827
1835
  interface OnPermissionGroupDeletedEvent extends EventData {
1828
1836
  /**
@@ -1848,7 +1856,7 @@ declare module "factorio:runtime" {
1848
1856
  }
1849
1857
  /**
1850
1858
  * Called directly after a permission group is edited in some way.
1851
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_permission_group_edited Online documentation}
1859
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_permission_group_edited Online documentation}
1852
1860
  */
1853
1861
  interface OnPermissionGroupEditedEvent extends EventData {
1854
1862
  /**
@@ -1891,7 +1899,7 @@ declare module "factorio:runtime" {
1891
1899
  }
1892
1900
  /**
1893
1901
  * Called directly after a permission string is imported.
1894
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_permission_string_imported Online documentation}
1902
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_permission_string_imported Online documentation}
1895
1903
  */
1896
1904
  interface OnPermissionStringImportedEvent extends EventData {
1897
1905
  /**
@@ -1909,7 +1917,7 @@ declare module "factorio:runtime" {
1909
1917
  }
1910
1918
  /**
1911
1919
  * Called when a player picks up an item.
1912
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_picked_up_item Online documentation}
1920
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_picked_up_item Online documentation}
1913
1921
  */
1914
1922
  interface OnPickedUpItemEvent extends EventData {
1915
1923
  readonly item_stack: ItemWithQualityCount
@@ -1925,7 +1933,7 @@ declare module "factorio:runtime" {
1925
1933
  }
1926
1934
  /**
1927
1935
  * Called after a player alt-reverse-selects an area with a selection-tool item.
1928
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_alt_reverse_selected_area Online documentation}
1936
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_alt_reverse_selected_area Online documentation}
1929
1937
  */
1930
1938
  interface OnPlayerAltReverseSelectedAreaEvent extends EventData {
1931
1939
  /**
@@ -1972,7 +1980,7 @@ declare module "factorio:runtime" {
1972
1980
  }
1973
1981
  /**
1974
1982
  * Called after a player alt-selects an area with a selection-tool item.
1975
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_alt_selected_area Online documentation}
1983
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_alt_selected_area Online documentation}
1976
1984
  */
1977
1985
  interface OnPlayerAltSelectedAreaEvent extends EventData {
1978
1986
  /**
@@ -2023,7 +2031,7 @@ declare module "factorio:runtime" {
2023
2031
  }
2024
2032
  /**
2025
2033
  * Called after a players ammo inventory changed in some way.
2026
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_ammo_inventory_changed Online documentation}
2034
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_ammo_inventory_changed Online documentation}
2027
2035
  */
2028
2036
  interface OnPlayerAmmoInventoryChangedEvent extends EventData {
2029
2037
  readonly player_index: PlayerIndex
@@ -2038,7 +2046,7 @@ declare module "factorio:runtime" {
2038
2046
  }
2039
2047
  /**
2040
2048
  * Called after a players armor inventory changed in some way.
2041
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_armor_inventory_changed Online documentation}
2049
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_armor_inventory_changed Online documentation}
2042
2050
  */
2043
2051
  interface OnPlayerArmorInventoryChangedEvent extends EventData {
2044
2052
  readonly player_index: PlayerIndex
@@ -2053,7 +2061,7 @@ declare module "factorio:runtime" {
2053
2061
  }
2054
2062
  /**
2055
2063
  * Called when a player is banned.
2056
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_banned Online documentation}
2064
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_banned Online documentation}
2057
2065
  */
2058
2066
  interface OnPlayerBannedEvent extends EventData {
2059
2067
  /**
@@ -2083,7 +2091,7 @@ declare module "factorio:runtime" {
2083
2091
  }
2084
2092
  /**
2085
2093
  * Called after a player builds tiles.
2086
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_built_tile Online documentation}
2094
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_built_tile Online documentation}
2087
2095
  */
2088
2096
  interface OnPlayerBuiltTileEvent extends EventData {
2089
2097
  readonly player_index: PlayerIndex
@@ -2124,7 +2132,7 @@ declare module "factorio:runtime" {
2124
2132
  * Called after a player cancels their attempt to select an area with a selection-tool item that has {@link import("factorio:prototype").SelectionToolPrototype#send_pre_selection_events SelectionToolPrototype::send_pre_selection_events} set to `true`.
2125
2133
  *
2126
2134
  * Because a player's selection state exists solely on their local client and not in game state, this event and the other area preselection events are provided with "best effort", but are not guaranteed. In some situations, such as after loading an existing save or in a multiplayer game, preselection events may not be received in an order that makes sense for the current game state or may be dropped altogether.
2127
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_cancel_selected_area Online documentation}
2135
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_cancel_selected_area Online documentation}
2128
2136
  */
2129
2137
  interface OnPlayerCancelSelectedAreaEvent extends EventData {
2130
2138
  /**
@@ -2175,7 +2183,7 @@ declare module "factorio:runtime" {
2175
2183
  }
2176
2184
  /**
2177
2185
  * Called when a player cancels crafting.
2178
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_cancelled_crafting Online documentation}
2186
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_cancelled_crafting Online documentation}
2179
2187
  */
2180
2188
  interface OnPlayerCancelledCraftingEvent extends EventData {
2181
2189
  /**
@@ -2207,7 +2215,7 @@ declare module "factorio:runtime" {
2207
2215
  * Called after a player changes the selection area or selection type with a selection-tool item that has {@link import("factorio:prototype").SelectionToolPrototype#send_pre_selection_events SelectionToolPrototype::send_pre_selection_events} set to `true`.
2208
2216
  *
2209
2217
  * Because a player's selection state exists solely on their local client and not in game state, this event and the other area preselection events are provided with "best effort", but are not guaranteed. In some situations, such as after loading an existing save or in a multiplayer game, preselection events may not be received in an order that makes sense for the current game state or may be dropped altogether.
2210
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_change_selected_area Online documentation}
2218
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_change_selected_area Online documentation}
2211
2219
  */
2212
2220
  interface OnPlayerChangeSelectedAreaEvent extends EventData {
2213
2221
  /**
@@ -2258,7 +2266,7 @@ declare module "factorio:runtime" {
2258
2266
  }
2259
2267
  /**
2260
2268
  * Called after a player changes forces.
2261
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_changed_force Online documentation}
2269
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_changed_force Online documentation}
2262
2270
  */
2263
2271
  interface OnPlayerChangedForceEvent extends EventData {
2264
2272
  /**
@@ -2280,7 +2288,7 @@ declare module "factorio:runtime" {
2280
2288
  }
2281
2289
  /**
2282
2290
  * Called when the tile position a player is located at changes.
2283
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_changed_position Online documentation}
2291
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_changed_position Online documentation}
2284
2292
  */
2285
2293
  interface OnPlayerChangedPositionEvent extends EventData {
2286
2294
  /**
@@ -2298,7 +2306,7 @@ declare module "factorio:runtime" {
2298
2306
  }
2299
2307
  /**
2300
2308
  * Called after a player changes surfaces.
2301
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_changed_surface Online documentation}
2309
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_changed_surface Online documentation}
2302
2310
  */
2303
2311
  interface OnPlayerChangedSurfaceEvent extends EventData {
2304
2312
  /**
@@ -2320,7 +2328,7 @@ declare module "factorio:runtime" {
2320
2328
  }
2321
2329
  /**
2322
2330
  * Called when cheat mode is disabled on a player.
2323
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_cheat_mode_disabled Online documentation}
2331
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_cheat_mode_disabled Online documentation}
2324
2332
  */
2325
2333
  interface OnPlayerCheatModeDisabledEvent extends EventData {
2326
2334
  /**
@@ -2338,7 +2346,7 @@ declare module "factorio:runtime" {
2338
2346
  }
2339
2347
  /**
2340
2348
  * Called when cheat mode is enabled on a player.
2341
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_cheat_mode_enabled Online documentation}
2349
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_cheat_mode_enabled Online documentation}
2342
2350
  */
2343
2351
  interface OnPlayerCheatModeEnabledEvent extends EventData {
2344
2352
  /**
@@ -2356,7 +2364,7 @@ declare module "factorio:runtime" {
2356
2364
  }
2357
2365
  /**
2358
2366
  * Called when a player clicks a gps tag
2359
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_clicked_gps_tag Online documentation}
2367
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_clicked_gps_tag Online documentation}
2360
2368
  */
2361
2369
  interface OnPlayerClickedGpsTagEvent extends EventData {
2362
2370
  /**
@@ -2382,7 +2390,7 @@ declare module "factorio:runtime" {
2382
2390
  }
2383
2391
  /**
2384
2392
  * Called after a player's color changes.
2385
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_color_changed Online documentation}
2393
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_color_changed Online documentation}
2386
2394
  */
2387
2395
  interface OnPlayerColorChangedEvent extends EventData {
2388
2396
  /**
@@ -2412,7 +2420,7 @@ declare module "factorio:runtime" {
2412
2420
  }
2413
2421
  /**
2414
2422
  * Called when a player clicks the "confirm" button in the configure Blueprint GUI.
2415
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_configured_blueprint Online documentation}
2423
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_configured_blueprint Online documentation}
2416
2424
  */
2417
2425
  interface OnPlayerConfiguredBlueprintEvent extends EventData {
2418
2426
  /**
@@ -2430,7 +2438,7 @@ declare module "factorio:runtime" {
2430
2438
  }
2431
2439
  /**
2432
2440
  * Called after a player changes controller types.
2433
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_controller_changed Online documentation}
2441
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_controller_changed Online documentation}
2434
2442
  */
2435
2443
  interface OnPlayerControllerChangedEvent extends EventData {
2436
2444
  /**
@@ -2452,7 +2460,7 @@ declare module "factorio:runtime" {
2452
2460
  }
2453
2461
  /**
2454
2462
  * Called when the player finishes crafting an item. This event fires just before the results are inserted into the player's inventory, not when the crafting is queued (see {@link OnPrePlayerCraftedItemEvent on_pre_player_crafted_item}).
2455
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_crafted_item Online documentation}
2463
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_crafted_item Online documentation}
2456
2464
  */
2457
2465
  interface OnPlayerCraftedItemEvent extends EventData {
2458
2466
  /**
@@ -2478,7 +2486,7 @@ declare module "factorio:runtime" {
2478
2486
  }
2479
2487
  /**
2480
2488
  * Called after the player was created.
2481
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_created Online documentation}
2489
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_created Online documentation}
2482
2490
  */
2483
2491
  interface OnPlayerCreatedEvent extends EventData {
2484
2492
  readonly player_index: PlayerIndex
@@ -2495,7 +2503,7 @@ declare module "factorio:runtime" {
2495
2503
  * Called after a player's {@link LuaControl#cursor_stack cursor stack} changed in some way.
2496
2504
  *
2497
2505
  * This is fired in the same tick that the change happens, but not instantly.
2498
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_cursor_stack_changed Online documentation}
2506
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_cursor_stack_changed Online documentation}
2499
2507
  */
2500
2508
  interface OnPlayerCursorStackChangedEvent extends EventData {
2501
2509
  readonly player_index: PlayerIndex
@@ -2510,7 +2518,7 @@ declare module "factorio:runtime" {
2510
2518
  }
2511
2519
  /**
2512
2520
  * Called when a player selects an area with a deconstruction planner.
2513
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_deconstructed_area Online documentation}
2521
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_deconstructed_area Online documentation}
2514
2522
  */
2515
2523
  interface OnPlayerDeconstructedAreaEvent extends EventData {
2516
2524
  /**
@@ -2565,7 +2573,7 @@ declare module "factorio:runtime" {
2565
2573
  }
2566
2574
  /**
2567
2575
  * Called when a player is demoted.
2568
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_demoted Online documentation}
2576
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_demoted Online documentation}
2569
2577
  */
2570
2578
  interface OnPlayerDemotedEvent extends EventData {
2571
2579
  /**
@@ -2583,7 +2591,7 @@ declare module "factorio:runtime" {
2583
2591
  }
2584
2592
  /**
2585
2593
  * Called after a player dies.
2586
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_died Online documentation}
2594
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_died Online documentation}
2587
2595
  */
2588
2596
  interface OnPlayerDiedEvent extends EventData {
2589
2597
  readonly player_index: PlayerIndex
@@ -2599,7 +2607,7 @@ declare module "factorio:runtime" {
2599
2607
  }
2600
2608
  /**
2601
2609
  * Called when the display density scale changes for a given player. The display density scale is the scale value automatically applied based on the player's display DPI. This is only relevant on platforms that support high-density displays.
2602
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_display_density_scale_changed Online documentation}
2610
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_display_density_scale_changed Online documentation}
2603
2611
  */
2604
2612
  interface OnPlayerDisplayDensityScaleChangedEvent extends EventData {
2605
2613
  /**
@@ -2621,7 +2629,7 @@ declare module "factorio:runtime" {
2621
2629
  }
2622
2630
  /**
2623
2631
  * Called when the display resolution changes for a given player.
2624
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_display_resolution_changed Online documentation}
2632
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_display_resolution_changed Online documentation}
2625
2633
  */
2626
2634
  interface OnPlayerDisplayResolutionChangedEvent extends EventData {
2627
2635
  /**
@@ -2643,7 +2651,7 @@ declare module "factorio:runtime" {
2643
2651
  }
2644
2652
  /**
2645
2653
  * Called when the display scale changes for a given player.
2646
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_display_scale_changed Online documentation}
2654
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_display_scale_changed Online documentation}
2647
2655
  */
2648
2656
  interface OnPlayerDisplayScaleChangedEvent extends EventData {
2649
2657
  /**
@@ -2667,7 +2675,7 @@ declare module "factorio:runtime" {
2667
2675
  * Called when the player's driving state has changed, meaning a player has either entered or left a vehicle.
2668
2676
  *
2669
2677
  * This event is not raised when the player is ejected from a vehicle due to it being destroyed.
2670
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_driving_changed_state Online documentation}
2678
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_driving_changed_state Online documentation}
2671
2679
  */
2672
2680
  interface OnPlayerDrivingChangedStateEvent extends EventData {
2673
2681
  readonly player_index: PlayerIndex
@@ -2686,7 +2694,7 @@ declare module "factorio:runtime" {
2686
2694
  }
2687
2695
  /**
2688
2696
  * Called when a player drops an item on the ground.
2689
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_dropped_item Online documentation}
2697
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_dropped_item Online documentation}
2690
2698
  */
2691
2699
  interface OnPlayerDroppedItemEvent extends EventData {
2692
2700
  readonly player_index: PlayerIndex
@@ -2705,7 +2713,7 @@ declare module "factorio:runtime" {
2705
2713
  }
2706
2714
  /**
2707
2715
  * Called when a player drops a single item into an entity.
2708
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_dropped_item_into_entity Online documentation}
2716
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_dropped_item_into_entity Online documentation}
2709
2717
  */
2710
2718
  interface OnPlayerDroppedItemIntoEntityEvent extends EventData {
2711
2719
  readonly player_index: PlayerIndex
@@ -2724,7 +2732,7 @@ declare module "factorio:runtime" {
2724
2732
  }
2725
2733
  /**
2726
2734
  * Called when a player fast-transfers something to or from an entity.
2727
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_fast_transferred Online documentation}
2735
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_fast_transferred Online documentation}
2728
2736
  */
2729
2737
  interface OnPlayerFastTransferredEvent extends EventData {
2730
2738
  /**
@@ -2756,7 +2764,7 @@ declare module "factorio:runtime" {
2756
2764
  * Called when the player flips an entity. This event is only fired when the entity actually changes its orientation or mirroring, so it won't be triggered when pressing the flip keys on an entity that can't be flipped.
2757
2765
  *
2758
2766
  * This event reflects a change in the {@link LuaEntity#mirroring LuaEntity::mirroring} property.
2759
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_flipped_entity Online documentation}
2767
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_flipped_entity Online documentation}
2760
2768
  */
2761
2769
  interface OnPlayerFlippedEntityEvent extends EventData {
2762
2770
  /**
@@ -2779,7 +2787,7 @@ declare module "factorio:runtime" {
2779
2787
  }
2780
2788
  /**
2781
2789
  * Called after player flushed fluid
2782
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_flushed_fluid Online documentation}
2790
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_flushed_fluid Online documentation}
2783
2791
  */
2784
2792
  interface OnPlayerFlushedFluidEvent extends EventData {
2785
2793
  /**
@@ -2813,7 +2821,7 @@ declare module "factorio:runtime" {
2813
2821
  }
2814
2822
  /**
2815
2823
  * Called after a players gun inventory changed in some way.
2816
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_gun_inventory_changed Online documentation}
2824
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_gun_inventory_changed Online documentation}
2817
2825
  */
2818
2826
  interface OnPlayerGunInventoryChangedEvent extends EventData {
2819
2827
  readonly player_index: PlayerIndex
@@ -2828,7 +2836,7 @@ declare module "factorio:runtime" {
2828
2836
  }
2829
2837
  /**
2830
2838
  * Called when a player's input method changes. See {@link LuaPlayer#input_method LuaPlayer::input_method}.
2831
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_input_method_changed Online documentation}
2839
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_input_method_changed Online documentation}
2832
2840
  */
2833
2841
  interface OnPlayerInputMethodChangedEvent extends EventData {
2834
2842
  /**
@@ -2846,7 +2854,7 @@ declare module "factorio:runtime" {
2846
2854
  }
2847
2855
  /**
2848
2856
  * Called after a player joins the game. This is not called when loading a save file in singleplayer, as the player doesn't actually leave the game, and the save is just on pause until they rejoin.
2849
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_joined_game Online documentation}
2857
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_joined_game Online documentation}
2850
2858
  */
2851
2859
  interface OnPlayerJoinedGameEvent extends EventData {
2852
2860
  readonly player_index: PlayerIndex
@@ -2861,7 +2869,7 @@ declare module "factorio:runtime" {
2861
2869
  }
2862
2870
  /**
2863
2871
  * Called when a player is kicked.
2864
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_kicked Online documentation}
2872
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_kicked Online documentation}
2865
2873
  */
2866
2874
  interface OnPlayerKickedEvent extends EventData {
2867
2875
  /**
@@ -2887,7 +2895,7 @@ declare module "factorio:runtime" {
2887
2895
  }
2888
2896
  /**
2889
2897
  * Called after a player leaves the game. This is not called when closing a save file in singleplayer, as the player doesn't actually leave the game, and the save is just on pause until they rejoin.
2890
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_left_game Online documentation}
2898
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_left_game Online documentation}
2891
2899
  */
2892
2900
  interface OnPlayerLeftGameEvent extends EventData {
2893
2901
  readonly player_index: PlayerIndex
@@ -2903,7 +2911,7 @@ declare module "factorio:runtime" {
2903
2911
  }
2904
2912
  /**
2905
2913
  * Called when a player's active locale changes. See {@link LuaPlayer#locale LuaPlayer::locale}.
2906
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_locale_changed Online documentation}
2914
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_locale_changed Online documentation}
2907
2915
  */
2908
2916
  interface OnPlayerLocaleChangedEvent extends EventData {
2909
2917
  /**
@@ -2925,7 +2933,7 @@ declare module "factorio:runtime" {
2925
2933
  }
2926
2934
  /**
2927
2935
  * Called after a players main inventory changed in some way.
2928
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_main_inventory_changed Online documentation}
2936
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_main_inventory_changed Online documentation}
2929
2937
  */
2930
2938
  interface OnPlayerMainInventoryChangedEvent extends EventData {
2931
2939
  readonly player_index: PlayerIndex
@@ -2946,7 +2954,7 @@ declare module "factorio:runtime" {
2946
2954
  * The buffer inventory is special in that it's only valid during this event and has a dynamic size expanding as more items are transferred into it.
2947
2955
  *
2948
2956
  * Event filter: [LuaPlayerMinedEntityEventFilter](LuaPlayerMinedEntityEventFilter]
2949
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_mined_entity Online documentation}
2957
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_mined_entity Online documentation}
2950
2958
  */
2951
2959
  interface OnPlayerMinedEntityEvent extends EventData {
2952
2960
  /**
@@ -2972,7 +2980,7 @@ declare module "factorio:runtime" {
2972
2980
  }
2973
2981
  /**
2974
2982
  * Called when the player mines something.
2975
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_mined_item Online documentation}
2983
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_mined_item Online documentation}
2976
2984
  */
2977
2985
  interface OnPlayerMinedItemEvent extends EventData {
2978
2986
  /**
@@ -2991,7 +2999,7 @@ declare module "factorio:runtime" {
2991
2999
  }
2992
3000
  /**
2993
3001
  * Called after a player mines tiles.
2994
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_mined_tile Online documentation}
3002
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_mined_tile Online documentation}
2995
3003
  */
2996
3004
  interface OnPlayerMinedTileEvent extends EventData {
2997
3005
  readonly player_index: PlayerIndex
@@ -3014,7 +3022,7 @@ declare module "factorio:runtime" {
3014
3022
  }
3015
3023
  /**
3016
3024
  * Called when a player's current music track (ambient sound) changes. This includes when the music track finishes playing.
3017
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_music_changed Online documentation}
3025
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_music_changed Online documentation}
3018
3026
  */
3019
3027
  interface OnPlayerMusicChangedEvent extends EventData {
3020
3028
  /**
@@ -3032,7 +3040,7 @@ declare module "factorio:runtime" {
3032
3040
  }
3033
3041
  /**
3034
3042
  * Called when a player is muted.
3035
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_muted Online documentation}
3043
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_muted Online documentation}
3036
3044
  */
3037
3045
  interface OnPlayerMutedEvent extends EventData {
3038
3046
  /**
@@ -3050,7 +3058,7 @@ declare module "factorio:runtime" {
3050
3058
  }
3051
3059
  /**
3052
3060
  * Called when a player invokes the "smart pipette" over an entity.
3053
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_pipette Online documentation}
3061
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_pipette Online documentation}
3054
3062
  */
3055
3063
  interface OnPlayerPipetteEvent extends EventData {
3056
3064
  /**
@@ -3080,7 +3088,7 @@ declare module "factorio:runtime" {
3080
3088
  }
3081
3089
  /**
3082
3090
  * Called after the player puts equipment in an equipment grid
3083
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_placed_equipment Online documentation}
3091
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_placed_equipment Online documentation}
3084
3092
  */
3085
3093
  interface OnPlayerPlacedEquipmentEvent extends EventData {
3086
3094
  readonly player_index: PlayerIndex
@@ -3103,7 +3111,7 @@ declare module "factorio:runtime" {
3103
3111
  }
3104
3112
  /**
3105
3113
  * Called when a player is promoted.
3106
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_promoted Online documentation}
3114
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_promoted Online documentation}
3107
3115
  */
3108
3116
  interface OnPlayerPromotedEvent extends EventData {
3109
3117
  /**
@@ -3121,7 +3129,7 @@ declare module "factorio:runtime" {
3121
3129
  }
3122
3130
  /**
3123
3131
  * Called when a player is removed (deleted) from the game. This is markedly different from a player temporarily {@link OnPlayerLeftGameEvent leaving} the game, and instead behaves like the player never existed in the save file.
3124
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_removed Online documentation}
3132
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_removed Online documentation}
3125
3133
  */
3126
3134
  interface OnPlayerRemovedEvent extends EventData {
3127
3135
  /**
@@ -3139,7 +3147,7 @@ declare module "factorio:runtime" {
3139
3147
  }
3140
3148
  /**
3141
3149
  * Called after the player removes equipment from an equipment grid
3142
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_removed_equipment Online documentation}
3150
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_removed_equipment Online documentation}
3143
3151
  */
3144
3152
  interface OnPlayerRemovedEquipmentEvent extends EventData {
3145
3153
  readonly player_index: PlayerIndex
@@ -3172,7 +3180,7 @@ declare module "factorio:runtime" {
3172
3180
  * Called when a player repairs an entity.
3173
3181
  *
3174
3182
  * Event filter: [LuaPlayerRepairedEntityEventFilter](LuaPlayerRepairedEntityEventFilter]
3175
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_repaired_entity Online documentation}
3183
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_repaired_entity Online documentation}
3176
3184
  */
3177
3185
  interface OnPlayerRepairedEntityEvent extends EventData {
3178
3186
  readonly player_index: PlayerIndex
@@ -3188,7 +3196,7 @@ declare module "factorio:runtime" {
3188
3196
  }
3189
3197
  /**
3190
3198
  * Called after a player respawns.
3191
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_respawned Online documentation}
3199
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_respawned Online documentation}
3192
3200
  */
3193
3201
  interface OnPlayerRespawnedEvent extends EventData {
3194
3202
  readonly player_index: PlayerIndex
@@ -3203,7 +3211,7 @@ declare module "factorio:runtime" {
3203
3211
  }
3204
3212
  /**
3205
3213
  * Called after a player reverse-selects an area with a selection-tool item.
3206
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_reverse_selected_area Online documentation}
3214
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_reverse_selected_area Online documentation}
3207
3215
  */
3208
3216
  interface OnPlayerReverseSelectedAreaEvent extends EventData {
3209
3217
  /**
@@ -3252,7 +3260,7 @@ declare module "factorio:runtime" {
3252
3260
  * Called when the player rotates an entity. This event is only fired when the entity actually changes its orientation -- pressing the rotate key on an entity that can't be rotated won't fire this event.
3253
3261
  *
3254
3262
  * Entities being flipped will not fire this event, even if the flip involves rotating. See {@link OnPlayerFlippedEntityEvent on_player_flipped_entity}.
3255
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_rotated_entity Online documentation}
3263
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_rotated_entity Online documentation}
3256
3264
  */
3257
3265
  interface OnPlayerRotatedEntityEvent extends EventData {
3258
3266
  /**
@@ -3276,7 +3284,7 @@ declare module "factorio:runtime" {
3276
3284
  }
3277
3285
  /**
3278
3286
  * Called after a player selects an area with a selection-tool item.
3279
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_selected_area Online documentation}
3287
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_selected_area Online documentation}
3280
3288
  */
3281
3289
  interface OnPlayerSelectedAreaEvent extends EventData {
3282
3290
  /**
@@ -3327,7 +3335,7 @@ declare module "factorio:runtime" {
3327
3335
  }
3328
3336
  /**
3329
3337
  * Called when a player sets a quickbar slot to anything (new value, or set to empty).
3330
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_set_quick_bar_slot Online documentation}
3338
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_set_quick_bar_slot Online documentation}
3331
3339
  */
3332
3340
  interface OnPlayerSetQuickBarSlotEvent extends EventData {
3333
3341
  readonly player_index: PlayerIndex
@@ -3342,7 +3350,7 @@ declare module "factorio:runtime" {
3342
3350
  }
3343
3351
  /**
3344
3352
  * Called when a player selects an area with a blueprint.
3345
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_setup_blueprint Online documentation}
3353
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_setup_blueprint Online documentation}
3346
3354
  */
3347
3355
  interface OnPlayerSetupBlueprintEvent extends EventData {
3348
3356
  /**
@@ -3402,7 +3410,7 @@ declare module "factorio:runtime" {
3402
3410
  * Called after a player starts to select an area with a selection-tool item that has {@link import("factorio:prototype").SelectionToolPrototype#send_pre_selection_events SelectionToolPrototype::send_pre_selection_events} set to `true`.
3403
3411
  *
3404
3412
  * Because a player's selection state exists solely on their local client and not in game state, this event and the other area preselection events are provided with "best effort", but are not guaranteed. In some situations, such as after loading an existing save or in a multiplayer game, preselection events may not be received in an order that makes sense for the current game state or may be dropped altogether.
3405
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_start_selected_area Online documentation}
3413
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_start_selected_area Online documentation}
3406
3414
  */
3407
3415
  interface OnPlayerStartSelectedAreaEvent extends EventData {
3408
3416
  /**
@@ -3453,7 +3461,7 @@ declare module "factorio:runtime" {
3453
3461
  }
3454
3462
  /**
3455
3463
  * Called after a player super-forced-selects an area with a selection-tool item.
3456
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_super_forced_selected_area Online documentation}
3464
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_super_forced_selected_area Online documentation}
3457
3465
  */
3458
3466
  interface OnPlayerSuperForcedSelectedAreaEvent extends EventData {
3459
3467
  /**
@@ -3504,7 +3512,7 @@ declare module "factorio:runtime" {
3504
3512
  }
3505
3513
  /**
3506
3514
  * Called when a player toggles alt mode, also known as "show entity info".
3507
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_toggled_alt_mode Online documentation}
3515
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_toggled_alt_mode Online documentation}
3508
3516
  */
3509
3517
  interface OnPlayerToggledAltModeEvent extends EventData {
3510
3518
  readonly player_index: PlayerIndex
@@ -3523,7 +3531,7 @@ declare module "factorio:runtime" {
3523
3531
  }
3524
3532
  /**
3525
3533
  * Called when a player toggles the map editor on or off.
3526
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_toggled_map_editor Online documentation}
3534
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_toggled_map_editor Online documentation}
3527
3535
  */
3528
3536
  interface OnPlayerToggledMapEditorEvent extends EventData {
3529
3537
  readonly player_index: PlayerIndex
@@ -3538,7 +3546,7 @@ declare module "factorio:runtime" {
3538
3546
  }
3539
3547
  /**
3540
3548
  * Called after a players trash inventory changed in some way.
3541
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_trash_inventory_changed Online documentation}
3549
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_trash_inventory_changed Online documentation}
3542
3550
  */
3543
3551
  interface OnPlayerTrashInventoryChangedEvent extends EventData {
3544
3552
  readonly player_index: PlayerIndex
@@ -3553,7 +3561,7 @@ declare module "factorio:runtime" {
3553
3561
  }
3554
3562
  /**
3555
3563
  * Called when a player is un-banned.
3556
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_unbanned Online documentation}
3564
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_unbanned Online documentation}
3557
3565
  */
3558
3566
  interface OnPlayerUnbannedEvent extends EventData {
3559
3567
  /**
@@ -3583,7 +3591,7 @@ declare module "factorio:runtime" {
3583
3591
  }
3584
3592
  /**
3585
3593
  * Called when a player is unmuted.
3586
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_unmuted Online documentation}
3594
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_unmuted Online documentation}
3587
3595
  */
3588
3596
  interface OnPlayerUnmutedEvent extends EventData {
3589
3597
  /**
@@ -3601,7 +3609,7 @@ declare module "factorio:runtime" {
3601
3609
  }
3602
3610
  /**
3603
3611
  * Called when a player uses a capsule that results in some game action.
3604
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_used_capsule Online documentation}
3612
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_used_capsule Online documentation}
3605
3613
  */
3606
3614
  interface OnPlayerUsedCapsuleEvent extends EventData {
3607
3615
  /**
@@ -3631,7 +3639,7 @@ declare module "factorio:runtime" {
3631
3639
  }
3632
3640
  /**
3633
3641
  * Called when a player uses spidertron remote to send all selected units to a given position
3634
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_player_used_spidertron_remote Online documentation}
3642
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_player_used_spidertron_remote Online documentation}
3635
3643
  */
3636
3644
  interface OnPlayerUsedSpidertronRemoteEvent extends EventData {
3637
3645
  /**
@@ -3655,7 +3663,7 @@ declare module "factorio:runtime" {
3655
3663
  * Called after an entity dies.
3656
3664
  *
3657
3665
  * Event filter: [LuaPostEntityDiedEventFilter](LuaPostEntityDiedEventFilter]
3658
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_post_entity_died Online documentation}
3666
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_post_entity_died Online documentation}
3659
3667
  */
3660
3668
  interface OnPostEntityDiedEvent extends EventData {
3661
3669
  /**
@@ -3707,7 +3715,7 @@ declare module "factorio:runtime" {
3707
3715
  * Called after a segmented unit dies.
3708
3716
  *
3709
3717
  * Event filter: [LuaPostSegmentedUnitDiedEventFilter](LuaPostSegmentedUnitDiedEventFilter]
3710
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_post_segmented_unit_died Online documentation}
3718
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_post_segmented_unit_died Online documentation}
3711
3719
  */
3712
3720
  interface OnPostSegmentedUnitDiedEvent extends EventData {
3713
3721
  /**
@@ -3749,7 +3757,7 @@ declare module "factorio:runtime" {
3749
3757
  }
3750
3758
  /**
3751
3759
  * Called when players uses an item to build something. Called before {@link OnBuiltEntityEvent on_built_entity}.
3752
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_build Online documentation}
3760
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_build Online documentation}
3753
3761
  */
3754
3762
  interface OnPreBuildEvent extends EventData {
3755
3763
  /**
@@ -3795,7 +3803,7 @@ declare module "factorio:runtime" {
3795
3803
  }
3796
3804
  /**
3797
3805
  * Called before one or more chunks are deleted using {@link LuaSurface#delete_chunk LuaSurface::delete_chunk}.
3798
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_chunk_deleted Online documentation}
3806
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_chunk_deleted Online documentation}
3799
3807
  */
3800
3808
  interface OnPreChunkDeletedEvent extends EventData {
3801
3809
  readonly surface_index: SurfaceIndex
@@ -3814,7 +3822,7 @@ declare module "factorio:runtime" {
3814
3822
  }
3815
3823
  /**
3816
3824
  * Called before entity copy-paste is done.
3817
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_entity_settings_pasted Online documentation}
3825
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_entity_settings_pasted Online documentation}
3818
3826
  */
3819
3827
  interface OnPreEntitySettingsPastedEvent extends EventData {
3820
3828
  readonly player_index: PlayerIndex
@@ -3841,7 +3849,7 @@ declare module "factorio:runtime" {
3841
3849
  * Also called for item request proxies before they are destroyed as a result of being marked for deconstruction.
3842
3850
  *
3843
3851
  * Event filter: [LuaPreGhostDeconstructedEventFilter](LuaPreGhostDeconstructedEventFilter]
3844
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_ghost_deconstructed Online documentation}
3852
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_ghost_deconstructed Online documentation}
3845
3853
  */
3846
3854
  interface OnPreGhostDeconstructedEvent extends EventData {
3847
3855
  /**
@@ -3862,7 +3870,7 @@ declare module "factorio:runtime" {
3862
3870
  * Called before a ghost entity is upgraded.
3863
3871
  *
3864
3872
  * Event filter: [LuaPreGhostUpgradedEventFilter](LuaPreGhostUpgradedEventFilter]
3865
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_ghost_upgraded Online documentation}
3873
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_ghost_upgraded Online documentation}
3866
3874
  */
3867
3875
  interface OnPreGhostUpgradedEvent extends EventData {
3868
3876
  /**
@@ -3883,7 +3891,7 @@ declare module "factorio:runtime" {
3883
3891
  }
3884
3892
  /**
3885
3893
  * Called directly before a permission group is deleted.
3886
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_permission_group_deleted Online documentation}
3894
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_permission_group_deleted Online documentation}
3887
3895
  */
3888
3896
  interface OnPrePermissionGroupDeletedEvent extends EventData {
3889
3897
  /**
@@ -3905,7 +3913,7 @@ declare module "factorio:runtime" {
3905
3913
  }
3906
3914
  /**
3907
3915
  * Called directly before a permission string is imported.
3908
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_permission_string_imported Online documentation}
3916
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_permission_string_imported Online documentation}
3909
3917
  */
3910
3918
  interface OnPrePermissionStringImportedEvent extends EventData {
3911
3919
  /**
@@ -3923,7 +3931,7 @@ declare module "factorio:runtime" {
3923
3931
  }
3924
3932
  /**
3925
3933
  * Called when a player queues something to be crafted.
3926
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_player_crafted_item Online documentation}
3934
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_player_crafted_item Online documentation}
3927
3935
  */
3928
3936
  interface OnPrePlayerCraftedItemEvent extends EventData {
3929
3937
  /**
@@ -3953,7 +3961,7 @@ declare module "factorio:runtime" {
3953
3961
  }
3954
3962
  /**
3955
3963
  * Called before a players dies.
3956
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_player_died Online documentation}
3964
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_player_died Online documentation}
3957
3965
  */
3958
3966
  interface OnPrePlayerDiedEvent extends EventData {
3959
3967
  readonly player_index: PlayerIndex
@@ -3969,7 +3977,7 @@ declare module "factorio:runtime" {
3969
3977
  }
3970
3978
  /**
3971
3979
  * Called before a player leaves the game.
3972
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_player_left_game Online documentation}
3980
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_player_left_game Online documentation}
3973
3981
  */
3974
3982
  interface OnPrePlayerLeftGameEvent extends EventData {
3975
3983
  readonly player_index: PlayerIndex
@@ -3987,7 +3995,7 @@ declare module "factorio:runtime" {
3987
3995
  * Called when the player completes a mining action, but before the entity is potentially removed from the map. This is called even if the entity does not end up being removed.
3988
3996
  *
3989
3997
  * Event filter: [LuaPrePlayerMinedEntityEventFilter](LuaPrePlayerMinedEntityEventFilter]
3990
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_player_mined_item Online documentation}
3998
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_player_mined_item Online documentation}
3991
3999
  */
3992
4000
  interface OnPrePlayerMinedItemEvent extends EventData {
3993
4001
  /**
@@ -4006,7 +4014,7 @@ declare module "factorio:runtime" {
4006
4014
  }
4007
4015
  /**
4008
4016
  * Called before a player is removed (deleted) from the game. This is markedly different from a player temporarily {@link OnPlayerLeftGameEvent leaving} the game, and instead behaves like the player never existed in the save file.
4009
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_player_removed Online documentation}
4017
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_player_removed Online documentation}
4010
4018
  */
4011
4019
  interface OnPrePlayerRemovedEvent extends EventData {
4012
4020
  /**
@@ -4024,7 +4032,7 @@ declare module "factorio:runtime" {
4024
4032
  }
4025
4033
  /**
4026
4034
  * Called before a player toggles the map editor on or off.
4027
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_player_toggled_map_editor Online documentation}
4035
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_player_toggled_map_editor Online documentation}
4028
4036
  */
4029
4037
  interface OnPrePlayerToggledMapEditorEvent extends EventData {
4030
4038
  readonly player_index: PlayerIndex
@@ -4039,7 +4047,7 @@ declare module "factorio:runtime" {
4039
4047
  }
4040
4048
  /**
4041
4049
  * Called directly before a robot explodes cliffs.
4042
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_robot_exploded_cliff Online documentation}
4050
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_robot_exploded_cliff Online documentation}
4043
4051
  */
4044
4052
  interface OnPreRobotExplodedCliffEvent extends EventData {
4045
4053
  readonly robot: LuaEntity
@@ -4063,7 +4071,7 @@ declare module "factorio:runtime" {
4063
4071
  }
4064
4072
  /**
4065
4073
  * Called just before the scenario finishes.
4066
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_scenario_finished Online documentation}
4074
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_scenario_finished Online documentation}
4067
4075
  */
4068
4076
  interface OnPreScenarioFinishedEvent extends EventData {
4069
4077
  /**
@@ -4081,7 +4089,7 @@ declare module "factorio:runtime" {
4081
4089
  }
4082
4090
  /**
4083
4091
  * Called just before a script inventory is resized.
4084
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_script_inventory_resized Online documentation}
4092
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_script_inventory_resized Online documentation}
4085
4093
  */
4086
4094
  interface OnPreScriptInventoryResizedEvent extends EventData {
4087
4095
  /**
@@ -4112,7 +4120,7 @@ declare module "factorio:runtime" {
4112
4120
  }
4113
4121
  /**
4114
4122
  * Called just before a surface is cleared (all entities removed and all chunks deleted).
4115
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_surface_cleared Online documentation}
4123
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_surface_cleared Online documentation}
4116
4124
  */
4117
4125
  interface OnPreSurfaceClearedEvent extends EventData {
4118
4126
  readonly surface_index: SurfaceIndex
@@ -4127,7 +4135,7 @@ declare module "factorio:runtime" {
4127
4135
  }
4128
4136
  /**
4129
4137
  * Called just before a surface is deleted.
4130
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_pre_surface_deleted Online documentation}
4138
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_pre_surface_deleted Online documentation}
4131
4139
  */
4132
4140
  interface OnPreSurfaceDeletedEvent extends EventData {
4133
4141
  readonly surface_index: SurfaceIndex
@@ -4142,7 +4150,7 @@ declare module "factorio:runtime" {
4142
4150
  }
4143
4151
  /**
4144
4152
  * Called when the player triggers "redo".
4145
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_redo_applied Online documentation}
4153
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_redo_applied Online documentation}
4146
4154
  */
4147
4155
  interface OnRedoAppliedEvent extends EventData {
4148
4156
  /**
@@ -4164,7 +4172,7 @@ declare module "factorio:runtime" {
4164
4172
  }
4165
4173
  /**
4166
4174
  * Called when research is cancelled.
4167
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_research_cancelled Online documentation}
4175
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_research_cancelled Online documentation}
4168
4176
  */
4169
4177
  interface OnResearchCancelledEvent extends EventData {
4170
4178
  /**
@@ -4190,7 +4198,7 @@ declare module "factorio:runtime" {
4190
4198
  }
4191
4199
  /**
4192
4200
  * Called when a research finishes.
4193
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_research_finished Online documentation}
4201
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_research_finished Online documentation}
4194
4202
  */
4195
4203
  interface OnResearchFinishedEvent extends EventData {
4196
4204
  /**
@@ -4212,7 +4220,7 @@ declare module "factorio:runtime" {
4212
4220
  }
4213
4221
  /**
4214
4222
  * Called when research is moved forwards or backwards in the research queue.
4215
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_research_moved Online documentation}
4223
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_research_moved Online documentation}
4216
4224
  */
4217
4225
  interface OnResearchMovedEvent extends EventData {
4218
4226
  /**
@@ -4234,7 +4242,7 @@ declare module "factorio:runtime" {
4234
4242
  }
4235
4243
  /**
4236
4244
  * Called when research is queued.
4237
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_research_queued Online documentation}
4245
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_research_queued Online documentation}
4238
4246
  */
4239
4247
  interface OnResearchQueuedEvent extends EventData {
4240
4248
  /**
@@ -4260,7 +4268,7 @@ declare module "factorio:runtime" {
4260
4268
  }
4261
4269
  /**
4262
4270
  * Called when a research is reversed (unresearched).
4263
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_research_reversed Online documentation}
4271
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_research_reversed Online documentation}
4264
4272
  */
4265
4273
  interface OnResearchReversedEvent extends EventData {
4266
4274
  /**
@@ -4282,7 +4290,7 @@ declare module "factorio:runtime" {
4282
4290
  }
4283
4291
  /**
4284
4292
  * Called when a technology research starts.
4285
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_research_started Online documentation}
4293
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_research_started Online documentation}
4286
4294
  */
4287
4295
  interface OnResearchStartedEvent extends EventData {
4288
4296
  /**
@@ -4301,7 +4309,7 @@ declare module "factorio:runtime" {
4301
4309
  }
4302
4310
  /**
4303
4311
  * Called when a resource entity reaches 0 or its minimum yield for infinite resources.
4304
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_resource_depleted Online documentation}
4312
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_resource_depleted Online documentation}
4305
4313
  */
4306
4314
  interface OnResourceDepletedEvent extends EventData {
4307
4315
  readonly entity: LuaEntity
@@ -4318,7 +4326,7 @@ declare module "factorio:runtime" {
4318
4326
  * Called when a construction robot builds an entity.
4319
4327
  *
4320
4328
  * Event filter: [LuaRobotBuiltEntityEventFilter](LuaRobotBuiltEntityEventFilter]
4321
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_robot_built_entity Online documentation}
4329
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_robot_built_entity Online documentation}
4322
4330
  */
4323
4331
  interface OnRobotBuiltEntityEvent extends EventData {
4324
4332
  /**
@@ -4348,7 +4356,7 @@ declare module "factorio:runtime" {
4348
4356
  }
4349
4357
  /**
4350
4358
  * Called after a robot builds tiles.
4351
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_robot_built_tile Online documentation}
4359
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_robot_built_tile Online documentation}
4352
4360
  */
4353
4361
  interface OnRobotBuiltTileEvent extends EventData {
4354
4362
  /**
@@ -4390,7 +4398,7 @@ declare module "factorio:runtime" {
4390
4398
  }
4391
4399
  /**
4392
4400
  * Called directly after a robot explodes cliffs.
4393
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_robot_exploded_cliff Online documentation}
4401
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_robot_exploded_cliff Online documentation}
4394
4402
  */
4395
4403
  interface OnRobotExplodedCliffEvent extends EventData {
4396
4404
  readonly robot: LuaEntity
@@ -4413,7 +4421,7 @@ declare module "factorio:runtime" {
4413
4421
  }
4414
4422
  /**
4415
4423
  * Called when a robot mines an entity.
4416
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_robot_mined Online documentation}
4424
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_robot_mined Online documentation}
4417
4425
  */
4418
4426
  interface OnRobotMinedEvent extends EventData {
4419
4427
  /**
@@ -4441,7 +4449,7 @@ declare module "factorio:runtime" {
4441
4449
  * The buffer inventory is special in that it's only valid during this event and has a dynamic size expanding as more items are transferred into it.
4442
4450
  *
4443
4451
  * Event filter: [LuaRobotMinedEntityEventFilter](LuaRobotMinedEntityEventFilter]
4444
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_robot_mined_entity Online documentation}
4452
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_robot_mined_entity Online documentation}
4445
4453
  */
4446
4454
  interface OnRobotMinedEntityEvent extends EventData {
4447
4455
  /**
@@ -4467,7 +4475,7 @@ declare module "factorio:runtime" {
4467
4475
  }
4468
4476
  /**
4469
4477
  * Called after a robot mines tiles.
4470
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_robot_mined_tile Online documentation}
4478
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_robot_mined_tile Online documentation}
4471
4479
  */
4472
4480
  interface OnRobotMinedTileEvent extends EventData {
4473
4481
  /**
@@ -4495,7 +4503,7 @@ declare module "factorio:runtime" {
4495
4503
  * Called before a robot mines an entity.
4496
4504
  *
4497
4505
  * Event filter: [LuaPreRobotMinedEntityEventFilter](LuaPreRobotMinedEntityEventFilter]
4498
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_robot_pre_mined Online documentation}
4506
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_robot_pre_mined Online documentation}
4499
4507
  */
4500
4508
  interface OnRobotPreMinedEvent extends EventData {
4501
4509
  /**
@@ -4517,7 +4525,7 @@ declare module "factorio:runtime" {
4517
4525
  }
4518
4526
  /**
4519
4527
  * Called when a rocket silo is ordered to be launched.
4520
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_rocket_launch_ordered Online documentation}
4528
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_rocket_launch_ordered Online documentation}
4521
4529
  */
4522
4530
  interface OnRocketLaunchOrderedEvent extends EventData {
4523
4531
  readonly rocket: LuaEntity
@@ -4537,7 +4545,7 @@ declare module "factorio:runtime" {
4537
4545
  }
4538
4546
  /**
4539
4547
  * Called when a rocket finishes ascending. (Triggers listening for finished rocket launch past 2.0 have been moved to 'on_cargo_pod_finished_ascending' as rocket and cargo pod are two separate entities)
4540
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_rocket_launched Online documentation}
4548
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_rocket_launched Online documentation}
4541
4549
  */
4542
4550
  interface OnRocketLaunchedEvent extends EventData {
4543
4551
  readonly rocket: LuaEntity
@@ -4553,7 +4561,7 @@ declare module "factorio:runtime" {
4553
4561
  }
4554
4562
  /**
4555
4563
  * Called when a runtime mod setting is changed by a player.
4556
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_runtime_mod_setting_changed Online documentation}
4564
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_runtime_mod_setting_changed Online documentation}
4557
4565
  */
4558
4566
  interface OnRuntimeModSettingChangedEvent extends EventData {
4559
4567
  /**
@@ -4576,7 +4584,7 @@ declare module "factorio:runtime" {
4576
4584
  }
4577
4585
  /**
4578
4586
  * Called just after a script inventory is resized.
4579
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_script_inventory_resized Online documentation}
4587
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_script_inventory_resized Online documentation}
4580
4588
  */
4581
4589
  interface OnScriptInventoryResizedEvent extends EventData {
4582
4590
  /**
@@ -4611,7 +4619,7 @@ declare module "factorio:runtime" {
4611
4619
  }
4612
4620
  /**
4613
4621
  * Called when a {@link LuaSurface#request_path LuaSurface::request_path} call completes.
4614
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_script_path_request_finished Online documentation}
4622
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_script_path_request_finished Online documentation}
4615
4623
  */
4616
4624
  interface OnScriptPathRequestFinishedEvent extends EventData {
4617
4625
  /**
@@ -4637,7 +4645,7 @@ declare module "factorio:runtime" {
4637
4645
  }
4638
4646
  /**
4639
4647
  * Called when a script trigger effect is triggered.
4640
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_script_trigger_effect Online documentation}
4648
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_script_trigger_effect Online documentation}
4641
4649
  */
4642
4650
  interface OnScriptTriggerEffectEvent extends EventData {
4643
4651
  /**
@@ -4670,7 +4678,7 @@ declare module "factorio:runtime" {
4670
4678
  * Called when an entity of type `radar` finishes scanning a sector.
4671
4679
  *
4672
4680
  * Event filter: [LuaSectorScannedEventFilter](LuaSectorScannedEventFilter]
4673
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_sector_scanned Online documentation}
4681
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_sector_scanned Online documentation}
4674
4682
  */
4675
4683
  interface OnSectorScannedEvent extends EventData {
4676
4684
  /**
@@ -4696,7 +4704,7 @@ declare module "factorio:runtime" {
4696
4704
  }
4697
4705
  /**
4698
4706
  * Called when an individual segment of a SegmentedUnit is created.
4699
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_segment_entity_created Online documentation}
4707
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_segment_entity_created Online documentation}
4700
4708
  */
4701
4709
  interface OnSegmentEntityCreatedEvent extends EventData {
4702
4710
  readonly entity: LuaEntity
@@ -4713,7 +4721,7 @@ declare module "factorio:runtime" {
4713
4721
  * Called when a segmented unit is created for any reason.
4714
4722
  *
4715
4723
  * Event filter: [LuaSegmentedUnitCreatedEventFilter](LuaSegmentedUnitCreatedEventFilter]
4716
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_segmented_unit_created Online documentation}
4724
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_segmented_unit_created Online documentation}
4717
4725
  */
4718
4726
  interface OnSegmentedUnitCreatedEvent extends EventData {
4719
4727
  /**
@@ -4741,7 +4749,7 @@ declare module "factorio:runtime" {
4741
4749
  * Called when a segmented unit is damaged. This is not called when a segmented unit's health is set directly by another mod.
4742
4750
  *
4743
4751
  * Event filter: [LuaSegmentedUnitDamagedEventFilter](LuaSegmentedUnitDamagedEventFilter]
4744
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_segmented_unit_damaged Online documentation}
4752
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_segmented_unit_damaged Online documentation}
4745
4753
  */
4746
4754
  interface OnSegmentedUnitDamagedEvent extends EventData {
4747
4755
  readonly segmented_unit: LuaSegmentedUnit
@@ -4783,7 +4791,7 @@ declare module "factorio:runtime" {
4783
4791
  * Called when a segmented unit dies.
4784
4792
  *
4785
4793
  * Event filter: [LuaSegmentedUnitDiedEventFilter](LuaSegmentedUnitDiedEventFilter]
4786
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_segmented_unit_died Online documentation}
4794
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_segmented_unit_died Online documentation}
4787
4795
  */
4788
4796
  interface OnSegmentedUnitDiedEvent extends EventData {
4789
4797
  /**
@@ -4813,7 +4821,7 @@ declare module "factorio:runtime" {
4813
4821
  }
4814
4822
  /**
4815
4823
  * Called after the selected entity changes for a given player.
4816
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_selected_entity_changed Online documentation}
4824
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_selected_entity_changed Online documentation}
4817
4825
  */
4818
4826
  interface OnSelectedEntityChangedEvent extends EventData {
4819
4827
  /**
@@ -4835,7 +4843,7 @@ declare module "factorio:runtime" {
4835
4843
  }
4836
4844
  /**
4837
4845
  * Called when {@link LuaGameScript#is_multiplayer LuaGameScript::is_multiplayer} changes to false. May also be raised when it was already false but a game was loaded from a save file without hosting.
4838
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_singleplayer_init Online documentation}
4846
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_singleplayer_init Online documentation}
4839
4847
  */
4840
4848
  interface OnSingleplayerInitEvent extends EventData {
4841
4849
  /**
@@ -4851,7 +4859,7 @@ declare module "factorio:runtime" {
4851
4859
  * Called when a space platform builds an entity.
4852
4860
  *
4853
4861
  * Event filter: [LuaPlatformBuiltEntityEventFilter](LuaPlatformBuiltEntityEventFilter]
4854
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_space_platform_built_entity Online documentation}
4862
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_space_platform_built_entity Online documentation}
4855
4863
  */
4856
4864
  interface OnSpacePlatformBuiltEntityEvent extends EventData {
4857
4865
  /**
@@ -4881,7 +4889,7 @@ declare module "factorio:runtime" {
4881
4889
  }
4882
4890
  /**
4883
4891
  * Called after a space platform builds tiles.
4884
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_space_platform_built_tile Online documentation}
4892
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_space_platform_built_tile Online documentation}
4885
4893
  */
4886
4894
  interface OnSpacePlatformBuiltTileEvent extends EventData {
4887
4895
  /**
@@ -4923,7 +4931,7 @@ declare module "factorio:runtime" {
4923
4931
  }
4924
4932
  /**
4925
4933
  * Called when a space platform changes state
4926
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_space_platform_changed_state Online documentation}
4934
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_space_platform_changed_state Online documentation}
4927
4935
  */
4928
4936
  interface OnSpacePlatformChangedStateEvent extends EventData {
4929
4937
  readonly platform: LuaSpacePlatform
@@ -4945,7 +4953,7 @@ declare module "factorio:runtime" {
4945
4953
  * The buffer inventory is special in that it's only valid during this event and has a dynamic size expanding as more items are transferred into it.
4946
4954
  *
4947
4955
  * Event filter: [LuaPlatformMinedEntityEventFilter](LuaPlatformMinedEntityEventFilter]
4948
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_space_platform_mined_entity Online documentation}
4956
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_space_platform_mined_entity Online documentation}
4949
4957
  */
4950
4958
  interface OnSpacePlatformMinedEntityEvent extends EventData {
4951
4959
  /**
@@ -4971,7 +4979,7 @@ declare module "factorio:runtime" {
4971
4979
  }
4972
4980
  /**
4973
4981
  * Called when a platform mines an entity.
4974
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_space_platform_mined_item Online documentation}
4982
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_space_platform_mined_item Online documentation}
4975
4983
  */
4976
4984
  interface OnSpacePlatformMinedItemEvent extends EventData {
4977
4985
  /**
@@ -4993,7 +5001,7 @@ declare module "factorio:runtime" {
4993
5001
  }
4994
5002
  /**
4995
5003
  * Called after a platform mines tiles.
4996
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_space_platform_mined_tile Online documentation}
5004
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_space_platform_mined_tile Online documentation}
4997
5005
  */
4998
5006
  interface OnSpacePlatformMinedTileEvent extends EventData {
4999
5007
  /**
@@ -5021,7 +5029,7 @@ declare module "factorio:runtime" {
5021
5029
  * Called before a platform mines an entity.
5022
5030
  *
5023
5031
  * Event filter: [LuaPrePlatformMinedEntityEventFilter](LuaPrePlatformMinedEntityEventFilter]
5024
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_space_platform_pre_mined Online documentation}
5032
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_space_platform_pre_mined Online documentation}
5025
5033
  */
5026
5034
  interface OnSpacePlatformPreMinedEvent extends EventData {
5027
5035
  /**
@@ -5043,7 +5051,7 @@ declare module "factorio:runtime" {
5043
5051
  }
5044
5052
  /**
5045
5053
  * Called when a spider finishes moving to its autopilot position.
5046
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_spider_command_completed Online documentation}
5054
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_spider_command_completed Online documentation}
5047
5055
  */
5048
5056
  interface OnSpiderCommandCompletedEvent extends EventData {
5049
5057
  /**
@@ -5061,7 +5069,7 @@ declare module "factorio:runtime" {
5061
5069
  }
5062
5070
  /**
5063
5071
  * Called when a translation request generated through {@link LuaPlayer#request_translation LuaPlayer::request_translation} or {@link LuaPlayer#request_translations LuaPlayer::request_translations} has been completed.
5064
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_string_translated Online documentation}
5072
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_string_translated Online documentation}
5065
5073
  */
5066
5074
  interface OnStringTranslatedEvent extends EventData {
5067
5075
  /**
@@ -5095,7 +5103,7 @@ declare module "factorio:runtime" {
5095
5103
  }
5096
5104
  /**
5097
5105
  * Called just after a surface is cleared (all entities removed and all chunks deleted).
5098
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_surface_cleared Online documentation}
5106
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_surface_cleared Online documentation}
5099
5107
  */
5100
5108
  interface OnSurfaceClearedEvent extends EventData {
5101
5109
  readonly surface_index: SurfaceIndex
@@ -5112,7 +5120,7 @@ declare module "factorio:runtime" {
5112
5120
  * Called when a surface is created.
5113
5121
  *
5114
5122
  * This is not called when the default surface is created as it will always exist.
5115
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_surface_created Online documentation}
5123
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_surface_created Online documentation}
5116
5124
  */
5117
5125
  interface OnSurfaceCreatedEvent extends EventData {
5118
5126
  readonly surface_index: SurfaceIndex
@@ -5127,7 +5135,7 @@ declare module "factorio:runtime" {
5127
5135
  }
5128
5136
  /**
5129
5137
  * Called after a surface is deleted.
5130
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_surface_deleted Online documentation}
5138
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_surface_deleted Online documentation}
5131
5139
  */
5132
5140
  interface OnSurfaceDeletedEvent extends EventData {
5133
5141
  readonly surface_index: SurfaceIndex
@@ -5142,7 +5150,7 @@ declare module "factorio:runtime" {
5142
5150
  }
5143
5151
  /**
5144
5152
  * Called after a surface is imported via the map editor.
5145
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_surface_imported Online documentation}
5153
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_surface_imported Online documentation}
5146
5154
  */
5147
5155
  interface OnSurfaceImportedEvent extends EventData {
5148
5156
  readonly surface_index: SurfaceIndex
@@ -5161,7 +5169,7 @@ declare module "factorio:runtime" {
5161
5169
  }
5162
5170
  /**
5163
5171
  * Called when a surface is renamed.
5164
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_surface_renamed Online documentation}
5172
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_surface_renamed Online documentation}
5165
5173
  */
5166
5174
  interface OnSurfaceRenamedEvent extends EventData {
5167
5175
  readonly surface_index: SurfaceIndex
@@ -5178,7 +5186,7 @@ declare module "factorio:runtime" {
5178
5186
  }
5179
5187
  /**
5180
5188
  * Called when {@link LuaForce#reset_technology_effects LuaForce::reset_technology_effects} is finished.
5181
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_technology_effects_reset Online documentation}
5189
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_technology_effects_reset Online documentation}
5182
5190
  */
5183
5191
  interface OnTechnologyEffectsResetEvent extends EventData {
5184
5192
  readonly force: LuaForce
@@ -5193,7 +5201,7 @@ declare module "factorio:runtime" {
5193
5201
  }
5194
5202
  /**
5195
5203
  * Called when a territory is created for any reason.
5196
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_territory_created Online documentation}
5204
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_territory_created Online documentation}
5197
5205
  */
5198
5206
  interface OnTerritoryCreatedEvent extends EventData {
5199
5207
  /**
@@ -5215,7 +5223,7 @@ declare module "factorio:runtime" {
5215
5223
  }
5216
5224
  /**
5217
5225
  * Called when a territory is destroyed from a surface.
5218
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_territory_destroyed Online documentation}
5226
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_territory_destroyed Online documentation}
5219
5227
  */
5220
5228
  interface OnTerritoryDestroyedEvent extends EventData {
5221
5229
  /**
@@ -5233,7 +5241,7 @@ declare module "factorio:runtime" {
5233
5241
  }
5234
5242
  /**
5235
5243
  * It is fired once every tick. Since this event is fired every tick, its handler shouldn't include performance heavy code.
5236
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_tick Online documentation}
5244
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_tick Online documentation}
5237
5245
  */
5238
5246
  interface OnTickEvent extends EventData {
5239
5247
  /**
@@ -5251,7 +5259,7 @@ declare module "factorio:runtime" {
5251
5259
  * After this event any items in the buffer will be transferred into the tower as if they came from mining the entity.
5252
5260
  *
5253
5261
  * The buffer inventory is special in that it's only valid during this event and has a dynamic size expanding as more items are transferred into it.
5254
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_tower_mined_plant Online documentation}
5262
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_tower_mined_plant Online documentation}
5255
5263
  */
5256
5264
  interface OnTowerMinedPlantEvent extends EventData {
5257
5265
  /**
@@ -5277,7 +5285,7 @@ declare module "factorio:runtime" {
5277
5285
  }
5278
5286
  /**
5279
5287
  * Called before an agricultural tower plants a seed.
5280
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_tower_planted_seed Online documentation}
5288
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_tower_planted_seed Online documentation}
5281
5289
  */
5282
5290
  interface OnTowerPlantedSeedEvent extends EventData {
5283
5291
  /**
@@ -5303,7 +5311,7 @@ declare module "factorio:runtime" {
5303
5311
  }
5304
5312
  /**
5305
5313
  * Called before an agricultural tower mines a plant.
5306
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_tower_pre_mined_plant Online documentation}
5314
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_tower_pre_mined_plant Online documentation}
5307
5315
  */
5308
5316
  interface OnTowerPreMinedPlantEvent extends EventData {
5309
5317
  /**
@@ -5325,7 +5333,7 @@ declare module "factorio:runtime" {
5325
5333
  }
5326
5334
  /**
5327
5335
  * Called when a train changes state (started to stopped and vice versa)
5328
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_train_changed_state Online documentation}
5336
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_train_changed_state Online documentation}
5329
5337
  */
5330
5338
  interface OnTrainChangedStateEvent extends EventData {
5331
5339
  readonly train: LuaTrain
@@ -5341,7 +5349,7 @@ declare module "factorio:runtime" {
5341
5349
  }
5342
5350
  /**
5343
5351
  * Called when a new train is created either through disconnecting/connecting an existing one or building a new one.
5344
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_train_created Online documentation}
5352
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_train_created Online documentation}
5345
5353
  */
5346
5354
  interface OnTrainCreatedEvent extends EventData {
5347
5355
  readonly train: LuaTrain
@@ -5364,7 +5372,7 @@ declare module "factorio:runtime" {
5364
5372
  }
5365
5373
  /**
5366
5374
  * Called when a trains schedule is changed either by the player or through script.
5367
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_train_schedule_changed Online documentation}
5375
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_train_schedule_changed Online documentation}
5368
5376
  */
5369
5377
  interface OnTrainScheduleChangedEvent extends EventData {
5370
5378
  readonly train: LuaTrain
@@ -5383,7 +5391,7 @@ declare module "factorio:runtime" {
5383
5391
  }
5384
5392
  /**
5385
5393
  * Called when an entity with a trigger prototype (such as capsules) create an entity AND that trigger prototype defined `trigger_created_entity=true`.
5386
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_trigger_created_entity Online documentation}
5394
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_trigger_created_entity Online documentation}
5387
5395
  */
5388
5396
  interface OnTriggerCreatedEntityEvent extends EventData {
5389
5397
  readonly entity: LuaEntity
@@ -5399,7 +5407,7 @@ declare module "factorio:runtime" {
5399
5407
  }
5400
5408
  /**
5401
5409
  * Called when an entity with a trigger prototype (such as capsules) fire an artillery projectile AND that trigger prototype defined `trigger_fired_artillery=true`.
5402
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_trigger_fired_artillery Online documentation}
5410
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_trigger_fired_artillery Online documentation}
5403
5411
  */
5404
5412
  interface OnTriggerFiredArtilleryEvent extends EventData {
5405
5413
  readonly entity: LuaEntity
@@ -5415,7 +5423,7 @@ declare module "factorio:runtime" {
5415
5423
  }
5416
5424
  /**
5417
5425
  * Called when new packets are processed by {@link LuaHelpers#recv_udp LuaHelpers::recv_udp}.
5418
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_udp_packet_received Online documentation}
5426
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_udp_packet_received Online documentation}
5419
5427
  */
5420
5428
  interface OnUdpPacketReceivedEvent extends EventData {
5421
5429
  /**
@@ -5441,7 +5449,7 @@ declare module "factorio:runtime" {
5441
5449
  }
5442
5450
  /**
5443
5451
  * Called when the player triggers "undo".
5444
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_undo_applied Online documentation}
5452
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_undo_applied Online documentation}
5445
5453
  */
5446
5454
  interface OnUndoAppliedEvent extends EventData {
5447
5455
  /**
@@ -5463,7 +5471,7 @@ declare module "factorio:runtime" {
5463
5471
  }
5464
5472
  /**
5465
5473
  * Called when a unit is added to a unit group.
5466
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_unit_added_to_group Online documentation}
5474
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_unit_added_to_group Online documentation}
5467
5475
  */
5468
5476
  interface OnUnitAddedToGroupEvent extends EventData {
5469
5477
  readonly unit: LuaEntity
@@ -5479,7 +5487,7 @@ declare module "factorio:runtime" {
5479
5487
  }
5480
5488
  /**
5481
5489
  * Called when a new unit group is created, before any members are added to it.
5482
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_unit_group_created Online documentation}
5490
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_unit_group_created Online documentation}
5483
5491
  */
5484
5492
  interface OnUnitGroupCreatedEvent extends EventData {
5485
5493
  readonly group: LuaCommandable
@@ -5494,7 +5502,7 @@ declare module "factorio:runtime" {
5494
5502
  }
5495
5503
  /**
5496
5504
  * Called when a unit group finishes gathering and starts executing its command.
5497
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_unit_group_finished_gathering Online documentation}
5505
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_unit_group_finished_gathering Online documentation}
5498
5506
  */
5499
5507
  interface OnUnitGroupFinishedGatheringEvent extends EventData {
5500
5508
  readonly group: LuaCommandable
@@ -5509,7 +5517,7 @@ declare module "factorio:runtime" {
5509
5517
  }
5510
5518
  /**
5511
5519
  * Called when a unit is removed from a unit group.
5512
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_unit_removed_from_group Online documentation}
5520
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_unit_removed_from_group Online documentation}
5513
5521
  */
5514
5522
  interface OnUnitRemovedFromGroupEvent extends EventData {
5515
5523
  readonly unit: LuaEntity
@@ -5525,7 +5533,7 @@ declare module "factorio:runtime" {
5525
5533
  }
5526
5534
  /**
5527
5535
  * Called when a worker (construction or logistic) robot expires through a lack of energy.
5528
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#on_worker_robot_expired Online documentation}
5536
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#on_worker_robot_expired Online documentation}
5529
5537
  */
5530
5538
  interface OnWorkerRobotExpiredEvent extends EventData {
5531
5539
  readonly robot: LuaEntity
@@ -5542,7 +5550,7 @@ declare module "factorio:runtime" {
5542
5550
  * A static event mods can use to tell other mods they built something by script. This event is only raised if a mod does so with {@link LuaBootstrap#raise_event LuaBootstrap::raise_event} or {@link LuaBootstrap#raise_script_built LuaBootstrap::raise_script_built}, or when `raise_built` is passed to {@link LuaSurface#create_entity LuaSurface::create_entity}.
5543
5551
  *
5544
5552
  * Event filter: [LuaScriptRaisedBuiltEventFilter](LuaScriptRaisedBuiltEventFilter]
5545
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#script_raised_built Online documentation}
5553
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#script_raised_built Online documentation}
5546
5554
  */
5547
5555
  interface ScriptRaisedBuiltEvent extends EventData {
5548
5556
  /**
@@ -5562,7 +5570,7 @@ declare module "factorio:runtime" {
5562
5570
  * A static event mods can use to tell other mods they destroyed something by script. This event is only raised if a mod does so with {@link LuaBootstrap#raise_event LuaBootstrap::raise_event} or {@link LuaBootstrap#raise_script_destroy LuaBootstrap::raise_script_destroy}, or when `raise_destroy` is passed to {@link LuaEntity#destroy LuaEntity::destroy}.
5563
5571
  *
5564
5572
  * Event filter: [LuaScriptRaisedDestroyEventFilter](LuaScriptRaisedDestroyEventFilter]
5565
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#script_raised_destroy Online documentation}
5573
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#script_raised_destroy Online documentation}
5566
5574
  */
5567
5575
  interface ScriptRaisedDestroyEvent extends EventData {
5568
5576
  /**
@@ -5582,7 +5590,7 @@ declare module "factorio:runtime" {
5582
5590
  * A static event that mods can use to tell other mods they destroyed a segmented unit by script. This event is only raised if a mod does so with {@link LuaBootstrap#raise_event LuaBootstrap::raise_event}, or {@link LuaBootstrap#raise_script_destroy_segmented_unit LuaBootstrap::raise_script_destroy_segmented_unit}, or when `raise_destroy` is passed to {@link LuaSegmentedUnit#destroy LuaSegmentedUnit::destroy}.
5583
5591
  *
5584
5592
  * Event filter: [LuaScriptRaisedDestroySegmentedUnitEventFilter](LuaScriptRaisedDestroySegmentedUnitEventFilter]
5585
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#script_raised_destroy_segmented_unit Online documentation}
5593
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#script_raised_destroy_segmented_unit Online documentation}
5586
5594
  */
5587
5595
  interface ScriptRaisedDestroySegmentedUnitEvent extends EventData {
5588
5596
  /**
@@ -5602,7 +5610,7 @@ declare module "factorio:runtime" {
5602
5610
  * A static event mods can use to tell other mods they revived something by script. This event is only raised if a mod does so with {@link LuaBootstrap#raise_event LuaBootstrap::raise_event} or {@link LuaBootstrap#raise_script_revive LuaBootstrap::raise_script_revive}, or when `raise_revive` is passed to {@link LuaEntity#revive LuaEntity::revive}.
5603
5611
  *
5604
5612
  * Event filter: [LuaScriptRaisedReviveEventFilter](LuaScriptRaisedReviveEventFilter]
5605
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#script_raised_revive Online documentation}
5613
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#script_raised_revive Online documentation}
5606
5614
  */
5607
5615
  interface ScriptRaisedReviveEvent extends EventData {
5608
5616
  /**
@@ -5624,7 +5632,7 @@ declare module "factorio:runtime" {
5624
5632
  }
5625
5633
  /**
5626
5634
  * A static event mods can use to tell other mods they changed tiles on a surface by script. This event is only raised if a mod does so with {@link LuaBootstrap#raise_event LuaBootstrap::raise_event} or {@link LuaBootstrap#raise_script_set_tiles LuaBootstrap::raise_script_set_tiles}, or when `raise_event` is passed to {@link LuaSurface#set_tiles LuaSurface::set_tiles}.
5627
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#script_raised_set_tiles Online documentation}
5635
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#script_raised_set_tiles Online documentation}
5628
5636
  */
5629
5637
  interface ScriptRaisedSetTilesEvent extends EventData {
5630
5638
  /**
@@ -5648,7 +5656,7 @@ declare module "factorio:runtime" {
5648
5656
  * A static event mods can use to tell other mods they teleported something by script. This event is only raised if a mod does so with {@link LuaBootstrap#raise_event LuaBootstrap::raise_event} or {@link LuaBootstrap#raise_script_teleported LuaBootstrap::raise_script_teleported}, or when `raise_teleported` is passed to {@link LuaControl#teleport LuaControl::teleport}.
5649
5657
  *
5650
5658
  * Event filter: [LuaScriptRaisedTeleportedEventFilter](LuaScriptRaisedTeleportedEventFilter]
5651
- * @see {@link https://lua-api.factorio.com/2.1.24/events.html#script_raised_teleported Online documentation}
5659
+ * @see {@link https://lua-api.factorio.com/2.1.25/events.html#script_raised_teleported Online documentation}
5652
5660
  */
5653
5661
  interface ScriptRaisedTeleportedEvent extends EventData {
5654
5662
  /**