typed-factorio 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lualib/util.d.ts +4 -4
- package/package.json +3 -3
- package/prototype/generated/prototypes.d.ts +1796 -1704
- package/prototype/generated/types.d.ts +1416 -1410
- package/runtime/generated/builtin-types.d.ts +12 -12
- package/runtime/generated/classes.d.ts +3288 -3302
- package/runtime/generated/concepts.d.ts +1810 -1810
- package/runtime/generated/defines.d.ts +165 -101
- package/runtime/generated/events.d.ts +190 -186
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +6 -6
- package/runtime/pairs.d.ts +1 -1
@@ -8,7 +8,11 @@
|
|
8
8
|
declare module "factorio:runtime" {
|
9
9
|
/**
|
10
10
|
* Called when a {@link import("factorio:prototype").CustomInputPrototype CustomInputPrototype} is activated.
|
11
|
-
* @
|
11
|
+
* @example This will be raised when a custom input with the name "my-potato-control" and action "lua" is pressed
|
12
|
+
* script.on_event("my-potato-control", function(event)
|
13
|
+
* game.print("Keyboard shortcut pressed on tick: " ..tostring(event.tick))
|
14
|
+
* end)
|
15
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#CustomInputEvent Online documentation}
|
12
16
|
*/
|
13
17
|
interface CustomInputEvent extends EventData {
|
14
18
|
/**
|
@@ -42,7 +46,7 @@ declare module "factorio:runtime" {
|
|
42
46
|
}
|
43
47
|
/**
|
44
48
|
* Called when a unit/group completes a command.
|
45
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
49
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_ai_command_completed Online documentation}
|
46
50
|
*/
|
47
51
|
interface OnAiCommandCompletedEvent extends EventData {
|
48
52
|
/**
|
@@ -65,7 +69,7 @@ declare module "factorio:runtime" {
|
|
65
69
|
}
|
66
70
|
/**
|
67
71
|
* Called when an area of the map is cloned.
|
68
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
72
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_area_cloned Online documentation}
|
69
73
|
*/
|
70
74
|
interface OnAreaClonedEvent extends EventData {
|
71
75
|
readonly source_surface: LuaSurface
|
@@ -90,7 +94,7 @@ declare module "factorio:runtime" {
|
|
90
94
|
/**
|
91
95
|
* Called when a biter migration builds a base.
|
92
96
|
* @remarks This will be called multiple times for each migration, once for every biter that is sacrificed to build part of the new base.
|
93
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
97
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_biter_base_built Online documentation}
|
94
98
|
*/
|
95
99
|
interface OnBiterBaseBuiltEvent extends EventData {
|
96
100
|
/**
|
@@ -108,7 +112,7 @@ declare module "factorio:runtime" {
|
|
108
112
|
}
|
109
113
|
/**
|
110
114
|
* Called when a set of positions on the map is cloned.
|
111
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
115
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_brush_cloned Online documentation}
|
112
116
|
*/
|
113
117
|
interface OnBrushClonedEvent extends EventData {
|
114
118
|
readonly source_offset: TilePosition
|
@@ -133,7 +137,7 @@ declare module "factorio:runtime" {
|
|
133
137
|
}
|
134
138
|
/**
|
135
139
|
* Called when a {@link defines.command.build_base} command reaches its destination, and before building starts.
|
136
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
140
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_build_base_arrived Online documentation}
|
137
141
|
*/
|
138
142
|
interface OnBuildBaseArrivedEvent extends EventData {
|
139
143
|
/**
|
@@ -155,7 +159,7 @@ declare module "factorio:runtime" {
|
|
155
159
|
}
|
156
160
|
/**
|
157
161
|
* Called when player builds something. Can be filtered using {@link LuaPlayerBuiltEntityEventFilter}.
|
158
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
162
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_built_entity Online documentation}
|
159
163
|
*/
|
160
164
|
interface OnBuiltEntityEvent extends EventData {
|
161
165
|
readonly created_entity: LuaEntity
|
@@ -180,7 +184,7 @@ declare module "factorio:runtime" {
|
|
180
184
|
}
|
181
185
|
/**
|
182
186
|
* Called when the deconstruction of an entity is canceled. Can be filtered using {@link LuaEntityDeconstructionCancelledEventFilter}.
|
183
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
187
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_cancelled_deconstruction Online documentation}
|
184
188
|
*/
|
185
189
|
interface OnCancelledDeconstructionEvent extends EventData {
|
186
190
|
readonly entity: LuaEntity
|
@@ -196,7 +200,7 @@ declare module "factorio:runtime" {
|
|
196
200
|
}
|
197
201
|
/**
|
198
202
|
* Called when the upgrade of an entity is canceled. Can be filtered using {@link LuaUpgradeCancelledEventFilter}.
|
199
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
203
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_cancelled_upgrade Online documentation}
|
200
204
|
*/
|
201
205
|
interface OnCancelledUpgradeEvent extends EventData {
|
202
206
|
readonly entity: LuaEntity
|
@@ -215,7 +219,7 @@ declare module "factorio:runtime" {
|
|
215
219
|
/**
|
216
220
|
* Called when a character corpse expires due to timeout or all of the items being removed from it.
|
217
221
|
* @remarks this is not called if the corpse is mined. See {@link defines.events.on_pre_player_mined_item} to detect that.
|
218
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
222
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_character_corpse_expired Online documentation}
|
219
223
|
*/
|
220
224
|
interface OnCharacterCorpseExpiredEvent extends EventData {
|
221
225
|
/**
|
@@ -233,7 +237,7 @@ declare module "factorio:runtime" {
|
|
233
237
|
}
|
234
238
|
/**
|
235
239
|
* Called when a chart tag is created.
|
236
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
240
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_chart_tag_added Online documentation}
|
237
241
|
*/
|
238
242
|
interface OnChartTagAddedEvent extends EventData {
|
239
243
|
readonly tag: LuaCustomChartTag
|
@@ -250,7 +254,7 @@ declare module "factorio:runtime" {
|
|
250
254
|
}
|
251
255
|
/**
|
252
256
|
* Called when a chart tag is modified by a player.
|
253
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
257
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_chart_tag_modified Online documentation}
|
254
258
|
*/
|
255
259
|
interface OnChartTagModifiedEvent extends EventData {
|
256
260
|
readonly tag: LuaCustomChartTag
|
@@ -270,7 +274,7 @@ declare module "factorio:runtime" {
|
|
270
274
|
}
|
271
275
|
/**
|
272
276
|
* Called just before a chart tag is deleted.
|
273
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
277
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_chart_tag_removed Online documentation}
|
274
278
|
*/
|
275
279
|
interface OnChartTagRemovedEvent extends EventData {
|
276
280
|
readonly tag: LuaCustomChartTag
|
@@ -287,7 +291,7 @@ declare module "factorio:runtime" {
|
|
287
291
|
}
|
288
292
|
/**
|
289
293
|
* Called when a chunk is charted or re-charted.
|
290
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
294
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_chunk_charted Online documentation}
|
291
295
|
*/
|
292
296
|
interface OnChunkChartedEvent extends EventData {
|
293
297
|
readonly surface_index: SurfaceIndex
|
@@ -308,7 +312,7 @@ declare module "factorio:runtime" {
|
|
308
312
|
}
|
309
313
|
/**
|
310
314
|
* Called when one or more chunks are deleted using {@link LuaSurface#delete_chunk LuaSurface::delete_chunk}.
|
311
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
315
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_chunk_deleted Online documentation}
|
312
316
|
*/
|
313
317
|
interface OnChunkDeletedEvent extends EventData {
|
314
318
|
readonly surface_index: SurfaceIndex
|
@@ -327,7 +331,7 @@ declare module "factorio:runtime" {
|
|
327
331
|
}
|
328
332
|
/**
|
329
333
|
* Called when a chunk is generated.
|
330
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
334
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_chunk_generated Online documentation}
|
331
335
|
*/
|
332
336
|
interface OnChunkGeneratedEvent extends EventData {
|
333
337
|
/**
|
@@ -353,7 +357,7 @@ declare module "factorio:runtime" {
|
|
353
357
|
}
|
354
358
|
/**
|
355
359
|
* Called when a combat robot expires through a lack of energy, or timeout.
|
356
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
360
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_combat_robot_expired Online documentation}
|
357
361
|
*/
|
358
362
|
interface OnCombatRobotExpiredEvent extends EventData {
|
359
363
|
readonly robot: LuaEntity
|
@@ -373,7 +377,7 @@ declare module "factorio:runtime" {
|
|
373
377
|
/**
|
374
378
|
* Called when a message is sent to the in-game console, either by a player or through the server interface.
|
375
379
|
* @remarks This event only fires for plain messages, not for any commands (including `/shout` or `/whisper`).
|
376
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
380
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_console_chat Online documentation}
|
377
381
|
*/
|
378
382
|
interface OnConsoleChatEvent extends EventData {
|
379
383
|
/**
|
@@ -395,7 +399,7 @@ declare module "factorio:runtime" {
|
|
395
399
|
}
|
396
400
|
/**
|
397
401
|
* Called when someone enters a command-like message regardless of it being a valid command.
|
398
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
402
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_console_command Online documentation}
|
399
403
|
*/
|
400
404
|
interface OnConsoleCommandEvent extends EventData {
|
401
405
|
/**
|
@@ -421,7 +425,7 @@ declare module "factorio:runtime" {
|
|
421
425
|
}
|
422
426
|
/**
|
423
427
|
* Called when a cutscene is cancelled by the player or by script.
|
424
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
428
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_cutscene_cancelled Online documentation}
|
425
429
|
*/
|
426
430
|
interface OnCutsceneCancelledEvent extends EventData {
|
427
431
|
/**
|
@@ -439,7 +443,7 @@ declare module "factorio:runtime" {
|
|
439
443
|
}
|
440
444
|
/**
|
441
445
|
* Called when a cutscene finishes naturally (was not cancelled).
|
442
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
446
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_cutscene_finished Online documentation}
|
443
447
|
*/
|
444
448
|
interface OnCutsceneFinishedEvent extends EventData {
|
445
449
|
/**
|
@@ -457,7 +461,7 @@ declare module "factorio:runtime" {
|
|
457
461
|
}
|
458
462
|
/**
|
459
463
|
* Called when a cutscene starts.
|
460
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
464
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_cutscene_started Online documentation}
|
461
465
|
*/
|
462
466
|
interface OnCutsceneStartedEvent extends EventData {
|
463
467
|
/**
|
@@ -478,7 +482,7 @@ declare module "factorio:runtime" {
|
|
478
482
|
*
|
479
483
|
* This refers to an index in the table previously passed to set_controller which started the cutscene.
|
480
484
|
* @remarks Due to implementation omission, waypoint_index is 0-based.
|
481
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
485
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_cutscene_waypoint_reached Online documentation}
|
482
486
|
*/
|
483
487
|
interface OnCutsceneWaypointReachedEvent extends EventData {
|
484
488
|
/**
|
@@ -501,7 +505,7 @@ declare module "factorio:runtime" {
|
|
501
505
|
/**
|
502
506
|
* Called when the map difficulty settings are changed.
|
503
507
|
* @remarks It's not guaranteed that both settings are changed - just that at least one has been changed.
|
504
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
508
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_difficulty_settings_changed Online documentation}
|
505
509
|
*/
|
506
510
|
interface OnDifficultySettingsChangedEvent extends EventData {
|
507
511
|
readonly old_recipe_difficulty: uint
|
@@ -517,7 +521,7 @@ declare module "factorio:runtime" {
|
|
517
521
|
}
|
518
522
|
/**
|
519
523
|
* Called when an entity is cloned. Can be filtered for the source entity using {@link LuaEntityClonedEventFilter}.
|
520
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
524
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_entity_cloned Online documentation}
|
521
525
|
*/
|
522
526
|
interface OnEntityClonedEvent extends EventData {
|
523
527
|
readonly source: LuaEntity
|
@@ -534,7 +538,7 @@ declare module "factorio:runtime" {
|
|
534
538
|
/**
|
535
539
|
* Called after an entity has been recolored either by the player or through script.
|
536
540
|
* @remarks Automatic recoloring due to {@link LuaPlayer#color LuaPlayer::color} will not raise events, as that is a separate mechanism.
|
537
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
541
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_entity_color_changed Online documentation}
|
538
542
|
*/
|
539
543
|
interface OnEntityColorChangedEvent extends EventData {
|
540
544
|
/**
|
@@ -553,7 +557,7 @@ declare module "factorio:runtime" {
|
|
553
557
|
/**
|
554
558
|
* Called when an entity is damaged. Can be filtered using {@link LuaEntityDamagedEventFilter}.
|
555
559
|
* @remarks This is not called when an entities health is set directly by another mod.
|
556
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
560
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_entity_damaged Online documentation}
|
557
561
|
*/
|
558
562
|
interface OnEntityDamagedEvent extends EventData {
|
559
563
|
readonly entity: LuaEntity
|
@@ -590,7 +594,7 @@ declare module "factorio:runtime" {
|
|
590
594
|
/**
|
591
595
|
* Called after an entity is destroyed that has been registered with {@link LuaBootstrap#register_on_entity_destroyed LuaBootstrap::register_on_entity_destroyed}.
|
592
596
|
* @remarks 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.
|
593
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
597
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_entity_destroyed Online documentation}
|
594
598
|
*/
|
595
599
|
interface OnEntityDestroyedEvent extends EventData {
|
596
600
|
/**
|
@@ -612,7 +616,7 @@ declare module "factorio:runtime" {
|
|
612
616
|
}
|
613
617
|
/**
|
614
618
|
* Called when an entity dies. Can be filtered using {@link LuaEntityDiedEventFilter}.
|
615
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
619
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_entity_died Online documentation}
|
616
620
|
*/
|
617
621
|
interface OnEntityDiedEvent extends EventData {
|
618
622
|
/**
|
@@ -647,7 +651,7 @@ declare module "factorio:runtime" {
|
|
647
651
|
/**
|
648
652
|
* Called when one of an entity's personal logistic slots changes.
|
649
653
|
* @remarks "Personal logistic slot" refers to a character or vehicle's personal request / auto-trash slots, not the request slots on logistic chests.
|
650
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
654
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_entity_logistic_slot_changed Online documentation}
|
651
655
|
*/
|
652
656
|
interface OnEntityLogisticSlotChangedEvent extends EventData {
|
653
657
|
/**
|
@@ -673,7 +677,7 @@ declare module "factorio:runtime" {
|
|
673
677
|
}
|
674
678
|
/**
|
675
679
|
* Called after an entity has been renamed either by the player or through script.
|
676
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
680
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_entity_renamed Online documentation}
|
677
681
|
*/
|
678
682
|
interface OnEntityRenamedEvent extends EventData {
|
679
683
|
/**
|
@@ -694,7 +698,7 @@ declare module "factorio:runtime" {
|
|
694
698
|
}
|
695
699
|
/**
|
696
700
|
* Called after entity copy-paste is done.
|
697
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
701
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_entity_settings_pasted Online documentation}
|
698
702
|
*/
|
699
703
|
interface OnEntitySettingsPastedEvent extends EventData {
|
700
704
|
readonly player_index: PlayerIndex
|
@@ -717,7 +721,7 @@ declare module "factorio:runtime" {
|
|
717
721
|
}
|
718
722
|
/**
|
719
723
|
* Called when an entity is spawned by a EnemySpawner
|
720
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
724
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_entity_spawned Online documentation}
|
721
725
|
*/
|
722
726
|
interface OnEntitySpawnedEvent extends EventData {
|
723
727
|
readonly spawner: LuaEntity
|
@@ -733,7 +737,7 @@ declare module "factorio:runtime" {
|
|
733
737
|
}
|
734
738
|
/**
|
735
739
|
* Called after equipment is inserted into an equipment grid.
|
736
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
740
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_equipment_inserted Online documentation}
|
737
741
|
*/
|
738
742
|
interface OnEquipmentInsertedEvent extends EventData {
|
739
743
|
/**
|
@@ -755,7 +759,7 @@ declare module "factorio:runtime" {
|
|
755
759
|
}
|
756
760
|
/**
|
757
761
|
* Called after equipment is removed from an equipment grid.
|
758
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
762
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_equipment_removed Online documentation}
|
759
763
|
*/
|
760
764
|
interface OnEquipmentRemovedEvent extends EventData {
|
761
765
|
/**
|
@@ -781,7 +785,7 @@ declare module "factorio:runtime" {
|
|
781
785
|
}
|
782
786
|
/**
|
783
787
|
* Called when the a forces cease fire values change.
|
784
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
788
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_force_cease_fire_changed Online documentation}
|
785
789
|
*/
|
786
790
|
interface OnForceCeaseFireChangedEvent extends EventData {
|
787
791
|
/**
|
@@ -808,7 +812,7 @@ declare module "factorio:runtime" {
|
|
808
812
|
/**
|
809
813
|
* Called when a new force is created using `game.create_force()`
|
810
814
|
* @remarks This is not called when the default forces (`'player'`, `'enemy'`, `'neutral'`) are created as they will always exist.
|
811
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
815
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_force_created Online documentation}
|
812
816
|
*/
|
813
817
|
interface OnForceCreatedEvent extends EventData {
|
814
818
|
/**
|
@@ -826,7 +830,7 @@ declare module "factorio:runtime" {
|
|
826
830
|
}
|
827
831
|
/**
|
828
832
|
* Called when the a forces friends change.
|
829
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
833
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_force_friends_changed Online documentation}
|
830
834
|
*/
|
831
835
|
interface OnForceFriendsChangedEvent extends EventData {
|
832
836
|
/**
|
@@ -852,7 +856,7 @@ declare module "factorio:runtime" {
|
|
852
856
|
}
|
853
857
|
/**
|
854
858
|
* Called when {@link LuaForce#reset LuaForce::reset} is finished.
|
855
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
859
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_force_reset Online documentation}
|
856
860
|
*/
|
857
861
|
interface OnForceResetEvent extends EventData {
|
858
862
|
readonly force: LuaForce
|
@@ -868,7 +872,7 @@ declare module "factorio:runtime" {
|
|
868
872
|
/**
|
869
873
|
* Called after two forces have been merged using `game.merge_forces()`.
|
870
874
|
* @remarks The source force is invalidated before this event is called and the name can be re-used in this event if desired.
|
871
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
875
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_forces_merged Online documentation}
|
872
876
|
*/
|
873
877
|
interface OnForcesMergedEvent extends EventData {
|
874
878
|
/**
|
@@ -894,7 +898,7 @@ declare module "factorio:runtime" {
|
|
894
898
|
}
|
895
899
|
/**
|
896
900
|
* Called when two forces are about to be merged using `game.merge_forces()`.
|
897
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
901
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_forces_merging Online documentation}
|
898
902
|
*/
|
899
903
|
interface OnForcesMergingEvent extends EventData {
|
900
904
|
/**
|
@@ -917,7 +921,7 @@ declare module "factorio:runtime" {
|
|
917
921
|
/**
|
918
922
|
* 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.
|
919
923
|
* @remarks This event is not fired when the scenario is loaded via the map editor.
|
920
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
924
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_game_created_from_scenario Online documentation}
|
921
925
|
*/
|
922
926
|
interface OnGameCreatedFromScenarioEvent extends EventData {
|
923
927
|
/**
|
@@ -931,7 +935,7 @@ declare module "factorio:runtime" {
|
|
931
935
|
}
|
932
936
|
/**
|
933
937
|
* Called when {@link LuaGuiElement} checked state is changed (related to checkboxes and radio buttons).
|
934
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
938
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_gui_checked_state_changed Online documentation}
|
935
939
|
*/
|
936
940
|
interface OnGuiCheckedStateChangedEvent extends EventData {
|
937
941
|
/**
|
@@ -953,7 +957,7 @@ declare module "factorio:runtime" {
|
|
953
957
|
}
|
954
958
|
/**
|
955
959
|
* Called when {@link LuaGuiElement} is clicked.
|
956
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
960
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_gui_click Online documentation}
|
957
961
|
*/
|
958
962
|
interface OnGuiClickEvent extends EventData {
|
959
963
|
/**
|
@@ -998,7 +1002,7 @@ declare module "factorio:runtime" {
|
|
998
1002
|
*
|
999
1003
|
* 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.
|
1000
1004
|
* @remarks 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.
|
1001
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1005
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_gui_closed Online documentation}
|
1002
1006
|
*/
|
1003
1007
|
interface OnGuiClosedEvent extends EventData {
|
1004
1008
|
/**
|
@@ -1052,7 +1056,7 @@ declare module "factorio:runtime" {
|
|
1052
1056
|
}
|
1053
1057
|
/**
|
1054
1058
|
* Called when a {@link LuaGuiElement} is confirmed, for example by pressing Enter in a textfield.
|
1055
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1059
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_gui_confirmed Online documentation}
|
1056
1060
|
*/
|
1057
1061
|
interface OnGuiConfirmedEvent extends EventData {
|
1058
1062
|
/**
|
@@ -1086,7 +1090,7 @@ declare module "factorio:runtime" {
|
|
1086
1090
|
}
|
1087
1091
|
/**
|
1088
1092
|
* Called when {@link LuaGuiElement} element value is changed (related to choose element buttons).
|
1089
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1093
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_gui_elem_changed Online documentation}
|
1090
1094
|
*/
|
1091
1095
|
interface OnGuiElemChangedEvent extends EventData {
|
1092
1096
|
/**
|
@@ -1108,7 +1112,7 @@ declare module "factorio:runtime" {
|
|
1108
1112
|
}
|
1109
1113
|
/**
|
1110
1114
|
* Called when {@link LuaGuiElement} is hovered by the mouse.
|
1111
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1115
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_gui_hover Online documentation}
|
1112
1116
|
*/
|
1113
1117
|
interface OnGuiHoverEvent extends EventData {
|
1114
1118
|
/**
|
@@ -1130,7 +1134,7 @@ declare module "factorio:runtime" {
|
|
1130
1134
|
}
|
1131
1135
|
/**
|
1132
1136
|
* Called when the player's cursor leaves a {@link LuaGuiElement} that was previously hovered.
|
1133
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1137
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_gui_leave Online documentation}
|
1134
1138
|
*/
|
1135
1139
|
interface OnGuiLeaveEvent extends EventData {
|
1136
1140
|
/**
|
@@ -1152,7 +1156,7 @@ declare module "factorio:runtime" {
|
|
1152
1156
|
}
|
1153
1157
|
/**
|
1154
1158
|
* Called when {@link LuaGuiElement} element location is changed (related to frames in `player.gui.screen`).
|
1155
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1159
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_gui_location_changed Online documentation}
|
1156
1160
|
*/
|
1157
1161
|
interface OnGuiLocationChangedEvent extends EventData {
|
1158
1162
|
/**
|
@@ -1174,7 +1178,7 @@ declare module "factorio:runtime" {
|
|
1174
1178
|
}
|
1175
1179
|
/**
|
1176
1180
|
* Called when the player opens a GUI.
|
1177
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1181
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_gui_opened Online documentation}
|
1178
1182
|
*/
|
1179
1183
|
interface OnGuiOpenedEvent extends EventData {
|
1180
1184
|
/**
|
@@ -1220,7 +1224,7 @@ declare module "factorio:runtime" {
|
|
1220
1224
|
}
|
1221
1225
|
/**
|
1222
1226
|
* Called when {@link LuaGuiElement} selected tab is changed (related to tabbed-panes).
|
1223
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1227
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_gui_selected_tab_changed Online documentation}
|
1224
1228
|
*/
|
1225
1229
|
interface OnGuiSelectedTabChangedEvent extends EventData {
|
1226
1230
|
/**
|
@@ -1242,7 +1246,7 @@ declare module "factorio:runtime" {
|
|
1242
1246
|
}
|
1243
1247
|
/**
|
1244
1248
|
* Called when {@link LuaGuiElement} selection state is changed (related to drop-downs and listboxes).
|
1245
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1249
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_gui_selection_state_changed Online documentation}
|
1246
1250
|
*/
|
1247
1251
|
interface OnGuiSelectionStateChangedEvent extends EventData {
|
1248
1252
|
/**
|
@@ -1264,7 +1268,7 @@ declare module "factorio:runtime" {
|
|
1264
1268
|
}
|
1265
1269
|
/**
|
1266
1270
|
* Called when {@link LuaGuiElement} switch state is changed (related to switches).
|
1267
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1271
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_gui_switch_state_changed Online documentation}
|
1268
1272
|
*/
|
1269
1273
|
interface OnGuiSwitchStateChangedEvent extends EventData {
|
1270
1274
|
/**
|
@@ -1286,7 +1290,7 @@ declare module "factorio:runtime" {
|
|
1286
1290
|
}
|
1287
1291
|
/**
|
1288
1292
|
* Called when {@link LuaGuiElement} text is changed by the player.
|
1289
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1293
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_gui_text_changed Online documentation}
|
1290
1294
|
*/
|
1291
1295
|
interface OnGuiTextChangedEvent extends EventData {
|
1292
1296
|
/**
|
@@ -1312,7 +1316,7 @@ declare module "factorio:runtime" {
|
|
1312
1316
|
}
|
1313
1317
|
/**
|
1314
1318
|
* Called when {@link LuaGuiElement} slider value is changed (related to the slider element).
|
1315
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1319
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_gui_value_changed Online documentation}
|
1316
1320
|
*/
|
1317
1321
|
interface OnGuiValueChangedEvent extends EventData {
|
1318
1322
|
/**
|
@@ -1334,7 +1338,7 @@ declare module "factorio:runtime" {
|
|
1334
1338
|
}
|
1335
1339
|
/**
|
1336
1340
|
* Called when a land mine is armed.
|
1337
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1341
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_land_mine_armed Online documentation}
|
1338
1342
|
*/
|
1339
1343
|
interface OnLandMineArmedEvent extends EventData {
|
1340
1344
|
readonly mine: LuaEntity
|
@@ -1348,8 +1352,8 @@ declare module "factorio:runtime" {
|
|
1348
1352
|
readonly tick: uint
|
1349
1353
|
}
|
1350
1354
|
/**
|
1351
|
-
* Called when a custom Lua shortcut is pressed.
|
1352
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1355
|
+
* Called when a custom {@link import("factorio:prototype").ShortcutPrototype Lua shortcut} is pressed.
|
1356
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_lua_shortcut Online documentation}
|
1353
1357
|
*/
|
1354
1358
|
interface OnLuaShortcutEvent extends EventData {
|
1355
1359
|
readonly player_index: PlayerIndex
|
@@ -1368,7 +1372,7 @@ declare module "factorio:runtime" {
|
|
1368
1372
|
}
|
1369
1373
|
/**
|
1370
1374
|
* Called when an entity is marked for deconstruction with the Deconstruction planner or via script. Can be filtered using {@link LuaEntityMarkedForDeconstructionEventFilter}.
|
1371
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1375
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_marked_for_deconstruction Online documentation}
|
1372
1376
|
*/
|
1373
1377
|
interface OnMarkedForDeconstructionEvent extends EventData {
|
1374
1378
|
readonly entity: LuaEntity
|
@@ -1384,7 +1388,7 @@ declare module "factorio:runtime" {
|
|
1384
1388
|
}
|
1385
1389
|
/**
|
1386
1390
|
* Called when an entity is marked for upgrade with the Upgrade planner or via script. Can be filtered using {@link LuaEntityMarkedForUpgradeEventFilter}.
|
1387
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1391
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_marked_for_upgrade Online documentation}
|
1388
1392
|
*/
|
1389
1393
|
interface OnMarkedForUpgradeEvent extends EventData {
|
1390
1394
|
readonly entity: LuaEntity
|
@@ -1405,7 +1409,7 @@ declare module "factorio:runtime" {
|
|
1405
1409
|
}
|
1406
1410
|
/**
|
1407
1411
|
* Called after a player purchases some offer from a `market` entity.
|
1408
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1412
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_market_item_purchased Online documentation}
|
1409
1413
|
*/
|
1410
1414
|
interface OnMarketItemPurchasedEvent extends EventData {
|
1411
1415
|
/**
|
@@ -1435,7 +1439,7 @@ declare module "factorio:runtime" {
|
|
1435
1439
|
}
|
1436
1440
|
/**
|
1437
1441
|
* Called when the player uses the 'Open item GUI' control on an item defined with the 'mod-openable' flag
|
1438
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1442
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_mod_item_opened Online documentation}
|
1439
1443
|
*/
|
1440
1444
|
interface OnModItemOpenedEvent extends EventData {
|
1441
1445
|
/**
|
@@ -1457,7 +1461,7 @@ declare module "factorio:runtime" {
|
|
1457
1461
|
}
|
1458
1462
|
/**
|
1459
1463
|
* Called directly after a permission group is added.
|
1460
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1464
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_permission_group_added Online documentation}
|
1461
1465
|
*/
|
1462
1466
|
interface OnPermissionGroupAddedEvent extends EventData {
|
1463
1467
|
/**
|
@@ -1479,7 +1483,7 @@ declare module "factorio:runtime" {
|
|
1479
1483
|
}
|
1480
1484
|
/**
|
1481
1485
|
* Called directly after a permission group is deleted.
|
1482
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1486
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_permission_group_deleted Online documentation}
|
1483
1487
|
*/
|
1484
1488
|
interface OnPermissionGroupDeletedEvent extends EventData {
|
1485
1489
|
/**
|
@@ -1505,7 +1509,7 @@ declare module "factorio:runtime" {
|
|
1505
1509
|
}
|
1506
1510
|
/**
|
1507
1511
|
* Called directly after a permission group is edited in some way.
|
1508
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1512
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_permission_group_edited Online documentation}
|
1509
1513
|
*/
|
1510
1514
|
interface OnPermissionGroupEditedEvent extends EventData {
|
1511
1515
|
/**
|
@@ -1554,7 +1558,7 @@ declare module "factorio:runtime" {
|
|
1554
1558
|
}
|
1555
1559
|
/**
|
1556
1560
|
* Called directly after a permission string is imported.
|
1557
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1561
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_permission_string_imported Online documentation}
|
1558
1562
|
*/
|
1559
1563
|
interface OnPermissionStringImportedEvent extends EventData {
|
1560
1564
|
/**
|
@@ -1572,7 +1576,7 @@ declare module "factorio:runtime" {
|
|
1572
1576
|
}
|
1573
1577
|
/**
|
1574
1578
|
* Called when a player picks up an item.
|
1575
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1579
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_picked_up_item Online documentation}
|
1576
1580
|
*/
|
1577
1581
|
interface OnPickedUpItemEvent extends EventData {
|
1578
1582
|
readonly item_stack: SimpleItemStack
|
@@ -1588,7 +1592,7 @@ declare module "factorio:runtime" {
|
|
1588
1592
|
}
|
1589
1593
|
/**
|
1590
1594
|
* Called after a player alt-reverse-selects an area with a selection-tool item.
|
1591
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1595
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_alt_reverse_selected_area Online documentation}
|
1592
1596
|
*/
|
1593
1597
|
interface OnPlayerAltReverseSelectedAreaEvent extends EventData {
|
1594
1598
|
/**
|
@@ -1626,7 +1630,7 @@ declare module "factorio:runtime" {
|
|
1626
1630
|
}
|
1627
1631
|
/**
|
1628
1632
|
* Called after a player alt-selects an area with a selection-tool item.
|
1629
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1633
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_alt_selected_area Online documentation}
|
1630
1634
|
*/
|
1631
1635
|
interface OnPlayerAltSelectedAreaEvent extends EventData {
|
1632
1636
|
/**
|
@@ -1664,7 +1668,7 @@ declare module "factorio:runtime" {
|
|
1664
1668
|
}
|
1665
1669
|
/**
|
1666
1670
|
* Called after a players ammo inventory changed in some way.
|
1667
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1671
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_ammo_inventory_changed Online documentation}
|
1668
1672
|
*/
|
1669
1673
|
interface OnPlayerAmmoInventoryChangedEvent extends EventData {
|
1670
1674
|
readonly player_index: PlayerIndex
|
@@ -1679,7 +1683,7 @@ declare module "factorio:runtime" {
|
|
1679
1683
|
}
|
1680
1684
|
/**
|
1681
1685
|
* Called after a players armor inventory changed in some way.
|
1682
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1686
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_armor_inventory_changed Online documentation}
|
1683
1687
|
*/
|
1684
1688
|
interface OnPlayerArmorInventoryChangedEvent extends EventData {
|
1685
1689
|
readonly player_index: PlayerIndex
|
@@ -1694,7 +1698,7 @@ declare module "factorio:runtime" {
|
|
1694
1698
|
}
|
1695
1699
|
/**
|
1696
1700
|
* Called when a player is banned.
|
1697
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1701
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_banned Online documentation}
|
1698
1702
|
*/
|
1699
1703
|
interface OnPlayerBannedEvent extends EventData {
|
1700
1704
|
/**
|
@@ -1724,7 +1728,7 @@ declare module "factorio:runtime" {
|
|
1724
1728
|
}
|
1725
1729
|
/**
|
1726
1730
|
* Called after a player builds tiles.
|
1727
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1731
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_built_tile Online documentation}
|
1728
1732
|
*/
|
1729
1733
|
interface OnPlayerBuiltTileEvent extends EventData {
|
1730
1734
|
readonly player_index: PlayerIndex
|
@@ -1759,7 +1763,7 @@ declare module "factorio:runtime" {
|
|
1759
1763
|
}
|
1760
1764
|
/**
|
1761
1765
|
* Called when a player cancels crafting.
|
1762
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1766
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_cancelled_crafting Online documentation}
|
1763
1767
|
*/
|
1764
1768
|
interface OnPlayerCancelledCraftingEvent extends EventData {
|
1765
1769
|
/**
|
@@ -1789,7 +1793,7 @@ declare module "factorio:runtime" {
|
|
1789
1793
|
}
|
1790
1794
|
/**
|
1791
1795
|
* Called after a player changes forces.
|
1792
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1796
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_changed_force Online documentation}
|
1793
1797
|
*/
|
1794
1798
|
interface OnPlayerChangedForceEvent extends EventData {
|
1795
1799
|
/**
|
@@ -1811,7 +1815,7 @@ declare module "factorio:runtime" {
|
|
1811
1815
|
}
|
1812
1816
|
/**
|
1813
1817
|
* Called when the tile position a player is located at changes.
|
1814
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1818
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_changed_position Online documentation}
|
1815
1819
|
*/
|
1816
1820
|
interface OnPlayerChangedPositionEvent extends EventData {
|
1817
1821
|
/**
|
@@ -1830,7 +1834,7 @@ declare module "factorio:runtime" {
|
|
1830
1834
|
/**
|
1831
1835
|
* Called after a player changes surfaces.
|
1832
1836
|
* @remarks In the instance a player is moved off a surface due to it being deleted this is not called.
|
1833
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1837
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_changed_surface Online documentation}
|
1834
1838
|
*/
|
1835
1839
|
interface OnPlayerChangedSurfaceEvent extends EventData {
|
1836
1840
|
/**
|
@@ -1852,7 +1856,7 @@ declare module "factorio:runtime" {
|
|
1852
1856
|
}
|
1853
1857
|
/**
|
1854
1858
|
* Called when cheat mode is disabled on a player.
|
1855
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1859
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_cheat_mode_disabled Online documentation}
|
1856
1860
|
*/
|
1857
1861
|
interface OnPlayerCheatModeDisabledEvent extends EventData {
|
1858
1862
|
/**
|
@@ -1870,7 +1874,7 @@ declare module "factorio:runtime" {
|
|
1870
1874
|
}
|
1871
1875
|
/**
|
1872
1876
|
* Called when cheat mode is enabled on a player.
|
1873
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1877
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_cheat_mode_enabled Online documentation}
|
1874
1878
|
*/
|
1875
1879
|
interface OnPlayerCheatModeEnabledEvent extends EventData {
|
1876
1880
|
/**
|
@@ -1888,7 +1892,7 @@ declare module "factorio:runtime" {
|
|
1888
1892
|
}
|
1889
1893
|
/**
|
1890
1894
|
* Called when a player clicks a gps tag
|
1891
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1895
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_clicked_gps_tag Online documentation}
|
1892
1896
|
*/
|
1893
1897
|
interface OnPlayerClickedGpsTagEvent extends EventData {
|
1894
1898
|
/**
|
@@ -1914,7 +1918,7 @@ declare module "factorio:runtime" {
|
|
1914
1918
|
}
|
1915
1919
|
/**
|
1916
1920
|
* Called when a player clicks the "confirm" button in the configure Blueprint GUI.
|
1917
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1921
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_configured_blueprint Online documentation}
|
1918
1922
|
*/
|
1919
1923
|
interface OnPlayerConfiguredBlueprintEvent extends EventData {
|
1920
1924
|
/**
|
@@ -1932,7 +1936,7 @@ declare module "factorio:runtime" {
|
|
1932
1936
|
}
|
1933
1937
|
/**
|
1934
1938
|
* Called when a player configures spidertron remote to be connected with a given spidertron
|
1935
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1939
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_configured_spider_remote Online documentation}
|
1936
1940
|
*/
|
1937
1941
|
interface OnPlayerConfiguredSpiderRemoteEvent extends EventData {
|
1938
1942
|
/**
|
@@ -1954,7 +1958,7 @@ declare module "factorio:runtime" {
|
|
1954
1958
|
}
|
1955
1959
|
/**
|
1956
1960
|
* 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}).
|
1957
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1961
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_crafted_item Online documentation}
|
1958
1962
|
*/
|
1959
1963
|
interface OnPlayerCraftedItemEvent extends EventData {
|
1960
1964
|
/**
|
@@ -1980,7 +1984,7 @@ declare module "factorio:runtime" {
|
|
1980
1984
|
}
|
1981
1985
|
/**
|
1982
1986
|
* Called after the player was created.
|
1983
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
1987
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_created Online documentation}
|
1984
1988
|
*/
|
1985
1989
|
interface OnPlayerCreatedEvent extends EventData {
|
1986
1990
|
readonly player_index: PlayerIndex
|
@@ -1995,7 +1999,7 @@ declare module "factorio:runtime" {
|
|
1995
1999
|
}
|
1996
2000
|
/**
|
1997
2001
|
* Called after a player's {@link LuaControl#cursor_stack cursor stack} changed in some way.
|
1998
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2002
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_cursor_stack_changed Online documentation}
|
1999
2003
|
*/
|
2000
2004
|
interface OnPlayerCursorStackChangedEvent extends EventData {
|
2001
2005
|
readonly player_index: PlayerIndex
|
@@ -2010,7 +2014,7 @@ declare module "factorio:runtime" {
|
|
2010
2014
|
}
|
2011
2015
|
/**
|
2012
2016
|
* Called when a player selects an area with a deconstruction planner.
|
2013
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2017
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_deconstructed_area Online documentation}
|
2014
2018
|
*/
|
2015
2019
|
interface OnPlayerDeconstructedAreaEvent extends EventData {
|
2016
2020
|
/**
|
@@ -2044,7 +2048,7 @@ declare module "factorio:runtime" {
|
|
2044
2048
|
}
|
2045
2049
|
/**
|
2046
2050
|
* Called when a player is demoted.
|
2047
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2051
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_demoted Online documentation}
|
2048
2052
|
*/
|
2049
2053
|
interface OnPlayerDemotedEvent extends EventData {
|
2050
2054
|
/**
|
@@ -2062,7 +2066,7 @@ declare module "factorio:runtime" {
|
|
2062
2066
|
}
|
2063
2067
|
/**
|
2064
2068
|
* Called after a player dies.
|
2065
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2069
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_died Online documentation}
|
2066
2070
|
*/
|
2067
2071
|
interface OnPlayerDiedEvent extends EventData {
|
2068
2072
|
readonly player_index: PlayerIndex
|
@@ -2078,7 +2082,7 @@ declare module "factorio:runtime" {
|
|
2078
2082
|
}
|
2079
2083
|
/**
|
2080
2084
|
* Called when the display resolution changes for a given player.
|
2081
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2085
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_display_resolution_changed Online documentation}
|
2082
2086
|
*/
|
2083
2087
|
interface OnPlayerDisplayResolutionChangedEvent extends EventData {
|
2084
2088
|
/**
|
@@ -2100,7 +2104,7 @@ declare module "factorio:runtime" {
|
|
2100
2104
|
}
|
2101
2105
|
/**
|
2102
2106
|
* Called when the display scale changes for a given player.
|
2103
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2107
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_display_scale_changed Online documentation}
|
2104
2108
|
*/
|
2105
2109
|
interface OnPlayerDisplayScaleChangedEvent extends EventData {
|
2106
2110
|
/**
|
@@ -2123,7 +2127,7 @@ declare module "factorio:runtime" {
|
|
2123
2127
|
/**
|
2124
2128
|
* Called when the player's driving state has changed, meaning a player has either entered or left a vehicle.
|
2125
2129
|
* @remarks This event is not raised when the player is ejected from a vehicle due to it being destroyed.
|
2126
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2130
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_driving_changed_state Online documentation}
|
2127
2131
|
*/
|
2128
2132
|
interface OnPlayerDrivingChangedStateEvent extends EventData {
|
2129
2133
|
readonly player_index: PlayerIndex
|
@@ -2142,7 +2146,7 @@ declare module "factorio:runtime" {
|
|
2142
2146
|
}
|
2143
2147
|
/**
|
2144
2148
|
* Called when a player drops an item on the ground.
|
2145
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2149
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_dropped_item Online documentation}
|
2146
2150
|
*/
|
2147
2151
|
interface OnPlayerDroppedItemEvent extends EventData {
|
2148
2152
|
readonly player_index: PlayerIndex
|
@@ -2161,7 +2165,7 @@ declare module "factorio:runtime" {
|
|
2161
2165
|
}
|
2162
2166
|
/**
|
2163
2167
|
* Called when a player fast-transfers something to or from an entity.
|
2164
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2168
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_fast_transferred Online documentation}
|
2165
2169
|
*/
|
2166
2170
|
interface OnPlayerFastTransferredEvent extends EventData {
|
2167
2171
|
/**
|
@@ -2191,7 +2195,7 @@ declare module "factorio:runtime" {
|
|
2191
2195
|
}
|
2192
2196
|
/**
|
2193
2197
|
* Called after player flushed fluid
|
2194
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2198
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_flushed_fluid Online documentation}
|
2195
2199
|
*/
|
2196
2200
|
interface OnPlayerFlushedFluidEvent extends EventData {
|
2197
2201
|
/**
|
@@ -2225,7 +2229,7 @@ declare module "factorio:runtime" {
|
|
2225
2229
|
}
|
2226
2230
|
/**
|
2227
2231
|
* Called after a players gun inventory changed in some way.
|
2228
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2232
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_gun_inventory_changed Online documentation}
|
2229
2233
|
*/
|
2230
2234
|
interface OnPlayerGunInventoryChangedEvent extends EventData {
|
2231
2235
|
readonly player_index: PlayerIndex
|
@@ -2241,7 +2245,7 @@ declare module "factorio:runtime" {
|
|
2241
2245
|
/**
|
2242
2246
|
* Called when a player's input method changes.
|
2243
2247
|
* @remarks See {@link LuaPlayer#input_method LuaPlayer::input_method}.
|
2244
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2248
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_input_method_changed Online documentation}
|
2245
2249
|
*/
|
2246
2250
|
interface OnPlayerInputMethodChangedEvent extends EventData {
|
2247
2251
|
/**
|
@@ -2259,7 +2263,7 @@ declare module "factorio:runtime" {
|
|
2259
2263
|
}
|
2260
2264
|
/**
|
2261
2265
|
* 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.
|
2262
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2266
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_joined_game Online documentation}
|
2263
2267
|
*/
|
2264
2268
|
interface OnPlayerJoinedGameEvent extends EventData {
|
2265
2269
|
readonly player_index: PlayerIndex
|
@@ -2274,7 +2278,7 @@ declare module "factorio:runtime" {
|
|
2274
2278
|
}
|
2275
2279
|
/**
|
2276
2280
|
* Called when a player is kicked.
|
2277
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2281
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_kicked Online documentation}
|
2278
2282
|
*/
|
2279
2283
|
interface OnPlayerKickedEvent extends EventData {
|
2280
2284
|
/**
|
@@ -2300,7 +2304,7 @@ declare module "factorio:runtime" {
|
|
2300
2304
|
}
|
2301
2305
|
/**
|
2302
2306
|
* 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.
|
2303
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2307
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_left_game Online documentation}
|
2304
2308
|
*/
|
2305
2309
|
interface OnPlayerLeftGameEvent extends EventData {
|
2306
2310
|
readonly player_index: PlayerIndex
|
@@ -2316,7 +2320,7 @@ declare module "factorio:runtime" {
|
|
2316
2320
|
}
|
2317
2321
|
/**
|
2318
2322
|
* Called after a players main inventory changed in some way.
|
2319
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2323
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_main_inventory_changed Online documentation}
|
2320
2324
|
*/
|
2321
2325
|
interface OnPlayerMainInventoryChangedEvent extends EventData {
|
2322
2326
|
readonly player_index: PlayerIndex
|
@@ -2332,7 +2336,7 @@ declare module "factorio:runtime" {
|
|
2332
2336
|
/**
|
2333
2337
|
* Called after the results of an entity being mined are collected just before the entity is destroyed. After this event any items in the buffer will be transferred into the player as if they came from mining the entity. Can be filtered using {@link LuaPlayerMinedEntityEventFilter}.
|
2334
2338
|
* @remarks 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.
|
2335
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2339
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_mined_entity Online documentation}
|
2336
2340
|
*/
|
2337
2341
|
interface OnPlayerMinedEntityEvent extends EventData {
|
2338
2342
|
/**
|
@@ -2358,7 +2362,7 @@ declare module "factorio:runtime" {
|
|
2358
2362
|
}
|
2359
2363
|
/**
|
2360
2364
|
* Called when the player mines something.
|
2361
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2365
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_mined_item Online documentation}
|
2362
2366
|
*/
|
2363
2367
|
interface OnPlayerMinedItemEvent extends EventData {
|
2364
2368
|
/**
|
@@ -2377,7 +2381,7 @@ declare module "factorio:runtime" {
|
|
2377
2381
|
}
|
2378
2382
|
/**
|
2379
2383
|
* Called after a player mines tiles.
|
2380
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2384
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_mined_tile Online documentation}
|
2381
2385
|
*/
|
2382
2386
|
interface OnPlayerMinedTileEvent extends EventData {
|
2383
2387
|
readonly player_index: PlayerIndex
|
@@ -2400,7 +2404,7 @@ declare module "factorio:runtime" {
|
|
2400
2404
|
}
|
2401
2405
|
/**
|
2402
2406
|
* Called when a player is muted.
|
2403
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2407
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_muted Online documentation}
|
2404
2408
|
*/
|
2405
2409
|
interface OnPlayerMutedEvent extends EventData {
|
2406
2410
|
/**
|
@@ -2418,7 +2422,7 @@ declare module "factorio:runtime" {
|
|
2418
2422
|
}
|
2419
2423
|
/**
|
2420
2424
|
* Called when a player invokes the "smart pipette" over an entity.
|
2421
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2425
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_pipette Online documentation}
|
2422
2426
|
*/
|
2423
2427
|
interface OnPlayerPipetteEvent extends EventData {
|
2424
2428
|
/**
|
@@ -2444,7 +2448,7 @@ declare module "factorio:runtime" {
|
|
2444
2448
|
}
|
2445
2449
|
/**
|
2446
2450
|
* Called after the player puts equipment in an equipment grid
|
2447
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2451
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_placed_equipment Online documentation}
|
2448
2452
|
*/
|
2449
2453
|
interface OnPlayerPlacedEquipmentEvent extends EventData {
|
2450
2454
|
readonly player_index: PlayerIndex
|
@@ -2467,7 +2471,7 @@ declare module "factorio:runtime" {
|
|
2467
2471
|
}
|
2468
2472
|
/**
|
2469
2473
|
* Called when a player is promoted.
|
2470
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2474
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_promoted Online documentation}
|
2471
2475
|
*/
|
2472
2476
|
interface OnPlayerPromotedEvent extends EventData {
|
2473
2477
|
/**
|
@@ -2485,7 +2489,7 @@ declare module "factorio:runtime" {
|
|
2485
2489
|
}
|
2486
2490
|
/**
|
2487
2491
|
* 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.
|
2488
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2492
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_removed Online documentation}
|
2489
2493
|
*/
|
2490
2494
|
interface OnPlayerRemovedEvent extends EventData {
|
2491
2495
|
/**
|
@@ -2503,7 +2507,7 @@ declare module "factorio:runtime" {
|
|
2503
2507
|
}
|
2504
2508
|
/**
|
2505
2509
|
* Called after the player removes equipment from an equipment grid
|
2506
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2510
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_removed_equipment Online documentation}
|
2507
2511
|
*/
|
2508
2512
|
interface OnPlayerRemovedEquipmentEvent extends EventData {
|
2509
2513
|
readonly player_index: PlayerIndex
|
@@ -2530,7 +2534,7 @@ declare module "factorio:runtime" {
|
|
2530
2534
|
}
|
2531
2535
|
/**
|
2532
2536
|
* Called when a player repairs an entity. Can be filtered using {@link LuaPlayerRepairedEntityEventFilter}.
|
2533
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2537
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_repaired_entity Online documentation}
|
2534
2538
|
*/
|
2535
2539
|
interface OnPlayerRepairedEntityEvent extends EventData {
|
2536
2540
|
readonly player_index: PlayerIndex
|
@@ -2546,7 +2550,7 @@ declare module "factorio:runtime" {
|
|
2546
2550
|
}
|
2547
2551
|
/**
|
2548
2552
|
* Called after a player respawns.
|
2549
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2553
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_respawned Online documentation}
|
2550
2554
|
*/
|
2551
2555
|
interface OnPlayerRespawnedEvent extends EventData {
|
2552
2556
|
readonly player_index: PlayerIndex
|
@@ -2565,7 +2569,7 @@ declare module "factorio:runtime" {
|
|
2565
2569
|
}
|
2566
2570
|
/**
|
2567
2571
|
* Called after a player reverse-selects an area with a selection-tool item.
|
2568
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2572
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_reverse_selected_area Online documentation}
|
2569
2573
|
*/
|
2570
2574
|
interface OnPlayerReverseSelectedAreaEvent extends EventData {
|
2571
2575
|
/**
|
@@ -2603,7 +2607,7 @@ declare module "factorio:runtime" {
|
|
2603
2607
|
}
|
2604
2608
|
/**
|
2605
2609
|
* 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.
|
2606
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2610
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_rotated_entity Online documentation}
|
2607
2611
|
*/
|
2608
2612
|
interface OnPlayerRotatedEntityEvent extends EventData {
|
2609
2613
|
/**
|
@@ -2626,7 +2630,7 @@ declare module "factorio:runtime" {
|
|
2626
2630
|
}
|
2627
2631
|
/**
|
2628
2632
|
* Called after a player selects an area with a selection-tool item.
|
2629
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2633
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_selected_area Online documentation}
|
2630
2634
|
*/
|
2631
2635
|
interface OnPlayerSelectedAreaEvent extends EventData {
|
2632
2636
|
/**
|
@@ -2664,7 +2668,7 @@ declare module "factorio:runtime" {
|
|
2664
2668
|
}
|
2665
2669
|
/**
|
2666
2670
|
* Called when a player sets a quickbar slot to anything (new value, or set to empty).
|
2667
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2671
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_set_quick_bar_slot Online documentation}
|
2668
2672
|
*/
|
2669
2673
|
interface OnPlayerSetQuickBarSlotEvent extends EventData {
|
2670
2674
|
readonly player_index: PlayerIndex
|
@@ -2679,7 +2683,7 @@ declare module "factorio:runtime" {
|
|
2679
2683
|
}
|
2680
2684
|
/**
|
2681
2685
|
* Called when a player selects an area with a blueprint.
|
2682
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2686
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_setup_blueprint Online documentation}
|
2683
2687
|
*/
|
2684
2688
|
interface OnPlayerSetupBlueprintEvent extends EventData {
|
2685
2689
|
/**
|
@@ -2717,7 +2721,7 @@ declare module "factorio:runtime" {
|
|
2717
2721
|
}
|
2718
2722
|
/**
|
2719
2723
|
* Called when a player toggles alt mode, also known as "show entity info".
|
2720
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2724
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_toggled_alt_mode Online documentation}
|
2721
2725
|
*/
|
2722
2726
|
interface OnPlayerToggledAltModeEvent extends EventData {
|
2723
2727
|
readonly player_index: PlayerIndex
|
@@ -2736,7 +2740,7 @@ declare module "factorio:runtime" {
|
|
2736
2740
|
}
|
2737
2741
|
/**
|
2738
2742
|
* Called when a player toggles the map editor on or off.
|
2739
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2743
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_toggled_map_editor Online documentation}
|
2740
2744
|
*/
|
2741
2745
|
interface OnPlayerToggledMapEditorEvent extends EventData {
|
2742
2746
|
readonly player_index: PlayerIndex
|
@@ -2751,7 +2755,7 @@ declare module "factorio:runtime" {
|
|
2751
2755
|
}
|
2752
2756
|
/**
|
2753
2757
|
* Called after a players trash inventory changed in some way.
|
2754
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2758
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_trash_inventory_changed Online documentation}
|
2755
2759
|
*/
|
2756
2760
|
interface OnPlayerTrashInventoryChangedEvent extends EventData {
|
2757
2761
|
readonly player_index: PlayerIndex
|
@@ -2766,7 +2770,7 @@ declare module "factorio:runtime" {
|
|
2766
2770
|
}
|
2767
2771
|
/**
|
2768
2772
|
* Called when a player is un-banned.
|
2769
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2773
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_unbanned Online documentation}
|
2770
2774
|
*/
|
2771
2775
|
interface OnPlayerUnbannedEvent extends EventData {
|
2772
2776
|
/**
|
@@ -2796,7 +2800,7 @@ declare module "factorio:runtime" {
|
|
2796
2800
|
}
|
2797
2801
|
/**
|
2798
2802
|
* Called when a player is unmuted.
|
2799
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2803
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_unmuted Online documentation}
|
2800
2804
|
*/
|
2801
2805
|
interface OnPlayerUnmutedEvent extends EventData {
|
2802
2806
|
/**
|
@@ -2814,7 +2818,7 @@ declare module "factorio:runtime" {
|
|
2814
2818
|
}
|
2815
2819
|
/**
|
2816
2820
|
* Called when a player uses a capsule that results in some game action.
|
2817
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2821
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_used_capsule Online documentation}
|
2818
2822
|
*/
|
2819
2823
|
interface OnPlayerUsedCapsuleEvent extends EventData {
|
2820
2824
|
/**
|
@@ -2840,7 +2844,7 @@ declare module "factorio:runtime" {
|
|
2840
2844
|
}
|
2841
2845
|
/**
|
2842
2846
|
* Called when a player uses spidertron remote to send a spidertron to a given position
|
2843
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2847
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_player_used_spider_remote Online documentation}
|
2844
2848
|
*/
|
2845
2849
|
interface OnPlayerUsedSpiderRemoteEvent extends EventData {
|
2846
2850
|
/**
|
@@ -2870,7 +2874,7 @@ declare module "factorio:runtime" {
|
|
2870
2874
|
}
|
2871
2875
|
/**
|
2872
2876
|
* Called after an entity dies. Can be filtered using {@link LuaPostEntityDiedEventFilter}.
|
2873
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2877
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_post_entity_died Online documentation}
|
2874
2878
|
*/
|
2875
2879
|
interface OnPostEntityDiedEvent extends EventData {
|
2876
2880
|
/**
|
@@ -2916,7 +2920,7 @@ declare module "factorio:runtime" {
|
|
2916
2920
|
}
|
2917
2921
|
/**
|
2918
2922
|
* Called when players uses an item to build something. Called before {@link OnBuiltEntityEvent on_built_entity}.
|
2919
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2923
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_build Online documentation}
|
2920
2924
|
*/
|
2921
2925
|
interface OnPreBuildEvent extends EventData {
|
2922
2926
|
/**
|
@@ -2958,7 +2962,7 @@ declare module "factorio:runtime" {
|
|
2958
2962
|
}
|
2959
2963
|
/**
|
2960
2964
|
* Called before one or more chunks are deleted using {@link LuaSurface#delete_chunk LuaSurface::delete_chunk}.
|
2961
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2965
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_chunk_deleted Online documentation}
|
2962
2966
|
*/
|
2963
2967
|
interface OnPreChunkDeletedEvent extends EventData {
|
2964
2968
|
readonly surface_index: SurfaceIndex
|
@@ -2977,7 +2981,7 @@ declare module "factorio:runtime" {
|
|
2977
2981
|
}
|
2978
2982
|
/**
|
2979
2983
|
* Called before entity copy-paste is done.
|
2980
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
2984
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_entity_settings_pasted Online documentation}
|
2981
2985
|
*/
|
2982
2986
|
interface OnPreEntitySettingsPastedEvent extends EventData {
|
2983
2987
|
readonly player_index: PlayerIndex
|
@@ -3000,7 +3004,7 @@ declare module "factorio:runtime" {
|
|
3000
3004
|
}
|
3001
3005
|
/**
|
3002
3006
|
* Called before a ghost entity is destroyed as a result of being marked for deconstruction. Can be filtered using {@link LuaPreGhostDeconstructedEventFilter}.
|
3003
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3007
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_ghost_deconstructed Online documentation}
|
3004
3008
|
*/
|
3005
3009
|
interface OnPreGhostDeconstructedEvent extends EventData {
|
3006
3010
|
/**
|
@@ -3019,7 +3023,7 @@ declare module "factorio:runtime" {
|
|
3019
3023
|
}
|
3020
3024
|
/**
|
3021
3025
|
* Called before a ghost entity is upgraded. Can be filtered using {@link LuaPreGhostUpgradedEventFilter}.
|
3022
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3026
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_ghost_upgraded Online documentation}
|
3023
3027
|
*/
|
3024
3028
|
interface OnPreGhostUpgradedEvent extends EventData {
|
3025
3029
|
/**
|
@@ -3039,7 +3043,7 @@ declare module "factorio:runtime" {
|
|
3039
3043
|
}
|
3040
3044
|
/**
|
3041
3045
|
* Called directly before a permission group is deleted.
|
3042
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3046
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_permission_group_deleted Online documentation}
|
3043
3047
|
*/
|
3044
3048
|
interface OnPrePermissionGroupDeletedEvent extends EventData {
|
3045
3049
|
/**
|
@@ -3061,7 +3065,7 @@ declare module "factorio:runtime" {
|
|
3061
3065
|
}
|
3062
3066
|
/**
|
3063
3067
|
* Called directly before a permission string is imported.
|
3064
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3068
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_permission_string_imported Online documentation}
|
3065
3069
|
*/
|
3066
3070
|
interface OnPrePermissionStringImportedEvent extends EventData {
|
3067
3071
|
/**
|
@@ -3079,7 +3083,7 @@ declare module "factorio:runtime" {
|
|
3079
3083
|
}
|
3080
3084
|
/**
|
3081
3085
|
* Called when a player queues something to be crafted.
|
3082
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3086
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_player_crafted_item Online documentation}
|
3083
3087
|
*/
|
3084
3088
|
interface OnPrePlayerCraftedItemEvent extends EventData {
|
3085
3089
|
/**
|
@@ -3109,7 +3113,7 @@ declare module "factorio:runtime" {
|
|
3109
3113
|
}
|
3110
3114
|
/**
|
3111
3115
|
* Called before a players dies.
|
3112
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3116
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_player_died Online documentation}
|
3113
3117
|
*/
|
3114
3118
|
interface OnPrePlayerDiedEvent extends EventData {
|
3115
3119
|
readonly player_index: PlayerIndex
|
@@ -3125,7 +3129,7 @@ declare module "factorio:runtime" {
|
|
3125
3129
|
}
|
3126
3130
|
/**
|
3127
3131
|
* Called before a player leaves the game.
|
3128
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3132
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_player_left_game Online documentation}
|
3129
3133
|
*/
|
3130
3134
|
interface OnPrePlayerLeftGameEvent extends EventData {
|
3131
3135
|
readonly player_index: PlayerIndex
|
@@ -3141,7 +3145,7 @@ declare module "factorio:runtime" {
|
|
3141
3145
|
}
|
3142
3146
|
/**
|
3143
3147
|
* 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. Can be filtered using {@link LuaPrePlayerMinedEntityEventFilter}.
|
3144
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3148
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_player_mined_item Online documentation}
|
3145
3149
|
*/
|
3146
3150
|
interface OnPrePlayerMinedItemEvent extends EventData {
|
3147
3151
|
/**
|
@@ -3160,7 +3164,7 @@ declare module "factorio:runtime" {
|
|
3160
3164
|
}
|
3161
3165
|
/**
|
3162
3166
|
* 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.
|
3163
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3167
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_player_removed Online documentation}
|
3164
3168
|
*/
|
3165
3169
|
interface OnPrePlayerRemovedEvent extends EventData {
|
3166
3170
|
/**
|
@@ -3178,7 +3182,7 @@ declare module "factorio:runtime" {
|
|
3178
3182
|
}
|
3179
3183
|
/**
|
3180
3184
|
* Called before a player toggles the map editor on or off.
|
3181
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3185
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_player_toggled_map_editor Online documentation}
|
3182
3186
|
*/
|
3183
3187
|
interface OnPrePlayerToggledMapEditorEvent extends EventData {
|
3184
3188
|
readonly player_index: PlayerIndex
|
@@ -3193,7 +3197,7 @@ declare module "factorio:runtime" {
|
|
3193
3197
|
}
|
3194
3198
|
/**
|
3195
3199
|
* Called directly before a robot explodes cliffs.
|
3196
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3200
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_robot_exploded_cliff Online documentation}
|
3197
3201
|
*/
|
3198
3202
|
interface OnPreRobotExplodedCliffEvent extends EventData {
|
3199
3203
|
readonly robot: LuaEntity
|
@@ -3213,7 +3217,7 @@ declare module "factorio:runtime" {
|
|
3213
3217
|
}
|
3214
3218
|
/**
|
3215
3219
|
* Called just before a script inventory is resized.
|
3216
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3220
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_script_inventory_resized Online documentation}
|
3217
3221
|
*/
|
3218
3222
|
interface OnPreScriptInventoryResizedEvent extends EventData {
|
3219
3223
|
/**
|
@@ -3244,7 +3248,7 @@ declare module "factorio:runtime" {
|
|
3244
3248
|
}
|
3245
3249
|
/**
|
3246
3250
|
* Called just before a surface is cleared (all entities removed and all chunks deleted).
|
3247
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3251
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_surface_cleared Online documentation}
|
3248
3252
|
*/
|
3249
3253
|
interface OnPreSurfaceClearedEvent extends EventData {
|
3250
3254
|
readonly surface_index: SurfaceIndex
|
@@ -3259,7 +3263,7 @@ declare module "factorio:runtime" {
|
|
3259
3263
|
}
|
3260
3264
|
/**
|
3261
3265
|
* Called just before a surface is deleted.
|
3262
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3266
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_pre_surface_deleted Online documentation}
|
3263
3267
|
*/
|
3264
3268
|
interface OnPreSurfaceDeletedEvent extends EventData {
|
3265
3269
|
readonly surface_index: SurfaceIndex
|
@@ -3274,7 +3278,7 @@ declare module "factorio:runtime" {
|
|
3274
3278
|
}
|
3275
3279
|
/**
|
3276
3280
|
* Called when research is cancelled.
|
3277
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3281
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_research_cancelled Online documentation}
|
3278
3282
|
*/
|
3279
3283
|
interface OnResearchCancelledEvent extends EventData {
|
3280
3284
|
/**
|
@@ -3296,7 +3300,7 @@ declare module "factorio:runtime" {
|
|
3296
3300
|
}
|
3297
3301
|
/**
|
3298
3302
|
* Called when a research finishes.
|
3299
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3303
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_research_finished Online documentation}
|
3300
3304
|
*/
|
3301
3305
|
interface OnResearchFinishedEvent extends EventData {
|
3302
3306
|
/**
|
@@ -3318,7 +3322,7 @@ declare module "factorio:runtime" {
|
|
3318
3322
|
}
|
3319
3323
|
/**
|
3320
3324
|
* Called when a research is reversed (unresearched).
|
3321
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3325
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_research_reversed Online documentation}
|
3322
3326
|
*/
|
3323
3327
|
interface OnResearchReversedEvent extends EventData {
|
3324
3328
|
/**
|
@@ -3340,7 +3344,7 @@ declare module "factorio:runtime" {
|
|
3340
3344
|
}
|
3341
3345
|
/**
|
3342
3346
|
* Called when a technology research starts.
|
3343
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3347
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_research_started Online documentation}
|
3344
3348
|
*/
|
3345
3349
|
interface OnResearchStartedEvent extends EventData {
|
3346
3350
|
/**
|
@@ -3359,7 +3363,7 @@ declare module "factorio:runtime" {
|
|
3359
3363
|
}
|
3360
3364
|
/**
|
3361
3365
|
* Called when a resource entity reaches 0 or its minimum yield for infinite resources.
|
3362
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3366
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_resource_depleted Online documentation}
|
3363
3367
|
*/
|
3364
3368
|
interface OnResourceDepletedEvent extends EventData {
|
3365
3369
|
readonly entity: LuaEntity
|
@@ -3374,7 +3378,7 @@ declare module "factorio:runtime" {
|
|
3374
3378
|
}
|
3375
3379
|
/**
|
3376
3380
|
* Called when a construction robot builds an entity. Can be filtered using {@link LuaRobotBuiltEntityEventFilter}.
|
3377
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3381
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_robot_built_entity Online documentation}
|
3378
3382
|
*/
|
3379
3383
|
interface OnRobotBuiltEntityEvent extends EventData {
|
3380
3384
|
/**
|
@@ -3404,7 +3408,7 @@ declare module "factorio:runtime" {
|
|
3404
3408
|
}
|
3405
3409
|
/**
|
3406
3410
|
* Called after a robot builds tiles.
|
3407
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3411
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_robot_built_tile Online documentation}
|
3408
3412
|
*/
|
3409
3413
|
interface OnRobotBuiltTileEvent extends EventData {
|
3410
3414
|
/**
|
@@ -3442,7 +3446,7 @@ declare module "factorio:runtime" {
|
|
3442
3446
|
}
|
3443
3447
|
/**
|
3444
3448
|
* Called directly after a robot explodes cliffs.
|
3445
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3449
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_robot_exploded_cliff Online documentation}
|
3446
3450
|
*/
|
3447
3451
|
interface OnRobotExplodedCliffEvent extends EventData {
|
3448
3452
|
readonly robot: LuaEntity
|
@@ -3461,7 +3465,7 @@ declare module "factorio:runtime" {
|
|
3461
3465
|
}
|
3462
3466
|
/**
|
3463
3467
|
* Called when a robot mines an entity.
|
3464
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3468
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_robot_mined Online documentation}
|
3465
3469
|
*/
|
3466
3470
|
interface OnRobotMinedEvent extends EventData {
|
3467
3471
|
/**
|
@@ -3484,7 +3488,7 @@ declare module "factorio:runtime" {
|
|
3484
3488
|
/**
|
3485
3489
|
* Called after the results of an entity being mined are collected just before the entity is destroyed. After this event any items in the buffer will be transferred into the robot as if they came from mining the entity. Can be filtered using {@link LuaRobotMinedEntityEventFilter}.
|
3486
3490
|
* @remarks 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.
|
3487
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3491
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_robot_mined_entity Online documentation}
|
3488
3492
|
*/
|
3489
3493
|
interface OnRobotMinedEntityEvent extends EventData {
|
3490
3494
|
/**
|
@@ -3510,7 +3514,7 @@ declare module "factorio:runtime" {
|
|
3510
3514
|
}
|
3511
3515
|
/**
|
3512
3516
|
* Called after a robot mines tiles.
|
3513
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3517
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_robot_mined_tile Online documentation}
|
3514
3518
|
*/
|
3515
3519
|
interface OnRobotMinedTileEvent extends EventData {
|
3516
3520
|
/**
|
@@ -3536,7 +3540,7 @@ declare module "factorio:runtime" {
|
|
3536
3540
|
}
|
3537
3541
|
/**
|
3538
3542
|
* Called before a robot mines an entity. Can be filtered using {@link LuaPreRobotMinedEntityEventFilter}.
|
3539
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3543
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_robot_pre_mined Online documentation}
|
3540
3544
|
*/
|
3541
3545
|
interface OnRobotPreMinedEvent extends EventData {
|
3542
3546
|
/**
|
@@ -3558,7 +3562,7 @@ declare module "factorio:runtime" {
|
|
3558
3562
|
}
|
3559
3563
|
/**
|
3560
3564
|
* Called when a rocket silo is ordered to be launched.
|
3561
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3565
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_rocket_launch_ordered Online documentation}
|
3562
3566
|
*/
|
3563
3567
|
interface OnRocketLaunchOrderedEvent extends EventData {
|
3564
3568
|
readonly rocket: LuaEntity
|
@@ -3578,7 +3582,7 @@ declare module "factorio:runtime" {
|
|
3578
3582
|
}
|
3579
3583
|
/**
|
3580
3584
|
* Called when the rocket is launched.
|
3581
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3585
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_rocket_launched Online documentation}
|
3582
3586
|
*/
|
3583
3587
|
interface OnRocketLaunchedEvent extends EventData {
|
3584
3588
|
readonly rocket: LuaEntity
|
@@ -3598,7 +3602,7 @@ declare module "factorio:runtime" {
|
|
3598
3602
|
}
|
3599
3603
|
/**
|
3600
3604
|
* Called when a runtime mod setting is changed by a player.
|
3601
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3605
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_runtime_mod_setting_changed Online documentation}
|
3602
3606
|
*/
|
3603
3607
|
interface OnRuntimeModSettingChangedEvent extends EventData {
|
3604
3608
|
/**
|
@@ -3624,7 +3628,7 @@ declare module "factorio:runtime" {
|
|
3624
3628
|
}
|
3625
3629
|
/**
|
3626
3630
|
* Called just after a script inventory is resized.
|
3627
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3631
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_script_inventory_resized Online documentation}
|
3628
3632
|
*/
|
3629
3633
|
interface OnScriptInventoryResizedEvent extends EventData {
|
3630
3634
|
/**
|
@@ -3659,7 +3663,7 @@ declare module "factorio:runtime" {
|
|
3659
3663
|
}
|
3660
3664
|
/**
|
3661
3665
|
* Called when a {@link LuaSurface#request_path LuaSurface::request_path} call completes.
|
3662
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3666
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_script_path_request_finished Online documentation}
|
3663
3667
|
*/
|
3664
3668
|
interface OnScriptPathRequestFinishedEvent extends EventData {
|
3665
3669
|
/**
|
@@ -3685,7 +3689,7 @@ declare module "factorio:runtime" {
|
|
3685
3689
|
}
|
3686
3690
|
/**
|
3687
3691
|
* Called when a script trigger effect is triggered.
|
3688
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3692
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_script_trigger_effect Online documentation}
|
3689
3693
|
*/
|
3690
3694
|
interface OnScriptTriggerEffectEvent extends EventData {
|
3691
3695
|
/**
|
@@ -3711,7 +3715,7 @@ declare module "factorio:runtime" {
|
|
3711
3715
|
}
|
3712
3716
|
/**
|
3713
3717
|
* Called when an entity of type `radar` finishes scanning a sector. Can be filtered for the radar using {@link LuaSectorScannedEventFilter}.
|
3714
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3718
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_sector_scanned Online documentation}
|
3715
3719
|
*/
|
3716
3720
|
interface OnSectorScannedEvent extends EventData {
|
3717
3721
|
/**
|
@@ -3737,7 +3741,7 @@ declare module "factorio:runtime" {
|
|
3737
3741
|
}
|
3738
3742
|
/**
|
3739
3743
|
* Called after the selected entity changes for a given player.
|
3740
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3744
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_selected_entity_changed Online documentation}
|
3741
3745
|
*/
|
3742
3746
|
interface OnSelectedEntityChangedEvent extends EventData {
|
3743
3747
|
/**
|
@@ -3759,7 +3763,7 @@ declare module "factorio:runtime" {
|
|
3759
3763
|
}
|
3760
3764
|
/**
|
3761
3765
|
* Called when a spider finishes moving to its autopilot position.
|
3762
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3766
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_spider_command_completed Online documentation}
|
3763
3767
|
*/
|
3764
3768
|
interface OnSpiderCommandCompletedEvent extends EventData {
|
3765
3769
|
/**
|
@@ -3777,7 +3781,7 @@ declare module "factorio:runtime" {
|
|
3777
3781
|
}
|
3778
3782
|
/**
|
3779
3783
|
* 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.
|
3780
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3784
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_string_translated Online documentation}
|
3781
3785
|
*/
|
3782
3786
|
interface OnStringTranslatedEvent extends EventData {
|
3783
3787
|
/**
|
@@ -3811,7 +3815,7 @@ declare module "factorio:runtime" {
|
|
3811
3815
|
}
|
3812
3816
|
/**
|
3813
3817
|
* Called just after a surface is cleared (all entities removed and all chunks deleted).
|
3814
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3818
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_surface_cleared Online documentation}
|
3815
3819
|
*/
|
3816
3820
|
interface OnSurfaceClearedEvent extends EventData {
|
3817
3821
|
readonly surface_index: SurfaceIndex
|
@@ -3827,7 +3831,7 @@ declare module "factorio:runtime" {
|
|
3827
3831
|
/**
|
3828
3832
|
* Called when a surface is created.
|
3829
3833
|
* @remarks This is not called when the default surface is created as it will always exist.
|
3830
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3834
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_surface_created Online documentation}
|
3831
3835
|
*/
|
3832
3836
|
interface OnSurfaceCreatedEvent extends EventData {
|
3833
3837
|
readonly surface_index: SurfaceIndex
|
@@ -3842,7 +3846,7 @@ declare module "factorio:runtime" {
|
|
3842
3846
|
}
|
3843
3847
|
/**
|
3844
3848
|
* Called after a surface is deleted.
|
3845
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3849
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_surface_deleted Online documentation}
|
3846
3850
|
*/
|
3847
3851
|
interface OnSurfaceDeletedEvent extends EventData {
|
3848
3852
|
readonly surface_index: SurfaceIndex
|
@@ -3857,7 +3861,7 @@ declare module "factorio:runtime" {
|
|
3857
3861
|
}
|
3858
3862
|
/**
|
3859
3863
|
* Called after a surface is imported via the map editor.
|
3860
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3864
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_surface_imported Online documentation}
|
3861
3865
|
*/
|
3862
3866
|
interface OnSurfaceImportedEvent extends EventData {
|
3863
3867
|
readonly surface_index: SurfaceIndex
|
@@ -3876,7 +3880,7 @@ declare module "factorio:runtime" {
|
|
3876
3880
|
}
|
3877
3881
|
/**
|
3878
3882
|
* Called when a surface is renamed.
|
3879
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3883
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_surface_renamed Online documentation}
|
3880
3884
|
*/
|
3881
3885
|
interface OnSurfaceRenamedEvent extends EventData {
|
3882
3886
|
readonly surface_index: SurfaceIndex
|
@@ -3893,7 +3897,7 @@ declare module "factorio:runtime" {
|
|
3893
3897
|
}
|
3894
3898
|
/**
|
3895
3899
|
* Called when {@link LuaForce#reset_technology_effects LuaForce::reset_technology_effects} is finished.
|
3896
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3900
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_technology_effects_reset Online documentation}
|
3897
3901
|
*/
|
3898
3902
|
interface OnTechnologyEffectsResetEvent extends EventData {
|
3899
3903
|
readonly force: LuaForce
|
@@ -3908,7 +3912,7 @@ declare module "factorio:runtime" {
|
|
3908
3912
|
}
|
3909
3913
|
/**
|
3910
3914
|
* It is fired once every tick. Since this event is fired every tick, its handler shouldn't include performance heavy code.
|
3911
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3915
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_tick Online documentation}
|
3912
3916
|
*/
|
3913
3917
|
interface OnTickEvent extends EventData {
|
3914
3918
|
/**
|
@@ -3922,7 +3926,7 @@ declare module "factorio:runtime" {
|
|
3922
3926
|
}
|
3923
3927
|
/**
|
3924
3928
|
* Called when a train changes state (started to stopped and vice versa)
|
3925
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3929
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_train_changed_state Online documentation}
|
3926
3930
|
*/
|
3927
3931
|
interface OnTrainChangedStateEvent extends EventData {
|
3928
3932
|
readonly train: LuaTrain
|
@@ -3938,7 +3942,7 @@ declare module "factorio:runtime" {
|
|
3938
3942
|
}
|
3939
3943
|
/**
|
3940
3944
|
* Called when a new train is created either through disconnecting/connecting an existing one or building a new one.
|
3941
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3945
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_train_created Online documentation}
|
3942
3946
|
*/
|
3943
3947
|
interface OnTrainCreatedEvent extends EventData {
|
3944
3948
|
readonly train: LuaTrain
|
@@ -3961,7 +3965,7 @@ declare module "factorio:runtime" {
|
|
3961
3965
|
}
|
3962
3966
|
/**
|
3963
3967
|
* Called when a trains schedule is changed either by the player or through script.
|
3964
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3968
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_train_schedule_changed Online documentation}
|
3965
3969
|
*/
|
3966
3970
|
interface OnTrainScheduleChangedEvent extends EventData {
|
3967
3971
|
readonly train: LuaTrain
|
@@ -3980,7 +3984,7 @@ declare module "factorio:runtime" {
|
|
3980
3984
|
}
|
3981
3985
|
/**
|
3982
3986
|
* Called when an entity with a trigger prototype (such as capsules) create an entity AND that trigger prototype defined `trigger_created_entity="true"`.
|
3983
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
3987
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_trigger_created_entity Online documentation}
|
3984
3988
|
*/
|
3985
3989
|
interface OnTriggerCreatedEntityEvent extends EventData {
|
3986
3990
|
readonly entity: LuaEntity
|
@@ -3996,7 +4000,7 @@ declare module "factorio:runtime" {
|
|
3996
4000
|
}
|
3997
4001
|
/**
|
3998
4002
|
* Called when an entity with a trigger prototype (such as capsules) fire an artillery projectile AND that trigger prototype defined `trigger_fired_artillery="true"`.
|
3999
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4003
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_trigger_fired_artillery Online documentation}
|
4000
4004
|
*/
|
4001
4005
|
interface OnTriggerFiredArtilleryEvent extends EventData {
|
4002
4006
|
readonly entity: LuaEntity
|
@@ -4012,7 +4016,7 @@ declare module "factorio:runtime" {
|
|
4012
4016
|
}
|
4013
4017
|
/**
|
4014
4018
|
* Called when a unit is added to a unit group.
|
4015
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4019
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_unit_added_to_group Online documentation}
|
4016
4020
|
*/
|
4017
4021
|
interface OnUnitAddedToGroupEvent extends EventData {
|
4018
4022
|
readonly unit: LuaEntity
|
@@ -4028,7 +4032,7 @@ declare module "factorio:runtime" {
|
|
4028
4032
|
}
|
4029
4033
|
/**
|
4030
4034
|
* Called when a new unit group is created, before any members are added to it.
|
4031
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4035
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_unit_group_created Online documentation}
|
4032
4036
|
*/
|
4033
4037
|
interface OnUnitGroupCreatedEvent extends EventData {
|
4034
4038
|
readonly group: LuaUnitGroup
|
@@ -4043,7 +4047,7 @@ declare module "factorio:runtime" {
|
|
4043
4047
|
}
|
4044
4048
|
/**
|
4045
4049
|
* Called when a unit group finishes gathering and starts executing its command.
|
4046
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4050
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_unit_group_finished_gathering Online documentation}
|
4047
4051
|
*/
|
4048
4052
|
interface OnUnitGroupFinishedGatheringEvent extends EventData {
|
4049
4053
|
readonly group: LuaUnitGroup
|
@@ -4058,7 +4062,7 @@ declare module "factorio:runtime" {
|
|
4058
4062
|
}
|
4059
4063
|
/**
|
4060
4064
|
* Called when a unit is removed from a unit group.
|
4061
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4065
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_unit_removed_from_group Online documentation}
|
4062
4066
|
*/
|
4063
4067
|
interface OnUnitRemovedFromGroupEvent extends EventData {
|
4064
4068
|
readonly unit: LuaEntity
|
@@ -4074,7 +4078,7 @@ declare module "factorio:runtime" {
|
|
4074
4078
|
}
|
4075
4079
|
/**
|
4076
4080
|
* Called when a worker (construction or logistic) robot expires through a lack of energy.
|
4077
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4081
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#on_worker_robot_expired Online documentation}
|
4078
4082
|
*/
|
4079
4083
|
interface OnWorkerRobotExpiredEvent extends EventData {
|
4080
4084
|
readonly robot: LuaEntity
|
@@ -4089,7 +4093,7 @@ declare module "factorio:runtime" {
|
|
4089
4093
|
}
|
4090
4094
|
/**
|
4091
4095
|
* 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}. Can be filtered using {@link LuaScriptRaisedBuiltEventFilter}.
|
4092
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4096
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#script_raised_built Online documentation}
|
4093
4097
|
*/
|
4094
4098
|
interface ScriptRaisedBuiltEvent extends EventData {
|
4095
4099
|
/**
|
@@ -4107,7 +4111,7 @@ declare module "factorio:runtime" {
|
|
4107
4111
|
}
|
4108
4112
|
/**
|
4109
4113
|
* 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}. Can be filtered using {@link LuaScriptRaisedDestroyEventFilter}.
|
4110
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4114
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#script_raised_destroy Online documentation}
|
4111
4115
|
*/
|
4112
4116
|
interface ScriptRaisedDestroyEvent extends EventData {
|
4113
4117
|
/**
|
@@ -4125,7 +4129,7 @@ declare module "factorio:runtime" {
|
|
4125
4129
|
}
|
4126
4130
|
/**
|
4127
4131
|
* 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}. Can be filtered using {@link LuaScriptRaisedReviveEventFilter}.
|
4128
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4132
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#script_raised_revive Online documentation}
|
4129
4133
|
*/
|
4130
4134
|
interface ScriptRaisedReviveEvent extends EventData {
|
4131
4135
|
/**
|
@@ -4147,7 +4151,7 @@ declare module "factorio:runtime" {
|
|
4147
4151
|
}
|
4148
4152
|
/**
|
4149
4153
|
* 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}.
|
4150
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4154
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#script_raised_set_tiles Online documentation}
|
4151
4155
|
*/
|
4152
4156
|
interface ScriptRaisedSetTilesEvent extends EventData {
|
4153
4157
|
/**
|
@@ -4169,7 +4173,7 @@ declare module "factorio:runtime" {
|
|
4169
4173
|
}
|
4170
4174
|
/**
|
4171
4175
|
* 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}. Can be filtered using {@link LuaScriptRaisedTeleportedEventFilter}.
|
4172
|
-
* @see {@link https://lua-api.factorio.com/1.1.
|
4176
|
+
* @see {@link https://lua-api.factorio.com/1.1.90/events.html#script_raised_teleported Online documentation}
|
4173
4177
|
*/
|
4174
4178
|
interface ScriptRaisedTeleportedEvent extends EventData {
|
4175
4179
|
/**
|