typed-factorio 2.12.0 → 2.13.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/prototype/generated/prototypes.d.ts +1743 -2029
- package/prototype/generated/types.d.ts +1811 -1453
- package/runtime/generated/classes.d.ts +3390 -3364
- package/runtime/generated/concepts.d.ts +2197 -2197
- package/runtime/generated/defines.d.ts +1050 -759
- package/runtime/generated/events.d.ts +187 -187
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +6 -6
@@ -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/1.1.
|
16
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#CustomInputEvent Online documentation}
|
17
17
|
*/
|
18
18
|
interface CustomInputEvent extends EventData {
|
19
19
|
/**
|
@@ -47,7 +47,7 @@ declare module "factorio:runtime" {
|
|
47
47
|
}
|
48
48
|
/**
|
49
49
|
* Called when a unit/group completes a command.
|
50
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
50
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_ai_command_completed Online documentation}
|
51
51
|
*/
|
52
52
|
interface OnAiCommandCompletedEvent extends EventData {
|
53
53
|
/**
|
@@ -70,7 +70,7 @@ declare module "factorio:runtime" {
|
|
70
70
|
}
|
71
71
|
/**
|
72
72
|
* Called when an area of the map is cloned.
|
73
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
73
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_area_cloned Online documentation}
|
74
74
|
*/
|
75
75
|
interface OnAreaClonedEvent extends EventData {
|
76
76
|
readonly source_surface: LuaSurface
|
@@ -96,7 +96,7 @@ declare module "factorio:runtime" {
|
|
96
96
|
* Called when a biter migration builds a base.
|
97
97
|
*
|
98
98
|
* This will be called multiple times for each migration, once for every biter that is sacrificed to build part of the new base.
|
99
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
99
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_biter_base_built Online documentation}
|
100
100
|
*/
|
101
101
|
interface OnBiterBaseBuiltEvent extends EventData {
|
102
102
|
/**
|
@@ -114,7 +114,7 @@ declare module "factorio:runtime" {
|
|
114
114
|
}
|
115
115
|
/**
|
116
116
|
* Called when a set of positions on the map is cloned.
|
117
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
117
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_brush_cloned Online documentation}
|
118
118
|
*/
|
119
119
|
interface OnBrushClonedEvent extends EventData {
|
120
120
|
readonly source_offset: TilePosition
|
@@ -139,7 +139,7 @@ declare module "factorio:runtime" {
|
|
139
139
|
}
|
140
140
|
/**
|
141
141
|
* Called when a {@link defines.command.build_base} command reaches its destination, and before building starts.
|
142
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
142
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_build_base_arrived Online documentation}
|
143
143
|
*/
|
144
144
|
interface OnBuildBaseArrivedEvent extends EventData {
|
145
145
|
/**
|
@@ -163,7 +163,7 @@ declare module "factorio:runtime" {
|
|
163
163
|
* Called when player builds something.
|
164
164
|
*
|
165
165
|
* Event filter: [LuaPlayerBuiltEntityEventFilter](LuaPlayerBuiltEntityEventFilter]
|
166
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
166
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_built_entity Online documentation}
|
167
167
|
*/
|
168
168
|
interface OnBuiltEntityEvent extends EventData {
|
169
169
|
readonly created_entity: LuaEntity
|
@@ -190,7 +190,7 @@ declare module "factorio:runtime" {
|
|
190
190
|
* Called when the deconstruction of an entity is canceled.
|
191
191
|
*
|
192
192
|
* Event filter: [LuaEntityDeconstructionCancelledEventFilter](LuaEntityDeconstructionCancelledEventFilter]
|
193
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
193
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_cancelled_deconstruction Online documentation}
|
194
194
|
*/
|
195
195
|
interface OnCancelledDeconstructionEvent extends EventData {
|
196
196
|
readonly entity: LuaEntity
|
@@ -208,7 +208,7 @@ declare module "factorio:runtime" {
|
|
208
208
|
* Called when the upgrade of an entity is canceled.
|
209
209
|
*
|
210
210
|
* Event filter: [LuaUpgradeCancelledEventFilter](LuaUpgradeCancelledEventFilter]
|
211
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
211
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_cancelled_upgrade Online documentation}
|
212
212
|
*/
|
213
213
|
interface OnCancelledUpgradeEvent extends EventData {
|
214
214
|
readonly entity: LuaEntity
|
@@ -228,7 +228,7 @@ declare module "factorio:runtime" {
|
|
228
228
|
* Called when a character corpse expires due to timeout or all of the items being removed from it.
|
229
229
|
*
|
230
230
|
* This is not called if the corpse is mined. See {@link defines.events.on_pre_player_mined_item} to detect that.
|
231
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
231
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_character_corpse_expired Online documentation}
|
232
232
|
*/
|
233
233
|
interface OnCharacterCorpseExpiredEvent extends EventData {
|
234
234
|
/**
|
@@ -246,7 +246,7 @@ declare module "factorio:runtime" {
|
|
246
246
|
}
|
247
247
|
/**
|
248
248
|
* Called when a chart tag is created.
|
249
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
249
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_chart_tag_added Online documentation}
|
250
250
|
*/
|
251
251
|
interface OnChartTagAddedEvent extends EventData {
|
252
252
|
readonly tag: LuaCustomChartTag
|
@@ -263,7 +263,7 @@ declare module "factorio:runtime" {
|
|
263
263
|
}
|
264
264
|
/**
|
265
265
|
* Called when a chart tag is modified by a player.
|
266
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
266
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_chart_tag_modified Online documentation}
|
267
267
|
*/
|
268
268
|
interface OnChartTagModifiedEvent extends EventData {
|
269
269
|
readonly tag: LuaCustomChartTag
|
@@ -283,7 +283,7 @@ declare module "factorio:runtime" {
|
|
283
283
|
}
|
284
284
|
/**
|
285
285
|
* Called just before a chart tag is deleted.
|
286
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
286
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_chart_tag_removed Online documentation}
|
287
287
|
*/
|
288
288
|
interface OnChartTagRemovedEvent extends EventData {
|
289
289
|
readonly tag: LuaCustomChartTag
|
@@ -300,7 +300,7 @@ declare module "factorio:runtime" {
|
|
300
300
|
}
|
301
301
|
/**
|
302
302
|
* Called when a chunk is charted or re-charted.
|
303
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
303
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_chunk_charted Online documentation}
|
304
304
|
*/
|
305
305
|
interface OnChunkChartedEvent extends EventData {
|
306
306
|
readonly surface_index: SurfaceIndex
|
@@ -321,7 +321,7 @@ declare module "factorio:runtime" {
|
|
321
321
|
}
|
322
322
|
/**
|
323
323
|
* Called when one or more chunks are deleted using {@link LuaSurface#delete_chunk LuaSurface::delete_chunk}.
|
324
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
324
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_chunk_deleted Online documentation}
|
325
325
|
*/
|
326
326
|
interface OnChunkDeletedEvent extends EventData {
|
327
327
|
readonly surface_index: SurfaceIndex
|
@@ -340,7 +340,7 @@ declare module "factorio:runtime" {
|
|
340
340
|
}
|
341
341
|
/**
|
342
342
|
* Called when a chunk is generated.
|
343
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
343
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_chunk_generated Online documentation}
|
344
344
|
*/
|
345
345
|
interface OnChunkGeneratedEvent extends EventData {
|
346
346
|
/**
|
@@ -366,7 +366,7 @@ declare module "factorio:runtime" {
|
|
366
366
|
}
|
367
367
|
/**
|
368
368
|
* Called when a combat robot expires through a lack of energy, or timeout.
|
369
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
369
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_combat_robot_expired Online documentation}
|
370
370
|
*/
|
371
371
|
interface OnCombatRobotExpiredEvent extends EventData {
|
372
372
|
readonly robot: LuaEntity
|
@@ -387,7 +387,7 @@ declare module "factorio:runtime" {
|
|
387
387
|
* Called when a message is sent to the in-game console, either by a player or through the server interface.
|
388
388
|
*
|
389
389
|
* This event only fires for plain messages, not for any commands (including `/shout` or `/whisper`).
|
390
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
390
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_console_chat Online documentation}
|
391
391
|
*/
|
392
392
|
interface OnConsoleChatEvent extends EventData {
|
393
393
|
/**
|
@@ -409,7 +409,7 @@ declare module "factorio:runtime" {
|
|
409
409
|
}
|
410
410
|
/**
|
411
411
|
* Called when someone enters a command-like message regardless of it being a valid command.
|
412
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
412
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_console_command Online documentation}
|
413
413
|
*/
|
414
414
|
interface OnConsoleCommandEvent extends EventData {
|
415
415
|
/**
|
@@ -435,7 +435,7 @@ declare module "factorio:runtime" {
|
|
435
435
|
}
|
436
436
|
/**
|
437
437
|
* Called when a cutscene is cancelled by the player or by script.
|
438
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
438
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_cutscene_cancelled Online documentation}
|
439
439
|
*/
|
440
440
|
interface OnCutsceneCancelledEvent extends EventData {
|
441
441
|
/**
|
@@ -453,7 +453,7 @@ declare module "factorio:runtime" {
|
|
453
453
|
}
|
454
454
|
/**
|
455
455
|
* Called when a cutscene finishes naturally (was not cancelled).
|
456
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
456
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_cutscene_finished Online documentation}
|
457
457
|
*/
|
458
458
|
interface OnCutsceneFinishedEvent extends EventData {
|
459
459
|
/**
|
@@ -471,7 +471,7 @@ declare module "factorio:runtime" {
|
|
471
471
|
}
|
472
472
|
/**
|
473
473
|
* Called when a cutscene starts.
|
474
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
474
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_cutscene_started Online documentation}
|
475
475
|
*/
|
476
476
|
interface OnCutsceneStartedEvent extends EventData {
|
477
477
|
/**
|
@@ -493,7 +493,7 @@ declare module "factorio:runtime" {
|
|
493
493
|
* This refers to an index in the table previously passed to set_controller which started the cutscene.
|
494
494
|
*
|
495
495
|
* Due to implementation omission, `waypoint_index` is 0-based.
|
496
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
496
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_cutscene_waypoint_reached Online documentation}
|
497
497
|
*/
|
498
498
|
interface OnCutsceneWaypointReachedEvent extends EventData {
|
499
499
|
/**
|
@@ -517,7 +517,7 @@ declare module "factorio:runtime" {
|
|
517
517
|
* Called when the map difficulty settings are changed.
|
518
518
|
*
|
519
519
|
* It's not guaranteed that both settings are changed - just that at least one has been changed.
|
520
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
520
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_difficulty_settings_changed Online documentation}
|
521
521
|
*/
|
522
522
|
interface OnDifficultySettingsChangedEvent extends EventData {
|
523
523
|
readonly old_recipe_difficulty: uint
|
@@ -535,7 +535,7 @@ declare module "factorio:runtime" {
|
|
535
535
|
* Called when an entity is cloned. The filter applies to the source entity.
|
536
536
|
*
|
537
537
|
* Event filter: [LuaEntityClonedEventFilter](LuaEntityClonedEventFilter]
|
538
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
538
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_entity_cloned Online documentation}
|
539
539
|
*/
|
540
540
|
interface OnEntityClonedEvent extends EventData {
|
541
541
|
readonly source: LuaEntity
|
@@ -553,7 +553,7 @@ declare module "factorio:runtime" {
|
|
553
553
|
* Called after an entity has been recolored either by the player or through script.
|
554
554
|
*
|
555
555
|
* Automatic recoloring due to {@link LuaPlayer#color LuaPlayer::color} will not raise events, as that is a separate mechanism.
|
556
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
556
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_entity_color_changed Online documentation}
|
557
557
|
*/
|
558
558
|
interface OnEntityColorChangedEvent extends EventData {
|
559
559
|
/**
|
@@ -573,7 +573,7 @@ declare module "factorio:runtime" {
|
|
573
573
|
* Called when an entity is damaged. This is not called when an entities health is set directly by another mod.
|
574
574
|
*
|
575
575
|
* Event filter: [LuaEntityDamagedEventFilter](LuaEntityDamagedEventFilter]
|
576
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
576
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_entity_damaged Online documentation}
|
577
577
|
*/
|
578
578
|
interface OnEntityDamagedEvent extends EventData {
|
579
579
|
readonly entity: LuaEntity
|
@@ -611,7 +611,7 @@ declare module "factorio:runtime" {
|
|
611
611
|
* Called after an entity is destroyed that has been registered with {@link LuaBootstrap#register_on_entity_destroyed LuaBootstrap::register_on_entity_destroyed}.
|
612
612
|
*
|
613
613
|
* Depending on when a given entity is destroyed, this event will be fired at the end of the current tick or at the end of the next tick.
|
614
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
614
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_entity_destroyed Online documentation}
|
615
615
|
*/
|
616
616
|
interface OnEntityDestroyedEvent extends EventData {
|
617
617
|
/**
|
@@ -635,7 +635,7 @@ declare module "factorio:runtime" {
|
|
635
635
|
* Called when an entity dies.
|
636
636
|
*
|
637
637
|
* Event filter: [LuaEntityDiedEventFilter](LuaEntityDiedEventFilter]
|
638
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
638
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_entity_died Online documentation}
|
639
639
|
*/
|
640
640
|
interface OnEntityDiedEvent extends EventData {
|
641
641
|
/**
|
@@ -671,7 +671,7 @@ declare module "factorio:runtime" {
|
|
671
671
|
* Called when one of an entity's personal logistic slots changes.
|
672
672
|
*
|
673
673
|
* "Personal logistic slot" refers to a character or vehicle's personal request / auto-trash slots, not the request slots on logistic chests.
|
674
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
674
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_entity_logistic_slot_changed Online documentation}
|
675
675
|
*/
|
676
676
|
interface OnEntityLogisticSlotChangedEvent extends EventData {
|
677
677
|
/**
|
@@ -697,7 +697,7 @@ declare module "factorio:runtime" {
|
|
697
697
|
}
|
698
698
|
/**
|
699
699
|
* Called after an entity has been renamed either by the player or through script.
|
700
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
700
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_entity_renamed Online documentation}
|
701
701
|
*/
|
702
702
|
interface OnEntityRenamedEvent extends EventData {
|
703
703
|
/**
|
@@ -718,7 +718,7 @@ declare module "factorio:runtime" {
|
|
718
718
|
}
|
719
719
|
/**
|
720
720
|
* Called after entity copy-paste is done.
|
721
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
721
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_entity_settings_pasted Online documentation}
|
722
722
|
*/
|
723
723
|
interface OnEntitySettingsPastedEvent extends EventData {
|
724
724
|
readonly player_index: PlayerIndex
|
@@ -741,7 +741,7 @@ declare module "factorio:runtime" {
|
|
741
741
|
}
|
742
742
|
/**
|
743
743
|
* Called when an entity is spawned by a EnemySpawner
|
744
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
744
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_entity_spawned Online documentation}
|
745
745
|
*/
|
746
746
|
interface OnEntitySpawnedEvent extends EventData {
|
747
747
|
readonly spawner: LuaEntity
|
@@ -757,7 +757,7 @@ declare module "factorio:runtime" {
|
|
757
757
|
}
|
758
758
|
/**
|
759
759
|
* Called after equipment is inserted into an equipment grid.
|
760
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
760
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_equipment_inserted Online documentation}
|
761
761
|
*/
|
762
762
|
interface OnEquipmentInsertedEvent extends EventData {
|
763
763
|
/**
|
@@ -779,7 +779,7 @@ declare module "factorio:runtime" {
|
|
779
779
|
}
|
780
780
|
/**
|
781
781
|
* Called after equipment is removed from an equipment grid.
|
782
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
782
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_equipment_removed Online documentation}
|
783
783
|
*/
|
784
784
|
interface OnEquipmentRemovedEvent extends EventData {
|
785
785
|
/**
|
@@ -805,7 +805,7 @@ declare module "factorio:runtime" {
|
|
805
805
|
}
|
806
806
|
/**
|
807
807
|
* Called when the a forces cease fire values change.
|
808
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
808
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_force_cease_fire_changed Online documentation}
|
809
809
|
*/
|
810
810
|
interface OnForceCeaseFireChangedEvent extends EventData {
|
811
811
|
/**
|
@@ -833,7 +833,7 @@ declare module "factorio:runtime" {
|
|
833
833
|
* Called when a new force is created using `game.create_force()`
|
834
834
|
*
|
835
835
|
* This is not called when the default forces (`'player'`, `'enemy'`, `'neutral'`) are created as they will always exist.
|
836
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
836
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_force_created Online documentation}
|
837
837
|
*/
|
838
838
|
interface OnForceCreatedEvent extends EventData {
|
839
839
|
/**
|
@@ -851,7 +851,7 @@ declare module "factorio:runtime" {
|
|
851
851
|
}
|
852
852
|
/**
|
853
853
|
* Called when the a forces friends change.
|
854
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
854
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_force_friends_changed Online documentation}
|
855
855
|
*/
|
856
856
|
interface OnForceFriendsChangedEvent extends EventData {
|
857
857
|
/**
|
@@ -877,7 +877,7 @@ declare module "factorio:runtime" {
|
|
877
877
|
}
|
878
878
|
/**
|
879
879
|
* Called when {@link LuaForce#reset LuaForce::reset} is finished.
|
880
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
880
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_force_reset Online documentation}
|
881
881
|
*/
|
882
882
|
interface OnForceResetEvent extends EventData {
|
883
883
|
readonly force: LuaForce
|
@@ -894,7 +894,7 @@ declare module "factorio:runtime" {
|
|
894
894
|
* Called after two forces have been merged using `game.merge_forces()`.
|
895
895
|
*
|
896
896
|
* The source force is invalidated before this event is called and the name can be re-used in this event if desired.
|
897
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
897
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_forces_merged Online documentation}
|
898
898
|
*/
|
899
899
|
interface OnForcesMergedEvent extends EventData {
|
900
900
|
/**
|
@@ -920,7 +920,7 @@ declare module "factorio:runtime" {
|
|
920
920
|
}
|
921
921
|
/**
|
922
922
|
* Called when two forces are about to be merged using `game.merge_forces()`.
|
923
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
923
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_forces_merging Online documentation}
|
924
924
|
*/
|
925
925
|
interface OnForcesMergingEvent extends EventData {
|
926
926
|
/**
|
@@ -944,7 +944,7 @@ declare module "factorio:runtime" {
|
|
944
944
|
* 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.
|
945
945
|
*
|
946
946
|
* This event is not fired when the scenario is loaded via the map editor.
|
947
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
947
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_game_created_from_scenario Online documentation}
|
948
948
|
*/
|
949
949
|
interface OnGameCreatedFromScenarioEvent extends EventData {
|
950
950
|
/**
|
@@ -958,7 +958,7 @@ declare module "factorio:runtime" {
|
|
958
958
|
}
|
959
959
|
/**
|
960
960
|
* Called when {@link LuaGuiElement} checked state is changed (related to checkboxes and radio buttons).
|
961
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
961
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_gui_checked_state_changed Online documentation}
|
962
962
|
*/
|
963
963
|
interface OnGuiCheckedStateChangedEvent extends EventData {
|
964
964
|
/**
|
@@ -980,7 +980,7 @@ declare module "factorio:runtime" {
|
|
980
980
|
}
|
981
981
|
/**
|
982
982
|
* Called when {@link LuaGuiElement} is clicked.
|
983
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
983
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_gui_click Online documentation}
|
984
984
|
*/
|
985
985
|
interface OnGuiClickEvent extends EventData {
|
986
986
|
/**
|
@@ -1026,7 +1026,7 @@ declare module "factorio:runtime" {
|
|
1026
1026
|
* 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.
|
1027
1027
|
*
|
1028
1028
|
* 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.
|
1029
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1029
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_gui_closed Online documentation}
|
1030
1030
|
*/
|
1031
1031
|
interface OnGuiClosedEvent extends EventData {
|
1032
1032
|
/**
|
@@ -1080,7 +1080,7 @@ declare module "factorio:runtime" {
|
|
1080
1080
|
}
|
1081
1081
|
/**
|
1082
1082
|
* Called when a {@link LuaGuiElement} is confirmed, for example by pressing Enter in a textfield.
|
1083
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1083
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_gui_confirmed Online documentation}
|
1084
1084
|
*/
|
1085
1085
|
interface OnGuiConfirmedEvent extends EventData {
|
1086
1086
|
/**
|
@@ -1114,7 +1114,7 @@ declare module "factorio:runtime" {
|
|
1114
1114
|
}
|
1115
1115
|
/**
|
1116
1116
|
* Called when {@link LuaGuiElement} element value is changed (related to choose element buttons).
|
1117
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1117
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_gui_elem_changed Online documentation}
|
1118
1118
|
*/
|
1119
1119
|
interface OnGuiElemChangedEvent extends EventData {
|
1120
1120
|
/**
|
@@ -1136,7 +1136,7 @@ declare module "factorio:runtime" {
|
|
1136
1136
|
}
|
1137
1137
|
/**
|
1138
1138
|
* Called when {@link LuaGuiElement} is hovered by the mouse.
|
1139
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1139
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_gui_hover Online documentation}
|
1140
1140
|
*/
|
1141
1141
|
interface OnGuiHoverEvent extends EventData {
|
1142
1142
|
/**
|
@@ -1158,7 +1158,7 @@ declare module "factorio:runtime" {
|
|
1158
1158
|
}
|
1159
1159
|
/**
|
1160
1160
|
* Called when the player's cursor leaves a {@link LuaGuiElement} that was previously hovered.
|
1161
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1161
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_gui_leave Online documentation}
|
1162
1162
|
*/
|
1163
1163
|
interface OnGuiLeaveEvent extends EventData {
|
1164
1164
|
/**
|
@@ -1180,7 +1180,7 @@ declare module "factorio:runtime" {
|
|
1180
1180
|
}
|
1181
1181
|
/**
|
1182
1182
|
* Called when {@link LuaGuiElement} element location is changed (related to frames in `player.gui.screen`).
|
1183
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1183
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_gui_location_changed Online documentation}
|
1184
1184
|
*/
|
1185
1185
|
interface OnGuiLocationChangedEvent extends EventData {
|
1186
1186
|
/**
|
@@ -1202,7 +1202,7 @@ declare module "factorio:runtime" {
|
|
1202
1202
|
}
|
1203
1203
|
/**
|
1204
1204
|
* Called when the player opens a GUI.
|
1205
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1205
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_gui_opened Online documentation}
|
1206
1206
|
*/
|
1207
1207
|
interface OnGuiOpenedEvent extends EventData {
|
1208
1208
|
/**
|
@@ -1248,7 +1248,7 @@ declare module "factorio:runtime" {
|
|
1248
1248
|
}
|
1249
1249
|
/**
|
1250
1250
|
* Called when {@link LuaGuiElement} selected tab is changed (related to tabbed-panes).
|
1251
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1251
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_gui_selected_tab_changed Online documentation}
|
1252
1252
|
*/
|
1253
1253
|
interface OnGuiSelectedTabChangedEvent extends EventData {
|
1254
1254
|
/**
|
@@ -1270,7 +1270,7 @@ declare module "factorio:runtime" {
|
|
1270
1270
|
}
|
1271
1271
|
/**
|
1272
1272
|
* Called when {@link LuaGuiElement} selection state is changed (related to drop-downs and listboxes).
|
1273
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1273
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_gui_selection_state_changed Online documentation}
|
1274
1274
|
*/
|
1275
1275
|
interface OnGuiSelectionStateChangedEvent extends EventData {
|
1276
1276
|
/**
|
@@ -1292,7 +1292,7 @@ declare module "factorio:runtime" {
|
|
1292
1292
|
}
|
1293
1293
|
/**
|
1294
1294
|
* Called when {@link LuaGuiElement} switch state is changed (related to switches).
|
1295
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1295
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_gui_switch_state_changed Online documentation}
|
1296
1296
|
*/
|
1297
1297
|
interface OnGuiSwitchStateChangedEvent extends EventData {
|
1298
1298
|
/**
|
@@ -1314,7 +1314,7 @@ declare module "factorio:runtime" {
|
|
1314
1314
|
}
|
1315
1315
|
/**
|
1316
1316
|
* Called when {@link LuaGuiElement} text is changed by the player.
|
1317
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1317
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_gui_text_changed Online documentation}
|
1318
1318
|
*/
|
1319
1319
|
interface OnGuiTextChangedEvent extends EventData {
|
1320
1320
|
/**
|
@@ -1340,7 +1340,7 @@ declare module "factorio:runtime" {
|
|
1340
1340
|
}
|
1341
1341
|
/**
|
1342
1342
|
* Called when {@link LuaGuiElement} slider value is changed (related to the slider element).
|
1343
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1343
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_gui_value_changed Online documentation}
|
1344
1344
|
*/
|
1345
1345
|
interface OnGuiValueChangedEvent extends EventData {
|
1346
1346
|
/**
|
@@ -1362,7 +1362,7 @@ declare module "factorio:runtime" {
|
|
1362
1362
|
}
|
1363
1363
|
/**
|
1364
1364
|
* Called when a land mine is armed.
|
1365
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1365
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_land_mine_armed Online documentation}
|
1366
1366
|
*/
|
1367
1367
|
interface OnLandMineArmedEvent extends EventData {
|
1368
1368
|
readonly mine: LuaEntity
|
@@ -1377,7 +1377,7 @@ declare module "factorio:runtime" {
|
|
1377
1377
|
}
|
1378
1378
|
/**
|
1379
1379
|
* Called when a custom {@link import("factorio:prototype").ShortcutPrototype Lua shortcut} is pressed.
|
1380
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1380
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_lua_shortcut Online documentation}
|
1381
1381
|
*/
|
1382
1382
|
interface OnLuaShortcutEvent extends EventData {
|
1383
1383
|
readonly player_index: PlayerIndex
|
@@ -1398,7 +1398,7 @@ declare module "factorio:runtime" {
|
|
1398
1398
|
* Called when an entity is marked for deconstruction with the Deconstruction planner or via script.
|
1399
1399
|
*
|
1400
1400
|
* Event filter: [LuaEntityMarkedForDeconstructionEventFilter](LuaEntityMarkedForDeconstructionEventFilter]
|
1401
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1401
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_marked_for_deconstruction Online documentation}
|
1402
1402
|
*/
|
1403
1403
|
interface OnMarkedForDeconstructionEvent extends EventData {
|
1404
1404
|
readonly entity: LuaEntity
|
@@ -1416,7 +1416,7 @@ declare module "factorio:runtime" {
|
|
1416
1416
|
* Called when an entity is marked for upgrade with the Upgrade planner or via script.
|
1417
1417
|
*
|
1418
1418
|
* Event filter: [LuaEntityMarkedForUpgradeEventFilter](LuaEntityMarkedForUpgradeEventFilter]
|
1419
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1419
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_marked_for_upgrade Online documentation}
|
1420
1420
|
*/
|
1421
1421
|
interface OnMarkedForUpgradeEvent extends EventData {
|
1422
1422
|
readonly entity: LuaEntity
|
@@ -1437,7 +1437,7 @@ declare module "factorio:runtime" {
|
|
1437
1437
|
}
|
1438
1438
|
/**
|
1439
1439
|
* Called after a player purchases some offer from a `market` entity.
|
1440
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1440
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_market_item_purchased Online documentation}
|
1441
1441
|
*/
|
1442
1442
|
interface OnMarketItemPurchasedEvent extends EventData {
|
1443
1443
|
/**
|
@@ -1467,7 +1467,7 @@ declare module "factorio:runtime" {
|
|
1467
1467
|
}
|
1468
1468
|
/**
|
1469
1469
|
* Called when the player uses the 'Open item GUI' control on an item defined with the 'mod-openable' flag
|
1470
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1470
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_mod_item_opened Online documentation}
|
1471
1471
|
*/
|
1472
1472
|
interface OnModItemOpenedEvent extends EventData {
|
1473
1473
|
/**
|
@@ -1489,7 +1489,7 @@ declare module "factorio:runtime" {
|
|
1489
1489
|
}
|
1490
1490
|
/**
|
1491
1491
|
* Called directly after a permission group is added.
|
1492
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1492
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_permission_group_added Online documentation}
|
1493
1493
|
*/
|
1494
1494
|
interface OnPermissionGroupAddedEvent extends EventData {
|
1495
1495
|
/**
|
@@ -1511,7 +1511,7 @@ declare module "factorio:runtime" {
|
|
1511
1511
|
}
|
1512
1512
|
/**
|
1513
1513
|
* Called directly after a permission group is deleted.
|
1514
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1514
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_permission_group_deleted Online documentation}
|
1515
1515
|
*/
|
1516
1516
|
interface OnPermissionGroupDeletedEvent extends EventData {
|
1517
1517
|
/**
|
@@ -1537,7 +1537,7 @@ declare module "factorio:runtime" {
|
|
1537
1537
|
}
|
1538
1538
|
/**
|
1539
1539
|
* Called directly after a permission group is edited in some way.
|
1540
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1540
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_permission_group_edited Online documentation}
|
1541
1541
|
*/
|
1542
1542
|
interface OnPermissionGroupEditedEvent extends EventData {
|
1543
1543
|
/**
|
@@ -1586,7 +1586,7 @@ declare module "factorio:runtime" {
|
|
1586
1586
|
}
|
1587
1587
|
/**
|
1588
1588
|
* Called directly after a permission string is imported.
|
1589
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1589
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_permission_string_imported Online documentation}
|
1590
1590
|
*/
|
1591
1591
|
interface OnPermissionStringImportedEvent extends EventData {
|
1592
1592
|
/**
|
@@ -1604,7 +1604,7 @@ declare module "factorio:runtime" {
|
|
1604
1604
|
}
|
1605
1605
|
/**
|
1606
1606
|
* Called when a player picks up an item.
|
1607
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1607
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_picked_up_item Online documentation}
|
1608
1608
|
*/
|
1609
1609
|
interface OnPickedUpItemEvent extends EventData {
|
1610
1610
|
readonly item_stack: SimpleItemStack
|
@@ -1620,7 +1620,7 @@ declare module "factorio:runtime" {
|
|
1620
1620
|
}
|
1621
1621
|
/**
|
1622
1622
|
* Called after a player alt-reverse-selects an area with a selection-tool item.
|
1623
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1623
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_alt_reverse_selected_area Online documentation}
|
1624
1624
|
*/
|
1625
1625
|
interface OnPlayerAltReverseSelectedAreaEvent extends EventData {
|
1626
1626
|
/**
|
@@ -1658,7 +1658,7 @@ declare module "factorio:runtime" {
|
|
1658
1658
|
}
|
1659
1659
|
/**
|
1660
1660
|
* Called after a player alt-selects an area with a selection-tool item.
|
1661
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1661
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_alt_selected_area Online documentation}
|
1662
1662
|
*/
|
1663
1663
|
interface OnPlayerAltSelectedAreaEvent extends EventData {
|
1664
1664
|
/**
|
@@ -1696,7 +1696,7 @@ declare module "factorio:runtime" {
|
|
1696
1696
|
}
|
1697
1697
|
/**
|
1698
1698
|
* Called after a players ammo inventory changed in some way.
|
1699
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1699
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_ammo_inventory_changed Online documentation}
|
1700
1700
|
*/
|
1701
1701
|
interface OnPlayerAmmoInventoryChangedEvent extends EventData {
|
1702
1702
|
readonly player_index: PlayerIndex
|
@@ -1711,7 +1711,7 @@ declare module "factorio:runtime" {
|
|
1711
1711
|
}
|
1712
1712
|
/**
|
1713
1713
|
* Called after a players armor inventory changed in some way.
|
1714
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1714
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_armor_inventory_changed Online documentation}
|
1715
1715
|
*/
|
1716
1716
|
interface OnPlayerArmorInventoryChangedEvent extends EventData {
|
1717
1717
|
readonly player_index: PlayerIndex
|
@@ -1726,7 +1726,7 @@ declare module "factorio:runtime" {
|
|
1726
1726
|
}
|
1727
1727
|
/**
|
1728
1728
|
* Called when a player is banned.
|
1729
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1729
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_banned Online documentation}
|
1730
1730
|
*/
|
1731
1731
|
interface OnPlayerBannedEvent extends EventData {
|
1732
1732
|
/**
|
@@ -1756,7 +1756,7 @@ declare module "factorio:runtime" {
|
|
1756
1756
|
}
|
1757
1757
|
/**
|
1758
1758
|
* Called after a player builds tiles.
|
1759
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1759
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_built_tile Online documentation}
|
1760
1760
|
*/
|
1761
1761
|
interface OnPlayerBuiltTileEvent extends EventData {
|
1762
1762
|
readonly player_index: PlayerIndex
|
@@ -1791,7 +1791,7 @@ declare module "factorio:runtime" {
|
|
1791
1791
|
}
|
1792
1792
|
/**
|
1793
1793
|
* Called when a player cancels crafting.
|
1794
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1794
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_cancelled_crafting Online documentation}
|
1795
1795
|
*/
|
1796
1796
|
interface OnPlayerCancelledCraftingEvent extends EventData {
|
1797
1797
|
/**
|
@@ -1821,7 +1821,7 @@ declare module "factorio:runtime" {
|
|
1821
1821
|
}
|
1822
1822
|
/**
|
1823
1823
|
* Called after a player changes forces.
|
1824
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1824
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_changed_force Online documentation}
|
1825
1825
|
*/
|
1826
1826
|
interface OnPlayerChangedForceEvent extends EventData {
|
1827
1827
|
/**
|
@@ -1843,7 +1843,7 @@ declare module "factorio:runtime" {
|
|
1843
1843
|
}
|
1844
1844
|
/**
|
1845
1845
|
* Called when the tile position a player is located at changes.
|
1846
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1846
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_changed_position Online documentation}
|
1847
1847
|
*/
|
1848
1848
|
interface OnPlayerChangedPositionEvent extends EventData {
|
1849
1849
|
/**
|
@@ -1863,7 +1863,7 @@ declare module "factorio:runtime" {
|
|
1863
1863
|
* Called after a player changes surfaces.
|
1864
1864
|
*
|
1865
1865
|
* In the instance a player is moved off a surface due to it being deleted this is not called.
|
1866
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1866
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_changed_surface Online documentation}
|
1867
1867
|
*/
|
1868
1868
|
interface OnPlayerChangedSurfaceEvent extends EventData {
|
1869
1869
|
/**
|
@@ -1885,7 +1885,7 @@ declare module "factorio:runtime" {
|
|
1885
1885
|
}
|
1886
1886
|
/**
|
1887
1887
|
* Called when cheat mode is disabled on a player.
|
1888
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1888
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_cheat_mode_disabled Online documentation}
|
1889
1889
|
*/
|
1890
1890
|
interface OnPlayerCheatModeDisabledEvent extends EventData {
|
1891
1891
|
/**
|
@@ -1903,7 +1903,7 @@ declare module "factorio:runtime" {
|
|
1903
1903
|
}
|
1904
1904
|
/**
|
1905
1905
|
* Called when cheat mode is enabled on a player.
|
1906
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1906
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_cheat_mode_enabled Online documentation}
|
1907
1907
|
*/
|
1908
1908
|
interface OnPlayerCheatModeEnabledEvent extends EventData {
|
1909
1909
|
/**
|
@@ -1921,7 +1921,7 @@ declare module "factorio:runtime" {
|
|
1921
1921
|
}
|
1922
1922
|
/**
|
1923
1923
|
* Called when a player clicks a gps tag
|
1924
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1924
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_clicked_gps_tag Online documentation}
|
1925
1925
|
*/
|
1926
1926
|
interface OnPlayerClickedGpsTagEvent extends EventData {
|
1927
1927
|
/**
|
@@ -1947,7 +1947,7 @@ declare module "factorio:runtime" {
|
|
1947
1947
|
}
|
1948
1948
|
/**
|
1949
1949
|
* Called when a player clicks the "confirm" button in the configure Blueprint GUI.
|
1950
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1950
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_configured_blueprint Online documentation}
|
1951
1951
|
*/
|
1952
1952
|
interface OnPlayerConfiguredBlueprintEvent extends EventData {
|
1953
1953
|
/**
|
@@ -1965,7 +1965,7 @@ declare module "factorio:runtime" {
|
|
1965
1965
|
}
|
1966
1966
|
/**
|
1967
1967
|
* Called when a player configures spidertron remote to be connected with a given spidertron
|
1968
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1968
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_configured_spider_remote Online documentation}
|
1969
1969
|
*/
|
1970
1970
|
interface OnPlayerConfiguredSpiderRemoteEvent extends EventData {
|
1971
1971
|
/**
|
@@ -1987,7 +1987,7 @@ declare module "factorio:runtime" {
|
|
1987
1987
|
}
|
1988
1988
|
/**
|
1989
1989
|
* 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}).
|
1990
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1990
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_crafted_item Online documentation}
|
1991
1991
|
*/
|
1992
1992
|
interface OnPlayerCraftedItemEvent extends EventData {
|
1993
1993
|
/**
|
@@ -2013,7 +2013,7 @@ declare module "factorio:runtime" {
|
|
2013
2013
|
}
|
2014
2014
|
/**
|
2015
2015
|
* Called after the player was created.
|
2016
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2016
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_created Online documentation}
|
2017
2017
|
*/
|
2018
2018
|
interface OnPlayerCreatedEvent extends EventData {
|
2019
2019
|
readonly player_index: PlayerIndex
|
@@ -2030,7 +2030,7 @@ declare module "factorio:runtime" {
|
|
2030
2030
|
* Called after a player's {@link LuaControl#cursor_stack cursor stack} changed in some way.
|
2031
2031
|
*
|
2032
2032
|
* This is fired in the same tick that the change happens, but not instantly.
|
2033
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2033
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_cursor_stack_changed Online documentation}
|
2034
2034
|
*/
|
2035
2035
|
interface OnPlayerCursorStackChangedEvent extends EventData {
|
2036
2036
|
readonly player_index: PlayerIndex
|
@@ -2045,7 +2045,7 @@ declare module "factorio:runtime" {
|
|
2045
2045
|
}
|
2046
2046
|
/**
|
2047
2047
|
* Called when a player selects an area with a deconstruction planner.
|
2048
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2048
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_deconstructed_area Online documentation}
|
2049
2049
|
*/
|
2050
2050
|
interface OnPlayerDeconstructedAreaEvent extends EventData {
|
2051
2051
|
/**
|
@@ -2079,7 +2079,7 @@ declare module "factorio:runtime" {
|
|
2079
2079
|
}
|
2080
2080
|
/**
|
2081
2081
|
* Called when a player is demoted.
|
2082
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2082
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_demoted Online documentation}
|
2083
2083
|
*/
|
2084
2084
|
interface OnPlayerDemotedEvent extends EventData {
|
2085
2085
|
/**
|
@@ -2097,7 +2097,7 @@ declare module "factorio:runtime" {
|
|
2097
2097
|
}
|
2098
2098
|
/**
|
2099
2099
|
* Called after a player dies.
|
2100
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2100
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_died Online documentation}
|
2101
2101
|
*/
|
2102
2102
|
interface OnPlayerDiedEvent extends EventData {
|
2103
2103
|
readonly player_index: PlayerIndex
|
@@ -2113,7 +2113,7 @@ declare module "factorio:runtime" {
|
|
2113
2113
|
}
|
2114
2114
|
/**
|
2115
2115
|
* Called when the display resolution changes for a given player.
|
2116
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2116
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_display_resolution_changed Online documentation}
|
2117
2117
|
*/
|
2118
2118
|
interface OnPlayerDisplayResolutionChangedEvent extends EventData {
|
2119
2119
|
/**
|
@@ -2135,7 +2135,7 @@ declare module "factorio:runtime" {
|
|
2135
2135
|
}
|
2136
2136
|
/**
|
2137
2137
|
* Called when the display scale changes for a given player.
|
2138
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2138
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_display_scale_changed Online documentation}
|
2139
2139
|
*/
|
2140
2140
|
interface OnPlayerDisplayScaleChangedEvent extends EventData {
|
2141
2141
|
/**
|
@@ -2159,7 +2159,7 @@ declare module "factorio:runtime" {
|
|
2159
2159
|
* Called when the player's driving state has changed, meaning a player has either entered or left a vehicle.
|
2160
2160
|
*
|
2161
2161
|
* This event is not raised when the player is ejected from a vehicle due to it being destroyed.
|
2162
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2162
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_driving_changed_state Online documentation}
|
2163
2163
|
*/
|
2164
2164
|
interface OnPlayerDrivingChangedStateEvent extends EventData {
|
2165
2165
|
readonly player_index: PlayerIndex
|
@@ -2178,7 +2178,7 @@ declare module "factorio:runtime" {
|
|
2178
2178
|
}
|
2179
2179
|
/**
|
2180
2180
|
* Called when a player drops an item on the ground.
|
2181
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2181
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_dropped_item Online documentation}
|
2182
2182
|
*/
|
2183
2183
|
interface OnPlayerDroppedItemEvent extends EventData {
|
2184
2184
|
readonly player_index: PlayerIndex
|
@@ -2197,7 +2197,7 @@ declare module "factorio:runtime" {
|
|
2197
2197
|
}
|
2198
2198
|
/**
|
2199
2199
|
* Called when a player fast-transfers something to or from an entity.
|
2200
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2200
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_fast_transferred Online documentation}
|
2201
2201
|
*/
|
2202
2202
|
interface OnPlayerFastTransferredEvent extends EventData {
|
2203
2203
|
/**
|
@@ -2227,7 +2227,7 @@ declare module "factorio:runtime" {
|
|
2227
2227
|
}
|
2228
2228
|
/**
|
2229
2229
|
* Called after player flushed fluid
|
2230
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2230
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_flushed_fluid Online documentation}
|
2231
2231
|
*/
|
2232
2232
|
interface OnPlayerFlushedFluidEvent extends EventData {
|
2233
2233
|
/**
|
@@ -2261,7 +2261,7 @@ declare module "factorio:runtime" {
|
|
2261
2261
|
}
|
2262
2262
|
/**
|
2263
2263
|
* Called after a players gun inventory changed in some way.
|
2264
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2264
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_gun_inventory_changed Online documentation}
|
2265
2265
|
*/
|
2266
2266
|
interface OnPlayerGunInventoryChangedEvent extends EventData {
|
2267
2267
|
readonly player_index: PlayerIndex
|
@@ -2276,7 +2276,7 @@ declare module "factorio:runtime" {
|
|
2276
2276
|
}
|
2277
2277
|
/**
|
2278
2278
|
* Called when a player's input method changes. See {@link LuaPlayer#input_method LuaPlayer::input_method}.
|
2279
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2279
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_input_method_changed Online documentation}
|
2280
2280
|
*/
|
2281
2281
|
interface OnPlayerInputMethodChangedEvent extends EventData {
|
2282
2282
|
/**
|
@@ -2294,7 +2294,7 @@ declare module "factorio:runtime" {
|
|
2294
2294
|
}
|
2295
2295
|
/**
|
2296
2296
|
* 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.
|
2297
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2297
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_joined_game Online documentation}
|
2298
2298
|
*/
|
2299
2299
|
interface OnPlayerJoinedGameEvent extends EventData {
|
2300
2300
|
readonly player_index: PlayerIndex
|
@@ -2309,7 +2309,7 @@ declare module "factorio:runtime" {
|
|
2309
2309
|
}
|
2310
2310
|
/**
|
2311
2311
|
* Called when a player is kicked.
|
2312
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2312
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_kicked Online documentation}
|
2313
2313
|
*/
|
2314
2314
|
interface OnPlayerKickedEvent extends EventData {
|
2315
2315
|
/**
|
@@ -2335,7 +2335,7 @@ declare module "factorio:runtime" {
|
|
2335
2335
|
}
|
2336
2336
|
/**
|
2337
2337
|
* 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.
|
2338
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2338
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_left_game Online documentation}
|
2339
2339
|
*/
|
2340
2340
|
interface OnPlayerLeftGameEvent extends EventData {
|
2341
2341
|
readonly player_index: PlayerIndex
|
@@ -2351,7 +2351,7 @@ declare module "factorio:runtime" {
|
|
2351
2351
|
}
|
2352
2352
|
/**
|
2353
2353
|
* Called after a players main inventory changed in some way.
|
2354
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2354
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_main_inventory_changed Online documentation}
|
2355
2355
|
*/
|
2356
2356
|
interface OnPlayerMainInventoryChangedEvent extends EventData {
|
2357
2357
|
readonly player_index: PlayerIndex
|
@@ -2372,7 +2372,7 @@ declare module "factorio:runtime" {
|
|
2372
2372
|
* 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.
|
2373
2373
|
*
|
2374
2374
|
* Event filter: [LuaPlayerMinedEntityEventFilter](LuaPlayerMinedEntityEventFilter]
|
2375
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2375
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_mined_entity Online documentation}
|
2376
2376
|
*/
|
2377
2377
|
interface OnPlayerMinedEntityEvent extends EventData {
|
2378
2378
|
/**
|
@@ -2398,7 +2398,7 @@ declare module "factorio:runtime" {
|
|
2398
2398
|
}
|
2399
2399
|
/**
|
2400
2400
|
* Called when the player mines something.
|
2401
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2401
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_mined_item Online documentation}
|
2402
2402
|
*/
|
2403
2403
|
interface OnPlayerMinedItemEvent extends EventData {
|
2404
2404
|
/**
|
@@ -2417,7 +2417,7 @@ declare module "factorio:runtime" {
|
|
2417
2417
|
}
|
2418
2418
|
/**
|
2419
2419
|
* Called after a player mines tiles.
|
2420
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2420
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_mined_tile Online documentation}
|
2421
2421
|
*/
|
2422
2422
|
interface OnPlayerMinedTileEvent extends EventData {
|
2423
2423
|
readonly player_index: PlayerIndex
|
@@ -2440,7 +2440,7 @@ declare module "factorio:runtime" {
|
|
2440
2440
|
}
|
2441
2441
|
/**
|
2442
2442
|
* Called when a player is muted.
|
2443
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2443
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_muted Online documentation}
|
2444
2444
|
*/
|
2445
2445
|
interface OnPlayerMutedEvent extends EventData {
|
2446
2446
|
/**
|
@@ -2458,7 +2458,7 @@ declare module "factorio:runtime" {
|
|
2458
2458
|
}
|
2459
2459
|
/**
|
2460
2460
|
* Called when a player invokes the "smart pipette" over an entity.
|
2461
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2461
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_pipette Online documentation}
|
2462
2462
|
*/
|
2463
2463
|
interface OnPlayerPipetteEvent extends EventData {
|
2464
2464
|
/**
|
@@ -2484,7 +2484,7 @@ declare module "factorio:runtime" {
|
|
2484
2484
|
}
|
2485
2485
|
/**
|
2486
2486
|
* Called after the player puts equipment in an equipment grid
|
2487
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2487
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_placed_equipment Online documentation}
|
2488
2488
|
*/
|
2489
2489
|
interface OnPlayerPlacedEquipmentEvent extends EventData {
|
2490
2490
|
readonly player_index: PlayerIndex
|
@@ -2507,7 +2507,7 @@ declare module "factorio:runtime" {
|
|
2507
2507
|
}
|
2508
2508
|
/**
|
2509
2509
|
* Called when a player is promoted.
|
2510
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2510
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_promoted Online documentation}
|
2511
2511
|
*/
|
2512
2512
|
interface OnPlayerPromotedEvent extends EventData {
|
2513
2513
|
/**
|
@@ -2525,7 +2525,7 @@ declare module "factorio:runtime" {
|
|
2525
2525
|
}
|
2526
2526
|
/**
|
2527
2527
|
* 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.
|
2528
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2528
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_removed Online documentation}
|
2529
2529
|
*/
|
2530
2530
|
interface OnPlayerRemovedEvent extends EventData {
|
2531
2531
|
/**
|
@@ -2543,7 +2543,7 @@ declare module "factorio:runtime" {
|
|
2543
2543
|
}
|
2544
2544
|
/**
|
2545
2545
|
* Called after the player removes equipment from an equipment grid
|
2546
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2546
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_removed_equipment Online documentation}
|
2547
2547
|
*/
|
2548
2548
|
interface OnPlayerRemovedEquipmentEvent extends EventData {
|
2549
2549
|
readonly player_index: PlayerIndex
|
@@ -2572,7 +2572,7 @@ declare module "factorio:runtime" {
|
|
2572
2572
|
* Called when a player repairs an entity.
|
2573
2573
|
*
|
2574
2574
|
* Event filter: [LuaPlayerRepairedEntityEventFilter](LuaPlayerRepairedEntityEventFilter]
|
2575
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2575
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_repaired_entity Online documentation}
|
2576
2576
|
*/
|
2577
2577
|
interface OnPlayerRepairedEntityEvent extends EventData {
|
2578
2578
|
readonly player_index: PlayerIndex
|
@@ -2588,7 +2588,7 @@ declare module "factorio:runtime" {
|
|
2588
2588
|
}
|
2589
2589
|
/**
|
2590
2590
|
* Called after a player respawns.
|
2591
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2591
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_respawned Online documentation}
|
2592
2592
|
*/
|
2593
2593
|
interface OnPlayerRespawnedEvent extends EventData {
|
2594
2594
|
readonly player_index: PlayerIndex
|
@@ -2607,7 +2607,7 @@ declare module "factorio:runtime" {
|
|
2607
2607
|
}
|
2608
2608
|
/**
|
2609
2609
|
* Called after a player reverse-selects an area with a selection-tool item.
|
2610
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2610
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_reverse_selected_area Online documentation}
|
2611
2611
|
*/
|
2612
2612
|
interface OnPlayerReverseSelectedAreaEvent extends EventData {
|
2613
2613
|
/**
|
@@ -2645,7 +2645,7 @@ declare module "factorio:runtime" {
|
|
2645
2645
|
}
|
2646
2646
|
/**
|
2647
2647
|
* 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.
|
2648
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2648
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_rotated_entity Online documentation}
|
2649
2649
|
*/
|
2650
2650
|
interface OnPlayerRotatedEntityEvent extends EventData {
|
2651
2651
|
/**
|
@@ -2668,7 +2668,7 @@ declare module "factorio:runtime" {
|
|
2668
2668
|
}
|
2669
2669
|
/**
|
2670
2670
|
* Called after a player selects an area with a selection-tool item.
|
2671
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2671
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_selected_area Online documentation}
|
2672
2672
|
*/
|
2673
2673
|
interface OnPlayerSelectedAreaEvent extends EventData {
|
2674
2674
|
/**
|
@@ -2706,7 +2706,7 @@ declare module "factorio:runtime" {
|
|
2706
2706
|
}
|
2707
2707
|
/**
|
2708
2708
|
* Called when a player sets a quickbar slot to anything (new value, or set to empty).
|
2709
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2709
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_set_quick_bar_slot Online documentation}
|
2710
2710
|
*/
|
2711
2711
|
interface OnPlayerSetQuickBarSlotEvent extends EventData {
|
2712
2712
|
readonly player_index: PlayerIndex
|
@@ -2721,7 +2721,7 @@ declare module "factorio:runtime" {
|
|
2721
2721
|
}
|
2722
2722
|
/**
|
2723
2723
|
* Called when a player selects an area with a blueprint.
|
2724
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2724
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_setup_blueprint Online documentation}
|
2725
2725
|
*/
|
2726
2726
|
interface OnPlayerSetupBlueprintEvent extends EventData {
|
2727
2727
|
/**
|
@@ -2759,7 +2759,7 @@ declare module "factorio:runtime" {
|
|
2759
2759
|
}
|
2760
2760
|
/**
|
2761
2761
|
* Called when a player toggles alt mode, also known as "show entity info".
|
2762
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2762
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_toggled_alt_mode Online documentation}
|
2763
2763
|
*/
|
2764
2764
|
interface OnPlayerToggledAltModeEvent extends EventData {
|
2765
2765
|
readonly player_index: PlayerIndex
|
@@ -2778,7 +2778,7 @@ declare module "factorio:runtime" {
|
|
2778
2778
|
}
|
2779
2779
|
/**
|
2780
2780
|
* Called when a player toggles the map editor on or off.
|
2781
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2781
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_toggled_map_editor Online documentation}
|
2782
2782
|
*/
|
2783
2783
|
interface OnPlayerToggledMapEditorEvent extends EventData {
|
2784
2784
|
readonly player_index: PlayerIndex
|
@@ -2793,7 +2793,7 @@ declare module "factorio:runtime" {
|
|
2793
2793
|
}
|
2794
2794
|
/**
|
2795
2795
|
* Called after a players trash inventory changed in some way.
|
2796
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2796
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_trash_inventory_changed Online documentation}
|
2797
2797
|
*/
|
2798
2798
|
interface OnPlayerTrashInventoryChangedEvent extends EventData {
|
2799
2799
|
readonly player_index: PlayerIndex
|
@@ -2808,7 +2808,7 @@ declare module "factorio:runtime" {
|
|
2808
2808
|
}
|
2809
2809
|
/**
|
2810
2810
|
* Called when a player is un-banned.
|
2811
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2811
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_unbanned Online documentation}
|
2812
2812
|
*/
|
2813
2813
|
interface OnPlayerUnbannedEvent extends EventData {
|
2814
2814
|
/**
|
@@ -2838,7 +2838,7 @@ declare module "factorio:runtime" {
|
|
2838
2838
|
}
|
2839
2839
|
/**
|
2840
2840
|
* Called when a player is unmuted.
|
2841
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2841
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_unmuted Online documentation}
|
2842
2842
|
*/
|
2843
2843
|
interface OnPlayerUnmutedEvent extends EventData {
|
2844
2844
|
/**
|
@@ -2856,7 +2856,7 @@ declare module "factorio:runtime" {
|
|
2856
2856
|
}
|
2857
2857
|
/**
|
2858
2858
|
* Called when a player uses a capsule that results in some game action.
|
2859
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2859
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_used_capsule Online documentation}
|
2860
2860
|
*/
|
2861
2861
|
interface OnPlayerUsedCapsuleEvent extends EventData {
|
2862
2862
|
/**
|
@@ -2882,7 +2882,7 @@ declare module "factorio:runtime" {
|
|
2882
2882
|
}
|
2883
2883
|
/**
|
2884
2884
|
* Called when a player uses spidertron remote to send a spidertron to a given position
|
2885
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2885
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_player_used_spider_remote Online documentation}
|
2886
2886
|
*/
|
2887
2887
|
interface OnPlayerUsedSpiderRemoteEvent extends EventData {
|
2888
2888
|
/**
|
@@ -2914,7 +2914,7 @@ declare module "factorio:runtime" {
|
|
2914
2914
|
* Called after an entity dies.
|
2915
2915
|
*
|
2916
2916
|
* Event filter: [LuaPostEntityDiedEventFilter](LuaPostEntityDiedEventFilter]
|
2917
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2917
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_post_entity_died Online documentation}
|
2918
2918
|
*/
|
2919
2919
|
interface OnPostEntityDiedEvent extends EventData {
|
2920
2920
|
/**
|
@@ -2960,7 +2960,7 @@ declare module "factorio:runtime" {
|
|
2960
2960
|
}
|
2961
2961
|
/**
|
2962
2962
|
* Called when players uses an item to build something. Called before {@link OnBuiltEntityEvent on_built_entity}.
|
2963
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2963
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_build Online documentation}
|
2964
2964
|
*/
|
2965
2965
|
interface OnPreBuildEvent extends EventData {
|
2966
2966
|
/**
|
@@ -3002,7 +3002,7 @@ declare module "factorio:runtime" {
|
|
3002
3002
|
}
|
3003
3003
|
/**
|
3004
3004
|
* Called before one or more chunks are deleted using {@link LuaSurface#delete_chunk LuaSurface::delete_chunk}.
|
3005
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3005
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_chunk_deleted Online documentation}
|
3006
3006
|
*/
|
3007
3007
|
interface OnPreChunkDeletedEvent extends EventData {
|
3008
3008
|
readonly surface_index: SurfaceIndex
|
@@ -3021,7 +3021,7 @@ declare module "factorio:runtime" {
|
|
3021
3021
|
}
|
3022
3022
|
/**
|
3023
3023
|
* Called before entity copy-paste is done.
|
3024
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3024
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_entity_settings_pasted Online documentation}
|
3025
3025
|
*/
|
3026
3026
|
interface OnPreEntitySettingsPastedEvent extends EventData {
|
3027
3027
|
readonly player_index: PlayerIndex
|
@@ -3048,7 +3048,7 @@ declare module "factorio:runtime" {
|
|
3048
3048
|
* Also called for item request proxies before they are destroyed as a result of being marked for deconstruction.
|
3049
3049
|
*
|
3050
3050
|
* Event filter: [LuaPreGhostDeconstructedEventFilter](LuaPreGhostDeconstructedEventFilter]
|
3051
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3051
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_ghost_deconstructed Online documentation}
|
3052
3052
|
*/
|
3053
3053
|
interface OnPreGhostDeconstructedEvent extends EventData {
|
3054
3054
|
/**
|
@@ -3069,7 +3069,7 @@ declare module "factorio:runtime" {
|
|
3069
3069
|
* Called before a ghost entity is upgraded.
|
3070
3070
|
*
|
3071
3071
|
* Event filter: [LuaPreGhostUpgradedEventFilter](LuaPreGhostUpgradedEventFilter]
|
3072
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3072
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_ghost_upgraded Online documentation}
|
3073
3073
|
*/
|
3074
3074
|
interface OnPreGhostUpgradedEvent extends EventData {
|
3075
3075
|
/**
|
@@ -3089,7 +3089,7 @@ declare module "factorio:runtime" {
|
|
3089
3089
|
}
|
3090
3090
|
/**
|
3091
3091
|
* Called directly before a permission group is deleted.
|
3092
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3092
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_permission_group_deleted Online documentation}
|
3093
3093
|
*/
|
3094
3094
|
interface OnPrePermissionGroupDeletedEvent extends EventData {
|
3095
3095
|
/**
|
@@ -3111,7 +3111,7 @@ declare module "factorio:runtime" {
|
|
3111
3111
|
}
|
3112
3112
|
/**
|
3113
3113
|
* Called directly before a permission string is imported.
|
3114
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3114
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_permission_string_imported Online documentation}
|
3115
3115
|
*/
|
3116
3116
|
interface OnPrePermissionStringImportedEvent extends EventData {
|
3117
3117
|
/**
|
@@ -3129,7 +3129,7 @@ declare module "factorio:runtime" {
|
|
3129
3129
|
}
|
3130
3130
|
/**
|
3131
3131
|
* Called when a player queues something to be crafted.
|
3132
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3132
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_player_crafted_item Online documentation}
|
3133
3133
|
*/
|
3134
3134
|
interface OnPrePlayerCraftedItemEvent extends EventData {
|
3135
3135
|
/**
|
@@ -3159,7 +3159,7 @@ declare module "factorio:runtime" {
|
|
3159
3159
|
}
|
3160
3160
|
/**
|
3161
3161
|
* Called before a players dies.
|
3162
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3162
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_player_died Online documentation}
|
3163
3163
|
*/
|
3164
3164
|
interface OnPrePlayerDiedEvent extends EventData {
|
3165
3165
|
readonly player_index: PlayerIndex
|
@@ -3175,7 +3175,7 @@ declare module "factorio:runtime" {
|
|
3175
3175
|
}
|
3176
3176
|
/**
|
3177
3177
|
* Called before a player leaves the game.
|
3178
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3178
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_player_left_game Online documentation}
|
3179
3179
|
*/
|
3180
3180
|
interface OnPrePlayerLeftGameEvent extends EventData {
|
3181
3181
|
readonly player_index: PlayerIndex
|
@@ -3193,7 +3193,7 @@ declare module "factorio:runtime" {
|
|
3193
3193
|
* 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.
|
3194
3194
|
*
|
3195
3195
|
* Event filter: [LuaPrePlayerMinedEntityEventFilter](LuaPrePlayerMinedEntityEventFilter]
|
3196
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3196
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_player_mined_item Online documentation}
|
3197
3197
|
*/
|
3198
3198
|
interface OnPrePlayerMinedItemEvent extends EventData {
|
3199
3199
|
/**
|
@@ -3212,7 +3212,7 @@ declare module "factorio:runtime" {
|
|
3212
3212
|
}
|
3213
3213
|
/**
|
3214
3214
|
* 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.
|
3215
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3215
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_player_removed Online documentation}
|
3216
3216
|
*/
|
3217
3217
|
interface OnPrePlayerRemovedEvent extends EventData {
|
3218
3218
|
/**
|
@@ -3230,7 +3230,7 @@ declare module "factorio:runtime" {
|
|
3230
3230
|
}
|
3231
3231
|
/**
|
3232
3232
|
* Called before a player toggles the map editor on or off.
|
3233
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3233
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_player_toggled_map_editor Online documentation}
|
3234
3234
|
*/
|
3235
3235
|
interface OnPrePlayerToggledMapEditorEvent extends EventData {
|
3236
3236
|
readonly player_index: PlayerIndex
|
@@ -3245,7 +3245,7 @@ declare module "factorio:runtime" {
|
|
3245
3245
|
}
|
3246
3246
|
/**
|
3247
3247
|
* Called directly before a robot explodes cliffs.
|
3248
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3248
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_robot_exploded_cliff Online documentation}
|
3249
3249
|
*/
|
3250
3250
|
interface OnPreRobotExplodedCliffEvent extends EventData {
|
3251
3251
|
readonly robot: LuaEntity
|
@@ -3265,7 +3265,7 @@ declare module "factorio:runtime" {
|
|
3265
3265
|
}
|
3266
3266
|
/**
|
3267
3267
|
* Called just before a script inventory is resized.
|
3268
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3268
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_script_inventory_resized Online documentation}
|
3269
3269
|
*/
|
3270
3270
|
interface OnPreScriptInventoryResizedEvent extends EventData {
|
3271
3271
|
/**
|
@@ -3296,7 +3296,7 @@ declare module "factorio:runtime" {
|
|
3296
3296
|
}
|
3297
3297
|
/**
|
3298
3298
|
* Called just before a surface is cleared (all entities removed and all chunks deleted).
|
3299
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3299
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_surface_cleared Online documentation}
|
3300
3300
|
*/
|
3301
3301
|
interface OnPreSurfaceClearedEvent extends EventData {
|
3302
3302
|
readonly surface_index: SurfaceIndex
|
@@ -3311,7 +3311,7 @@ declare module "factorio:runtime" {
|
|
3311
3311
|
}
|
3312
3312
|
/**
|
3313
3313
|
* Called just before a surface is deleted.
|
3314
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3314
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_pre_surface_deleted Online documentation}
|
3315
3315
|
*/
|
3316
3316
|
interface OnPreSurfaceDeletedEvent extends EventData {
|
3317
3317
|
readonly surface_index: SurfaceIndex
|
@@ -3326,7 +3326,7 @@ declare module "factorio:runtime" {
|
|
3326
3326
|
}
|
3327
3327
|
/**
|
3328
3328
|
* Called when research is cancelled.
|
3329
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3329
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_research_cancelled Online documentation}
|
3330
3330
|
*/
|
3331
3331
|
interface OnResearchCancelledEvent extends EventData {
|
3332
3332
|
/**
|
@@ -3348,7 +3348,7 @@ declare module "factorio:runtime" {
|
|
3348
3348
|
}
|
3349
3349
|
/**
|
3350
3350
|
* Called when a research finishes.
|
3351
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3351
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_research_finished Online documentation}
|
3352
3352
|
*/
|
3353
3353
|
interface OnResearchFinishedEvent extends EventData {
|
3354
3354
|
/**
|
@@ -3370,7 +3370,7 @@ declare module "factorio:runtime" {
|
|
3370
3370
|
}
|
3371
3371
|
/**
|
3372
3372
|
* Called when a research is reversed (unresearched).
|
3373
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3373
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_research_reversed Online documentation}
|
3374
3374
|
*/
|
3375
3375
|
interface OnResearchReversedEvent extends EventData {
|
3376
3376
|
/**
|
@@ -3392,7 +3392,7 @@ declare module "factorio:runtime" {
|
|
3392
3392
|
}
|
3393
3393
|
/**
|
3394
3394
|
* Called when a technology research starts.
|
3395
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3395
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_research_started Online documentation}
|
3396
3396
|
*/
|
3397
3397
|
interface OnResearchStartedEvent extends EventData {
|
3398
3398
|
/**
|
@@ -3411,7 +3411,7 @@ declare module "factorio:runtime" {
|
|
3411
3411
|
}
|
3412
3412
|
/**
|
3413
3413
|
* Called when a resource entity reaches 0 or its minimum yield for infinite resources.
|
3414
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3414
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_resource_depleted Online documentation}
|
3415
3415
|
*/
|
3416
3416
|
interface OnResourceDepletedEvent extends EventData {
|
3417
3417
|
readonly entity: LuaEntity
|
@@ -3428,7 +3428,7 @@ declare module "factorio:runtime" {
|
|
3428
3428
|
* Called when a construction robot builds an entity.
|
3429
3429
|
*
|
3430
3430
|
* Event filter: [LuaRobotBuiltEntityEventFilter](LuaRobotBuiltEntityEventFilter]
|
3431
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3431
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_robot_built_entity Online documentation}
|
3432
3432
|
*/
|
3433
3433
|
interface OnRobotBuiltEntityEvent extends EventData {
|
3434
3434
|
/**
|
@@ -3458,7 +3458,7 @@ declare module "factorio:runtime" {
|
|
3458
3458
|
}
|
3459
3459
|
/**
|
3460
3460
|
* Called after a robot builds tiles.
|
3461
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3461
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_robot_built_tile Online documentation}
|
3462
3462
|
*/
|
3463
3463
|
interface OnRobotBuiltTileEvent extends EventData {
|
3464
3464
|
/**
|
@@ -3496,7 +3496,7 @@ declare module "factorio:runtime" {
|
|
3496
3496
|
}
|
3497
3497
|
/**
|
3498
3498
|
* Called directly after a robot explodes cliffs.
|
3499
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3499
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_robot_exploded_cliff Online documentation}
|
3500
3500
|
*/
|
3501
3501
|
interface OnRobotExplodedCliffEvent extends EventData {
|
3502
3502
|
readonly robot: LuaEntity
|
@@ -3515,7 +3515,7 @@ declare module "factorio:runtime" {
|
|
3515
3515
|
}
|
3516
3516
|
/**
|
3517
3517
|
* Called when a robot mines an entity.
|
3518
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3518
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_robot_mined Online documentation}
|
3519
3519
|
*/
|
3520
3520
|
interface OnRobotMinedEvent extends EventData {
|
3521
3521
|
/**
|
@@ -3543,7 +3543,7 @@ declare module "factorio:runtime" {
|
|
3543
3543
|
* 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.
|
3544
3544
|
*
|
3545
3545
|
* Event filter: [LuaRobotMinedEntityEventFilter](LuaRobotMinedEntityEventFilter]
|
3546
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3546
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_robot_mined_entity Online documentation}
|
3547
3547
|
*/
|
3548
3548
|
interface OnRobotMinedEntityEvent extends EventData {
|
3549
3549
|
/**
|
@@ -3569,7 +3569,7 @@ declare module "factorio:runtime" {
|
|
3569
3569
|
}
|
3570
3570
|
/**
|
3571
3571
|
* Called after a robot mines tiles.
|
3572
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3572
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_robot_mined_tile Online documentation}
|
3573
3573
|
*/
|
3574
3574
|
interface OnRobotMinedTileEvent extends EventData {
|
3575
3575
|
/**
|
@@ -3597,7 +3597,7 @@ declare module "factorio:runtime" {
|
|
3597
3597
|
* Called before a robot mines an entity.
|
3598
3598
|
*
|
3599
3599
|
* Event filter: [LuaPreRobotMinedEntityEventFilter](LuaPreRobotMinedEntityEventFilter]
|
3600
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3600
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_robot_pre_mined Online documentation}
|
3601
3601
|
*/
|
3602
3602
|
interface OnRobotPreMinedEvent extends EventData {
|
3603
3603
|
/**
|
@@ -3619,7 +3619,7 @@ declare module "factorio:runtime" {
|
|
3619
3619
|
}
|
3620
3620
|
/**
|
3621
3621
|
* Called when a rocket silo is ordered to be launched.
|
3622
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3622
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_rocket_launch_ordered Online documentation}
|
3623
3623
|
*/
|
3624
3624
|
interface OnRocketLaunchOrderedEvent extends EventData {
|
3625
3625
|
readonly rocket: LuaEntity
|
@@ -3639,7 +3639,7 @@ declare module "factorio:runtime" {
|
|
3639
3639
|
}
|
3640
3640
|
/**
|
3641
3641
|
* Called when the rocket is launched.
|
3642
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3642
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_rocket_launched Online documentation}
|
3643
3643
|
*/
|
3644
3644
|
interface OnRocketLaunchedEvent extends EventData {
|
3645
3645
|
readonly rocket: LuaEntity
|
@@ -3659,7 +3659,7 @@ declare module "factorio:runtime" {
|
|
3659
3659
|
}
|
3660
3660
|
/**
|
3661
3661
|
* Called when a runtime mod setting is changed by a player.
|
3662
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3662
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_runtime_mod_setting_changed Online documentation}
|
3663
3663
|
*/
|
3664
3664
|
interface OnRuntimeModSettingChangedEvent extends EventData {
|
3665
3665
|
/**
|
@@ -3682,7 +3682,7 @@ declare module "factorio:runtime" {
|
|
3682
3682
|
}
|
3683
3683
|
/**
|
3684
3684
|
* Called just after a script inventory is resized.
|
3685
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3685
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_script_inventory_resized Online documentation}
|
3686
3686
|
*/
|
3687
3687
|
interface OnScriptInventoryResizedEvent extends EventData {
|
3688
3688
|
/**
|
@@ -3717,7 +3717,7 @@ declare module "factorio:runtime" {
|
|
3717
3717
|
}
|
3718
3718
|
/**
|
3719
3719
|
* Called when a {@link LuaSurface#request_path LuaSurface::request_path} call completes.
|
3720
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3720
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_script_path_request_finished Online documentation}
|
3721
3721
|
*/
|
3722
3722
|
interface OnScriptPathRequestFinishedEvent extends EventData {
|
3723
3723
|
/**
|
@@ -3743,7 +3743,7 @@ declare module "factorio:runtime" {
|
|
3743
3743
|
}
|
3744
3744
|
/**
|
3745
3745
|
* Called when a script trigger effect is triggered.
|
3746
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3746
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_script_trigger_effect Online documentation}
|
3747
3747
|
*/
|
3748
3748
|
interface OnScriptTriggerEffectEvent extends EventData {
|
3749
3749
|
/**
|
@@ -3771,7 +3771,7 @@ declare module "factorio:runtime" {
|
|
3771
3771
|
* Called when an entity of type `radar` finishes scanning a sector.
|
3772
3772
|
*
|
3773
3773
|
* Event filter: [LuaSectorScannedEventFilter](LuaSectorScannedEventFilter]
|
3774
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3774
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_sector_scanned Online documentation}
|
3775
3775
|
*/
|
3776
3776
|
interface OnSectorScannedEvent extends EventData {
|
3777
3777
|
/**
|
@@ -3797,7 +3797,7 @@ declare module "factorio:runtime" {
|
|
3797
3797
|
}
|
3798
3798
|
/**
|
3799
3799
|
* Called after the selected entity changes for a given player.
|
3800
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3800
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_selected_entity_changed Online documentation}
|
3801
3801
|
*/
|
3802
3802
|
interface OnSelectedEntityChangedEvent extends EventData {
|
3803
3803
|
/**
|
@@ -3819,7 +3819,7 @@ declare module "factorio:runtime" {
|
|
3819
3819
|
}
|
3820
3820
|
/**
|
3821
3821
|
* Called when a spider finishes moving to its autopilot position.
|
3822
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3822
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_spider_command_completed Online documentation}
|
3823
3823
|
*/
|
3824
3824
|
interface OnSpiderCommandCompletedEvent extends EventData {
|
3825
3825
|
/**
|
@@ -3837,7 +3837,7 @@ declare module "factorio:runtime" {
|
|
3837
3837
|
}
|
3838
3838
|
/**
|
3839
3839
|
* 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.
|
3840
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3840
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_string_translated Online documentation}
|
3841
3841
|
*/
|
3842
3842
|
interface OnStringTranslatedEvent extends EventData {
|
3843
3843
|
/**
|
@@ -3871,7 +3871,7 @@ declare module "factorio:runtime" {
|
|
3871
3871
|
}
|
3872
3872
|
/**
|
3873
3873
|
* Called just after a surface is cleared (all entities removed and all chunks deleted).
|
3874
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3874
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_surface_cleared Online documentation}
|
3875
3875
|
*/
|
3876
3876
|
interface OnSurfaceClearedEvent extends EventData {
|
3877
3877
|
readonly surface_index: SurfaceIndex
|
@@ -3888,7 +3888,7 @@ declare module "factorio:runtime" {
|
|
3888
3888
|
* Called when a surface is created.
|
3889
3889
|
*
|
3890
3890
|
* This is not called when the default surface is created as it will always exist.
|
3891
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3891
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_surface_created Online documentation}
|
3892
3892
|
*/
|
3893
3893
|
interface OnSurfaceCreatedEvent extends EventData {
|
3894
3894
|
readonly surface_index: SurfaceIndex
|
@@ -3903,7 +3903,7 @@ declare module "factorio:runtime" {
|
|
3903
3903
|
}
|
3904
3904
|
/**
|
3905
3905
|
* Called after a surface is deleted.
|
3906
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3906
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_surface_deleted Online documentation}
|
3907
3907
|
*/
|
3908
3908
|
interface OnSurfaceDeletedEvent extends EventData {
|
3909
3909
|
readonly surface_index: SurfaceIndex
|
@@ -3918,7 +3918,7 @@ declare module "factorio:runtime" {
|
|
3918
3918
|
}
|
3919
3919
|
/**
|
3920
3920
|
* Called after a surface is imported via the map editor.
|
3921
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3921
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_surface_imported Online documentation}
|
3922
3922
|
*/
|
3923
3923
|
interface OnSurfaceImportedEvent extends EventData {
|
3924
3924
|
readonly surface_index: SurfaceIndex
|
@@ -3937,7 +3937,7 @@ declare module "factorio:runtime" {
|
|
3937
3937
|
}
|
3938
3938
|
/**
|
3939
3939
|
* Called when a surface is renamed.
|
3940
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3940
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_surface_renamed Online documentation}
|
3941
3941
|
*/
|
3942
3942
|
interface OnSurfaceRenamedEvent extends EventData {
|
3943
3943
|
readonly surface_index: SurfaceIndex
|
@@ -3954,7 +3954,7 @@ declare module "factorio:runtime" {
|
|
3954
3954
|
}
|
3955
3955
|
/**
|
3956
3956
|
* Called when {@link LuaForce#reset_technology_effects LuaForce::reset_technology_effects} is finished.
|
3957
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3957
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_technology_effects_reset Online documentation}
|
3958
3958
|
*/
|
3959
3959
|
interface OnTechnologyEffectsResetEvent extends EventData {
|
3960
3960
|
readonly force: LuaForce
|
@@ -3969,7 +3969,7 @@ declare module "factorio:runtime" {
|
|
3969
3969
|
}
|
3970
3970
|
/**
|
3971
3971
|
* It is fired once every tick. Since this event is fired every tick, its handler shouldn't include performance heavy code.
|
3972
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3972
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_tick Online documentation}
|
3973
3973
|
*/
|
3974
3974
|
interface OnTickEvent extends EventData {
|
3975
3975
|
/**
|
@@ -3983,7 +3983,7 @@ declare module "factorio:runtime" {
|
|
3983
3983
|
}
|
3984
3984
|
/**
|
3985
3985
|
* Called when a train changes state (started to stopped and vice versa)
|
3986
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3986
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_train_changed_state Online documentation}
|
3987
3987
|
*/
|
3988
3988
|
interface OnTrainChangedStateEvent extends EventData {
|
3989
3989
|
readonly train: LuaTrain
|
@@ -3999,7 +3999,7 @@ declare module "factorio:runtime" {
|
|
3999
3999
|
}
|
4000
4000
|
/**
|
4001
4001
|
* Called when a new train is created either through disconnecting/connecting an existing one or building a new one.
|
4002
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4002
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_train_created Online documentation}
|
4003
4003
|
*/
|
4004
4004
|
interface OnTrainCreatedEvent extends EventData {
|
4005
4005
|
readonly train: LuaTrain
|
@@ -4022,7 +4022,7 @@ declare module "factorio:runtime" {
|
|
4022
4022
|
}
|
4023
4023
|
/**
|
4024
4024
|
* Called when a trains schedule is changed either by the player or through script.
|
4025
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4025
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_train_schedule_changed Online documentation}
|
4026
4026
|
*/
|
4027
4027
|
interface OnTrainScheduleChangedEvent extends EventData {
|
4028
4028
|
readonly train: LuaTrain
|
@@ -4040,8 +4040,8 @@ declare module "factorio:runtime" {
|
|
4040
4040
|
readonly tick: uint
|
4041
4041
|
}
|
4042
4042
|
/**
|
4043
|
-
* Called when an entity with a trigger prototype (such as capsules) create an entity AND that trigger prototype defined `trigger_created_entity=
|
4044
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4043
|
+
* Called when an entity with a trigger prototype (such as capsules) create an entity AND that trigger prototype defined `trigger_created_entity=true`.
|
4044
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_trigger_created_entity Online documentation}
|
4045
4045
|
*/
|
4046
4046
|
interface OnTriggerCreatedEntityEvent extends EventData {
|
4047
4047
|
readonly entity: LuaEntity
|
@@ -4056,8 +4056,8 @@ declare module "factorio:runtime" {
|
|
4056
4056
|
readonly tick: uint
|
4057
4057
|
}
|
4058
4058
|
/**
|
4059
|
-
* Called when an entity with a trigger prototype (such as capsules) fire an artillery projectile AND that trigger prototype defined `trigger_fired_artillery=
|
4060
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4059
|
+
* Called when an entity with a trigger prototype (such as capsules) fire an artillery projectile AND that trigger prototype defined `trigger_fired_artillery=true`.
|
4060
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_trigger_fired_artillery Online documentation}
|
4061
4061
|
*/
|
4062
4062
|
interface OnTriggerFiredArtilleryEvent extends EventData {
|
4063
4063
|
readonly entity: LuaEntity
|
@@ -4073,7 +4073,7 @@ declare module "factorio:runtime" {
|
|
4073
4073
|
}
|
4074
4074
|
/**
|
4075
4075
|
* Called when a unit is added to a unit group.
|
4076
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4076
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_unit_added_to_group Online documentation}
|
4077
4077
|
*/
|
4078
4078
|
interface OnUnitAddedToGroupEvent extends EventData {
|
4079
4079
|
readonly unit: LuaEntity
|
@@ -4089,7 +4089,7 @@ declare module "factorio:runtime" {
|
|
4089
4089
|
}
|
4090
4090
|
/**
|
4091
4091
|
* Called when a new unit group is created, before any members are added to it.
|
4092
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4092
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_unit_group_created Online documentation}
|
4093
4093
|
*/
|
4094
4094
|
interface OnUnitGroupCreatedEvent extends EventData {
|
4095
4095
|
readonly group: LuaUnitGroup
|
@@ -4104,7 +4104,7 @@ declare module "factorio:runtime" {
|
|
4104
4104
|
}
|
4105
4105
|
/**
|
4106
4106
|
* Called when a unit group finishes gathering and starts executing its command.
|
4107
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4107
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_unit_group_finished_gathering Online documentation}
|
4108
4108
|
*/
|
4109
4109
|
interface OnUnitGroupFinishedGatheringEvent extends EventData {
|
4110
4110
|
readonly group: LuaUnitGroup
|
@@ -4119,7 +4119,7 @@ declare module "factorio:runtime" {
|
|
4119
4119
|
}
|
4120
4120
|
/**
|
4121
4121
|
* Called when a unit is removed from a unit group.
|
4122
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4122
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_unit_removed_from_group Online documentation}
|
4123
4123
|
*/
|
4124
4124
|
interface OnUnitRemovedFromGroupEvent extends EventData {
|
4125
4125
|
readonly unit: LuaEntity
|
@@ -4135,7 +4135,7 @@ declare module "factorio:runtime" {
|
|
4135
4135
|
}
|
4136
4136
|
/**
|
4137
4137
|
* Called when a worker (construction or logistic) robot expires through a lack of energy.
|
4138
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4138
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#on_worker_robot_expired Online documentation}
|
4139
4139
|
*/
|
4140
4140
|
interface OnWorkerRobotExpiredEvent extends EventData {
|
4141
4141
|
readonly robot: LuaEntity
|
@@ -4152,7 +4152,7 @@ declare module "factorio:runtime" {
|
|
4152
4152
|
* 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}.
|
4153
4153
|
*
|
4154
4154
|
* Event filter: [LuaScriptRaisedBuiltEventFilter](LuaScriptRaisedBuiltEventFilter]
|
4155
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4155
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#script_raised_built Online documentation}
|
4156
4156
|
*/
|
4157
4157
|
interface ScriptRaisedBuiltEvent extends EventData {
|
4158
4158
|
/**
|
@@ -4172,7 +4172,7 @@ declare module "factorio:runtime" {
|
|
4172
4172
|
* 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}.
|
4173
4173
|
*
|
4174
4174
|
* Event filter: [LuaScriptRaisedDestroyEventFilter](LuaScriptRaisedDestroyEventFilter]
|
4175
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4175
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#script_raised_destroy Online documentation}
|
4176
4176
|
*/
|
4177
4177
|
interface ScriptRaisedDestroyEvent extends EventData {
|
4178
4178
|
/**
|
@@ -4192,7 +4192,7 @@ declare module "factorio:runtime" {
|
|
4192
4192
|
* 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}.
|
4193
4193
|
*
|
4194
4194
|
* Event filter: [LuaScriptRaisedReviveEventFilter](LuaScriptRaisedReviveEventFilter]
|
4195
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4195
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#script_raised_revive Online documentation}
|
4196
4196
|
*/
|
4197
4197
|
interface ScriptRaisedReviveEvent extends EventData {
|
4198
4198
|
/**
|
@@ -4214,7 +4214,7 @@ declare module "factorio:runtime" {
|
|
4214
4214
|
}
|
4215
4215
|
/**
|
4216
4216
|
* 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}.
|
4217
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4217
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#script_raised_set_tiles Online documentation}
|
4218
4218
|
*/
|
4219
4219
|
interface ScriptRaisedSetTilesEvent extends EventData {
|
4220
4220
|
/**
|
@@ -4238,7 +4238,7 @@ declare module "factorio:runtime" {
|
|
4238
4238
|
* 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}.
|
4239
4239
|
*
|
4240
4240
|
* Event filter: [LuaScriptRaisedTeleportedEventFilter](LuaScriptRaisedTeleportedEventFilter]
|
4241
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4241
|
+
* @see {@link https://lua-api.factorio.com/1.1.110/events.html#script_raised_teleported Online documentation}
|
4242
4242
|
*/
|
4243
4243
|
interface ScriptRaisedTeleportedEvent extends EventData {
|
4244
4244
|
/**
|