typed-factorio 3.28.0 → 3.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/prototype/generated/prototypes.d.ts +2223 -2203
- package/prototype/generated/types.d.ts +2145 -2145
- package/runtime/generated/classes.d.ts +4048 -4038
- package/runtime/generated/concepts.d.ts +411 -411
- package/runtime/generated/defines.d.ts +343 -244
- package/runtime/generated/events.d.ts +217 -217
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +7 -7
@@ -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.0.
|
16
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#CustomInputEvent Online documentation}
|
17
17
|
*/
|
18
18
|
interface CustomInputEvent extends EventData {
|
19
19
|
/**
|
@@ -55,7 +55,7 @@ declare module "factorio:runtime" {
|
|
55
55
|
}
|
56
56
|
/**
|
57
57
|
* Called when an achievement is gained.
|
58
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
58
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_achievement_gained Online documentation}
|
59
59
|
*/
|
60
60
|
interface OnAchievementGainedEvent extends EventData {
|
61
61
|
/**
|
@@ -74,7 +74,7 @@ declare module "factorio:runtime" {
|
|
74
74
|
}
|
75
75
|
/**
|
76
76
|
* Called when a unit/group completes a command.
|
77
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
77
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_ai_command_completed Online documentation}
|
78
78
|
*/
|
79
79
|
interface OnAiCommandCompletedEvent extends EventData {
|
80
80
|
/**
|
@@ -97,7 +97,7 @@ declare module "factorio:runtime" {
|
|
97
97
|
}
|
98
98
|
/**
|
99
99
|
* Called when an area of the map is cloned.
|
100
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
100
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_area_cloned Online documentation}
|
101
101
|
*/
|
102
102
|
interface OnAreaClonedEvent extends EventData {
|
103
103
|
readonly source_surface: LuaSurface
|
@@ -123,7 +123,7 @@ declare module "factorio:runtime" {
|
|
123
123
|
* Called when a biter migration builds a base.
|
124
124
|
*
|
125
125
|
* This will be called multiple times for each migration, once for every biter that is sacrificed to build part of the new base.
|
126
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
126
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_biter_base_built Online documentation}
|
127
127
|
*/
|
128
128
|
interface OnBiterBaseBuiltEvent extends EventData {
|
129
129
|
/**
|
@@ -141,7 +141,7 @@ declare module "factorio:runtime" {
|
|
141
141
|
}
|
142
142
|
/**
|
143
143
|
* Called when a set of positions on the map is cloned.
|
144
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
144
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_brush_cloned Online documentation}
|
145
145
|
*/
|
146
146
|
interface OnBrushClonedEvent extends EventData {
|
147
147
|
readonly source_offset: TilePosition
|
@@ -166,7 +166,7 @@ declare module "factorio:runtime" {
|
|
166
166
|
}
|
167
167
|
/**
|
168
168
|
* Called when a {@link defines.command.build_base} command reaches its destination, and before building starts.
|
169
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
169
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_build_base_arrived Online documentation}
|
170
170
|
*/
|
171
171
|
interface OnBuildBaseArrivedEvent extends EventData {
|
172
172
|
/**
|
@@ -190,7 +190,7 @@ declare module "factorio:runtime" {
|
|
190
190
|
* Called when player builds something.
|
191
191
|
*
|
192
192
|
* Event filter: [LuaPlayerBuiltEntityEventFilter](LuaPlayerBuiltEntityEventFilter]
|
193
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
193
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_built_entity Online documentation}
|
194
194
|
*/
|
195
195
|
interface OnBuiltEntityEvent extends EventData {
|
196
196
|
/**
|
@@ -222,7 +222,7 @@ declare module "factorio:runtime" {
|
|
222
222
|
* Called when the deconstruction of an entity is canceled.
|
223
223
|
*
|
224
224
|
* Event filter: [LuaEntityDeconstructionCancelledEventFilter](LuaEntityDeconstructionCancelledEventFilter]
|
225
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
225
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_cancelled_deconstruction Online documentation}
|
226
226
|
*/
|
227
227
|
interface OnCancelledDeconstructionEvent extends EventData {
|
228
228
|
readonly entity: LuaEntity
|
@@ -240,7 +240,7 @@ declare module "factorio:runtime" {
|
|
240
240
|
* Called when the upgrade of an entity is canceled.
|
241
241
|
*
|
242
242
|
* Event filter: [LuaUpgradeCancelledEventFilter](LuaUpgradeCancelledEventFilter]
|
243
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
243
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_cancelled_upgrade Online documentation}
|
244
244
|
*/
|
245
245
|
interface OnCancelledUpgradeEvent extends EventData {
|
246
246
|
readonly entity: LuaEntity
|
@@ -258,7 +258,7 @@ declare module "factorio:runtime" {
|
|
258
258
|
}
|
259
259
|
/**
|
260
260
|
* Called after a cargo pod has delivered its cargo.
|
261
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
261
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_cargo_pod_delivered_cargo Online documentation}
|
262
262
|
*/
|
263
263
|
interface OnCargoPodDeliveredCargoEvent extends EventData {
|
264
264
|
readonly cargo_pod: LuaEntity
|
@@ -277,7 +277,7 @@ declare module "factorio:runtime" {
|
|
277
277
|
}
|
278
278
|
/**
|
279
279
|
* Called when a cargo pod departs a surface.
|
280
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
280
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_cargo_pod_finished_ascending Online documentation}
|
281
281
|
*/
|
282
282
|
interface OnCargoPodFinishedAscendingEvent extends EventData {
|
283
283
|
readonly cargo_pod: LuaEntity
|
@@ -300,7 +300,7 @@ declare module "factorio:runtime" {
|
|
300
300
|
}
|
301
301
|
/**
|
302
302
|
* Called when a cargo pods lands on a surface, either at a station or on the ground.
|
303
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
303
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_cargo_pod_finished_descending Online documentation}
|
304
304
|
*/
|
305
305
|
interface OnCargoPodFinishedDescendingEvent extends EventData {
|
306
306
|
readonly cargo_pod: LuaEntity
|
@@ -325,7 +325,7 @@ declare module "factorio:runtime" {
|
|
325
325
|
* Called when a character corpse expires due to timeout or all of the items being removed from it.
|
326
326
|
*
|
327
327
|
* this is not called if the corpse is mined. See {@link defines.events.on_pre_player_mined_item} to detect that.
|
328
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
328
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_character_corpse_expired Online documentation}
|
329
329
|
*/
|
330
330
|
interface OnCharacterCorpseExpiredEvent extends EventData {
|
331
331
|
/**
|
@@ -343,7 +343,7 @@ declare module "factorio:runtime" {
|
|
343
343
|
}
|
344
344
|
/**
|
345
345
|
* Called when a chart tag is created.
|
346
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
346
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_chart_tag_added Online documentation}
|
347
347
|
*/
|
348
348
|
interface OnChartTagAddedEvent extends EventData {
|
349
349
|
readonly tag: LuaCustomChartTag
|
@@ -360,7 +360,7 @@ declare module "factorio:runtime" {
|
|
360
360
|
}
|
361
361
|
/**
|
362
362
|
* Called when a chart tag is modified by a player.
|
363
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
363
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_chart_tag_modified Online documentation}
|
364
364
|
*/
|
365
365
|
interface OnChartTagModifiedEvent extends EventData {
|
366
366
|
readonly tag: LuaCustomChartTag
|
@@ -382,7 +382,7 @@ declare module "factorio:runtime" {
|
|
382
382
|
}
|
383
383
|
/**
|
384
384
|
* Called just before a chart tag is deleted.
|
385
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
385
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_chart_tag_removed Online documentation}
|
386
386
|
*/
|
387
387
|
interface OnChartTagRemovedEvent extends EventData {
|
388
388
|
readonly tag: LuaCustomChartTag
|
@@ -399,7 +399,7 @@ declare module "factorio:runtime" {
|
|
399
399
|
}
|
400
400
|
/**
|
401
401
|
* Called when a chunk is charted or re-charted.
|
402
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
402
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_chunk_charted Online documentation}
|
403
403
|
*/
|
404
404
|
interface OnChunkChartedEvent extends EventData {
|
405
405
|
readonly surface_index: SurfaceIndex
|
@@ -420,7 +420,7 @@ declare module "factorio:runtime" {
|
|
420
420
|
}
|
421
421
|
/**
|
422
422
|
* Called when one or more chunks are deleted using {@link LuaSurface#delete_chunk LuaSurface::delete_chunk}.
|
423
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
423
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_chunk_deleted Online documentation}
|
424
424
|
*/
|
425
425
|
interface OnChunkDeletedEvent extends EventData {
|
426
426
|
readonly surface_index: SurfaceIndex
|
@@ -439,7 +439,7 @@ declare module "factorio:runtime" {
|
|
439
439
|
}
|
440
440
|
/**
|
441
441
|
* Called when a chunk is generated.
|
442
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
442
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_chunk_generated Online documentation}
|
443
443
|
*/
|
444
444
|
interface OnChunkGeneratedEvent extends EventData {
|
445
445
|
/**
|
@@ -465,7 +465,7 @@ declare module "factorio:runtime" {
|
|
465
465
|
}
|
466
466
|
/**
|
467
467
|
* Called when a combat robot expires through a lack of energy, or timeout.
|
468
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
468
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_combat_robot_expired Online documentation}
|
469
469
|
*/
|
470
470
|
interface OnCombatRobotExpiredEvent extends EventData {
|
471
471
|
readonly robot: LuaEntity
|
@@ -486,7 +486,7 @@ declare module "factorio:runtime" {
|
|
486
486
|
* Called when a message is sent to the in-game console, either by a player or through the server interface.
|
487
487
|
*
|
488
488
|
* This event only fires for plain messages, not for any commands (including `/shout` or `/whisper`).
|
489
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
489
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_console_chat Online documentation}
|
490
490
|
*/
|
491
491
|
interface OnConsoleChatEvent extends EventData {
|
492
492
|
/**
|
@@ -508,7 +508,7 @@ declare module "factorio:runtime" {
|
|
508
508
|
}
|
509
509
|
/**
|
510
510
|
* Called when someone enters a command-like message regardless of it being a valid command.
|
511
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
511
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_console_command Online documentation}
|
512
512
|
*/
|
513
513
|
interface OnConsoleCommandEvent extends EventData {
|
514
514
|
/**
|
@@ -534,7 +534,7 @@ declare module "factorio:runtime" {
|
|
534
534
|
}
|
535
535
|
/**
|
536
536
|
* Called when a cutscene is cancelled by the player or by script.
|
537
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
537
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_cutscene_cancelled Online documentation}
|
538
538
|
*/
|
539
539
|
interface OnCutsceneCancelledEvent extends EventData {
|
540
540
|
/**
|
@@ -552,7 +552,7 @@ declare module "factorio:runtime" {
|
|
552
552
|
}
|
553
553
|
/**
|
554
554
|
* Called when a cutscene finishes naturally (was not cancelled).
|
555
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
555
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_cutscene_finished Online documentation}
|
556
556
|
*/
|
557
557
|
interface OnCutsceneFinishedEvent extends EventData {
|
558
558
|
/**
|
@@ -570,7 +570,7 @@ declare module "factorio:runtime" {
|
|
570
570
|
}
|
571
571
|
/**
|
572
572
|
* Called when a cutscene starts.
|
573
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
573
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_cutscene_started Online documentation}
|
574
574
|
*/
|
575
575
|
interface OnCutsceneStartedEvent extends EventData {
|
576
576
|
/**
|
@@ -590,7 +590,7 @@ declare module "factorio:runtime" {
|
|
590
590
|
* Called when a cutscene is playing, each time it reaches a waypoint in that cutscene.
|
591
591
|
*
|
592
592
|
* This refers to an index in the table previously passed to set_controller which started the cutscene.
|
593
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
593
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_cutscene_waypoint_reached Online documentation}
|
594
594
|
*/
|
595
595
|
interface OnCutsceneWaypointReachedEvent extends EventData {
|
596
596
|
/**
|
@@ -614,7 +614,7 @@ declare module "factorio:runtime" {
|
|
614
614
|
* Called when an entity is cloned. The filter applies to the source entity.
|
615
615
|
*
|
616
616
|
* Event filter: [LuaEntityClonedEventFilter](LuaEntityClonedEventFilter]
|
617
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
617
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_entity_cloned Online documentation}
|
618
618
|
*/
|
619
619
|
interface OnEntityClonedEvent extends EventData {
|
620
620
|
readonly source: LuaEntity
|
@@ -632,7 +632,7 @@ declare module "factorio:runtime" {
|
|
632
632
|
* Called after an entity has been recolored either by the player or through script.
|
633
633
|
*
|
634
634
|
* Automatic recoloring due to {@link LuaPlayer#color LuaPlayer::color} will not raise events, as that is a separate mechanism.
|
635
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
635
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_entity_color_changed Online documentation}
|
636
636
|
*/
|
637
637
|
interface OnEntityColorChangedEvent extends EventData {
|
638
638
|
/**
|
@@ -652,7 +652,7 @@ declare module "factorio:runtime" {
|
|
652
652
|
* Called when an entity is damaged. This is not called when an entities health is set directly by another mod.
|
653
653
|
*
|
654
654
|
* Event filter: [LuaEntityDamagedEventFilter](LuaEntityDamagedEventFilter]
|
655
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
655
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_entity_damaged Online documentation}
|
656
656
|
*/
|
657
657
|
interface OnEntityDamagedEvent extends EventData {
|
658
658
|
readonly entity: LuaEntity
|
@@ -694,7 +694,7 @@ declare module "factorio:runtime" {
|
|
694
694
|
* Called when an entity dies.
|
695
695
|
*
|
696
696
|
* Event filter: [LuaEntityDiedEventFilter](LuaEntityDiedEventFilter]
|
697
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
697
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_entity_died Online documentation}
|
698
698
|
*/
|
699
699
|
interface OnEntityDiedEvent extends EventData {
|
700
700
|
/**
|
@@ -728,7 +728,7 @@ declare module "factorio:runtime" {
|
|
728
728
|
}
|
729
729
|
/**
|
730
730
|
* Called when one of an entity's logistic slots changes.
|
731
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
731
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_entity_logistic_slot_changed Online documentation}
|
732
732
|
*/
|
733
733
|
interface OnEntityLogisticSlotChangedEvent extends EventData {
|
734
734
|
/**
|
@@ -758,7 +758,7 @@ declare module "factorio:runtime" {
|
|
758
758
|
}
|
759
759
|
/**
|
760
760
|
* Called after an entity has been renamed either by the player or through script.
|
761
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
761
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_entity_renamed Online documentation}
|
762
762
|
*/
|
763
763
|
interface OnEntityRenamedEvent extends EventData {
|
764
764
|
/**
|
@@ -779,7 +779,7 @@ declare module "factorio:runtime" {
|
|
779
779
|
}
|
780
780
|
/**
|
781
781
|
* Called after entity copy-paste is done.
|
782
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
782
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_entity_settings_pasted Online documentation}
|
783
783
|
*/
|
784
784
|
interface OnEntitySettingsPastedEvent extends EventData {
|
785
785
|
readonly player_index: PlayerIndex
|
@@ -802,7 +802,7 @@ declare module "factorio:runtime" {
|
|
802
802
|
}
|
803
803
|
/**
|
804
804
|
* Called when an entity is spawned by a EnemySpawner
|
805
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
805
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_entity_spawned Online documentation}
|
806
806
|
*/
|
807
807
|
interface OnEntitySpawnedEvent extends EventData {
|
808
808
|
readonly spawner: LuaEntity
|
@@ -818,7 +818,7 @@ declare module "factorio:runtime" {
|
|
818
818
|
}
|
819
819
|
/**
|
820
820
|
* Called after equipment is inserted into an equipment grid.
|
821
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
821
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_equipment_inserted Online documentation}
|
822
822
|
*/
|
823
823
|
interface OnEquipmentInsertedEvent extends EventData {
|
824
824
|
/**
|
@@ -840,7 +840,7 @@ declare module "factorio:runtime" {
|
|
840
840
|
}
|
841
841
|
/**
|
842
842
|
* Called after equipment is removed from an equipment grid.
|
843
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
843
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_equipment_removed Online documentation}
|
844
844
|
*/
|
845
845
|
interface OnEquipmentRemovedEvent extends EventData {
|
846
846
|
/**
|
@@ -870,7 +870,7 @@ declare module "factorio:runtime" {
|
|
870
870
|
}
|
871
871
|
/**
|
872
872
|
* Called when the a forces cease fire values change.
|
873
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
873
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_force_cease_fire_changed Online documentation}
|
874
874
|
*/
|
875
875
|
interface OnForceCeaseFireChangedEvent extends EventData {
|
876
876
|
/**
|
@@ -898,7 +898,7 @@ declare module "factorio:runtime" {
|
|
898
898
|
* Called when a new force is created using `game.create_force()`
|
899
899
|
*
|
900
900
|
* This is not called when the default forces (`'player'`, `'enemy'`, `'neutral'`) are created as they will always exist.
|
901
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
901
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_force_created Online documentation}
|
902
902
|
*/
|
903
903
|
interface OnForceCreatedEvent extends EventData {
|
904
904
|
/**
|
@@ -916,7 +916,7 @@ declare module "factorio:runtime" {
|
|
916
916
|
}
|
917
917
|
/**
|
918
918
|
* Called when the a forces friends change.
|
919
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
919
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_force_friends_changed Online documentation}
|
920
920
|
*/
|
921
921
|
interface OnForceFriendsChangedEvent extends EventData {
|
922
922
|
/**
|
@@ -942,7 +942,7 @@ declare module "factorio:runtime" {
|
|
942
942
|
}
|
943
943
|
/**
|
944
944
|
* Called when {@link LuaForce#reset LuaForce::reset} is finished.
|
945
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
945
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_force_reset Online documentation}
|
946
946
|
*/
|
947
947
|
interface OnForceResetEvent extends EventData {
|
948
948
|
readonly force: LuaForce
|
@@ -959,7 +959,7 @@ declare module "factorio:runtime" {
|
|
959
959
|
* Called after two forces have been merged using `game.merge_forces()`.
|
960
960
|
*
|
961
961
|
* The source force is invalidated before this event is called and the name can be re-used in this event if desired.
|
962
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
962
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_forces_merged Online documentation}
|
963
963
|
*/
|
964
964
|
interface OnForcesMergedEvent extends EventData {
|
965
965
|
/**
|
@@ -985,7 +985,7 @@ declare module "factorio:runtime" {
|
|
985
985
|
}
|
986
986
|
/**
|
987
987
|
* Called when two forces are about to be merged using `game.merge_forces()`.
|
988
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
988
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_forces_merging Online documentation}
|
989
989
|
*/
|
990
990
|
interface OnForcesMergingEvent extends EventData {
|
991
991
|
/**
|
@@ -1009,7 +1009,7 @@ declare module "factorio:runtime" {
|
|
1009
1009
|
* 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.
|
1010
1010
|
*
|
1011
1011
|
* This event is not fired when the scenario is loaded via the map editor.
|
1012
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1012
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_game_created_from_scenario Online documentation}
|
1013
1013
|
*/
|
1014
1014
|
interface OnGameCreatedFromScenarioEvent extends EventData {
|
1015
1015
|
/**
|
@@ -1023,7 +1023,7 @@ declare module "factorio:runtime" {
|
|
1023
1023
|
}
|
1024
1024
|
/**
|
1025
1025
|
* Called when {@link LuaGuiElement} checked state is changed (related to checkboxes and radio buttons).
|
1026
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1026
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_gui_checked_state_changed Online documentation}
|
1027
1027
|
*/
|
1028
1028
|
interface OnGuiCheckedStateChangedEvent extends EventData {
|
1029
1029
|
/**
|
@@ -1045,7 +1045,7 @@ declare module "factorio:runtime" {
|
|
1045
1045
|
}
|
1046
1046
|
/**
|
1047
1047
|
* Called when {@link LuaGuiElement} is clicked.
|
1048
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1048
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_gui_click Online documentation}
|
1049
1049
|
*/
|
1050
1050
|
interface OnGuiClickEvent extends EventData {
|
1051
1051
|
/**
|
@@ -1091,7 +1091,7 @@ declare module "factorio:runtime" {
|
|
1091
1091
|
* 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.
|
1092
1092
|
*
|
1093
1093
|
* 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.
|
1094
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1094
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_gui_closed Online documentation}
|
1095
1095
|
*/
|
1096
1096
|
interface OnGuiClosedEvent extends EventData {
|
1097
1097
|
/**
|
@@ -1145,7 +1145,7 @@ declare module "factorio:runtime" {
|
|
1145
1145
|
}
|
1146
1146
|
/**
|
1147
1147
|
* Called when a {@link LuaGuiElement} is confirmed, for example by pressing Enter in a textfield.
|
1148
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1148
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_gui_confirmed Online documentation}
|
1149
1149
|
*/
|
1150
1150
|
interface OnGuiConfirmedEvent extends EventData {
|
1151
1151
|
/**
|
@@ -1179,7 +1179,7 @@ declare module "factorio:runtime" {
|
|
1179
1179
|
}
|
1180
1180
|
/**
|
1181
1181
|
* Called when {@link LuaGuiElement} element value is changed (related to choose element buttons).
|
1182
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1182
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_gui_elem_changed Online documentation}
|
1183
1183
|
*/
|
1184
1184
|
interface OnGuiElemChangedEvent extends EventData {
|
1185
1185
|
/**
|
@@ -1203,7 +1203,7 @@ declare module "factorio:runtime" {
|
|
1203
1203
|
* Called when {@link LuaGuiElement} is hovered by the mouse.
|
1204
1204
|
*
|
1205
1205
|
* Only fired for events whose {@link LuaGuiElement#raise_hover_events LuaGuiElement::raise_hover_events} is `true`.
|
1206
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1206
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_gui_hover Online documentation}
|
1207
1207
|
*/
|
1208
1208
|
interface OnGuiHoverEvent extends EventData {
|
1209
1209
|
/**
|
@@ -1227,7 +1227,7 @@ declare module "factorio:runtime" {
|
|
1227
1227
|
* Called when the player's cursor leaves a {@link LuaGuiElement} that was previously hovered.
|
1228
1228
|
*
|
1229
1229
|
* Only fired for events whose {@link LuaGuiElement#raise_hover_events LuaGuiElement::raise_hover_events} is `true`.
|
1230
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1230
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_gui_leave Online documentation}
|
1231
1231
|
*/
|
1232
1232
|
interface OnGuiLeaveEvent extends EventData {
|
1233
1233
|
/**
|
@@ -1249,7 +1249,7 @@ declare module "factorio:runtime" {
|
|
1249
1249
|
}
|
1250
1250
|
/**
|
1251
1251
|
* Called when {@link LuaGuiElement} element location is changed (related to frames in `player.gui.screen`).
|
1252
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1252
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_gui_location_changed Online documentation}
|
1253
1253
|
*/
|
1254
1254
|
interface OnGuiLocationChangedEvent extends EventData {
|
1255
1255
|
/**
|
@@ -1271,7 +1271,7 @@ declare module "factorio:runtime" {
|
|
1271
1271
|
}
|
1272
1272
|
/**
|
1273
1273
|
* Called when the player opens a GUI.
|
1274
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1274
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_gui_opened Online documentation}
|
1275
1275
|
*/
|
1276
1276
|
interface OnGuiOpenedEvent extends EventData {
|
1277
1277
|
/**
|
@@ -1325,7 +1325,7 @@ declare module "factorio:runtime" {
|
|
1325
1325
|
}
|
1326
1326
|
/**
|
1327
1327
|
* Called when {@link LuaGuiElement} selected tab is changed (related to tabbed-panes).
|
1328
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1328
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_gui_selected_tab_changed Online documentation}
|
1329
1329
|
*/
|
1330
1330
|
interface OnGuiSelectedTabChangedEvent extends EventData {
|
1331
1331
|
/**
|
@@ -1347,7 +1347,7 @@ declare module "factorio:runtime" {
|
|
1347
1347
|
}
|
1348
1348
|
/**
|
1349
1349
|
* Called when {@link LuaGuiElement} selection state is changed (related to drop-downs and listboxes).
|
1350
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1350
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_gui_selection_state_changed Online documentation}
|
1351
1351
|
*/
|
1352
1352
|
interface OnGuiSelectionStateChangedEvent extends EventData {
|
1353
1353
|
/**
|
@@ -1369,7 +1369,7 @@ declare module "factorio:runtime" {
|
|
1369
1369
|
}
|
1370
1370
|
/**
|
1371
1371
|
* Called when {@link LuaGuiElement} switch state is changed (related to switches).
|
1372
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1372
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_gui_switch_state_changed Online documentation}
|
1373
1373
|
*/
|
1374
1374
|
interface OnGuiSwitchStateChangedEvent extends EventData {
|
1375
1375
|
/**
|
@@ -1391,7 +1391,7 @@ declare module "factorio:runtime" {
|
|
1391
1391
|
}
|
1392
1392
|
/**
|
1393
1393
|
* Called when {@link LuaGuiElement} text is changed by the player.
|
1394
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1394
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_gui_text_changed Online documentation}
|
1395
1395
|
*/
|
1396
1396
|
interface OnGuiTextChangedEvent extends EventData {
|
1397
1397
|
/**
|
@@ -1417,7 +1417,7 @@ declare module "factorio:runtime" {
|
|
1417
1417
|
}
|
1418
1418
|
/**
|
1419
1419
|
* Called when {@link LuaGuiElement} slider value is changed (related to the slider element).
|
1420
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1420
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_gui_value_changed Online documentation}
|
1421
1421
|
*/
|
1422
1422
|
interface OnGuiValueChangedEvent extends EventData {
|
1423
1423
|
/**
|
@@ -1439,7 +1439,7 @@ declare module "factorio:runtime" {
|
|
1439
1439
|
}
|
1440
1440
|
/**
|
1441
1441
|
* Called when a land mine is armed.
|
1442
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1442
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_land_mine_armed Online documentation}
|
1443
1443
|
*/
|
1444
1444
|
interface OnLandMineArmedEvent extends EventData {
|
1445
1445
|
readonly mine: LuaEntity
|
@@ -1454,7 +1454,7 @@ declare module "factorio:runtime" {
|
|
1454
1454
|
}
|
1455
1455
|
/**
|
1456
1456
|
* Called when a custom {@link import("factorio:prototype").ShortcutPrototype Lua shortcut} is pressed.
|
1457
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1457
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_lua_shortcut Online documentation}
|
1458
1458
|
*/
|
1459
1459
|
interface OnLuaShortcutEvent extends EventData {
|
1460
1460
|
readonly player_index: PlayerIndex
|
@@ -1475,7 +1475,7 @@ declare module "factorio:runtime" {
|
|
1475
1475
|
* Called when an entity is marked for deconstruction with the Deconstruction planner or via script.
|
1476
1476
|
*
|
1477
1477
|
* Event filter: [LuaEntityMarkedForDeconstructionEventFilter](LuaEntityMarkedForDeconstructionEventFilter]
|
1478
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1478
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_marked_for_deconstruction Online documentation}
|
1479
1479
|
*/
|
1480
1480
|
interface OnMarkedForDeconstructionEvent extends EventData {
|
1481
1481
|
readonly entity: LuaEntity
|
@@ -1493,7 +1493,7 @@ declare module "factorio:runtime" {
|
|
1493
1493
|
* Called when an entity is marked for upgrade with the Upgrade planner or via script.
|
1494
1494
|
*
|
1495
1495
|
* Event filter: [LuaEntityMarkedForUpgradeEventFilter](LuaEntityMarkedForUpgradeEventFilter]
|
1496
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1496
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_marked_for_upgrade Online documentation}
|
1497
1497
|
*/
|
1498
1498
|
interface OnMarkedForUpgradeEvent extends EventData {
|
1499
1499
|
readonly player_index?: PlayerIndex
|
@@ -1511,7 +1511,7 @@ declare module "factorio:runtime" {
|
|
1511
1511
|
}
|
1512
1512
|
/**
|
1513
1513
|
* Called after a player purchases some offer from a `market` entity.
|
1514
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1514
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_market_item_purchased Online documentation}
|
1515
1515
|
*/
|
1516
1516
|
interface OnMarketItemPurchasedEvent extends EventData {
|
1517
1517
|
/**
|
@@ -1541,7 +1541,7 @@ declare module "factorio:runtime" {
|
|
1541
1541
|
}
|
1542
1542
|
/**
|
1543
1543
|
* Called when the player uses the 'Open item GUI' control on an item defined with the 'mod-openable' flag
|
1544
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1544
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_mod_item_opened Online documentation}
|
1545
1545
|
*/
|
1546
1546
|
interface OnModItemOpenedEvent extends EventData {
|
1547
1547
|
/**
|
@@ -1567,7 +1567,7 @@ declare module "factorio:runtime" {
|
|
1567
1567
|
}
|
1568
1568
|
/**
|
1569
1569
|
* 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.
|
1570
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1570
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_multiplayer_init Online documentation}
|
1571
1571
|
*/
|
1572
1572
|
interface OnMultiplayerInitEvent extends EventData {
|
1573
1573
|
/**
|
@@ -1583,7 +1583,7 @@ declare module "factorio:runtime" {
|
|
1583
1583
|
* Called after an object is destroyed which was registered with {@link LuaBootstrap#register_on_object_destroyed LuaBootstrap::register_on_object_destroyed} previously.
|
1584
1584
|
*
|
1585
1585
|
* 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.
|
1586
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1586
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_object_destroyed Online documentation}
|
1587
1587
|
*/
|
1588
1588
|
interface OnObjectDestroyedEvent extends EventData {
|
1589
1589
|
/**
|
@@ -1609,7 +1609,7 @@ declare module "factorio:runtime" {
|
|
1609
1609
|
}
|
1610
1610
|
/**
|
1611
1611
|
* Called directly after a permission group is added.
|
1612
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1612
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_permission_group_added Online documentation}
|
1613
1613
|
*/
|
1614
1614
|
interface OnPermissionGroupAddedEvent extends EventData {
|
1615
1615
|
/**
|
@@ -1631,7 +1631,7 @@ declare module "factorio:runtime" {
|
|
1631
1631
|
}
|
1632
1632
|
/**
|
1633
1633
|
* Called directly after a permission group is deleted.
|
1634
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1634
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_permission_group_deleted Online documentation}
|
1635
1635
|
*/
|
1636
1636
|
interface OnPermissionGroupDeletedEvent extends EventData {
|
1637
1637
|
/**
|
@@ -1657,7 +1657,7 @@ declare module "factorio:runtime" {
|
|
1657
1657
|
}
|
1658
1658
|
/**
|
1659
1659
|
* Called directly after a permission group is edited in some way.
|
1660
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1660
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_permission_group_edited Online documentation}
|
1661
1661
|
*/
|
1662
1662
|
interface OnPermissionGroupEditedEvent extends EventData {
|
1663
1663
|
/**
|
@@ -1706,7 +1706,7 @@ declare module "factorio:runtime" {
|
|
1706
1706
|
}
|
1707
1707
|
/**
|
1708
1708
|
* Called directly after a permission string is imported.
|
1709
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1709
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_permission_string_imported Online documentation}
|
1710
1710
|
*/
|
1711
1711
|
interface OnPermissionStringImportedEvent extends EventData {
|
1712
1712
|
/**
|
@@ -1724,7 +1724,7 @@ declare module "factorio:runtime" {
|
|
1724
1724
|
}
|
1725
1725
|
/**
|
1726
1726
|
* Called when a player picks up an item.
|
1727
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1727
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_picked_up_item Online documentation}
|
1728
1728
|
*/
|
1729
1729
|
interface OnPickedUpItemEvent extends EventData {
|
1730
1730
|
readonly item_stack: ItemWithQualityCount
|
@@ -1740,7 +1740,7 @@ declare module "factorio:runtime" {
|
|
1740
1740
|
}
|
1741
1741
|
/**
|
1742
1742
|
* Called after a player alt-reverse-selects an area with a selection-tool item.
|
1743
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1743
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_alt_reverse_selected_area Online documentation}
|
1744
1744
|
*/
|
1745
1745
|
interface OnPlayerAltReverseSelectedAreaEvent extends EventData {
|
1746
1746
|
/**
|
@@ -1778,7 +1778,7 @@ declare module "factorio:runtime" {
|
|
1778
1778
|
}
|
1779
1779
|
/**
|
1780
1780
|
* Called after a player alt-selects an area with a selection-tool item.
|
1781
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1781
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_alt_selected_area Online documentation}
|
1782
1782
|
*/
|
1783
1783
|
interface OnPlayerAltSelectedAreaEvent extends EventData {
|
1784
1784
|
/**
|
@@ -1820,7 +1820,7 @@ declare module "factorio:runtime" {
|
|
1820
1820
|
}
|
1821
1821
|
/**
|
1822
1822
|
* Called after a players ammo inventory changed in some way.
|
1823
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1823
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_ammo_inventory_changed Online documentation}
|
1824
1824
|
*/
|
1825
1825
|
interface OnPlayerAmmoInventoryChangedEvent extends EventData {
|
1826
1826
|
readonly player_index: PlayerIndex
|
@@ -1835,7 +1835,7 @@ declare module "factorio:runtime" {
|
|
1835
1835
|
}
|
1836
1836
|
/**
|
1837
1837
|
* Called after a players armor inventory changed in some way.
|
1838
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1838
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_armor_inventory_changed Online documentation}
|
1839
1839
|
*/
|
1840
1840
|
interface OnPlayerArmorInventoryChangedEvent extends EventData {
|
1841
1841
|
readonly player_index: PlayerIndex
|
@@ -1850,7 +1850,7 @@ declare module "factorio:runtime" {
|
|
1850
1850
|
}
|
1851
1851
|
/**
|
1852
1852
|
* Called when a player is banned.
|
1853
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1853
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_banned Online documentation}
|
1854
1854
|
*/
|
1855
1855
|
interface OnPlayerBannedEvent extends EventData {
|
1856
1856
|
/**
|
@@ -1880,7 +1880,7 @@ declare module "factorio:runtime" {
|
|
1880
1880
|
}
|
1881
1881
|
/**
|
1882
1882
|
* Called after a player builds tiles.
|
1883
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1883
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_built_tile Online documentation}
|
1884
1884
|
*/
|
1885
1885
|
interface OnPlayerBuiltTileEvent extends EventData {
|
1886
1886
|
readonly player_index: PlayerIndex
|
@@ -1919,7 +1919,7 @@ declare module "factorio:runtime" {
|
|
1919
1919
|
}
|
1920
1920
|
/**
|
1921
1921
|
* Called when a player cancels crafting.
|
1922
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1922
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_cancelled_crafting Online documentation}
|
1923
1923
|
*/
|
1924
1924
|
interface OnPlayerCancelledCraftingEvent extends EventData {
|
1925
1925
|
/**
|
@@ -1949,7 +1949,7 @@ declare module "factorio:runtime" {
|
|
1949
1949
|
}
|
1950
1950
|
/**
|
1951
1951
|
* Called after a player changes forces.
|
1952
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1952
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_changed_force Online documentation}
|
1953
1953
|
*/
|
1954
1954
|
interface OnPlayerChangedForceEvent extends EventData {
|
1955
1955
|
/**
|
@@ -1971,7 +1971,7 @@ declare module "factorio:runtime" {
|
|
1971
1971
|
}
|
1972
1972
|
/**
|
1973
1973
|
* Called when the tile position a player is located at changes.
|
1974
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1974
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_changed_position Online documentation}
|
1975
1975
|
*/
|
1976
1976
|
interface OnPlayerChangedPositionEvent extends EventData {
|
1977
1977
|
/**
|
@@ -1989,7 +1989,7 @@ declare module "factorio:runtime" {
|
|
1989
1989
|
}
|
1990
1990
|
/**
|
1991
1991
|
* Called after a player changes surfaces.
|
1992
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1992
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_changed_surface Online documentation}
|
1993
1993
|
*/
|
1994
1994
|
interface OnPlayerChangedSurfaceEvent extends EventData {
|
1995
1995
|
/**
|
@@ -2011,7 +2011,7 @@ declare module "factorio:runtime" {
|
|
2011
2011
|
}
|
2012
2012
|
/**
|
2013
2013
|
* Called when cheat mode is disabled on a player.
|
2014
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2014
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_cheat_mode_disabled Online documentation}
|
2015
2015
|
*/
|
2016
2016
|
interface OnPlayerCheatModeDisabledEvent extends EventData {
|
2017
2017
|
/**
|
@@ -2029,7 +2029,7 @@ declare module "factorio:runtime" {
|
|
2029
2029
|
}
|
2030
2030
|
/**
|
2031
2031
|
* Called when cheat mode is enabled on a player.
|
2032
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2032
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_cheat_mode_enabled Online documentation}
|
2033
2033
|
*/
|
2034
2034
|
interface OnPlayerCheatModeEnabledEvent extends EventData {
|
2035
2035
|
/**
|
@@ -2047,7 +2047,7 @@ declare module "factorio:runtime" {
|
|
2047
2047
|
}
|
2048
2048
|
/**
|
2049
2049
|
* Called when a player clicks a gps tag
|
2050
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2050
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_clicked_gps_tag Online documentation}
|
2051
2051
|
*/
|
2052
2052
|
interface OnPlayerClickedGpsTagEvent extends EventData {
|
2053
2053
|
/**
|
@@ -2073,7 +2073,7 @@ declare module "factorio:runtime" {
|
|
2073
2073
|
}
|
2074
2074
|
/**
|
2075
2075
|
* Called when a player clicks the "confirm" button in the configure Blueprint GUI.
|
2076
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2076
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_configured_blueprint Online documentation}
|
2077
2077
|
*/
|
2078
2078
|
interface OnPlayerConfiguredBlueprintEvent extends EventData {
|
2079
2079
|
/**
|
@@ -2091,7 +2091,7 @@ declare module "factorio:runtime" {
|
|
2091
2091
|
}
|
2092
2092
|
/**
|
2093
2093
|
* Called after a player changes controller types.
|
2094
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2094
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_controller_changed Online documentation}
|
2095
2095
|
*/
|
2096
2096
|
interface OnPlayerControllerChangedEvent extends EventData {
|
2097
2097
|
/**
|
@@ -2113,7 +2113,7 @@ declare module "factorio:runtime" {
|
|
2113
2113
|
}
|
2114
2114
|
/**
|
2115
2115
|
* 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}).
|
2116
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2116
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_crafted_item Online documentation}
|
2117
2117
|
*/
|
2118
2118
|
interface OnPlayerCraftedItemEvent extends EventData {
|
2119
2119
|
/**
|
@@ -2139,7 +2139,7 @@ declare module "factorio:runtime" {
|
|
2139
2139
|
}
|
2140
2140
|
/**
|
2141
2141
|
* Called after the player was created.
|
2142
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2142
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_created Online documentation}
|
2143
2143
|
*/
|
2144
2144
|
interface OnPlayerCreatedEvent extends EventData {
|
2145
2145
|
readonly player_index: PlayerIndex
|
@@ -2156,7 +2156,7 @@ declare module "factorio:runtime" {
|
|
2156
2156
|
* Called after a player's {@link LuaControl#cursor_stack cursor stack} changed in some way.
|
2157
2157
|
*
|
2158
2158
|
* This is fired in the same tick that the change happens, but not instantly.
|
2159
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2159
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_cursor_stack_changed Online documentation}
|
2160
2160
|
*/
|
2161
2161
|
interface OnPlayerCursorStackChangedEvent extends EventData {
|
2162
2162
|
readonly player_index: PlayerIndex
|
@@ -2171,7 +2171,7 @@ declare module "factorio:runtime" {
|
|
2171
2171
|
}
|
2172
2172
|
/**
|
2173
2173
|
* Called when a player selects an area with a deconstruction planner.
|
2174
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2174
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_deconstructed_area Online documentation}
|
2175
2175
|
*/
|
2176
2176
|
interface OnPlayerDeconstructedAreaEvent extends EventData {
|
2177
2177
|
/**
|
@@ -2217,7 +2217,7 @@ declare module "factorio:runtime" {
|
|
2217
2217
|
}
|
2218
2218
|
/**
|
2219
2219
|
* Called when a player is demoted.
|
2220
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2220
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_demoted Online documentation}
|
2221
2221
|
*/
|
2222
2222
|
interface OnPlayerDemotedEvent extends EventData {
|
2223
2223
|
/**
|
@@ -2235,7 +2235,7 @@ declare module "factorio:runtime" {
|
|
2235
2235
|
}
|
2236
2236
|
/**
|
2237
2237
|
* Called after a player dies.
|
2238
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2238
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_died Online documentation}
|
2239
2239
|
*/
|
2240
2240
|
interface OnPlayerDiedEvent extends EventData {
|
2241
2241
|
readonly player_index: PlayerIndex
|
@@ -2251,7 +2251,7 @@ declare module "factorio:runtime" {
|
|
2251
2251
|
}
|
2252
2252
|
/**
|
2253
2253
|
* 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.
|
2254
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2254
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_display_density_scale_changed Online documentation}
|
2255
2255
|
*/
|
2256
2256
|
interface OnPlayerDisplayDensityScaleChangedEvent extends EventData {
|
2257
2257
|
/**
|
@@ -2273,7 +2273,7 @@ declare module "factorio:runtime" {
|
|
2273
2273
|
}
|
2274
2274
|
/**
|
2275
2275
|
* Called when the display resolution changes for a given player.
|
2276
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2276
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_display_resolution_changed Online documentation}
|
2277
2277
|
*/
|
2278
2278
|
interface OnPlayerDisplayResolutionChangedEvent extends EventData {
|
2279
2279
|
/**
|
@@ -2295,7 +2295,7 @@ declare module "factorio:runtime" {
|
|
2295
2295
|
}
|
2296
2296
|
/**
|
2297
2297
|
* Called when the display scale changes for a given player.
|
2298
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2298
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_display_scale_changed Online documentation}
|
2299
2299
|
*/
|
2300
2300
|
interface OnPlayerDisplayScaleChangedEvent extends EventData {
|
2301
2301
|
/**
|
@@ -2319,7 +2319,7 @@ declare module "factorio:runtime" {
|
|
2319
2319
|
* Called when the player's driving state has changed, meaning a player has either entered or left a vehicle.
|
2320
2320
|
*
|
2321
2321
|
* This event is not raised when the player is ejected from a vehicle due to it being destroyed.
|
2322
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2322
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_driving_changed_state Online documentation}
|
2323
2323
|
*/
|
2324
2324
|
interface OnPlayerDrivingChangedStateEvent extends EventData {
|
2325
2325
|
readonly player_index: PlayerIndex
|
@@ -2338,7 +2338,7 @@ declare module "factorio:runtime" {
|
|
2338
2338
|
}
|
2339
2339
|
/**
|
2340
2340
|
* Called when a player drops an item on the ground.
|
2341
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2341
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_dropped_item Online documentation}
|
2342
2342
|
*/
|
2343
2343
|
interface OnPlayerDroppedItemEvent extends EventData {
|
2344
2344
|
readonly player_index: PlayerIndex
|
@@ -2357,7 +2357,7 @@ declare module "factorio:runtime" {
|
|
2357
2357
|
}
|
2358
2358
|
/**
|
2359
2359
|
* Called when a player fast-transfers something to or from an entity.
|
2360
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2360
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_fast_transferred Online documentation}
|
2361
2361
|
*/
|
2362
2362
|
interface OnPlayerFastTransferredEvent extends EventData {
|
2363
2363
|
/**
|
@@ -2389,7 +2389,7 @@ declare module "factorio:runtime" {
|
|
2389
2389
|
* 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.
|
2390
2390
|
*
|
2391
2391
|
* This event reflects a change in the {@link LuaEntity#mirroring LuaEntity::mirroring} property.
|
2392
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2392
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_flipped_entity Online documentation}
|
2393
2393
|
*/
|
2394
2394
|
interface OnPlayerFlippedEntityEvent extends EventData {
|
2395
2395
|
/**
|
@@ -2412,7 +2412,7 @@ declare module "factorio:runtime" {
|
|
2412
2412
|
}
|
2413
2413
|
/**
|
2414
2414
|
* Called after player flushed fluid
|
2415
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2415
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_flushed_fluid Online documentation}
|
2416
2416
|
*/
|
2417
2417
|
interface OnPlayerFlushedFluidEvent extends EventData {
|
2418
2418
|
/**
|
@@ -2446,7 +2446,7 @@ declare module "factorio:runtime" {
|
|
2446
2446
|
}
|
2447
2447
|
/**
|
2448
2448
|
* Called after a players gun inventory changed in some way.
|
2449
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2449
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_gun_inventory_changed Online documentation}
|
2450
2450
|
*/
|
2451
2451
|
interface OnPlayerGunInventoryChangedEvent extends EventData {
|
2452
2452
|
readonly player_index: PlayerIndex
|
@@ -2461,7 +2461,7 @@ declare module "factorio:runtime" {
|
|
2461
2461
|
}
|
2462
2462
|
/**
|
2463
2463
|
* Called when a player's input method changes. See {@link LuaPlayer#input_method LuaPlayer::input_method}.
|
2464
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2464
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_input_method_changed Online documentation}
|
2465
2465
|
*/
|
2466
2466
|
interface OnPlayerInputMethodChangedEvent extends EventData {
|
2467
2467
|
/**
|
@@ -2479,7 +2479,7 @@ declare module "factorio:runtime" {
|
|
2479
2479
|
}
|
2480
2480
|
/**
|
2481
2481
|
* 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.
|
2482
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2482
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_joined_game Online documentation}
|
2483
2483
|
*/
|
2484
2484
|
interface OnPlayerJoinedGameEvent extends EventData {
|
2485
2485
|
readonly player_index: PlayerIndex
|
@@ -2494,7 +2494,7 @@ declare module "factorio:runtime" {
|
|
2494
2494
|
}
|
2495
2495
|
/**
|
2496
2496
|
* Called when a player is kicked.
|
2497
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2497
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_kicked Online documentation}
|
2498
2498
|
*/
|
2499
2499
|
interface OnPlayerKickedEvent extends EventData {
|
2500
2500
|
/**
|
@@ -2520,7 +2520,7 @@ declare module "factorio:runtime" {
|
|
2520
2520
|
}
|
2521
2521
|
/**
|
2522
2522
|
* 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.
|
2523
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2523
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_left_game Online documentation}
|
2524
2524
|
*/
|
2525
2525
|
interface OnPlayerLeftGameEvent extends EventData {
|
2526
2526
|
readonly player_index: PlayerIndex
|
@@ -2536,7 +2536,7 @@ declare module "factorio:runtime" {
|
|
2536
2536
|
}
|
2537
2537
|
/**
|
2538
2538
|
* Called when a player's active locale changes. See {@link LuaPlayer#locale LuaPlayer::locale}.
|
2539
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2539
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_locale_changed Online documentation}
|
2540
2540
|
*/
|
2541
2541
|
interface OnPlayerLocaleChangedEvent extends EventData {
|
2542
2542
|
/**
|
@@ -2558,7 +2558,7 @@ declare module "factorio:runtime" {
|
|
2558
2558
|
}
|
2559
2559
|
/**
|
2560
2560
|
* Called after a players main inventory changed in some way.
|
2561
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2561
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_main_inventory_changed Online documentation}
|
2562
2562
|
*/
|
2563
2563
|
interface OnPlayerMainInventoryChangedEvent extends EventData {
|
2564
2564
|
readonly player_index: PlayerIndex
|
@@ -2579,7 +2579,7 @@ declare module "factorio:runtime" {
|
|
2579
2579
|
* 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.
|
2580
2580
|
*
|
2581
2581
|
* Event filter: [LuaPlayerMinedEntityEventFilter](LuaPlayerMinedEntityEventFilter]
|
2582
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2582
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_mined_entity Online documentation}
|
2583
2583
|
*/
|
2584
2584
|
interface OnPlayerMinedEntityEvent extends EventData {
|
2585
2585
|
/**
|
@@ -2605,7 +2605,7 @@ declare module "factorio:runtime" {
|
|
2605
2605
|
}
|
2606
2606
|
/**
|
2607
2607
|
* Called when the player mines something.
|
2608
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2608
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_mined_item Online documentation}
|
2609
2609
|
*/
|
2610
2610
|
interface OnPlayerMinedItemEvent extends EventData {
|
2611
2611
|
/**
|
@@ -2624,7 +2624,7 @@ declare module "factorio:runtime" {
|
|
2624
2624
|
}
|
2625
2625
|
/**
|
2626
2626
|
* Called after a player mines tiles.
|
2627
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2627
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_mined_tile Online documentation}
|
2628
2628
|
*/
|
2629
2629
|
interface OnPlayerMinedTileEvent extends EventData {
|
2630
2630
|
readonly player_index: PlayerIndex
|
@@ -2647,7 +2647,7 @@ declare module "factorio:runtime" {
|
|
2647
2647
|
}
|
2648
2648
|
/**
|
2649
2649
|
* Called when a player is muted.
|
2650
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2650
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_muted Online documentation}
|
2651
2651
|
*/
|
2652
2652
|
interface OnPlayerMutedEvent extends EventData {
|
2653
2653
|
/**
|
@@ -2665,7 +2665,7 @@ declare module "factorio:runtime" {
|
|
2665
2665
|
}
|
2666
2666
|
/**
|
2667
2667
|
* Called when a player invokes the "smart pipette" over an entity.
|
2668
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2668
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_pipette Online documentation}
|
2669
2669
|
*/
|
2670
2670
|
interface OnPlayerPipetteEvent extends EventData {
|
2671
2671
|
/**
|
@@ -2695,7 +2695,7 @@ declare module "factorio:runtime" {
|
|
2695
2695
|
}
|
2696
2696
|
/**
|
2697
2697
|
* Called after the player puts equipment in an equipment grid
|
2698
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2698
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_placed_equipment Online documentation}
|
2699
2699
|
*/
|
2700
2700
|
interface OnPlayerPlacedEquipmentEvent extends EventData {
|
2701
2701
|
readonly player_index: PlayerIndex
|
@@ -2718,7 +2718,7 @@ declare module "factorio:runtime" {
|
|
2718
2718
|
}
|
2719
2719
|
/**
|
2720
2720
|
* Called when a player is promoted.
|
2721
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2721
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_promoted Online documentation}
|
2722
2722
|
*/
|
2723
2723
|
interface OnPlayerPromotedEvent extends EventData {
|
2724
2724
|
/**
|
@@ -2736,7 +2736,7 @@ declare module "factorio:runtime" {
|
|
2736
2736
|
}
|
2737
2737
|
/**
|
2738
2738
|
* 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.
|
2739
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2739
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_removed Online documentation}
|
2740
2740
|
*/
|
2741
2741
|
interface OnPlayerRemovedEvent extends EventData {
|
2742
2742
|
/**
|
@@ -2754,7 +2754,7 @@ declare module "factorio:runtime" {
|
|
2754
2754
|
}
|
2755
2755
|
/**
|
2756
2756
|
* Called after the player removes equipment from an equipment grid
|
2757
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2757
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_removed_equipment Online documentation}
|
2758
2758
|
*/
|
2759
2759
|
interface OnPlayerRemovedEquipmentEvent extends EventData {
|
2760
2760
|
readonly player_index: PlayerIndex
|
@@ -2787,7 +2787,7 @@ declare module "factorio:runtime" {
|
|
2787
2787
|
* Called when a player repairs an entity.
|
2788
2788
|
*
|
2789
2789
|
* Event filter: [LuaPlayerRepairedEntityEventFilter](LuaPlayerRepairedEntityEventFilter]
|
2790
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2790
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_repaired_entity Online documentation}
|
2791
2791
|
*/
|
2792
2792
|
interface OnPlayerRepairedEntityEvent extends EventData {
|
2793
2793
|
readonly player_index: PlayerIndex
|
@@ -2803,7 +2803,7 @@ declare module "factorio:runtime" {
|
|
2803
2803
|
}
|
2804
2804
|
/**
|
2805
2805
|
* Called after a player respawns.
|
2806
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2806
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_respawned Online documentation}
|
2807
2807
|
*/
|
2808
2808
|
interface OnPlayerRespawnedEvent extends EventData {
|
2809
2809
|
readonly player_index: PlayerIndex
|
@@ -2822,7 +2822,7 @@ declare module "factorio:runtime" {
|
|
2822
2822
|
}
|
2823
2823
|
/**
|
2824
2824
|
* Called after a player reverse-selects an area with a selection-tool item.
|
2825
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2825
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_reverse_selected_area Online documentation}
|
2826
2826
|
*/
|
2827
2827
|
interface OnPlayerReverseSelectedAreaEvent extends EventData {
|
2828
2828
|
/**
|
@@ -2862,7 +2862,7 @@ declare module "factorio:runtime" {
|
|
2862
2862
|
* 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.
|
2863
2863
|
*
|
2864
2864
|
* Entities being flipped will not fire this event, even if the flip involves rotating. See {@link OnPlayerFlippedEntityEvent on_player_flipped_entity}.
|
2865
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2865
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_rotated_entity Online documentation}
|
2866
2866
|
*/
|
2867
2867
|
interface OnPlayerRotatedEntityEvent extends EventData {
|
2868
2868
|
/**
|
@@ -2885,7 +2885,7 @@ declare module "factorio:runtime" {
|
|
2885
2885
|
}
|
2886
2886
|
/**
|
2887
2887
|
* Called after a player selects an area with a selection-tool item.
|
2888
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2888
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_selected_area Online documentation}
|
2889
2889
|
*/
|
2890
2890
|
interface OnPlayerSelectedAreaEvent extends EventData {
|
2891
2891
|
/**
|
@@ -2927,7 +2927,7 @@ declare module "factorio:runtime" {
|
|
2927
2927
|
}
|
2928
2928
|
/**
|
2929
2929
|
* Called when a player sets a quickbar slot to anything (new value, or set to empty).
|
2930
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2930
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_set_quick_bar_slot Online documentation}
|
2931
2931
|
*/
|
2932
2932
|
interface OnPlayerSetQuickBarSlotEvent extends EventData {
|
2933
2933
|
readonly player_index: PlayerIndex
|
@@ -2942,7 +2942,7 @@ declare module "factorio:runtime" {
|
|
2942
2942
|
}
|
2943
2943
|
/**
|
2944
2944
|
* Called when a player selects an area with a blueprint.
|
2945
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2945
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_setup_blueprint Online documentation}
|
2946
2946
|
*/
|
2947
2947
|
interface OnPlayerSetupBlueprintEvent extends EventData {
|
2948
2948
|
/**
|
@@ -2992,7 +2992,7 @@ declare module "factorio:runtime" {
|
|
2992
2992
|
}
|
2993
2993
|
/**
|
2994
2994
|
* Called when a player toggles alt mode, also known as "show entity info".
|
2995
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2995
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_toggled_alt_mode Online documentation}
|
2996
2996
|
*/
|
2997
2997
|
interface OnPlayerToggledAltModeEvent extends EventData {
|
2998
2998
|
readonly player_index: PlayerIndex
|
@@ -3011,7 +3011,7 @@ declare module "factorio:runtime" {
|
|
3011
3011
|
}
|
3012
3012
|
/**
|
3013
3013
|
* Called when a player toggles the map editor on or off.
|
3014
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3014
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_toggled_map_editor Online documentation}
|
3015
3015
|
*/
|
3016
3016
|
interface OnPlayerToggledMapEditorEvent extends EventData {
|
3017
3017
|
readonly player_index: PlayerIndex
|
@@ -3026,7 +3026,7 @@ declare module "factorio:runtime" {
|
|
3026
3026
|
}
|
3027
3027
|
/**
|
3028
3028
|
* Called after a players trash inventory changed in some way.
|
3029
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3029
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_trash_inventory_changed Online documentation}
|
3030
3030
|
*/
|
3031
3031
|
interface OnPlayerTrashInventoryChangedEvent extends EventData {
|
3032
3032
|
readonly player_index: PlayerIndex
|
@@ -3041,7 +3041,7 @@ declare module "factorio:runtime" {
|
|
3041
3041
|
}
|
3042
3042
|
/**
|
3043
3043
|
* Called when a player is un-banned.
|
3044
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3044
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_unbanned Online documentation}
|
3045
3045
|
*/
|
3046
3046
|
interface OnPlayerUnbannedEvent extends EventData {
|
3047
3047
|
/**
|
@@ -3071,7 +3071,7 @@ declare module "factorio:runtime" {
|
|
3071
3071
|
}
|
3072
3072
|
/**
|
3073
3073
|
* Called when a player is unmuted.
|
3074
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3074
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_unmuted Online documentation}
|
3075
3075
|
*/
|
3076
3076
|
interface OnPlayerUnmutedEvent extends EventData {
|
3077
3077
|
/**
|
@@ -3089,7 +3089,7 @@ declare module "factorio:runtime" {
|
|
3089
3089
|
}
|
3090
3090
|
/**
|
3091
3091
|
* Called when a player uses a capsule that results in some game action.
|
3092
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3092
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_used_capsule Online documentation}
|
3093
3093
|
*/
|
3094
3094
|
interface OnPlayerUsedCapsuleEvent extends EventData {
|
3095
3095
|
/**
|
@@ -3119,7 +3119,7 @@ declare module "factorio:runtime" {
|
|
3119
3119
|
}
|
3120
3120
|
/**
|
3121
3121
|
* Called when a player uses spidertron remote to send all selected units to a given position
|
3122
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3122
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_player_used_spidertron_remote Online documentation}
|
3123
3123
|
*/
|
3124
3124
|
interface OnPlayerUsedSpidertronRemoteEvent extends EventData {
|
3125
3125
|
/**
|
@@ -3143,7 +3143,7 @@ declare module "factorio:runtime" {
|
|
3143
3143
|
* Called after an entity dies.
|
3144
3144
|
*
|
3145
3145
|
* Event filter: [LuaPostEntityDiedEventFilter](LuaPostEntityDiedEventFilter]
|
3146
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3146
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_post_entity_died Online documentation}
|
3147
3147
|
*/
|
3148
3148
|
interface OnPostEntityDiedEvent extends EventData {
|
3149
3149
|
/**
|
@@ -3195,7 +3195,7 @@ declare module "factorio:runtime" {
|
|
3195
3195
|
* Called after a segmented unit dies.
|
3196
3196
|
*
|
3197
3197
|
* Event filter: [LuaPostSegmentedUnitDiedEventFilter](LuaPostSegmentedUnitDiedEventFilter]
|
3198
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3198
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_post_segmented_unit_died Online documentation}
|
3199
3199
|
*/
|
3200
3200
|
interface OnPostSegmentedUnitDiedEvent extends EventData {
|
3201
3201
|
/**
|
@@ -3237,7 +3237,7 @@ declare module "factorio:runtime" {
|
|
3237
3237
|
}
|
3238
3238
|
/**
|
3239
3239
|
* Called when players uses an item to build something. Called before {@link OnBuiltEntityEvent on_built_entity}.
|
3240
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3240
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_build Online documentation}
|
3241
3241
|
*/
|
3242
3242
|
interface OnPreBuildEvent extends EventData {
|
3243
3243
|
/**
|
@@ -3283,7 +3283,7 @@ declare module "factorio:runtime" {
|
|
3283
3283
|
}
|
3284
3284
|
/**
|
3285
3285
|
* Called before one or more chunks are deleted using {@link LuaSurface#delete_chunk LuaSurface::delete_chunk}.
|
3286
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3286
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_chunk_deleted Online documentation}
|
3287
3287
|
*/
|
3288
3288
|
interface OnPreChunkDeletedEvent extends EventData {
|
3289
3289
|
readonly surface_index: SurfaceIndex
|
@@ -3302,7 +3302,7 @@ declare module "factorio:runtime" {
|
|
3302
3302
|
}
|
3303
3303
|
/**
|
3304
3304
|
* Called before entity copy-paste is done.
|
3305
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3305
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_entity_settings_pasted Online documentation}
|
3306
3306
|
*/
|
3307
3307
|
interface OnPreEntitySettingsPastedEvent extends EventData {
|
3308
3308
|
readonly player_index: PlayerIndex
|
@@ -3329,7 +3329,7 @@ declare module "factorio:runtime" {
|
|
3329
3329
|
* Also called for item request proxies before they are destroyed as a result of being marked for deconstruction.
|
3330
3330
|
*
|
3331
3331
|
* Event filter: [LuaPreGhostDeconstructedEventFilter](LuaPreGhostDeconstructedEventFilter]
|
3332
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3332
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_ghost_deconstructed Online documentation}
|
3333
3333
|
*/
|
3334
3334
|
interface OnPreGhostDeconstructedEvent extends EventData {
|
3335
3335
|
/**
|
@@ -3350,7 +3350,7 @@ declare module "factorio:runtime" {
|
|
3350
3350
|
* Called before a ghost entity is upgraded.
|
3351
3351
|
*
|
3352
3352
|
* Event filter: [LuaPreGhostUpgradedEventFilter](LuaPreGhostUpgradedEventFilter]
|
3353
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3353
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_ghost_upgraded Online documentation}
|
3354
3354
|
*/
|
3355
3355
|
interface OnPreGhostUpgradedEvent extends EventData {
|
3356
3356
|
/**
|
@@ -3371,7 +3371,7 @@ declare module "factorio:runtime" {
|
|
3371
3371
|
}
|
3372
3372
|
/**
|
3373
3373
|
* Called directly before a permission group is deleted.
|
3374
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3374
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_permission_group_deleted Online documentation}
|
3375
3375
|
*/
|
3376
3376
|
interface OnPrePermissionGroupDeletedEvent extends EventData {
|
3377
3377
|
/**
|
@@ -3393,7 +3393,7 @@ declare module "factorio:runtime" {
|
|
3393
3393
|
}
|
3394
3394
|
/**
|
3395
3395
|
* Called directly before a permission string is imported.
|
3396
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3396
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_permission_string_imported Online documentation}
|
3397
3397
|
*/
|
3398
3398
|
interface OnPrePermissionStringImportedEvent extends EventData {
|
3399
3399
|
/**
|
@@ -3411,7 +3411,7 @@ declare module "factorio:runtime" {
|
|
3411
3411
|
}
|
3412
3412
|
/**
|
3413
3413
|
* Called when a player queues something to be crafted.
|
3414
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3414
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_player_crafted_item Online documentation}
|
3415
3415
|
*/
|
3416
3416
|
interface OnPrePlayerCraftedItemEvent extends EventData {
|
3417
3417
|
/**
|
@@ -3441,7 +3441,7 @@ declare module "factorio:runtime" {
|
|
3441
3441
|
}
|
3442
3442
|
/**
|
3443
3443
|
* Called before a players dies.
|
3444
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3444
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_player_died Online documentation}
|
3445
3445
|
*/
|
3446
3446
|
interface OnPrePlayerDiedEvent extends EventData {
|
3447
3447
|
readonly player_index: PlayerIndex
|
@@ -3457,7 +3457,7 @@ declare module "factorio:runtime" {
|
|
3457
3457
|
}
|
3458
3458
|
/**
|
3459
3459
|
* Called before a player leaves the game.
|
3460
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3460
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_player_left_game Online documentation}
|
3461
3461
|
*/
|
3462
3462
|
interface OnPrePlayerLeftGameEvent extends EventData {
|
3463
3463
|
readonly player_index: PlayerIndex
|
@@ -3475,7 +3475,7 @@ declare module "factorio:runtime" {
|
|
3475
3475
|
* 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.
|
3476
3476
|
*
|
3477
3477
|
* Event filter: [LuaPrePlayerMinedEntityEventFilter](LuaPrePlayerMinedEntityEventFilter]
|
3478
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3478
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_player_mined_item Online documentation}
|
3479
3479
|
*/
|
3480
3480
|
interface OnPrePlayerMinedItemEvent extends EventData {
|
3481
3481
|
/**
|
@@ -3494,7 +3494,7 @@ declare module "factorio:runtime" {
|
|
3494
3494
|
}
|
3495
3495
|
/**
|
3496
3496
|
* 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.
|
3497
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3497
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_player_removed Online documentation}
|
3498
3498
|
*/
|
3499
3499
|
interface OnPrePlayerRemovedEvent extends EventData {
|
3500
3500
|
/**
|
@@ -3512,7 +3512,7 @@ declare module "factorio:runtime" {
|
|
3512
3512
|
}
|
3513
3513
|
/**
|
3514
3514
|
* Called before a player toggles the map editor on or off.
|
3515
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3515
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_player_toggled_map_editor Online documentation}
|
3516
3516
|
*/
|
3517
3517
|
interface OnPrePlayerToggledMapEditorEvent extends EventData {
|
3518
3518
|
readonly player_index: PlayerIndex
|
@@ -3527,7 +3527,7 @@ declare module "factorio:runtime" {
|
|
3527
3527
|
}
|
3528
3528
|
/**
|
3529
3529
|
* Called directly before a robot explodes cliffs.
|
3530
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3530
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_robot_exploded_cliff Online documentation}
|
3531
3531
|
*/
|
3532
3532
|
interface OnPreRobotExplodedCliffEvent extends EventData {
|
3533
3533
|
readonly robot: LuaEntity
|
@@ -3551,7 +3551,7 @@ declare module "factorio:runtime" {
|
|
3551
3551
|
}
|
3552
3552
|
/**
|
3553
3553
|
* Called just before the scenario finishes.
|
3554
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3554
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_scenario_finished Online documentation}
|
3555
3555
|
*/
|
3556
3556
|
interface OnPreScenarioFinishedEvent extends EventData {
|
3557
3557
|
/**
|
@@ -3569,7 +3569,7 @@ declare module "factorio:runtime" {
|
|
3569
3569
|
}
|
3570
3570
|
/**
|
3571
3571
|
* Called just before a script inventory is resized.
|
3572
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3572
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_script_inventory_resized Online documentation}
|
3573
3573
|
*/
|
3574
3574
|
interface OnPreScriptInventoryResizedEvent extends EventData {
|
3575
3575
|
/**
|
@@ -3600,7 +3600,7 @@ declare module "factorio:runtime" {
|
|
3600
3600
|
}
|
3601
3601
|
/**
|
3602
3602
|
* Called just before a surface is cleared (all entities removed and all chunks deleted).
|
3603
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3603
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_surface_cleared Online documentation}
|
3604
3604
|
*/
|
3605
3605
|
interface OnPreSurfaceClearedEvent extends EventData {
|
3606
3606
|
readonly surface_index: SurfaceIndex
|
@@ -3615,7 +3615,7 @@ declare module "factorio:runtime" {
|
|
3615
3615
|
}
|
3616
3616
|
/**
|
3617
3617
|
* Called just before a surface is deleted.
|
3618
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3618
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_pre_surface_deleted Online documentation}
|
3619
3619
|
*/
|
3620
3620
|
interface OnPreSurfaceDeletedEvent extends EventData {
|
3621
3621
|
readonly surface_index: SurfaceIndex
|
@@ -3630,7 +3630,7 @@ declare module "factorio:runtime" {
|
|
3630
3630
|
}
|
3631
3631
|
/**
|
3632
3632
|
* Called when the player triggers "redo".
|
3633
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3633
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_redo_applied Online documentation}
|
3634
3634
|
*/
|
3635
3635
|
interface OnRedoAppliedEvent extends EventData {
|
3636
3636
|
/**
|
@@ -3652,7 +3652,7 @@ declare module "factorio:runtime" {
|
|
3652
3652
|
}
|
3653
3653
|
/**
|
3654
3654
|
* Called when research is cancelled.
|
3655
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3655
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_research_cancelled Online documentation}
|
3656
3656
|
*/
|
3657
3657
|
interface OnResearchCancelledEvent extends EventData {
|
3658
3658
|
/**
|
@@ -3678,7 +3678,7 @@ declare module "factorio:runtime" {
|
|
3678
3678
|
}
|
3679
3679
|
/**
|
3680
3680
|
* Called when a research finishes.
|
3681
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3681
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_research_finished Online documentation}
|
3682
3682
|
*/
|
3683
3683
|
interface OnResearchFinishedEvent extends EventData {
|
3684
3684
|
/**
|
@@ -3700,7 +3700,7 @@ declare module "factorio:runtime" {
|
|
3700
3700
|
}
|
3701
3701
|
/**
|
3702
3702
|
* Called when research is moved forwards or backwards in the research queue.
|
3703
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3703
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_research_moved Online documentation}
|
3704
3704
|
*/
|
3705
3705
|
interface OnResearchMovedEvent extends EventData {
|
3706
3706
|
/**
|
@@ -3722,7 +3722,7 @@ declare module "factorio:runtime" {
|
|
3722
3722
|
}
|
3723
3723
|
/**
|
3724
3724
|
* Called when research is queued.
|
3725
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3725
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_research_queued Online documentation}
|
3726
3726
|
*/
|
3727
3727
|
interface OnResearchQueuedEvent extends EventData {
|
3728
3728
|
/**
|
@@ -3748,7 +3748,7 @@ declare module "factorio:runtime" {
|
|
3748
3748
|
}
|
3749
3749
|
/**
|
3750
3750
|
* Called when a research is reversed (unresearched).
|
3751
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3751
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_research_reversed Online documentation}
|
3752
3752
|
*/
|
3753
3753
|
interface OnResearchReversedEvent extends EventData {
|
3754
3754
|
/**
|
@@ -3770,7 +3770,7 @@ declare module "factorio:runtime" {
|
|
3770
3770
|
}
|
3771
3771
|
/**
|
3772
3772
|
* Called when a technology research starts.
|
3773
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3773
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_research_started Online documentation}
|
3774
3774
|
*/
|
3775
3775
|
interface OnResearchStartedEvent extends EventData {
|
3776
3776
|
/**
|
@@ -3789,7 +3789,7 @@ declare module "factorio:runtime" {
|
|
3789
3789
|
}
|
3790
3790
|
/**
|
3791
3791
|
* Called when a resource entity reaches 0 or its minimum yield for infinite resources.
|
3792
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3792
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_resource_depleted Online documentation}
|
3793
3793
|
*/
|
3794
3794
|
interface OnResourceDepletedEvent extends EventData {
|
3795
3795
|
readonly entity: LuaEntity
|
@@ -3806,7 +3806,7 @@ declare module "factorio:runtime" {
|
|
3806
3806
|
* Called when a construction robot builds an entity.
|
3807
3807
|
*
|
3808
3808
|
* Event filter: [LuaRobotBuiltEntityEventFilter](LuaRobotBuiltEntityEventFilter]
|
3809
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3809
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_robot_built_entity Online documentation}
|
3810
3810
|
*/
|
3811
3811
|
interface OnRobotBuiltEntityEvent extends EventData {
|
3812
3812
|
/**
|
@@ -3836,7 +3836,7 @@ declare module "factorio:runtime" {
|
|
3836
3836
|
}
|
3837
3837
|
/**
|
3838
3838
|
* Called after a robot builds tiles.
|
3839
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3839
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_robot_built_tile Online documentation}
|
3840
3840
|
*/
|
3841
3841
|
interface OnRobotBuiltTileEvent extends EventData {
|
3842
3842
|
/**
|
@@ -3878,7 +3878,7 @@ declare module "factorio:runtime" {
|
|
3878
3878
|
}
|
3879
3879
|
/**
|
3880
3880
|
* Called directly after a robot explodes cliffs.
|
3881
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3881
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_robot_exploded_cliff Online documentation}
|
3882
3882
|
*/
|
3883
3883
|
interface OnRobotExplodedCliffEvent extends EventData {
|
3884
3884
|
readonly robot: LuaEntity
|
@@ -3901,7 +3901,7 @@ declare module "factorio:runtime" {
|
|
3901
3901
|
}
|
3902
3902
|
/**
|
3903
3903
|
* Called when a robot mines an entity.
|
3904
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3904
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_robot_mined Online documentation}
|
3905
3905
|
*/
|
3906
3906
|
interface OnRobotMinedEvent extends EventData {
|
3907
3907
|
/**
|
@@ -3929,7 +3929,7 @@ declare module "factorio:runtime" {
|
|
3929
3929
|
* 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.
|
3930
3930
|
*
|
3931
3931
|
* Event filter: [LuaRobotMinedEntityEventFilter](LuaRobotMinedEntityEventFilter]
|
3932
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3932
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_robot_mined_entity Online documentation}
|
3933
3933
|
*/
|
3934
3934
|
interface OnRobotMinedEntityEvent extends EventData {
|
3935
3935
|
/**
|
@@ -3955,7 +3955,7 @@ declare module "factorio:runtime" {
|
|
3955
3955
|
}
|
3956
3956
|
/**
|
3957
3957
|
* Called after a robot mines tiles.
|
3958
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3958
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_robot_mined_tile Online documentation}
|
3959
3959
|
*/
|
3960
3960
|
interface OnRobotMinedTileEvent extends EventData {
|
3961
3961
|
/**
|
@@ -3983,7 +3983,7 @@ declare module "factorio:runtime" {
|
|
3983
3983
|
* Called before a robot mines an entity.
|
3984
3984
|
*
|
3985
3985
|
* Event filter: [LuaPreRobotMinedEntityEventFilter](LuaPreRobotMinedEntityEventFilter]
|
3986
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3986
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_robot_pre_mined Online documentation}
|
3987
3987
|
*/
|
3988
3988
|
interface OnRobotPreMinedEvent extends EventData {
|
3989
3989
|
/**
|
@@ -4005,7 +4005,7 @@ declare module "factorio:runtime" {
|
|
4005
4005
|
}
|
4006
4006
|
/**
|
4007
4007
|
* Called when a rocket silo is ordered to be launched.
|
4008
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4008
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_rocket_launch_ordered Online documentation}
|
4009
4009
|
*/
|
4010
4010
|
interface OnRocketLaunchOrderedEvent extends EventData {
|
4011
4011
|
readonly rocket: LuaEntity
|
@@ -4025,7 +4025,7 @@ declare module "factorio:runtime" {
|
|
4025
4025
|
}
|
4026
4026
|
/**
|
4027
4027
|
* 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)
|
4028
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4028
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_rocket_launched Online documentation}
|
4029
4029
|
*/
|
4030
4030
|
interface OnRocketLaunchedEvent extends EventData {
|
4031
4031
|
readonly rocket: LuaEntity
|
@@ -4041,7 +4041,7 @@ declare module "factorio:runtime" {
|
|
4041
4041
|
}
|
4042
4042
|
/**
|
4043
4043
|
* Called when a runtime mod setting is changed by a player.
|
4044
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4044
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_runtime_mod_setting_changed Online documentation}
|
4045
4045
|
*/
|
4046
4046
|
interface OnRuntimeModSettingChangedEvent extends EventData {
|
4047
4047
|
/**
|
@@ -4064,7 +4064,7 @@ declare module "factorio:runtime" {
|
|
4064
4064
|
}
|
4065
4065
|
/**
|
4066
4066
|
* Called just after a script inventory is resized.
|
4067
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4067
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_script_inventory_resized Online documentation}
|
4068
4068
|
*/
|
4069
4069
|
interface OnScriptInventoryResizedEvent extends EventData {
|
4070
4070
|
/**
|
@@ -4099,7 +4099,7 @@ declare module "factorio:runtime" {
|
|
4099
4099
|
}
|
4100
4100
|
/**
|
4101
4101
|
* Called when a {@link LuaSurface#request_path LuaSurface::request_path} call completes.
|
4102
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4102
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_script_path_request_finished Online documentation}
|
4103
4103
|
*/
|
4104
4104
|
interface OnScriptPathRequestFinishedEvent extends EventData {
|
4105
4105
|
/**
|
@@ -4125,7 +4125,7 @@ declare module "factorio:runtime" {
|
|
4125
4125
|
}
|
4126
4126
|
/**
|
4127
4127
|
* Called when a script trigger effect is triggered.
|
4128
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4128
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_script_trigger_effect Online documentation}
|
4129
4129
|
*/
|
4130
4130
|
interface OnScriptTriggerEffectEvent extends EventData {
|
4131
4131
|
/**
|
@@ -4158,7 +4158,7 @@ declare module "factorio:runtime" {
|
|
4158
4158
|
* Called when an entity of type `radar` finishes scanning a sector.
|
4159
4159
|
*
|
4160
4160
|
* Event filter: [LuaSectorScannedEventFilter](LuaSectorScannedEventFilter]
|
4161
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4161
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_sector_scanned Online documentation}
|
4162
4162
|
*/
|
4163
4163
|
interface OnSectorScannedEvent extends EventData {
|
4164
4164
|
/**
|
@@ -4184,7 +4184,7 @@ declare module "factorio:runtime" {
|
|
4184
4184
|
}
|
4185
4185
|
/**
|
4186
4186
|
* Called when an individual segment of a SegmentedUnit is created.
|
4187
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4187
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_segment_entity_created Online documentation}
|
4188
4188
|
*/
|
4189
4189
|
interface OnSegmentEntityCreatedEvent extends EventData {
|
4190
4190
|
readonly entity: LuaEntity
|
@@ -4201,7 +4201,7 @@ declare module "factorio:runtime" {
|
|
4201
4201
|
* Called when a segmented unit is created for any reason.
|
4202
4202
|
*
|
4203
4203
|
* Event filter: [LuaSegmentedUnitCreatedEventFilter](LuaSegmentedUnitCreatedEventFilter]
|
4204
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4204
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_segmented_unit_created Online documentation}
|
4205
4205
|
*/
|
4206
4206
|
interface OnSegmentedUnitCreatedEvent extends EventData {
|
4207
4207
|
/**
|
@@ -4229,7 +4229,7 @@ declare module "factorio:runtime" {
|
|
4229
4229
|
* Called when a segmented unit is damaged. This is not called when a segmented unit's health is set directly by another mod.
|
4230
4230
|
*
|
4231
4231
|
* Event filter: [LuaSegmentedUnitDamagedEventFilter](LuaSegmentedUnitDamagedEventFilter]
|
4232
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4232
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_segmented_unit_damaged Online documentation}
|
4233
4233
|
*/
|
4234
4234
|
interface OnSegmentedUnitDamagedEvent extends EventData {
|
4235
4235
|
readonly segmented_unit: LuaSegmentedUnit
|
@@ -4271,7 +4271,7 @@ declare module "factorio:runtime" {
|
|
4271
4271
|
* Called when a segmented unit dies.
|
4272
4272
|
*
|
4273
4273
|
* Event filter: [LuaSegmentedUnitDiedEventFilter](LuaSegmentedUnitDiedEventFilter]
|
4274
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4274
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_segmented_unit_died Online documentation}
|
4275
4275
|
*/
|
4276
4276
|
interface OnSegmentedUnitDiedEvent extends EventData {
|
4277
4277
|
/**
|
@@ -4301,7 +4301,7 @@ declare module "factorio:runtime" {
|
|
4301
4301
|
}
|
4302
4302
|
/**
|
4303
4303
|
* Called after the selected entity changes for a given player.
|
4304
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4304
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_selected_entity_changed Online documentation}
|
4305
4305
|
*/
|
4306
4306
|
interface OnSelectedEntityChangedEvent extends EventData {
|
4307
4307
|
/**
|
@@ -4323,7 +4323,7 @@ declare module "factorio:runtime" {
|
|
4323
4323
|
}
|
4324
4324
|
/**
|
4325
4325
|
* 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.
|
4326
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4326
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_singleplayer_init Online documentation}
|
4327
4327
|
*/
|
4328
4328
|
interface OnSingleplayerInitEvent extends EventData {
|
4329
4329
|
/**
|
@@ -4339,7 +4339,7 @@ declare module "factorio:runtime" {
|
|
4339
4339
|
* Called when a space platform builds an entity.
|
4340
4340
|
*
|
4341
4341
|
* Event filter: [LuaPlatformBuiltEntityEventFilter](LuaPlatformBuiltEntityEventFilter]
|
4342
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4342
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_space_platform_built_entity Online documentation}
|
4343
4343
|
*/
|
4344
4344
|
interface OnSpacePlatformBuiltEntityEvent extends EventData {
|
4345
4345
|
/**
|
@@ -4369,7 +4369,7 @@ declare module "factorio:runtime" {
|
|
4369
4369
|
}
|
4370
4370
|
/**
|
4371
4371
|
* Called after a space platform builds tiles.
|
4372
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4372
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_space_platform_built_tile Online documentation}
|
4373
4373
|
*/
|
4374
4374
|
interface OnSpacePlatformBuiltTileEvent extends EventData {
|
4375
4375
|
/**
|
@@ -4411,7 +4411,7 @@ declare module "factorio:runtime" {
|
|
4411
4411
|
}
|
4412
4412
|
/**
|
4413
4413
|
* Called when a space platform changes state
|
4414
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4414
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_space_platform_changed_state Online documentation}
|
4415
4415
|
*/
|
4416
4416
|
interface OnSpacePlatformChangedStateEvent extends EventData {
|
4417
4417
|
readonly platform: LuaSpacePlatform
|
@@ -4433,7 +4433,7 @@ declare module "factorio:runtime" {
|
|
4433
4433
|
* 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.
|
4434
4434
|
*
|
4435
4435
|
* Event filter: [LuaPlatformMinedEntityEventFilter](LuaPlatformMinedEntityEventFilter]
|
4436
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4436
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_space_platform_mined_entity Online documentation}
|
4437
4437
|
*/
|
4438
4438
|
interface OnSpacePlatformMinedEntityEvent extends EventData {
|
4439
4439
|
/**
|
@@ -4459,7 +4459,7 @@ declare module "factorio:runtime" {
|
|
4459
4459
|
}
|
4460
4460
|
/**
|
4461
4461
|
* Called when a platform mines an entity.
|
4462
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4462
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_space_platform_mined_item Online documentation}
|
4463
4463
|
*/
|
4464
4464
|
interface OnSpacePlatformMinedItemEvent extends EventData {
|
4465
4465
|
/**
|
@@ -4481,7 +4481,7 @@ declare module "factorio:runtime" {
|
|
4481
4481
|
}
|
4482
4482
|
/**
|
4483
4483
|
* Called after a platform mines tiles.
|
4484
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4484
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_space_platform_mined_tile Online documentation}
|
4485
4485
|
*/
|
4486
4486
|
interface OnSpacePlatformMinedTileEvent extends EventData {
|
4487
4487
|
/**
|
@@ -4509,7 +4509,7 @@ declare module "factorio:runtime" {
|
|
4509
4509
|
* Called before a platform mines an entity.
|
4510
4510
|
*
|
4511
4511
|
* Event filter: [LuaPrePlatformMinedEntityEventFilter](LuaPrePlatformMinedEntityEventFilter]
|
4512
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4512
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_space_platform_pre_mined Online documentation}
|
4513
4513
|
*/
|
4514
4514
|
interface OnSpacePlatformPreMinedEvent extends EventData {
|
4515
4515
|
/**
|
@@ -4531,7 +4531,7 @@ declare module "factorio:runtime" {
|
|
4531
4531
|
}
|
4532
4532
|
/**
|
4533
4533
|
* Called when a spider finishes moving to its autopilot position.
|
4534
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4534
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_spider_command_completed Online documentation}
|
4535
4535
|
*/
|
4536
4536
|
interface OnSpiderCommandCompletedEvent extends EventData {
|
4537
4537
|
/**
|
@@ -4549,7 +4549,7 @@ declare module "factorio:runtime" {
|
|
4549
4549
|
}
|
4550
4550
|
/**
|
4551
4551
|
* 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.
|
4552
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4552
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_string_translated Online documentation}
|
4553
4553
|
*/
|
4554
4554
|
interface OnStringTranslatedEvent extends EventData {
|
4555
4555
|
/**
|
@@ -4583,7 +4583,7 @@ declare module "factorio:runtime" {
|
|
4583
4583
|
}
|
4584
4584
|
/**
|
4585
4585
|
* Called just after a surface is cleared (all entities removed and all chunks deleted).
|
4586
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4586
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_surface_cleared Online documentation}
|
4587
4587
|
*/
|
4588
4588
|
interface OnSurfaceClearedEvent extends EventData {
|
4589
4589
|
readonly surface_index: SurfaceIndex
|
@@ -4600,7 +4600,7 @@ declare module "factorio:runtime" {
|
|
4600
4600
|
* Called when a surface is created.
|
4601
4601
|
*
|
4602
4602
|
* This is not called when the default surface is created as it will always exist.
|
4603
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4603
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_surface_created Online documentation}
|
4604
4604
|
*/
|
4605
4605
|
interface OnSurfaceCreatedEvent extends EventData {
|
4606
4606
|
readonly surface_index: SurfaceIndex
|
@@ -4615,7 +4615,7 @@ declare module "factorio:runtime" {
|
|
4615
4615
|
}
|
4616
4616
|
/**
|
4617
4617
|
* Called after a surface is deleted.
|
4618
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4618
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_surface_deleted Online documentation}
|
4619
4619
|
*/
|
4620
4620
|
interface OnSurfaceDeletedEvent extends EventData {
|
4621
4621
|
readonly surface_index: SurfaceIndex
|
@@ -4630,7 +4630,7 @@ declare module "factorio:runtime" {
|
|
4630
4630
|
}
|
4631
4631
|
/**
|
4632
4632
|
* Called after a surface is imported via the map editor.
|
4633
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4633
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_surface_imported Online documentation}
|
4634
4634
|
*/
|
4635
4635
|
interface OnSurfaceImportedEvent extends EventData {
|
4636
4636
|
readonly surface_index: SurfaceIndex
|
@@ -4649,7 +4649,7 @@ declare module "factorio:runtime" {
|
|
4649
4649
|
}
|
4650
4650
|
/**
|
4651
4651
|
* Called when a surface is renamed.
|
4652
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4652
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_surface_renamed Online documentation}
|
4653
4653
|
*/
|
4654
4654
|
interface OnSurfaceRenamedEvent extends EventData {
|
4655
4655
|
readonly surface_index: SurfaceIndex
|
@@ -4666,7 +4666,7 @@ declare module "factorio:runtime" {
|
|
4666
4666
|
}
|
4667
4667
|
/**
|
4668
4668
|
* Called when {@link LuaForce#reset_technology_effects LuaForce::reset_technology_effects} is finished.
|
4669
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4669
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_technology_effects_reset Online documentation}
|
4670
4670
|
*/
|
4671
4671
|
interface OnTechnologyEffectsResetEvent extends EventData {
|
4672
4672
|
readonly force: LuaForce
|
@@ -4681,7 +4681,7 @@ declare module "factorio:runtime" {
|
|
4681
4681
|
}
|
4682
4682
|
/**
|
4683
4683
|
* Called when a territory is created for any reason.
|
4684
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4684
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_territory_created Online documentation}
|
4685
4685
|
*/
|
4686
4686
|
interface OnTerritoryCreatedEvent extends EventData {
|
4687
4687
|
/**
|
@@ -4703,7 +4703,7 @@ declare module "factorio:runtime" {
|
|
4703
4703
|
}
|
4704
4704
|
/**
|
4705
4705
|
* Called when a territory is destroyed from a surface.
|
4706
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4706
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_territory_destroyed Online documentation}
|
4707
4707
|
*/
|
4708
4708
|
interface OnTerritoryDestroyedEvent extends EventData {
|
4709
4709
|
/**
|
@@ -4721,7 +4721,7 @@ declare module "factorio:runtime" {
|
|
4721
4721
|
}
|
4722
4722
|
/**
|
4723
4723
|
* It is fired once every tick. Since this event is fired every tick, its handler shouldn't include performance heavy code.
|
4724
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4724
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_tick Online documentation}
|
4725
4725
|
*/
|
4726
4726
|
interface OnTickEvent extends EventData {
|
4727
4727
|
/**
|
@@ -4739,7 +4739,7 @@ declare module "factorio:runtime" {
|
|
4739
4739
|
* After this event any items in the buffer will be transferred into the tower as if they came from mining the entity.
|
4740
4740
|
*
|
4741
4741
|
* 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.
|
4742
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4742
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_tower_mined_plant Online documentation}
|
4743
4743
|
*/
|
4744
4744
|
interface OnTowerMinedPlantEvent extends EventData {
|
4745
4745
|
/**
|
@@ -4765,7 +4765,7 @@ declare module "factorio:runtime" {
|
|
4765
4765
|
}
|
4766
4766
|
/**
|
4767
4767
|
* Called before an agricultural tower planets a seed.
|
4768
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4768
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_tower_planted_seed Online documentation}
|
4769
4769
|
*/
|
4770
4770
|
interface OnTowerPlantedSeedEvent extends EventData {
|
4771
4771
|
/**
|
@@ -4791,7 +4791,7 @@ declare module "factorio:runtime" {
|
|
4791
4791
|
}
|
4792
4792
|
/**
|
4793
4793
|
* Called before an agricultural tower mines a plant.
|
4794
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4794
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_tower_pre_mined_plant Online documentation}
|
4795
4795
|
*/
|
4796
4796
|
interface OnTowerPreMinedPlantEvent extends EventData {
|
4797
4797
|
/**
|
@@ -4813,7 +4813,7 @@ declare module "factorio:runtime" {
|
|
4813
4813
|
}
|
4814
4814
|
/**
|
4815
4815
|
* Called when a train changes state (started to stopped and vice versa)
|
4816
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4816
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_train_changed_state Online documentation}
|
4817
4817
|
*/
|
4818
4818
|
interface OnTrainChangedStateEvent extends EventData {
|
4819
4819
|
readonly train: LuaTrain
|
@@ -4829,7 +4829,7 @@ declare module "factorio:runtime" {
|
|
4829
4829
|
}
|
4830
4830
|
/**
|
4831
4831
|
* Called when a new train is created either through disconnecting/connecting an existing one or building a new one.
|
4832
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4832
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_train_created Online documentation}
|
4833
4833
|
*/
|
4834
4834
|
interface OnTrainCreatedEvent extends EventData {
|
4835
4835
|
readonly train: LuaTrain
|
@@ -4852,7 +4852,7 @@ declare module "factorio:runtime" {
|
|
4852
4852
|
}
|
4853
4853
|
/**
|
4854
4854
|
* Called when a trains schedule is changed either by the player or through script.
|
4855
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4855
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_train_schedule_changed Online documentation}
|
4856
4856
|
*/
|
4857
4857
|
interface OnTrainScheduleChangedEvent extends EventData {
|
4858
4858
|
readonly train: LuaTrain
|
@@ -4871,7 +4871,7 @@ declare module "factorio:runtime" {
|
|
4871
4871
|
}
|
4872
4872
|
/**
|
4873
4873
|
* Called when an entity with a trigger prototype (such as capsules) create an entity AND that trigger prototype defined `trigger_created_entity=true`.
|
4874
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4874
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_trigger_created_entity Online documentation}
|
4875
4875
|
*/
|
4876
4876
|
interface OnTriggerCreatedEntityEvent extends EventData {
|
4877
4877
|
readonly entity: LuaEntity
|
@@ -4887,7 +4887,7 @@ declare module "factorio:runtime" {
|
|
4887
4887
|
}
|
4888
4888
|
/**
|
4889
4889
|
* Called when an entity with a trigger prototype (such as capsules) fire an artillery projectile AND that trigger prototype defined `trigger_fired_artillery=true`.
|
4890
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4890
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_trigger_fired_artillery Online documentation}
|
4891
4891
|
*/
|
4892
4892
|
interface OnTriggerFiredArtilleryEvent extends EventData {
|
4893
4893
|
readonly entity: LuaEntity
|
@@ -4903,7 +4903,7 @@ declare module "factorio:runtime" {
|
|
4903
4903
|
}
|
4904
4904
|
/**
|
4905
4905
|
* Called when new packets are processed by {@link LuaHelpers#recv_udp LuaHelpers::recv_udp}.
|
4906
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4906
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_udp_packet_received Online documentation}
|
4907
4907
|
*/
|
4908
4908
|
interface OnUdpPacketReceivedEvent extends EventData {
|
4909
4909
|
/**
|
@@ -4929,7 +4929,7 @@ declare module "factorio:runtime" {
|
|
4929
4929
|
}
|
4930
4930
|
/**
|
4931
4931
|
* Called when the player triggers "undo".
|
4932
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4932
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_undo_applied Online documentation}
|
4933
4933
|
*/
|
4934
4934
|
interface OnUndoAppliedEvent extends EventData {
|
4935
4935
|
/**
|
@@ -4951,7 +4951,7 @@ declare module "factorio:runtime" {
|
|
4951
4951
|
}
|
4952
4952
|
/**
|
4953
4953
|
* Called when a unit is added to a unit group.
|
4954
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4954
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_unit_added_to_group Online documentation}
|
4955
4955
|
*/
|
4956
4956
|
interface OnUnitAddedToGroupEvent extends EventData {
|
4957
4957
|
readonly unit: LuaEntity
|
@@ -4967,7 +4967,7 @@ declare module "factorio:runtime" {
|
|
4967
4967
|
}
|
4968
4968
|
/**
|
4969
4969
|
* Called when a new unit group is created, before any members are added to it.
|
4970
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4970
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_unit_group_created Online documentation}
|
4971
4971
|
*/
|
4972
4972
|
interface OnUnitGroupCreatedEvent extends EventData {
|
4973
4973
|
readonly group: LuaCommandable
|
@@ -4982,7 +4982,7 @@ declare module "factorio:runtime" {
|
|
4982
4982
|
}
|
4983
4983
|
/**
|
4984
4984
|
* Called when a unit group finishes gathering and starts executing its command.
|
4985
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4985
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_unit_group_finished_gathering Online documentation}
|
4986
4986
|
*/
|
4987
4987
|
interface OnUnitGroupFinishedGatheringEvent extends EventData {
|
4988
4988
|
readonly group: LuaCommandable
|
@@ -4997,7 +4997,7 @@ declare module "factorio:runtime" {
|
|
4997
4997
|
}
|
4998
4998
|
/**
|
4999
4999
|
* Called when a unit is removed from a unit group.
|
5000
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5000
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_unit_removed_from_group Online documentation}
|
5001
5001
|
*/
|
5002
5002
|
interface OnUnitRemovedFromGroupEvent extends EventData {
|
5003
5003
|
readonly unit: LuaEntity
|
@@ -5013,7 +5013,7 @@ declare module "factorio:runtime" {
|
|
5013
5013
|
}
|
5014
5014
|
/**
|
5015
5015
|
* Called when a worker (construction or logistic) robot expires through a lack of energy.
|
5016
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5016
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#on_worker_robot_expired Online documentation}
|
5017
5017
|
*/
|
5018
5018
|
interface OnWorkerRobotExpiredEvent extends EventData {
|
5019
5019
|
readonly robot: LuaEntity
|
@@ -5030,7 +5030,7 @@ declare module "factorio:runtime" {
|
|
5030
5030
|
* 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}.
|
5031
5031
|
*
|
5032
5032
|
* Event filter: [LuaScriptRaisedBuiltEventFilter](LuaScriptRaisedBuiltEventFilter]
|
5033
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5033
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#script_raised_built Online documentation}
|
5034
5034
|
*/
|
5035
5035
|
interface ScriptRaisedBuiltEvent extends EventData {
|
5036
5036
|
/**
|
@@ -5050,7 +5050,7 @@ declare module "factorio:runtime" {
|
|
5050
5050
|
* 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}.
|
5051
5051
|
*
|
5052
5052
|
* Event filter: [LuaScriptRaisedDestroyEventFilter](LuaScriptRaisedDestroyEventFilter]
|
5053
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5053
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#script_raised_destroy Online documentation}
|
5054
5054
|
*/
|
5055
5055
|
interface ScriptRaisedDestroyEvent extends EventData {
|
5056
5056
|
/**
|
@@ -5070,7 +5070,7 @@ declare module "factorio:runtime" {
|
|
5070
5070
|
* 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}.
|
5071
5071
|
*
|
5072
5072
|
* Event filter: [LuaScriptRaisedDestroySegmentedUnitEventFilter](LuaScriptRaisedDestroySegmentedUnitEventFilter]
|
5073
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5073
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#script_raised_destroy_segmented_unit Online documentation}
|
5074
5074
|
*/
|
5075
5075
|
interface ScriptRaisedDestroySegmentedUnitEvent extends EventData {
|
5076
5076
|
/**
|
@@ -5090,7 +5090,7 @@ declare module "factorio:runtime" {
|
|
5090
5090
|
* 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}.
|
5091
5091
|
*
|
5092
5092
|
* Event filter: [LuaScriptRaisedReviveEventFilter](LuaScriptRaisedReviveEventFilter]
|
5093
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5093
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#script_raised_revive Online documentation}
|
5094
5094
|
*/
|
5095
5095
|
interface ScriptRaisedReviveEvent extends EventData {
|
5096
5096
|
/**
|
@@ -5112,7 +5112,7 @@ declare module "factorio:runtime" {
|
|
5112
5112
|
}
|
5113
5113
|
/**
|
5114
5114
|
* 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}.
|
5115
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5115
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#script_raised_set_tiles Online documentation}
|
5116
5116
|
*/
|
5117
5117
|
interface ScriptRaisedSetTilesEvent extends EventData {
|
5118
5118
|
/**
|
@@ -5136,7 +5136,7 @@ declare module "factorio:runtime" {
|
|
5136
5136
|
* 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}.
|
5137
5137
|
*
|
5138
5138
|
* Event filter: [LuaScriptRaisedTeleportedEventFilter](LuaScriptRaisedTeleportedEventFilter]
|
5139
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5139
|
+
* @see {@link https://lua-api.factorio.com/2.0.65/events.html#script_raised_teleported Online documentation}
|
5140
5140
|
*/
|
5141
5141
|
interface ScriptRaisedTeleportedEvent extends EventData {
|
5142
5142
|
/**
|