typed-factorio 3.25.0 → 3.26.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 +2469 -2154
- package/prototype/generated/types.d.ts +2179 -2134
- package/runtime/generated/classes.d.ts +4977 -4024
- package/runtime/generated/concepts.d.ts +499 -361
- package/runtime/generated/defines.d.ts +215 -201
- package/runtime/generated/events.d.ts +243 -205
- 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.58/events.html#CustomInputEvent Online documentation}
|
17
17
|
*/
|
18
18
|
interface CustomInputEvent extends EventData {
|
19
19
|
/**
|
@@ -40,6 +40,10 @@ declare module "factorio:runtime" {
|
|
40
40
|
* Information about the prototype that is selected when the custom input is used. Needs to be enabled on the custom input's prototype. `nil` if none is selected.
|
41
41
|
*/
|
42
42
|
readonly selected_prototype?: SelectedPrototypeData
|
43
|
+
/**
|
44
|
+
* The GUI element under the cursor when the custom input was activated.
|
45
|
+
*/
|
46
|
+
readonly element?: LuaGuiElement
|
43
47
|
/**
|
44
48
|
* Identifier of the event
|
45
49
|
*/
|
@@ -51,7 +55,7 @@ declare module "factorio:runtime" {
|
|
51
55
|
}
|
52
56
|
/**
|
53
57
|
* Called when an achievement is gained.
|
54
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
58
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_achievement_gained Online documentation}
|
55
59
|
*/
|
56
60
|
interface OnAchievementGainedEvent extends EventData {
|
57
61
|
/**
|
@@ -70,7 +74,7 @@ declare module "factorio:runtime" {
|
|
70
74
|
}
|
71
75
|
/**
|
72
76
|
* Called when a unit/group completes a command.
|
73
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
77
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_ai_command_completed Online documentation}
|
74
78
|
*/
|
75
79
|
interface OnAiCommandCompletedEvent extends EventData {
|
76
80
|
/**
|
@@ -93,7 +97,7 @@ declare module "factorio:runtime" {
|
|
93
97
|
}
|
94
98
|
/**
|
95
99
|
* Called when an area of the map is cloned.
|
96
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
100
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_area_cloned Online documentation}
|
97
101
|
*/
|
98
102
|
interface OnAreaClonedEvent extends EventData {
|
99
103
|
readonly source_surface: LuaSurface
|
@@ -119,7 +123,7 @@ declare module "factorio:runtime" {
|
|
119
123
|
* Called when a biter migration builds a base.
|
120
124
|
*
|
121
125
|
* This will be called multiple times for each migration, once for every biter that is sacrificed to build part of the new base.
|
122
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
126
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_biter_base_built Online documentation}
|
123
127
|
*/
|
124
128
|
interface OnBiterBaseBuiltEvent extends EventData {
|
125
129
|
/**
|
@@ -137,7 +141,7 @@ declare module "factorio:runtime" {
|
|
137
141
|
}
|
138
142
|
/**
|
139
143
|
* Called when a set of positions on the map is cloned.
|
140
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
144
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_brush_cloned Online documentation}
|
141
145
|
*/
|
142
146
|
interface OnBrushClonedEvent extends EventData {
|
143
147
|
readonly source_offset: TilePosition
|
@@ -162,7 +166,7 @@ declare module "factorio:runtime" {
|
|
162
166
|
}
|
163
167
|
/**
|
164
168
|
* Called when a {@link defines.command.build_base} command reaches its destination, and before building starts.
|
165
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
169
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_build_base_arrived Online documentation}
|
166
170
|
*/
|
167
171
|
interface OnBuildBaseArrivedEvent extends EventData {
|
168
172
|
/**
|
@@ -186,7 +190,7 @@ declare module "factorio:runtime" {
|
|
186
190
|
* Called when player builds something.
|
187
191
|
*
|
188
192
|
* Event filter: [LuaPlayerBuiltEntityEventFilter](LuaPlayerBuiltEntityEventFilter]
|
189
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
193
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_built_entity Online documentation}
|
190
194
|
*/
|
191
195
|
interface OnBuiltEntityEvent extends EventData {
|
192
196
|
/**
|
@@ -218,7 +222,7 @@ declare module "factorio:runtime" {
|
|
218
222
|
* Called when the deconstruction of an entity is canceled.
|
219
223
|
*
|
220
224
|
* Event filter: [LuaEntityDeconstructionCancelledEventFilter](LuaEntityDeconstructionCancelledEventFilter]
|
221
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
225
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_cancelled_deconstruction Online documentation}
|
222
226
|
*/
|
223
227
|
interface OnCancelledDeconstructionEvent extends EventData {
|
224
228
|
readonly entity: LuaEntity
|
@@ -236,7 +240,7 @@ declare module "factorio:runtime" {
|
|
236
240
|
* Called when the upgrade of an entity is canceled.
|
237
241
|
*
|
238
242
|
* Event filter: [LuaUpgradeCancelledEventFilter](LuaUpgradeCancelledEventFilter]
|
239
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
243
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_cancelled_upgrade Online documentation}
|
240
244
|
*/
|
241
245
|
interface OnCancelledUpgradeEvent extends EventData {
|
242
246
|
readonly entity: LuaEntity
|
@@ -254,7 +258,7 @@ declare module "factorio:runtime" {
|
|
254
258
|
}
|
255
259
|
/**
|
256
260
|
* Called after a cargo pod has delivered its cargo.
|
257
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
261
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_cargo_pod_delivered_cargo Online documentation}
|
258
262
|
*/
|
259
263
|
interface OnCargoPodDeliveredCargoEvent extends EventData {
|
260
264
|
readonly cargo_pod: LuaEntity
|
@@ -273,7 +277,7 @@ declare module "factorio:runtime" {
|
|
273
277
|
}
|
274
278
|
/**
|
275
279
|
* Called when a cargo pod departs a surface.
|
276
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
280
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_cargo_pod_finished_ascending Online documentation}
|
277
281
|
*/
|
278
282
|
interface OnCargoPodFinishedAscendingEvent extends EventData {
|
279
283
|
readonly cargo_pod: LuaEntity
|
@@ -296,7 +300,7 @@ declare module "factorio:runtime" {
|
|
296
300
|
}
|
297
301
|
/**
|
298
302
|
* Called when a cargo pods lands on a surface, either at a station or on the ground.
|
299
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
303
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_cargo_pod_finished_descending Online documentation}
|
300
304
|
*/
|
301
305
|
interface OnCargoPodFinishedDescendingEvent extends EventData {
|
302
306
|
readonly cargo_pod: LuaEntity
|
@@ -321,7 +325,7 @@ declare module "factorio:runtime" {
|
|
321
325
|
* Called when a character corpse expires due to timeout or all of the items being removed from it.
|
322
326
|
*
|
323
327
|
* this is not called if the corpse is mined. See {@link defines.events.on_pre_player_mined_item} to detect that.
|
324
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
328
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_character_corpse_expired Online documentation}
|
325
329
|
*/
|
326
330
|
interface OnCharacterCorpseExpiredEvent extends EventData {
|
327
331
|
/**
|
@@ -339,7 +343,7 @@ declare module "factorio:runtime" {
|
|
339
343
|
}
|
340
344
|
/**
|
341
345
|
* Called when a chart tag is created.
|
342
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
346
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_chart_tag_added Online documentation}
|
343
347
|
*/
|
344
348
|
interface OnChartTagAddedEvent extends EventData {
|
345
349
|
readonly tag: LuaCustomChartTag
|
@@ -356,7 +360,7 @@ declare module "factorio:runtime" {
|
|
356
360
|
}
|
357
361
|
/**
|
358
362
|
* Called when a chart tag is modified by a player.
|
359
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
363
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_chart_tag_modified Online documentation}
|
360
364
|
*/
|
361
365
|
interface OnChartTagModifiedEvent extends EventData {
|
362
366
|
readonly tag: LuaCustomChartTag
|
@@ -378,7 +382,7 @@ declare module "factorio:runtime" {
|
|
378
382
|
}
|
379
383
|
/**
|
380
384
|
* Called just before a chart tag is deleted.
|
381
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
385
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_chart_tag_removed Online documentation}
|
382
386
|
*/
|
383
387
|
interface OnChartTagRemovedEvent extends EventData {
|
384
388
|
readonly tag: LuaCustomChartTag
|
@@ -395,7 +399,7 @@ declare module "factorio:runtime" {
|
|
395
399
|
}
|
396
400
|
/**
|
397
401
|
* Called when a chunk is charted or re-charted.
|
398
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
402
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_chunk_charted Online documentation}
|
399
403
|
*/
|
400
404
|
interface OnChunkChartedEvent extends EventData {
|
401
405
|
readonly surface_index: SurfaceIndex
|
@@ -416,7 +420,7 @@ declare module "factorio:runtime" {
|
|
416
420
|
}
|
417
421
|
/**
|
418
422
|
* Called when one or more chunks are deleted using {@link LuaSurface#delete_chunk LuaSurface::delete_chunk}.
|
419
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
423
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_chunk_deleted Online documentation}
|
420
424
|
*/
|
421
425
|
interface OnChunkDeletedEvent extends EventData {
|
422
426
|
readonly surface_index: SurfaceIndex
|
@@ -435,7 +439,7 @@ declare module "factorio:runtime" {
|
|
435
439
|
}
|
436
440
|
/**
|
437
441
|
* Called when a chunk is generated.
|
438
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
442
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_chunk_generated Online documentation}
|
439
443
|
*/
|
440
444
|
interface OnChunkGeneratedEvent extends EventData {
|
441
445
|
/**
|
@@ -461,7 +465,7 @@ declare module "factorio:runtime" {
|
|
461
465
|
}
|
462
466
|
/**
|
463
467
|
* Called when a combat robot expires through a lack of energy, or timeout.
|
464
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
468
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_combat_robot_expired Online documentation}
|
465
469
|
*/
|
466
470
|
interface OnCombatRobotExpiredEvent extends EventData {
|
467
471
|
readonly robot: LuaEntity
|
@@ -482,7 +486,7 @@ declare module "factorio:runtime" {
|
|
482
486
|
* Called when a message is sent to the in-game console, either by a player or through the server interface.
|
483
487
|
*
|
484
488
|
* This event only fires for plain messages, not for any commands (including `/shout` or `/whisper`).
|
485
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
489
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_console_chat Online documentation}
|
486
490
|
*/
|
487
491
|
interface OnConsoleChatEvent extends EventData {
|
488
492
|
/**
|
@@ -504,7 +508,7 @@ declare module "factorio:runtime" {
|
|
504
508
|
}
|
505
509
|
/**
|
506
510
|
* Called when someone enters a command-like message regardless of it being a valid command.
|
507
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
511
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_console_command Online documentation}
|
508
512
|
*/
|
509
513
|
interface OnConsoleCommandEvent extends EventData {
|
510
514
|
/**
|
@@ -530,7 +534,7 @@ declare module "factorio:runtime" {
|
|
530
534
|
}
|
531
535
|
/**
|
532
536
|
* Called when a cutscene is cancelled by the player or by script.
|
533
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
537
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_cutscene_cancelled Online documentation}
|
534
538
|
*/
|
535
539
|
interface OnCutsceneCancelledEvent extends EventData {
|
536
540
|
/**
|
@@ -548,7 +552,7 @@ declare module "factorio:runtime" {
|
|
548
552
|
}
|
549
553
|
/**
|
550
554
|
* Called when a cutscene finishes naturally (was not cancelled).
|
551
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
555
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_cutscene_finished Online documentation}
|
552
556
|
*/
|
553
557
|
interface OnCutsceneFinishedEvent extends EventData {
|
554
558
|
/**
|
@@ -566,7 +570,7 @@ declare module "factorio:runtime" {
|
|
566
570
|
}
|
567
571
|
/**
|
568
572
|
* Called when a cutscene starts.
|
569
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
573
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_cutscene_started Online documentation}
|
570
574
|
*/
|
571
575
|
interface OnCutsceneStartedEvent extends EventData {
|
572
576
|
/**
|
@@ -586,7 +590,7 @@ declare module "factorio:runtime" {
|
|
586
590
|
* Called when a cutscene is playing, each time it reaches a waypoint in that cutscene.
|
587
591
|
*
|
588
592
|
* This refers to an index in the table previously passed to set_controller which started the cutscene.
|
589
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
593
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_cutscene_waypoint_reached Online documentation}
|
590
594
|
*/
|
591
595
|
interface OnCutsceneWaypointReachedEvent extends EventData {
|
592
596
|
/**
|
@@ -610,7 +614,7 @@ declare module "factorio:runtime" {
|
|
610
614
|
* Called when an entity is cloned. The filter applies to the source entity.
|
611
615
|
*
|
612
616
|
* Event filter: [LuaEntityClonedEventFilter](LuaEntityClonedEventFilter]
|
613
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
617
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_entity_cloned Online documentation}
|
614
618
|
*/
|
615
619
|
interface OnEntityClonedEvent extends EventData {
|
616
620
|
readonly source: LuaEntity
|
@@ -628,7 +632,7 @@ declare module "factorio:runtime" {
|
|
628
632
|
* Called after an entity has been recolored either by the player or through script.
|
629
633
|
*
|
630
634
|
* Automatic recoloring due to {@link LuaPlayer#color LuaPlayer::color} will not raise events, as that is a separate mechanism.
|
631
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
635
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_entity_color_changed Online documentation}
|
632
636
|
*/
|
633
637
|
interface OnEntityColorChangedEvent extends EventData {
|
634
638
|
/**
|
@@ -648,7 +652,7 @@ declare module "factorio:runtime" {
|
|
648
652
|
* Called when an entity is damaged. This is not called when an entities health is set directly by another mod.
|
649
653
|
*
|
650
654
|
* Event filter: [LuaEntityDamagedEventFilter](LuaEntityDamagedEventFilter]
|
651
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
655
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_entity_damaged Online documentation}
|
652
656
|
*/
|
653
657
|
interface OnEntityDamagedEvent extends EventData {
|
654
658
|
readonly entity: LuaEntity
|
@@ -690,7 +694,7 @@ declare module "factorio:runtime" {
|
|
690
694
|
* Called when an entity dies.
|
691
695
|
*
|
692
696
|
* Event filter: [LuaEntityDiedEventFilter](LuaEntityDiedEventFilter]
|
693
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
697
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_entity_died Online documentation}
|
694
698
|
*/
|
695
699
|
interface OnEntityDiedEvent extends EventData {
|
696
700
|
/**
|
@@ -724,7 +728,7 @@ declare module "factorio:runtime" {
|
|
724
728
|
}
|
725
729
|
/**
|
726
730
|
* Called when one of an entity's logistic slots changes.
|
727
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
731
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_entity_logistic_slot_changed Online documentation}
|
728
732
|
*/
|
729
733
|
interface OnEntityLogisticSlotChangedEvent extends EventData {
|
730
734
|
/**
|
@@ -754,7 +758,7 @@ declare module "factorio:runtime" {
|
|
754
758
|
}
|
755
759
|
/**
|
756
760
|
* Called after an entity has been renamed either by the player or through script.
|
757
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
761
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_entity_renamed Online documentation}
|
758
762
|
*/
|
759
763
|
interface OnEntityRenamedEvent extends EventData {
|
760
764
|
/**
|
@@ -775,7 +779,7 @@ declare module "factorio:runtime" {
|
|
775
779
|
}
|
776
780
|
/**
|
777
781
|
* Called after entity copy-paste is done.
|
778
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
782
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_entity_settings_pasted Online documentation}
|
779
783
|
*/
|
780
784
|
interface OnEntitySettingsPastedEvent extends EventData {
|
781
785
|
readonly player_index: PlayerIndex
|
@@ -798,7 +802,7 @@ declare module "factorio:runtime" {
|
|
798
802
|
}
|
799
803
|
/**
|
800
804
|
* Called when an entity is spawned by a EnemySpawner
|
801
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
805
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_entity_spawned Online documentation}
|
802
806
|
*/
|
803
807
|
interface OnEntitySpawnedEvent extends EventData {
|
804
808
|
readonly spawner: LuaEntity
|
@@ -814,7 +818,7 @@ declare module "factorio:runtime" {
|
|
814
818
|
}
|
815
819
|
/**
|
816
820
|
* Called after equipment is inserted into an equipment grid.
|
817
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
821
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_equipment_inserted Online documentation}
|
818
822
|
*/
|
819
823
|
interface OnEquipmentInsertedEvent extends EventData {
|
820
824
|
/**
|
@@ -836,7 +840,7 @@ declare module "factorio:runtime" {
|
|
836
840
|
}
|
837
841
|
/**
|
838
842
|
* Called after equipment is removed from an equipment grid.
|
839
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
843
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_equipment_removed Online documentation}
|
840
844
|
*/
|
841
845
|
interface OnEquipmentRemovedEvent extends EventData {
|
842
846
|
/**
|
@@ -866,7 +870,7 @@ declare module "factorio:runtime" {
|
|
866
870
|
}
|
867
871
|
/**
|
868
872
|
* Called when the a forces cease fire values change.
|
869
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
873
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_force_cease_fire_changed Online documentation}
|
870
874
|
*/
|
871
875
|
interface OnForceCeaseFireChangedEvent extends EventData {
|
872
876
|
/**
|
@@ -894,7 +898,7 @@ declare module "factorio:runtime" {
|
|
894
898
|
* Called when a new force is created using `game.create_force()`
|
895
899
|
*
|
896
900
|
* This is not called when the default forces (`'player'`, `'enemy'`, `'neutral'`) are created as they will always exist.
|
897
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
901
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_force_created Online documentation}
|
898
902
|
*/
|
899
903
|
interface OnForceCreatedEvent extends EventData {
|
900
904
|
/**
|
@@ -912,7 +916,7 @@ declare module "factorio:runtime" {
|
|
912
916
|
}
|
913
917
|
/**
|
914
918
|
* Called when the a forces friends change.
|
915
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
919
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_force_friends_changed Online documentation}
|
916
920
|
*/
|
917
921
|
interface OnForceFriendsChangedEvent extends EventData {
|
918
922
|
/**
|
@@ -938,7 +942,7 @@ declare module "factorio:runtime" {
|
|
938
942
|
}
|
939
943
|
/**
|
940
944
|
* Called when {@link LuaForce#reset LuaForce::reset} is finished.
|
941
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
945
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_force_reset Online documentation}
|
942
946
|
*/
|
943
947
|
interface OnForceResetEvent extends EventData {
|
944
948
|
readonly force: LuaForce
|
@@ -955,7 +959,7 @@ declare module "factorio:runtime" {
|
|
955
959
|
* Called after two forces have been merged using `game.merge_forces()`.
|
956
960
|
*
|
957
961
|
* The source force is invalidated before this event is called and the name can be re-used in this event if desired.
|
958
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
962
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_forces_merged Online documentation}
|
959
963
|
*/
|
960
964
|
interface OnForcesMergedEvent extends EventData {
|
961
965
|
/**
|
@@ -981,7 +985,7 @@ declare module "factorio:runtime" {
|
|
981
985
|
}
|
982
986
|
/**
|
983
987
|
* Called when two forces are about to be merged using `game.merge_forces()`.
|
984
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
988
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_forces_merging Online documentation}
|
985
989
|
*/
|
986
990
|
interface OnForcesMergingEvent extends EventData {
|
987
991
|
/**
|
@@ -1005,7 +1009,7 @@ declare module "factorio:runtime" {
|
|
1005
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.
|
1006
1010
|
*
|
1007
1011
|
* This event is not fired when the scenario is loaded via the map editor.
|
1008
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1012
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_game_created_from_scenario Online documentation}
|
1009
1013
|
*/
|
1010
1014
|
interface OnGameCreatedFromScenarioEvent extends EventData {
|
1011
1015
|
/**
|
@@ -1019,7 +1023,7 @@ declare module "factorio:runtime" {
|
|
1019
1023
|
}
|
1020
1024
|
/**
|
1021
1025
|
* Called when {@link LuaGuiElement} checked state is changed (related to checkboxes and radio buttons).
|
1022
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1026
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_gui_checked_state_changed Online documentation}
|
1023
1027
|
*/
|
1024
1028
|
interface OnGuiCheckedStateChangedEvent extends EventData {
|
1025
1029
|
/**
|
@@ -1041,7 +1045,7 @@ declare module "factorio:runtime" {
|
|
1041
1045
|
}
|
1042
1046
|
/**
|
1043
1047
|
* Called when {@link LuaGuiElement} is clicked.
|
1044
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1048
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_gui_click Online documentation}
|
1045
1049
|
*/
|
1046
1050
|
interface OnGuiClickEvent extends EventData {
|
1047
1051
|
/**
|
@@ -1087,7 +1091,7 @@ declare module "factorio:runtime" {
|
|
1087
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.
|
1088
1092
|
*
|
1089
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.
|
1090
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1094
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_gui_closed Online documentation}
|
1091
1095
|
*/
|
1092
1096
|
interface OnGuiClosedEvent extends EventData {
|
1093
1097
|
/**
|
@@ -1141,7 +1145,7 @@ declare module "factorio:runtime" {
|
|
1141
1145
|
}
|
1142
1146
|
/**
|
1143
1147
|
* Called when a {@link LuaGuiElement} is confirmed, for example by pressing Enter in a textfield.
|
1144
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1148
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_gui_confirmed Online documentation}
|
1145
1149
|
*/
|
1146
1150
|
interface OnGuiConfirmedEvent extends EventData {
|
1147
1151
|
/**
|
@@ -1175,7 +1179,7 @@ declare module "factorio:runtime" {
|
|
1175
1179
|
}
|
1176
1180
|
/**
|
1177
1181
|
* Called when {@link LuaGuiElement} element value is changed (related to choose element buttons).
|
1178
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1182
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_gui_elem_changed Online documentation}
|
1179
1183
|
*/
|
1180
1184
|
interface OnGuiElemChangedEvent extends EventData {
|
1181
1185
|
/**
|
@@ -1199,7 +1203,7 @@ declare module "factorio:runtime" {
|
|
1199
1203
|
* Called when {@link LuaGuiElement} is hovered by the mouse.
|
1200
1204
|
*
|
1201
1205
|
* Only fired for events whose {@link LuaGuiElement#raise_hover_events LuaGuiElement::raise_hover_events} is `true`.
|
1202
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1206
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_gui_hover Online documentation}
|
1203
1207
|
*/
|
1204
1208
|
interface OnGuiHoverEvent extends EventData {
|
1205
1209
|
/**
|
@@ -1223,7 +1227,7 @@ declare module "factorio:runtime" {
|
|
1223
1227
|
* Called when the player's cursor leaves a {@link LuaGuiElement} that was previously hovered.
|
1224
1228
|
*
|
1225
1229
|
* Only fired for events whose {@link LuaGuiElement#raise_hover_events LuaGuiElement::raise_hover_events} is `true`.
|
1226
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1230
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_gui_leave Online documentation}
|
1227
1231
|
*/
|
1228
1232
|
interface OnGuiLeaveEvent extends EventData {
|
1229
1233
|
/**
|
@@ -1245,7 +1249,7 @@ declare module "factorio:runtime" {
|
|
1245
1249
|
}
|
1246
1250
|
/**
|
1247
1251
|
* Called when {@link LuaGuiElement} element location is changed (related to frames in `player.gui.screen`).
|
1248
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1252
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_gui_location_changed Online documentation}
|
1249
1253
|
*/
|
1250
1254
|
interface OnGuiLocationChangedEvent extends EventData {
|
1251
1255
|
/**
|
@@ -1267,7 +1271,7 @@ declare module "factorio:runtime" {
|
|
1267
1271
|
}
|
1268
1272
|
/**
|
1269
1273
|
* Called when the player opens a GUI.
|
1270
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1274
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_gui_opened Online documentation}
|
1271
1275
|
*/
|
1272
1276
|
interface OnGuiOpenedEvent extends EventData {
|
1273
1277
|
/**
|
@@ -1313,7 +1317,7 @@ declare module "factorio:runtime" {
|
|
1313
1317
|
}
|
1314
1318
|
/**
|
1315
1319
|
* Called when {@link LuaGuiElement} selected tab is changed (related to tabbed-panes).
|
1316
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1320
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_gui_selected_tab_changed Online documentation}
|
1317
1321
|
*/
|
1318
1322
|
interface OnGuiSelectedTabChangedEvent extends EventData {
|
1319
1323
|
/**
|
@@ -1335,7 +1339,7 @@ declare module "factorio:runtime" {
|
|
1335
1339
|
}
|
1336
1340
|
/**
|
1337
1341
|
* Called when {@link LuaGuiElement} selection state is changed (related to drop-downs and listboxes).
|
1338
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1342
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_gui_selection_state_changed Online documentation}
|
1339
1343
|
*/
|
1340
1344
|
interface OnGuiSelectionStateChangedEvent extends EventData {
|
1341
1345
|
/**
|
@@ -1357,7 +1361,7 @@ declare module "factorio:runtime" {
|
|
1357
1361
|
}
|
1358
1362
|
/**
|
1359
1363
|
* Called when {@link LuaGuiElement} switch state is changed (related to switches).
|
1360
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1364
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_gui_switch_state_changed Online documentation}
|
1361
1365
|
*/
|
1362
1366
|
interface OnGuiSwitchStateChangedEvent extends EventData {
|
1363
1367
|
/**
|
@@ -1379,7 +1383,7 @@ declare module "factorio:runtime" {
|
|
1379
1383
|
}
|
1380
1384
|
/**
|
1381
1385
|
* Called when {@link LuaGuiElement} text is changed by the player.
|
1382
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1386
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_gui_text_changed Online documentation}
|
1383
1387
|
*/
|
1384
1388
|
interface OnGuiTextChangedEvent extends EventData {
|
1385
1389
|
/**
|
@@ -1405,7 +1409,7 @@ declare module "factorio:runtime" {
|
|
1405
1409
|
}
|
1406
1410
|
/**
|
1407
1411
|
* Called when {@link LuaGuiElement} slider value is changed (related to the slider element).
|
1408
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1412
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_gui_value_changed Online documentation}
|
1409
1413
|
*/
|
1410
1414
|
interface OnGuiValueChangedEvent extends EventData {
|
1411
1415
|
/**
|
@@ -1427,7 +1431,7 @@ declare module "factorio:runtime" {
|
|
1427
1431
|
}
|
1428
1432
|
/**
|
1429
1433
|
* Called when a land mine is armed.
|
1430
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1434
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_land_mine_armed Online documentation}
|
1431
1435
|
*/
|
1432
1436
|
interface OnLandMineArmedEvent extends EventData {
|
1433
1437
|
readonly mine: LuaEntity
|
@@ -1442,7 +1446,7 @@ declare module "factorio:runtime" {
|
|
1442
1446
|
}
|
1443
1447
|
/**
|
1444
1448
|
* Called when a custom {@link import("factorio:prototype").ShortcutPrototype Lua shortcut} is pressed.
|
1445
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1449
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_lua_shortcut Online documentation}
|
1446
1450
|
*/
|
1447
1451
|
interface OnLuaShortcutEvent extends EventData {
|
1448
1452
|
readonly player_index: PlayerIndex
|
@@ -1463,7 +1467,7 @@ declare module "factorio:runtime" {
|
|
1463
1467
|
* Called when an entity is marked for deconstruction with the Deconstruction planner or via script.
|
1464
1468
|
*
|
1465
1469
|
* Event filter: [LuaEntityMarkedForDeconstructionEventFilter](LuaEntityMarkedForDeconstructionEventFilter]
|
1466
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1470
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_marked_for_deconstruction Online documentation}
|
1467
1471
|
*/
|
1468
1472
|
interface OnMarkedForDeconstructionEvent extends EventData {
|
1469
1473
|
readonly entity: LuaEntity
|
@@ -1481,7 +1485,7 @@ declare module "factorio:runtime" {
|
|
1481
1485
|
* Called when an entity is marked for upgrade with the Upgrade planner or via script.
|
1482
1486
|
*
|
1483
1487
|
* Event filter: [LuaEntityMarkedForUpgradeEventFilter](LuaEntityMarkedForUpgradeEventFilter]
|
1484
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1488
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_marked_for_upgrade Online documentation}
|
1485
1489
|
*/
|
1486
1490
|
interface OnMarkedForUpgradeEvent extends EventData {
|
1487
1491
|
readonly player_index?: PlayerIndex
|
@@ -1499,7 +1503,7 @@ declare module "factorio:runtime" {
|
|
1499
1503
|
}
|
1500
1504
|
/**
|
1501
1505
|
* Called after a player purchases some offer from a `market` entity.
|
1502
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1506
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_market_item_purchased Online documentation}
|
1503
1507
|
*/
|
1504
1508
|
interface OnMarketItemPurchasedEvent extends EventData {
|
1505
1509
|
/**
|
@@ -1529,7 +1533,7 @@ declare module "factorio:runtime" {
|
|
1529
1533
|
}
|
1530
1534
|
/**
|
1531
1535
|
* Called when the player uses the 'Open item GUI' control on an item defined with the 'mod-openable' flag
|
1532
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1536
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_mod_item_opened Online documentation}
|
1533
1537
|
*/
|
1534
1538
|
interface OnModItemOpenedEvent extends EventData {
|
1535
1539
|
/**
|
@@ -1555,7 +1559,7 @@ declare module "factorio:runtime" {
|
|
1555
1559
|
}
|
1556
1560
|
/**
|
1557
1561
|
* 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.
|
1558
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1562
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_multiplayer_init Online documentation}
|
1559
1563
|
*/
|
1560
1564
|
interface OnMultiplayerInitEvent extends EventData {
|
1561
1565
|
/**
|
@@ -1571,7 +1575,7 @@ declare module "factorio:runtime" {
|
|
1571
1575
|
* Called after an object is destroyed which was registered with {@link LuaBootstrap#register_on_object_destroyed LuaBootstrap::register_on_object_destroyed} previously.
|
1572
1576
|
*
|
1573
1577
|
* 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.
|
1574
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1578
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_object_destroyed Online documentation}
|
1575
1579
|
*/
|
1576
1580
|
interface OnObjectDestroyedEvent extends EventData {
|
1577
1581
|
/**
|
@@ -1597,7 +1601,7 @@ declare module "factorio:runtime" {
|
|
1597
1601
|
}
|
1598
1602
|
/**
|
1599
1603
|
* Called directly after a permission group is added.
|
1600
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1604
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_permission_group_added Online documentation}
|
1601
1605
|
*/
|
1602
1606
|
interface OnPermissionGroupAddedEvent extends EventData {
|
1603
1607
|
/**
|
@@ -1619,7 +1623,7 @@ declare module "factorio:runtime" {
|
|
1619
1623
|
}
|
1620
1624
|
/**
|
1621
1625
|
* Called directly after a permission group is deleted.
|
1622
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1626
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_permission_group_deleted Online documentation}
|
1623
1627
|
*/
|
1624
1628
|
interface OnPermissionGroupDeletedEvent extends EventData {
|
1625
1629
|
/**
|
@@ -1645,7 +1649,7 @@ declare module "factorio:runtime" {
|
|
1645
1649
|
}
|
1646
1650
|
/**
|
1647
1651
|
* Called directly after a permission group is edited in some way.
|
1648
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1652
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_permission_group_edited Online documentation}
|
1649
1653
|
*/
|
1650
1654
|
interface OnPermissionGroupEditedEvent extends EventData {
|
1651
1655
|
/**
|
@@ -1694,7 +1698,7 @@ declare module "factorio:runtime" {
|
|
1694
1698
|
}
|
1695
1699
|
/**
|
1696
1700
|
* Called directly after a permission string is imported.
|
1697
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1701
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_permission_string_imported Online documentation}
|
1698
1702
|
*/
|
1699
1703
|
interface OnPermissionStringImportedEvent extends EventData {
|
1700
1704
|
/**
|
@@ -1712,7 +1716,7 @@ declare module "factorio:runtime" {
|
|
1712
1716
|
}
|
1713
1717
|
/**
|
1714
1718
|
* Called when a player picks up an item.
|
1715
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1719
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_picked_up_item Online documentation}
|
1716
1720
|
*/
|
1717
1721
|
interface OnPickedUpItemEvent extends EventData {
|
1718
1722
|
readonly item_stack: SimpleItemStack
|
@@ -1728,7 +1732,7 @@ declare module "factorio:runtime" {
|
|
1728
1732
|
}
|
1729
1733
|
/**
|
1730
1734
|
* Called after a player alt-reverse-selects an area with a selection-tool item.
|
1731
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1735
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_alt_reverse_selected_area Online documentation}
|
1732
1736
|
*/
|
1733
1737
|
interface OnPlayerAltReverseSelectedAreaEvent extends EventData {
|
1734
1738
|
/**
|
@@ -1766,7 +1770,7 @@ declare module "factorio:runtime" {
|
|
1766
1770
|
}
|
1767
1771
|
/**
|
1768
1772
|
* Called after a player alt-selects an area with a selection-tool item.
|
1769
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1773
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_alt_selected_area Online documentation}
|
1770
1774
|
*/
|
1771
1775
|
interface OnPlayerAltSelectedAreaEvent extends EventData {
|
1772
1776
|
/**
|
@@ -1808,7 +1812,7 @@ declare module "factorio:runtime" {
|
|
1808
1812
|
}
|
1809
1813
|
/**
|
1810
1814
|
* Called after a players ammo inventory changed in some way.
|
1811
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1815
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_ammo_inventory_changed Online documentation}
|
1812
1816
|
*/
|
1813
1817
|
interface OnPlayerAmmoInventoryChangedEvent extends EventData {
|
1814
1818
|
readonly player_index: PlayerIndex
|
@@ -1823,7 +1827,7 @@ declare module "factorio:runtime" {
|
|
1823
1827
|
}
|
1824
1828
|
/**
|
1825
1829
|
* Called after a players armor inventory changed in some way.
|
1826
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1830
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_armor_inventory_changed Online documentation}
|
1827
1831
|
*/
|
1828
1832
|
interface OnPlayerArmorInventoryChangedEvent extends EventData {
|
1829
1833
|
readonly player_index: PlayerIndex
|
@@ -1838,7 +1842,7 @@ declare module "factorio:runtime" {
|
|
1838
1842
|
}
|
1839
1843
|
/**
|
1840
1844
|
* Called when a player is banned.
|
1841
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1845
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_banned Online documentation}
|
1842
1846
|
*/
|
1843
1847
|
interface OnPlayerBannedEvent extends EventData {
|
1844
1848
|
/**
|
@@ -1868,7 +1872,7 @@ declare module "factorio:runtime" {
|
|
1868
1872
|
}
|
1869
1873
|
/**
|
1870
1874
|
* Called after a player builds tiles.
|
1871
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1875
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_built_tile Online documentation}
|
1872
1876
|
*/
|
1873
1877
|
interface OnPlayerBuiltTileEvent extends EventData {
|
1874
1878
|
readonly player_index: PlayerIndex
|
@@ -1907,7 +1911,7 @@ declare module "factorio:runtime" {
|
|
1907
1911
|
}
|
1908
1912
|
/**
|
1909
1913
|
* Called when a player cancels crafting.
|
1910
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1914
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_cancelled_crafting Online documentation}
|
1911
1915
|
*/
|
1912
1916
|
interface OnPlayerCancelledCraftingEvent extends EventData {
|
1913
1917
|
/**
|
@@ -1937,7 +1941,7 @@ declare module "factorio:runtime" {
|
|
1937
1941
|
}
|
1938
1942
|
/**
|
1939
1943
|
* Called after a player changes forces.
|
1940
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1944
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_changed_force Online documentation}
|
1941
1945
|
*/
|
1942
1946
|
interface OnPlayerChangedForceEvent extends EventData {
|
1943
1947
|
/**
|
@@ -1959,7 +1963,7 @@ declare module "factorio:runtime" {
|
|
1959
1963
|
}
|
1960
1964
|
/**
|
1961
1965
|
* Called when the tile position a player is located at changes.
|
1962
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1966
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_changed_position Online documentation}
|
1963
1967
|
*/
|
1964
1968
|
interface OnPlayerChangedPositionEvent extends EventData {
|
1965
1969
|
/**
|
@@ -1977,7 +1981,7 @@ declare module "factorio:runtime" {
|
|
1977
1981
|
}
|
1978
1982
|
/**
|
1979
1983
|
* Called after a player changes surfaces.
|
1980
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1984
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_changed_surface Online documentation}
|
1981
1985
|
*/
|
1982
1986
|
interface OnPlayerChangedSurfaceEvent extends EventData {
|
1983
1987
|
/**
|
@@ -1999,7 +2003,7 @@ declare module "factorio:runtime" {
|
|
1999
2003
|
}
|
2000
2004
|
/**
|
2001
2005
|
* Called when cheat mode is disabled on a player.
|
2002
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2006
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_cheat_mode_disabled Online documentation}
|
2003
2007
|
*/
|
2004
2008
|
interface OnPlayerCheatModeDisabledEvent extends EventData {
|
2005
2009
|
/**
|
@@ -2017,7 +2021,7 @@ declare module "factorio:runtime" {
|
|
2017
2021
|
}
|
2018
2022
|
/**
|
2019
2023
|
* Called when cheat mode is enabled on a player.
|
2020
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2024
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_cheat_mode_enabled Online documentation}
|
2021
2025
|
*/
|
2022
2026
|
interface OnPlayerCheatModeEnabledEvent extends EventData {
|
2023
2027
|
/**
|
@@ -2035,7 +2039,7 @@ declare module "factorio:runtime" {
|
|
2035
2039
|
}
|
2036
2040
|
/**
|
2037
2041
|
* Called when a player clicks a gps tag
|
2038
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2042
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_clicked_gps_tag Online documentation}
|
2039
2043
|
*/
|
2040
2044
|
interface OnPlayerClickedGpsTagEvent extends EventData {
|
2041
2045
|
/**
|
@@ -2061,7 +2065,7 @@ declare module "factorio:runtime" {
|
|
2061
2065
|
}
|
2062
2066
|
/**
|
2063
2067
|
* Called when a player clicks the "confirm" button in the configure Blueprint GUI.
|
2064
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2068
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_configured_blueprint Online documentation}
|
2065
2069
|
*/
|
2066
2070
|
interface OnPlayerConfiguredBlueprintEvent extends EventData {
|
2067
2071
|
/**
|
@@ -2079,7 +2083,7 @@ declare module "factorio:runtime" {
|
|
2079
2083
|
}
|
2080
2084
|
/**
|
2081
2085
|
* Called after a player changes controller types.
|
2082
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2086
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_controller_changed Online documentation}
|
2083
2087
|
*/
|
2084
2088
|
interface OnPlayerControllerChangedEvent extends EventData {
|
2085
2089
|
/**
|
@@ -2101,7 +2105,7 @@ declare module "factorio:runtime" {
|
|
2101
2105
|
}
|
2102
2106
|
/**
|
2103
2107
|
* 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}).
|
2104
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2108
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_crafted_item Online documentation}
|
2105
2109
|
*/
|
2106
2110
|
interface OnPlayerCraftedItemEvent extends EventData {
|
2107
2111
|
/**
|
@@ -2127,7 +2131,7 @@ declare module "factorio:runtime" {
|
|
2127
2131
|
}
|
2128
2132
|
/**
|
2129
2133
|
* Called after the player was created.
|
2130
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2134
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_created Online documentation}
|
2131
2135
|
*/
|
2132
2136
|
interface OnPlayerCreatedEvent extends EventData {
|
2133
2137
|
readonly player_index: PlayerIndex
|
@@ -2144,7 +2148,7 @@ declare module "factorio:runtime" {
|
|
2144
2148
|
* Called after a player's {@link LuaControl#cursor_stack cursor stack} changed in some way.
|
2145
2149
|
*
|
2146
2150
|
* This is fired in the same tick that the change happens, but not instantly.
|
2147
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2151
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_cursor_stack_changed Online documentation}
|
2148
2152
|
*/
|
2149
2153
|
interface OnPlayerCursorStackChangedEvent extends EventData {
|
2150
2154
|
readonly player_index: PlayerIndex
|
@@ -2159,7 +2163,7 @@ declare module "factorio:runtime" {
|
|
2159
2163
|
}
|
2160
2164
|
/**
|
2161
2165
|
* Called when a player selects an area with a deconstruction planner.
|
2162
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2166
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_deconstructed_area Online documentation}
|
2163
2167
|
*/
|
2164
2168
|
interface OnPlayerDeconstructedAreaEvent extends EventData {
|
2165
2169
|
/**
|
@@ -2205,7 +2209,7 @@ declare module "factorio:runtime" {
|
|
2205
2209
|
}
|
2206
2210
|
/**
|
2207
2211
|
* Called when a player is demoted.
|
2208
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2212
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_demoted Online documentation}
|
2209
2213
|
*/
|
2210
2214
|
interface OnPlayerDemotedEvent extends EventData {
|
2211
2215
|
/**
|
@@ -2223,7 +2227,7 @@ declare module "factorio:runtime" {
|
|
2223
2227
|
}
|
2224
2228
|
/**
|
2225
2229
|
* Called after a player dies.
|
2226
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2230
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_died Online documentation}
|
2227
2231
|
*/
|
2228
2232
|
interface OnPlayerDiedEvent extends EventData {
|
2229
2233
|
readonly player_index: PlayerIndex
|
@@ -2239,7 +2243,7 @@ declare module "factorio:runtime" {
|
|
2239
2243
|
}
|
2240
2244
|
/**
|
2241
2245
|
* 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.
|
2242
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2246
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_display_density_scale_changed Online documentation}
|
2243
2247
|
*/
|
2244
2248
|
interface OnPlayerDisplayDensityScaleChangedEvent extends EventData {
|
2245
2249
|
/**
|
@@ -2261,7 +2265,7 @@ declare module "factorio:runtime" {
|
|
2261
2265
|
}
|
2262
2266
|
/**
|
2263
2267
|
* Called when the display resolution changes for a given player.
|
2264
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2268
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_display_resolution_changed Online documentation}
|
2265
2269
|
*/
|
2266
2270
|
interface OnPlayerDisplayResolutionChangedEvent extends EventData {
|
2267
2271
|
/**
|
@@ -2283,7 +2287,7 @@ declare module "factorio:runtime" {
|
|
2283
2287
|
}
|
2284
2288
|
/**
|
2285
2289
|
* Called when the display scale changes for a given player.
|
2286
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2290
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_display_scale_changed Online documentation}
|
2287
2291
|
*/
|
2288
2292
|
interface OnPlayerDisplayScaleChangedEvent extends EventData {
|
2289
2293
|
/**
|
@@ -2307,7 +2311,7 @@ declare module "factorio:runtime" {
|
|
2307
2311
|
* Called when the player's driving state has changed, meaning a player has either entered or left a vehicle.
|
2308
2312
|
*
|
2309
2313
|
* This event is not raised when the player is ejected from a vehicle due to it being destroyed.
|
2310
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2314
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_driving_changed_state Online documentation}
|
2311
2315
|
*/
|
2312
2316
|
interface OnPlayerDrivingChangedStateEvent extends EventData {
|
2313
2317
|
readonly player_index: PlayerIndex
|
@@ -2326,7 +2330,7 @@ declare module "factorio:runtime" {
|
|
2326
2330
|
}
|
2327
2331
|
/**
|
2328
2332
|
* Called when a player drops an item on the ground.
|
2329
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2333
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_dropped_item Online documentation}
|
2330
2334
|
*/
|
2331
2335
|
interface OnPlayerDroppedItemEvent extends EventData {
|
2332
2336
|
readonly player_index: PlayerIndex
|
@@ -2345,7 +2349,7 @@ declare module "factorio:runtime" {
|
|
2345
2349
|
}
|
2346
2350
|
/**
|
2347
2351
|
* Called when a player fast-transfers something to or from an entity.
|
2348
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2352
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_fast_transferred Online documentation}
|
2349
2353
|
*/
|
2350
2354
|
interface OnPlayerFastTransferredEvent extends EventData {
|
2351
2355
|
/**
|
@@ -2377,7 +2381,7 @@ declare module "factorio:runtime" {
|
|
2377
2381
|
* 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.
|
2378
2382
|
*
|
2379
2383
|
* This event reflects a change in the {@link LuaEntity#mirroring LuaEntity::mirroring} property.
|
2380
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2384
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_flipped_entity Online documentation}
|
2381
2385
|
*/
|
2382
2386
|
interface OnPlayerFlippedEntityEvent extends EventData {
|
2383
2387
|
/**
|
@@ -2400,7 +2404,7 @@ declare module "factorio:runtime" {
|
|
2400
2404
|
}
|
2401
2405
|
/**
|
2402
2406
|
* Called after player flushed fluid
|
2403
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2407
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_flushed_fluid Online documentation}
|
2404
2408
|
*/
|
2405
2409
|
interface OnPlayerFlushedFluidEvent extends EventData {
|
2406
2410
|
/**
|
@@ -2434,7 +2438,7 @@ declare module "factorio:runtime" {
|
|
2434
2438
|
}
|
2435
2439
|
/**
|
2436
2440
|
* Called after a players gun inventory changed in some way.
|
2437
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2441
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_gun_inventory_changed Online documentation}
|
2438
2442
|
*/
|
2439
2443
|
interface OnPlayerGunInventoryChangedEvent extends EventData {
|
2440
2444
|
readonly player_index: PlayerIndex
|
@@ -2449,7 +2453,7 @@ declare module "factorio:runtime" {
|
|
2449
2453
|
}
|
2450
2454
|
/**
|
2451
2455
|
* Called when a player's input method changes. See {@link LuaPlayer#input_method LuaPlayer::input_method}.
|
2452
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2456
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_input_method_changed Online documentation}
|
2453
2457
|
*/
|
2454
2458
|
interface OnPlayerInputMethodChangedEvent extends EventData {
|
2455
2459
|
/**
|
@@ -2467,7 +2471,7 @@ declare module "factorio:runtime" {
|
|
2467
2471
|
}
|
2468
2472
|
/**
|
2469
2473
|
* 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.
|
2470
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2474
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_joined_game Online documentation}
|
2471
2475
|
*/
|
2472
2476
|
interface OnPlayerJoinedGameEvent extends EventData {
|
2473
2477
|
readonly player_index: PlayerIndex
|
@@ -2482,7 +2486,7 @@ declare module "factorio:runtime" {
|
|
2482
2486
|
}
|
2483
2487
|
/**
|
2484
2488
|
* Called when a player is kicked.
|
2485
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2489
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_kicked Online documentation}
|
2486
2490
|
*/
|
2487
2491
|
interface OnPlayerKickedEvent extends EventData {
|
2488
2492
|
/**
|
@@ -2508,7 +2512,7 @@ declare module "factorio:runtime" {
|
|
2508
2512
|
}
|
2509
2513
|
/**
|
2510
2514
|
* 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.
|
2511
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2515
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_left_game Online documentation}
|
2512
2516
|
*/
|
2513
2517
|
interface OnPlayerLeftGameEvent extends EventData {
|
2514
2518
|
readonly player_index: PlayerIndex
|
@@ -2524,7 +2528,7 @@ declare module "factorio:runtime" {
|
|
2524
2528
|
}
|
2525
2529
|
/**
|
2526
2530
|
* Called when a player's active locale changes. See {@link LuaPlayer#locale LuaPlayer::locale}.
|
2527
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2531
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_locale_changed Online documentation}
|
2528
2532
|
*/
|
2529
2533
|
interface OnPlayerLocaleChangedEvent extends EventData {
|
2530
2534
|
/**
|
@@ -2546,7 +2550,7 @@ declare module "factorio:runtime" {
|
|
2546
2550
|
}
|
2547
2551
|
/**
|
2548
2552
|
* Called after a players main inventory changed in some way.
|
2549
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2553
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_main_inventory_changed Online documentation}
|
2550
2554
|
*/
|
2551
2555
|
interface OnPlayerMainInventoryChangedEvent extends EventData {
|
2552
2556
|
readonly player_index: PlayerIndex
|
@@ -2567,7 +2571,7 @@ declare module "factorio:runtime" {
|
|
2567
2571
|
* 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.
|
2568
2572
|
*
|
2569
2573
|
* Event filter: [LuaPlayerMinedEntityEventFilter](LuaPlayerMinedEntityEventFilter]
|
2570
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2574
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_mined_entity Online documentation}
|
2571
2575
|
*/
|
2572
2576
|
interface OnPlayerMinedEntityEvent extends EventData {
|
2573
2577
|
/**
|
@@ -2593,7 +2597,7 @@ declare module "factorio:runtime" {
|
|
2593
2597
|
}
|
2594
2598
|
/**
|
2595
2599
|
* Called when the player mines something.
|
2596
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2600
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_mined_item Online documentation}
|
2597
2601
|
*/
|
2598
2602
|
interface OnPlayerMinedItemEvent extends EventData {
|
2599
2603
|
/**
|
@@ -2612,7 +2616,7 @@ declare module "factorio:runtime" {
|
|
2612
2616
|
}
|
2613
2617
|
/**
|
2614
2618
|
* Called after a player mines tiles.
|
2615
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2619
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_mined_tile Online documentation}
|
2616
2620
|
*/
|
2617
2621
|
interface OnPlayerMinedTileEvent extends EventData {
|
2618
2622
|
readonly player_index: PlayerIndex
|
@@ -2635,7 +2639,7 @@ declare module "factorio:runtime" {
|
|
2635
2639
|
}
|
2636
2640
|
/**
|
2637
2641
|
* Called when a player is muted.
|
2638
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2642
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_muted Online documentation}
|
2639
2643
|
*/
|
2640
2644
|
interface OnPlayerMutedEvent extends EventData {
|
2641
2645
|
/**
|
@@ -2653,7 +2657,7 @@ declare module "factorio:runtime" {
|
|
2653
2657
|
}
|
2654
2658
|
/**
|
2655
2659
|
* Called when a player invokes the "smart pipette" over an entity.
|
2656
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2660
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_pipette Online documentation}
|
2657
2661
|
*/
|
2658
2662
|
interface OnPlayerPipetteEvent extends EventData {
|
2659
2663
|
/**
|
@@ -2683,7 +2687,7 @@ declare module "factorio:runtime" {
|
|
2683
2687
|
}
|
2684
2688
|
/**
|
2685
2689
|
* Called after the player puts equipment in an equipment grid
|
2686
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2690
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_placed_equipment Online documentation}
|
2687
2691
|
*/
|
2688
2692
|
interface OnPlayerPlacedEquipmentEvent extends EventData {
|
2689
2693
|
readonly player_index: PlayerIndex
|
@@ -2706,7 +2710,7 @@ declare module "factorio:runtime" {
|
|
2706
2710
|
}
|
2707
2711
|
/**
|
2708
2712
|
* Called when a player is promoted.
|
2709
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2713
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_promoted Online documentation}
|
2710
2714
|
*/
|
2711
2715
|
interface OnPlayerPromotedEvent extends EventData {
|
2712
2716
|
/**
|
@@ -2724,7 +2728,7 @@ declare module "factorio:runtime" {
|
|
2724
2728
|
}
|
2725
2729
|
/**
|
2726
2730
|
* 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.
|
2727
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2731
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_removed Online documentation}
|
2728
2732
|
*/
|
2729
2733
|
interface OnPlayerRemovedEvent extends EventData {
|
2730
2734
|
/**
|
@@ -2742,7 +2746,7 @@ declare module "factorio:runtime" {
|
|
2742
2746
|
}
|
2743
2747
|
/**
|
2744
2748
|
* Called after the player removes equipment from an equipment grid
|
2745
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2749
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_removed_equipment Online documentation}
|
2746
2750
|
*/
|
2747
2751
|
interface OnPlayerRemovedEquipmentEvent extends EventData {
|
2748
2752
|
readonly player_index: PlayerIndex
|
@@ -2775,7 +2779,7 @@ declare module "factorio:runtime" {
|
|
2775
2779
|
* Called when a player repairs an entity.
|
2776
2780
|
*
|
2777
2781
|
* Event filter: [LuaPlayerRepairedEntityEventFilter](LuaPlayerRepairedEntityEventFilter]
|
2778
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2782
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_repaired_entity Online documentation}
|
2779
2783
|
*/
|
2780
2784
|
interface OnPlayerRepairedEntityEvent extends EventData {
|
2781
2785
|
readonly player_index: PlayerIndex
|
@@ -2791,7 +2795,7 @@ declare module "factorio:runtime" {
|
|
2791
2795
|
}
|
2792
2796
|
/**
|
2793
2797
|
* Called after a player respawns.
|
2794
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2798
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_respawned Online documentation}
|
2795
2799
|
*/
|
2796
2800
|
interface OnPlayerRespawnedEvent extends EventData {
|
2797
2801
|
readonly player_index: PlayerIndex
|
@@ -2810,7 +2814,7 @@ declare module "factorio:runtime" {
|
|
2810
2814
|
}
|
2811
2815
|
/**
|
2812
2816
|
* Called after a player reverse-selects an area with a selection-tool item.
|
2813
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2817
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_reverse_selected_area Online documentation}
|
2814
2818
|
*/
|
2815
2819
|
interface OnPlayerReverseSelectedAreaEvent extends EventData {
|
2816
2820
|
/**
|
@@ -2850,7 +2854,7 @@ declare module "factorio:runtime" {
|
|
2850
2854
|
* 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.
|
2851
2855
|
*
|
2852
2856
|
* Entities being flipped will not fire this event, even if the flip involves rotating. See {@link OnPlayerFlippedEntityEvent on_player_flipped_entity}.
|
2853
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2857
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_rotated_entity Online documentation}
|
2854
2858
|
*/
|
2855
2859
|
interface OnPlayerRotatedEntityEvent extends EventData {
|
2856
2860
|
/**
|
@@ -2873,7 +2877,7 @@ declare module "factorio:runtime" {
|
|
2873
2877
|
}
|
2874
2878
|
/**
|
2875
2879
|
* Called after a player selects an area with a selection-tool item.
|
2876
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2880
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_selected_area Online documentation}
|
2877
2881
|
*/
|
2878
2882
|
interface OnPlayerSelectedAreaEvent extends EventData {
|
2879
2883
|
/**
|
@@ -2915,7 +2919,7 @@ declare module "factorio:runtime" {
|
|
2915
2919
|
}
|
2916
2920
|
/**
|
2917
2921
|
* Called when a player sets a quickbar slot to anything (new value, or set to empty).
|
2918
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2922
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_set_quick_bar_slot Online documentation}
|
2919
2923
|
*/
|
2920
2924
|
interface OnPlayerSetQuickBarSlotEvent extends EventData {
|
2921
2925
|
readonly player_index: PlayerIndex
|
@@ -2930,7 +2934,7 @@ declare module "factorio:runtime" {
|
|
2930
2934
|
}
|
2931
2935
|
/**
|
2932
2936
|
* Called when a player selects an area with a blueprint.
|
2933
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2937
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_setup_blueprint Online documentation}
|
2934
2938
|
*/
|
2935
2939
|
interface OnPlayerSetupBlueprintEvent extends EventData {
|
2936
2940
|
/**
|
@@ -2980,7 +2984,7 @@ declare module "factorio:runtime" {
|
|
2980
2984
|
}
|
2981
2985
|
/**
|
2982
2986
|
* Called when a player toggles alt mode, also known as "show entity info".
|
2983
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2987
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_toggled_alt_mode Online documentation}
|
2984
2988
|
*/
|
2985
2989
|
interface OnPlayerToggledAltModeEvent extends EventData {
|
2986
2990
|
readonly player_index: PlayerIndex
|
@@ -2999,7 +3003,7 @@ declare module "factorio:runtime" {
|
|
2999
3003
|
}
|
3000
3004
|
/**
|
3001
3005
|
* Called when a player toggles the map editor on or off.
|
3002
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3006
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_toggled_map_editor Online documentation}
|
3003
3007
|
*/
|
3004
3008
|
interface OnPlayerToggledMapEditorEvent extends EventData {
|
3005
3009
|
readonly player_index: PlayerIndex
|
@@ -3014,7 +3018,7 @@ declare module "factorio:runtime" {
|
|
3014
3018
|
}
|
3015
3019
|
/**
|
3016
3020
|
* Called after a players trash inventory changed in some way.
|
3017
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3021
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_trash_inventory_changed Online documentation}
|
3018
3022
|
*/
|
3019
3023
|
interface OnPlayerTrashInventoryChangedEvent extends EventData {
|
3020
3024
|
readonly player_index: PlayerIndex
|
@@ -3029,7 +3033,7 @@ declare module "factorio:runtime" {
|
|
3029
3033
|
}
|
3030
3034
|
/**
|
3031
3035
|
* Called when a player is un-banned.
|
3032
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3036
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_unbanned Online documentation}
|
3033
3037
|
*/
|
3034
3038
|
interface OnPlayerUnbannedEvent extends EventData {
|
3035
3039
|
/**
|
@@ -3059,7 +3063,7 @@ declare module "factorio:runtime" {
|
|
3059
3063
|
}
|
3060
3064
|
/**
|
3061
3065
|
* Called when a player is unmuted.
|
3062
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3066
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_unmuted Online documentation}
|
3063
3067
|
*/
|
3064
3068
|
interface OnPlayerUnmutedEvent extends EventData {
|
3065
3069
|
/**
|
@@ -3077,7 +3081,7 @@ declare module "factorio:runtime" {
|
|
3077
3081
|
}
|
3078
3082
|
/**
|
3079
3083
|
* Called when a player uses a capsule that results in some game action.
|
3080
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3084
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_used_capsule Online documentation}
|
3081
3085
|
*/
|
3082
3086
|
interface OnPlayerUsedCapsuleEvent extends EventData {
|
3083
3087
|
/**
|
@@ -3107,7 +3111,7 @@ declare module "factorio:runtime" {
|
|
3107
3111
|
}
|
3108
3112
|
/**
|
3109
3113
|
* Called when a player uses spidertron remote to send all selected units to a given position
|
3110
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3114
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_player_used_spidertron_remote Online documentation}
|
3111
3115
|
*/
|
3112
3116
|
interface OnPlayerUsedSpidertronRemoteEvent extends EventData {
|
3113
3117
|
/**
|
@@ -3131,7 +3135,7 @@ declare module "factorio:runtime" {
|
|
3131
3135
|
* Called after an entity dies.
|
3132
3136
|
*
|
3133
3137
|
* Event filter: [LuaPostEntityDiedEventFilter](LuaPostEntityDiedEventFilter]
|
3134
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3138
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_post_entity_died Online documentation}
|
3135
3139
|
*/
|
3136
3140
|
interface OnPostEntityDiedEvent extends EventData {
|
3137
3141
|
/**
|
@@ -3181,7 +3185,7 @@ declare module "factorio:runtime" {
|
|
3181
3185
|
}
|
3182
3186
|
/**
|
3183
3187
|
* Called when players uses an item to build something. Called before {@link OnBuiltEntityEvent on_built_entity}.
|
3184
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3188
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_build Online documentation}
|
3185
3189
|
*/
|
3186
3190
|
interface OnPreBuildEvent extends EventData {
|
3187
3191
|
/**
|
@@ -3227,7 +3231,7 @@ declare module "factorio:runtime" {
|
|
3227
3231
|
}
|
3228
3232
|
/**
|
3229
3233
|
* Called before one or more chunks are deleted using {@link LuaSurface#delete_chunk LuaSurface::delete_chunk}.
|
3230
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3234
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_chunk_deleted Online documentation}
|
3231
3235
|
*/
|
3232
3236
|
interface OnPreChunkDeletedEvent extends EventData {
|
3233
3237
|
readonly surface_index: SurfaceIndex
|
@@ -3246,7 +3250,7 @@ declare module "factorio:runtime" {
|
|
3246
3250
|
}
|
3247
3251
|
/**
|
3248
3252
|
* Called before entity copy-paste is done.
|
3249
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3253
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_entity_settings_pasted Online documentation}
|
3250
3254
|
*/
|
3251
3255
|
interface OnPreEntitySettingsPastedEvent extends EventData {
|
3252
3256
|
readonly player_index: PlayerIndex
|
@@ -3273,7 +3277,7 @@ declare module "factorio:runtime" {
|
|
3273
3277
|
* Also called for item request proxies before they are destroyed as a result of being marked for deconstruction.
|
3274
3278
|
*
|
3275
3279
|
* Event filter: [LuaPreGhostDeconstructedEventFilter](LuaPreGhostDeconstructedEventFilter]
|
3276
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3280
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_ghost_deconstructed Online documentation}
|
3277
3281
|
*/
|
3278
3282
|
interface OnPreGhostDeconstructedEvent extends EventData {
|
3279
3283
|
/**
|
@@ -3294,7 +3298,7 @@ declare module "factorio:runtime" {
|
|
3294
3298
|
* Called before a ghost entity is upgraded.
|
3295
3299
|
*
|
3296
3300
|
* Event filter: [LuaPreGhostUpgradedEventFilter](LuaPreGhostUpgradedEventFilter]
|
3297
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3301
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_ghost_upgraded Online documentation}
|
3298
3302
|
*/
|
3299
3303
|
interface OnPreGhostUpgradedEvent extends EventData {
|
3300
3304
|
/**
|
@@ -3315,7 +3319,7 @@ declare module "factorio:runtime" {
|
|
3315
3319
|
}
|
3316
3320
|
/**
|
3317
3321
|
* Called directly before a permission group is deleted.
|
3318
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3322
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_permission_group_deleted Online documentation}
|
3319
3323
|
*/
|
3320
3324
|
interface OnPrePermissionGroupDeletedEvent extends EventData {
|
3321
3325
|
/**
|
@@ -3337,7 +3341,7 @@ declare module "factorio:runtime" {
|
|
3337
3341
|
}
|
3338
3342
|
/**
|
3339
3343
|
* Called directly before a permission string is imported.
|
3340
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3344
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_permission_string_imported Online documentation}
|
3341
3345
|
*/
|
3342
3346
|
interface OnPrePermissionStringImportedEvent extends EventData {
|
3343
3347
|
/**
|
@@ -3355,7 +3359,7 @@ declare module "factorio:runtime" {
|
|
3355
3359
|
}
|
3356
3360
|
/**
|
3357
3361
|
* Called when a player queues something to be crafted.
|
3358
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3362
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_player_crafted_item Online documentation}
|
3359
3363
|
*/
|
3360
3364
|
interface OnPrePlayerCraftedItemEvent extends EventData {
|
3361
3365
|
/**
|
@@ -3385,7 +3389,7 @@ declare module "factorio:runtime" {
|
|
3385
3389
|
}
|
3386
3390
|
/**
|
3387
3391
|
* Called before a players dies.
|
3388
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3392
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_player_died Online documentation}
|
3389
3393
|
*/
|
3390
3394
|
interface OnPrePlayerDiedEvent extends EventData {
|
3391
3395
|
readonly player_index: PlayerIndex
|
@@ -3401,7 +3405,7 @@ declare module "factorio:runtime" {
|
|
3401
3405
|
}
|
3402
3406
|
/**
|
3403
3407
|
* Called before a player leaves the game.
|
3404
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3408
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_player_left_game Online documentation}
|
3405
3409
|
*/
|
3406
3410
|
interface OnPrePlayerLeftGameEvent extends EventData {
|
3407
3411
|
readonly player_index: PlayerIndex
|
@@ -3419,7 +3423,7 @@ declare module "factorio:runtime" {
|
|
3419
3423
|
* 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.
|
3420
3424
|
*
|
3421
3425
|
* Event filter: [LuaPrePlayerMinedEntityEventFilter](LuaPrePlayerMinedEntityEventFilter]
|
3422
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3426
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_player_mined_item Online documentation}
|
3423
3427
|
*/
|
3424
3428
|
interface OnPrePlayerMinedItemEvent extends EventData {
|
3425
3429
|
/**
|
@@ -3438,7 +3442,7 @@ declare module "factorio:runtime" {
|
|
3438
3442
|
}
|
3439
3443
|
/**
|
3440
3444
|
* 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.
|
3441
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3445
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_player_removed Online documentation}
|
3442
3446
|
*/
|
3443
3447
|
interface OnPrePlayerRemovedEvent extends EventData {
|
3444
3448
|
/**
|
@@ -3456,7 +3460,7 @@ declare module "factorio:runtime" {
|
|
3456
3460
|
}
|
3457
3461
|
/**
|
3458
3462
|
* Called before a player toggles the map editor on or off.
|
3459
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3463
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_player_toggled_map_editor Online documentation}
|
3460
3464
|
*/
|
3461
3465
|
interface OnPrePlayerToggledMapEditorEvent extends EventData {
|
3462
3466
|
readonly player_index: PlayerIndex
|
@@ -3471,7 +3475,7 @@ declare module "factorio:runtime" {
|
|
3471
3475
|
}
|
3472
3476
|
/**
|
3473
3477
|
* Called directly before a robot explodes cliffs.
|
3474
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3478
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_robot_exploded_cliff Online documentation}
|
3475
3479
|
*/
|
3476
3480
|
interface OnPreRobotExplodedCliffEvent extends EventData {
|
3477
3481
|
readonly robot: LuaEntity
|
@@ -3495,7 +3499,7 @@ declare module "factorio:runtime" {
|
|
3495
3499
|
}
|
3496
3500
|
/**
|
3497
3501
|
* Called just before the scenario finishes.
|
3498
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3502
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_scenario_finished Online documentation}
|
3499
3503
|
*/
|
3500
3504
|
interface OnPreScenarioFinishedEvent extends EventData {
|
3501
3505
|
/**
|
@@ -3513,7 +3517,7 @@ declare module "factorio:runtime" {
|
|
3513
3517
|
}
|
3514
3518
|
/**
|
3515
3519
|
* Called just before a script inventory is resized.
|
3516
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3520
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_script_inventory_resized Online documentation}
|
3517
3521
|
*/
|
3518
3522
|
interface OnPreScriptInventoryResizedEvent extends EventData {
|
3519
3523
|
/**
|
@@ -3544,7 +3548,7 @@ declare module "factorio:runtime" {
|
|
3544
3548
|
}
|
3545
3549
|
/**
|
3546
3550
|
* Called just before a surface is cleared (all entities removed and all chunks deleted).
|
3547
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3551
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_surface_cleared Online documentation}
|
3548
3552
|
*/
|
3549
3553
|
interface OnPreSurfaceClearedEvent extends EventData {
|
3550
3554
|
readonly surface_index: SurfaceIndex
|
@@ -3559,7 +3563,7 @@ declare module "factorio:runtime" {
|
|
3559
3563
|
}
|
3560
3564
|
/**
|
3561
3565
|
* Called just before a surface is deleted.
|
3562
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3566
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_pre_surface_deleted Online documentation}
|
3563
3567
|
*/
|
3564
3568
|
interface OnPreSurfaceDeletedEvent extends EventData {
|
3565
3569
|
readonly surface_index: SurfaceIndex
|
@@ -3574,7 +3578,7 @@ declare module "factorio:runtime" {
|
|
3574
3578
|
}
|
3575
3579
|
/**
|
3576
3580
|
* Called when the player triggers "redo".
|
3577
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3581
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_redo_applied Online documentation}
|
3578
3582
|
*/
|
3579
3583
|
interface OnRedoAppliedEvent extends EventData {
|
3580
3584
|
/**
|
@@ -3596,7 +3600,7 @@ declare module "factorio:runtime" {
|
|
3596
3600
|
}
|
3597
3601
|
/**
|
3598
3602
|
* Called when research is cancelled.
|
3599
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3603
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_research_cancelled Online documentation}
|
3600
3604
|
*/
|
3601
3605
|
interface OnResearchCancelledEvent extends EventData {
|
3602
3606
|
/**
|
@@ -3607,6 +3611,10 @@ declare module "factorio:runtime" {
|
|
3607
3611
|
* The force whose research was cancelled.
|
3608
3612
|
*/
|
3609
3613
|
readonly force: LuaForce
|
3614
|
+
/**
|
3615
|
+
* The player who cancelled the research if any.
|
3616
|
+
*/
|
3617
|
+
readonly player_index?: PlayerIndex
|
3610
3618
|
/**
|
3611
3619
|
* Identifier of the event
|
3612
3620
|
*/
|
@@ -3618,7 +3626,7 @@ declare module "factorio:runtime" {
|
|
3618
3626
|
}
|
3619
3627
|
/**
|
3620
3628
|
* Called when a research finishes.
|
3621
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3629
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_research_finished Online documentation}
|
3622
3630
|
*/
|
3623
3631
|
interface OnResearchFinishedEvent extends EventData {
|
3624
3632
|
/**
|
@@ -3640,13 +3648,17 @@ declare module "factorio:runtime" {
|
|
3640
3648
|
}
|
3641
3649
|
/**
|
3642
3650
|
* Called when research is moved forwards or backwards in the research queue.
|
3643
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3651
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_research_moved Online documentation}
|
3644
3652
|
*/
|
3645
3653
|
interface OnResearchMovedEvent extends EventData {
|
3646
3654
|
/**
|
3647
3655
|
* The force whose research was re-arranged.
|
3648
3656
|
*/
|
3649
3657
|
readonly force: LuaForce
|
3658
|
+
/**
|
3659
|
+
* The player who did the re-arranging if any.
|
3660
|
+
*/
|
3661
|
+
readonly player_index?: PlayerIndex
|
3650
3662
|
/**
|
3651
3663
|
* Identifier of the event
|
3652
3664
|
*/
|
@@ -3656,9 +3668,35 @@ declare module "factorio:runtime" {
|
|
3656
3668
|
*/
|
3657
3669
|
readonly tick: uint
|
3658
3670
|
}
|
3671
|
+
/**
|
3672
|
+
* Called when research is queued.
|
3673
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_research_queued Online documentation}
|
3674
|
+
*/
|
3675
|
+
interface OnResearchQueuedEvent extends EventData {
|
3676
|
+
/**
|
3677
|
+
* The technology queued
|
3678
|
+
*/
|
3679
|
+
readonly research: LuaTechnology
|
3680
|
+
/**
|
3681
|
+
* The force whose research was queued.
|
3682
|
+
*/
|
3683
|
+
readonly force: LuaForce
|
3684
|
+
/**
|
3685
|
+
* The player who queued the research if any.
|
3686
|
+
*/
|
3687
|
+
readonly player_index?: PlayerIndex
|
3688
|
+
/**
|
3689
|
+
* Identifier of the event
|
3690
|
+
*/
|
3691
|
+
readonly name: typeof defines.events.on_research_queued
|
3692
|
+
/**
|
3693
|
+
* Tick the event was generated.
|
3694
|
+
*/
|
3695
|
+
readonly tick: uint
|
3696
|
+
}
|
3659
3697
|
/**
|
3660
3698
|
* Called when a research is reversed (unresearched).
|
3661
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3699
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_research_reversed Online documentation}
|
3662
3700
|
*/
|
3663
3701
|
interface OnResearchReversedEvent extends EventData {
|
3664
3702
|
/**
|
@@ -3680,7 +3718,7 @@ declare module "factorio:runtime" {
|
|
3680
3718
|
}
|
3681
3719
|
/**
|
3682
3720
|
* Called when a technology research starts.
|
3683
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3721
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_research_started Online documentation}
|
3684
3722
|
*/
|
3685
3723
|
interface OnResearchStartedEvent extends EventData {
|
3686
3724
|
/**
|
@@ -3699,7 +3737,7 @@ declare module "factorio:runtime" {
|
|
3699
3737
|
}
|
3700
3738
|
/**
|
3701
3739
|
* Called when a resource entity reaches 0 or its minimum yield for infinite resources.
|
3702
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3740
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_resource_depleted Online documentation}
|
3703
3741
|
*/
|
3704
3742
|
interface OnResourceDepletedEvent extends EventData {
|
3705
3743
|
readonly entity: LuaEntity
|
@@ -3716,7 +3754,7 @@ declare module "factorio:runtime" {
|
|
3716
3754
|
* Called when a construction robot builds an entity.
|
3717
3755
|
*
|
3718
3756
|
* Event filter: [LuaRobotBuiltEntityEventFilter](LuaRobotBuiltEntityEventFilter]
|
3719
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3757
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_robot_built_entity Online documentation}
|
3720
3758
|
*/
|
3721
3759
|
interface OnRobotBuiltEntityEvent extends EventData {
|
3722
3760
|
/**
|
@@ -3746,7 +3784,7 @@ declare module "factorio:runtime" {
|
|
3746
3784
|
}
|
3747
3785
|
/**
|
3748
3786
|
* Called after a robot builds tiles.
|
3749
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3787
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_robot_built_tile Online documentation}
|
3750
3788
|
*/
|
3751
3789
|
interface OnRobotBuiltTileEvent extends EventData {
|
3752
3790
|
/**
|
@@ -3788,7 +3826,7 @@ declare module "factorio:runtime" {
|
|
3788
3826
|
}
|
3789
3827
|
/**
|
3790
3828
|
* Called directly after a robot explodes cliffs.
|
3791
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3829
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_robot_exploded_cliff Online documentation}
|
3792
3830
|
*/
|
3793
3831
|
interface OnRobotExplodedCliffEvent extends EventData {
|
3794
3832
|
readonly robot: LuaEntity
|
@@ -3811,7 +3849,7 @@ declare module "factorio:runtime" {
|
|
3811
3849
|
}
|
3812
3850
|
/**
|
3813
3851
|
* Called when a robot mines an entity.
|
3814
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3852
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_robot_mined Online documentation}
|
3815
3853
|
*/
|
3816
3854
|
interface OnRobotMinedEvent extends EventData {
|
3817
3855
|
/**
|
@@ -3839,7 +3877,7 @@ declare module "factorio:runtime" {
|
|
3839
3877
|
* 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.
|
3840
3878
|
*
|
3841
3879
|
* Event filter: [LuaRobotMinedEntityEventFilter](LuaRobotMinedEntityEventFilter]
|
3842
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3880
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_robot_mined_entity Online documentation}
|
3843
3881
|
*/
|
3844
3882
|
interface OnRobotMinedEntityEvent extends EventData {
|
3845
3883
|
/**
|
@@ -3865,7 +3903,7 @@ declare module "factorio:runtime" {
|
|
3865
3903
|
}
|
3866
3904
|
/**
|
3867
3905
|
* Called after a robot mines tiles.
|
3868
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3906
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_robot_mined_tile Online documentation}
|
3869
3907
|
*/
|
3870
3908
|
interface OnRobotMinedTileEvent extends EventData {
|
3871
3909
|
/**
|
@@ -3893,7 +3931,7 @@ declare module "factorio:runtime" {
|
|
3893
3931
|
* Called before a robot mines an entity.
|
3894
3932
|
*
|
3895
3933
|
* Event filter: [LuaPreRobotMinedEntityEventFilter](LuaPreRobotMinedEntityEventFilter]
|
3896
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3934
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_robot_pre_mined Online documentation}
|
3897
3935
|
*/
|
3898
3936
|
interface OnRobotPreMinedEvent extends EventData {
|
3899
3937
|
/**
|
@@ -3915,7 +3953,7 @@ declare module "factorio:runtime" {
|
|
3915
3953
|
}
|
3916
3954
|
/**
|
3917
3955
|
* Called when a rocket silo is ordered to be launched.
|
3918
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3956
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_rocket_launch_ordered Online documentation}
|
3919
3957
|
*/
|
3920
3958
|
interface OnRocketLaunchOrderedEvent extends EventData {
|
3921
3959
|
readonly rocket: LuaEntity
|
@@ -3935,7 +3973,7 @@ declare module "factorio:runtime" {
|
|
3935
3973
|
}
|
3936
3974
|
/**
|
3937
3975
|
* 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)
|
3938
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3976
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_rocket_launched Online documentation}
|
3939
3977
|
*/
|
3940
3978
|
interface OnRocketLaunchedEvent extends EventData {
|
3941
3979
|
readonly rocket: LuaEntity
|
@@ -3951,7 +3989,7 @@ declare module "factorio:runtime" {
|
|
3951
3989
|
}
|
3952
3990
|
/**
|
3953
3991
|
* Called when a runtime mod setting is changed by a player.
|
3954
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3992
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_runtime_mod_setting_changed Online documentation}
|
3955
3993
|
*/
|
3956
3994
|
interface OnRuntimeModSettingChangedEvent extends EventData {
|
3957
3995
|
/**
|
@@ -3974,7 +4012,7 @@ declare module "factorio:runtime" {
|
|
3974
4012
|
}
|
3975
4013
|
/**
|
3976
4014
|
* Called just after a script inventory is resized.
|
3977
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4015
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_script_inventory_resized Online documentation}
|
3978
4016
|
*/
|
3979
4017
|
interface OnScriptInventoryResizedEvent extends EventData {
|
3980
4018
|
/**
|
@@ -4009,7 +4047,7 @@ declare module "factorio:runtime" {
|
|
4009
4047
|
}
|
4010
4048
|
/**
|
4011
4049
|
* Called when a {@link LuaSurface#request_path LuaSurface::request_path} call completes.
|
4012
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4050
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_script_path_request_finished Online documentation}
|
4013
4051
|
*/
|
4014
4052
|
interface OnScriptPathRequestFinishedEvent extends EventData {
|
4015
4053
|
/**
|
@@ -4035,7 +4073,7 @@ declare module "factorio:runtime" {
|
|
4035
4073
|
}
|
4036
4074
|
/**
|
4037
4075
|
* Called when a script trigger effect is triggered.
|
4038
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4076
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_script_trigger_effect Online documentation}
|
4039
4077
|
*/
|
4040
4078
|
interface OnScriptTriggerEffectEvent extends EventData {
|
4041
4079
|
/**
|
@@ -4068,7 +4106,7 @@ declare module "factorio:runtime" {
|
|
4068
4106
|
* Called when an entity of type `radar` finishes scanning a sector.
|
4069
4107
|
*
|
4070
4108
|
* Event filter: [LuaSectorScannedEventFilter](LuaSectorScannedEventFilter]
|
4071
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4109
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_sector_scanned Online documentation}
|
4072
4110
|
*/
|
4073
4111
|
interface OnSectorScannedEvent extends EventData {
|
4074
4112
|
/**
|
@@ -4094,7 +4132,7 @@ declare module "factorio:runtime" {
|
|
4094
4132
|
}
|
4095
4133
|
/**
|
4096
4134
|
* Called when an individual segment of a SegmentedUnit is created.
|
4097
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4135
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_segment_entity_created Online documentation}
|
4098
4136
|
*/
|
4099
4137
|
interface OnSegmentEntityCreatedEvent extends EventData {
|
4100
4138
|
readonly entity: LuaEntity
|
@@ -4109,7 +4147,7 @@ declare module "factorio:runtime" {
|
|
4109
4147
|
}
|
4110
4148
|
/**
|
4111
4149
|
* Called after the selected entity changes for a given player.
|
4112
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4150
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_selected_entity_changed Online documentation}
|
4113
4151
|
*/
|
4114
4152
|
interface OnSelectedEntityChangedEvent extends EventData {
|
4115
4153
|
/**
|
@@ -4131,7 +4169,7 @@ declare module "factorio:runtime" {
|
|
4131
4169
|
}
|
4132
4170
|
/**
|
4133
4171
|
* 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.
|
4134
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4172
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_singleplayer_init Online documentation}
|
4135
4173
|
*/
|
4136
4174
|
interface OnSingleplayerInitEvent extends EventData {
|
4137
4175
|
/**
|
@@ -4147,7 +4185,7 @@ declare module "factorio:runtime" {
|
|
4147
4185
|
* Called when a space platform builds an entity.
|
4148
4186
|
*
|
4149
4187
|
* Event filter: [LuaPlatformBuiltEntityEventFilter](LuaPlatformBuiltEntityEventFilter]
|
4150
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4188
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_space_platform_built_entity Online documentation}
|
4151
4189
|
*/
|
4152
4190
|
interface OnSpacePlatformBuiltEntityEvent extends EventData {
|
4153
4191
|
/**
|
@@ -4177,7 +4215,7 @@ declare module "factorio:runtime" {
|
|
4177
4215
|
}
|
4178
4216
|
/**
|
4179
4217
|
* Called after a space platform builds tiles.
|
4180
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4218
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_space_platform_built_tile Online documentation}
|
4181
4219
|
*/
|
4182
4220
|
interface OnSpacePlatformBuiltTileEvent extends EventData {
|
4183
4221
|
/**
|
@@ -4219,7 +4257,7 @@ declare module "factorio:runtime" {
|
|
4219
4257
|
}
|
4220
4258
|
/**
|
4221
4259
|
* Called when a space platform changes state
|
4222
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4260
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_space_platform_changed_state Online documentation}
|
4223
4261
|
*/
|
4224
4262
|
interface OnSpacePlatformChangedStateEvent extends EventData {
|
4225
4263
|
readonly platform: LuaSpacePlatform
|
@@ -4241,7 +4279,7 @@ declare module "factorio:runtime" {
|
|
4241
4279
|
* 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.
|
4242
4280
|
*
|
4243
4281
|
* Event filter: [LuaPlatformMinedEntityEventFilter](LuaPlatformMinedEntityEventFilter]
|
4244
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4282
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_space_platform_mined_entity Online documentation}
|
4245
4283
|
*/
|
4246
4284
|
interface OnSpacePlatformMinedEntityEvent extends EventData {
|
4247
4285
|
/**
|
@@ -4267,7 +4305,7 @@ declare module "factorio:runtime" {
|
|
4267
4305
|
}
|
4268
4306
|
/**
|
4269
4307
|
* Called when a platform mines an entity.
|
4270
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4308
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_space_platform_mined_item Online documentation}
|
4271
4309
|
*/
|
4272
4310
|
interface OnSpacePlatformMinedItemEvent extends EventData {
|
4273
4311
|
/**
|
@@ -4289,7 +4327,7 @@ declare module "factorio:runtime" {
|
|
4289
4327
|
}
|
4290
4328
|
/**
|
4291
4329
|
* Called after a platform mines tiles.
|
4292
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4330
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_space_platform_mined_tile Online documentation}
|
4293
4331
|
*/
|
4294
4332
|
interface OnSpacePlatformMinedTileEvent extends EventData {
|
4295
4333
|
/**
|
@@ -4317,7 +4355,7 @@ declare module "factorio:runtime" {
|
|
4317
4355
|
* Called before a platform mines an entity.
|
4318
4356
|
*
|
4319
4357
|
* Event filter: [LuaPrePlatformMinedEntityEventFilter](LuaPrePlatformMinedEntityEventFilter]
|
4320
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4358
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_space_platform_pre_mined Online documentation}
|
4321
4359
|
*/
|
4322
4360
|
interface OnSpacePlatformPreMinedEvent extends EventData {
|
4323
4361
|
/**
|
@@ -4339,7 +4377,7 @@ declare module "factorio:runtime" {
|
|
4339
4377
|
}
|
4340
4378
|
/**
|
4341
4379
|
* Called when a spider finishes moving to its autopilot position.
|
4342
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4380
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_spider_command_completed Online documentation}
|
4343
4381
|
*/
|
4344
4382
|
interface OnSpiderCommandCompletedEvent extends EventData {
|
4345
4383
|
/**
|
@@ -4357,7 +4395,7 @@ declare module "factorio:runtime" {
|
|
4357
4395
|
}
|
4358
4396
|
/**
|
4359
4397
|
* 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.
|
4360
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4398
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_string_translated Online documentation}
|
4361
4399
|
*/
|
4362
4400
|
interface OnStringTranslatedEvent extends EventData {
|
4363
4401
|
/**
|
@@ -4391,7 +4429,7 @@ declare module "factorio:runtime" {
|
|
4391
4429
|
}
|
4392
4430
|
/**
|
4393
4431
|
* Called just after a surface is cleared (all entities removed and all chunks deleted).
|
4394
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4432
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_surface_cleared Online documentation}
|
4395
4433
|
*/
|
4396
4434
|
interface OnSurfaceClearedEvent extends EventData {
|
4397
4435
|
readonly surface_index: SurfaceIndex
|
@@ -4408,7 +4446,7 @@ declare module "factorio:runtime" {
|
|
4408
4446
|
* Called when a surface is created.
|
4409
4447
|
*
|
4410
4448
|
* This is not called when the default surface is created as it will always exist.
|
4411
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4449
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_surface_created Online documentation}
|
4412
4450
|
*/
|
4413
4451
|
interface OnSurfaceCreatedEvent extends EventData {
|
4414
4452
|
readonly surface_index: SurfaceIndex
|
@@ -4423,7 +4461,7 @@ declare module "factorio:runtime" {
|
|
4423
4461
|
}
|
4424
4462
|
/**
|
4425
4463
|
* Called after a surface is deleted.
|
4426
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4464
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_surface_deleted Online documentation}
|
4427
4465
|
*/
|
4428
4466
|
interface OnSurfaceDeletedEvent extends EventData {
|
4429
4467
|
readonly surface_index: SurfaceIndex
|
@@ -4438,7 +4476,7 @@ declare module "factorio:runtime" {
|
|
4438
4476
|
}
|
4439
4477
|
/**
|
4440
4478
|
* Called after a surface is imported via the map editor.
|
4441
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4479
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_surface_imported Online documentation}
|
4442
4480
|
*/
|
4443
4481
|
interface OnSurfaceImportedEvent extends EventData {
|
4444
4482
|
readonly surface_index: SurfaceIndex
|
@@ -4457,7 +4495,7 @@ declare module "factorio:runtime" {
|
|
4457
4495
|
}
|
4458
4496
|
/**
|
4459
4497
|
* Called when a surface is renamed.
|
4460
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4498
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_surface_renamed Online documentation}
|
4461
4499
|
*/
|
4462
4500
|
interface OnSurfaceRenamedEvent extends EventData {
|
4463
4501
|
readonly surface_index: SurfaceIndex
|
@@ -4474,7 +4512,7 @@ declare module "factorio:runtime" {
|
|
4474
4512
|
}
|
4475
4513
|
/**
|
4476
4514
|
* Called when {@link LuaForce#reset_technology_effects LuaForce::reset_technology_effects} is finished.
|
4477
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4515
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_technology_effects_reset Online documentation}
|
4478
4516
|
*/
|
4479
4517
|
interface OnTechnologyEffectsResetEvent extends EventData {
|
4480
4518
|
readonly force: LuaForce
|
@@ -4489,7 +4527,7 @@ declare module "factorio:runtime" {
|
|
4489
4527
|
}
|
4490
4528
|
/**
|
4491
4529
|
* It is fired once every tick. Since this event is fired every tick, its handler shouldn't include performance heavy code.
|
4492
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4530
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_tick Online documentation}
|
4493
4531
|
*/
|
4494
4532
|
interface OnTickEvent extends EventData {
|
4495
4533
|
/**
|
@@ -4503,7 +4541,7 @@ declare module "factorio:runtime" {
|
|
4503
4541
|
}
|
4504
4542
|
/**
|
4505
4543
|
* Called when a train changes state (started to stopped and vice versa)
|
4506
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4544
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_train_changed_state Online documentation}
|
4507
4545
|
*/
|
4508
4546
|
interface OnTrainChangedStateEvent extends EventData {
|
4509
4547
|
readonly train: LuaTrain
|
@@ -4519,7 +4557,7 @@ declare module "factorio:runtime" {
|
|
4519
4557
|
}
|
4520
4558
|
/**
|
4521
4559
|
* Called when a new train is created either through disconnecting/connecting an existing one or building a new one.
|
4522
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4560
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_train_created Online documentation}
|
4523
4561
|
*/
|
4524
4562
|
interface OnTrainCreatedEvent extends EventData {
|
4525
4563
|
readonly train: LuaTrain
|
@@ -4542,7 +4580,7 @@ declare module "factorio:runtime" {
|
|
4542
4580
|
}
|
4543
4581
|
/**
|
4544
4582
|
* Called when a trains schedule is changed either by the player or through script.
|
4545
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4583
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_train_schedule_changed Online documentation}
|
4546
4584
|
*/
|
4547
4585
|
interface OnTrainScheduleChangedEvent extends EventData {
|
4548
4586
|
readonly train: LuaTrain
|
@@ -4561,7 +4599,7 @@ declare module "factorio:runtime" {
|
|
4561
4599
|
}
|
4562
4600
|
/**
|
4563
4601
|
* Called when an entity with a trigger prototype (such as capsules) create an entity AND that trigger prototype defined `trigger_created_entity=true`.
|
4564
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4602
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_trigger_created_entity Online documentation}
|
4565
4603
|
*/
|
4566
4604
|
interface OnTriggerCreatedEntityEvent extends EventData {
|
4567
4605
|
readonly entity: LuaEntity
|
@@ -4577,7 +4615,7 @@ declare module "factorio:runtime" {
|
|
4577
4615
|
}
|
4578
4616
|
/**
|
4579
4617
|
* Called when an entity with a trigger prototype (such as capsules) fire an artillery projectile AND that trigger prototype defined `trigger_fired_artillery=true`.
|
4580
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4618
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_trigger_fired_artillery Online documentation}
|
4581
4619
|
*/
|
4582
4620
|
interface OnTriggerFiredArtilleryEvent extends EventData {
|
4583
4621
|
readonly entity: LuaEntity
|
@@ -4593,7 +4631,7 @@ declare module "factorio:runtime" {
|
|
4593
4631
|
}
|
4594
4632
|
/**
|
4595
4633
|
* Called when the player triggers "undo".
|
4596
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4634
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_undo_applied Online documentation}
|
4597
4635
|
*/
|
4598
4636
|
interface OnUndoAppliedEvent extends EventData {
|
4599
4637
|
/**
|
@@ -4615,7 +4653,7 @@ declare module "factorio:runtime" {
|
|
4615
4653
|
}
|
4616
4654
|
/**
|
4617
4655
|
* Called when a unit is added to a unit group.
|
4618
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4656
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_unit_added_to_group Online documentation}
|
4619
4657
|
*/
|
4620
4658
|
interface OnUnitAddedToGroupEvent extends EventData {
|
4621
4659
|
readonly unit: LuaEntity
|
@@ -4631,7 +4669,7 @@ declare module "factorio:runtime" {
|
|
4631
4669
|
}
|
4632
4670
|
/**
|
4633
4671
|
* Called when a new unit group is created, before any members are added to it.
|
4634
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4672
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_unit_group_created Online documentation}
|
4635
4673
|
*/
|
4636
4674
|
interface OnUnitGroupCreatedEvent extends EventData {
|
4637
4675
|
readonly group: LuaCommandable
|
@@ -4646,7 +4684,7 @@ declare module "factorio:runtime" {
|
|
4646
4684
|
}
|
4647
4685
|
/**
|
4648
4686
|
* Called when a unit group finishes gathering and starts executing its command.
|
4649
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4687
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_unit_group_finished_gathering Online documentation}
|
4650
4688
|
*/
|
4651
4689
|
interface OnUnitGroupFinishedGatheringEvent extends EventData {
|
4652
4690
|
readonly group: LuaCommandable
|
@@ -4661,7 +4699,7 @@ declare module "factorio:runtime" {
|
|
4661
4699
|
}
|
4662
4700
|
/**
|
4663
4701
|
* Called when a unit is removed from a unit group.
|
4664
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4702
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_unit_removed_from_group Online documentation}
|
4665
4703
|
*/
|
4666
4704
|
interface OnUnitRemovedFromGroupEvent extends EventData {
|
4667
4705
|
readonly unit: LuaEntity
|
@@ -4677,7 +4715,7 @@ declare module "factorio:runtime" {
|
|
4677
4715
|
}
|
4678
4716
|
/**
|
4679
4717
|
* Called when a worker (construction or logistic) robot expires through a lack of energy.
|
4680
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4718
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#on_worker_robot_expired Online documentation}
|
4681
4719
|
*/
|
4682
4720
|
interface OnWorkerRobotExpiredEvent extends EventData {
|
4683
4721
|
readonly robot: LuaEntity
|
@@ -4694,7 +4732,7 @@ declare module "factorio:runtime" {
|
|
4694
4732
|
* 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}.
|
4695
4733
|
*
|
4696
4734
|
* Event filter: [LuaScriptRaisedBuiltEventFilter](LuaScriptRaisedBuiltEventFilter]
|
4697
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4735
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#script_raised_built Online documentation}
|
4698
4736
|
*/
|
4699
4737
|
interface ScriptRaisedBuiltEvent extends EventData {
|
4700
4738
|
/**
|
@@ -4714,7 +4752,7 @@ declare module "factorio:runtime" {
|
|
4714
4752
|
* 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}.
|
4715
4753
|
*
|
4716
4754
|
* Event filter: [LuaScriptRaisedDestroyEventFilter](LuaScriptRaisedDestroyEventFilter]
|
4717
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4755
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#script_raised_destroy Online documentation}
|
4718
4756
|
*/
|
4719
4757
|
interface ScriptRaisedDestroyEvent extends EventData {
|
4720
4758
|
/**
|
@@ -4734,7 +4772,7 @@ declare module "factorio:runtime" {
|
|
4734
4772
|
* 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}.
|
4735
4773
|
*
|
4736
4774
|
* Event filter: [LuaScriptRaisedReviveEventFilter](LuaScriptRaisedReviveEventFilter]
|
4737
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4775
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#script_raised_revive Online documentation}
|
4738
4776
|
*/
|
4739
4777
|
interface ScriptRaisedReviveEvent extends EventData {
|
4740
4778
|
/**
|
@@ -4756,7 +4794,7 @@ declare module "factorio:runtime" {
|
|
4756
4794
|
}
|
4757
4795
|
/**
|
4758
4796
|
* 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}.
|
4759
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4797
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#script_raised_set_tiles Online documentation}
|
4760
4798
|
*/
|
4761
4799
|
interface ScriptRaisedSetTilesEvent extends EventData {
|
4762
4800
|
/**
|
@@ -4780,7 +4818,7 @@ declare module "factorio:runtime" {
|
|
4780
4818
|
* 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}.
|
4781
4819
|
*
|
4782
4820
|
* Event filter: [LuaScriptRaisedTeleportedEventFilter](LuaScriptRaisedTeleportedEventFilter]
|
4783
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4821
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/events.html#script_raised_teleported Online documentation}
|
4784
4822
|
*/
|
4785
4823
|
interface ScriptRaisedTeleportedEvent extends EventData {
|
4786
4824
|
/**
|