typed-factorio 4.0.1 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -6
- package/package.json +21 -24
- package/prototype/generated/prototypes.d.ts +2519 -2522
- package/prototype/generated/types.d.ts +2598 -2600
- package/runtime/generated/classes.d.ts +5024 -5007
- package/runtime/generated/concepts.d.ts +11241 -11270
- package/runtime/generated/defines.d.ts +290 -286
- package/runtime/generated/events.d.ts +224 -230
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +7 -7
|
@@ -13,7 +13,7 @@ declare module "factorio:runtime" {
|
|
|
13
13
|
* script.on_event("my-potato-control", function(event)
|
|
14
14
|
* game.print("Keyboard shortcut pressed on tick: " ..tostring(event.tick))
|
|
15
15
|
* end)
|
|
16
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
16
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#CustomInputEvent Online documentation}
|
|
17
17
|
*/
|
|
18
18
|
interface CustomInputEvent extends EventData {
|
|
19
19
|
/**
|
|
@@ -59,7 +59,7 @@ declare module "factorio:runtime" {
|
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* Called when an achievement is gained.
|
|
62
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
62
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_achievement_gained Online documentation}
|
|
63
63
|
*/
|
|
64
64
|
interface OnAchievementGainedEvent extends EventData {
|
|
65
65
|
/**
|
|
@@ -78,7 +78,7 @@ declare module "factorio:runtime" {
|
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
80
|
* Called when a unit/group completes a command.
|
|
81
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
81
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_ai_command_completed Online documentation}
|
|
82
82
|
*/
|
|
83
83
|
interface OnAiCommandCompletedEvent extends EventData {
|
|
84
84
|
/**
|
|
@@ -101,7 +101,7 @@ declare module "factorio:runtime" {
|
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
103
|
* Called when an area of the map is cloned.
|
|
104
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
104
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_area_cloned Online documentation}
|
|
105
105
|
*/
|
|
106
106
|
interface OnAreaClonedEvent extends EventData {
|
|
107
107
|
readonly source_surface: LuaSurface
|
|
@@ -127,7 +127,7 @@ declare module "factorio:runtime" {
|
|
|
127
127
|
* Called when a biter migration builds a base.
|
|
128
128
|
*
|
|
129
129
|
* This will be called multiple times for each migration, once for every biter that is sacrificed to build part of the new base.
|
|
130
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
130
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_biter_base_built Online documentation}
|
|
131
131
|
*/
|
|
132
132
|
interface OnBiterBaseBuiltEvent extends EventData {
|
|
133
133
|
/**
|
|
@@ -149,7 +149,7 @@ declare module "factorio:runtime" {
|
|
|
149
149
|
* The entity's settings, rotation, mirroring, wire connections, etc. may have been updated. This event is raised even if no settings actually changed.
|
|
150
150
|
*
|
|
151
151
|
* Note this event is not raised when an entity is upgraded or marked for upgrade, when a new entity is created, or when an entity ghost is instantly revived. {@link OnBuiltEntityEvent on_built_entity} is raised instead in those cases.
|
|
152
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
152
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_blueprint_settings_pasted Online documentation}
|
|
153
153
|
*/
|
|
154
154
|
interface OnBlueprintSettingsPastedEvent extends EventData {
|
|
155
155
|
/**
|
|
@@ -183,7 +183,7 @@ declare module "factorio:runtime" {
|
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
185
|
* Called when a set of positions on the map is cloned.
|
|
186
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
186
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_brush_cloned Online documentation}
|
|
187
187
|
*/
|
|
188
188
|
interface OnBrushClonedEvent extends EventData {
|
|
189
189
|
readonly source_offset: TilePosition
|
|
@@ -208,7 +208,7 @@ declare module "factorio:runtime" {
|
|
|
208
208
|
}
|
|
209
209
|
/**
|
|
210
210
|
* Called when a {@link defines.command.build_base} command reaches its destination, and before building starts.
|
|
211
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
211
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_build_base_arrived Online documentation}
|
|
212
212
|
*/
|
|
213
213
|
interface OnBuildBaseArrivedEvent extends EventData {
|
|
214
214
|
/**
|
|
@@ -232,7 +232,7 @@ declare module "factorio:runtime" {
|
|
|
232
232
|
* Called when player builds something.
|
|
233
233
|
*
|
|
234
234
|
* Event filter: [LuaPlayerBuiltEntityEventFilter](LuaPlayerBuiltEntityEventFilter]
|
|
235
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
235
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_built_entity Online documentation}
|
|
236
236
|
*/
|
|
237
237
|
interface OnBuiltEntityEvent extends EventData {
|
|
238
238
|
/**
|
|
@@ -264,7 +264,7 @@ declare module "factorio:runtime" {
|
|
|
264
264
|
* Called when the deconstruction of an entity is canceled.
|
|
265
265
|
*
|
|
266
266
|
* Event filter: [LuaEntityDeconstructionCancelledEventFilter](LuaEntityDeconstructionCancelledEventFilter]
|
|
267
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
267
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_cancelled_deconstruction Online documentation}
|
|
268
268
|
*/
|
|
269
269
|
interface OnCancelledDeconstructionEvent extends EventData {
|
|
270
270
|
readonly entity: LuaEntity
|
|
@@ -282,7 +282,7 @@ declare module "factorio:runtime" {
|
|
|
282
282
|
* Called when the upgrade of an entity is canceled.
|
|
283
283
|
*
|
|
284
284
|
* Event filter: [LuaUpgradeCancelledEventFilter](LuaUpgradeCancelledEventFilter]
|
|
285
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
285
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_cancelled_upgrade Online documentation}
|
|
286
286
|
*/
|
|
287
287
|
interface OnCancelledUpgradeEvent extends EventData {
|
|
288
288
|
readonly entity: LuaEntity
|
|
@@ -300,7 +300,7 @@ declare module "factorio:runtime" {
|
|
|
300
300
|
}
|
|
301
301
|
/**
|
|
302
302
|
* Called after a cargo pod has delivered its cargo.
|
|
303
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
303
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_cargo_pod_delivered_cargo Online documentation}
|
|
304
304
|
*/
|
|
305
305
|
interface OnCargoPodDeliveredCargoEvent extends EventData {
|
|
306
306
|
readonly cargo_pod: LuaEntity
|
|
@@ -319,7 +319,7 @@ declare module "factorio:runtime" {
|
|
|
319
319
|
}
|
|
320
320
|
/**
|
|
321
321
|
* Called when a cargo pod departs a surface.
|
|
322
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
322
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_cargo_pod_finished_ascending Online documentation}
|
|
323
323
|
*/
|
|
324
324
|
interface OnCargoPodFinishedAscendingEvent extends EventData {
|
|
325
325
|
readonly cargo_pod: LuaEntity
|
|
@@ -342,7 +342,7 @@ declare module "factorio:runtime" {
|
|
|
342
342
|
}
|
|
343
343
|
/**
|
|
344
344
|
* Called when a cargo pods lands on a surface, either at a station or on the ground.
|
|
345
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
345
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_cargo_pod_finished_descending Online documentation}
|
|
346
346
|
*/
|
|
347
347
|
interface OnCargoPodFinishedDescendingEvent extends EventData {
|
|
348
348
|
readonly cargo_pod: LuaEntity
|
|
@@ -365,7 +365,7 @@ declare module "factorio:runtime" {
|
|
|
365
365
|
}
|
|
366
366
|
/**
|
|
367
367
|
* Called when a cargo pod departs from a space platform hub or by another method not attached to a rocket.
|
|
368
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
368
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_cargo_pod_started_ascending Online documentation}
|
|
369
369
|
*/
|
|
370
370
|
interface OnCargoPodStartedAscendingEvent extends EventData {
|
|
371
371
|
readonly cargo_pod: LuaEntity
|
|
@@ -386,7 +386,7 @@ declare module "factorio:runtime" {
|
|
|
386
386
|
* Called when a character corpse expires due to timeout or all of the items being removed from it.
|
|
387
387
|
*
|
|
388
388
|
* this is not called if the corpse is mined. See {@link defines.events.on_pre_player_mined_item} to detect that.
|
|
389
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
389
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_character_corpse_expired Online documentation}
|
|
390
390
|
*/
|
|
391
391
|
interface OnCharacterCorpseExpiredEvent extends EventData {
|
|
392
392
|
/**
|
|
@@ -404,7 +404,7 @@ declare module "factorio:runtime" {
|
|
|
404
404
|
}
|
|
405
405
|
/**
|
|
406
406
|
* Called when a chart tag is created.
|
|
407
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
407
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_chart_tag_added Online documentation}
|
|
408
408
|
*/
|
|
409
409
|
interface OnChartTagAddedEvent extends EventData {
|
|
410
410
|
readonly tag: LuaCustomChartTag
|
|
@@ -421,7 +421,7 @@ declare module "factorio:runtime" {
|
|
|
421
421
|
}
|
|
422
422
|
/**
|
|
423
423
|
* Called when a chart tag is modified by a player or by script.
|
|
424
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
424
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_chart_tag_modified Online documentation}
|
|
425
425
|
*/
|
|
426
426
|
interface OnChartTagModifiedEvent extends EventData {
|
|
427
427
|
readonly tag: LuaCustomChartTag
|
|
@@ -443,7 +443,7 @@ declare module "factorio:runtime" {
|
|
|
443
443
|
}
|
|
444
444
|
/**
|
|
445
445
|
* Called just before a chart tag is deleted.
|
|
446
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
446
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_chart_tag_removed Online documentation}
|
|
447
447
|
*/
|
|
448
448
|
interface OnChartTagRemovedEvent extends EventData {
|
|
449
449
|
readonly tag: LuaCustomChartTag
|
|
@@ -460,7 +460,7 @@ declare module "factorio:runtime" {
|
|
|
460
460
|
}
|
|
461
461
|
/**
|
|
462
462
|
* Called when a chunk is charted or re-charted.
|
|
463
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
463
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_chunk_charted Online documentation}
|
|
464
464
|
*/
|
|
465
465
|
interface OnChunkChartedEvent extends EventData {
|
|
466
466
|
readonly surface_index: SurfaceIndex
|
|
@@ -481,7 +481,7 @@ declare module "factorio:runtime" {
|
|
|
481
481
|
}
|
|
482
482
|
/**
|
|
483
483
|
* Called when one or more chunks are deleted using {@link LuaSurface#delete_chunk LuaSurface::delete_chunk}.
|
|
484
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
484
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_chunk_deleted Online documentation}
|
|
485
485
|
*/
|
|
486
486
|
interface OnChunkDeletedEvent extends EventData {
|
|
487
487
|
readonly surface_index: SurfaceIndex
|
|
@@ -500,7 +500,7 @@ declare module "factorio:runtime" {
|
|
|
500
500
|
}
|
|
501
501
|
/**
|
|
502
502
|
* Called when a chunk is generated.
|
|
503
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
503
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_chunk_generated Online documentation}
|
|
504
504
|
*/
|
|
505
505
|
interface OnChunkGeneratedEvent extends EventData {
|
|
506
506
|
/**
|
|
@@ -526,7 +526,7 @@ declare module "factorio:runtime" {
|
|
|
526
526
|
}
|
|
527
527
|
/**
|
|
528
528
|
* Called when a combat robot expires through a lack of energy, or timeout.
|
|
529
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
529
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_combat_robot_expired Online documentation}
|
|
530
530
|
*/
|
|
531
531
|
interface OnCombatRobotExpiredEvent extends EventData {
|
|
532
532
|
readonly robot: LuaEntity
|
|
@@ -547,7 +547,7 @@ declare module "factorio:runtime" {
|
|
|
547
547
|
* Called when a message is sent to the in-game console, either by a player or through the server interface.
|
|
548
548
|
*
|
|
549
549
|
* This event only fires for plain messages, not for any commands (including `/shout` or `/whisper`).
|
|
550
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
550
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_console_chat Online documentation}
|
|
551
551
|
*/
|
|
552
552
|
interface OnConsoleChatEvent extends EventData {
|
|
553
553
|
/**
|
|
@@ -569,7 +569,7 @@ declare module "factorio:runtime" {
|
|
|
569
569
|
}
|
|
570
570
|
/**
|
|
571
571
|
* Called when someone enters a command-like message regardless of it being a valid command.
|
|
572
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
572
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_console_command Online documentation}
|
|
573
573
|
*/
|
|
574
574
|
interface OnConsoleCommandEvent extends EventData {
|
|
575
575
|
/**
|
|
@@ -595,7 +595,7 @@ declare module "factorio:runtime" {
|
|
|
595
595
|
}
|
|
596
596
|
/**
|
|
597
597
|
* Called when a cutscene is cancelled by the player or by script.
|
|
598
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
598
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_cutscene_cancelled Online documentation}
|
|
599
599
|
*/
|
|
600
600
|
interface OnCutsceneCancelledEvent extends EventData {
|
|
601
601
|
/**
|
|
@@ -613,7 +613,7 @@ declare module "factorio:runtime" {
|
|
|
613
613
|
}
|
|
614
614
|
/**
|
|
615
615
|
* Called when a cutscene finishes naturally (was not cancelled).
|
|
616
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
616
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_cutscene_finished Online documentation}
|
|
617
617
|
*/
|
|
618
618
|
interface OnCutsceneFinishedEvent extends EventData {
|
|
619
619
|
/**
|
|
@@ -631,7 +631,7 @@ declare module "factorio:runtime" {
|
|
|
631
631
|
}
|
|
632
632
|
/**
|
|
633
633
|
* Called when a cutscene starts.
|
|
634
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
634
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_cutscene_started Online documentation}
|
|
635
635
|
*/
|
|
636
636
|
interface OnCutsceneStartedEvent extends EventData {
|
|
637
637
|
/**
|
|
@@ -651,7 +651,7 @@ declare module "factorio:runtime" {
|
|
|
651
651
|
* Called when a cutscene is playing, each time it reaches a waypoint in that cutscene.
|
|
652
652
|
*
|
|
653
653
|
* This refers to an index in the table previously passed to set_controller which started the cutscene.
|
|
654
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
654
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_cutscene_waypoint_reached Online documentation}
|
|
655
655
|
*/
|
|
656
656
|
interface OnCutsceneWaypointReachedEvent extends EventData {
|
|
657
657
|
/**
|
|
@@ -675,7 +675,7 @@ declare module "factorio:runtime" {
|
|
|
675
675
|
* Called when an entity is cloned. The filter applies to the source entity.
|
|
676
676
|
*
|
|
677
677
|
* Event filter: [LuaEntityClonedEventFilter](LuaEntityClonedEventFilter]
|
|
678
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
678
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_entity_cloned Online documentation}
|
|
679
679
|
*/
|
|
680
680
|
interface OnEntityClonedEvent extends EventData {
|
|
681
681
|
readonly source: LuaEntity
|
|
@@ -693,7 +693,7 @@ declare module "factorio:runtime" {
|
|
|
693
693
|
* Called after an entity has been recolored either by the player or through script.
|
|
694
694
|
*
|
|
695
695
|
* Automatic recoloring due to {@link LuaPlayer#color LuaPlayer::color} will not raise events, as that is a separate mechanism.
|
|
696
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
696
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_entity_color_changed Online documentation}
|
|
697
697
|
*/
|
|
698
698
|
interface OnEntityColorChangedEvent extends EventData {
|
|
699
699
|
/**
|
|
@@ -713,7 +713,7 @@ declare module "factorio:runtime" {
|
|
|
713
713
|
* Called when an entity is damaged. This is not called when an entities health is set directly by another mod.
|
|
714
714
|
*
|
|
715
715
|
* Event filter: [LuaEntityDamagedEventFilter](LuaEntityDamagedEventFilter]
|
|
716
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
716
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_entity_damaged Online documentation}
|
|
717
717
|
*/
|
|
718
718
|
interface OnEntityDamagedEvent extends EventData {
|
|
719
719
|
readonly entity: LuaEntity
|
|
@@ -755,7 +755,7 @@ declare module "factorio:runtime" {
|
|
|
755
755
|
* Called when an entity dies.
|
|
756
756
|
*
|
|
757
757
|
* Event filter: [LuaEntityDiedEventFilter](LuaEntityDiedEventFilter]
|
|
758
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
758
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_entity_died Online documentation}
|
|
759
759
|
*/
|
|
760
760
|
interface OnEntityDiedEvent extends EventData {
|
|
761
761
|
/**
|
|
@@ -789,7 +789,7 @@ declare module "factorio:runtime" {
|
|
|
789
789
|
}
|
|
790
790
|
/**
|
|
791
791
|
* Called when one of an entity's logistic slots changes.
|
|
792
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
792
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_entity_logistic_slot_changed Online documentation}
|
|
793
793
|
*/
|
|
794
794
|
interface OnEntityLogisticSlotChangedEvent extends EventData {
|
|
795
795
|
/**
|
|
@@ -819,7 +819,7 @@ declare module "factorio:runtime" {
|
|
|
819
819
|
}
|
|
820
820
|
/**
|
|
821
821
|
* Called after an entity has been renamed either by the player or through script.
|
|
822
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
822
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_entity_renamed Online documentation}
|
|
823
823
|
*/
|
|
824
824
|
interface OnEntityRenamedEvent extends EventData {
|
|
825
825
|
/**
|
|
@@ -840,7 +840,7 @@ declare module "factorio:runtime" {
|
|
|
840
840
|
}
|
|
841
841
|
/**
|
|
842
842
|
* Called after entity copy-paste is done.
|
|
843
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
843
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_entity_settings_pasted Online documentation}
|
|
844
844
|
*/
|
|
845
845
|
interface OnEntitySettingsPastedEvent extends EventData {
|
|
846
846
|
readonly player_index: PlayerIndex
|
|
@@ -863,7 +863,7 @@ declare module "factorio:runtime" {
|
|
|
863
863
|
}
|
|
864
864
|
/**
|
|
865
865
|
* Called when an entity is spawned by a EnemySpawner
|
|
866
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
866
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_entity_spawned Online documentation}
|
|
867
867
|
*/
|
|
868
868
|
interface OnEntitySpawnedEvent extends EventData {
|
|
869
869
|
readonly spawner: LuaEntity
|
|
@@ -879,7 +879,7 @@ declare module "factorio:runtime" {
|
|
|
879
879
|
}
|
|
880
880
|
/**
|
|
881
881
|
* Called after equipment is inserted into an equipment grid.
|
|
882
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
882
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_equipment_inserted Online documentation}
|
|
883
883
|
*/
|
|
884
884
|
interface OnEquipmentInsertedEvent extends EventData {
|
|
885
885
|
/**
|
|
@@ -901,7 +901,7 @@ declare module "factorio:runtime" {
|
|
|
901
901
|
}
|
|
902
902
|
/**
|
|
903
903
|
* Called after equipment is removed from an equipment grid.
|
|
904
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
904
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_equipment_removed Online documentation}
|
|
905
905
|
*/
|
|
906
906
|
interface OnEquipmentRemovedEvent extends EventData {
|
|
907
907
|
/**
|
|
@@ -931,7 +931,7 @@ declare module "factorio:runtime" {
|
|
|
931
931
|
}
|
|
932
932
|
/**
|
|
933
933
|
* Called when the a forces cease fire values change.
|
|
934
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
934
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_force_cease_fire_changed Online documentation}
|
|
935
935
|
*/
|
|
936
936
|
interface OnForceCeaseFireChangedEvent extends EventData {
|
|
937
937
|
/**
|
|
@@ -959,7 +959,7 @@ declare module "factorio:runtime" {
|
|
|
959
959
|
* Called when a new force is created using `game.create_force()`
|
|
960
960
|
*
|
|
961
961
|
* This is not called when the default forces (`'player'`, `'enemy'`, `'neutral'`) are created as they will always exist.
|
|
962
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
962
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_force_created Online documentation}
|
|
963
963
|
*/
|
|
964
964
|
interface OnForceCreatedEvent extends EventData {
|
|
965
965
|
/**
|
|
@@ -977,7 +977,7 @@ declare module "factorio:runtime" {
|
|
|
977
977
|
}
|
|
978
978
|
/**
|
|
979
979
|
* Called when the a forces friends change.
|
|
980
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
980
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_force_friends_changed Online documentation}
|
|
981
981
|
*/
|
|
982
982
|
interface OnForceFriendsChangedEvent extends EventData {
|
|
983
983
|
/**
|
|
@@ -1003,7 +1003,7 @@ declare module "factorio:runtime" {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
/**
|
|
1005
1005
|
* Called when {@link LuaForce#reset LuaForce::reset} is finished.
|
|
1006
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1006
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_force_reset Online documentation}
|
|
1007
1007
|
*/
|
|
1008
1008
|
interface OnForceResetEvent extends EventData {
|
|
1009
1009
|
readonly force: LuaForce
|
|
@@ -1020,7 +1020,7 @@ declare module "factorio:runtime" {
|
|
|
1020
1020
|
* Called after two forces have been merged using `game.merge_forces()`.
|
|
1021
1021
|
*
|
|
1022
1022
|
* The source force is invalidated before this event is called and the name can be re-used in this event if desired.
|
|
1023
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1023
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_forces_merged Online documentation}
|
|
1024
1024
|
*/
|
|
1025
1025
|
interface OnForcesMergedEvent extends EventData {
|
|
1026
1026
|
/**
|
|
@@ -1046,7 +1046,7 @@ declare module "factorio:runtime" {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
/**
|
|
1048
1048
|
* Called when two forces are about to be merged using `game.merge_forces()`.
|
|
1049
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1049
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_forces_merging Online documentation}
|
|
1050
1050
|
*/
|
|
1051
1051
|
interface OnForcesMergingEvent extends EventData {
|
|
1052
1052
|
/**
|
|
@@ -1070,7 +1070,7 @@ declare module "factorio:runtime" {
|
|
|
1070
1070
|
* 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.
|
|
1071
1071
|
*
|
|
1072
1072
|
* This event is not fired when the scenario is loaded via the map editor.
|
|
1073
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1073
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_game_created_from_scenario Online documentation}
|
|
1074
1074
|
*/
|
|
1075
1075
|
interface OnGameCreatedFromScenarioEvent extends EventData {
|
|
1076
1076
|
/**
|
|
@@ -1084,7 +1084,7 @@ declare module "factorio:runtime" {
|
|
|
1084
1084
|
}
|
|
1085
1085
|
/**
|
|
1086
1086
|
* Called when {@link LuaGuiElement} checked state is changed (related to checkboxes and radio buttons).
|
|
1087
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1087
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_gui_checked_state_changed Online documentation}
|
|
1088
1088
|
*/
|
|
1089
1089
|
interface OnGuiCheckedStateChangedEvent extends EventData {
|
|
1090
1090
|
/**
|
|
@@ -1106,7 +1106,7 @@ declare module "factorio:runtime" {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
/**
|
|
1108
1108
|
* Called when {@link LuaGuiElement} is clicked.
|
|
1109
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1109
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_gui_click Online documentation}
|
|
1110
1110
|
*/
|
|
1111
1111
|
interface OnGuiClickEvent extends EventData {
|
|
1112
1112
|
/**
|
|
@@ -1152,7 +1152,7 @@ declare module "factorio:runtime" {
|
|
|
1152
1152
|
* 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.
|
|
1153
1153
|
*
|
|
1154
1154
|
* 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.
|
|
1155
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1155
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_gui_closed Online documentation}
|
|
1156
1156
|
*/
|
|
1157
1157
|
interface OnGuiClosedEvent extends EventData {
|
|
1158
1158
|
/**
|
|
@@ -1206,7 +1206,7 @@ declare module "factorio:runtime" {
|
|
|
1206
1206
|
}
|
|
1207
1207
|
/**
|
|
1208
1208
|
* Called when a {@link LuaGuiElement} is confirmed, for example by pressing Enter in a textfield.
|
|
1209
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1209
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_gui_confirmed Online documentation}
|
|
1210
1210
|
*/
|
|
1211
1211
|
interface OnGuiConfirmedEvent extends EventData {
|
|
1212
1212
|
/**
|
|
@@ -1240,7 +1240,7 @@ declare module "factorio:runtime" {
|
|
|
1240
1240
|
}
|
|
1241
1241
|
/**
|
|
1242
1242
|
* Called when {@link LuaGuiElement} element value is changed (related to choose element buttons).
|
|
1243
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1243
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_gui_elem_changed Online documentation}
|
|
1244
1244
|
*/
|
|
1245
1245
|
interface OnGuiElemChangedEvent extends EventData {
|
|
1246
1246
|
/**
|
|
@@ -1264,7 +1264,7 @@ declare module "factorio:runtime" {
|
|
|
1264
1264
|
* Called when {@link LuaGuiElement} is hovered by the mouse.
|
|
1265
1265
|
*
|
|
1266
1266
|
* Only fired for events whose {@link LuaGuiElement#raise_hover_events LuaGuiElement::raise_hover_events} is `true`.
|
|
1267
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1267
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_gui_hover Online documentation}
|
|
1268
1268
|
*/
|
|
1269
1269
|
interface OnGuiHoverEvent extends EventData {
|
|
1270
1270
|
/**
|
|
@@ -1286,7 +1286,7 @@ declare module "factorio:runtime" {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
/**
|
|
1288
1288
|
* Called when a player interacts with a custom inventory GUI.
|
|
1289
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1289
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_gui_inventory_action Online documentation}
|
|
1290
1290
|
*/
|
|
1291
1291
|
interface OnGuiInventoryActionEvent extends EventData {
|
|
1292
1292
|
/**
|
|
@@ -1346,7 +1346,7 @@ declare module "factorio:runtime" {
|
|
|
1346
1346
|
* Called when the player's cursor leaves a {@link LuaGuiElement} that was previously hovered.
|
|
1347
1347
|
*
|
|
1348
1348
|
* Only fired for events whose {@link LuaGuiElement#raise_hover_events LuaGuiElement::raise_hover_events} is `true`.
|
|
1349
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1349
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_gui_leave Online documentation}
|
|
1350
1350
|
*/
|
|
1351
1351
|
interface OnGuiLeaveEvent extends EventData {
|
|
1352
1352
|
/**
|
|
@@ -1368,7 +1368,7 @@ declare module "factorio:runtime" {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
/**
|
|
1370
1370
|
* Called when {@link LuaGuiElement} element location is changed (related to frames in `player.gui.screen`).
|
|
1371
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1371
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_gui_location_changed Online documentation}
|
|
1372
1372
|
*/
|
|
1373
1373
|
interface OnGuiLocationChangedEvent extends EventData {
|
|
1374
1374
|
/**
|
|
@@ -1390,7 +1390,7 @@ declare module "factorio:runtime" {
|
|
|
1390
1390
|
}
|
|
1391
1391
|
/**
|
|
1392
1392
|
* Called when the player opens a GUI.
|
|
1393
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1393
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_gui_opened Online documentation}
|
|
1394
1394
|
*/
|
|
1395
1395
|
interface OnGuiOpenedEvent extends EventData {
|
|
1396
1396
|
/**
|
|
@@ -1444,7 +1444,7 @@ declare module "factorio:runtime" {
|
|
|
1444
1444
|
}
|
|
1445
1445
|
/**
|
|
1446
1446
|
* Called when {@link LuaGuiElement} selected tab is changed (related to tabbed-panes).
|
|
1447
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1447
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_gui_selected_tab_changed Online documentation}
|
|
1448
1448
|
*/
|
|
1449
1449
|
interface OnGuiSelectedTabChangedEvent extends EventData {
|
|
1450
1450
|
/**
|
|
@@ -1466,7 +1466,7 @@ declare module "factorio:runtime" {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
/**
|
|
1468
1468
|
* Called when {@link LuaGuiElement} selection state is changed (related to drop-downs and listboxes).
|
|
1469
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1469
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_gui_selection_state_changed Online documentation}
|
|
1470
1470
|
*/
|
|
1471
1471
|
interface OnGuiSelectionStateChangedEvent extends EventData {
|
|
1472
1472
|
/**
|
|
@@ -1488,7 +1488,7 @@ declare module "factorio:runtime" {
|
|
|
1488
1488
|
}
|
|
1489
1489
|
/**
|
|
1490
1490
|
* Called when {@link LuaGuiElement} switch state is changed (related to switches).
|
|
1491
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1491
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_gui_switch_state_changed Online documentation}
|
|
1492
1492
|
*/
|
|
1493
1493
|
interface OnGuiSwitchStateChangedEvent extends EventData {
|
|
1494
1494
|
/**
|
|
@@ -1510,7 +1510,7 @@ declare module "factorio:runtime" {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
/**
|
|
1512
1512
|
* Called when {@link LuaGuiElement} text is changed by the player.
|
|
1513
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1513
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_gui_text_changed Online documentation}
|
|
1514
1514
|
*/
|
|
1515
1515
|
interface OnGuiTextChangedEvent extends EventData {
|
|
1516
1516
|
/**
|
|
@@ -1536,7 +1536,7 @@ declare module "factorio:runtime" {
|
|
|
1536
1536
|
}
|
|
1537
1537
|
/**
|
|
1538
1538
|
* Called when {@link LuaGuiElement} slider value is changed (related to the slider element).
|
|
1539
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1539
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_gui_value_changed Online documentation}
|
|
1540
1540
|
*/
|
|
1541
1541
|
interface OnGuiValueChangedEvent extends EventData {
|
|
1542
1542
|
/**
|
|
@@ -1558,7 +1558,7 @@ declare module "factorio:runtime" {
|
|
|
1558
1558
|
}
|
|
1559
1559
|
/**
|
|
1560
1560
|
* Called when a land mine is armed.
|
|
1561
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1561
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_land_mine_armed Online documentation}
|
|
1562
1562
|
*/
|
|
1563
1563
|
interface OnLandMineArmedEvent extends EventData {
|
|
1564
1564
|
readonly mine: LuaEntity
|
|
@@ -1573,7 +1573,7 @@ declare module "factorio:runtime" {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
/**
|
|
1575
1575
|
* Called when a custom {@link import("factorio:prototype").ShortcutPrototype Lua shortcut} is pressed.
|
|
1576
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1576
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_lua_shortcut Online documentation}
|
|
1577
1577
|
*/
|
|
1578
1578
|
interface OnLuaShortcutEvent extends EventData {
|
|
1579
1579
|
readonly player_index: PlayerIndex
|
|
@@ -1594,7 +1594,7 @@ declare module "factorio:runtime" {
|
|
|
1594
1594
|
* Called when an entity is marked for deconstruction with the Deconstruction planner or via script.
|
|
1595
1595
|
*
|
|
1596
1596
|
* Event filter: [LuaEntityMarkedForDeconstructionEventFilter](LuaEntityMarkedForDeconstructionEventFilter]
|
|
1597
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1597
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_marked_for_deconstruction Online documentation}
|
|
1598
1598
|
*/
|
|
1599
1599
|
interface OnMarkedForDeconstructionEvent extends EventData {
|
|
1600
1600
|
readonly entity: LuaEntity
|
|
@@ -1612,7 +1612,7 @@ declare module "factorio:runtime" {
|
|
|
1612
1612
|
* Called when an entity is marked for upgrade with the upgrade planner or via script.
|
|
1613
1613
|
*
|
|
1614
1614
|
* Event filter: [LuaEntityMarkedForUpgradeEventFilter](LuaEntityMarkedForUpgradeEventFilter]
|
|
1615
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1615
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_marked_for_upgrade Online documentation}
|
|
1616
1616
|
*/
|
|
1617
1617
|
interface OnMarkedForUpgradeEvent extends EventData {
|
|
1618
1618
|
readonly player_index?: PlayerIndex
|
|
@@ -1641,7 +1641,7 @@ declare module "factorio:runtime" {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
/**
|
|
1643
1643
|
* Called after a player purchases some offer from a `market` entity.
|
|
1644
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1644
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_market_item_purchased Online documentation}
|
|
1645
1645
|
*/
|
|
1646
1646
|
interface OnMarketItemPurchasedEvent extends EventData {
|
|
1647
1647
|
/**
|
|
@@ -1671,7 +1671,7 @@ declare module "factorio:runtime" {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
/**
|
|
1673
1673
|
* Called when the player uses the 'Open item GUI' control on an item defined with the 'mod-openable' flag
|
|
1674
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1674
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_mod_item_opened Online documentation}
|
|
1675
1675
|
*/
|
|
1676
1676
|
interface OnModItemOpenedEvent extends EventData {
|
|
1677
1677
|
/**
|
|
@@ -1697,7 +1697,7 @@ declare module "factorio:runtime" {
|
|
|
1697
1697
|
}
|
|
1698
1698
|
/**
|
|
1699
1699
|
* Called when {@link LuaGameScript#is_multiplayer LuaGameScript::is_multiplayer} changes to true. May also be raised when it was already true but a game was loaded from a save file and with hosting.
|
|
1700
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1700
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_multiplayer_init Online documentation}
|
|
1701
1701
|
*/
|
|
1702
1702
|
interface OnMultiplayerInitEvent extends EventData {
|
|
1703
1703
|
/**
|
|
@@ -1713,7 +1713,7 @@ declare module "factorio:runtime" {
|
|
|
1713
1713
|
* Called after an object is destroyed which was registered with {@link LuaBootstrap#register_on_object_destroyed LuaBootstrap::register_on_object_destroyed} previously.
|
|
1714
1714
|
*
|
|
1715
1715
|
* Depending on when a given object is destroyed, this event will be fired at the end of the current tick or at the end of the next tick. The event's timing is independent of the in-world object being destroyed.
|
|
1716
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1716
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_object_destroyed Online documentation}
|
|
1717
1717
|
*/
|
|
1718
1718
|
interface OnObjectDestroyedEvent extends EventData {
|
|
1719
1719
|
/**
|
|
@@ -1739,7 +1739,7 @@ declare module "factorio:runtime" {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
/**
|
|
1741
1741
|
* Called directly after a permission group is added.
|
|
1742
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1742
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_permission_group_added Online documentation}
|
|
1743
1743
|
*/
|
|
1744
1744
|
interface OnPermissionGroupAddedEvent extends EventData {
|
|
1745
1745
|
/**
|
|
@@ -1761,7 +1761,7 @@ declare module "factorio:runtime" {
|
|
|
1761
1761
|
}
|
|
1762
1762
|
/**
|
|
1763
1763
|
* Called directly after a permission group is deleted.
|
|
1764
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1764
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_permission_group_deleted Online documentation}
|
|
1765
1765
|
*/
|
|
1766
1766
|
interface OnPermissionGroupDeletedEvent extends EventData {
|
|
1767
1767
|
/**
|
|
@@ -1787,7 +1787,7 @@ declare module "factorio:runtime" {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
/**
|
|
1789
1789
|
* Called directly after a permission group is edited in some way.
|
|
1790
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1790
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_permission_group_edited Online documentation}
|
|
1791
1791
|
*/
|
|
1792
1792
|
interface OnPermissionGroupEditedEvent extends EventData {
|
|
1793
1793
|
/**
|
|
@@ -1802,13 +1802,7 @@ declare module "factorio:runtime" {
|
|
|
1802
1802
|
* The edit type.
|
|
1803
1803
|
*/
|
|
1804
1804
|
readonly type:
|
|
1805
|
-
| "
|
|
1806
|
-
| "remove-permission"
|
|
1807
|
-
| "enable-all"
|
|
1808
|
-
| "disable-all"
|
|
1809
|
-
| "add-player"
|
|
1810
|
-
| "remove-player"
|
|
1811
|
-
| "rename"
|
|
1805
|
+
"add-permission" | "remove-permission" | "enable-all" | "disable-all" | "add-player" | "remove-player" | "rename"
|
|
1812
1806
|
/**
|
|
1813
1807
|
* The action when the `type` is `"add-permission"` or `"remove-permission"`.
|
|
1814
1808
|
*/
|
|
@@ -1836,7 +1830,7 @@ declare module "factorio:runtime" {
|
|
|
1836
1830
|
}
|
|
1837
1831
|
/**
|
|
1838
1832
|
* Called directly after a permission string is imported.
|
|
1839
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1833
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_permission_string_imported Online documentation}
|
|
1840
1834
|
*/
|
|
1841
1835
|
interface OnPermissionStringImportedEvent extends EventData {
|
|
1842
1836
|
/**
|
|
@@ -1854,7 +1848,7 @@ declare module "factorio:runtime" {
|
|
|
1854
1848
|
}
|
|
1855
1849
|
/**
|
|
1856
1850
|
* Called when a player picks up an item.
|
|
1857
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1851
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_picked_up_item Online documentation}
|
|
1858
1852
|
*/
|
|
1859
1853
|
interface OnPickedUpItemEvent extends EventData {
|
|
1860
1854
|
readonly item_stack: ItemWithQualityCount
|
|
@@ -1870,7 +1864,7 @@ declare module "factorio:runtime" {
|
|
|
1870
1864
|
}
|
|
1871
1865
|
/**
|
|
1872
1866
|
* Called after a player alt-reverse-selects an area with a selection-tool item.
|
|
1873
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1867
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_alt_reverse_selected_area Online documentation}
|
|
1874
1868
|
*/
|
|
1875
1869
|
interface OnPlayerAltReverseSelectedAreaEvent extends EventData {
|
|
1876
1870
|
/**
|
|
@@ -1908,7 +1902,7 @@ declare module "factorio:runtime" {
|
|
|
1908
1902
|
}
|
|
1909
1903
|
/**
|
|
1910
1904
|
* Called after a player alt-selects an area with a selection-tool item.
|
|
1911
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1905
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_alt_selected_area Online documentation}
|
|
1912
1906
|
*/
|
|
1913
1907
|
interface OnPlayerAltSelectedAreaEvent extends EventData {
|
|
1914
1908
|
/**
|
|
@@ -1950,7 +1944,7 @@ declare module "factorio:runtime" {
|
|
|
1950
1944
|
}
|
|
1951
1945
|
/**
|
|
1952
1946
|
* Called after a players ammo inventory changed in some way.
|
|
1953
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1947
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_ammo_inventory_changed Online documentation}
|
|
1954
1948
|
*/
|
|
1955
1949
|
interface OnPlayerAmmoInventoryChangedEvent extends EventData {
|
|
1956
1950
|
readonly player_index: PlayerIndex
|
|
@@ -1965,7 +1959,7 @@ declare module "factorio:runtime" {
|
|
|
1965
1959
|
}
|
|
1966
1960
|
/**
|
|
1967
1961
|
* Called after a players armor inventory changed in some way.
|
|
1968
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1962
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_armor_inventory_changed Online documentation}
|
|
1969
1963
|
*/
|
|
1970
1964
|
interface OnPlayerArmorInventoryChangedEvent extends EventData {
|
|
1971
1965
|
readonly player_index: PlayerIndex
|
|
@@ -1980,7 +1974,7 @@ declare module "factorio:runtime" {
|
|
|
1980
1974
|
}
|
|
1981
1975
|
/**
|
|
1982
1976
|
* Called when a player is banned.
|
|
1983
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
1977
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_banned Online documentation}
|
|
1984
1978
|
*/
|
|
1985
1979
|
interface OnPlayerBannedEvent extends EventData {
|
|
1986
1980
|
/**
|
|
@@ -2010,7 +2004,7 @@ declare module "factorio:runtime" {
|
|
|
2010
2004
|
}
|
|
2011
2005
|
/**
|
|
2012
2006
|
* Called after a player builds tiles.
|
|
2013
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2007
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_built_tile Online documentation}
|
|
2014
2008
|
*/
|
|
2015
2009
|
interface OnPlayerBuiltTileEvent extends EventData {
|
|
2016
2010
|
readonly player_index: PlayerIndex
|
|
@@ -2049,7 +2043,7 @@ declare module "factorio:runtime" {
|
|
|
2049
2043
|
}
|
|
2050
2044
|
/**
|
|
2051
2045
|
* Called when a player cancels crafting.
|
|
2052
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2046
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_cancelled_crafting Online documentation}
|
|
2053
2047
|
*/
|
|
2054
2048
|
interface OnPlayerCancelledCraftingEvent extends EventData {
|
|
2055
2049
|
/**
|
|
@@ -2079,7 +2073,7 @@ declare module "factorio:runtime" {
|
|
|
2079
2073
|
}
|
|
2080
2074
|
/**
|
|
2081
2075
|
* Called after a player changes forces.
|
|
2082
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2076
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_changed_force Online documentation}
|
|
2083
2077
|
*/
|
|
2084
2078
|
interface OnPlayerChangedForceEvent extends EventData {
|
|
2085
2079
|
/**
|
|
@@ -2101,7 +2095,7 @@ declare module "factorio:runtime" {
|
|
|
2101
2095
|
}
|
|
2102
2096
|
/**
|
|
2103
2097
|
* Called when the tile position a player is located at changes.
|
|
2104
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2098
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_changed_position Online documentation}
|
|
2105
2099
|
*/
|
|
2106
2100
|
interface OnPlayerChangedPositionEvent extends EventData {
|
|
2107
2101
|
/**
|
|
@@ -2119,7 +2113,7 @@ declare module "factorio:runtime" {
|
|
|
2119
2113
|
}
|
|
2120
2114
|
/**
|
|
2121
2115
|
* Called after a player changes surfaces.
|
|
2122
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2116
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_changed_surface Online documentation}
|
|
2123
2117
|
*/
|
|
2124
2118
|
interface OnPlayerChangedSurfaceEvent extends EventData {
|
|
2125
2119
|
/**
|
|
@@ -2141,7 +2135,7 @@ declare module "factorio:runtime" {
|
|
|
2141
2135
|
}
|
|
2142
2136
|
/**
|
|
2143
2137
|
* Called when cheat mode is disabled on a player.
|
|
2144
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2138
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_cheat_mode_disabled Online documentation}
|
|
2145
2139
|
*/
|
|
2146
2140
|
interface OnPlayerCheatModeDisabledEvent extends EventData {
|
|
2147
2141
|
/**
|
|
@@ -2159,7 +2153,7 @@ declare module "factorio:runtime" {
|
|
|
2159
2153
|
}
|
|
2160
2154
|
/**
|
|
2161
2155
|
* Called when cheat mode is enabled on a player.
|
|
2162
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2156
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_cheat_mode_enabled Online documentation}
|
|
2163
2157
|
*/
|
|
2164
2158
|
interface OnPlayerCheatModeEnabledEvent extends EventData {
|
|
2165
2159
|
/**
|
|
@@ -2177,7 +2171,7 @@ declare module "factorio:runtime" {
|
|
|
2177
2171
|
}
|
|
2178
2172
|
/**
|
|
2179
2173
|
* Called when a player clicks a gps tag
|
|
2180
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2174
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_clicked_gps_tag Online documentation}
|
|
2181
2175
|
*/
|
|
2182
2176
|
interface OnPlayerClickedGpsTagEvent extends EventData {
|
|
2183
2177
|
/**
|
|
@@ -2203,7 +2197,7 @@ declare module "factorio:runtime" {
|
|
|
2203
2197
|
}
|
|
2204
2198
|
/**
|
|
2205
2199
|
* Called after a player's color changes.
|
|
2206
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2200
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_color_changed Online documentation}
|
|
2207
2201
|
*/
|
|
2208
2202
|
interface OnPlayerColorChangedEvent extends EventData {
|
|
2209
2203
|
/**
|
|
@@ -2233,7 +2227,7 @@ declare module "factorio:runtime" {
|
|
|
2233
2227
|
}
|
|
2234
2228
|
/**
|
|
2235
2229
|
* Called when a player clicks the "confirm" button in the configure Blueprint GUI.
|
|
2236
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2230
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_configured_blueprint Online documentation}
|
|
2237
2231
|
*/
|
|
2238
2232
|
interface OnPlayerConfiguredBlueprintEvent extends EventData {
|
|
2239
2233
|
/**
|
|
@@ -2251,7 +2245,7 @@ declare module "factorio:runtime" {
|
|
|
2251
2245
|
}
|
|
2252
2246
|
/**
|
|
2253
2247
|
* Called after a player changes controller types.
|
|
2254
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2248
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_controller_changed Online documentation}
|
|
2255
2249
|
*/
|
|
2256
2250
|
interface OnPlayerControllerChangedEvent extends EventData {
|
|
2257
2251
|
/**
|
|
@@ -2273,7 +2267,7 @@ declare module "factorio:runtime" {
|
|
|
2273
2267
|
}
|
|
2274
2268
|
/**
|
|
2275
2269
|
* 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}).
|
|
2276
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2270
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_crafted_item Online documentation}
|
|
2277
2271
|
*/
|
|
2278
2272
|
interface OnPlayerCraftedItemEvent extends EventData {
|
|
2279
2273
|
/**
|
|
@@ -2299,7 +2293,7 @@ declare module "factorio:runtime" {
|
|
|
2299
2293
|
}
|
|
2300
2294
|
/**
|
|
2301
2295
|
* Called after the player was created.
|
|
2302
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2296
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_created Online documentation}
|
|
2303
2297
|
*/
|
|
2304
2298
|
interface OnPlayerCreatedEvent extends EventData {
|
|
2305
2299
|
readonly player_index: PlayerIndex
|
|
@@ -2316,7 +2310,7 @@ declare module "factorio:runtime" {
|
|
|
2316
2310
|
* Called after a player's {@link LuaControl#cursor_stack cursor stack} changed in some way.
|
|
2317
2311
|
*
|
|
2318
2312
|
* This is fired in the same tick that the change happens, but not instantly.
|
|
2319
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2313
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_cursor_stack_changed Online documentation}
|
|
2320
2314
|
*/
|
|
2321
2315
|
interface OnPlayerCursorStackChangedEvent extends EventData {
|
|
2322
2316
|
readonly player_index: PlayerIndex
|
|
@@ -2331,7 +2325,7 @@ declare module "factorio:runtime" {
|
|
|
2331
2325
|
}
|
|
2332
2326
|
/**
|
|
2333
2327
|
* Called when a player selects an area with a deconstruction planner.
|
|
2334
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2328
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_deconstructed_area Online documentation}
|
|
2335
2329
|
*/
|
|
2336
2330
|
interface OnPlayerDeconstructedAreaEvent extends EventData {
|
|
2337
2331
|
/**
|
|
@@ -2377,7 +2371,7 @@ declare module "factorio:runtime" {
|
|
|
2377
2371
|
}
|
|
2378
2372
|
/**
|
|
2379
2373
|
* Called when a player is demoted.
|
|
2380
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2374
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_demoted Online documentation}
|
|
2381
2375
|
*/
|
|
2382
2376
|
interface OnPlayerDemotedEvent extends EventData {
|
|
2383
2377
|
/**
|
|
@@ -2395,7 +2389,7 @@ declare module "factorio:runtime" {
|
|
|
2395
2389
|
}
|
|
2396
2390
|
/**
|
|
2397
2391
|
* Called after a player dies.
|
|
2398
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2392
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_died Online documentation}
|
|
2399
2393
|
*/
|
|
2400
2394
|
interface OnPlayerDiedEvent extends EventData {
|
|
2401
2395
|
readonly player_index: PlayerIndex
|
|
@@ -2411,7 +2405,7 @@ declare module "factorio:runtime" {
|
|
|
2411
2405
|
}
|
|
2412
2406
|
/**
|
|
2413
2407
|
* 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.
|
|
2414
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2408
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_display_density_scale_changed Online documentation}
|
|
2415
2409
|
*/
|
|
2416
2410
|
interface OnPlayerDisplayDensityScaleChangedEvent extends EventData {
|
|
2417
2411
|
/**
|
|
@@ -2433,7 +2427,7 @@ declare module "factorio:runtime" {
|
|
|
2433
2427
|
}
|
|
2434
2428
|
/**
|
|
2435
2429
|
* Called when the display resolution changes for a given player.
|
|
2436
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2430
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_display_resolution_changed Online documentation}
|
|
2437
2431
|
*/
|
|
2438
2432
|
interface OnPlayerDisplayResolutionChangedEvent extends EventData {
|
|
2439
2433
|
/**
|
|
@@ -2455,7 +2449,7 @@ declare module "factorio:runtime" {
|
|
|
2455
2449
|
}
|
|
2456
2450
|
/**
|
|
2457
2451
|
* Called when the display scale changes for a given player.
|
|
2458
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2452
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_display_scale_changed Online documentation}
|
|
2459
2453
|
*/
|
|
2460
2454
|
interface OnPlayerDisplayScaleChangedEvent extends EventData {
|
|
2461
2455
|
/**
|
|
@@ -2479,7 +2473,7 @@ declare module "factorio:runtime" {
|
|
|
2479
2473
|
* Called when the player's driving state has changed, meaning a player has either entered or left a vehicle.
|
|
2480
2474
|
*
|
|
2481
2475
|
* This event is not raised when the player is ejected from a vehicle due to it being destroyed.
|
|
2482
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2476
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_driving_changed_state Online documentation}
|
|
2483
2477
|
*/
|
|
2484
2478
|
interface OnPlayerDrivingChangedStateEvent extends EventData {
|
|
2485
2479
|
readonly player_index: PlayerIndex
|
|
@@ -2498,7 +2492,7 @@ declare module "factorio:runtime" {
|
|
|
2498
2492
|
}
|
|
2499
2493
|
/**
|
|
2500
2494
|
* Called when a player drops an item on the ground.
|
|
2501
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2495
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_dropped_item Online documentation}
|
|
2502
2496
|
*/
|
|
2503
2497
|
interface OnPlayerDroppedItemEvent extends EventData {
|
|
2504
2498
|
readonly player_index: PlayerIndex
|
|
@@ -2517,7 +2511,7 @@ declare module "factorio:runtime" {
|
|
|
2517
2511
|
}
|
|
2518
2512
|
/**
|
|
2519
2513
|
* Called when a player drops a single item into an entity.
|
|
2520
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2514
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_dropped_item_into_entity Online documentation}
|
|
2521
2515
|
*/
|
|
2522
2516
|
interface OnPlayerDroppedItemIntoEntityEvent extends EventData {
|
|
2523
2517
|
readonly player_index: PlayerIndex
|
|
@@ -2536,7 +2530,7 @@ declare module "factorio:runtime" {
|
|
|
2536
2530
|
}
|
|
2537
2531
|
/**
|
|
2538
2532
|
* Called when a player fast-transfers something to or from an entity.
|
|
2539
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2533
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_fast_transferred Online documentation}
|
|
2540
2534
|
*/
|
|
2541
2535
|
interface OnPlayerFastTransferredEvent extends EventData {
|
|
2542
2536
|
/**
|
|
@@ -2568,7 +2562,7 @@ declare module "factorio:runtime" {
|
|
|
2568
2562
|
* Called when the player flips an entity. This event is only fired when the entity actually changes its orientation or mirroring, so it won't be triggered when pressing the flip keys on an entity that can't be flipped.
|
|
2569
2563
|
*
|
|
2570
2564
|
* This event reflects a change in the {@link LuaEntity#mirroring LuaEntity::mirroring} property.
|
|
2571
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2565
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_flipped_entity Online documentation}
|
|
2572
2566
|
*/
|
|
2573
2567
|
interface OnPlayerFlippedEntityEvent extends EventData {
|
|
2574
2568
|
/**
|
|
@@ -2591,7 +2585,7 @@ declare module "factorio:runtime" {
|
|
|
2591
2585
|
}
|
|
2592
2586
|
/**
|
|
2593
2587
|
* Called after player flushed fluid
|
|
2594
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2588
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_flushed_fluid Online documentation}
|
|
2595
2589
|
*/
|
|
2596
2590
|
interface OnPlayerFlushedFluidEvent extends EventData {
|
|
2597
2591
|
/**
|
|
@@ -2625,7 +2619,7 @@ declare module "factorio:runtime" {
|
|
|
2625
2619
|
}
|
|
2626
2620
|
/**
|
|
2627
2621
|
* Called after a players gun inventory changed in some way.
|
|
2628
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2622
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_gun_inventory_changed Online documentation}
|
|
2629
2623
|
*/
|
|
2630
2624
|
interface OnPlayerGunInventoryChangedEvent extends EventData {
|
|
2631
2625
|
readonly player_index: PlayerIndex
|
|
@@ -2640,7 +2634,7 @@ declare module "factorio:runtime" {
|
|
|
2640
2634
|
}
|
|
2641
2635
|
/**
|
|
2642
2636
|
* Called when a player's input method changes. See {@link LuaPlayer#input_method LuaPlayer::input_method}.
|
|
2643
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2637
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_input_method_changed Online documentation}
|
|
2644
2638
|
*/
|
|
2645
2639
|
interface OnPlayerInputMethodChangedEvent extends EventData {
|
|
2646
2640
|
/**
|
|
@@ -2658,7 +2652,7 @@ declare module "factorio:runtime" {
|
|
|
2658
2652
|
}
|
|
2659
2653
|
/**
|
|
2660
2654
|
* 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.
|
|
2661
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2655
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_joined_game Online documentation}
|
|
2662
2656
|
*/
|
|
2663
2657
|
interface OnPlayerJoinedGameEvent extends EventData {
|
|
2664
2658
|
readonly player_index: PlayerIndex
|
|
@@ -2673,7 +2667,7 @@ declare module "factorio:runtime" {
|
|
|
2673
2667
|
}
|
|
2674
2668
|
/**
|
|
2675
2669
|
* Called when a player is kicked.
|
|
2676
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2670
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_kicked Online documentation}
|
|
2677
2671
|
*/
|
|
2678
2672
|
interface OnPlayerKickedEvent extends EventData {
|
|
2679
2673
|
/**
|
|
@@ -2699,7 +2693,7 @@ declare module "factorio:runtime" {
|
|
|
2699
2693
|
}
|
|
2700
2694
|
/**
|
|
2701
2695
|
* 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.
|
|
2702
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2696
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_left_game Online documentation}
|
|
2703
2697
|
*/
|
|
2704
2698
|
interface OnPlayerLeftGameEvent extends EventData {
|
|
2705
2699
|
readonly player_index: PlayerIndex
|
|
@@ -2715,7 +2709,7 @@ declare module "factorio:runtime" {
|
|
|
2715
2709
|
}
|
|
2716
2710
|
/**
|
|
2717
2711
|
* Called when a player's active locale changes. See {@link LuaPlayer#locale LuaPlayer::locale}.
|
|
2718
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2712
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_locale_changed Online documentation}
|
|
2719
2713
|
*/
|
|
2720
2714
|
interface OnPlayerLocaleChangedEvent extends EventData {
|
|
2721
2715
|
/**
|
|
@@ -2737,7 +2731,7 @@ declare module "factorio:runtime" {
|
|
|
2737
2731
|
}
|
|
2738
2732
|
/**
|
|
2739
2733
|
* Called after a players main inventory changed in some way.
|
|
2740
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2734
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_main_inventory_changed Online documentation}
|
|
2741
2735
|
*/
|
|
2742
2736
|
interface OnPlayerMainInventoryChangedEvent extends EventData {
|
|
2743
2737
|
readonly player_index: PlayerIndex
|
|
@@ -2758,7 +2752,7 @@ declare module "factorio:runtime" {
|
|
|
2758
2752
|
* 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.
|
|
2759
2753
|
*
|
|
2760
2754
|
* Event filter: [LuaPlayerMinedEntityEventFilter](LuaPlayerMinedEntityEventFilter]
|
|
2761
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2755
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_mined_entity Online documentation}
|
|
2762
2756
|
*/
|
|
2763
2757
|
interface OnPlayerMinedEntityEvent extends EventData {
|
|
2764
2758
|
/**
|
|
@@ -2784,7 +2778,7 @@ declare module "factorio:runtime" {
|
|
|
2784
2778
|
}
|
|
2785
2779
|
/**
|
|
2786
2780
|
* Called when the player mines something.
|
|
2787
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2781
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_mined_item Online documentation}
|
|
2788
2782
|
*/
|
|
2789
2783
|
interface OnPlayerMinedItemEvent extends EventData {
|
|
2790
2784
|
/**
|
|
@@ -2803,7 +2797,7 @@ declare module "factorio:runtime" {
|
|
|
2803
2797
|
}
|
|
2804
2798
|
/**
|
|
2805
2799
|
* Called after a player mines tiles.
|
|
2806
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2800
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_mined_tile Online documentation}
|
|
2807
2801
|
*/
|
|
2808
2802
|
interface OnPlayerMinedTileEvent extends EventData {
|
|
2809
2803
|
readonly player_index: PlayerIndex
|
|
@@ -2826,7 +2820,7 @@ declare module "factorio:runtime" {
|
|
|
2826
2820
|
}
|
|
2827
2821
|
/**
|
|
2828
2822
|
* Called when a player's current music track (ambient sound) changes. This includes when the music track finishes playing.
|
|
2829
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2823
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_music_changed Online documentation}
|
|
2830
2824
|
*/
|
|
2831
2825
|
interface OnPlayerMusicChangedEvent extends EventData {
|
|
2832
2826
|
/**
|
|
@@ -2844,7 +2838,7 @@ declare module "factorio:runtime" {
|
|
|
2844
2838
|
}
|
|
2845
2839
|
/**
|
|
2846
2840
|
* Called when a player is muted.
|
|
2847
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2841
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_muted Online documentation}
|
|
2848
2842
|
*/
|
|
2849
2843
|
interface OnPlayerMutedEvent extends EventData {
|
|
2850
2844
|
/**
|
|
@@ -2862,7 +2856,7 @@ declare module "factorio:runtime" {
|
|
|
2862
2856
|
}
|
|
2863
2857
|
/**
|
|
2864
2858
|
* Called when a player invokes the "smart pipette" over an entity.
|
|
2865
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2859
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_pipette Online documentation}
|
|
2866
2860
|
*/
|
|
2867
2861
|
interface OnPlayerPipetteEvent extends EventData {
|
|
2868
2862
|
/**
|
|
@@ -2892,7 +2886,7 @@ declare module "factorio:runtime" {
|
|
|
2892
2886
|
}
|
|
2893
2887
|
/**
|
|
2894
2888
|
* Called after the player puts equipment in an equipment grid
|
|
2895
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2889
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_placed_equipment Online documentation}
|
|
2896
2890
|
*/
|
|
2897
2891
|
interface OnPlayerPlacedEquipmentEvent extends EventData {
|
|
2898
2892
|
readonly player_index: PlayerIndex
|
|
@@ -2915,7 +2909,7 @@ declare module "factorio:runtime" {
|
|
|
2915
2909
|
}
|
|
2916
2910
|
/**
|
|
2917
2911
|
* Called when a player is promoted.
|
|
2918
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2912
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_promoted Online documentation}
|
|
2919
2913
|
*/
|
|
2920
2914
|
interface OnPlayerPromotedEvent extends EventData {
|
|
2921
2915
|
/**
|
|
@@ -2933,7 +2927,7 @@ declare module "factorio:runtime" {
|
|
|
2933
2927
|
}
|
|
2934
2928
|
/**
|
|
2935
2929
|
* 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.
|
|
2936
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2930
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_removed Online documentation}
|
|
2937
2931
|
*/
|
|
2938
2932
|
interface OnPlayerRemovedEvent extends EventData {
|
|
2939
2933
|
/**
|
|
@@ -2951,7 +2945,7 @@ declare module "factorio:runtime" {
|
|
|
2951
2945
|
}
|
|
2952
2946
|
/**
|
|
2953
2947
|
* Called after the player removes equipment from an equipment grid
|
|
2954
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2948
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_removed_equipment Online documentation}
|
|
2955
2949
|
*/
|
|
2956
2950
|
interface OnPlayerRemovedEquipmentEvent extends EventData {
|
|
2957
2951
|
readonly player_index: PlayerIndex
|
|
@@ -2984,7 +2978,7 @@ declare module "factorio:runtime" {
|
|
|
2984
2978
|
* Called when a player repairs an entity.
|
|
2985
2979
|
*
|
|
2986
2980
|
* Event filter: [LuaPlayerRepairedEntityEventFilter](LuaPlayerRepairedEntityEventFilter]
|
|
2987
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2981
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_repaired_entity Online documentation}
|
|
2988
2982
|
*/
|
|
2989
2983
|
interface OnPlayerRepairedEntityEvent extends EventData {
|
|
2990
2984
|
readonly player_index: PlayerIndex
|
|
@@ -3000,7 +2994,7 @@ declare module "factorio:runtime" {
|
|
|
3000
2994
|
}
|
|
3001
2995
|
/**
|
|
3002
2996
|
* Called after a player respawns.
|
|
3003
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
2997
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_respawned Online documentation}
|
|
3004
2998
|
*/
|
|
3005
2999
|
interface OnPlayerRespawnedEvent extends EventData {
|
|
3006
3000
|
readonly player_index: PlayerIndex
|
|
@@ -3019,7 +3013,7 @@ declare module "factorio:runtime" {
|
|
|
3019
3013
|
}
|
|
3020
3014
|
/**
|
|
3021
3015
|
* Called after a player reverse-selects an area with a selection-tool item.
|
|
3022
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3016
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_reverse_selected_area Online documentation}
|
|
3023
3017
|
*/
|
|
3024
3018
|
interface OnPlayerReverseSelectedAreaEvent extends EventData {
|
|
3025
3019
|
/**
|
|
@@ -3059,7 +3053,7 @@ declare module "factorio:runtime" {
|
|
|
3059
3053
|
* 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.
|
|
3060
3054
|
*
|
|
3061
3055
|
* Entities being flipped will not fire this event, even if the flip involves rotating. See {@link OnPlayerFlippedEntityEvent on_player_flipped_entity}.
|
|
3062
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3056
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_rotated_entity Online documentation}
|
|
3063
3057
|
*/
|
|
3064
3058
|
interface OnPlayerRotatedEntityEvent extends EventData {
|
|
3065
3059
|
/**
|
|
@@ -3083,7 +3077,7 @@ declare module "factorio:runtime" {
|
|
|
3083
3077
|
}
|
|
3084
3078
|
/**
|
|
3085
3079
|
* Called after a player selects an area with a selection-tool item.
|
|
3086
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3080
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_selected_area Online documentation}
|
|
3087
3081
|
*/
|
|
3088
3082
|
interface OnPlayerSelectedAreaEvent extends EventData {
|
|
3089
3083
|
/**
|
|
@@ -3125,7 +3119,7 @@ declare module "factorio:runtime" {
|
|
|
3125
3119
|
}
|
|
3126
3120
|
/**
|
|
3127
3121
|
* Called when a player sets a quickbar slot to anything (new value, or set to empty).
|
|
3128
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3122
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_set_quick_bar_slot Online documentation}
|
|
3129
3123
|
*/
|
|
3130
3124
|
interface OnPlayerSetQuickBarSlotEvent extends EventData {
|
|
3131
3125
|
readonly player_index: PlayerIndex
|
|
@@ -3140,7 +3134,7 @@ declare module "factorio:runtime" {
|
|
|
3140
3134
|
}
|
|
3141
3135
|
/**
|
|
3142
3136
|
* Called when a player selects an area with a blueprint.
|
|
3143
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3137
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_setup_blueprint Online documentation}
|
|
3144
3138
|
*/
|
|
3145
3139
|
interface OnPlayerSetupBlueprintEvent extends EventData {
|
|
3146
3140
|
/**
|
|
@@ -3190,7 +3184,7 @@ declare module "factorio:runtime" {
|
|
|
3190
3184
|
}
|
|
3191
3185
|
/**
|
|
3192
3186
|
* Called when a player toggles alt mode, also known as "show entity info".
|
|
3193
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3187
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_toggled_alt_mode Online documentation}
|
|
3194
3188
|
*/
|
|
3195
3189
|
interface OnPlayerToggledAltModeEvent extends EventData {
|
|
3196
3190
|
readonly player_index: PlayerIndex
|
|
@@ -3209,7 +3203,7 @@ declare module "factorio:runtime" {
|
|
|
3209
3203
|
}
|
|
3210
3204
|
/**
|
|
3211
3205
|
* Called when a player toggles the map editor on or off.
|
|
3212
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3206
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_toggled_map_editor Online documentation}
|
|
3213
3207
|
*/
|
|
3214
3208
|
interface OnPlayerToggledMapEditorEvent extends EventData {
|
|
3215
3209
|
readonly player_index: PlayerIndex
|
|
@@ -3224,7 +3218,7 @@ declare module "factorio:runtime" {
|
|
|
3224
3218
|
}
|
|
3225
3219
|
/**
|
|
3226
3220
|
* Called after a players trash inventory changed in some way.
|
|
3227
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3221
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_trash_inventory_changed Online documentation}
|
|
3228
3222
|
*/
|
|
3229
3223
|
interface OnPlayerTrashInventoryChangedEvent extends EventData {
|
|
3230
3224
|
readonly player_index: PlayerIndex
|
|
@@ -3239,7 +3233,7 @@ declare module "factorio:runtime" {
|
|
|
3239
3233
|
}
|
|
3240
3234
|
/**
|
|
3241
3235
|
* Called when a player is un-banned.
|
|
3242
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3236
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_unbanned Online documentation}
|
|
3243
3237
|
*/
|
|
3244
3238
|
interface OnPlayerUnbannedEvent extends EventData {
|
|
3245
3239
|
/**
|
|
@@ -3269,7 +3263,7 @@ declare module "factorio:runtime" {
|
|
|
3269
3263
|
}
|
|
3270
3264
|
/**
|
|
3271
3265
|
* Called when a player is unmuted.
|
|
3272
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3266
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_unmuted Online documentation}
|
|
3273
3267
|
*/
|
|
3274
3268
|
interface OnPlayerUnmutedEvent extends EventData {
|
|
3275
3269
|
/**
|
|
@@ -3287,7 +3281,7 @@ declare module "factorio:runtime" {
|
|
|
3287
3281
|
}
|
|
3288
3282
|
/**
|
|
3289
3283
|
* Called when a player uses a capsule that results in some game action.
|
|
3290
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3284
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_used_capsule Online documentation}
|
|
3291
3285
|
*/
|
|
3292
3286
|
interface OnPlayerUsedCapsuleEvent extends EventData {
|
|
3293
3287
|
/**
|
|
@@ -3317,7 +3311,7 @@ declare module "factorio:runtime" {
|
|
|
3317
3311
|
}
|
|
3318
3312
|
/**
|
|
3319
3313
|
* Called when a player uses spidertron remote to send all selected units to a given position
|
|
3320
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3314
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_player_used_spidertron_remote Online documentation}
|
|
3321
3315
|
*/
|
|
3322
3316
|
interface OnPlayerUsedSpidertronRemoteEvent extends EventData {
|
|
3323
3317
|
/**
|
|
@@ -3341,7 +3335,7 @@ declare module "factorio:runtime" {
|
|
|
3341
3335
|
* Called after an entity dies.
|
|
3342
3336
|
*
|
|
3343
3337
|
* Event filter: [LuaPostEntityDiedEventFilter](LuaPostEntityDiedEventFilter]
|
|
3344
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3338
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_post_entity_died Online documentation}
|
|
3345
3339
|
*/
|
|
3346
3340
|
interface OnPostEntityDiedEvent extends EventData {
|
|
3347
3341
|
/**
|
|
@@ -3393,7 +3387,7 @@ declare module "factorio:runtime" {
|
|
|
3393
3387
|
* Called after a segmented unit dies.
|
|
3394
3388
|
*
|
|
3395
3389
|
* Event filter: [LuaPostSegmentedUnitDiedEventFilter](LuaPostSegmentedUnitDiedEventFilter]
|
|
3396
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3390
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_post_segmented_unit_died Online documentation}
|
|
3397
3391
|
*/
|
|
3398
3392
|
interface OnPostSegmentedUnitDiedEvent extends EventData {
|
|
3399
3393
|
/**
|
|
@@ -3435,7 +3429,7 @@ declare module "factorio:runtime" {
|
|
|
3435
3429
|
}
|
|
3436
3430
|
/**
|
|
3437
3431
|
* Called when players uses an item to build something. Called before {@link OnBuiltEntityEvent on_built_entity}.
|
|
3438
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3432
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_build Online documentation}
|
|
3439
3433
|
*/
|
|
3440
3434
|
interface OnPreBuildEvent extends EventData {
|
|
3441
3435
|
/**
|
|
@@ -3481,7 +3475,7 @@ declare module "factorio:runtime" {
|
|
|
3481
3475
|
}
|
|
3482
3476
|
/**
|
|
3483
3477
|
* Called before one or more chunks are deleted using {@link LuaSurface#delete_chunk LuaSurface::delete_chunk}.
|
|
3484
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3478
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_chunk_deleted Online documentation}
|
|
3485
3479
|
*/
|
|
3486
3480
|
interface OnPreChunkDeletedEvent extends EventData {
|
|
3487
3481
|
readonly surface_index: SurfaceIndex
|
|
@@ -3500,7 +3494,7 @@ declare module "factorio:runtime" {
|
|
|
3500
3494
|
}
|
|
3501
3495
|
/**
|
|
3502
3496
|
* Called before entity copy-paste is done.
|
|
3503
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3497
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_entity_settings_pasted Online documentation}
|
|
3504
3498
|
*/
|
|
3505
3499
|
interface OnPreEntitySettingsPastedEvent extends EventData {
|
|
3506
3500
|
readonly player_index: PlayerIndex
|
|
@@ -3527,7 +3521,7 @@ declare module "factorio:runtime" {
|
|
|
3527
3521
|
* Also called for item request proxies before they are destroyed as a result of being marked for deconstruction.
|
|
3528
3522
|
*
|
|
3529
3523
|
* Event filter: [LuaPreGhostDeconstructedEventFilter](LuaPreGhostDeconstructedEventFilter]
|
|
3530
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3524
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_ghost_deconstructed Online documentation}
|
|
3531
3525
|
*/
|
|
3532
3526
|
interface OnPreGhostDeconstructedEvent extends EventData {
|
|
3533
3527
|
/**
|
|
@@ -3548,7 +3542,7 @@ declare module "factorio:runtime" {
|
|
|
3548
3542
|
* Called before a ghost entity is upgraded.
|
|
3549
3543
|
*
|
|
3550
3544
|
* Event filter: [LuaPreGhostUpgradedEventFilter](LuaPreGhostUpgradedEventFilter]
|
|
3551
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3545
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_ghost_upgraded Online documentation}
|
|
3552
3546
|
*/
|
|
3553
3547
|
interface OnPreGhostUpgradedEvent extends EventData {
|
|
3554
3548
|
/**
|
|
@@ -3569,7 +3563,7 @@ declare module "factorio:runtime" {
|
|
|
3569
3563
|
}
|
|
3570
3564
|
/**
|
|
3571
3565
|
* Called directly before a permission group is deleted.
|
|
3572
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3566
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_permission_group_deleted Online documentation}
|
|
3573
3567
|
*/
|
|
3574
3568
|
interface OnPrePermissionGroupDeletedEvent extends EventData {
|
|
3575
3569
|
/**
|
|
@@ -3591,7 +3585,7 @@ declare module "factorio:runtime" {
|
|
|
3591
3585
|
}
|
|
3592
3586
|
/**
|
|
3593
3587
|
* Called directly before a permission string is imported.
|
|
3594
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3588
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_permission_string_imported Online documentation}
|
|
3595
3589
|
*/
|
|
3596
3590
|
interface OnPrePermissionStringImportedEvent extends EventData {
|
|
3597
3591
|
/**
|
|
@@ -3609,7 +3603,7 @@ declare module "factorio:runtime" {
|
|
|
3609
3603
|
}
|
|
3610
3604
|
/**
|
|
3611
3605
|
* Called when a player queues something to be crafted.
|
|
3612
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3606
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_player_crafted_item Online documentation}
|
|
3613
3607
|
*/
|
|
3614
3608
|
interface OnPrePlayerCraftedItemEvent extends EventData {
|
|
3615
3609
|
/**
|
|
@@ -3639,7 +3633,7 @@ declare module "factorio:runtime" {
|
|
|
3639
3633
|
}
|
|
3640
3634
|
/**
|
|
3641
3635
|
* Called before a players dies.
|
|
3642
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3636
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_player_died Online documentation}
|
|
3643
3637
|
*/
|
|
3644
3638
|
interface OnPrePlayerDiedEvent extends EventData {
|
|
3645
3639
|
readonly player_index: PlayerIndex
|
|
@@ -3655,7 +3649,7 @@ declare module "factorio:runtime" {
|
|
|
3655
3649
|
}
|
|
3656
3650
|
/**
|
|
3657
3651
|
* Called before a player leaves the game.
|
|
3658
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3652
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_player_left_game Online documentation}
|
|
3659
3653
|
*/
|
|
3660
3654
|
interface OnPrePlayerLeftGameEvent extends EventData {
|
|
3661
3655
|
readonly player_index: PlayerIndex
|
|
@@ -3673,7 +3667,7 @@ declare module "factorio:runtime" {
|
|
|
3673
3667
|
* 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.
|
|
3674
3668
|
*
|
|
3675
3669
|
* Event filter: [LuaPrePlayerMinedEntityEventFilter](LuaPrePlayerMinedEntityEventFilter]
|
|
3676
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3670
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_player_mined_item Online documentation}
|
|
3677
3671
|
*/
|
|
3678
3672
|
interface OnPrePlayerMinedItemEvent extends EventData {
|
|
3679
3673
|
/**
|
|
@@ -3692,7 +3686,7 @@ declare module "factorio:runtime" {
|
|
|
3692
3686
|
}
|
|
3693
3687
|
/**
|
|
3694
3688
|
* 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.
|
|
3695
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3689
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_player_removed Online documentation}
|
|
3696
3690
|
*/
|
|
3697
3691
|
interface OnPrePlayerRemovedEvent extends EventData {
|
|
3698
3692
|
/**
|
|
@@ -3710,7 +3704,7 @@ declare module "factorio:runtime" {
|
|
|
3710
3704
|
}
|
|
3711
3705
|
/**
|
|
3712
3706
|
* Called before a player toggles the map editor on or off.
|
|
3713
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3707
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_player_toggled_map_editor Online documentation}
|
|
3714
3708
|
*/
|
|
3715
3709
|
interface OnPrePlayerToggledMapEditorEvent extends EventData {
|
|
3716
3710
|
readonly player_index: PlayerIndex
|
|
@@ -3725,7 +3719,7 @@ declare module "factorio:runtime" {
|
|
|
3725
3719
|
}
|
|
3726
3720
|
/**
|
|
3727
3721
|
* Called directly before a robot explodes cliffs.
|
|
3728
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3722
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_robot_exploded_cliff Online documentation}
|
|
3729
3723
|
*/
|
|
3730
3724
|
interface OnPreRobotExplodedCliffEvent extends EventData {
|
|
3731
3725
|
readonly robot: LuaEntity
|
|
@@ -3749,7 +3743,7 @@ declare module "factorio:runtime" {
|
|
|
3749
3743
|
}
|
|
3750
3744
|
/**
|
|
3751
3745
|
* Called just before the scenario finishes.
|
|
3752
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3746
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_scenario_finished Online documentation}
|
|
3753
3747
|
*/
|
|
3754
3748
|
interface OnPreScenarioFinishedEvent extends EventData {
|
|
3755
3749
|
/**
|
|
@@ -3767,7 +3761,7 @@ declare module "factorio:runtime" {
|
|
|
3767
3761
|
}
|
|
3768
3762
|
/**
|
|
3769
3763
|
* Called just before a script inventory is resized.
|
|
3770
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3764
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_script_inventory_resized Online documentation}
|
|
3771
3765
|
*/
|
|
3772
3766
|
interface OnPreScriptInventoryResizedEvent extends EventData {
|
|
3773
3767
|
/**
|
|
@@ -3798,7 +3792,7 @@ declare module "factorio:runtime" {
|
|
|
3798
3792
|
}
|
|
3799
3793
|
/**
|
|
3800
3794
|
* Called just before a surface is cleared (all entities removed and all chunks deleted).
|
|
3801
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3795
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_surface_cleared Online documentation}
|
|
3802
3796
|
*/
|
|
3803
3797
|
interface OnPreSurfaceClearedEvent extends EventData {
|
|
3804
3798
|
readonly surface_index: SurfaceIndex
|
|
@@ -3813,7 +3807,7 @@ declare module "factorio:runtime" {
|
|
|
3813
3807
|
}
|
|
3814
3808
|
/**
|
|
3815
3809
|
* Called just before a surface is deleted.
|
|
3816
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3810
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_pre_surface_deleted Online documentation}
|
|
3817
3811
|
*/
|
|
3818
3812
|
interface OnPreSurfaceDeletedEvent extends EventData {
|
|
3819
3813
|
readonly surface_index: SurfaceIndex
|
|
@@ -3828,7 +3822,7 @@ declare module "factorio:runtime" {
|
|
|
3828
3822
|
}
|
|
3829
3823
|
/**
|
|
3830
3824
|
* Called when the player triggers "redo".
|
|
3831
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3825
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_redo_applied Online documentation}
|
|
3832
3826
|
*/
|
|
3833
3827
|
interface OnRedoAppliedEvent extends EventData {
|
|
3834
3828
|
/**
|
|
@@ -3850,7 +3844,7 @@ declare module "factorio:runtime" {
|
|
|
3850
3844
|
}
|
|
3851
3845
|
/**
|
|
3852
3846
|
* Called when research is cancelled.
|
|
3853
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3847
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_research_cancelled Online documentation}
|
|
3854
3848
|
*/
|
|
3855
3849
|
interface OnResearchCancelledEvent extends EventData {
|
|
3856
3850
|
/**
|
|
@@ -3876,7 +3870,7 @@ declare module "factorio:runtime" {
|
|
|
3876
3870
|
}
|
|
3877
3871
|
/**
|
|
3878
3872
|
* Called when a research finishes.
|
|
3879
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3873
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_research_finished Online documentation}
|
|
3880
3874
|
*/
|
|
3881
3875
|
interface OnResearchFinishedEvent extends EventData {
|
|
3882
3876
|
/**
|
|
@@ -3898,7 +3892,7 @@ declare module "factorio:runtime" {
|
|
|
3898
3892
|
}
|
|
3899
3893
|
/**
|
|
3900
3894
|
* Called when research is moved forwards or backwards in the research queue.
|
|
3901
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3895
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_research_moved Online documentation}
|
|
3902
3896
|
*/
|
|
3903
3897
|
interface OnResearchMovedEvent extends EventData {
|
|
3904
3898
|
/**
|
|
@@ -3920,7 +3914,7 @@ declare module "factorio:runtime" {
|
|
|
3920
3914
|
}
|
|
3921
3915
|
/**
|
|
3922
3916
|
* Called when research is queued.
|
|
3923
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3917
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_research_queued Online documentation}
|
|
3924
3918
|
*/
|
|
3925
3919
|
interface OnResearchQueuedEvent extends EventData {
|
|
3926
3920
|
/**
|
|
@@ -3946,7 +3940,7 @@ declare module "factorio:runtime" {
|
|
|
3946
3940
|
}
|
|
3947
3941
|
/**
|
|
3948
3942
|
* Called when a research is reversed (unresearched).
|
|
3949
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3943
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_research_reversed Online documentation}
|
|
3950
3944
|
*/
|
|
3951
3945
|
interface OnResearchReversedEvent extends EventData {
|
|
3952
3946
|
/**
|
|
@@ -3968,7 +3962,7 @@ declare module "factorio:runtime" {
|
|
|
3968
3962
|
}
|
|
3969
3963
|
/**
|
|
3970
3964
|
* Called when a technology research starts.
|
|
3971
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3965
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_research_started Online documentation}
|
|
3972
3966
|
*/
|
|
3973
3967
|
interface OnResearchStartedEvent extends EventData {
|
|
3974
3968
|
/**
|
|
@@ -3987,7 +3981,7 @@ declare module "factorio:runtime" {
|
|
|
3987
3981
|
}
|
|
3988
3982
|
/**
|
|
3989
3983
|
* Called when a resource entity reaches 0 or its minimum yield for infinite resources.
|
|
3990
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
3984
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_resource_depleted Online documentation}
|
|
3991
3985
|
*/
|
|
3992
3986
|
interface OnResourceDepletedEvent extends EventData {
|
|
3993
3987
|
readonly entity: LuaEntity
|
|
@@ -4004,7 +3998,7 @@ declare module "factorio:runtime" {
|
|
|
4004
3998
|
* Called when a construction robot builds an entity.
|
|
4005
3999
|
*
|
|
4006
4000
|
* Event filter: [LuaRobotBuiltEntityEventFilter](LuaRobotBuiltEntityEventFilter]
|
|
4007
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4001
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_robot_built_entity Online documentation}
|
|
4008
4002
|
*/
|
|
4009
4003
|
interface OnRobotBuiltEntityEvent extends EventData {
|
|
4010
4004
|
/**
|
|
@@ -4034,7 +4028,7 @@ declare module "factorio:runtime" {
|
|
|
4034
4028
|
}
|
|
4035
4029
|
/**
|
|
4036
4030
|
* Called after a robot builds tiles.
|
|
4037
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4031
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_robot_built_tile Online documentation}
|
|
4038
4032
|
*/
|
|
4039
4033
|
interface OnRobotBuiltTileEvent extends EventData {
|
|
4040
4034
|
/**
|
|
@@ -4076,7 +4070,7 @@ declare module "factorio:runtime" {
|
|
|
4076
4070
|
}
|
|
4077
4071
|
/**
|
|
4078
4072
|
* Called directly after a robot explodes cliffs.
|
|
4079
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4073
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_robot_exploded_cliff Online documentation}
|
|
4080
4074
|
*/
|
|
4081
4075
|
interface OnRobotExplodedCliffEvent extends EventData {
|
|
4082
4076
|
readonly robot: LuaEntity
|
|
@@ -4099,7 +4093,7 @@ declare module "factorio:runtime" {
|
|
|
4099
4093
|
}
|
|
4100
4094
|
/**
|
|
4101
4095
|
* Called when a robot mines an entity.
|
|
4102
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4096
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_robot_mined Online documentation}
|
|
4103
4097
|
*/
|
|
4104
4098
|
interface OnRobotMinedEvent extends EventData {
|
|
4105
4099
|
/**
|
|
@@ -4127,7 +4121,7 @@ declare module "factorio:runtime" {
|
|
|
4127
4121
|
* 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.
|
|
4128
4122
|
*
|
|
4129
4123
|
* Event filter: [LuaRobotMinedEntityEventFilter](LuaRobotMinedEntityEventFilter]
|
|
4130
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4124
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_robot_mined_entity Online documentation}
|
|
4131
4125
|
*/
|
|
4132
4126
|
interface OnRobotMinedEntityEvent extends EventData {
|
|
4133
4127
|
/**
|
|
@@ -4153,7 +4147,7 @@ declare module "factorio:runtime" {
|
|
|
4153
4147
|
}
|
|
4154
4148
|
/**
|
|
4155
4149
|
* Called after a robot mines tiles.
|
|
4156
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4150
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_robot_mined_tile Online documentation}
|
|
4157
4151
|
*/
|
|
4158
4152
|
interface OnRobotMinedTileEvent extends EventData {
|
|
4159
4153
|
/**
|
|
@@ -4181,7 +4175,7 @@ declare module "factorio:runtime" {
|
|
|
4181
4175
|
* Called before a robot mines an entity.
|
|
4182
4176
|
*
|
|
4183
4177
|
* Event filter: [LuaPreRobotMinedEntityEventFilter](LuaPreRobotMinedEntityEventFilter]
|
|
4184
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4178
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_robot_pre_mined Online documentation}
|
|
4185
4179
|
*/
|
|
4186
4180
|
interface OnRobotPreMinedEvent extends EventData {
|
|
4187
4181
|
/**
|
|
@@ -4203,7 +4197,7 @@ declare module "factorio:runtime" {
|
|
|
4203
4197
|
}
|
|
4204
4198
|
/**
|
|
4205
4199
|
* Called when a rocket silo is ordered to be launched.
|
|
4206
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4200
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_rocket_launch_ordered Online documentation}
|
|
4207
4201
|
*/
|
|
4208
4202
|
interface OnRocketLaunchOrderedEvent extends EventData {
|
|
4209
4203
|
readonly rocket: LuaEntity
|
|
@@ -4223,7 +4217,7 @@ declare module "factorio:runtime" {
|
|
|
4223
4217
|
}
|
|
4224
4218
|
/**
|
|
4225
4219
|
* Called when a rocket finishes ascending. (Triggers listening for finished rocket launch past 2.0 have been moved to 'on_cargo_pod_finished_ascending' as rocket and cargo pod are two separate entities)
|
|
4226
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4220
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_rocket_launched Online documentation}
|
|
4227
4221
|
*/
|
|
4228
4222
|
interface OnRocketLaunchedEvent extends EventData {
|
|
4229
4223
|
readonly rocket: LuaEntity
|
|
@@ -4239,7 +4233,7 @@ declare module "factorio:runtime" {
|
|
|
4239
4233
|
}
|
|
4240
4234
|
/**
|
|
4241
4235
|
* Called when a runtime mod setting is changed by a player.
|
|
4242
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4236
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_runtime_mod_setting_changed Online documentation}
|
|
4243
4237
|
*/
|
|
4244
4238
|
interface OnRuntimeModSettingChangedEvent extends EventData {
|
|
4245
4239
|
/**
|
|
@@ -4262,7 +4256,7 @@ declare module "factorio:runtime" {
|
|
|
4262
4256
|
}
|
|
4263
4257
|
/**
|
|
4264
4258
|
* Called just after a script inventory is resized.
|
|
4265
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4259
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_script_inventory_resized Online documentation}
|
|
4266
4260
|
*/
|
|
4267
4261
|
interface OnScriptInventoryResizedEvent extends EventData {
|
|
4268
4262
|
/**
|
|
@@ -4297,7 +4291,7 @@ declare module "factorio:runtime" {
|
|
|
4297
4291
|
}
|
|
4298
4292
|
/**
|
|
4299
4293
|
* Called when a {@link LuaSurface#request_path LuaSurface::request_path} call completes.
|
|
4300
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4294
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_script_path_request_finished Online documentation}
|
|
4301
4295
|
*/
|
|
4302
4296
|
interface OnScriptPathRequestFinishedEvent extends EventData {
|
|
4303
4297
|
/**
|
|
@@ -4323,7 +4317,7 @@ declare module "factorio:runtime" {
|
|
|
4323
4317
|
}
|
|
4324
4318
|
/**
|
|
4325
4319
|
* Called when a script trigger effect is triggered.
|
|
4326
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4320
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_script_trigger_effect Online documentation}
|
|
4327
4321
|
*/
|
|
4328
4322
|
interface OnScriptTriggerEffectEvent extends EventData {
|
|
4329
4323
|
/**
|
|
@@ -4356,7 +4350,7 @@ declare module "factorio:runtime" {
|
|
|
4356
4350
|
* Called when an entity of type `radar` finishes scanning a sector.
|
|
4357
4351
|
*
|
|
4358
4352
|
* Event filter: [LuaSectorScannedEventFilter](LuaSectorScannedEventFilter]
|
|
4359
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4353
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_sector_scanned Online documentation}
|
|
4360
4354
|
*/
|
|
4361
4355
|
interface OnSectorScannedEvent extends EventData {
|
|
4362
4356
|
/**
|
|
@@ -4382,7 +4376,7 @@ declare module "factorio:runtime" {
|
|
|
4382
4376
|
}
|
|
4383
4377
|
/**
|
|
4384
4378
|
* Called when an individual segment of a SegmentedUnit is created.
|
|
4385
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4379
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_segment_entity_created Online documentation}
|
|
4386
4380
|
*/
|
|
4387
4381
|
interface OnSegmentEntityCreatedEvent extends EventData {
|
|
4388
4382
|
readonly entity: LuaEntity
|
|
@@ -4399,7 +4393,7 @@ declare module "factorio:runtime" {
|
|
|
4399
4393
|
* Called when a segmented unit is created for any reason.
|
|
4400
4394
|
*
|
|
4401
4395
|
* Event filter: [LuaSegmentedUnitCreatedEventFilter](LuaSegmentedUnitCreatedEventFilter]
|
|
4402
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4396
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_segmented_unit_created Online documentation}
|
|
4403
4397
|
*/
|
|
4404
4398
|
interface OnSegmentedUnitCreatedEvent extends EventData {
|
|
4405
4399
|
/**
|
|
@@ -4427,7 +4421,7 @@ declare module "factorio:runtime" {
|
|
|
4427
4421
|
* Called when a segmented unit is damaged. This is not called when a segmented unit's health is set directly by another mod.
|
|
4428
4422
|
*
|
|
4429
4423
|
* Event filter: [LuaSegmentedUnitDamagedEventFilter](LuaSegmentedUnitDamagedEventFilter]
|
|
4430
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4424
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_segmented_unit_damaged Online documentation}
|
|
4431
4425
|
*/
|
|
4432
4426
|
interface OnSegmentedUnitDamagedEvent extends EventData {
|
|
4433
4427
|
readonly segmented_unit: LuaSegmentedUnit
|
|
@@ -4469,7 +4463,7 @@ declare module "factorio:runtime" {
|
|
|
4469
4463
|
* Called when a segmented unit dies.
|
|
4470
4464
|
*
|
|
4471
4465
|
* Event filter: [LuaSegmentedUnitDiedEventFilter](LuaSegmentedUnitDiedEventFilter]
|
|
4472
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4466
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_segmented_unit_died Online documentation}
|
|
4473
4467
|
*/
|
|
4474
4468
|
interface OnSegmentedUnitDiedEvent extends EventData {
|
|
4475
4469
|
/**
|
|
@@ -4499,7 +4493,7 @@ declare module "factorio:runtime" {
|
|
|
4499
4493
|
}
|
|
4500
4494
|
/**
|
|
4501
4495
|
* Called after the selected entity changes for a given player.
|
|
4502
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4496
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_selected_entity_changed Online documentation}
|
|
4503
4497
|
*/
|
|
4504
4498
|
interface OnSelectedEntityChangedEvent extends EventData {
|
|
4505
4499
|
/**
|
|
@@ -4521,7 +4515,7 @@ declare module "factorio:runtime" {
|
|
|
4521
4515
|
}
|
|
4522
4516
|
/**
|
|
4523
4517
|
* Called when {@link LuaGameScript#is_multiplayer LuaGameScript::is_multiplayer} changes to false. May also be raised when it was already false but a game was loaded from a save file without hosting.
|
|
4524
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4518
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_singleplayer_init Online documentation}
|
|
4525
4519
|
*/
|
|
4526
4520
|
interface OnSingleplayerInitEvent extends EventData {
|
|
4527
4521
|
/**
|
|
@@ -4537,7 +4531,7 @@ declare module "factorio:runtime" {
|
|
|
4537
4531
|
* Called when a space platform builds an entity.
|
|
4538
4532
|
*
|
|
4539
4533
|
* Event filter: [LuaPlatformBuiltEntityEventFilter](LuaPlatformBuiltEntityEventFilter]
|
|
4540
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4534
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_space_platform_built_entity Online documentation}
|
|
4541
4535
|
*/
|
|
4542
4536
|
interface OnSpacePlatformBuiltEntityEvent extends EventData {
|
|
4543
4537
|
/**
|
|
@@ -4567,7 +4561,7 @@ declare module "factorio:runtime" {
|
|
|
4567
4561
|
}
|
|
4568
4562
|
/**
|
|
4569
4563
|
* Called after a space platform builds tiles.
|
|
4570
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4564
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_space_platform_built_tile Online documentation}
|
|
4571
4565
|
*/
|
|
4572
4566
|
interface OnSpacePlatformBuiltTileEvent extends EventData {
|
|
4573
4567
|
/**
|
|
@@ -4609,7 +4603,7 @@ declare module "factorio:runtime" {
|
|
|
4609
4603
|
}
|
|
4610
4604
|
/**
|
|
4611
4605
|
* Called when a space platform changes state
|
|
4612
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4606
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_space_platform_changed_state Online documentation}
|
|
4613
4607
|
*/
|
|
4614
4608
|
interface OnSpacePlatformChangedStateEvent extends EventData {
|
|
4615
4609
|
readonly platform: LuaSpacePlatform
|
|
@@ -4631,7 +4625,7 @@ declare module "factorio:runtime" {
|
|
|
4631
4625
|
* 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.
|
|
4632
4626
|
*
|
|
4633
4627
|
* Event filter: [LuaPlatformMinedEntityEventFilter](LuaPlatformMinedEntityEventFilter]
|
|
4634
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4628
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_space_platform_mined_entity Online documentation}
|
|
4635
4629
|
*/
|
|
4636
4630
|
interface OnSpacePlatformMinedEntityEvent extends EventData {
|
|
4637
4631
|
/**
|
|
@@ -4657,7 +4651,7 @@ declare module "factorio:runtime" {
|
|
|
4657
4651
|
}
|
|
4658
4652
|
/**
|
|
4659
4653
|
* Called when a platform mines an entity.
|
|
4660
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4654
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_space_platform_mined_item Online documentation}
|
|
4661
4655
|
*/
|
|
4662
4656
|
interface OnSpacePlatformMinedItemEvent extends EventData {
|
|
4663
4657
|
/**
|
|
@@ -4679,7 +4673,7 @@ declare module "factorio:runtime" {
|
|
|
4679
4673
|
}
|
|
4680
4674
|
/**
|
|
4681
4675
|
* Called after a platform mines tiles.
|
|
4682
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4676
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_space_platform_mined_tile Online documentation}
|
|
4683
4677
|
*/
|
|
4684
4678
|
interface OnSpacePlatformMinedTileEvent extends EventData {
|
|
4685
4679
|
/**
|
|
@@ -4707,7 +4701,7 @@ declare module "factorio:runtime" {
|
|
|
4707
4701
|
* Called before a platform mines an entity.
|
|
4708
4702
|
*
|
|
4709
4703
|
* Event filter: [LuaPrePlatformMinedEntityEventFilter](LuaPrePlatformMinedEntityEventFilter]
|
|
4710
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4704
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_space_platform_pre_mined Online documentation}
|
|
4711
4705
|
*/
|
|
4712
4706
|
interface OnSpacePlatformPreMinedEvent extends EventData {
|
|
4713
4707
|
/**
|
|
@@ -4729,7 +4723,7 @@ declare module "factorio:runtime" {
|
|
|
4729
4723
|
}
|
|
4730
4724
|
/**
|
|
4731
4725
|
* Called when a spider finishes moving to its autopilot position.
|
|
4732
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4726
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_spider_command_completed Online documentation}
|
|
4733
4727
|
*/
|
|
4734
4728
|
interface OnSpiderCommandCompletedEvent extends EventData {
|
|
4735
4729
|
/**
|
|
@@ -4747,7 +4741,7 @@ declare module "factorio:runtime" {
|
|
|
4747
4741
|
}
|
|
4748
4742
|
/**
|
|
4749
4743
|
* 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.
|
|
4750
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4744
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_string_translated Online documentation}
|
|
4751
4745
|
*/
|
|
4752
4746
|
interface OnStringTranslatedEvent extends EventData {
|
|
4753
4747
|
/**
|
|
@@ -4781,7 +4775,7 @@ declare module "factorio:runtime" {
|
|
|
4781
4775
|
}
|
|
4782
4776
|
/**
|
|
4783
4777
|
* Called just after a surface is cleared (all entities removed and all chunks deleted).
|
|
4784
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4778
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_surface_cleared Online documentation}
|
|
4785
4779
|
*/
|
|
4786
4780
|
interface OnSurfaceClearedEvent extends EventData {
|
|
4787
4781
|
readonly surface_index: SurfaceIndex
|
|
@@ -4798,7 +4792,7 @@ declare module "factorio:runtime" {
|
|
|
4798
4792
|
* Called when a surface is created.
|
|
4799
4793
|
*
|
|
4800
4794
|
* This is not called when the default surface is created as it will always exist.
|
|
4801
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4795
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_surface_created Online documentation}
|
|
4802
4796
|
*/
|
|
4803
4797
|
interface OnSurfaceCreatedEvent extends EventData {
|
|
4804
4798
|
readonly surface_index: SurfaceIndex
|
|
@@ -4813,7 +4807,7 @@ declare module "factorio:runtime" {
|
|
|
4813
4807
|
}
|
|
4814
4808
|
/**
|
|
4815
4809
|
* Called after a surface is deleted.
|
|
4816
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4810
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_surface_deleted Online documentation}
|
|
4817
4811
|
*/
|
|
4818
4812
|
interface OnSurfaceDeletedEvent extends EventData {
|
|
4819
4813
|
readonly surface_index: SurfaceIndex
|
|
@@ -4828,7 +4822,7 @@ declare module "factorio:runtime" {
|
|
|
4828
4822
|
}
|
|
4829
4823
|
/**
|
|
4830
4824
|
* Called after a surface is imported via the map editor.
|
|
4831
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4825
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_surface_imported Online documentation}
|
|
4832
4826
|
*/
|
|
4833
4827
|
interface OnSurfaceImportedEvent extends EventData {
|
|
4834
4828
|
readonly surface_index: SurfaceIndex
|
|
@@ -4847,7 +4841,7 @@ declare module "factorio:runtime" {
|
|
|
4847
4841
|
}
|
|
4848
4842
|
/**
|
|
4849
4843
|
* Called when a surface is renamed.
|
|
4850
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4844
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_surface_renamed Online documentation}
|
|
4851
4845
|
*/
|
|
4852
4846
|
interface OnSurfaceRenamedEvent extends EventData {
|
|
4853
4847
|
readonly surface_index: SurfaceIndex
|
|
@@ -4864,7 +4858,7 @@ declare module "factorio:runtime" {
|
|
|
4864
4858
|
}
|
|
4865
4859
|
/**
|
|
4866
4860
|
* Called when {@link LuaForce#reset_technology_effects LuaForce::reset_technology_effects} is finished.
|
|
4867
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4861
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_technology_effects_reset Online documentation}
|
|
4868
4862
|
*/
|
|
4869
4863
|
interface OnTechnologyEffectsResetEvent extends EventData {
|
|
4870
4864
|
readonly force: LuaForce
|
|
@@ -4879,7 +4873,7 @@ declare module "factorio:runtime" {
|
|
|
4879
4873
|
}
|
|
4880
4874
|
/**
|
|
4881
4875
|
* Called when a territory is created for any reason.
|
|
4882
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4876
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_territory_created Online documentation}
|
|
4883
4877
|
*/
|
|
4884
4878
|
interface OnTerritoryCreatedEvent extends EventData {
|
|
4885
4879
|
/**
|
|
@@ -4901,7 +4895,7 @@ declare module "factorio:runtime" {
|
|
|
4901
4895
|
}
|
|
4902
4896
|
/**
|
|
4903
4897
|
* Called when a territory is destroyed from a surface.
|
|
4904
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4898
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_territory_destroyed Online documentation}
|
|
4905
4899
|
*/
|
|
4906
4900
|
interface OnTerritoryDestroyedEvent extends EventData {
|
|
4907
4901
|
/**
|
|
@@ -4919,7 +4913,7 @@ declare module "factorio:runtime" {
|
|
|
4919
4913
|
}
|
|
4920
4914
|
/**
|
|
4921
4915
|
* It is fired once every tick. Since this event is fired every tick, its handler shouldn't include performance heavy code.
|
|
4922
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4916
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_tick Online documentation}
|
|
4923
4917
|
*/
|
|
4924
4918
|
interface OnTickEvent extends EventData {
|
|
4925
4919
|
/**
|
|
@@ -4937,7 +4931,7 @@ declare module "factorio:runtime" {
|
|
|
4937
4931
|
* After this event any items in the buffer will be transferred into the tower as if they came from mining the entity.
|
|
4938
4932
|
*
|
|
4939
4933
|
* 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.
|
|
4940
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4934
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_tower_mined_plant Online documentation}
|
|
4941
4935
|
*/
|
|
4942
4936
|
interface OnTowerMinedPlantEvent extends EventData {
|
|
4943
4937
|
/**
|
|
@@ -4963,7 +4957,7 @@ declare module "factorio:runtime" {
|
|
|
4963
4957
|
}
|
|
4964
4958
|
/**
|
|
4965
4959
|
* Called before an agricultural tower plants a seed.
|
|
4966
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4960
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_tower_planted_seed Online documentation}
|
|
4967
4961
|
*/
|
|
4968
4962
|
interface OnTowerPlantedSeedEvent extends EventData {
|
|
4969
4963
|
/**
|
|
@@ -4989,7 +4983,7 @@ declare module "factorio:runtime" {
|
|
|
4989
4983
|
}
|
|
4990
4984
|
/**
|
|
4991
4985
|
* Called before an agricultural tower mines a plant.
|
|
4992
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
4986
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_tower_pre_mined_plant Online documentation}
|
|
4993
4987
|
*/
|
|
4994
4988
|
interface OnTowerPreMinedPlantEvent extends EventData {
|
|
4995
4989
|
/**
|
|
@@ -5011,7 +5005,7 @@ declare module "factorio:runtime" {
|
|
|
5011
5005
|
}
|
|
5012
5006
|
/**
|
|
5013
5007
|
* Called when a train changes state (started to stopped and vice versa)
|
|
5014
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5008
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_train_changed_state Online documentation}
|
|
5015
5009
|
*/
|
|
5016
5010
|
interface OnTrainChangedStateEvent extends EventData {
|
|
5017
5011
|
readonly train: LuaTrain
|
|
@@ -5027,7 +5021,7 @@ declare module "factorio:runtime" {
|
|
|
5027
5021
|
}
|
|
5028
5022
|
/**
|
|
5029
5023
|
* Called when a new train is created either through disconnecting/connecting an existing one or building a new one.
|
|
5030
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5024
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_train_created Online documentation}
|
|
5031
5025
|
*/
|
|
5032
5026
|
interface OnTrainCreatedEvent extends EventData {
|
|
5033
5027
|
readonly train: LuaTrain
|
|
@@ -5050,7 +5044,7 @@ declare module "factorio:runtime" {
|
|
|
5050
5044
|
}
|
|
5051
5045
|
/**
|
|
5052
5046
|
* Called when a trains schedule is changed either by the player or through script.
|
|
5053
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5047
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_train_schedule_changed Online documentation}
|
|
5054
5048
|
*/
|
|
5055
5049
|
interface OnTrainScheduleChangedEvent extends EventData {
|
|
5056
5050
|
readonly train: LuaTrain
|
|
@@ -5069,7 +5063,7 @@ declare module "factorio:runtime" {
|
|
|
5069
5063
|
}
|
|
5070
5064
|
/**
|
|
5071
5065
|
* Called when an entity with a trigger prototype (such as capsules) create an entity AND that trigger prototype defined `trigger_created_entity=true`.
|
|
5072
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5066
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_trigger_created_entity Online documentation}
|
|
5073
5067
|
*/
|
|
5074
5068
|
interface OnTriggerCreatedEntityEvent extends EventData {
|
|
5075
5069
|
readonly entity: LuaEntity
|
|
@@ -5085,7 +5079,7 @@ declare module "factorio:runtime" {
|
|
|
5085
5079
|
}
|
|
5086
5080
|
/**
|
|
5087
5081
|
* Called when an entity with a trigger prototype (such as capsules) fire an artillery projectile AND that trigger prototype defined `trigger_fired_artillery=true`.
|
|
5088
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5082
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_trigger_fired_artillery Online documentation}
|
|
5089
5083
|
*/
|
|
5090
5084
|
interface OnTriggerFiredArtilleryEvent extends EventData {
|
|
5091
5085
|
readonly entity: LuaEntity
|
|
@@ -5101,7 +5095,7 @@ declare module "factorio:runtime" {
|
|
|
5101
5095
|
}
|
|
5102
5096
|
/**
|
|
5103
5097
|
* Called when new packets are processed by {@link LuaHelpers#recv_udp LuaHelpers::recv_udp}.
|
|
5104
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5098
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_udp_packet_received Online documentation}
|
|
5105
5099
|
*/
|
|
5106
5100
|
interface OnUdpPacketReceivedEvent extends EventData {
|
|
5107
5101
|
/**
|
|
@@ -5127,7 +5121,7 @@ declare module "factorio:runtime" {
|
|
|
5127
5121
|
}
|
|
5128
5122
|
/**
|
|
5129
5123
|
* Called when the player triggers "undo".
|
|
5130
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5124
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_undo_applied Online documentation}
|
|
5131
5125
|
*/
|
|
5132
5126
|
interface OnUndoAppliedEvent extends EventData {
|
|
5133
5127
|
/**
|
|
@@ -5149,7 +5143,7 @@ declare module "factorio:runtime" {
|
|
|
5149
5143
|
}
|
|
5150
5144
|
/**
|
|
5151
5145
|
* Called when a unit is added to a unit group.
|
|
5152
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5146
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_unit_added_to_group Online documentation}
|
|
5153
5147
|
*/
|
|
5154
5148
|
interface OnUnitAddedToGroupEvent extends EventData {
|
|
5155
5149
|
readonly unit: LuaEntity
|
|
@@ -5165,7 +5159,7 @@ declare module "factorio:runtime" {
|
|
|
5165
5159
|
}
|
|
5166
5160
|
/**
|
|
5167
5161
|
* Called when a new unit group is created, before any members are added to it.
|
|
5168
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5162
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_unit_group_created Online documentation}
|
|
5169
5163
|
*/
|
|
5170
5164
|
interface OnUnitGroupCreatedEvent extends EventData {
|
|
5171
5165
|
readonly group: LuaCommandable
|
|
@@ -5180,7 +5174,7 @@ declare module "factorio:runtime" {
|
|
|
5180
5174
|
}
|
|
5181
5175
|
/**
|
|
5182
5176
|
* Called when a unit group finishes gathering and starts executing its command.
|
|
5183
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5177
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_unit_group_finished_gathering Online documentation}
|
|
5184
5178
|
*/
|
|
5185
5179
|
interface OnUnitGroupFinishedGatheringEvent extends EventData {
|
|
5186
5180
|
readonly group: LuaCommandable
|
|
@@ -5195,7 +5189,7 @@ declare module "factorio:runtime" {
|
|
|
5195
5189
|
}
|
|
5196
5190
|
/**
|
|
5197
5191
|
* Called when a unit is removed from a unit group.
|
|
5198
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5192
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_unit_removed_from_group Online documentation}
|
|
5199
5193
|
*/
|
|
5200
5194
|
interface OnUnitRemovedFromGroupEvent extends EventData {
|
|
5201
5195
|
readonly unit: LuaEntity
|
|
@@ -5211,7 +5205,7 @@ declare module "factorio:runtime" {
|
|
|
5211
5205
|
}
|
|
5212
5206
|
/**
|
|
5213
5207
|
* Called when a worker (construction or logistic) robot expires through a lack of energy.
|
|
5214
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5208
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#on_worker_robot_expired Online documentation}
|
|
5215
5209
|
*/
|
|
5216
5210
|
interface OnWorkerRobotExpiredEvent extends EventData {
|
|
5217
5211
|
readonly robot: LuaEntity
|
|
@@ -5228,7 +5222,7 @@ declare module "factorio:runtime" {
|
|
|
5228
5222
|
* 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}.
|
|
5229
5223
|
*
|
|
5230
5224
|
* Event filter: [LuaScriptRaisedBuiltEventFilter](LuaScriptRaisedBuiltEventFilter]
|
|
5231
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5225
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#script_raised_built Online documentation}
|
|
5232
5226
|
*/
|
|
5233
5227
|
interface ScriptRaisedBuiltEvent extends EventData {
|
|
5234
5228
|
/**
|
|
@@ -5248,7 +5242,7 @@ declare module "factorio:runtime" {
|
|
|
5248
5242
|
* 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}.
|
|
5249
5243
|
*
|
|
5250
5244
|
* Event filter: [LuaScriptRaisedDestroyEventFilter](LuaScriptRaisedDestroyEventFilter]
|
|
5251
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5245
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#script_raised_destroy Online documentation}
|
|
5252
5246
|
*/
|
|
5253
5247
|
interface ScriptRaisedDestroyEvent extends EventData {
|
|
5254
5248
|
/**
|
|
@@ -5268,7 +5262,7 @@ declare module "factorio:runtime" {
|
|
|
5268
5262
|
* A static event that mods can use to tell other mods they destroyed a segmented unit by script. This event is only raised if a mod does so with {@link LuaBootstrap#raise_event LuaBootstrap::raise_event}, or {@link LuaBootstrap#raise_script_destroy_segmented_unit LuaBootstrap::raise_script_destroy_segmented_unit}, or when `raise_destroy` is passed to {@link LuaSegmentedUnit#destroy LuaSegmentedUnit::destroy}.
|
|
5269
5263
|
*
|
|
5270
5264
|
* Event filter: [LuaScriptRaisedDestroySegmentedUnitEventFilter](LuaScriptRaisedDestroySegmentedUnitEventFilter]
|
|
5271
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5265
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#script_raised_destroy_segmented_unit Online documentation}
|
|
5272
5266
|
*/
|
|
5273
5267
|
interface ScriptRaisedDestroySegmentedUnitEvent extends EventData {
|
|
5274
5268
|
/**
|
|
@@ -5288,7 +5282,7 @@ declare module "factorio:runtime" {
|
|
|
5288
5282
|
* 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}.
|
|
5289
5283
|
*
|
|
5290
5284
|
* Event filter: [LuaScriptRaisedReviveEventFilter](LuaScriptRaisedReviveEventFilter]
|
|
5291
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5285
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#script_raised_revive Online documentation}
|
|
5292
5286
|
*/
|
|
5293
5287
|
interface ScriptRaisedReviveEvent extends EventData {
|
|
5294
5288
|
/**
|
|
@@ -5310,7 +5304,7 @@ declare module "factorio:runtime" {
|
|
|
5310
5304
|
}
|
|
5311
5305
|
/**
|
|
5312
5306
|
* 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}.
|
|
5313
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5307
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#script_raised_set_tiles Online documentation}
|
|
5314
5308
|
*/
|
|
5315
5309
|
interface ScriptRaisedSetTilesEvent extends EventData {
|
|
5316
5310
|
/**
|
|
@@ -5334,7 +5328,7 @@ declare module "factorio:runtime" {
|
|
|
5334
5328
|
* 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}.
|
|
5335
5329
|
*
|
|
5336
5330
|
* Event filter: [LuaScriptRaisedTeleportedEventFilter](LuaScriptRaisedTeleportedEventFilter]
|
|
5337
|
-
* @see {@link https://lua-api.factorio.com/2.1.
|
|
5331
|
+
* @see {@link https://lua-api.factorio.com/2.1.9/events.html#script_raised_teleported Online documentation}
|
|
5338
5332
|
*/
|
|
5339
5333
|
interface ScriptRaisedTeleportedEvent extends EventData {
|
|
5340
5334
|
/**
|