typed-factorio 3.0.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -3
- package/common/data-global.d.ts +8 -0
- package/common/types.d.ts +3 -1
- package/package.json +1 -1
- package/prototype/generated/prototypes.d.ts +2086 -2063
- package/prototype/generated/types.d.ts +2107 -2086
- package/runtime/generated/classes.d.ts +3533 -3498
- package/runtime/generated/concepts.d.ts +276 -271
- package/runtime/generated/defines.d.ts +991 -985
- package/runtime/generated/events.d.ts +204 -200
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +8 -8
@@ -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.15/events.html#CustomInputEvent Online documentation}
|
17
17
|
*/
|
18
18
|
interface CustomInputEvent extends EventData {
|
19
19
|
/**
|
@@ -47,7 +47,7 @@ declare module "factorio:runtime" {
|
|
47
47
|
}
|
48
48
|
/**
|
49
49
|
* Called when an achievement is gained.
|
50
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
50
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_achievement_gained Online documentation}
|
51
51
|
*/
|
52
52
|
interface OnAchievementGainedEvent extends EventData {
|
53
53
|
/**
|
@@ -66,7 +66,7 @@ declare module "factorio:runtime" {
|
|
66
66
|
}
|
67
67
|
/**
|
68
68
|
* Called when a unit/group completes a command.
|
69
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
69
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_ai_command_completed Online documentation}
|
70
70
|
*/
|
71
71
|
interface OnAiCommandCompletedEvent extends EventData {
|
72
72
|
/**
|
@@ -89,7 +89,7 @@ declare module "factorio:runtime" {
|
|
89
89
|
}
|
90
90
|
/**
|
91
91
|
* Called when an area of the map is cloned.
|
92
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
92
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_area_cloned Online documentation}
|
93
93
|
*/
|
94
94
|
interface OnAreaClonedEvent extends EventData {
|
95
95
|
readonly source_surface: LuaSurface
|
@@ -115,7 +115,7 @@ declare module "factorio:runtime" {
|
|
115
115
|
* Called when a biter migration builds a base.
|
116
116
|
*
|
117
117
|
* This will be called multiple times for each migration, once for every biter that is sacrificed to build part of the new base.
|
118
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
118
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_biter_base_built Online documentation}
|
119
119
|
*/
|
120
120
|
interface OnBiterBaseBuiltEvent extends EventData {
|
121
121
|
/**
|
@@ -133,7 +133,7 @@ declare module "factorio:runtime" {
|
|
133
133
|
}
|
134
134
|
/**
|
135
135
|
* Called when a set of positions on the map is cloned.
|
136
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
136
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_brush_cloned Online documentation}
|
137
137
|
*/
|
138
138
|
interface OnBrushClonedEvent extends EventData {
|
139
139
|
readonly source_offset: TilePosition
|
@@ -158,7 +158,7 @@ declare module "factorio:runtime" {
|
|
158
158
|
}
|
159
159
|
/**
|
160
160
|
* Called when a {@link defines.command.build_base} command reaches its destination, and before building starts.
|
161
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
161
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_build_base_arrived Online documentation}
|
162
162
|
*/
|
163
163
|
interface OnBuildBaseArrivedEvent extends EventData {
|
164
164
|
/**
|
@@ -182,7 +182,7 @@ declare module "factorio:runtime" {
|
|
182
182
|
* Called when player builds something.
|
183
183
|
*
|
184
184
|
* Event filter: [LuaPlayerBuiltEntityEventFilter](LuaPlayerBuiltEntityEventFilter]
|
185
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
185
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_built_entity Online documentation}
|
186
186
|
*/
|
187
187
|
interface OnBuiltEntityEvent extends EventData {
|
188
188
|
readonly entity: LuaEntity
|
@@ -205,7 +205,7 @@ declare module "factorio:runtime" {
|
|
205
205
|
* Called when the deconstruction of an entity is canceled.
|
206
206
|
*
|
207
207
|
* Event filter: [LuaEntityDeconstructionCancelledEventFilter](LuaEntityDeconstructionCancelledEventFilter]
|
208
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
208
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_cancelled_deconstruction Online documentation}
|
209
209
|
*/
|
210
210
|
interface OnCancelledDeconstructionEvent extends EventData {
|
211
211
|
readonly entity: LuaEntity
|
@@ -223,7 +223,7 @@ declare module "factorio:runtime" {
|
|
223
223
|
* Called when the upgrade of an entity is canceled.
|
224
224
|
*
|
225
225
|
* Event filter: [LuaUpgradeCancelledEventFilter](LuaUpgradeCancelledEventFilter]
|
226
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
226
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_cancelled_upgrade Online documentation}
|
227
227
|
*/
|
228
228
|
interface OnCancelledUpgradeEvent extends EventData {
|
229
229
|
readonly entity: LuaEntity
|
@@ -243,7 +243,7 @@ declare module "factorio:runtime" {
|
|
243
243
|
* Called when a character corpse expires due to timeout or all of the items being removed from it.
|
244
244
|
*
|
245
245
|
* this is not called if the corpse is mined. See {@link defines.events.on_pre_player_mined_item} to detect that.
|
246
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
246
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_character_corpse_expired Online documentation}
|
247
247
|
*/
|
248
248
|
interface OnCharacterCorpseExpiredEvent extends EventData {
|
249
249
|
/**
|
@@ -261,7 +261,7 @@ declare module "factorio:runtime" {
|
|
261
261
|
}
|
262
262
|
/**
|
263
263
|
* Called when a chart tag is created.
|
264
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
264
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_chart_tag_added Online documentation}
|
265
265
|
*/
|
266
266
|
interface OnChartTagAddedEvent extends EventData {
|
267
267
|
readonly tag: LuaCustomChartTag
|
@@ -278,7 +278,7 @@ declare module "factorio:runtime" {
|
|
278
278
|
}
|
279
279
|
/**
|
280
280
|
* Called when a chart tag is modified by a player.
|
281
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
281
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_chart_tag_modified Online documentation}
|
282
282
|
*/
|
283
283
|
interface OnChartTagModifiedEvent extends EventData {
|
284
284
|
readonly tag: LuaCustomChartTag
|
@@ -300,7 +300,7 @@ declare module "factorio:runtime" {
|
|
300
300
|
}
|
301
301
|
/**
|
302
302
|
* Called just before a chart tag is deleted.
|
303
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
303
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_chart_tag_removed Online documentation}
|
304
304
|
*/
|
305
305
|
interface OnChartTagRemovedEvent extends EventData {
|
306
306
|
readonly tag: LuaCustomChartTag
|
@@ -317,7 +317,7 @@ declare module "factorio:runtime" {
|
|
317
317
|
}
|
318
318
|
/**
|
319
319
|
* Called when a chunk is charted or re-charted.
|
320
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
320
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_chunk_charted Online documentation}
|
321
321
|
*/
|
322
322
|
interface OnChunkChartedEvent extends EventData {
|
323
323
|
readonly surface_index: SurfaceIndex
|
@@ -338,7 +338,7 @@ declare module "factorio:runtime" {
|
|
338
338
|
}
|
339
339
|
/**
|
340
340
|
* Called when one or more chunks are deleted using {@link LuaSurface#delete_chunk LuaSurface::delete_chunk}.
|
341
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
341
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_chunk_deleted Online documentation}
|
342
342
|
*/
|
343
343
|
interface OnChunkDeletedEvent extends EventData {
|
344
344
|
readonly surface_index: SurfaceIndex
|
@@ -357,7 +357,7 @@ declare module "factorio:runtime" {
|
|
357
357
|
}
|
358
358
|
/**
|
359
359
|
* Called when a chunk is generated.
|
360
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
360
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_chunk_generated Online documentation}
|
361
361
|
*/
|
362
362
|
interface OnChunkGeneratedEvent extends EventData {
|
363
363
|
/**
|
@@ -383,7 +383,7 @@ declare module "factorio:runtime" {
|
|
383
383
|
}
|
384
384
|
/**
|
385
385
|
* Called when a combat robot expires through a lack of energy, or timeout.
|
386
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
386
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_combat_robot_expired Online documentation}
|
387
387
|
*/
|
388
388
|
interface OnCombatRobotExpiredEvent extends EventData {
|
389
389
|
readonly robot: LuaEntity
|
@@ -404,7 +404,7 @@ declare module "factorio:runtime" {
|
|
404
404
|
* Called when a message is sent to the in-game console, either by a player or through the server interface.
|
405
405
|
*
|
406
406
|
* This event only fires for plain messages, not for any commands (including `/shout` or `/whisper`).
|
407
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
407
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_console_chat Online documentation}
|
408
408
|
*/
|
409
409
|
interface OnConsoleChatEvent extends EventData {
|
410
410
|
/**
|
@@ -426,7 +426,7 @@ declare module "factorio:runtime" {
|
|
426
426
|
}
|
427
427
|
/**
|
428
428
|
* Called when someone enters a command-like message regardless of it being a valid command.
|
429
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
429
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_console_command Online documentation}
|
430
430
|
*/
|
431
431
|
interface OnConsoleCommandEvent extends EventData {
|
432
432
|
/**
|
@@ -452,7 +452,7 @@ declare module "factorio:runtime" {
|
|
452
452
|
}
|
453
453
|
/**
|
454
454
|
* Called when a cutscene is cancelled by the player or by script.
|
455
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
455
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_cutscene_cancelled Online documentation}
|
456
456
|
*/
|
457
457
|
interface OnCutsceneCancelledEvent extends EventData {
|
458
458
|
/**
|
@@ -470,7 +470,7 @@ declare module "factorio:runtime" {
|
|
470
470
|
}
|
471
471
|
/**
|
472
472
|
* Called when a cutscene finishes naturally (was not cancelled).
|
473
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
473
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_cutscene_finished Online documentation}
|
474
474
|
*/
|
475
475
|
interface OnCutsceneFinishedEvent extends EventData {
|
476
476
|
/**
|
@@ -488,7 +488,7 @@ declare module "factorio:runtime" {
|
|
488
488
|
}
|
489
489
|
/**
|
490
490
|
* Called when a cutscene starts.
|
491
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
491
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_cutscene_started Online documentation}
|
492
492
|
*/
|
493
493
|
interface OnCutsceneStartedEvent extends EventData {
|
494
494
|
/**
|
@@ -508,7 +508,7 @@ declare module "factorio:runtime" {
|
|
508
508
|
* Called when a cutscene is playing, each time it reaches a waypoint in that cutscene.
|
509
509
|
*
|
510
510
|
* This refers to an index in the table previously passed to set_controller which started the cutscene.
|
511
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
511
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_cutscene_waypoint_reached Online documentation}
|
512
512
|
*/
|
513
513
|
interface OnCutsceneWaypointReachedEvent extends EventData {
|
514
514
|
/**
|
@@ -532,7 +532,7 @@ declare module "factorio:runtime" {
|
|
532
532
|
* Called when an entity is cloned. The filter applies to the source entity.
|
533
533
|
*
|
534
534
|
* Event filter: [LuaEntityClonedEventFilter](LuaEntityClonedEventFilter]
|
535
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
535
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_entity_cloned Online documentation}
|
536
536
|
*/
|
537
537
|
interface OnEntityClonedEvent extends EventData {
|
538
538
|
readonly source: LuaEntity
|
@@ -550,7 +550,7 @@ declare module "factorio:runtime" {
|
|
550
550
|
* Called after an entity has been recolored either by the player or through script.
|
551
551
|
*
|
552
552
|
* Automatic recoloring due to {@link LuaPlayer#color LuaPlayer::color} will not raise events, as that is a separate mechanism.
|
553
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
553
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_entity_color_changed Online documentation}
|
554
554
|
*/
|
555
555
|
interface OnEntityColorChangedEvent extends EventData {
|
556
556
|
/**
|
@@ -570,7 +570,7 @@ declare module "factorio:runtime" {
|
|
570
570
|
* Called when an entity is damaged. This is not called when an entities health is set directly by another mod.
|
571
571
|
*
|
572
572
|
* Event filter: [LuaEntityDamagedEventFilter](LuaEntityDamagedEventFilter]
|
573
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
573
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_entity_damaged Online documentation}
|
574
574
|
*/
|
575
575
|
interface OnEntityDamagedEvent extends EventData {
|
576
576
|
readonly entity: LuaEntity
|
@@ -612,7 +612,7 @@ declare module "factorio:runtime" {
|
|
612
612
|
* Called when an entity dies.
|
613
613
|
*
|
614
614
|
* Event filter: [LuaEntityDiedEventFilter](LuaEntityDiedEventFilter]
|
615
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
615
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_entity_died Online documentation}
|
616
616
|
*/
|
617
617
|
interface OnEntityDiedEvent extends EventData {
|
618
618
|
/**
|
@@ -646,7 +646,7 @@ declare module "factorio:runtime" {
|
|
646
646
|
}
|
647
647
|
/**
|
648
648
|
* Called when one of an entity's logistic slots changes.
|
649
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
649
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_entity_logistic_slot_changed Online documentation}
|
650
650
|
*/
|
651
651
|
interface OnEntityLogisticSlotChangedEvent extends EventData {
|
652
652
|
/**
|
@@ -676,7 +676,7 @@ declare module "factorio:runtime" {
|
|
676
676
|
}
|
677
677
|
/**
|
678
678
|
* Called after an entity has been renamed either by the player or through script.
|
679
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
679
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_entity_renamed Online documentation}
|
680
680
|
*/
|
681
681
|
interface OnEntityRenamedEvent extends EventData {
|
682
682
|
/**
|
@@ -697,7 +697,7 @@ declare module "factorio:runtime" {
|
|
697
697
|
}
|
698
698
|
/**
|
699
699
|
* Called after entity copy-paste is done.
|
700
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
700
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_entity_settings_pasted Online documentation}
|
701
701
|
*/
|
702
702
|
interface OnEntitySettingsPastedEvent extends EventData {
|
703
703
|
readonly player_index: PlayerIndex
|
@@ -720,7 +720,7 @@ declare module "factorio:runtime" {
|
|
720
720
|
}
|
721
721
|
/**
|
722
722
|
* Called when an entity is spawned by a EnemySpawner
|
723
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
723
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_entity_spawned Online documentation}
|
724
724
|
*/
|
725
725
|
interface OnEntitySpawnedEvent extends EventData {
|
726
726
|
readonly spawner: LuaEntity
|
@@ -736,7 +736,7 @@ declare module "factorio:runtime" {
|
|
736
736
|
}
|
737
737
|
/**
|
738
738
|
* Called after equipment is inserted into an equipment grid.
|
739
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
739
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_equipment_inserted Online documentation}
|
740
740
|
*/
|
741
741
|
interface OnEquipmentInsertedEvent extends EventData {
|
742
742
|
/**
|
@@ -758,7 +758,7 @@ declare module "factorio:runtime" {
|
|
758
758
|
}
|
759
759
|
/**
|
760
760
|
* Called after equipment is removed from an equipment grid.
|
761
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
761
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_equipment_removed Online documentation}
|
762
762
|
*/
|
763
763
|
interface OnEquipmentRemovedEvent extends EventData {
|
764
764
|
/**
|
@@ -788,7 +788,7 @@ declare module "factorio:runtime" {
|
|
788
788
|
}
|
789
789
|
/**
|
790
790
|
* Called when the a forces cease fire values change.
|
791
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
791
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_force_cease_fire_changed Online documentation}
|
792
792
|
*/
|
793
793
|
interface OnForceCeaseFireChangedEvent extends EventData {
|
794
794
|
/**
|
@@ -816,7 +816,7 @@ declare module "factorio:runtime" {
|
|
816
816
|
* Called when a new force is created using `game.create_force()`
|
817
817
|
*
|
818
818
|
* This is not called when the default forces (`'player'`, `'enemy'`, `'neutral'`) are created as they will always exist.
|
819
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
819
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_force_created Online documentation}
|
820
820
|
*/
|
821
821
|
interface OnForceCreatedEvent extends EventData {
|
822
822
|
/**
|
@@ -834,7 +834,7 @@ declare module "factorio:runtime" {
|
|
834
834
|
}
|
835
835
|
/**
|
836
836
|
* Called when the a forces friends change.
|
837
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
837
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_force_friends_changed Online documentation}
|
838
838
|
*/
|
839
839
|
interface OnForceFriendsChangedEvent extends EventData {
|
840
840
|
/**
|
@@ -860,7 +860,7 @@ declare module "factorio:runtime" {
|
|
860
860
|
}
|
861
861
|
/**
|
862
862
|
* Called when {@link LuaForce#reset LuaForce::reset} is finished.
|
863
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
863
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_force_reset Online documentation}
|
864
864
|
*/
|
865
865
|
interface OnForceResetEvent extends EventData {
|
866
866
|
readonly force: LuaForce
|
@@ -877,7 +877,7 @@ declare module "factorio:runtime" {
|
|
877
877
|
* Called after two forces have been merged using `game.merge_forces()`.
|
878
878
|
*
|
879
879
|
* The source force is invalidated before this event is called and the name can be re-used in this event if desired.
|
880
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
880
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_forces_merged Online documentation}
|
881
881
|
*/
|
882
882
|
interface OnForcesMergedEvent extends EventData {
|
883
883
|
/**
|
@@ -903,7 +903,7 @@ declare module "factorio:runtime" {
|
|
903
903
|
}
|
904
904
|
/**
|
905
905
|
* Called when two forces are about to be merged using `game.merge_forces()`.
|
906
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
906
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_forces_merging Online documentation}
|
907
907
|
*/
|
908
908
|
interface OnForcesMergingEvent extends EventData {
|
909
909
|
/**
|
@@ -927,7 +927,7 @@ declare module "factorio:runtime" {
|
|
927
927
|
* 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.
|
928
928
|
*
|
929
929
|
* This event is not fired when the scenario is loaded via the map editor.
|
930
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
930
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_game_created_from_scenario Online documentation}
|
931
931
|
*/
|
932
932
|
interface OnGameCreatedFromScenarioEvent extends EventData {
|
933
933
|
/**
|
@@ -941,7 +941,7 @@ declare module "factorio:runtime" {
|
|
941
941
|
}
|
942
942
|
/**
|
943
943
|
* Called when {@link LuaGuiElement} checked state is changed (related to checkboxes and radio buttons).
|
944
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
944
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_gui_checked_state_changed Online documentation}
|
945
945
|
*/
|
946
946
|
interface OnGuiCheckedStateChangedEvent extends EventData {
|
947
947
|
/**
|
@@ -963,7 +963,7 @@ declare module "factorio:runtime" {
|
|
963
963
|
}
|
964
964
|
/**
|
965
965
|
* Called when {@link LuaGuiElement} is clicked.
|
966
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
966
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_gui_click Online documentation}
|
967
967
|
*/
|
968
968
|
interface OnGuiClickEvent extends EventData {
|
969
969
|
/**
|
@@ -1009,7 +1009,7 @@ declare module "factorio:runtime" {
|
|
1009
1009
|
* 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.
|
1010
1010
|
*
|
1011
1011
|
* 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.
|
1012
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1012
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_gui_closed Online documentation}
|
1013
1013
|
*/
|
1014
1014
|
interface OnGuiClosedEvent extends EventData {
|
1015
1015
|
/**
|
@@ -1063,7 +1063,7 @@ declare module "factorio:runtime" {
|
|
1063
1063
|
}
|
1064
1064
|
/**
|
1065
1065
|
* Called when a {@link LuaGuiElement} is confirmed, for example by pressing Enter in a textfield.
|
1066
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1066
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_gui_confirmed Online documentation}
|
1067
1067
|
*/
|
1068
1068
|
interface OnGuiConfirmedEvent extends EventData {
|
1069
1069
|
/**
|
@@ -1097,7 +1097,7 @@ declare module "factorio:runtime" {
|
|
1097
1097
|
}
|
1098
1098
|
/**
|
1099
1099
|
* Called when {@link LuaGuiElement} element value is changed (related to choose element buttons).
|
1100
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1100
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_gui_elem_changed Online documentation}
|
1101
1101
|
*/
|
1102
1102
|
interface OnGuiElemChangedEvent extends EventData {
|
1103
1103
|
/**
|
@@ -1121,7 +1121,7 @@ declare module "factorio:runtime" {
|
|
1121
1121
|
* Called when {@link LuaGuiElement} is hovered by the mouse.
|
1122
1122
|
*
|
1123
1123
|
* Only fired for events whose {@link LuaGuiElement#raise_hover_events LuaGuiElement::raise_hover_events} is `true`.
|
1124
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1124
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_gui_hover Online documentation}
|
1125
1125
|
*/
|
1126
1126
|
interface OnGuiHoverEvent extends EventData {
|
1127
1127
|
/**
|
@@ -1145,7 +1145,7 @@ declare module "factorio:runtime" {
|
|
1145
1145
|
* Called when the player's cursor leaves a {@link LuaGuiElement} that was previously hovered.
|
1146
1146
|
*
|
1147
1147
|
* Only fired for events whose {@link LuaGuiElement#raise_hover_events LuaGuiElement::raise_hover_events} is `true`.
|
1148
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1148
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_gui_leave Online documentation}
|
1149
1149
|
*/
|
1150
1150
|
interface OnGuiLeaveEvent extends EventData {
|
1151
1151
|
/**
|
@@ -1167,7 +1167,7 @@ declare module "factorio:runtime" {
|
|
1167
1167
|
}
|
1168
1168
|
/**
|
1169
1169
|
* Called when {@link LuaGuiElement} element location is changed (related to frames in `player.gui.screen`).
|
1170
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1170
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_gui_location_changed Online documentation}
|
1171
1171
|
*/
|
1172
1172
|
interface OnGuiLocationChangedEvent extends EventData {
|
1173
1173
|
/**
|
@@ -1189,7 +1189,7 @@ declare module "factorio:runtime" {
|
|
1189
1189
|
}
|
1190
1190
|
/**
|
1191
1191
|
* Called when the player opens a GUI.
|
1192
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1192
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_gui_opened Online documentation}
|
1193
1193
|
*/
|
1194
1194
|
interface OnGuiOpenedEvent extends EventData {
|
1195
1195
|
/**
|
@@ -1235,7 +1235,7 @@ declare module "factorio:runtime" {
|
|
1235
1235
|
}
|
1236
1236
|
/**
|
1237
1237
|
* Called when {@link LuaGuiElement} selected tab is changed (related to tabbed-panes).
|
1238
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1238
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_gui_selected_tab_changed Online documentation}
|
1239
1239
|
*/
|
1240
1240
|
interface OnGuiSelectedTabChangedEvent extends EventData {
|
1241
1241
|
/**
|
@@ -1257,7 +1257,7 @@ declare module "factorio:runtime" {
|
|
1257
1257
|
}
|
1258
1258
|
/**
|
1259
1259
|
* Called when {@link LuaGuiElement} selection state is changed (related to drop-downs and listboxes).
|
1260
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1260
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_gui_selection_state_changed Online documentation}
|
1261
1261
|
*/
|
1262
1262
|
interface OnGuiSelectionStateChangedEvent extends EventData {
|
1263
1263
|
/**
|
@@ -1279,7 +1279,7 @@ declare module "factorio:runtime" {
|
|
1279
1279
|
}
|
1280
1280
|
/**
|
1281
1281
|
* Called when {@link LuaGuiElement} switch state is changed (related to switches).
|
1282
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1282
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_gui_switch_state_changed Online documentation}
|
1283
1283
|
*/
|
1284
1284
|
interface OnGuiSwitchStateChangedEvent extends EventData {
|
1285
1285
|
/**
|
@@ -1301,7 +1301,7 @@ declare module "factorio:runtime" {
|
|
1301
1301
|
}
|
1302
1302
|
/**
|
1303
1303
|
* Called when {@link LuaGuiElement} text is changed by the player.
|
1304
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1304
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_gui_text_changed Online documentation}
|
1305
1305
|
*/
|
1306
1306
|
interface OnGuiTextChangedEvent extends EventData {
|
1307
1307
|
/**
|
@@ -1327,7 +1327,7 @@ declare module "factorio:runtime" {
|
|
1327
1327
|
}
|
1328
1328
|
/**
|
1329
1329
|
* Called when {@link LuaGuiElement} slider value is changed (related to the slider element).
|
1330
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1330
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_gui_value_changed Online documentation}
|
1331
1331
|
*/
|
1332
1332
|
interface OnGuiValueChangedEvent extends EventData {
|
1333
1333
|
/**
|
@@ -1349,7 +1349,7 @@ declare module "factorio:runtime" {
|
|
1349
1349
|
}
|
1350
1350
|
/**
|
1351
1351
|
* Called when a land mine is armed.
|
1352
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1352
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_land_mine_armed Online documentation}
|
1353
1353
|
*/
|
1354
1354
|
interface OnLandMineArmedEvent extends EventData {
|
1355
1355
|
readonly mine: LuaEntity
|
@@ -1364,7 +1364,7 @@ declare module "factorio:runtime" {
|
|
1364
1364
|
}
|
1365
1365
|
/**
|
1366
1366
|
* Called when a custom {@link import("factorio:prototype").ShortcutPrototype Lua shortcut} is pressed.
|
1367
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1367
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_lua_shortcut Online documentation}
|
1368
1368
|
*/
|
1369
1369
|
interface OnLuaShortcutEvent extends EventData {
|
1370
1370
|
readonly player_index: PlayerIndex
|
@@ -1385,7 +1385,7 @@ declare module "factorio:runtime" {
|
|
1385
1385
|
* Called when an entity is marked for deconstruction with the Deconstruction planner or via script.
|
1386
1386
|
*
|
1387
1387
|
* Event filter: [LuaEntityMarkedForDeconstructionEventFilter](LuaEntityMarkedForDeconstructionEventFilter]
|
1388
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1388
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_marked_for_deconstruction Online documentation}
|
1389
1389
|
*/
|
1390
1390
|
interface OnMarkedForDeconstructionEvent extends EventData {
|
1391
1391
|
readonly entity: LuaEntity
|
@@ -1403,7 +1403,7 @@ declare module "factorio:runtime" {
|
|
1403
1403
|
* Called when an entity is marked for upgrade with the Upgrade planner or via script.
|
1404
1404
|
*
|
1405
1405
|
* Event filter: [LuaEntityMarkedForUpgradeEventFilter](LuaEntityMarkedForUpgradeEventFilter]
|
1406
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1406
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_marked_for_upgrade Online documentation}
|
1407
1407
|
*/
|
1408
1408
|
interface OnMarkedForUpgradeEvent extends EventData {
|
1409
1409
|
readonly player_index?: PlayerIndex
|
@@ -1421,7 +1421,7 @@ declare module "factorio:runtime" {
|
|
1421
1421
|
}
|
1422
1422
|
/**
|
1423
1423
|
* Called after a player purchases some offer from a `market` entity.
|
1424
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1424
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_market_item_purchased Online documentation}
|
1425
1425
|
*/
|
1426
1426
|
interface OnMarketItemPurchasedEvent extends EventData {
|
1427
1427
|
/**
|
@@ -1451,7 +1451,7 @@ declare module "factorio:runtime" {
|
|
1451
1451
|
}
|
1452
1452
|
/**
|
1453
1453
|
* Called when the player uses the 'Open item GUI' control on an item defined with the 'mod-openable' flag
|
1454
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1454
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_mod_item_opened Online documentation}
|
1455
1455
|
*/
|
1456
1456
|
interface OnModItemOpenedEvent extends EventData {
|
1457
1457
|
/**
|
@@ -1479,7 +1479,7 @@ declare module "factorio:runtime" {
|
|
1479
1479
|
* Called after an object is destroyed that has been registered with {@link LuaBootstrap#register_on_object_destroyed LuaBootstrap::register_on_object_destroyed}.
|
1480
1480
|
*
|
1481
1481
|
* 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.
|
1482
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1482
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_object_destroyed Online documentation}
|
1483
1483
|
*/
|
1484
1484
|
interface OnObjectDestroyedEvent extends EventData {
|
1485
1485
|
/**
|
@@ -1505,7 +1505,7 @@ declare module "factorio:runtime" {
|
|
1505
1505
|
}
|
1506
1506
|
/**
|
1507
1507
|
* Called directly after a permission group is added.
|
1508
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1508
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_permission_group_added Online documentation}
|
1509
1509
|
*/
|
1510
1510
|
interface OnPermissionGroupAddedEvent extends EventData {
|
1511
1511
|
/**
|
@@ -1527,7 +1527,7 @@ declare module "factorio:runtime" {
|
|
1527
1527
|
}
|
1528
1528
|
/**
|
1529
1529
|
* Called directly after a permission group is deleted.
|
1530
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1530
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_permission_group_deleted Online documentation}
|
1531
1531
|
*/
|
1532
1532
|
interface OnPermissionGroupDeletedEvent extends EventData {
|
1533
1533
|
/**
|
@@ -1553,7 +1553,7 @@ declare module "factorio:runtime" {
|
|
1553
1553
|
}
|
1554
1554
|
/**
|
1555
1555
|
* Called directly after a permission group is edited in some way.
|
1556
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1556
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_permission_group_edited Online documentation}
|
1557
1557
|
*/
|
1558
1558
|
interface OnPermissionGroupEditedEvent extends EventData {
|
1559
1559
|
/**
|
@@ -1602,7 +1602,7 @@ declare module "factorio:runtime" {
|
|
1602
1602
|
}
|
1603
1603
|
/**
|
1604
1604
|
* Called directly after a permission string is imported.
|
1605
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1605
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_permission_string_imported Online documentation}
|
1606
1606
|
*/
|
1607
1607
|
interface OnPermissionStringImportedEvent extends EventData {
|
1608
1608
|
/**
|
@@ -1620,7 +1620,7 @@ declare module "factorio:runtime" {
|
|
1620
1620
|
}
|
1621
1621
|
/**
|
1622
1622
|
* Called when a player picks up an item.
|
1623
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1623
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_picked_up_item Online documentation}
|
1624
1624
|
*/
|
1625
1625
|
interface OnPickedUpItemEvent extends EventData {
|
1626
1626
|
readonly item_stack: SimpleItemStack
|
@@ -1636,7 +1636,7 @@ declare module "factorio:runtime" {
|
|
1636
1636
|
}
|
1637
1637
|
/**
|
1638
1638
|
* Called after a player alt-reverse-selects an area with a selection-tool item.
|
1639
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1639
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_alt_reverse_selected_area Online documentation}
|
1640
1640
|
*/
|
1641
1641
|
interface OnPlayerAltReverseSelectedAreaEvent extends EventData {
|
1642
1642
|
/**
|
@@ -1674,7 +1674,7 @@ declare module "factorio:runtime" {
|
|
1674
1674
|
}
|
1675
1675
|
/**
|
1676
1676
|
* Called after a player alt-selects an area with a selection-tool item.
|
1677
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1677
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_alt_selected_area Online documentation}
|
1678
1678
|
*/
|
1679
1679
|
interface OnPlayerAltSelectedAreaEvent extends EventData {
|
1680
1680
|
/**
|
@@ -1716,7 +1716,7 @@ declare module "factorio:runtime" {
|
|
1716
1716
|
}
|
1717
1717
|
/**
|
1718
1718
|
* Called after a players ammo inventory changed in some way.
|
1719
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1719
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_ammo_inventory_changed Online documentation}
|
1720
1720
|
*/
|
1721
1721
|
interface OnPlayerAmmoInventoryChangedEvent extends EventData {
|
1722
1722
|
readonly player_index: PlayerIndex
|
@@ -1731,7 +1731,7 @@ declare module "factorio:runtime" {
|
|
1731
1731
|
}
|
1732
1732
|
/**
|
1733
1733
|
* Called after a players armor inventory changed in some way.
|
1734
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1734
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_armor_inventory_changed Online documentation}
|
1735
1735
|
*/
|
1736
1736
|
interface OnPlayerArmorInventoryChangedEvent extends EventData {
|
1737
1737
|
readonly player_index: PlayerIndex
|
@@ -1746,7 +1746,7 @@ declare module "factorio:runtime" {
|
|
1746
1746
|
}
|
1747
1747
|
/**
|
1748
1748
|
* Called when a player is banned.
|
1749
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1749
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_banned Online documentation}
|
1750
1750
|
*/
|
1751
1751
|
interface OnPlayerBannedEvent extends EventData {
|
1752
1752
|
/**
|
@@ -1776,7 +1776,7 @@ declare module "factorio:runtime" {
|
|
1776
1776
|
}
|
1777
1777
|
/**
|
1778
1778
|
* Called after a player builds tiles.
|
1779
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1779
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_built_tile Online documentation}
|
1780
1780
|
*/
|
1781
1781
|
interface OnPlayerBuiltTileEvent extends EventData {
|
1782
1782
|
readonly player_index: PlayerIndex
|
@@ -1815,7 +1815,7 @@ declare module "factorio:runtime" {
|
|
1815
1815
|
}
|
1816
1816
|
/**
|
1817
1817
|
* Called when a player cancels crafting.
|
1818
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1818
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_cancelled_crafting Online documentation}
|
1819
1819
|
*/
|
1820
1820
|
interface OnPlayerCancelledCraftingEvent extends EventData {
|
1821
1821
|
/**
|
@@ -1845,7 +1845,7 @@ declare module "factorio:runtime" {
|
|
1845
1845
|
}
|
1846
1846
|
/**
|
1847
1847
|
* Called after a player changes forces.
|
1848
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1848
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_changed_force Online documentation}
|
1849
1849
|
*/
|
1850
1850
|
interface OnPlayerChangedForceEvent extends EventData {
|
1851
1851
|
/**
|
@@ -1867,7 +1867,7 @@ declare module "factorio:runtime" {
|
|
1867
1867
|
}
|
1868
1868
|
/**
|
1869
1869
|
* Called when the tile position a player is located at changes.
|
1870
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1870
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_changed_position Online documentation}
|
1871
1871
|
*/
|
1872
1872
|
interface OnPlayerChangedPositionEvent extends EventData {
|
1873
1873
|
/**
|
@@ -1885,7 +1885,7 @@ declare module "factorio:runtime" {
|
|
1885
1885
|
}
|
1886
1886
|
/**
|
1887
1887
|
* Called after a player changes surfaces.
|
1888
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1888
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_changed_surface Online documentation}
|
1889
1889
|
*/
|
1890
1890
|
interface OnPlayerChangedSurfaceEvent extends EventData {
|
1891
1891
|
/**
|
@@ -1907,7 +1907,7 @@ declare module "factorio:runtime" {
|
|
1907
1907
|
}
|
1908
1908
|
/**
|
1909
1909
|
* Called when cheat mode is disabled on a player.
|
1910
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1910
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_cheat_mode_disabled Online documentation}
|
1911
1911
|
*/
|
1912
1912
|
interface OnPlayerCheatModeDisabledEvent extends EventData {
|
1913
1913
|
/**
|
@@ -1925,7 +1925,7 @@ declare module "factorio:runtime" {
|
|
1925
1925
|
}
|
1926
1926
|
/**
|
1927
1927
|
* Called when cheat mode is enabled on a player.
|
1928
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1928
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_cheat_mode_enabled Online documentation}
|
1929
1929
|
*/
|
1930
1930
|
interface OnPlayerCheatModeEnabledEvent extends EventData {
|
1931
1931
|
/**
|
@@ -1943,7 +1943,7 @@ declare module "factorio:runtime" {
|
|
1943
1943
|
}
|
1944
1944
|
/**
|
1945
1945
|
* Called when a player clicks a gps tag
|
1946
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1946
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_clicked_gps_tag Online documentation}
|
1947
1947
|
*/
|
1948
1948
|
interface OnPlayerClickedGpsTagEvent extends EventData {
|
1949
1949
|
/**
|
@@ -1969,7 +1969,7 @@ declare module "factorio:runtime" {
|
|
1969
1969
|
}
|
1970
1970
|
/**
|
1971
1971
|
* Called when a player clicks the "confirm" button in the configure Blueprint GUI.
|
1972
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1972
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_configured_blueprint Online documentation}
|
1973
1973
|
*/
|
1974
1974
|
interface OnPlayerConfiguredBlueprintEvent extends EventData {
|
1975
1975
|
/**
|
@@ -1987,7 +1987,7 @@ declare module "factorio:runtime" {
|
|
1987
1987
|
}
|
1988
1988
|
/**
|
1989
1989
|
* Called after a player changes controller types.
|
1990
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1990
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_controller_changed Online documentation}
|
1991
1991
|
*/
|
1992
1992
|
interface OnPlayerControllerChangedEvent extends EventData {
|
1993
1993
|
/**
|
@@ -2009,7 +2009,7 @@ declare module "factorio:runtime" {
|
|
2009
2009
|
}
|
2010
2010
|
/**
|
2011
2011
|
* 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}).
|
2012
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2012
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_crafted_item Online documentation}
|
2013
2013
|
*/
|
2014
2014
|
interface OnPlayerCraftedItemEvent extends EventData {
|
2015
2015
|
/**
|
@@ -2035,7 +2035,7 @@ declare module "factorio:runtime" {
|
|
2035
2035
|
}
|
2036
2036
|
/**
|
2037
2037
|
* Called after the player was created.
|
2038
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2038
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_created Online documentation}
|
2039
2039
|
*/
|
2040
2040
|
interface OnPlayerCreatedEvent extends EventData {
|
2041
2041
|
readonly player_index: PlayerIndex
|
@@ -2052,7 +2052,7 @@ declare module "factorio:runtime" {
|
|
2052
2052
|
* Called after a player's {@link LuaControl#cursor_stack cursor stack} changed in some way.
|
2053
2053
|
*
|
2054
2054
|
* This is fired in the same tick that the change happens, but not instantly.
|
2055
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2055
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_cursor_stack_changed Online documentation}
|
2056
2056
|
*/
|
2057
2057
|
interface OnPlayerCursorStackChangedEvent extends EventData {
|
2058
2058
|
readonly player_index: PlayerIndex
|
@@ -2067,7 +2067,7 @@ declare module "factorio:runtime" {
|
|
2067
2067
|
}
|
2068
2068
|
/**
|
2069
2069
|
* Called when a player selects an area with a deconstruction planner.
|
2070
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2070
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_deconstructed_area Online documentation}
|
2071
2071
|
*/
|
2072
2072
|
interface OnPlayerDeconstructedAreaEvent extends EventData {
|
2073
2073
|
/**
|
@@ -2109,7 +2109,7 @@ declare module "factorio:runtime" {
|
|
2109
2109
|
}
|
2110
2110
|
/**
|
2111
2111
|
* Called when a player is demoted.
|
2112
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2112
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_demoted Online documentation}
|
2113
2113
|
*/
|
2114
2114
|
interface OnPlayerDemotedEvent extends EventData {
|
2115
2115
|
/**
|
@@ -2127,7 +2127,7 @@ declare module "factorio:runtime" {
|
|
2127
2127
|
}
|
2128
2128
|
/**
|
2129
2129
|
* Called after a player dies.
|
2130
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2130
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_died Online documentation}
|
2131
2131
|
*/
|
2132
2132
|
interface OnPlayerDiedEvent extends EventData {
|
2133
2133
|
readonly player_index: PlayerIndex
|
@@ -2143,7 +2143,7 @@ declare module "factorio:runtime" {
|
|
2143
2143
|
}
|
2144
2144
|
/**
|
2145
2145
|
* 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.
|
2146
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2146
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_display_density_scale_changed Online documentation}
|
2147
2147
|
*/
|
2148
2148
|
interface OnPlayerDisplayDensityScaleChangedEvent extends EventData {
|
2149
2149
|
/**
|
@@ -2165,7 +2165,7 @@ declare module "factorio:runtime" {
|
|
2165
2165
|
}
|
2166
2166
|
/**
|
2167
2167
|
* Called when the display resolution changes for a given player.
|
2168
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2168
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_display_resolution_changed Online documentation}
|
2169
2169
|
*/
|
2170
2170
|
interface OnPlayerDisplayResolutionChangedEvent extends EventData {
|
2171
2171
|
/**
|
@@ -2187,7 +2187,7 @@ declare module "factorio:runtime" {
|
|
2187
2187
|
}
|
2188
2188
|
/**
|
2189
2189
|
* Called when the display scale changes for a given player.
|
2190
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2190
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_display_scale_changed Online documentation}
|
2191
2191
|
*/
|
2192
2192
|
interface OnPlayerDisplayScaleChangedEvent extends EventData {
|
2193
2193
|
/**
|
@@ -2211,7 +2211,7 @@ declare module "factorio:runtime" {
|
|
2211
2211
|
* Called when the player's driving state has changed, meaning a player has either entered or left a vehicle.
|
2212
2212
|
*
|
2213
2213
|
* This event is not raised when the player is ejected from a vehicle due to it being destroyed.
|
2214
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2214
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_driving_changed_state Online documentation}
|
2215
2215
|
*/
|
2216
2216
|
interface OnPlayerDrivingChangedStateEvent extends EventData {
|
2217
2217
|
readonly player_index: PlayerIndex
|
@@ -2230,7 +2230,7 @@ declare module "factorio:runtime" {
|
|
2230
2230
|
}
|
2231
2231
|
/**
|
2232
2232
|
* Called when a player drops an item on the ground.
|
2233
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2233
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_dropped_item Online documentation}
|
2234
2234
|
*/
|
2235
2235
|
interface OnPlayerDroppedItemEvent extends EventData {
|
2236
2236
|
readonly player_index: PlayerIndex
|
@@ -2249,7 +2249,7 @@ declare module "factorio:runtime" {
|
|
2249
2249
|
}
|
2250
2250
|
/**
|
2251
2251
|
* Called when a player fast-transfers something to or from an entity.
|
2252
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2252
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_fast_transferred Online documentation}
|
2253
2253
|
*/
|
2254
2254
|
interface OnPlayerFastTransferredEvent extends EventData {
|
2255
2255
|
/**
|
@@ -2279,7 +2279,7 @@ declare module "factorio:runtime" {
|
|
2279
2279
|
}
|
2280
2280
|
/**
|
2281
2281
|
* Called when the player flips an entity. This event is only fired when the entity actually changes its orientation or mirroring -- pressing the flip keys on an entity that can't be flipped won't fire this event.
|
2282
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2282
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_flipped_entity Online documentation}
|
2283
2283
|
*/
|
2284
2284
|
interface OnPlayerFlippedEntityEvent extends EventData {
|
2285
2285
|
/**
|
@@ -2302,7 +2302,7 @@ declare module "factorio:runtime" {
|
|
2302
2302
|
}
|
2303
2303
|
/**
|
2304
2304
|
* Called after player flushed fluid
|
2305
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2305
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_flushed_fluid Online documentation}
|
2306
2306
|
*/
|
2307
2307
|
interface OnPlayerFlushedFluidEvent extends EventData {
|
2308
2308
|
/**
|
@@ -2336,7 +2336,7 @@ declare module "factorio:runtime" {
|
|
2336
2336
|
}
|
2337
2337
|
/**
|
2338
2338
|
* Called after a players gun inventory changed in some way.
|
2339
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2339
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_gun_inventory_changed Online documentation}
|
2340
2340
|
*/
|
2341
2341
|
interface OnPlayerGunInventoryChangedEvent extends EventData {
|
2342
2342
|
readonly player_index: PlayerIndex
|
@@ -2351,7 +2351,7 @@ declare module "factorio:runtime" {
|
|
2351
2351
|
}
|
2352
2352
|
/**
|
2353
2353
|
* Called when a player's input method changes. See {@link LuaPlayer#input_method LuaPlayer::input_method}.
|
2354
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2354
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_input_method_changed Online documentation}
|
2355
2355
|
*/
|
2356
2356
|
interface OnPlayerInputMethodChangedEvent extends EventData {
|
2357
2357
|
/**
|
@@ -2369,7 +2369,7 @@ declare module "factorio:runtime" {
|
|
2369
2369
|
}
|
2370
2370
|
/**
|
2371
2371
|
* 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.
|
2372
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2372
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_joined_game Online documentation}
|
2373
2373
|
*/
|
2374
2374
|
interface OnPlayerJoinedGameEvent extends EventData {
|
2375
2375
|
readonly player_index: PlayerIndex
|
@@ -2384,7 +2384,7 @@ declare module "factorio:runtime" {
|
|
2384
2384
|
}
|
2385
2385
|
/**
|
2386
2386
|
* Called when a player is kicked.
|
2387
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2387
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_kicked Online documentation}
|
2388
2388
|
*/
|
2389
2389
|
interface OnPlayerKickedEvent extends EventData {
|
2390
2390
|
/**
|
@@ -2410,7 +2410,7 @@ declare module "factorio:runtime" {
|
|
2410
2410
|
}
|
2411
2411
|
/**
|
2412
2412
|
* 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.
|
2413
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2413
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_left_game Online documentation}
|
2414
2414
|
*/
|
2415
2415
|
interface OnPlayerLeftGameEvent extends EventData {
|
2416
2416
|
readonly player_index: PlayerIndex
|
@@ -2426,7 +2426,7 @@ declare module "factorio:runtime" {
|
|
2426
2426
|
}
|
2427
2427
|
/**
|
2428
2428
|
* Called when a player's active locale changes. See {@link LuaPlayer#locale LuaPlayer::locale}.
|
2429
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2429
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_locale_changed Online documentation}
|
2430
2430
|
*/
|
2431
2431
|
interface OnPlayerLocaleChangedEvent extends EventData {
|
2432
2432
|
/**
|
@@ -2448,7 +2448,7 @@ declare module "factorio:runtime" {
|
|
2448
2448
|
}
|
2449
2449
|
/**
|
2450
2450
|
* Called after a players main inventory changed in some way.
|
2451
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2451
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_main_inventory_changed Online documentation}
|
2452
2452
|
*/
|
2453
2453
|
interface OnPlayerMainInventoryChangedEvent extends EventData {
|
2454
2454
|
readonly player_index: PlayerIndex
|
@@ -2469,7 +2469,7 @@ declare module "factorio:runtime" {
|
|
2469
2469
|
* 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.
|
2470
2470
|
*
|
2471
2471
|
* Event filter: [LuaPlayerMinedEntityEventFilter](LuaPlayerMinedEntityEventFilter]
|
2472
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2472
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_mined_entity Online documentation}
|
2473
2473
|
*/
|
2474
2474
|
interface OnPlayerMinedEntityEvent extends EventData {
|
2475
2475
|
/**
|
@@ -2495,7 +2495,7 @@ declare module "factorio:runtime" {
|
|
2495
2495
|
}
|
2496
2496
|
/**
|
2497
2497
|
* Called when the player mines something.
|
2498
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2498
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_mined_item Online documentation}
|
2499
2499
|
*/
|
2500
2500
|
interface OnPlayerMinedItemEvent extends EventData {
|
2501
2501
|
/**
|
@@ -2514,7 +2514,7 @@ declare module "factorio:runtime" {
|
|
2514
2514
|
}
|
2515
2515
|
/**
|
2516
2516
|
* Called after a player mines tiles.
|
2517
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2517
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_mined_tile Online documentation}
|
2518
2518
|
*/
|
2519
2519
|
interface OnPlayerMinedTileEvent extends EventData {
|
2520
2520
|
readonly player_index: PlayerIndex
|
@@ -2537,7 +2537,7 @@ declare module "factorio:runtime" {
|
|
2537
2537
|
}
|
2538
2538
|
/**
|
2539
2539
|
* Called when a player is muted.
|
2540
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2540
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_muted Online documentation}
|
2541
2541
|
*/
|
2542
2542
|
interface OnPlayerMutedEvent extends EventData {
|
2543
2543
|
/**
|
@@ -2555,7 +2555,7 @@ declare module "factorio:runtime" {
|
|
2555
2555
|
}
|
2556
2556
|
/**
|
2557
2557
|
* Called when a player invokes the "smart pipette" over an entity.
|
2558
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2558
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_pipette Online documentation}
|
2559
2559
|
*/
|
2560
2560
|
interface OnPlayerPipetteEvent extends EventData {
|
2561
2561
|
/**
|
@@ -2585,7 +2585,7 @@ declare module "factorio:runtime" {
|
|
2585
2585
|
}
|
2586
2586
|
/**
|
2587
2587
|
* Called after the player puts equipment in an equipment grid
|
2588
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2588
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_placed_equipment Online documentation}
|
2589
2589
|
*/
|
2590
2590
|
interface OnPlayerPlacedEquipmentEvent extends EventData {
|
2591
2591
|
readonly player_index: PlayerIndex
|
@@ -2608,7 +2608,7 @@ declare module "factorio:runtime" {
|
|
2608
2608
|
}
|
2609
2609
|
/**
|
2610
2610
|
* Called when a player is promoted.
|
2611
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2611
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_promoted Online documentation}
|
2612
2612
|
*/
|
2613
2613
|
interface OnPlayerPromotedEvent extends EventData {
|
2614
2614
|
/**
|
@@ -2626,7 +2626,7 @@ declare module "factorio:runtime" {
|
|
2626
2626
|
}
|
2627
2627
|
/**
|
2628
2628
|
* 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.
|
2629
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2629
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_removed Online documentation}
|
2630
2630
|
*/
|
2631
2631
|
interface OnPlayerRemovedEvent extends EventData {
|
2632
2632
|
/**
|
@@ -2644,7 +2644,7 @@ declare module "factorio:runtime" {
|
|
2644
2644
|
}
|
2645
2645
|
/**
|
2646
2646
|
* Called after the player removes equipment from an equipment grid
|
2647
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2647
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_removed_equipment Online documentation}
|
2648
2648
|
*/
|
2649
2649
|
interface OnPlayerRemovedEquipmentEvent extends EventData {
|
2650
2650
|
readonly player_index: PlayerIndex
|
@@ -2677,7 +2677,7 @@ declare module "factorio:runtime" {
|
|
2677
2677
|
* Called when a player repairs an entity.
|
2678
2678
|
*
|
2679
2679
|
* Event filter: [LuaPlayerRepairedEntityEventFilter](LuaPlayerRepairedEntityEventFilter]
|
2680
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2680
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_repaired_entity Online documentation}
|
2681
2681
|
*/
|
2682
2682
|
interface OnPlayerRepairedEntityEvent extends EventData {
|
2683
2683
|
readonly player_index: PlayerIndex
|
@@ -2693,7 +2693,7 @@ declare module "factorio:runtime" {
|
|
2693
2693
|
}
|
2694
2694
|
/**
|
2695
2695
|
* Called after a player respawns.
|
2696
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2696
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_respawned Online documentation}
|
2697
2697
|
*/
|
2698
2698
|
interface OnPlayerRespawnedEvent extends EventData {
|
2699
2699
|
readonly player_index: PlayerIndex
|
@@ -2712,7 +2712,7 @@ declare module "factorio:runtime" {
|
|
2712
2712
|
}
|
2713
2713
|
/**
|
2714
2714
|
* Called after a player reverse-selects an area with a selection-tool item.
|
2715
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2715
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_reverse_selected_area Online documentation}
|
2716
2716
|
*/
|
2717
2717
|
interface OnPlayerReverseSelectedAreaEvent extends EventData {
|
2718
2718
|
/**
|
@@ -2752,7 +2752,7 @@ declare module "factorio:runtime" {
|
|
2752
2752
|
* 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.
|
2753
2753
|
*
|
2754
2754
|
* Entities being flipped will not fire this event, even if the flip involves rotating. See {@link OnPlayerFlippedEntityEvent on_player_flipped_entity}.
|
2755
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2755
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_rotated_entity Online documentation}
|
2756
2756
|
*/
|
2757
2757
|
interface OnPlayerRotatedEntityEvent extends EventData {
|
2758
2758
|
/**
|
@@ -2775,7 +2775,7 @@ declare module "factorio:runtime" {
|
|
2775
2775
|
}
|
2776
2776
|
/**
|
2777
2777
|
* Called after a player selects an area with a selection-tool item.
|
2778
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2778
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_selected_area Online documentation}
|
2779
2779
|
*/
|
2780
2780
|
interface OnPlayerSelectedAreaEvent extends EventData {
|
2781
2781
|
/**
|
@@ -2817,7 +2817,7 @@ declare module "factorio:runtime" {
|
|
2817
2817
|
}
|
2818
2818
|
/**
|
2819
2819
|
* Called when a player sets a quickbar slot to anything (new value, or set to empty).
|
2820
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2820
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_set_quick_bar_slot Online documentation}
|
2821
2821
|
*/
|
2822
2822
|
interface OnPlayerSetQuickBarSlotEvent extends EventData {
|
2823
2823
|
readonly player_index: PlayerIndex
|
@@ -2832,7 +2832,7 @@ declare module "factorio:runtime" {
|
|
2832
2832
|
}
|
2833
2833
|
/**
|
2834
2834
|
* Called when a player selects an area with a blueprint.
|
2835
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2835
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_setup_blueprint Online documentation}
|
2836
2836
|
*/
|
2837
2837
|
interface OnPlayerSetupBlueprintEvent extends EventData {
|
2838
2838
|
/**
|
@@ -2878,7 +2878,7 @@ declare module "factorio:runtime" {
|
|
2878
2878
|
}
|
2879
2879
|
/**
|
2880
2880
|
* Called when a player toggles alt mode, also known as "show entity info".
|
2881
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2881
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_toggled_alt_mode Online documentation}
|
2882
2882
|
*/
|
2883
2883
|
interface OnPlayerToggledAltModeEvent extends EventData {
|
2884
2884
|
readonly player_index: PlayerIndex
|
@@ -2897,7 +2897,7 @@ declare module "factorio:runtime" {
|
|
2897
2897
|
}
|
2898
2898
|
/**
|
2899
2899
|
* Called when a player toggles the map editor on or off.
|
2900
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2900
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_toggled_map_editor Online documentation}
|
2901
2901
|
*/
|
2902
2902
|
interface OnPlayerToggledMapEditorEvent extends EventData {
|
2903
2903
|
readonly player_index: PlayerIndex
|
@@ -2912,7 +2912,7 @@ declare module "factorio:runtime" {
|
|
2912
2912
|
}
|
2913
2913
|
/**
|
2914
2914
|
* Called after a players trash inventory changed in some way.
|
2915
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2915
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_trash_inventory_changed Online documentation}
|
2916
2916
|
*/
|
2917
2917
|
interface OnPlayerTrashInventoryChangedEvent extends EventData {
|
2918
2918
|
readonly player_index: PlayerIndex
|
@@ -2927,7 +2927,7 @@ declare module "factorio:runtime" {
|
|
2927
2927
|
}
|
2928
2928
|
/**
|
2929
2929
|
* Called when a player is un-banned.
|
2930
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2930
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_unbanned Online documentation}
|
2931
2931
|
*/
|
2932
2932
|
interface OnPlayerUnbannedEvent extends EventData {
|
2933
2933
|
/**
|
@@ -2957,7 +2957,7 @@ declare module "factorio:runtime" {
|
|
2957
2957
|
}
|
2958
2958
|
/**
|
2959
2959
|
* Called when a player is unmuted.
|
2960
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2960
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_unmuted Online documentation}
|
2961
2961
|
*/
|
2962
2962
|
interface OnPlayerUnmutedEvent extends EventData {
|
2963
2963
|
/**
|
@@ -2975,7 +2975,7 @@ declare module "factorio:runtime" {
|
|
2975
2975
|
}
|
2976
2976
|
/**
|
2977
2977
|
* Called when a player uses a capsule that results in some game action.
|
2978
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2978
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_used_capsule Online documentation}
|
2979
2979
|
*/
|
2980
2980
|
interface OnPlayerUsedCapsuleEvent extends EventData {
|
2981
2981
|
/**
|
@@ -3005,7 +3005,7 @@ declare module "factorio:runtime" {
|
|
3005
3005
|
}
|
3006
3006
|
/**
|
3007
3007
|
* Called when a player uses spidertron remote to send all selected units to a given position
|
3008
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3008
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_player_used_spidertron_remote Online documentation}
|
3009
3009
|
*/
|
3010
3010
|
interface OnPlayerUsedSpidertronRemoteEvent extends EventData {
|
3011
3011
|
/**
|
@@ -3029,7 +3029,7 @@ declare module "factorio:runtime" {
|
|
3029
3029
|
* Called after an entity dies.
|
3030
3030
|
*
|
3031
3031
|
* Event filter: [LuaPostEntityDiedEventFilter](LuaPostEntityDiedEventFilter]
|
3032
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3032
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_post_entity_died Online documentation}
|
3033
3033
|
*/
|
3034
3034
|
interface OnPostEntityDiedEvent extends EventData {
|
3035
3035
|
/**
|
@@ -3079,7 +3079,7 @@ declare module "factorio:runtime" {
|
|
3079
3079
|
}
|
3080
3080
|
/**
|
3081
3081
|
* Called when players uses an item to build something. Called before {@link OnBuiltEntityEvent on_built_entity}.
|
3082
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3082
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_build Online documentation}
|
3083
3083
|
*/
|
3084
3084
|
interface OnPreBuildEvent extends EventData {
|
3085
3085
|
/**
|
@@ -3125,7 +3125,7 @@ declare module "factorio:runtime" {
|
|
3125
3125
|
}
|
3126
3126
|
/**
|
3127
3127
|
* Called before one or more chunks are deleted using {@link LuaSurface#delete_chunk LuaSurface::delete_chunk}.
|
3128
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3128
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_chunk_deleted Online documentation}
|
3129
3129
|
*/
|
3130
3130
|
interface OnPreChunkDeletedEvent extends EventData {
|
3131
3131
|
readonly surface_index: SurfaceIndex
|
@@ -3144,7 +3144,7 @@ declare module "factorio:runtime" {
|
|
3144
3144
|
}
|
3145
3145
|
/**
|
3146
3146
|
* Called before entity copy-paste is done.
|
3147
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3147
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_entity_settings_pasted Online documentation}
|
3148
3148
|
*/
|
3149
3149
|
interface OnPreEntitySettingsPastedEvent extends EventData {
|
3150
3150
|
readonly player_index: PlayerIndex
|
@@ -3171,7 +3171,7 @@ declare module "factorio:runtime" {
|
|
3171
3171
|
* Also called for item request proxies before they are destroyed as a result of being marked for deconstruction.
|
3172
3172
|
*
|
3173
3173
|
* Event filter: [LuaPreGhostDeconstructedEventFilter](LuaPreGhostDeconstructedEventFilter]
|
3174
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3174
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_ghost_deconstructed Online documentation}
|
3175
3175
|
*/
|
3176
3176
|
interface OnPreGhostDeconstructedEvent extends EventData {
|
3177
3177
|
/**
|
@@ -3192,7 +3192,7 @@ declare module "factorio:runtime" {
|
|
3192
3192
|
* Called before a ghost entity is upgraded.
|
3193
3193
|
*
|
3194
3194
|
* Event filter: [LuaPreGhostUpgradedEventFilter](LuaPreGhostUpgradedEventFilter]
|
3195
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3195
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_ghost_upgraded Online documentation}
|
3196
3196
|
*/
|
3197
3197
|
interface OnPreGhostUpgradedEvent extends EventData {
|
3198
3198
|
/**
|
@@ -3213,7 +3213,7 @@ declare module "factorio:runtime" {
|
|
3213
3213
|
}
|
3214
3214
|
/**
|
3215
3215
|
* Called directly before a permission group is deleted.
|
3216
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3216
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_permission_group_deleted Online documentation}
|
3217
3217
|
*/
|
3218
3218
|
interface OnPrePermissionGroupDeletedEvent extends EventData {
|
3219
3219
|
/**
|
@@ -3235,7 +3235,7 @@ declare module "factorio:runtime" {
|
|
3235
3235
|
}
|
3236
3236
|
/**
|
3237
3237
|
* Called directly before a permission string is imported.
|
3238
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3238
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_permission_string_imported Online documentation}
|
3239
3239
|
*/
|
3240
3240
|
interface OnPrePermissionStringImportedEvent extends EventData {
|
3241
3241
|
/**
|
@@ -3253,7 +3253,7 @@ declare module "factorio:runtime" {
|
|
3253
3253
|
}
|
3254
3254
|
/**
|
3255
3255
|
* Called when a player queues something to be crafted.
|
3256
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3256
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_player_crafted_item Online documentation}
|
3257
3257
|
*/
|
3258
3258
|
interface OnPrePlayerCraftedItemEvent extends EventData {
|
3259
3259
|
/**
|
@@ -3283,7 +3283,7 @@ declare module "factorio:runtime" {
|
|
3283
3283
|
}
|
3284
3284
|
/**
|
3285
3285
|
* Called before a players dies.
|
3286
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3286
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_player_died Online documentation}
|
3287
3287
|
*/
|
3288
3288
|
interface OnPrePlayerDiedEvent extends EventData {
|
3289
3289
|
readonly player_index: PlayerIndex
|
@@ -3299,7 +3299,7 @@ declare module "factorio:runtime" {
|
|
3299
3299
|
}
|
3300
3300
|
/**
|
3301
3301
|
* Called before a player leaves the game.
|
3302
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3302
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_player_left_game Online documentation}
|
3303
3303
|
*/
|
3304
3304
|
interface OnPrePlayerLeftGameEvent extends EventData {
|
3305
3305
|
readonly player_index: PlayerIndex
|
@@ -3317,7 +3317,7 @@ declare module "factorio:runtime" {
|
|
3317
3317
|
* 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.
|
3318
3318
|
*
|
3319
3319
|
* Event filter: [LuaPrePlayerMinedEntityEventFilter](LuaPrePlayerMinedEntityEventFilter]
|
3320
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3320
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_player_mined_item Online documentation}
|
3321
3321
|
*/
|
3322
3322
|
interface OnPrePlayerMinedItemEvent extends EventData {
|
3323
3323
|
/**
|
@@ -3336,7 +3336,7 @@ declare module "factorio:runtime" {
|
|
3336
3336
|
}
|
3337
3337
|
/**
|
3338
3338
|
* 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.
|
3339
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3339
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_player_removed Online documentation}
|
3340
3340
|
*/
|
3341
3341
|
interface OnPrePlayerRemovedEvent extends EventData {
|
3342
3342
|
/**
|
@@ -3354,7 +3354,7 @@ declare module "factorio:runtime" {
|
|
3354
3354
|
}
|
3355
3355
|
/**
|
3356
3356
|
* Called before a player toggles the map editor on or off.
|
3357
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3357
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_player_toggled_map_editor Online documentation}
|
3358
3358
|
*/
|
3359
3359
|
interface OnPrePlayerToggledMapEditorEvent extends EventData {
|
3360
3360
|
readonly player_index: PlayerIndex
|
@@ -3369,7 +3369,7 @@ declare module "factorio:runtime" {
|
|
3369
3369
|
}
|
3370
3370
|
/**
|
3371
3371
|
* Called directly before a robot explodes cliffs.
|
3372
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3372
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_robot_exploded_cliff Online documentation}
|
3373
3373
|
*/
|
3374
3374
|
interface OnPreRobotExplodedCliffEvent extends EventData {
|
3375
3375
|
readonly robot: LuaEntity
|
@@ -3393,9 +3393,13 @@ declare module "factorio:runtime" {
|
|
3393
3393
|
}
|
3394
3394
|
/**
|
3395
3395
|
* Called just before the scenario finishes.
|
3396
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3396
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_scenario_finished Online documentation}
|
3397
3397
|
*/
|
3398
3398
|
interface OnPreScenarioFinishedEvent extends EventData {
|
3399
|
+
/**
|
3400
|
+
* If a player won
|
3401
|
+
*/
|
3402
|
+
readonly player_won: boolean
|
3399
3403
|
/**
|
3400
3404
|
* Identifier of the event
|
3401
3405
|
*/
|
@@ -3407,7 +3411,7 @@ declare module "factorio:runtime" {
|
|
3407
3411
|
}
|
3408
3412
|
/**
|
3409
3413
|
* Called just before a script inventory is resized.
|
3410
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3414
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_script_inventory_resized Online documentation}
|
3411
3415
|
*/
|
3412
3416
|
interface OnPreScriptInventoryResizedEvent extends EventData {
|
3413
3417
|
/**
|
@@ -3438,7 +3442,7 @@ declare module "factorio:runtime" {
|
|
3438
3442
|
}
|
3439
3443
|
/**
|
3440
3444
|
* Called just before a surface is cleared (all entities removed and all chunks deleted).
|
3441
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3445
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_surface_cleared Online documentation}
|
3442
3446
|
*/
|
3443
3447
|
interface OnPreSurfaceClearedEvent extends EventData {
|
3444
3448
|
readonly surface_index: SurfaceIndex
|
@@ -3453,7 +3457,7 @@ declare module "factorio:runtime" {
|
|
3453
3457
|
}
|
3454
3458
|
/**
|
3455
3459
|
* Called just before a surface is deleted.
|
3456
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3460
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_pre_surface_deleted Online documentation}
|
3457
3461
|
*/
|
3458
3462
|
interface OnPreSurfaceDeletedEvent extends EventData {
|
3459
3463
|
readonly surface_index: SurfaceIndex
|
@@ -3468,7 +3472,7 @@ declare module "factorio:runtime" {
|
|
3468
3472
|
}
|
3469
3473
|
/**
|
3470
3474
|
* Called when the player triggers "redo".
|
3471
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3475
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_redo_applied Online documentation}
|
3472
3476
|
*/
|
3473
3477
|
interface OnRedoAppliedEvent extends EventData {
|
3474
3478
|
/**
|
@@ -3490,7 +3494,7 @@ declare module "factorio:runtime" {
|
|
3490
3494
|
}
|
3491
3495
|
/**
|
3492
3496
|
* Called when research is cancelled.
|
3493
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3497
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_research_cancelled Online documentation}
|
3494
3498
|
*/
|
3495
3499
|
interface OnResearchCancelledEvent extends EventData {
|
3496
3500
|
/**
|
@@ -3512,7 +3516,7 @@ declare module "factorio:runtime" {
|
|
3512
3516
|
}
|
3513
3517
|
/**
|
3514
3518
|
* Called when a research finishes.
|
3515
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3519
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_research_finished Online documentation}
|
3516
3520
|
*/
|
3517
3521
|
interface OnResearchFinishedEvent extends EventData {
|
3518
3522
|
/**
|
@@ -3534,7 +3538,7 @@ declare module "factorio:runtime" {
|
|
3534
3538
|
}
|
3535
3539
|
/**
|
3536
3540
|
* Called when research is moved forwards or backwards in the research queue.
|
3537
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3541
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_research_moved Online documentation}
|
3538
3542
|
*/
|
3539
3543
|
interface OnResearchMovedEvent extends EventData {
|
3540
3544
|
/**
|
@@ -3552,7 +3556,7 @@ declare module "factorio:runtime" {
|
|
3552
3556
|
}
|
3553
3557
|
/**
|
3554
3558
|
* Called when a research is reversed (unresearched).
|
3555
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3559
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_research_reversed Online documentation}
|
3556
3560
|
*/
|
3557
3561
|
interface OnResearchReversedEvent extends EventData {
|
3558
3562
|
/**
|
@@ -3574,7 +3578,7 @@ declare module "factorio:runtime" {
|
|
3574
3578
|
}
|
3575
3579
|
/**
|
3576
3580
|
* Called when a technology research starts.
|
3577
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3581
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_research_started Online documentation}
|
3578
3582
|
*/
|
3579
3583
|
interface OnResearchStartedEvent extends EventData {
|
3580
3584
|
/**
|
@@ -3593,7 +3597,7 @@ declare module "factorio:runtime" {
|
|
3593
3597
|
}
|
3594
3598
|
/**
|
3595
3599
|
* Called when a resource entity reaches 0 or its minimum yield for infinite resources.
|
3596
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3600
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_resource_depleted Online documentation}
|
3597
3601
|
*/
|
3598
3602
|
interface OnResourceDepletedEvent extends EventData {
|
3599
3603
|
readonly entity: LuaEntity
|
@@ -3610,7 +3614,7 @@ declare module "factorio:runtime" {
|
|
3610
3614
|
* Called when a construction robot builds an entity.
|
3611
3615
|
*
|
3612
3616
|
* Event filter: [LuaRobotBuiltEntityEventFilter](LuaRobotBuiltEntityEventFilter]
|
3613
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3617
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_robot_built_entity Online documentation}
|
3614
3618
|
*/
|
3615
3619
|
interface OnRobotBuiltEntityEvent extends EventData {
|
3616
3620
|
/**
|
@@ -3640,7 +3644,7 @@ declare module "factorio:runtime" {
|
|
3640
3644
|
}
|
3641
3645
|
/**
|
3642
3646
|
* Called after a robot builds tiles.
|
3643
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3647
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_robot_built_tile Online documentation}
|
3644
3648
|
*/
|
3645
3649
|
interface OnRobotBuiltTileEvent extends EventData {
|
3646
3650
|
/**
|
@@ -3682,7 +3686,7 @@ declare module "factorio:runtime" {
|
|
3682
3686
|
}
|
3683
3687
|
/**
|
3684
3688
|
* Called directly after a robot explodes cliffs.
|
3685
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3689
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_robot_exploded_cliff Online documentation}
|
3686
3690
|
*/
|
3687
3691
|
interface OnRobotExplodedCliffEvent extends EventData {
|
3688
3692
|
readonly robot: LuaEntity
|
@@ -3705,7 +3709,7 @@ declare module "factorio:runtime" {
|
|
3705
3709
|
}
|
3706
3710
|
/**
|
3707
3711
|
* Called when a robot mines an entity.
|
3708
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3712
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_robot_mined Online documentation}
|
3709
3713
|
*/
|
3710
3714
|
interface OnRobotMinedEvent extends EventData {
|
3711
3715
|
/**
|
@@ -3733,7 +3737,7 @@ declare module "factorio:runtime" {
|
|
3733
3737
|
* 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.
|
3734
3738
|
*
|
3735
3739
|
* Event filter: [LuaRobotMinedEntityEventFilter](LuaRobotMinedEntityEventFilter]
|
3736
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3740
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_robot_mined_entity Online documentation}
|
3737
3741
|
*/
|
3738
3742
|
interface OnRobotMinedEntityEvent extends EventData {
|
3739
3743
|
/**
|
@@ -3759,7 +3763,7 @@ declare module "factorio:runtime" {
|
|
3759
3763
|
}
|
3760
3764
|
/**
|
3761
3765
|
* Called after a robot mines tiles.
|
3762
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3766
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_robot_mined_tile Online documentation}
|
3763
3767
|
*/
|
3764
3768
|
interface OnRobotMinedTileEvent extends EventData {
|
3765
3769
|
/**
|
@@ -3787,7 +3791,7 @@ declare module "factorio:runtime" {
|
|
3787
3791
|
* Called before a robot mines an entity.
|
3788
3792
|
*
|
3789
3793
|
* Event filter: [LuaPreRobotMinedEntityEventFilter](LuaPreRobotMinedEntityEventFilter]
|
3790
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3794
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_robot_pre_mined Online documentation}
|
3791
3795
|
*/
|
3792
3796
|
interface OnRobotPreMinedEvent extends EventData {
|
3793
3797
|
/**
|
@@ -3809,7 +3813,7 @@ declare module "factorio:runtime" {
|
|
3809
3813
|
}
|
3810
3814
|
/**
|
3811
3815
|
* Called when a rocket silo is ordered to be launched.
|
3812
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3816
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_rocket_launch_ordered Online documentation}
|
3813
3817
|
*/
|
3814
3818
|
interface OnRocketLaunchOrderedEvent extends EventData {
|
3815
3819
|
readonly rocket: LuaEntity
|
@@ -3829,7 +3833,7 @@ declare module "factorio:runtime" {
|
|
3829
3833
|
}
|
3830
3834
|
/**
|
3831
3835
|
* Called when the rocket is launched.
|
3832
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3836
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_rocket_launched Online documentation}
|
3833
3837
|
*/
|
3834
3838
|
interface OnRocketLaunchedEvent extends EventData {
|
3835
3839
|
readonly rocket: LuaEntity
|
@@ -3849,7 +3853,7 @@ declare module "factorio:runtime" {
|
|
3849
3853
|
}
|
3850
3854
|
/**
|
3851
3855
|
* Called when a runtime mod setting is changed by a player.
|
3852
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3856
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_runtime_mod_setting_changed Online documentation}
|
3853
3857
|
*/
|
3854
3858
|
interface OnRuntimeModSettingChangedEvent extends EventData {
|
3855
3859
|
/**
|
@@ -3872,7 +3876,7 @@ declare module "factorio:runtime" {
|
|
3872
3876
|
}
|
3873
3877
|
/**
|
3874
3878
|
* Called just after a script inventory is resized.
|
3875
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3879
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_script_inventory_resized Online documentation}
|
3876
3880
|
*/
|
3877
3881
|
interface OnScriptInventoryResizedEvent extends EventData {
|
3878
3882
|
/**
|
@@ -3907,7 +3911,7 @@ declare module "factorio:runtime" {
|
|
3907
3911
|
}
|
3908
3912
|
/**
|
3909
3913
|
* Called when a {@link LuaSurface#request_path LuaSurface::request_path} call completes.
|
3910
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3914
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_script_path_request_finished Online documentation}
|
3911
3915
|
*/
|
3912
3916
|
interface OnScriptPathRequestFinishedEvent extends EventData {
|
3913
3917
|
/**
|
@@ -3933,7 +3937,7 @@ declare module "factorio:runtime" {
|
|
3933
3937
|
}
|
3934
3938
|
/**
|
3935
3939
|
* Called when a script trigger effect is triggered.
|
3936
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3940
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_script_trigger_effect Online documentation}
|
3937
3941
|
*/
|
3938
3942
|
interface OnScriptTriggerEffectEvent extends EventData {
|
3939
3943
|
/**
|
@@ -3965,7 +3969,7 @@ declare module "factorio:runtime" {
|
|
3965
3969
|
* Called when an entity of type `radar` finishes scanning a sector.
|
3966
3970
|
*
|
3967
3971
|
* Event filter: [LuaSectorScannedEventFilter](LuaSectorScannedEventFilter]
|
3968
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3972
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_sector_scanned Online documentation}
|
3969
3973
|
*/
|
3970
3974
|
interface OnSectorScannedEvent extends EventData {
|
3971
3975
|
/**
|
@@ -3991,7 +3995,7 @@ declare module "factorio:runtime" {
|
|
3991
3995
|
}
|
3992
3996
|
/**
|
3993
3997
|
* Called when an individual segment of a SegmentedUnit is created.
|
3994
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3998
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_segment_entity_created Online documentation}
|
3995
3999
|
*/
|
3996
4000
|
interface OnSegmentEntityCreatedEvent extends EventData {
|
3997
4001
|
readonly entity: LuaEntity
|
@@ -4006,7 +4010,7 @@ declare module "factorio:runtime" {
|
|
4006
4010
|
}
|
4007
4011
|
/**
|
4008
4012
|
* Called after the selected entity changes for a given player.
|
4009
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4013
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_selected_entity_changed Online documentation}
|
4010
4014
|
*/
|
4011
4015
|
interface OnSelectedEntityChangedEvent extends EventData {
|
4012
4016
|
/**
|
@@ -4030,7 +4034,7 @@ declare module "factorio:runtime" {
|
|
4030
4034
|
* Called when a space platform builds an entity.
|
4031
4035
|
*
|
4032
4036
|
* Event filter: [LuaPlatformBuiltEntityEventFilter](LuaPlatformBuiltEntityEventFilter]
|
4033
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4037
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_space_platform_built_entity Online documentation}
|
4034
4038
|
*/
|
4035
4039
|
interface OnSpacePlatformBuiltEntityEvent extends EventData {
|
4036
4040
|
/**
|
@@ -4060,7 +4064,7 @@ declare module "factorio:runtime" {
|
|
4060
4064
|
}
|
4061
4065
|
/**
|
4062
4066
|
* Called after a space platform builds tiles.
|
4063
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4067
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_space_platform_built_tile Online documentation}
|
4064
4068
|
*/
|
4065
4069
|
interface OnSpacePlatformBuiltTileEvent extends EventData {
|
4066
4070
|
/**
|
@@ -4102,7 +4106,7 @@ declare module "factorio:runtime" {
|
|
4102
4106
|
}
|
4103
4107
|
/**
|
4104
4108
|
* Called when a space platform changes state
|
4105
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4109
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_space_platform_changed_state Online documentation}
|
4106
4110
|
*/
|
4107
4111
|
interface OnSpacePlatformChangedStateEvent extends EventData {
|
4108
4112
|
readonly platform: LuaSpacePlatform
|
@@ -4124,7 +4128,7 @@ declare module "factorio:runtime" {
|
|
4124
4128
|
* 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.
|
4125
4129
|
*
|
4126
4130
|
* Event filter: [LuaPlatformMinedEntityEventFilter](LuaPlatformMinedEntityEventFilter]
|
4127
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4131
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_space_platform_mined_entity Online documentation}
|
4128
4132
|
*/
|
4129
4133
|
interface OnSpacePlatformMinedEntityEvent extends EventData {
|
4130
4134
|
/**
|
@@ -4150,7 +4154,7 @@ declare module "factorio:runtime" {
|
|
4150
4154
|
}
|
4151
4155
|
/**
|
4152
4156
|
* Called when a platform mines an entity.
|
4153
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4157
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_space_platform_mined_item Online documentation}
|
4154
4158
|
*/
|
4155
4159
|
interface OnSpacePlatformMinedItemEvent extends EventData {
|
4156
4160
|
/**
|
@@ -4172,7 +4176,7 @@ declare module "factorio:runtime" {
|
|
4172
4176
|
}
|
4173
4177
|
/**
|
4174
4178
|
* Called after a platform mines tiles.
|
4175
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4179
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_space_platform_mined_tile Online documentation}
|
4176
4180
|
*/
|
4177
4181
|
interface OnSpacePlatformMinedTileEvent extends EventData {
|
4178
4182
|
/**
|
@@ -4200,7 +4204,7 @@ declare module "factorio:runtime" {
|
|
4200
4204
|
* Called before a platform mines an entity.
|
4201
4205
|
*
|
4202
4206
|
* Event filter: [LuaPrePlatformMinedEntityEventFilter](LuaPrePlatformMinedEntityEventFilter]
|
4203
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4207
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_space_platform_pre_mined Online documentation}
|
4204
4208
|
*/
|
4205
4209
|
interface OnSpacePlatformPreMinedEvent extends EventData {
|
4206
4210
|
/**
|
@@ -4222,7 +4226,7 @@ declare module "factorio:runtime" {
|
|
4222
4226
|
}
|
4223
4227
|
/**
|
4224
4228
|
* Called when a spider finishes moving to its autopilot position.
|
4225
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4229
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_spider_command_completed Online documentation}
|
4226
4230
|
*/
|
4227
4231
|
interface OnSpiderCommandCompletedEvent extends EventData {
|
4228
4232
|
/**
|
@@ -4240,7 +4244,7 @@ declare module "factorio:runtime" {
|
|
4240
4244
|
}
|
4241
4245
|
/**
|
4242
4246
|
* 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.
|
4243
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4247
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_string_translated Online documentation}
|
4244
4248
|
*/
|
4245
4249
|
interface OnStringTranslatedEvent extends EventData {
|
4246
4250
|
/**
|
@@ -4274,7 +4278,7 @@ declare module "factorio:runtime" {
|
|
4274
4278
|
}
|
4275
4279
|
/**
|
4276
4280
|
* Called just after a surface is cleared (all entities removed and all chunks deleted).
|
4277
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4281
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_surface_cleared Online documentation}
|
4278
4282
|
*/
|
4279
4283
|
interface OnSurfaceClearedEvent extends EventData {
|
4280
4284
|
readonly surface_index: SurfaceIndex
|
@@ -4291,7 +4295,7 @@ declare module "factorio:runtime" {
|
|
4291
4295
|
* Called when a surface is created.
|
4292
4296
|
*
|
4293
4297
|
* This is not called when the default surface is created as it will always exist.
|
4294
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4298
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_surface_created Online documentation}
|
4295
4299
|
*/
|
4296
4300
|
interface OnSurfaceCreatedEvent extends EventData {
|
4297
4301
|
readonly surface_index: SurfaceIndex
|
@@ -4306,7 +4310,7 @@ declare module "factorio:runtime" {
|
|
4306
4310
|
}
|
4307
4311
|
/**
|
4308
4312
|
* Called after a surface is deleted.
|
4309
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4313
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_surface_deleted Online documentation}
|
4310
4314
|
*/
|
4311
4315
|
interface OnSurfaceDeletedEvent extends EventData {
|
4312
4316
|
readonly surface_index: SurfaceIndex
|
@@ -4321,7 +4325,7 @@ declare module "factorio:runtime" {
|
|
4321
4325
|
}
|
4322
4326
|
/**
|
4323
4327
|
* Called after a surface is imported via the map editor.
|
4324
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4328
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_surface_imported Online documentation}
|
4325
4329
|
*/
|
4326
4330
|
interface OnSurfaceImportedEvent extends EventData {
|
4327
4331
|
readonly surface_index: SurfaceIndex
|
@@ -4340,7 +4344,7 @@ declare module "factorio:runtime" {
|
|
4340
4344
|
}
|
4341
4345
|
/**
|
4342
4346
|
* Called when a surface is renamed.
|
4343
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4347
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_surface_renamed Online documentation}
|
4344
4348
|
*/
|
4345
4349
|
interface OnSurfaceRenamedEvent extends EventData {
|
4346
4350
|
readonly surface_index: SurfaceIndex
|
@@ -4357,7 +4361,7 @@ declare module "factorio:runtime" {
|
|
4357
4361
|
}
|
4358
4362
|
/**
|
4359
4363
|
* Called when {@link LuaForce#reset_technology_effects LuaForce::reset_technology_effects} is finished.
|
4360
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4364
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_technology_effects_reset Online documentation}
|
4361
4365
|
*/
|
4362
4366
|
interface OnTechnologyEffectsResetEvent extends EventData {
|
4363
4367
|
readonly force: LuaForce
|
@@ -4372,7 +4376,7 @@ declare module "factorio:runtime" {
|
|
4372
4376
|
}
|
4373
4377
|
/**
|
4374
4378
|
* It is fired once every tick. Since this event is fired every tick, its handler shouldn't include performance heavy code.
|
4375
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4379
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_tick Online documentation}
|
4376
4380
|
*/
|
4377
4381
|
interface OnTickEvent extends EventData {
|
4378
4382
|
/**
|
@@ -4386,7 +4390,7 @@ declare module "factorio:runtime" {
|
|
4386
4390
|
}
|
4387
4391
|
/**
|
4388
4392
|
* Called when a train changes state (started to stopped and vice versa)
|
4389
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4393
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_train_changed_state Online documentation}
|
4390
4394
|
*/
|
4391
4395
|
interface OnTrainChangedStateEvent extends EventData {
|
4392
4396
|
readonly train: LuaTrain
|
@@ -4402,7 +4406,7 @@ declare module "factorio:runtime" {
|
|
4402
4406
|
}
|
4403
4407
|
/**
|
4404
4408
|
* Called when a new train is created either through disconnecting/connecting an existing one or building a new one.
|
4405
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4409
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_train_created Online documentation}
|
4406
4410
|
*/
|
4407
4411
|
interface OnTrainCreatedEvent extends EventData {
|
4408
4412
|
readonly train: LuaTrain
|
@@ -4425,7 +4429,7 @@ declare module "factorio:runtime" {
|
|
4425
4429
|
}
|
4426
4430
|
/**
|
4427
4431
|
* Called when a trains schedule is changed either by the player or through script.
|
4428
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4432
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_train_schedule_changed Online documentation}
|
4429
4433
|
*/
|
4430
4434
|
interface OnTrainScheduleChangedEvent extends EventData {
|
4431
4435
|
readonly train: LuaTrain
|
@@ -4444,7 +4448,7 @@ declare module "factorio:runtime" {
|
|
4444
4448
|
}
|
4445
4449
|
/**
|
4446
4450
|
* Called when an entity with a trigger prototype (such as capsules) create an entity AND that trigger prototype defined `trigger_created_entity=true`.
|
4447
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4451
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_trigger_created_entity Online documentation}
|
4448
4452
|
*/
|
4449
4453
|
interface OnTriggerCreatedEntityEvent extends EventData {
|
4450
4454
|
readonly entity: LuaEntity
|
@@ -4460,7 +4464,7 @@ declare module "factorio:runtime" {
|
|
4460
4464
|
}
|
4461
4465
|
/**
|
4462
4466
|
* Called when an entity with a trigger prototype (such as capsules) fire an artillery projectile AND that trigger prototype defined `trigger_fired_artillery=true`.
|
4463
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4467
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_trigger_fired_artillery Online documentation}
|
4464
4468
|
*/
|
4465
4469
|
interface OnTriggerFiredArtilleryEvent extends EventData {
|
4466
4470
|
readonly entity: LuaEntity
|
@@ -4476,7 +4480,7 @@ declare module "factorio:runtime" {
|
|
4476
4480
|
}
|
4477
4481
|
/**
|
4478
4482
|
* Called when the player triggers "undo".
|
4479
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4483
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_undo_applied Online documentation}
|
4480
4484
|
*/
|
4481
4485
|
interface OnUndoAppliedEvent extends EventData {
|
4482
4486
|
/**
|
@@ -4498,7 +4502,7 @@ declare module "factorio:runtime" {
|
|
4498
4502
|
}
|
4499
4503
|
/**
|
4500
4504
|
* Called when a unit is added to a unit group.
|
4501
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4505
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_unit_added_to_group Online documentation}
|
4502
4506
|
*/
|
4503
4507
|
interface OnUnitAddedToGroupEvent extends EventData {
|
4504
4508
|
readonly unit: LuaEntity
|
@@ -4514,7 +4518,7 @@ declare module "factorio:runtime" {
|
|
4514
4518
|
}
|
4515
4519
|
/**
|
4516
4520
|
* Called when a new unit group is created, before any members are added to it.
|
4517
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4521
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_unit_group_created Online documentation}
|
4518
4522
|
*/
|
4519
4523
|
interface OnUnitGroupCreatedEvent extends EventData {
|
4520
4524
|
readonly group: LuaCommandable
|
@@ -4529,7 +4533,7 @@ declare module "factorio:runtime" {
|
|
4529
4533
|
}
|
4530
4534
|
/**
|
4531
4535
|
* Called when a unit group finishes gathering and starts executing its command.
|
4532
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4536
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_unit_group_finished_gathering Online documentation}
|
4533
4537
|
*/
|
4534
4538
|
interface OnUnitGroupFinishedGatheringEvent extends EventData {
|
4535
4539
|
readonly group: LuaCommandable
|
@@ -4544,7 +4548,7 @@ declare module "factorio:runtime" {
|
|
4544
4548
|
}
|
4545
4549
|
/**
|
4546
4550
|
* Called when a unit is removed from a unit group.
|
4547
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4551
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_unit_removed_from_group Online documentation}
|
4548
4552
|
*/
|
4549
4553
|
interface OnUnitRemovedFromGroupEvent extends EventData {
|
4550
4554
|
readonly unit: LuaEntity
|
@@ -4560,7 +4564,7 @@ declare module "factorio:runtime" {
|
|
4560
4564
|
}
|
4561
4565
|
/**
|
4562
4566
|
* Called when a worker (construction or logistic) robot expires through a lack of energy.
|
4563
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4567
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#on_worker_robot_expired Online documentation}
|
4564
4568
|
*/
|
4565
4569
|
interface OnWorkerRobotExpiredEvent extends EventData {
|
4566
4570
|
readonly robot: LuaEntity
|
@@ -4577,7 +4581,7 @@ declare module "factorio:runtime" {
|
|
4577
4581
|
* 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}.
|
4578
4582
|
*
|
4579
4583
|
* Event filter: [LuaScriptRaisedBuiltEventFilter](LuaScriptRaisedBuiltEventFilter]
|
4580
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4584
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#script_raised_built Online documentation}
|
4581
4585
|
*/
|
4582
4586
|
interface ScriptRaisedBuiltEvent extends EventData {
|
4583
4587
|
/**
|
@@ -4597,7 +4601,7 @@ declare module "factorio:runtime" {
|
|
4597
4601
|
* 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}.
|
4598
4602
|
*
|
4599
4603
|
* Event filter: [LuaScriptRaisedDestroyEventFilter](LuaScriptRaisedDestroyEventFilter]
|
4600
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4604
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#script_raised_destroy Online documentation}
|
4601
4605
|
*/
|
4602
4606
|
interface ScriptRaisedDestroyEvent extends EventData {
|
4603
4607
|
/**
|
@@ -4617,7 +4621,7 @@ declare module "factorio:runtime" {
|
|
4617
4621
|
* 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}.
|
4618
4622
|
*
|
4619
4623
|
* Event filter: [LuaScriptRaisedReviveEventFilter](LuaScriptRaisedReviveEventFilter]
|
4620
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4624
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#script_raised_revive Online documentation}
|
4621
4625
|
*/
|
4622
4626
|
interface ScriptRaisedReviveEvent extends EventData {
|
4623
4627
|
/**
|
@@ -4639,7 +4643,7 @@ declare module "factorio:runtime" {
|
|
4639
4643
|
}
|
4640
4644
|
/**
|
4641
4645
|
* 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}.
|
4642
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4646
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#script_raised_set_tiles Online documentation}
|
4643
4647
|
*/
|
4644
4648
|
interface ScriptRaisedSetTilesEvent extends EventData {
|
4645
4649
|
/**
|
@@ -4663,7 +4667,7 @@ declare module "factorio:runtime" {
|
|
4663
4667
|
* 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}.
|
4664
4668
|
*
|
4665
4669
|
* Event filter: [LuaScriptRaisedTeleportedEventFilter](LuaScriptRaisedTeleportedEventFilter]
|
4666
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4670
|
+
* @see {@link https://lua-api.factorio.com/2.0.15/events.html#script_raised_teleported Online documentation}
|
4667
4671
|
*/
|
4668
4672
|
interface ScriptRaisedTeleportedEvent extends EventData {
|
4669
4673
|
/**
|