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