typed-factorio 3.30.0 → 3.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/prototype/generated/prototypes.d.ts +2353 -2216
- package/prototype/generated/types.d.ts +2251 -2164
- package/runtime/generated/classes.d.ts +5419 -4902
- package/runtime/generated/concepts.d.ts +739 -685
- package/runtime/generated/defines.d.ts +229 -215
- package/runtime/generated/events.d.ts +492 -458
- package/runtime/generated/global-functions.d.ts +5 -5
- package/runtime/generated/global-objects.d.ts +7 -7
- package/runtime/generated/index-types.d.ts +4 -4
@@ -13,7 +13,7 @@ declare module "factorio:runtime" {
|
|
13
13
|
* script.on_event("my-potato-control", function(event)
|
14
14
|
* game.print("Keyboard shortcut pressed on tick: " ..tostring(event.tick))
|
15
15
|
* end)
|
16
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
16
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#CustomInputEvent Online documentation}
|
17
17
|
*/
|
18
18
|
interface CustomInputEvent extends EventData {
|
19
19
|
/**
|
@@ -44,6 +44,10 @@ declare module "factorio:runtime" {
|
|
44
44
|
* The GUI element under the cursor when the custom input was activated.
|
45
45
|
*/
|
46
46
|
readonly element?: LuaGuiElement
|
47
|
+
/**
|
48
|
+
* If the cursor was over any GUI when the custom input was activated.
|
49
|
+
*/
|
50
|
+
readonly in_gui: boolean
|
47
51
|
/**
|
48
52
|
* Identifier of the event
|
49
53
|
*/
|
@@ -51,11 +55,11 @@ declare module "factorio:runtime" {
|
|
51
55
|
/**
|
52
56
|
* Tick the event was generated.
|
53
57
|
*/
|
54
|
-
readonly tick:
|
58
|
+
readonly tick: uint32
|
55
59
|
}
|
56
60
|
/**
|
57
61
|
* Called when an achievement is gained.
|
58
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
62
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_achievement_gained Online documentation}
|
59
63
|
*/
|
60
64
|
interface OnAchievementGainedEvent extends EventData {
|
61
65
|
/**
|
@@ -70,11 +74,11 @@ declare module "factorio:runtime" {
|
|
70
74
|
/**
|
71
75
|
* Tick the event was generated.
|
72
76
|
*/
|
73
|
-
readonly tick:
|
77
|
+
readonly tick: uint32
|
74
78
|
}
|
75
79
|
/**
|
76
80
|
* Called when a unit/group completes a command.
|
77
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
81
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_ai_command_completed Online documentation}
|
78
82
|
*/
|
79
83
|
interface OnAiCommandCompletedEvent extends EventData {
|
80
84
|
/**
|
@@ -93,11 +97,11 @@ declare module "factorio:runtime" {
|
|
93
97
|
/**
|
94
98
|
* Tick the event was generated.
|
95
99
|
*/
|
96
|
-
readonly tick:
|
100
|
+
readonly tick: uint32
|
97
101
|
}
|
98
102
|
/**
|
99
103
|
* Called when an area of the map is cloned.
|
100
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
104
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_area_cloned Online documentation}
|
101
105
|
*/
|
102
106
|
interface OnAreaClonedEvent extends EventData {
|
103
107
|
readonly source_surface: LuaSurface
|
@@ -117,13 +121,13 @@ declare module "factorio:runtime" {
|
|
117
121
|
/**
|
118
122
|
* Tick the event was generated.
|
119
123
|
*/
|
120
|
-
readonly tick:
|
124
|
+
readonly tick: uint32
|
121
125
|
}
|
122
126
|
/**
|
123
127
|
* Called when a biter migration builds a base.
|
124
128
|
*
|
125
129
|
* This will be called multiple times for each migration, once for every biter that is sacrificed to build part of the new base.
|
126
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
130
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_biter_base_built Online documentation}
|
127
131
|
*/
|
128
132
|
interface OnBiterBaseBuiltEvent extends EventData {
|
129
133
|
/**
|
@@ -137,11 +141,11 @@ declare module "factorio:runtime" {
|
|
137
141
|
/**
|
138
142
|
* Tick the event was generated.
|
139
143
|
*/
|
140
|
-
readonly tick:
|
144
|
+
readonly tick: uint32
|
141
145
|
}
|
142
146
|
/**
|
143
147
|
* Called when a set of positions on the map is cloned.
|
144
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
148
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_brush_cloned Online documentation}
|
145
149
|
*/
|
146
150
|
interface OnBrushClonedEvent extends EventData {
|
147
151
|
readonly source_offset: TilePosition
|
@@ -162,11 +166,11 @@ declare module "factorio:runtime" {
|
|
162
166
|
/**
|
163
167
|
* Tick the event was generated.
|
164
168
|
*/
|
165
|
-
readonly tick:
|
169
|
+
readonly tick: uint32
|
166
170
|
}
|
167
171
|
/**
|
168
172
|
* Called when a {@link defines.command.build_base} command reaches its destination, and before building starts.
|
169
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
173
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_build_base_arrived Online documentation}
|
170
174
|
*/
|
171
175
|
interface OnBuildBaseArrivedEvent extends EventData {
|
172
176
|
/**
|
@@ -184,13 +188,13 @@ declare module "factorio:runtime" {
|
|
184
188
|
/**
|
185
189
|
* Tick the event was generated.
|
186
190
|
*/
|
187
|
-
readonly tick:
|
191
|
+
readonly tick: uint32
|
188
192
|
}
|
189
193
|
/**
|
190
194
|
* Called when player builds something.
|
191
195
|
*
|
192
196
|
* Event filter: [LuaPlayerBuiltEntityEventFilter](LuaPlayerBuiltEntityEventFilter]
|
193
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
197
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_built_entity Online documentation}
|
194
198
|
*/
|
195
199
|
interface OnBuiltEntityEvent extends EventData {
|
196
200
|
/**
|
@@ -216,13 +220,13 @@ declare module "factorio:runtime" {
|
|
216
220
|
/**
|
217
221
|
* Tick the event was generated.
|
218
222
|
*/
|
219
|
-
readonly tick:
|
223
|
+
readonly tick: uint32
|
220
224
|
}
|
221
225
|
/**
|
222
226
|
* Called when the deconstruction of an entity is canceled.
|
223
227
|
*
|
224
228
|
* Event filter: [LuaEntityDeconstructionCancelledEventFilter](LuaEntityDeconstructionCancelledEventFilter]
|
225
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
229
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_cancelled_deconstruction Online documentation}
|
226
230
|
*/
|
227
231
|
interface OnCancelledDeconstructionEvent extends EventData {
|
228
232
|
readonly entity: LuaEntity
|
@@ -234,13 +238,13 @@ declare module "factorio:runtime" {
|
|
234
238
|
/**
|
235
239
|
* Tick the event was generated.
|
236
240
|
*/
|
237
|
-
readonly tick:
|
241
|
+
readonly tick: uint32
|
238
242
|
}
|
239
243
|
/**
|
240
244
|
* Called when the upgrade of an entity is canceled.
|
241
245
|
*
|
242
246
|
* Event filter: [LuaUpgradeCancelledEventFilter](LuaUpgradeCancelledEventFilter]
|
243
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
247
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_cancelled_upgrade Online documentation}
|
244
248
|
*/
|
245
249
|
interface OnCancelledUpgradeEvent extends EventData {
|
246
250
|
readonly entity: LuaEntity
|
@@ -254,11 +258,11 @@ declare module "factorio:runtime" {
|
|
254
258
|
/**
|
255
259
|
* Tick the event was generated.
|
256
260
|
*/
|
257
|
-
readonly tick:
|
261
|
+
readonly tick: uint32
|
258
262
|
}
|
259
263
|
/**
|
260
264
|
* Called after a cargo pod has delivered its cargo.
|
261
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
265
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_cargo_pod_delivered_cargo Online documentation}
|
262
266
|
*/
|
263
267
|
interface OnCargoPodDeliveredCargoEvent extends EventData {
|
264
268
|
readonly cargo_pod: LuaEntity
|
@@ -273,11 +277,11 @@ declare module "factorio:runtime" {
|
|
273
277
|
/**
|
274
278
|
* Tick the event was generated.
|
275
279
|
*/
|
276
|
-
readonly tick:
|
280
|
+
readonly tick: uint32
|
277
281
|
}
|
278
282
|
/**
|
279
283
|
* Called when a cargo pod departs a surface.
|
280
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
284
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_cargo_pod_finished_ascending Online documentation}
|
281
285
|
*/
|
282
286
|
interface OnCargoPodFinishedAscendingEvent extends EventData {
|
283
287
|
readonly cargo_pod: LuaEntity
|
@@ -296,11 +300,11 @@ declare module "factorio:runtime" {
|
|
296
300
|
/**
|
297
301
|
* Tick the event was generated.
|
298
302
|
*/
|
299
|
-
readonly tick:
|
303
|
+
readonly tick: uint32
|
300
304
|
}
|
301
305
|
/**
|
302
306
|
* Called when a cargo pods lands on a surface, either at a station or on the ground.
|
303
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
307
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_cargo_pod_finished_descending Online documentation}
|
304
308
|
*/
|
305
309
|
interface OnCargoPodFinishedDescendingEvent extends EventData {
|
306
310
|
readonly cargo_pod: LuaEntity
|
@@ -319,13 +323,32 @@ declare module "factorio:runtime" {
|
|
319
323
|
/**
|
320
324
|
* Tick the event was generated.
|
321
325
|
*/
|
322
|
-
readonly tick:
|
326
|
+
readonly tick: uint32
|
327
|
+
}
|
328
|
+
/**
|
329
|
+
* Called when a cargo pod departs from a space platform hub or by another method not attached to a rocket.
|
330
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_cargo_pod_started_ascending Online documentation}
|
331
|
+
*/
|
332
|
+
interface OnCargoPodStartedAscendingEvent extends EventData {
|
333
|
+
readonly cargo_pod: LuaEntity
|
334
|
+
/**
|
335
|
+
* The player that is riding the cargo pod, if any.
|
336
|
+
*/
|
337
|
+
readonly player_index?: PlayerIndex
|
338
|
+
/**
|
339
|
+
* Identifier of the event
|
340
|
+
*/
|
341
|
+
readonly name: typeof defines.events.on_cargo_pod_started_ascending
|
342
|
+
/**
|
343
|
+
* Tick the event was generated.
|
344
|
+
*/
|
345
|
+
readonly tick: uint32
|
323
346
|
}
|
324
347
|
/**
|
325
348
|
* Called when a character corpse expires due to timeout or all of the items being removed from it.
|
326
349
|
*
|
327
350
|
* this is not called if the corpse is mined. See {@link defines.events.on_pre_player_mined_item} to detect that.
|
328
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
351
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_character_corpse_expired Online documentation}
|
329
352
|
*/
|
330
353
|
interface OnCharacterCorpseExpiredEvent extends EventData {
|
331
354
|
/**
|
@@ -339,11 +362,11 @@ declare module "factorio:runtime" {
|
|
339
362
|
/**
|
340
363
|
* Tick the event was generated.
|
341
364
|
*/
|
342
|
-
readonly tick:
|
365
|
+
readonly tick: uint32
|
343
366
|
}
|
344
367
|
/**
|
345
368
|
* Called when a chart tag is created.
|
346
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
369
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_chart_tag_added Online documentation}
|
347
370
|
*/
|
348
371
|
interface OnChartTagAddedEvent extends EventData {
|
349
372
|
readonly tag: LuaCustomChartTag
|
@@ -356,11 +379,11 @@ declare module "factorio:runtime" {
|
|
356
379
|
/**
|
357
380
|
* Tick the event was generated.
|
358
381
|
*/
|
359
|
-
readonly tick:
|
382
|
+
readonly tick: uint32
|
360
383
|
}
|
361
384
|
/**
|
362
|
-
* Called when a chart tag is modified by a player.
|
363
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
385
|
+
* Called when a chart tag is modified by a player or by script.
|
386
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_chart_tag_modified Online documentation}
|
364
387
|
*/
|
365
388
|
interface OnChartTagModifiedEvent extends EventData {
|
366
389
|
readonly tag: LuaCustomChartTag
|
@@ -370,7 +393,7 @@ declare module "factorio:runtime" {
|
|
370
393
|
readonly old_icon: SignalID
|
371
394
|
readonly old_position: MapPosition
|
372
395
|
readonly old_surface: LuaSurface
|
373
|
-
readonly old_player_index?:
|
396
|
+
readonly old_player_index?: uint32
|
374
397
|
/**
|
375
398
|
* Identifier of the event
|
376
399
|
*/
|
@@ -378,11 +401,11 @@ declare module "factorio:runtime" {
|
|
378
401
|
/**
|
379
402
|
* Tick the event was generated.
|
380
403
|
*/
|
381
|
-
readonly tick:
|
404
|
+
readonly tick: uint32
|
382
405
|
}
|
383
406
|
/**
|
384
407
|
* Called just before a chart tag is deleted.
|
385
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
408
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_chart_tag_removed Online documentation}
|
386
409
|
*/
|
387
410
|
interface OnChartTagRemovedEvent extends EventData {
|
388
411
|
readonly tag: LuaCustomChartTag
|
@@ -395,11 +418,11 @@ declare module "factorio:runtime" {
|
|
395
418
|
/**
|
396
419
|
* Tick the event was generated.
|
397
420
|
*/
|
398
|
-
readonly tick:
|
421
|
+
readonly tick: uint32
|
399
422
|
}
|
400
423
|
/**
|
401
424
|
* Called when a chunk is charted or re-charted.
|
402
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
425
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_chunk_charted Online documentation}
|
403
426
|
*/
|
404
427
|
interface OnChunkChartedEvent extends EventData {
|
405
428
|
readonly surface_index: SurfaceIndex
|
@@ -416,11 +439,11 @@ declare module "factorio:runtime" {
|
|
416
439
|
/**
|
417
440
|
* Tick the event was generated.
|
418
441
|
*/
|
419
|
-
readonly tick:
|
442
|
+
readonly tick: uint32
|
420
443
|
}
|
421
444
|
/**
|
422
445
|
* Called when one or more chunks are deleted using {@link LuaSurface#delete_chunk LuaSurface::delete_chunk}.
|
423
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
446
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_chunk_deleted Online documentation}
|
424
447
|
*/
|
425
448
|
interface OnChunkDeletedEvent extends EventData {
|
426
449
|
readonly surface_index: SurfaceIndex
|
@@ -435,11 +458,11 @@ declare module "factorio:runtime" {
|
|
435
458
|
/**
|
436
459
|
* Tick the event was generated.
|
437
460
|
*/
|
438
|
-
readonly tick:
|
461
|
+
readonly tick: uint32
|
439
462
|
}
|
440
463
|
/**
|
441
464
|
* Called when a chunk is generated.
|
442
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
465
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_chunk_generated Online documentation}
|
443
466
|
*/
|
444
467
|
interface OnChunkGeneratedEvent extends EventData {
|
445
468
|
/**
|
@@ -461,11 +484,11 @@ declare module "factorio:runtime" {
|
|
461
484
|
/**
|
462
485
|
* Tick the event was generated.
|
463
486
|
*/
|
464
|
-
readonly tick:
|
487
|
+
readonly tick: uint32
|
465
488
|
}
|
466
489
|
/**
|
467
490
|
* Called when a combat robot expires through a lack of energy, or timeout.
|
468
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
491
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_combat_robot_expired Online documentation}
|
469
492
|
*/
|
470
493
|
interface OnCombatRobotExpiredEvent extends EventData {
|
471
494
|
readonly robot: LuaEntity
|
@@ -480,13 +503,13 @@ declare module "factorio:runtime" {
|
|
480
503
|
/**
|
481
504
|
* Tick the event was generated.
|
482
505
|
*/
|
483
|
-
readonly tick:
|
506
|
+
readonly tick: uint32
|
484
507
|
}
|
485
508
|
/**
|
486
509
|
* Called when a message is sent to the in-game console, either by a player or through the server interface.
|
487
510
|
*
|
488
511
|
* This event only fires for plain messages, not for any commands (including `/shout` or `/whisper`).
|
489
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
512
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_console_chat Online documentation}
|
490
513
|
*/
|
491
514
|
interface OnConsoleChatEvent extends EventData {
|
492
515
|
/**
|
@@ -504,11 +527,11 @@ declare module "factorio:runtime" {
|
|
504
527
|
/**
|
505
528
|
* Tick the event was generated.
|
506
529
|
*/
|
507
|
-
readonly tick:
|
530
|
+
readonly tick: uint32
|
508
531
|
}
|
509
532
|
/**
|
510
533
|
* Called when someone enters a command-like message regardless of it being a valid command.
|
511
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
534
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_console_command Online documentation}
|
512
535
|
*/
|
513
536
|
interface OnConsoleCommandEvent extends EventData {
|
514
537
|
/**
|
@@ -530,11 +553,11 @@ declare module "factorio:runtime" {
|
|
530
553
|
/**
|
531
554
|
* Tick the event was generated.
|
532
555
|
*/
|
533
|
-
readonly tick:
|
556
|
+
readonly tick: uint32
|
534
557
|
}
|
535
558
|
/**
|
536
559
|
* Called when a cutscene is cancelled by the player or by script.
|
537
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
560
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_cutscene_cancelled Online documentation}
|
538
561
|
*/
|
539
562
|
interface OnCutsceneCancelledEvent extends EventData {
|
540
563
|
/**
|
@@ -548,11 +571,11 @@ declare module "factorio:runtime" {
|
|
548
571
|
/**
|
549
572
|
* Tick the event was generated.
|
550
573
|
*/
|
551
|
-
readonly tick:
|
574
|
+
readonly tick: uint32
|
552
575
|
}
|
553
576
|
/**
|
554
577
|
* Called when a cutscene finishes naturally (was not cancelled).
|
555
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
578
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_cutscene_finished Online documentation}
|
556
579
|
*/
|
557
580
|
interface OnCutsceneFinishedEvent extends EventData {
|
558
581
|
/**
|
@@ -566,11 +589,11 @@ declare module "factorio:runtime" {
|
|
566
589
|
/**
|
567
590
|
* Tick the event was generated.
|
568
591
|
*/
|
569
|
-
readonly tick:
|
592
|
+
readonly tick: uint32
|
570
593
|
}
|
571
594
|
/**
|
572
595
|
* Called when a cutscene starts.
|
573
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
596
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_cutscene_started Online documentation}
|
574
597
|
*/
|
575
598
|
interface OnCutsceneStartedEvent extends EventData {
|
576
599
|
/**
|
@@ -584,13 +607,13 @@ declare module "factorio:runtime" {
|
|
584
607
|
/**
|
585
608
|
* Tick the event was generated.
|
586
609
|
*/
|
587
|
-
readonly tick:
|
610
|
+
readonly tick: uint32
|
588
611
|
}
|
589
612
|
/**
|
590
613
|
* Called when a cutscene is playing, each time it reaches a waypoint in that cutscene.
|
591
614
|
*
|
592
615
|
* This refers to an index in the table previously passed to set_controller which started the cutscene.
|
593
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
616
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_cutscene_waypoint_reached Online documentation}
|
594
617
|
*/
|
595
618
|
interface OnCutsceneWaypointReachedEvent extends EventData {
|
596
619
|
/**
|
@@ -600,7 +623,7 @@ declare module "factorio:runtime" {
|
|
600
623
|
/**
|
601
624
|
* The index of the waypoint we just completed.
|
602
625
|
*/
|
603
|
-
readonly waypoint_index:
|
626
|
+
readonly waypoint_index: uint32
|
604
627
|
/**
|
605
628
|
* Identifier of the event
|
606
629
|
*/
|
@@ -608,13 +631,13 @@ declare module "factorio:runtime" {
|
|
608
631
|
/**
|
609
632
|
* Tick the event was generated.
|
610
633
|
*/
|
611
|
-
readonly tick:
|
634
|
+
readonly tick: uint32
|
612
635
|
}
|
613
636
|
/**
|
614
637
|
* Called when an entity is cloned. The filter applies to the source entity.
|
615
638
|
*
|
616
639
|
* Event filter: [LuaEntityClonedEventFilter](LuaEntityClonedEventFilter]
|
617
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
640
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_entity_cloned Online documentation}
|
618
641
|
*/
|
619
642
|
interface OnEntityClonedEvent extends EventData {
|
620
643
|
readonly source: LuaEntity
|
@@ -626,13 +649,13 @@ declare module "factorio:runtime" {
|
|
626
649
|
/**
|
627
650
|
* Tick the event was generated.
|
628
651
|
*/
|
629
|
-
readonly tick:
|
652
|
+
readonly tick: uint32
|
630
653
|
}
|
631
654
|
/**
|
632
655
|
* Called after an entity has been recolored either by the player or through script.
|
633
656
|
*
|
634
657
|
* Automatic recoloring due to {@link LuaPlayer#color LuaPlayer::color} will not raise events, as that is a separate mechanism.
|
635
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
658
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_entity_color_changed Online documentation}
|
636
659
|
*/
|
637
660
|
interface OnEntityColorChangedEvent extends EventData {
|
638
661
|
/**
|
@@ -646,13 +669,13 @@ declare module "factorio:runtime" {
|
|
646
669
|
/**
|
647
670
|
* Tick the event was generated.
|
648
671
|
*/
|
649
|
-
readonly tick:
|
672
|
+
readonly tick: uint32
|
650
673
|
}
|
651
674
|
/**
|
652
675
|
* Called when an entity is damaged. This is not called when an entities health is set directly by another mod.
|
653
676
|
*
|
654
677
|
* Event filter: [LuaEntityDamagedEventFilter](LuaEntityDamagedEventFilter]
|
655
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
678
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_entity_damaged Online documentation}
|
656
679
|
*/
|
657
680
|
interface OnEntityDamagedEvent extends EventData {
|
658
681
|
readonly entity: LuaEntity
|
@@ -688,13 +711,13 @@ declare module "factorio:runtime" {
|
|
688
711
|
/**
|
689
712
|
* Tick the event was generated.
|
690
713
|
*/
|
691
|
-
readonly tick:
|
714
|
+
readonly tick: uint32
|
692
715
|
}
|
693
716
|
/**
|
694
717
|
* Called when an entity dies.
|
695
718
|
*
|
696
719
|
* Event filter: [LuaEntityDiedEventFilter](LuaEntityDiedEventFilter]
|
697
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
720
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_entity_died Online documentation}
|
698
721
|
*/
|
699
722
|
interface OnEntityDiedEvent extends EventData {
|
700
723
|
/**
|
@@ -724,11 +747,11 @@ declare module "factorio:runtime" {
|
|
724
747
|
/**
|
725
748
|
* Tick the event was generated.
|
726
749
|
*/
|
727
|
-
readonly tick:
|
750
|
+
readonly tick: uint32
|
728
751
|
}
|
729
752
|
/**
|
730
753
|
* Called when one of an entity's logistic slots changes.
|
731
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
754
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_entity_logistic_slot_changed Online documentation}
|
732
755
|
*/
|
733
756
|
interface OnEntityLogisticSlotChangedEvent extends EventData {
|
734
757
|
/**
|
@@ -746,7 +769,7 @@ declare module "factorio:runtime" {
|
|
746
769
|
/**
|
747
770
|
* The slot index that was changed.
|
748
771
|
*/
|
749
|
-
readonly slot_index:
|
772
|
+
readonly slot_index: uint32
|
750
773
|
/**
|
751
774
|
* Identifier of the event
|
752
775
|
*/
|
@@ -754,11 +777,11 @@ declare module "factorio:runtime" {
|
|
754
777
|
/**
|
755
778
|
* Tick the event was generated.
|
756
779
|
*/
|
757
|
-
readonly tick:
|
780
|
+
readonly tick: uint32
|
758
781
|
}
|
759
782
|
/**
|
760
783
|
* Called after an entity has been renamed either by the player or through script.
|
761
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
784
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_entity_renamed Online documentation}
|
762
785
|
*/
|
763
786
|
interface OnEntityRenamedEvent extends EventData {
|
764
787
|
/**
|
@@ -775,11 +798,11 @@ declare module "factorio:runtime" {
|
|
775
798
|
/**
|
776
799
|
* Tick the event was generated.
|
777
800
|
*/
|
778
|
-
readonly tick:
|
801
|
+
readonly tick: uint32
|
779
802
|
}
|
780
803
|
/**
|
781
804
|
* Called after entity copy-paste is done.
|
782
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
805
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_entity_settings_pasted Online documentation}
|
783
806
|
*/
|
784
807
|
interface OnEntitySettingsPastedEvent extends EventData {
|
785
808
|
readonly player_index: PlayerIndex
|
@@ -798,11 +821,11 @@ declare module "factorio:runtime" {
|
|
798
821
|
/**
|
799
822
|
* Tick the event was generated.
|
800
823
|
*/
|
801
|
-
readonly tick:
|
824
|
+
readonly tick: uint32
|
802
825
|
}
|
803
826
|
/**
|
804
827
|
* Called when an entity is spawned by a EnemySpawner
|
805
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
828
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_entity_spawned Online documentation}
|
806
829
|
*/
|
807
830
|
interface OnEntitySpawnedEvent extends EventData {
|
808
831
|
readonly spawner: LuaEntity
|
@@ -814,11 +837,11 @@ declare module "factorio:runtime" {
|
|
814
837
|
/**
|
815
838
|
* Tick the event was generated.
|
816
839
|
*/
|
817
|
-
readonly tick:
|
840
|
+
readonly tick: uint32
|
818
841
|
}
|
819
842
|
/**
|
820
843
|
* Called after equipment is inserted into an equipment grid.
|
821
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
844
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_equipment_inserted Online documentation}
|
822
845
|
*/
|
823
846
|
interface OnEquipmentInsertedEvent extends EventData {
|
824
847
|
/**
|
@@ -836,11 +859,11 @@ declare module "factorio:runtime" {
|
|
836
859
|
/**
|
837
860
|
* Tick the event was generated.
|
838
861
|
*/
|
839
|
-
readonly tick:
|
862
|
+
readonly tick: uint32
|
840
863
|
}
|
841
864
|
/**
|
842
865
|
* Called after equipment is removed from an equipment grid.
|
843
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
866
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_equipment_removed Online documentation}
|
844
867
|
*/
|
845
868
|
interface OnEquipmentRemovedEvent extends EventData {
|
846
869
|
/**
|
@@ -858,7 +881,7 @@ declare module "factorio:runtime" {
|
|
858
881
|
/**
|
859
882
|
* The count of equipment removed.
|
860
883
|
*/
|
861
|
-
readonly count:
|
884
|
+
readonly count: uint32
|
862
885
|
/**
|
863
886
|
* Identifier of the event
|
864
887
|
*/
|
@@ -866,11 +889,11 @@ declare module "factorio:runtime" {
|
|
866
889
|
/**
|
867
890
|
* Tick the event was generated.
|
868
891
|
*/
|
869
|
-
readonly tick:
|
892
|
+
readonly tick: uint32
|
870
893
|
}
|
871
894
|
/**
|
872
895
|
* Called when the a forces cease fire values change.
|
873
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
896
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_force_cease_fire_changed Online documentation}
|
874
897
|
*/
|
875
898
|
interface OnForceCeaseFireChangedEvent extends EventData {
|
876
899
|
/**
|
@@ -892,13 +915,13 @@ declare module "factorio:runtime" {
|
|
892
915
|
/**
|
893
916
|
* Tick the event was generated.
|
894
917
|
*/
|
895
|
-
readonly tick:
|
918
|
+
readonly tick: uint32
|
896
919
|
}
|
897
920
|
/**
|
898
921
|
* Called when a new force is created using `game.create_force()`
|
899
922
|
*
|
900
923
|
* This is not called when the default forces (`'player'`, `'enemy'`, `'neutral'`) are created as they will always exist.
|
901
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
924
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_force_created Online documentation}
|
902
925
|
*/
|
903
926
|
interface OnForceCreatedEvent extends EventData {
|
904
927
|
/**
|
@@ -912,11 +935,11 @@ declare module "factorio:runtime" {
|
|
912
935
|
/**
|
913
936
|
* Tick the event was generated.
|
914
937
|
*/
|
915
|
-
readonly tick:
|
938
|
+
readonly tick: uint32
|
916
939
|
}
|
917
940
|
/**
|
918
941
|
* Called when the a forces friends change.
|
919
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
942
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_force_friends_changed Online documentation}
|
920
943
|
*/
|
921
944
|
interface OnForceFriendsChangedEvent extends EventData {
|
922
945
|
/**
|
@@ -938,11 +961,11 @@ declare module "factorio:runtime" {
|
|
938
961
|
/**
|
939
962
|
* Tick the event was generated.
|
940
963
|
*/
|
941
|
-
readonly tick:
|
964
|
+
readonly tick: uint32
|
942
965
|
}
|
943
966
|
/**
|
944
967
|
* Called when {@link LuaForce#reset LuaForce::reset} is finished.
|
945
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
968
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_force_reset Online documentation}
|
946
969
|
*/
|
947
970
|
interface OnForceResetEvent extends EventData {
|
948
971
|
readonly force: LuaForce
|
@@ -953,13 +976,13 @@ declare module "factorio:runtime" {
|
|
953
976
|
/**
|
954
977
|
* Tick the event was generated.
|
955
978
|
*/
|
956
|
-
readonly tick:
|
979
|
+
readonly tick: uint32
|
957
980
|
}
|
958
981
|
/**
|
959
982
|
* Called after two forces have been merged using `game.merge_forces()`.
|
960
983
|
*
|
961
984
|
* The source force is invalidated before this event is called and the name can be re-used in this event if desired.
|
962
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
985
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_forces_merged Online documentation}
|
963
986
|
*/
|
964
987
|
interface OnForcesMergedEvent extends EventData {
|
965
988
|
/**
|
@@ -969,7 +992,7 @@ declare module "factorio:runtime" {
|
|
969
992
|
/**
|
970
993
|
* The index of the destroyed force.
|
971
994
|
*/
|
972
|
-
readonly source_index:
|
995
|
+
readonly source_index: uint32
|
973
996
|
/**
|
974
997
|
* The force entities where reassigned to.
|
975
998
|
*/
|
@@ -981,11 +1004,11 @@ declare module "factorio:runtime" {
|
|
981
1004
|
/**
|
982
1005
|
* Tick the event was generated.
|
983
1006
|
*/
|
984
|
-
readonly tick:
|
1007
|
+
readonly tick: uint32
|
985
1008
|
}
|
986
1009
|
/**
|
987
1010
|
* Called when two forces are about to be merged using `game.merge_forces()`.
|
988
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1011
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_forces_merging Online documentation}
|
989
1012
|
*/
|
990
1013
|
interface OnForcesMergingEvent extends EventData {
|
991
1014
|
/**
|
@@ -1003,13 +1026,13 @@ declare module "factorio:runtime" {
|
|
1003
1026
|
/**
|
1004
1027
|
* Tick the event was generated.
|
1005
1028
|
*/
|
1006
|
-
readonly tick:
|
1029
|
+
readonly tick: uint32
|
1007
1030
|
}
|
1008
1031
|
/**
|
1009
1032
|
* 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.
|
1010
1033
|
*
|
1011
1034
|
* This event is not fired when the scenario is loaded via the map editor.
|
1012
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1035
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_game_created_from_scenario Online documentation}
|
1013
1036
|
*/
|
1014
1037
|
interface OnGameCreatedFromScenarioEvent extends EventData {
|
1015
1038
|
/**
|
@@ -1019,11 +1042,11 @@ declare module "factorio:runtime" {
|
|
1019
1042
|
/**
|
1020
1043
|
* Tick the event was generated.
|
1021
1044
|
*/
|
1022
|
-
readonly tick:
|
1045
|
+
readonly tick: uint32
|
1023
1046
|
}
|
1024
1047
|
/**
|
1025
1048
|
* Called when {@link LuaGuiElement} checked state is changed (related to checkboxes and radio buttons).
|
1026
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1049
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_gui_checked_state_changed Online documentation}
|
1027
1050
|
*/
|
1028
1051
|
interface OnGuiCheckedStateChangedEvent extends EventData {
|
1029
1052
|
/**
|
@@ -1041,11 +1064,11 @@ declare module "factorio:runtime" {
|
|
1041
1064
|
/**
|
1042
1065
|
* Tick the event was generated.
|
1043
1066
|
*/
|
1044
|
-
readonly tick:
|
1067
|
+
readonly tick: uint32
|
1045
1068
|
}
|
1046
1069
|
/**
|
1047
1070
|
* Called when {@link LuaGuiElement} is clicked.
|
1048
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1071
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_gui_click Online documentation}
|
1049
1072
|
*/
|
1050
1073
|
interface OnGuiClickEvent extends EventData {
|
1051
1074
|
/**
|
@@ -1083,7 +1106,7 @@ declare module "factorio:runtime" {
|
|
1083
1106
|
/**
|
1084
1107
|
* Tick the event was generated.
|
1085
1108
|
*/
|
1086
|
-
readonly tick:
|
1109
|
+
readonly tick: uint32
|
1087
1110
|
}
|
1088
1111
|
/**
|
1089
1112
|
* Called when the player closes the GUI they have open.
|
@@ -1091,7 +1114,7 @@ declare module "factorio:runtime" {
|
|
1091
1114
|
* 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.
|
1092
1115
|
*
|
1093
1116
|
* 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.
|
1094
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1117
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_gui_closed Online documentation}
|
1095
1118
|
*/
|
1096
1119
|
interface OnGuiClosedEvent extends EventData {
|
1097
1120
|
/**
|
@@ -1141,11 +1164,11 @@ declare module "factorio:runtime" {
|
|
1141
1164
|
/**
|
1142
1165
|
* Tick the event was generated.
|
1143
1166
|
*/
|
1144
|
-
readonly tick:
|
1167
|
+
readonly tick: uint32
|
1145
1168
|
}
|
1146
1169
|
/**
|
1147
1170
|
* Called when a {@link LuaGuiElement} is confirmed, for example by pressing Enter in a textfield.
|
1148
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1171
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_gui_confirmed Online documentation}
|
1149
1172
|
*/
|
1150
1173
|
interface OnGuiConfirmedEvent extends EventData {
|
1151
1174
|
/**
|
@@ -1175,11 +1198,11 @@ declare module "factorio:runtime" {
|
|
1175
1198
|
/**
|
1176
1199
|
* Tick the event was generated.
|
1177
1200
|
*/
|
1178
|
-
readonly tick:
|
1201
|
+
readonly tick: uint32
|
1179
1202
|
}
|
1180
1203
|
/**
|
1181
1204
|
* Called when {@link LuaGuiElement} element value is changed (related to choose element buttons).
|
1182
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1205
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_gui_elem_changed Online documentation}
|
1183
1206
|
*/
|
1184
1207
|
interface OnGuiElemChangedEvent extends EventData {
|
1185
1208
|
/**
|
@@ -1197,13 +1220,13 @@ declare module "factorio:runtime" {
|
|
1197
1220
|
/**
|
1198
1221
|
* Tick the event was generated.
|
1199
1222
|
*/
|
1200
|
-
readonly tick:
|
1223
|
+
readonly tick: uint32
|
1201
1224
|
}
|
1202
1225
|
/**
|
1203
1226
|
* Called when {@link LuaGuiElement} is hovered by the mouse.
|
1204
1227
|
*
|
1205
1228
|
* Only fired for events whose {@link LuaGuiElement#raise_hover_events LuaGuiElement::raise_hover_events} is `true`.
|
1206
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1229
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_gui_hover Online documentation}
|
1207
1230
|
*/
|
1208
1231
|
interface OnGuiHoverEvent extends EventData {
|
1209
1232
|
/**
|
@@ -1221,13 +1244,13 @@ declare module "factorio:runtime" {
|
|
1221
1244
|
/**
|
1222
1245
|
* Tick the event was generated.
|
1223
1246
|
*/
|
1224
|
-
readonly tick:
|
1247
|
+
readonly tick: uint32
|
1225
1248
|
}
|
1226
1249
|
/**
|
1227
1250
|
* Called when the player's cursor leaves a {@link LuaGuiElement} that was previously hovered.
|
1228
1251
|
*
|
1229
1252
|
* Only fired for events whose {@link LuaGuiElement#raise_hover_events LuaGuiElement::raise_hover_events} is `true`.
|
1230
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1253
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_gui_leave Online documentation}
|
1231
1254
|
*/
|
1232
1255
|
interface OnGuiLeaveEvent extends EventData {
|
1233
1256
|
/**
|
@@ -1245,11 +1268,11 @@ declare module "factorio:runtime" {
|
|
1245
1268
|
/**
|
1246
1269
|
* Tick the event was generated.
|
1247
1270
|
*/
|
1248
|
-
readonly tick:
|
1271
|
+
readonly tick: uint32
|
1249
1272
|
}
|
1250
1273
|
/**
|
1251
1274
|
* Called when {@link LuaGuiElement} element location is changed (related to frames in `player.gui.screen`).
|
1252
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1275
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_gui_location_changed Online documentation}
|
1253
1276
|
*/
|
1254
1277
|
interface OnGuiLocationChangedEvent extends EventData {
|
1255
1278
|
/**
|
@@ -1267,11 +1290,11 @@ declare module "factorio:runtime" {
|
|
1267
1290
|
/**
|
1268
1291
|
* Tick the event was generated.
|
1269
1292
|
*/
|
1270
|
-
readonly tick:
|
1293
|
+
readonly tick: uint32
|
1271
1294
|
}
|
1272
1295
|
/**
|
1273
1296
|
* Called when the player opens a GUI.
|
1274
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1297
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_gui_opened Online documentation}
|
1275
1298
|
*/
|
1276
1299
|
interface OnGuiOpenedEvent extends EventData {
|
1277
1300
|
/**
|
@@ -1321,11 +1344,11 @@ declare module "factorio:runtime" {
|
|
1321
1344
|
/**
|
1322
1345
|
* Tick the event was generated.
|
1323
1346
|
*/
|
1324
|
-
readonly tick:
|
1347
|
+
readonly tick: uint32
|
1325
1348
|
}
|
1326
1349
|
/**
|
1327
1350
|
* Called when {@link LuaGuiElement} selected tab is changed (related to tabbed-panes).
|
1328
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1351
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_gui_selected_tab_changed Online documentation}
|
1329
1352
|
*/
|
1330
1353
|
interface OnGuiSelectedTabChangedEvent extends EventData {
|
1331
1354
|
/**
|
@@ -1343,11 +1366,11 @@ declare module "factorio:runtime" {
|
|
1343
1366
|
/**
|
1344
1367
|
* Tick the event was generated.
|
1345
1368
|
*/
|
1346
|
-
readonly tick:
|
1369
|
+
readonly tick: uint32
|
1347
1370
|
}
|
1348
1371
|
/**
|
1349
1372
|
* Called when {@link LuaGuiElement} selection state is changed (related to drop-downs and listboxes).
|
1350
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1373
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_gui_selection_state_changed Online documentation}
|
1351
1374
|
*/
|
1352
1375
|
interface OnGuiSelectionStateChangedEvent extends EventData {
|
1353
1376
|
/**
|
@@ -1365,11 +1388,11 @@ declare module "factorio:runtime" {
|
|
1365
1388
|
/**
|
1366
1389
|
* Tick the event was generated.
|
1367
1390
|
*/
|
1368
|
-
readonly tick:
|
1391
|
+
readonly tick: uint32
|
1369
1392
|
}
|
1370
1393
|
/**
|
1371
1394
|
* Called when {@link LuaGuiElement} switch state is changed (related to switches).
|
1372
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1395
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_gui_switch_state_changed Online documentation}
|
1373
1396
|
*/
|
1374
1397
|
interface OnGuiSwitchStateChangedEvent extends EventData {
|
1375
1398
|
/**
|
@@ -1387,11 +1410,11 @@ declare module "factorio:runtime" {
|
|
1387
1410
|
/**
|
1388
1411
|
* Tick the event was generated.
|
1389
1412
|
*/
|
1390
|
-
readonly tick:
|
1413
|
+
readonly tick: uint32
|
1391
1414
|
}
|
1392
1415
|
/**
|
1393
1416
|
* Called when {@link LuaGuiElement} text is changed by the player.
|
1394
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1417
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_gui_text_changed Online documentation}
|
1395
1418
|
*/
|
1396
1419
|
interface OnGuiTextChangedEvent extends EventData {
|
1397
1420
|
/**
|
@@ -1413,11 +1436,11 @@ declare module "factorio:runtime" {
|
|
1413
1436
|
/**
|
1414
1437
|
* Tick the event was generated.
|
1415
1438
|
*/
|
1416
|
-
readonly tick:
|
1439
|
+
readonly tick: uint32
|
1417
1440
|
}
|
1418
1441
|
/**
|
1419
1442
|
* Called when {@link LuaGuiElement} slider value is changed (related to the slider element).
|
1420
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1443
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_gui_value_changed Online documentation}
|
1421
1444
|
*/
|
1422
1445
|
interface OnGuiValueChangedEvent extends EventData {
|
1423
1446
|
/**
|
@@ -1435,11 +1458,11 @@ declare module "factorio:runtime" {
|
|
1435
1458
|
/**
|
1436
1459
|
* Tick the event was generated.
|
1437
1460
|
*/
|
1438
|
-
readonly tick:
|
1461
|
+
readonly tick: uint32
|
1439
1462
|
}
|
1440
1463
|
/**
|
1441
1464
|
* Called when a land mine is armed.
|
1442
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1465
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_land_mine_armed Online documentation}
|
1443
1466
|
*/
|
1444
1467
|
interface OnLandMineArmedEvent extends EventData {
|
1445
1468
|
readonly mine: LuaEntity
|
@@ -1450,11 +1473,11 @@ declare module "factorio:runtime" {
|
|
1450
1473
|
/**
|
1451
1474
|
* Tick the event was generated.
|
1452
1475
|
*/
|
1453
|
-
readonly tick:
|
1476
|
+
readonly tick: uint32
|
1454
1477
|
}
|
1455
1478
|
/**
|
1456
1479
|
* Called when a custom {@link import("factorio:prototype").ShortcutPrototype Lua shortcut} is pressed.
|
1457
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1480
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_lua_shortcut Online documentation}
|
1458
1481
|
*/
|
1459
1482
|
interface OnLuaShortcutEvent extends EventData {
|
1460
1483
|
readonly player_index: PlayerIndex
|
@@ -1469,13 +1492,13 @@ declare module "factorio:runtime" {
|
|
1469
1492
|
/**
|
1470
1493
|
* Tick the event was generated.
|
1471
1494
|
*/
|
1472
|
-
readonly tick:
|
1495
|
+
readonly tick: uint32
|
1473
1496
|
}
|
1474
1497
|
/**
|
1475
1498
|
* Called when an entity is marked for deconstruction with the Deconstruction planner or via script.
|
1476
1499
|
*
|
1477
1500
|
* Event filter: [LuaEntityMarkedForDeconstructionEventFilter](LuaEntityMarkedForDeconstructionEventFilter]
|
1478
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1501
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_marked_for_deconstruction Online documentation}
|
1479
1502
|
*/
|
1480
1503
|
interface OnMarkedForDeconstructionEvent extends EventData {
|
1481
1504
|
readonly entity: LuaEntity
|
@@ -1487,19 +1510,30 @@ declare module "factorio:runtime" {
|
|
1487
1510
|
/**
|
1488
1511
|
* Tick the event was generated.
|
1489
1512
|
*/
|
1490
|
-
readonly tick:
|
1513
|
+
readonly tick: uint32
|
1491
1514
|
}
|
1492
1515
|
/**
|
1493
|
-
* Called when an entity is marked for upgrade with the
|
1516
|
+
* Called when an entity is marked for upgrade with the upgrade planner or via script.
|
1494
1517
|
*
|
1495
1518
|
* Event filter: [LuaEntityMarkedForUpgradeEventFilter](LuaEntityMarkedForUpgradeEventFilter]
|
1496
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1519
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_marked_for_upgrade Online documentation}
|
1497
1520
|
*/
|
1498
1521
|
interface OnMarkedForUpgradeEvent extends EventData {
|
1499
1522
|
readonly player_index?: PlayerIndex
|
1500
1523
|
readonly entity: LuaEntity
|
1501
1524
|
readonly target: LuaEntityPrototype
|
1525
|
+
/**
|
1526
|
+
* The target quality.
|
1527
|
+
*/
|
1502
1528
|
readonly quality: LuaQualityPrototype
|
1529
|
+
/**
|
1530
|
+
* Previous upgrade target of the entity, if entity was already marked for upgrade.
|
1531
|
+
*/
|
1532
|
+
readonly previous_target?: LuaEntityPrototype
|
1533
|
+
/**
|
1534
|
+
* Previous upgrade target quality, if entity was already marked for upgrade.
|
1535
|
+
*/
|
1536
|
+
readonly previous_quality?: LuaQualityPrototype
|
1503
1537
|
/**
|
1504
1538
|
* Identifier of the event
|
1505
1539
|
*/
|
@@ -1507,11 +1541,11 @@ declare module "factorio:runtime" {
|
|
1507
1541
|
/**
|
1508
1542
|
* Tick the event was generated.
|
1509
1543
|
*/
|
1510
|
-
readonly tick:
|
1544
|
+
readonly tick: uint32
|
1511
1545
|
}
|
1512
1546
|
/**
|
1513
1547
|
* Called after a player purchases some offer from a `market` entity.
|
1514
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1548
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_market_item_purchased Online documentation}
|
1515
1549
|
*/
|
1516
1550
|
interface OnMarketItemPurchasedEvent extends EventData {
|
1517
1551
|
/**
|
@@ -1525,11 +1559,11 @@ declare module "factorio:runtime" {
|
|
1525
1559
|
/**
|
1526
1560
|
* The index of the offer purchased.
|
1527
1561
|
*/
|
1528
|
-
readonly offer_index:
|
1562
|
+
readonly offer_index: uint32
|
1529
1563
|
/**
|
1530
1564
|
* The amount of offers purchased.
|
1531
1565
|
*/
|
1532
|
-
readonly count:
|
1566
|
+
readonly count: uint32
|
1533
1567
|
/**
|
1534
1568
|
* Identifier of the event
|
1535
1569
|
*/
|
@@ -1537,11 +1571,11 @@ declare module "factorio:runtime" {
|
|
1537
1571
|
/**
|
1538
1572
|
* Tick the event was generated.
|
1539
1573
|
*/
|
1540
|
-
readonly tick:
|
1574
|
+
readonly tick: uint32
|
1541
1575
|
}
|
1542
1576
|
/**
|
1543
1577
|
* Called when the player uses the 'Open item GUI' control on an item defined with the 'mod-openable' flag
|
1544
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1578
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_mod_item_opened Online documentation}
|
1545
1579
|
*/
|
1546
1580
|
interface OnModItemOpenedEvent extends EventData {
|
1547
1581
|
/**
|
@@ -1563,11 +1597,11 @@ declare module "factorio:runtime" {
|
|
1563
1597
|
/**
|
1564
1598
|
* Tick the event was generated.
|
1565
1599
|
*/
|
1566
|
-
readonly tick:
|
1600
|
+
readonly tick: uint32
|
1567
1601
|
}
|
1568
1602
|
/**
|
1569
1603
|
* Called when {@link LuaGameScript#is_multiplayer LuaGameScript::is_multiplayer} changes to true. May also be raised when it was already true but a game was loaded from a save file and with hosting.
|
1570
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1604
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_multiplayer_init Online documentation}
|
1571
1605
|
*/
|
1572
1606
|
interface OnMultiplayerInitEvent extends EventData {
|
1573
1607
|
/**
|
@@ -1577,13 +1611,13 @@ declare module "factorio:runtime" {
|
|
1577
1611
|
/**
|
1578
1612
|
* Tick the event was generated.
|
1579
1613
|
*/
|
1580
|
-
readonly tick:
|
1614
|
+
readonly tick: uint32
|
1581
1615
|
}
|
1582
1616
|
/**
|
1583
1617
|
* Called after an object is destroyed which was registered with {@link LuaBootstrap#register_on_object_destroyed LuaBootstrap::register_on_object_destroyed} previously.
|
1584
1618
|
*
|
1585
1619
|
* Depending on when a given object is destroyed, this event will be fired at the end of the current tick or at the end of the next tick. The event's timing is independent of the in-world object being destroyed.
|
1586
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1620
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_object_destroyed Online documentation}
|
1587
1621
|
*/
|
1588
1622
|
interface OnObjectDestroyedEvent extends EventData {
|
1589
1623
|
/**
|
@@ -1605,11 +1639,11 @@ declare module "factorio:runtime" {
|
|
1605
1639
|
/**
|
1606
1640
|
* Tick the event was generated.
|
1607
1641
|
*/
|
1608
|
-
readonly tick:
|
1642
|
+
readonly tick: uint32
|
1609
1643
|
}
|
1610
1644
|
/**
|
1611
1645
|
* Called directly after a permission group is added.
|
1612
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1646
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_permission_group_added Online documentation}
|
1613
1647
|
*/
|
1614
1648
|
interface OnPermissionGroupAddedEvent extends EventData {
|
1615
1649
|
/**
|
@@ -1627,11 +1661,11 @@ declare module "factorio:runtime" {
|
|
1627
1661
|
/**
|
1628
1662
|
* Tick the event was generated.
|
1629
1663
|
*/
|
1630
|
-
readonly tick:
|
1664
|
+
readonly tick: uint32
|
1631
1665
|
}
|
1632
1666
|
/**
|
1633
1667
|
* Called directly after a permission group is deleted.
|
1634
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1668
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_permission_group_deleted Online documentation}
|
1635
1669
|
*/
|
1636
1670
|
interface OnPermissionGroupDeletedEvent extends EventData {
|
1637
1671
|
/**
|
@@ -1645,7 +1679,7 @@ declare module "factorio:runtime" {
|
|
1645
1679
|
/**
|
1646
1680
|
* The group id that was deleted.
|
1647
1681
|
*/
|
1648
|
-
readonly id:
|
1682
|
+
readonly id: uint32
|
1649
1683
|
/**
|
1650
1684
|
* Identifier of the event
|
1651
1685
|
*/
|
@@ -1653,11 +1687,11 @@ declare module "factorio:runtime" {
|
|
1653
1687
|
/**
|
1654
1688
|
* Tick the event was generated.
|
1655
1689
|
*/
|
1656
|
-
readonly tick:
|
1690
|
+
readonly tick: uint32
|
1657
1691
|
}
|
1658
1692
|
/**
|
1659
1693
|
* Called directly after a permission group is edited in some way.
|
1660
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1694
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_permission_group_edited Online documentation}
|
1661
1695
|
*/
|
1662
1696
|
interface OnPermissionGroupEditedEvent extends EventData {
|
1663
1697
|
/**
|
@@ -1686,7 +1720,7 @@ declare module "factorio:runtime" {
|
|
1686
1720
|
/**
|
1687
1721
|
* The other player when the `type` is `"add-player"` or `"remove-player"`.
|
1688
1722
|
*/
|
1689
|
-
readonly other_player_index:
|
1723
|
+
readonly other_player_index: uint32
|
1690
1724
|
/**
|
1691
1725
|
* The old group name when the `type` is `"rename"`.
|
1692
1726
|
*/
|
@@ -1702,11 +1736,11 @@ declare module "factorio:runtime" {
|
|
1702
1736
|
/**
|
1703
1737
|
* Tick the event was generated.
|
1704
1738
|
*/
|
1705
|
-
readonly tick:
|
1739
|
+
readonly tick: uint32
|
1706
1740
|
}
|
1707
1741
|
/**
|
1708
1742
|
* Called directly after a permission string is imported.
|
1709
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1743
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_permission_string_imported Online documentation}
|
1710
1744
|
*/
|
1711
1745
|
interface OnPermissionStringImportedEvent extends EventData {
|
1712
1746
|
/**
|
@@ -1720,11 +1754,11 @@ declare module "factorio:runtime" {
|
|
1720
1754
|
/**
|
1721
1755
|
* Tick the event was generated.
|
1722
1756
|
*/
|
1723
|
-
readonly tick:
|
1757
|
+
readonly tick: uint32
|
1724
1758
|
}
|
1725
1759
|
/**
|
1726
1760
|
* Called when a player picks up an item.
|
1727
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1761
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_picked_up_item Online documentation}
|
1728
1762
|
*/
|
1729
1763
|
interface OnPickedUpItemEvent extends EventData {
|
1730
1764
|
readonly item_stack: ItemWithQualityCount
|
@@ -1736,11 +1770,11 @@ declare module "factorio:runtime" {
|
|
1736
1770
|
/**
|
1737
1771
|
* Tick the event was generated.
|
1738
1772
|
*/
|
1739
|
-
readonly tick:
|
1773
|
+
readonly tick: uint32
|
1740
1774
|
}
|
1741
1775
|
/**
|
1742
1776
|
* Called after a player alt-reverse-selects an area with a selection-tool item.
|
1743
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1777
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_alt_reverse_selected_area Online documentation}
|
1744
1778
|
*/
|
1745
1779
|
interface OnPlayerAltReverseSelectedAreaEvent extends EventData {
|
1746
1780
|
/**
|
@@ -1774,11 +1808,11 @@ declare module "factorio:runtime" {
|
|
1774
1808
|
/**
|
1775
1809
|
* Tick the event was generated.
|
1776
1810
|
*/
|
1777
|
-
readonly tick:
|
1811
|
+
readonly tick: uint32
|
1778
1812
|
}
|
1779
1813
|
/**
|
1780
1814
|
* Called after a player alt-selects an area with a selection-tool item.
|
1781
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1815
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_alt_selected_area Online documentation}
|
1782
1816
|
*/
|
1783
1817
|
interface OnPlayerAltSelectedAreaEvent extends EventData {
|
1784
1818
|
/**
|
@@ -1816,11 +1850,11 @@ declare module "factorio:runtime" {
|
|
1816
1850
|
/**
|
1817
1851
|
* Tick the event was generated.
|
1818
1852
|
*/
|
1819
|
-
readonly tick:
|
1853
|
+
readonly tick: uint32
|
1820
1854
|
}
|
1821
1855
|
/**
|
1822
1856
|
* Called after a players ammo inventory changed in some way.
|
1823
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1857
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_ammo_inventory_changed Online documentation}
|
1824
1858
|
*/
|
1825
1859
|
interface OnPlayerAmmoInventoryChangedEvent extends EventData {
|
1826
1860
|
readonly player_index: PlayerIndex
|
@@ -1831,11 +1865,11 @@ declare module "factorio:runtime" {
|
|
1831
1865
|
/**
|
1832
1866
|
* Tick the event was generated.
|
1833
1867
|
*/
|
1834
|
-
readonly tick:
|
1868
|
+
readonly tick: uint32
|
1835
1869
|
}
|
1836
1870
|
/**
|
1837
1871
|
* Called after a players armor inventory changed in some way.
|
1838
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1872
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_armor_inventory_changed Online documentation}
|
1839
1873
|
*/
|
1840
1874
|
interface OnPlayerArmorInventoryChangedEvent extends EventData {
|
1841
1875
|
readonly player_index: PlayerIndex
|
@@ -1846,11 +1880,11 @@ declare module "factorio:runtime" {
|
|
1846
1880
|
/**
|
1847
1881
|
* Tick the event was generated.
|
1848
1882
|
*/
|
1849
|
-
readonly tick:
|
1883
|
+
readonly tick: uint32
|
1850
1884
|
}
|
1851
1885
|
/**
|
1852
1886
|
* Called when a player is banned.
|
1853
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1887
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_banned Online documentation}
|
1854
1888
|
*/
|
1855
1889
|
interface OnPlayerBannedEvent extends EventData {
|
1856
1890
|
/**
|
@@ -1876,11 +1910,11 @@ declare module "factorio:runtime" {
|
|
1876
1910
|
/**
|
1877
1911
|
* Tick the event was generated.
|
1878
1912
|
*/
|
1879
|
-
readonly tick:
|
1913
|
+
readonly tick: uint32
|
1880
1914
|
}
|
1881
1915
|
/**
|
1882
1916
|
* Called after a player builds tiles.
|
1883
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1917
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_built_tile Online documentation}
|
1884
1918
|
*/
|
1885
1919
|
interface OnPlayerBuiltTileEvent extends EventData {
|
1886
1920
|
readonly player_index: PlayerIndex
|
@@ -1915,11 +1949,11 @@ declare module "factorio:runtime" {
|
|
1915
1949
|
/**
|
1916
1950
|
* Tick the event was generated.
|
1917
1951
|
*/
|
1918
|
-
readonly tick:
|
1952
|
+
readonly tick: uint32
|
1919
1953
|
}
|
1920
1954
|
/**
|
1921
1955
|
* Called when a player cancels crafting.
|
1922
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1956
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_cancelled_crafting Online documentation}
|
1923
1957
|
*/
|
1924
1958
|
interface OnPlayerCancelledCraftingEvent extends EventData {
|
1925
1959
|
/**
|
@@ -1937,7 +1971,7 @@ declare module "factorio:runtime" {
|
|
1937
1971
|
/**
|
1938
1972
|
* The number of crafts that have been cancelled.
|
1939
1973
|
*/
|
1940
|
-
readonly cancel_count:
|
1974
|
+
readonly cancel_count: uint32
|
1941
1975
|
/**
|
1942
1976
|
* Identifier of the event
|
1943
1977
|
*/
|
@@ -1945,11 +1979,11 @@ declare module "factorio:runtime" {
|
|
1945
1979
|
/**
|
1946
1980
|
* Tick the event was generated.
|
1947
1981
|
*/
|
1948
|
-
readonly tick:
|
1982
|
+
readonly tick: uint32
|
1949
1983
|
}
|
1950
1984
|
/**
|
1951
1985
|
* Called after a player changes forces.
|
1952
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1986
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_changed_force Online documentation}
|
1953
1987
|
*/
|
1954
1988
|
interface OnPlayerChangedForceEvent extends EventData {
|
1955
1989
|
/**
|
@@ -1967,11 +2001,11 @@ declare module "factorio:runtime" {
|
|
1967
2001
|
/**
|
1968
2002
|
* Tick the event was generated.
|
1969
2003
|
*/
|
1970
|
-
readonly tick:
|
2004
|
+
readonly tick: uint32
|
1971
2005
|
}
|
1972
2006
|
/**
|
1973
2007
|
* Called when the tile position a player is located at changes.
|
1974
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2008
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_changed_position Online documentation}
|
1975
2009
|
*/
|
1976
2010
|
interface OnPlayerChangedPositionEvent extends EventData {
|
1977
2011
|
/**
|
@@ -1985,11 +2019,11 @@ declare module "factorio:runtime" {
|
|
1985
2019
|
/**
|
1986
2020
|
* Tick the event was generated.
|
1987
2021
|
*/
|
1988
|
-
readonly tick:
|
2022
|
+
readonly tick: uint32
|
1989
2023
|
}
|
1990
2024
|
/**
|
1991
2025
|
* Called after a player changes surfaces.
|
1992
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2026
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_changed_surface Online documentation}
|
1993
2027
|
*/
|
1994
2028
|
interface OnPlayerChangedSurfaceEvent extends EventData {
|
1995
2029
|
/**
|
@@ -2007,11 +2041,11 @@ declare module "factorio:runtime" {
|
|
2007
2041
|
/**
|
2008
2042
|
* Tick the event was generated.
|
2009
2043
|
*/
|
2010
|
-
readonly tick:
|
2044
|
+
readonly tick: uint32
|
2011
2045
|
}
|
2012
2046
|
/**
|
2013
2047
|
* Called when cheat mode is disabled on a player.
|
2014
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2048
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_cheat_mode_disabled Online documentation}
|
2015
2049
|
*/
|
2016
2050
|
interface OnPlayerCheatModeDisabledEvent extends EventData {
|
2017
2051
|
/**
|
@@ -2025,11 +2059,11 @@ declare module "factorio:runtime" {
|
|
2025
2059
|
/**
|
2026
2060
|
* Tick the event was generated.
|
2027
2061
|
*/
|
2028
|
-
readonly tick:
|
2062
|
+
readonly tick: uint32
|
2029
2063
|
}
|
2030
2064
|
/**
|
2031
2065
|
* Called when cheat mode is enabled on a player.
|
2032
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2066
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_cheat_mode_enabled Online documentation}
|
2033
2067
|
*/
|
2034
2068
|
interface OnPlayerCheatModeEnabledEvent extends EventData {
|
2035
2069
|
/**
|
@@ -2043,11 +2077,11 @@ declare module "factorio:runtime" {
|
|
2043
2077
|
/**
|
2044
2078
|
* Tick the event was generated.
|
2045
2079
|
*/
|
2046
|
-
readonly tick:
|
2080
|
+
readonly tick: uint32
|
2047
2081
|
}
|
2048
2082
|
/**
|
2049
2083
|
* Called when a player clicks a gps tag
|
2050
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2084
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_clicked_gps_tag Online documentation}
|
2051
2085
|
*/
|
2052
2086
|
interface OnPlayerClickedGpsTagEvent extends EventData {
|
2053
2087
|
/**
|
@@ -2069,11 +2103,11 @@ declare module "factorio:runtime" {
|
|
2069
2103
|
/**
|
2070
2104
|
* Tick the event was generated.
|
2071
2105
|
*/
|
2072
|
-
readonly tick:
|
2106
|
+
readonly tick: uint32
|
2073
2107
|
}
|
2074
2108
|
/**
|
2075
2109
|
* Called when a player clicks the "confirm" button in the configure Blueprint GUI.
|
2076
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2110
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_configured_blueprint Online documentation}
|
2077
2111
|
*/
|
2078
2112
|
interface OnPlayerConfiguredBlueprintEvent extends EventData {
|
2079
2113
|
/**
|
@@ -2087,11 +2121,11 @@ declare module "factorio:runtime" {
|
|
2087
2121
|
/**
|
2088
2122
|
* Tick the event was generated.
|
2089
2123
|
*/
|
2090
|
-
readonly tick:
|
2124
|
+
readonly tick: uint32
|
2091
2125
|
}
|
2092
2126
|
/**
|
2093
2127
|
* Called after a player changes controller types.
|
2094
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2128
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_controller_changed Online documentation}
|
2095
2129
|
*/
|
2096
2130
|
interface OnPlayerControllerChangedEvent extends EventData {
|
2097
2131
|
/**
|
@@ -2109,11 +2143,11 @@ declare module "factorio:runtime" {
|
|
2109
2143
|
/**
|
2110
2144
|
* Tick the event was generated.
|
2111
2145
|
*/
|
2112
|
-
readonly tick:
|
2146
|
+
readonly tick: uint32
|
2113
2147
|
}
|
2114
2148
|
/**
|
2115
2149
|
* 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}).
|
2116
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2150
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_crafted_item Online documentation}
|
2117
2151
|
*/
|
2118
2152
|
interface OnPlayerCraftedItemEvent extends EventData {
|
2119
2153
|
/**
|
@@ -2135,11 +2169,11 @@ declare module "factorio:runtime" {
|
|
2135
2169
|
/**
|
2136
2170
|
* Tick the event was generated.
|
2137
2171
|
*/
|
2138
|
-
readonly tick:
|
2172
|
+
readonly tick: uint32
|
2139
2173
|
}
|
2140
2174
|
/**
|
2141
2175
|
* Called after the player was created.
|
2142
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2176
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_created Online documentation}
|
2143
2177
|
*/
|
2144
2178
|
interface OnPlayerCreatedEvent extends EventData {
|
2145
2179
|
readonly player_index: PlayerIndex
|
@@ -2150,13 +2184,13 @@ declare module "factorio:runtime" {
|
|
2150
2184
|
/**
|
2151
2185
|
* Tick the event was generated.
|
2152
2186
|
*/
|
2153
|
-
readonly tick:
|
2187
|
+
readonly tick: uint32
|
2154
2188
|
}
|
2155
2189
|
/**
|
2156
2190
|
* Called after a player's {@link LuaControl#cursor_stack cursor stack} changed in some way.
|
2157
2191
|
*
|
2158
2192
|
* This is fired in the same tick that the change happens, but not instantly.
|
2159
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2193
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_cursor_stack_changed Online documentation}
|
2160
2194
|
*/
|
2161
2195
|
interface OnPlayerCursorStackChangedEvent extends EventData {
|
2162
2196
|
readonly player_index: PlayerIndex
|
@@ -2167,11 +2201,11 @@ declare module "factorio:runtime" {
|
|
2167
2201
|
/**
|
2168
2202
|
* Tick the event was generated.
|
2169
2203
|
*/
|
2170
|
-
readonly tick:
|
2204
|
+
readonly tick: uint32
|
2171
2205
|
}
|
2172
2206
|
/**
|
2173
2207
|
* Called when a player selects an area with a deconstruction planner.
|
2174
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2208
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_deconstructed_area Online documentation}
|
2175
2209
|
*/
|
2176
2210
|
interface OnPlayerDeconstructedAreaEvent extends EventData {
|
2177
2211
|
/**
|
@@ -2213,11 +2247,11 @@ declare module "factorio:runtime" {
|
|
2213
2247
|
/**
|
2214
2248
|
* Tick the event was generated.
|
2215
2249
|
*/
|
2216
|
-
readonly tick:
|
2250
|
+
readonly tick: uint32
|
2217
2251
|
}
|
2218
2252
|
/**
|
2219
2253
|
* Called when a player is demoted.
|
2220
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2254
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_demoted Online documentation}
|
2221
2255
|
*/
|
2222
2256
|
interface OnPlayerDemotedEvent extends EventData {
|
2223
2257
|
/**
|
@@ -2231,11 +2265,11 @@ declare module "factorio:runtime" {
|
|
2231
2265
|
/**
|
2232
2266
|
* Tick the event was generated.
|
2233
2267
|
*/
|
2234
|
-
readonly tick:
|
2268
|
+
readonly tick: uint32
|
2235
2269
|
}
|
2236
2270
|
/**
|
2237
2271
|
* Called after a player dies.
|
2238
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2272
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_died Online documentation}
|
2239
2273
|
*/
|
2240
2274
|
interface OnPlayerDiedEvent extends EventData {
|
2241
2275
|
readonly player_index: PlayerIndex
|
@@ -2247,11 +2281,11 @@ declare module "factorio:runtime" {
|
|
2247
2281
|
/**
|
2248
2282
|
* Tick the event was generated.
|
2249
2283
|
*/
|
2250
|
-
readonly tick:
|
2284
|
+
readonly tick: uint32
|
2251
2285
|
}
|
2252
2286
|
/**
|
2253
2287
|
* Called when the display density scale changes for a given player. The display density scale is the scale value automatically applied based on the player's display DPI. This is only relevant on platforms that support high-density displays.
|
2254
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2288
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_display_density_scale_changed Online documentation}
|
2255
2289
|
*/
|
2256
2290
|
interface OnPlayerDisplayDensityScaleChangedEvent extends EventData {
|
2257
2291
|
/**
|
@@ -2269,11 +2303,11 @@ declare module "factorio:runtime" {
|
|
2269
2303
|
/**
|
2270
2304
|
* Tick the event was generated.
|
2271
2305
|
*/
|
2272
|
-
readonly tick:
|
2306
|
+
readonly tick: uint32
|
2273
2307
|
}
|
2274
2308
|
/**
|
2275
2309
|
* Called when the display resolution changes for a given player.
|
2276
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2310
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_display_resolution_changed Online documentation}
|
2277
2311
|
*/
|
2278
2312
|
interface OnPlayerDisplayResolutionChangedEvent extends EventData {
|
2279
2313
|
/**
|
@@ -2291,11 +2325,11 @@ declare module "factorio:runtime" {
|
|
2291
2325
|
/**
|
2292
2326
|
* Tick the event was generated.
|
2293
2327
|
*/
|
2294
|
-
readonly tick:
|
2328
|
+
readonly tick: uint32
|
2295
2329
|
}
|
2296
2330
|
/**
|
2297
2331
|
* Called when the display scale changes for a given player.
|
2298
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2332
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_display_scale_changed Online documentation}
|
2299
2333
|
*/
|
2300
2334
|
interface OnPlayerDisplayScaleChangedEvent extends EventData {
|
2301
2335
|
/**
|
@@ -2313,13 +2347,13 @@ declare module "factorio:runtime" {
|
|
2313
2347
|
/**
|
2314
2348
|
* Tick the event was generated.
|
2315
2349
|
*/
|
2316
|
-
readonly tick:
|
2350
|
+
readonly tick: uint32
|
2317
2351
|
}
|
2318
2352
|
/**
|
2319
2353
|
* Called when the player's driving state has changed, meaning a player has either entered or left a vehicle.
|
2320
2354
|
*
|
2321
2355
|
* This event is not raised when the player is ejected from a vehicle due to it being destroyed.
|
2322
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2356
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_driving_changed_state Online documentation}
|
2323
2357
|
*/
|
2324
2358
|
interface OnPlayerDrivingChangedStateEvent extends EventData {
|
2325
2359
|
readonly player_index: PlayerIndex
|
@@ -2334,11 +2368,11 @@ declare module "factorio:runtime" {
|
|
2334
2368
|
/**
|
2335
2369
|
* Tick the event was generated.
|
2336
2370
|
*/
|
2337
|
-
readonly tick:
|
2371
|
+
readonly tick: uint32
|
2338
2372
|
}
|
2339
2373
|
/**
|
2340
2374
|
* Called when a player drops an item on the ground.
|
2341
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2375
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_dropped_item Online documentation}
|
2342
2376
|
*/
|
2343
2377
|
interface OnPlayerDroppedItemEvent extends EventData {
|
2344
2378
|
readonly player_index: PlayerIndex
|
@@ -2353,11 +2387,11 @@ declare module "factorio:runtime" {
|
|
2353
2387
|
/**
|
2354
2388
|
* Tick the event was generated.
|
2355
2389
|
*/
|
2356
|
-
readonly tick:
|
2390
|
+
readonly tick: uint32
|
2357
2391
|
}
|
2358
2392
|
/**
|
2359
2393
|
* Called when a player fast-transfers something to or from an entity.
|
2360
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2394
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_fast_transferred Online documentation}
|
2361
2395
|
*/
|
2362
2396
|
interface OnPlayerFastTransferredEvent extends EventData {
|
2363
2397
|
/**
|
@@ -2383,13 +2417,13 @@ declare module "factorio:runtime" {
|
|
2383
2417
|
/**
|
2384
2418
|
* Tick the event was generated.
|
2385
2419
|
*/
|
2386
|
-
readonly tick:
|
2420
|
+
readonly tick: uint32
|
2387
2421
|
}
|
2388
2422
|
/**
|
2389
2423
|
* Called when the player flips an entity. This event is only fired when the entity actually changes its orientation or mirroring, so it won't be triggered when pressing the flip keys on an entity that can't be flipped.
|
2390
2424
|
*
|
2391
2425
|
* This event reflects a change in the {@link LuaEntity#mirroring LuaEntity::mirroring} property.
|
2392
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2426
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_flipped_entity Online documentation}
|
2393
2427
|
*/
|
2394
2428
|
interface OnPlayerFlippedEntityEvent extends EventData {
|
2395
2429
|
/**
|
@@ -2408,11 +2442,11 @@ declare module "factorio:runtime" {
|
|
2408
2442
|
/**
|
2409
2443
|
* Tick the event was generated.
|
2410
2444
|
*/
|
2411
|
-
readonly tick:
|
2445
|
+
readonly tick: uint32
|
2412
2446
|
}
|
2413
2447
|
/**
|
2414
2448
|
* Called after player flushed fluid
|
2415
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2449
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_flushed_fluid Online documentation}
|
2416
2450
|
*/
|
2417
2451
|
interface OnPlayerFlushedFluidEvent extends EventData {
|
2418
2452
|
/**
|
@@ -2442,11 +2476,11 @@ declare module "factorio:runtime" {
|
|
2442
2476
|
/**
|
2443
2477
|
* Tick the event was generated.
|
2444
2478
|
*/
|
2445
|
-
readonly tick:
|
2479
|
+
readonly tick: uint32
|
2446
2480
|
}
|
2447
2481
|
/**
|
2448
2482
|
* Called after a players gun inventory changed in some way.
|
2449
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2483
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_gun_inventory_changed Online documentation}
|
2450
2484
|
*/
|
2451
2485
|
interface OnPlayerGunInventoryChangedEvent extends EventData {
|
2452
2486
|
readonly player_index: PlayerIndex
|
@@ -2457,11 +2491,11 @@ declare module "factorio:runtime" {
|
|
2457
2491
|
/**
|
2458
2492
|
* Tick the event was generated.
|
2459
2493
|
*/
|
2460
|
-
readonly tick:
|
2494
|
+
readonly tick: uint32
|
2461
2495
|
}
|
2462
2496
|
/**
|
2463
2497
|
* Called when a player's input method changes. See {@link LuaPlayer#input_method LuaPlayer::input_method}.
|
2464
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2498
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_input_method_changed Online documentation}
|
2465
2499
|
*/
|
2466
2500
|
interface OnPlayerInputMethodChangedEvent extends EventData {
|
2467
2501
|
/**
|
@@ -2475,11 +2509,11 @@ declare module "factorio:runtime" {
|
|
2475
2509
|
/**
|
2476
2510
|
* Tick the event was generated.
|
2477
2511
|
*/
|
2478
|
-
readonly tick:
|
2512
|
+
readonly tick: uint32
|
2479
2513
|
}
|
2480
2514
|
/**
|
2481
2515
|
* 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.
|
2482
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2516
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_joined_game Online documentation}
|
2483
2517
|
*/
|
2484
2518
|
interface OnPlayerJoinedGameEvent extends EventData {
|
2485
2519
|
readonly player_index: PlayerIndex
|
@@ -2490,11 +2524,11 @@ declare module "factorio:runtime" {
|
|
2490
2524
|
/**
|
2491
2525
|
* Tick the event was generated.
|
2492
2526
|
*/
|
2493
|
-
readonly tick:
|
2527
|
+
readonly tick: uint32
|
2494
2528
|
}
|
2495
2529
|
/**
|
2496
2530
|
* Called when a player is kicked.
|
2497
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2531
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_kicked Online documentation}
|
2498
2532
|
*/
|
2499
2533
|
interface OnPlayerKickedEvent extends EventData {
|
2500
2534
|
/**
|
@@ -2516,11 +2550,11 @@ declare module "factorio:runtime" {
|
|
2516
2550
|
/**
|
2517
2551
|
* Tick the event was generated.
|
2518
2552
|
*/
|
2519
|
-
readonly tick:
|
2553
|
+
readonly tick: uint32
|
2520
2554
|
}
|
2521
2555
|
/**
|
2522
2556
|
* 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.
|
2523
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2557
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_left_game Online documentation}
|
2524
2558
|
*/
|
2525
2559
|
interface OnPlayerLeftGameEvent extends EventData {
|
2526
2560
|
readonly player_index: PlayerIndex
|
@@ -2532,11 +2566,11 @@ declare module "factorio:runtime" {
|
|
2532
2566
|
/**
|
2533
2567
|
* Tick the event was generated.
|
2534
2568
|
*/
|
2535
|
-
readonly tick:
|
2569
|
+
readonly tick: uint32
|
2536
2570
|
}
|
2537
2571
|
/**
|
2538
2572
|
* Called when a player's active locale changes. See {@link LuaPlayer#locale LuaPlayer::locale}.
|
2539
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2573
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_locale_changed Online documentation}
|
2540
2574
|
*/
|
2541
2575
|
interface OnPlayerLocaleChangedEvent extends EventData {
|
2542
2576
|
/**
|
@@ -2554,11 +2588,11 @@ declare module "factorio:runtime" {
|
|
2554
2588
|
/**
|
2555
2589
|
* Tick the event was generated.
|
2556
2590
|
*/
|
2557
|
-
readonly tick:
|
2591
|
+
readonly tick: uint32
|
2558
2592
|
}
|
2559
2593
|
/**
|
2560
2594
|
* Called after a players main inventory changed in some way.
|
2561
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2595
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_main_inventory_changed Online documentation}
|
2562
2596
|
*/
|
2563
2597
|
interface OnPlayerMainInventoryChangedEvent extends EventData {
|
2564
2598
|
readonly player_index: PlayerIndex
|
@@ -2569,7 +2603,7 @@ declare module "factorio:runtime" {
|
|
2569
2603
|
/**
|
2570
2604
|
* Tick the event was generated.
|
2571
2605
|
*/
|
2572
|
-
readonly tick:
|
2606
|
+
readonly tick: uint32
|
2573
2607
|
}
|
2574
2608
|
/**
|
2575
2609
|
* Called after the results of an entity being mined are collected just before the entity is destroyed.
|
@@ -2579,7 +2613,7 @@ declare module "factorio:runtime" {
|
|
2579
2613
|
* 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.
|
2580
2614
|
*
|
2581
2615
|
* Event filter: [LuaPlayerMinedEntityEventFilter](LuaPlayerMinedEntityEventFilter]
|
2582
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2616
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_mined_entity Online documentation}
|
2583
2617
|
*/
|
2584
2618
|
interface OnPlayerMinedEntityEvent extends EventData {
|
2585
2619
|
/**
|
@@ -2601,11 +2635,11 @@ declare module "factorio:runtime" {
|
|
2601
2635
|
/**
|
2602
2636
|
* Tick the event was generated.
|
2603
2637
|
*/
|
2604
|
-
readonly tick:
|
2638
|
+
readonly tick: uint32
|
2605
2639
|
}
|
2606
2640
|
/**
|
2607
2641
|
* Called when the player mines something.
|
2608
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2642
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_mined_item Online documentation}
|
2609
2643
|
*/
|
2610
2644
|
interface OnPlayerMinedItemEvent extends EventData {
|
2611
2645
|
/**
|
@@ -2620,11 +2654,11 @@ declare module "factorio:runtime" {
|
|
2620
2654
|
/**
|
2621
2655
|
* Tick the event was generated.
|
2622
2656
|
*/
|
2623
|
-
readonly tick:
|
2657
|
+
readonly tick: uint32
|
2624
2658
|
}
|
2625
2659
|
/**
|
2626
2660
|
* Called after a player mines tiles.
|
2627
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2661
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_mined_tile Online documentation}
|
2628
2662
|
*/
|
2629
2663
|
interface OnPlayerMinedTileEvent extends EventData {
|
2630
2664
|
readonly player_index: PlayerIndex
|
@@ -2643,11 +2677,11 @@ declare module "factorio:runtime" {
|
|
2643
2677
|
/**
|
2644
2678
|
* Tick the event was generated.
|
2645
2679
|
*/
|
2646
|
-
readonly tick:
|
2680
|
+
readonly tick: uint32
|
2647
2681
|
}
|
2648
2682
|
/**
|
2649
2683
|
* Called when a player is muted.
|
2650
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2684
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_muted Online documentation}
|
2651
2685
|
*/
|
2652
2686
|
interface OnPlayerMutedEvent extends EventData {
|
2653
2687
|
/**
|
@@ -2661,11 +2695,11 @@ declare module "factorio:runtime" {
|
|
2661
2695
|
/**
|
2662
2696
|
* Tick the event was generated.
|
2663
2697
|
*/
|
2664
|
-
readonly tick:
|
2698
|
+
readonly tick: uint32
|
2665
2699
|
}
|
2666
2700
|
/**
|
2667
2701
|
* Called when a player invokes the "smart pipette" over an entity.
|
2668
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2702
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_pipette Online documentation}
|
2669
2703
|
*/
|
2670
2704
|
interface OnPlayerPipetteEvent extends EventData {
|
2671
2705
|
/**
|
@@ -2691,11 +2725,11 @@ declare module "factorio:runtime" {
|
|
2691
2725
|
/**
|
2692
2726
|
* Tick the event was generated.
|
2693
2727
|
*/
|
2694
|
-
readonly tick:
|
2728
|
+
readonly tick: uint32
|
2695
2729
|
}
|
2696
2730
|
/**
|
2697
2731
|
* Called after the player puts equipment in an equipment grid
|
2698
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2732
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_placed_equipment Online documentation}
|
2699
2733
|
*/
|
2700
2734
|
interface OnPlayerPlacedEquipmentEvent extends EventData {
|
2701
2735
|
readonly player_index: PlayerIndex
|
@@ -2714,11 +2748,11 @@ declare module "factorio:runtime" {
|
|
2714
2748
|
/**
|
2715
2749
|
* Tick the event was generated.
|
2716
2750
|
*/
|
2717
|
-
readonly tick:
|
2751
|
+
readonly tick: uint32
|
2718
2752
|
}
|
2719
2753
|
/**
|
2720
2754
|
* Called when a player is promoted.
|
2721
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2755
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_promoted Online documentation}
|
2722
2756
|
*/
|
2723
2757
|
interface OnPlayerPromotedEvent extends EventData {
|
2724
2758
|
/**
|
@@ -2732,11 +2766,11 @@ declare module "factorio:runtime" {
|
|
2732
2766
|
/**
|
2733
2767
|
* Tick the event was generated.
|
2734
2768
|
*/
|
2735
|
-
readonly tick:
|
2769
|
+
readonly tick: uint32
|
2736
2770
|
}
|
2737
2771
|
/**
|
2738
2772
|
* 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.
|
2739
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2773
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_removed Online documentation}
|
2740
2774
|
*/
|
2741
2775
|
interface OnPlayerRemovedEvent extends EventData {
|
2742
2776
|
/**
|
@@ -2750,11 +2784,11 @@ declare module "factorio:runtime" {
|
|
2750
2784
|
/**
|
2751
2785
|
* Tick the event was generated.
|
2752
2786
|
*/
|
2753
|
-
readonly tick:
|
2787
|
+
readonly tick: uint32
|
2754
2788
|
}
|
2755
2789
|
/**
|
2756
2790
|
* Called after the player removes equipment from an equipment grid
|
2757
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2791
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_removed_equipment Online documentation}
|
2758
2792
|
*/
|
2759
2793
|
interface OnPlayerRemovedEquipmentEvent extends EventData {
|
2760
2794
|
readonly player_index: PlayerIndex
|
@@ -2773,7 +2807,7 @@ declare module "factorio:runtime" {
|
|
2773
2807
|
/**
|
2774
2808
|
* The count of equipment removed.
|
2775
2809
|
*/
|
2776
|
-
readonly count:
|
2810
|
+
readonly count: uint32
|
2777
2811
|
/**
|
2778
2812
|
* Identifier of the event
|
2779
2813
|
*/
|
@@ -2781,13 +2815,13 @@ declare module "factorio:runtime" {
|
|
2781
2815
|
/**
|
2782
2816
|
* Tick the event was generated.
|
2783
2817
|
*/
|
2784
|
-
readonly tick:
|
2818
|
+
readonly tick: uint32
|
2785
2819
|
}
|
2786
2820
|
/**
|
2787
2821
|
* Called when a player repairs an entity.
|
2788
2822
|
*
|
2789
2823
|
* Event filter: [LuaPlayerRepairedEntityEventFilter](LuaPlayerRepairedEntityEventFilter]
|
2790
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2824
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_repaired_entity Online documentation}
|
2791
2825
|
*/
|
2792
2826
|
interface OnPlayerRepairedEntityEvent extends EventData {
|
2793
2827
|
readonly player_index: PlayerIndex
|
@@ -2799,11 +2833,11 @@ declare module "factorio:runtime" {
|
|
2799
2833
|
/**
|
2800
2834
|
* Tick the event was generated.
|
2801
2835
|
*/
|
2802
|
-
readonly tick:
|
2836
|
+
readonly tick: uint32
|
2803
2837
|
}
|
2804
2838
|
/**
|
2805
2839
|
* Called after a player respawns.
|
2806
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2840
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_respawned Online documentation}
|
2807
2841
|
*/
|
2808
2842
|
interface OnPlayerRespawnedEvent extends EventData {
|
2809
2843
|
readonly player_index: PlayerIndex
|
@@ -2818,11 +2852,11 @@ declare module "factorio:runtime" {
|
|
2818
2852
|
/**
|
2819
2853
|
* Tick the event was generated.
|
2820
2854
|
*/
|
2821
|
-
readonly tick:
|
2855
|
+
readonly tick: uint32
|
2822
2856
|
}
|
2823
2857
|
/**
|
2824
2858
|
* Called after a player reverse-selects an area with a selection-tool item.
|
2825
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2859
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_reverse_selected_area Online documentation}
|
2826
2860
|
*/
|
2827
2861
|
interface OnPlayerReverseSelectedAreaEvent extends EventData {
|
2828
2862
|
/**
|
@@ -2856,13 +2890,13 @@ declare module "factorio:runtime" {
|
|
2856
2890
|
/**
|
2857
2891
|
* Tick the event was generated.
|
2858
2892
|
*/
|
2859
|
-
readonly tick:
|
2893
|
+
readonly tick: uint32
|
2860
2894
|
}
|
2861
2895
|
/**
|
2862
2896
|
* 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.
|
2863
2897
|
*
|
2864
2898
|
* Entities being flipped will not fire this event, even if the flip involves rotating. See {@link OnPlayerFlippedEntityEvent on_player_flipped_entity}.
|
2865
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2899
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_rotated_entity Online documentation}
|
2866
2900
|
*/
|
2867
2901
|
interface OnPlayerRotatedEntityEvent extends EventData {
|
2868
2902
|
/**
|
@@ -2881,11 +2915,11 @@ declare module "factorio:runtime" {
|
|
2881
2915
|
/**
|
2882
2916
|
* Tick the event was generated.
|
2883
2917
|
*/
|
2884
|
-
readonly tick:
|
2918
|
+
readonly tick: uint32
|
2885
2919
|
}
|
2886
2920
|
/**
|
2887
2921
|
* Called after a player selects an area with a selection-tool item.
|
2888
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2922
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_selected_area Online documentation}
|
2889
2923
|
*/
|
2890
2924
|
interface OnPlayerSelectedAreaEvent extends EventData {
|
2891
2925
|
/**
|
@@ -2923,11 +2957,11 @@ declare module "factorio:runtime" {
|
|
2923
2957
|
/**
|
2924
2958
|
* Tick the event was generated.
|
2925
2959
|
*/
|
2926
|
-
readonly tick:
|
2960
|
+
readonly tick: uint32
|
2927
2961
|
}
|
2928
2962
|
/**
|
2929
2963
|
* Called when a player sets a quickbar slot to anything (new value, or set to empty).
|
2930
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2964
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_set_quick_bar_slot Online documentation}
|
2931
2965
|
*/
|
2932
2966
|
interface OnPlayerSetQuickBarSlotEvent extends EventData {
|
2933
2967
|
readonly player_index: PlayerIndex
|
@@ -2938,11 +2972,11 @@ declare module "factorio:runtime" {
|
|
2938
2972
|
/**
|
2939
2973
|
* Tick the event was generated.
|
2940
2974
|
*/
|
2941
|
-
readonly tick:
|
2975
|
+
readonly tick: uint32
|
2942
2976
|
}
|
2943
2977
|
/**
|
2944
2978
|
* Called when a player selects an area with a blueprint.
|
2945
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2979
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_setup_blueprint Online documentation}
|
2946
2980
|
*/
|
2947
2981
|
interface OnPlayerSetupBlueprintEvent extends EventData {
|
2948
2982
|
/**
|
@@ -2980,7 +3014,7 @@ declare module "factorio:runtime" {
|
|
2980
3014
|
/**
|
2981
3015
|
* The blueprint entity index to source entity mapping. Note: if any mod changes the blueprint this will be incorrect.
|
2982
3016
|
*/
|
2983
|
-
readonly mapping: LuaLazyLoadedValue<Record<
|
3017
|
+
readonly mapping: LuaLazyLoadedValue<Record<uint32, LuaEntity>>
|
2984
3018
|
/**
|
2985
3019
|
* Identifier of the event
|
2986
3020
|
*/
|
@@ -2988,11 +3022,11 @@ declare module "factorio:runtime" {
|
|
2988
3022
|
/**
|
2989
3023
|
* Tick the event was generated.
|
2990
3024
|
*/
|
2991
|
-
readonly tick:
|
3025
|
+
readonly tick: uint32
|
2992
3026
|
}
|
2993
3027
|
/**
|
2994
3028
|
* Called when a player toggles alt mode, also known as "show entity info".
|
2995
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3029
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_toggled_alt_mode Online documentation}
|
2996
3030
|
*/
|
2997
3031
|
interface OnPlayerToggledAltModeEvent extends EventData {
|
2998
3032
|
readonly player_index: PlayerIndex
|
@@ -3007,11 +3041,11 @@ declare module "factorio:runtime" {
|
|
3007
3041
|
/**
|
3008
3042
|
* Tick the event was generated.
|
3009
3043
|
*/
|
3010
|
-
readonly tick:
|
3044
|
+
readonly tick: uint32
|
3011
3045
|
}
|
3012
3046
|
/**
|
3013
3047
|
* Called when a player toggles the map editor on or off.
|
3014
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3048
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_toggled_map_editor Online documentation}
|
3015
3049
|
*/
|
3016
3050
|
interface OnPlayerToggledMapEditorEvent extends EventData {
|
3017
3051
|
readonly player_index: PlayerIndex
|
@@ -3022,11 +3056,11 @@ declare module "factorio:runtime" {
|
|
3022
3056
|
/**
|
3023
3057
|
* Tick the event was generated.
|
3024
3058
|
*/
|
3025
|
-
readonly tick:
|
3059
|
+
readonly tick: uint32
|
3026
3060
|
}
|
3027
3061
|
/**
|
3028
3062
|
* Called after a players trash inventory changed in some way.
|
3029
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3063
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_trash_inventory_changed Online documentation}
|
3030
3064
|
*/
|
3031
3065
|
interface OnPlayerTrashInventoryChangedEvent extends EventData {
|
3032
3066
|
readonly player_index: PlayerIndex
|
@@ -3037,11 +3071,11 @@ declare module "factorio:runtime" {
|
|
3037
3071
|
/**
|
3038
3072
|
* Tick the event was generated.
|
3039
3073
|
*/
|
3040
|
-
readonly tick:
|
3074
|
+
readonly tick: uint32
|
3041
3075
|
}
|
3042
3076
|
/**
|
3043
3077
|
* Called when a player is un-banned.
|
3044
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3078
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_unbanned Online documentation}
|
3045
3079
|
*/
|
3046
3080
|
interface OnPlayerUnbannedEvent extends EventData {
|
3047
3081
|
/**
|
@@ -3067,11 +3101,11 @@ declare module "factorio:runtime" {
|
|
3067
3101
|
/**
|
3068
3102
|
* Tick the event was generated.
|
3069
3103
|
*/
|
3070
|
-
readonly tick:
|
3104
|
+
readonly tick: uint32
|
3071
3105
|
}
|
3072
3106
|
/**
|
3073
3107
|
* Called when a player is unmuted.
|
3074
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3108
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_unmuted Online documentation}
|
3075
3109
|
*/
|
3076
3110
|
interface OnPlayerUnmutedEvent extends EventData {
|
3077
3111
|
/**
|
@@ -3085,11 +3119,11 @@ declare module "factorio:runtime" {
|
|
3085
3119
|
/**
|
3086
3120
|
* Tick the event was generated.
|
3087
3121
|
*/
|
3088
|
-
readonly tick:
|
3122
|
+
readonly tick: uint32
|
3089
3123
|
}
|
3090
3124
|
/**
|
3091
3125
|
* Called when a player uses a capsule that results in some game action.
|
3092
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3126
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_used_capsule Online documentation}
|
3093
3127
|
*/
|
3094
3128
|
interface OnPlayerUsedCapsuleEvent extends EventData {
|
3095
3129
|
/**
|
@@ -3115,11 +3149,11 @@ declare module "factorio:runtime" {
|
|
3115
3149
|
/**
|
3116
3150
|
* Tick the event was generated.
|
3117
3151
|
*/
|
3118
|
-
readonly tick:
|
3152
|
+
readonly tick: uint32
|
3119
3153
|
}
|
3120
3154
|
/**
|
3121
3155
|
* Called when a player uses spidertron remote to send all selected units to a given position
|
3122
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3156
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_player_used_spidertron_remote Online documentation}
|
3123
3157
|
*/
|
3124
3158
|
interface OnPlayerUsedSpidertronRemoteEvent extends EventData {
|
3125
3159
|
/**
|
@@ -3137,13 +3171,13 @@ declare module "factorio:runtime" {
|
|
3137
3171
|
/**
|
3138
3172
|
* Tick the event was generated.
|
3139
3173
|
*/
|
3140
|
-
readonly tick:
|
3174
|
+
readonly tick: uint32
|
3141
3175
|
}
|
3142
3176
|
/**
|
3143
3177
|
* Called after an entity dies.
|
3144
3178
|
*
|
3145
3179
|
* Event filter: [LuaPostEntityDiedEventFilter](LuaPostEntityDiedEventFilter]
|
3146
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3180
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_post_entity_died Online documentation}
|
3147
3181
|
*/
|
3148
3182
|
interface OnPostEntityDiedEvent extends EventData {
|
3149
3183
|
/**
|
@@ -3189,13 +3223,13 @@ declare module "factorio:runtime" {
|
|
3189
3223
|
/**
|
3190
3224
|
* Tick the event was generated.
|
3191
3225
|
*/
|
3192
|
-
readonly tick:
|
3226
|
+
readonly tick: uint32
|
3193
3227
|
}
|
3194
3228
|
/**
|
3195
3229
|
* Called after a segmented unit dies.
|
3196
3230
|
*
|
3197
3231
|
* Event filter: [LuaPostSegmentedUnitDiedEventFilter](LuaPostSegmentedUnitDiedEventFilter]
|
3198
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3232
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_post_segmented_unit_died Online documentation}
|
3199
3233
|
*/
|
3200
3234
|
interface OnPostSegmentedUnitDiedEvent extends EventData {
|
3201
3235
|
/**
|
@@ -3233,11 +3267,11 @@ declare module "factorio:runtime" {
|
|
3233
3267
|
/**
|
3234
3268
|
* Tick the event was generated.
|
3235
3269
|
*/
|
3236
|
-
readonly tick:
|
3270
|
+
readonly tick: uint32
|
3237
3271
|
}
|
3238
3272
|
/**
|
3239
3273
|
* Called when players uses an item to build something. Called before {@link OnBuiltEntityEvent on_built_entity}.
|
3240
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3274
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_build Online documentation}
|
3241
3275
|
*/
|
3242
3276
|
interface OnPreBuildEvent extends EventData {
|
3243
3277
|
/**
|
@@ -3279,11 +3313,11 @@ declare module "factorio:runtime" {
|
|
3279
3313
|
/**
|
3280
3314
|
* Tick the event was generated.
|
3281
3315
|
*/
|
3282
|
-
readonly tick:
|
3316
|
+
readonly tick: uint32
|
3283
3317
|
}
|
3284
3318
|
/**
|
3285
3319
|
* Called before one or more chunks are deleted using {@link LuaSurface#delete_chunk LuaSurface::delete_chunk}.
|
3286
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3320
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_chunk_deleted Online documentation}
|
3287
3321
|
*/
|
3288
3322
|
interface OnPreChunkDeletedEvent extends EventData {
|
3289
3323
|
readonly surface_index: SurfaceIndex
|
@@ -3298,11 +3332,11 @@ declare module "factorio:runtime" {
|
|
3298
3332
|
/**
|
3299
3333
|
* Tick the event was generated.
|
3300
3334
|
*/
|
3301
|
-
readonly tick:
|
3335
|
+
readonly tick: uint32
|
3302
3336
|
}
|
3303
3337
|
/**
|
3304
3338
|
* Called before entity copy-paste is done.
|
3305
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3339
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_entity_settings_pasted Online documentation}
|
3306
3340
|
*/
|
3307
3341
|
interface OnPreEntitySettingsPastedEvent extends EventData {
|
3308
3342
|
readonly player_index: PlayerIndex
|
@@ -3321,7 +3355,7 @@ declare module "factorio:runtime" {
|
|
3321
3355
|
/**
|
3322
3356
|
* Tick the event was generated.
|
3323
3357
|
*/
|
3324
|
-
readonly tick:
|
3358
|
+
readonly tick: uint32
|
3325
3359
|
}
|
3326
3360
|
/**
|
3327
3361
|
* Called before a ghost entity is destroyed as a result of being marked for deconstruction.
|
@@ -3329,7 +3363,7 @@ declare module "factorio:runtime" {
|
|
3329
3363
|
* Also called for item request proxies before they are destroyed as a result of being marked for deconstruction.
|
3330
3364
|
*
|
3331
3365
|
* Event filter: [LuaPreGhostDeconstructedEventFilter](LuaPreGhostDeconstructedEventFilter]
|
3332
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3366
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_ghost_deconstructed Online documentation}
|
3333
3367
|
*/
|
3334
3368
|
interface OnPreGhostDeconstructedEvent extends EventData {
|
3335
3369
|
/**
|
@@ -3344,13 +3378,13 @@ declare module "factorio:runtime" {
|
|
3344
3378
|
/**
|
3345
3379
|
* Tick the event was generated.
|
3346
3380
|
*/
|
3347
|
-
readonly tick:
|
3381
|
+
readonly tick: uint32
|
3348
3382
|
}
|
3349
3383
|
/**
|
3350
3384
|
* Called before a ghost entity is upgraded.
|
3351
3385
|
*
|
3352
3386
|
* Event filter: [LuaPreGhostUpgradedEventFilter](LuaPreGhostUpgradedEventFilter]
|
3353
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3387
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_ghost_upgraded Online documentation}
|
3354
3388
|
*/
|
3355
3389
|
interface OnPreGhostUpgradedEvent extends EventData {
|
3356
3390
|
/**
|
@@ -3367,11 +3401,11 @@ declare module "factorio:runtime" {
|
|
3367
3401
|
/**
|
3368
3402
|
* Tick the event was generated.
|
3369
3403
|
*/
|
3370
|
-
readonly tick:
|
3404
|
+
readonly tick: uint32
|
3371
3405
|
}
|
3372
3406
|
/**
|
3373
3407
|
* Called directly before a permission group is deleted.
|
3374
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3408
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_permission_group_deleted Online documentation}
|
3375
3409
|
*/
|
3376
3410
|
interface OnPrePermissionGroupDeletedEvent extends EventData {
|
3377
3411
|
/**
|
@@ -3389,11 +3423,11 @@ declare module "factorio:runtime" {
|
|
3389
3423
|
/**
|
3390
3424
|
* Tick the event was generated.
|
3391
3425
|
*/
|
3392
|
-
readonly tick:
|
3426
|
+
readonly tick: uint32
|
3393
3427
|
}
|
3394
3428
|
/**
|
3395
3429
|
* Called directly before a permission string is imported.
|
3396
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3430
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_permission_string_imported Online documentation}
|
3397
3431
|
*/
|
3398
3432
|
interface OnPrePermissionStringImportedEvent extends EventData {
|
3399
3433
|
/**
|
@@ -3407,11 +3441,11 @@ declare module "factorio:runtime" {
|
|
3407
3441
|
/**
|
3408
3442
|
* Tick the event was generated.
|
3409
3443
|
*/
|
3410
|
-
readonly tick:
|
3444
|
+
readonly tick: uint32
|
3411
3445
|
}
|
3412
3446
|
/**
|
3413
3447
|
* Called when a player queues something to be crafted.
|
3414
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3448
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_player_crafted_item Online documentation}
|
3415
3449
|
*/
|
3416
3450
|
interface OnPrePlayerCraftedItemEvent extends EventData {
|
3417
3451
|
/**
|
@@ -3429,7 +3463,7 @@ declare module "factorio:runtime" {
|
|
3429
3463
|
/**
|
3430
3464
|
* The number of times the recipe is being queued.
|
3431
3465
|
*/
|
3432
|
-
readonly queued_count:
|
3466
|
+
readonly queued_count: uint32
|
3433
3467
|
/**
|
3434
3468
|
* Identifier of the event
|
3435
3469
|
*/
|
@@ -3437,11 +3471,11 @@ declare module "factorio:runtime" {
|
|
3437
3471
|
/**
|
3438
3472
|
* Tick the event was generated.
|
3439
3473
|
*/
|
3440
|
-
readonly tick:
|
3474
|
+
readonly tick: uint32
|
3441
3475
|
}
|
3442
3476
|
/**
|
3443
3477
|
* Called before a players dies.
|
3444
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3478
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_player_died Online documentation}
|
3445
3479
|
*/
|
3446
3480
|
interface OnPrePlayerDiedEvent extends EventData {
|
3447
3481
|
readonly player_index: PlayerIndex
|
@@ -3453,11 +3487,11 @@ declare module "factorio:runtime" {
|
|
3453
3487
|
/**
|
3454
3488
|
* Tick the event was generated.
|
3455
3489
|
*/
|
3456
|
-
readonly tick:
|
3490
|
+
readonly tick: uint32
|
3457
3491
|
}
|
3458
3492
|
/**
|
3459
3493
|
* Called before a player leaves the game.
|
3460
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3494
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_player_left_game Online documentation}
|
3461
3495
|
*/
|
3462
3496
|
interface OnPrePlayerLeftGameEvent extends EventData {
|
3463
3497
|
readonly player_index: PlayerIndex
|
@@ -3469,13 +3503,13 @@ declare module "factorio:runtime" {
|
|
3469
3503
|
/**
|
3470
3504
|
* Tick the event was generated.
|
3471
3505
|
*/
|
3472
|
-
readonly tick:
|
3506
|
+
readonly tick: uint32
|
3473
3507
|
}
|
3474
3508
|
/**
|
3475
3509
|
* 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.
|
3476
3510
|
*
|
3477
3511
|
* Event filter: [LuaPrePlayerMinedEntityEventFilter](LuaPrePlayerMinedEntityEventFilter]
|
3478
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3512
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_player_mined_item Online documentation}
|
3479
3513
|
*/
|
3480
3514
|
interface OnPrePlayerMinedItemEvent extends EventData {
|
3481
3515
|
/**
|
@@ -3490,11 +3524,11 @@ declare module "factorio:runtime" {
|
|
3490
3524
|
/**
|
3491
3525
|
* Tick the event was generated.
|
3492
3526
|
*/
|
3493
|
-
readonly tick:
|
3527
|
+
readonly tick: uint32
|
3494
3528
|
}
|
3495
3529
|
/**
|
3496
3530
|
* 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.
|
3497
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3531
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_player_removed Online documentation}
|
3498
3532
|
*/
|
3499
3533
|
interface OnPrePlayerRemovedEvent extends EventData {
|
3500
3534
|
/**
|
@@ -3508,11 +3542,11 @@ declare module "factorio:runtime" {
|
|
3508
3542
|
/**
|
3509
3543
|
* Tick the event was generated.
|
3510
3544
|
*/
|
3511
|
-
readonly tick:
|
3545
|
+
readonly tick: uint32
|
3512
3546
|
}
|
3513
3547
|
/**
|
3514
3548
|
* Called before a player toggles the map editor on or off.
|
3515
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3549
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_player_toggled_map_editor Online documentation}
|
3516
3550
|
*/
|
3517
3551
|
interface OnPrePlayerToggledMapEditorEvent extends EventData {
|
3518
3552
|
readonly player_index: PlayerIndex
|
@@ -3523,11 +3557,11 @@ declare module "factorio:runtime" {
|
|
3523
3557
|
/**
|
3524
3558
|
* Tick the event was generated.
|
3525
3559
|
*/
|
3526
|
-
readonly tick:
|
3560
|
+
readonly tick: uint32
|
3527
3561
|
}
|
3528
3562
|
/**
|
3529
3563
|
* Called directly before a robot explodes cliffs.
|
3530
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3564
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_robot_exploded_cliff Online documentation}
|
3531
3565
|
*/
|
3532
3566
|
interface OnPreRobotExplodedCliffEvent extends EventData {
|
3533
3567
|
readonly robot: LuaEntity
|
@@ -3547,11 +3581,11 @@ declare module "factorio:runtime" {
|
|
3547
3581
|
/**
|
3548
3582
|
* Tick the event was generated.
|
3549
3583
|
*/
|
3550
|
-
readonly tick:
|
3584
|
+
readonly tick: uint32
|
3551
3585
|
}
|
3552
3586
|
/**
|
3553
3587
|
* Called just before the scenario finishes.
|
3554
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3588
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_scenario_finished Online documentation}
|
3555
3589
|
*/
|
3556
3590
|
interface OnPreScenarioFinishedEvent extends EventData {
|
3557
3591
|
/**
|
@@ -3565,11 +3599,11 @@ declare module "factorio:runtime" {
|
|
3565
3599
|
/**
|
3566
3600
|
* Tick the event was generated.
|
3567
3601
|
*/
|
3568
|
-
readonly tick:
|
3602
|
+
readonly tick: uint32
|
3569
3603
|
}
|
3570
3604
|
/**
|
3571
3605
|
* Called just before a script inventory is resized.
|
3572
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3606
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_script_inventory_resized Online documentation}
|
3573
3607
|
*/
|
3574
3608
|
interface OnPreScriptInventoryResizedEvent extends EventData {
|
3575
3609
|
/**
|
@@ -3584,11 +3618,11 @@ declare module "factorio:runtime" {
|
|
3584
3618
|
/**
|
3585
3619
|
* The old inventory size.
|
3586
3620
|
*/
|
3587
|
-
readonly old_size:
|
3621
|
+
readonly old_size: uint32
|
3588
3622
|
/**
|
3589
3623
|
* The new inventory size.
|
3590
3624
|
*/
|
3591
|
-
readonly new_size:
|
3625
|
+
readonly new_size: uint32
|
3592
3626
|
/**
|
3593
3627
|
* Identifier of the event
|
3594
3628
|
*/
|
@@ -3596,11 +3630,11 @@ declare module "factorio:runtime" {
|
|
3596
3630
|
/**
|
3597
3631
|
* Tick the event was generated.
|
3598
3632
|
*/
|
3599
|
-
readonly tick:
|
3633
|
+
readonly tick: uint32
|
3600
3634
|
}
|
3601
3635
|
/**
|
3602
3636
|
* Called just before a surface is cleared (all entities removed and all chunks deleted).
|
3603
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3637
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_surface_cleared Online documentation}
|
3604
3638
|
*/
|
3605
3639
|
interface OnPreSurfaceClearedEvent extends EventData {
|
3606
3640
|
readonly surface_index: SurfaceIndex
|
@@ -3611,11 +3645,11 @@ declare module "factorio:runtime" {
|
|
3611
3645
|
/**
|
3612
3646
|
* Tick the event was generated.
|
3613
3647
|
*/
|
3614
|
-
readonly tick:
|
3648
|
+
readonly tick: uint32
|
3615
3649
|
}
|
3616
3650
|
/**
|
3617
3651
|
* Called just before a surface is deleted.
|
3618
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3652
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_pre_surface_deleted Online documentation}
|
3619
3653
|
*/
|
3620
3654
|
interface OnPreSurfaceDeletedEvent extends EventData {
|
3621
3655
|
readonly surface_index: SurfaceIndex
|
@@ -3626,11 +3660,11 @@ declare module "factorio:runtime" {
|
|
3626
3660
|
/**
|
3627
3661
|
* Tick the event was generated.
|
3628
3662
|
*/
|
3629
|
-
readonly tick:
|
3663
|
+
readonly tick: uint32
|
3630
3664
|
}
|
3631
3665
|
/**
|
3632
3666
|
* Called when the player triggers "redo".
|
3633
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3667
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_redo_applied Online documentation}
|
3634
3668
|
*/
|
3635
3669
|
interface OnRedoAppliedEvent extends EventData {
|
3636
3670
|
/**
|
@@ -3648,17 +3682,17 @@ declare module "factorio:runtime" {
|
|
3648
3682
|
/**
|
3649
3683
|
* Tick the event was generated.
|
3650
3684
|
*/
|
3651
|
-
readonly tick:
|
3685
|
+
readonly tick: uint32
|
3652
3686
|
}
|
3653
3687
|
/**
|
3654
3688
|
* Called when research is cancelled.
|
3655
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3689
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_research_cancelled Online documentation}
|
3656
3690
|
*/
|
3657
3691
|
interface OnResearchCancelledEvent extends EventData {
|
3658
3692
|
/**
|
3659
3693
|
* A mapping of technology name to how many times it was cancelled.
|
3660
3694
|
*/
|
3661
|
-
readonly research: Record<string,
|
3695
|
+
readonly research: Record<string, uint32>
|
3662
3696
|
/**
|
3663
3697
|
* The force whose research was cancelled.
|
3664
3698
|
*/
|
@@ -3674,11 +3708,11 @@ declare module "factorio:runtime" {
|
|
3674
3708
|
/**
|
3675
3709
|
* Tick the event was generated.
|
3676
3710
|
*/
|
3677
|
-
readonly tick:
|
3711
|
+
readonly tick: uint32
|
3678
3712
|
}
|
3679
3713
|
/**
|
3680
3714
|
* Called when a research finishes.
|
3681
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3715
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_research_finished Online documentation}
|
3682
3716
|
*/
|
3683
3717
|
interface OnResearchFinishedEvent extends EventData {
|
3684
3718
|
/**
|
@@ -3696,11 +3730,11 @@ declare module "factorio:runtime" {
|
|
3696
3730
|
/**
|
3697
3731
|
* Tick the event was generated.
|
3698
3732
|
*/
|
3699
|
-
readonly tick:
|
3733
|
+
readonly tick: uint32
|
3700
3734
|
}
|
3701
3735
|
/**
|
3702
3736
|
* Called when research is moved forwards or backwards in the research queue.
|
3703
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3737
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_research_moved Online documentation}
|
3704
3738
|
*/
|
3705
3739
|
interface OnResearchMovedEvent extends EventData {
|
3706
3740
|
/**
|
@@ -3718,11 +3752,11 @@ declare module "factorio:runtime" {
|
|
3718
3752
|
/**
|
3719
3753
|
* Tick the event was generated.
|
3720
3754
|
*/
|
3721
|
-
readonly tick:
|
3755
|
+
readonly tick: uint32
|
3722
3756
|
}
|
3723
3757
|
/**
|
3724
3758
|
* Called when research is queued.
|
3725
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3759
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_research_queued Online documentation}
|
3726
3760
|
*/
|
3727
3761
|
interface OnResearchQueuedEvent extends EventData {
|
3728
3762
|
/**
|
@@ -3744,11 +3778,11 @@ declare module "factorio:runtime" {
|
|
3744
3778
|
/**
|
3745
3779
|
* Tick the event was generated.
|
3746
3780
|
*/
|
3747
|
-
readonly tick:
|
3781
|
+
readonly tick: uint32
|
3748
3782
|
}
|
3749
3783
|
/**
|
3750
3784
|
* Called when a research is reversed (unresearched).
|
3751
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3785
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_research_reversed Online documentation}
|
3752
3786
|
*/
|
3753
3787
|
interface OnResearchReversedEvent extends EventData {
|
3754
3788
|
/**
|
@@ -3766,11 +3800,11 @@ declare module "factorio:runtime" {
|
|
3766
3800
|
/**
|
3767
3801
|
* Tick the event was generated.
|
3768
3802
|
*/
|
3769
|
-
readonly tick:
|
3803
|
+
readonly tick: uint32
|
3770
3804
|
}
|
3771
3805
|
/**
|
3772
3806
|
* Called when a technology research starts.
|
3773
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3807
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_research_started Online documentation}
|
3774
3808
|
*/
|
3775
3809
|
interface OnResearchStartedEvent extends EventData {
|
3776
3810
|
/**
|
@@ -3785,11 +3819,11 @@ declare module "factorio:runtime" {
|
|
3785
3819
|
/**
|
3786
3820
|
* Tick the event was generated.
|
3787
3821
|
*/
|
3788
|
-
readonly tick:
|
3822
|
+
readonly tick: uint32
|
3789
3823
|
}
|
3790
3824
|
/**
|
3791
3825
|
* Called when a resource entity reaches 0 or its minimum yield for infinite resources.
|
3792
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3826
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_resource_depleted Online documentation}
|
3793
3827
|
*/
|
3794
3828
|
interface OnResourceDepletedEvent extends EventData {
|
3795
3829
|
readonly entity: LuaEntity
|
@@ -3800,13 +3834,13 @@ declare module "factorio:runtime" {
|
|
3800
3834
|
/**
|
3801
3835
|
* Tick the event was generated.
|
3802
3836
|
*/
|
3803
|
-
readonly tick:
|
3837
|
+
readonly tick: uint32
|
3804
3838
|
}
|
3805
3839
|
/**
|
3806
3840
|
* Called when a construction robot builds an entity.
|
3807
3841
|
*
|
3808
3842
|
* Event filter: [LuaRobotBuiltEntityEventFilter](LuaRobotBuiltEntityEventFilter]
|
3809
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3843
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_robot_built_entity Online documentation}
|
3810
3844
|
*/
|
3811
3845
|
interface OnRobotBuiltEntityEvent extends EventData {
|
3812
3846
|
/**
|
@@ -3832,11 +3866,11 @@ declare module "factorio:runtime" {
|
|
3832
3866
|
/**
|
3833
3867
|
* Tick the event was generated.
|
3834
3868
|
*/
|
3835
|
-
readonly tick:
|
3869
|
+
readonly tick: uint32
|
3836
3870
|
}
|
3837
3871
|
/**
|
3838
3872
|
* Called after a robot builds tiles.
|
3839
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3873
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_robot_built_tile Online documentation}
|
3840
3874
|
*/
|
3841
3875
|
interface OnRobotBuiltTileEvent extends EventData {
|
3842
3876
|
/**
|
@@ -3874,11 +3908,11 @@ declare module "factorio:runtime" {
|
|
3874
3908
|
/**
|
3875
3909
|
* Tick the event was generated.
|
3876
3910
|
*/
|
3877
|
-
readonly tick:
|
3911
|
+
readonly tick: uint32
|
3878
3912
|
}
|
3879
3913
|
/**
|
3880
3914
|
* Called directly after a robot explodes cliffs.
|
3881
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3915
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_robot_exploded_cliff Online documentation}
|
3882
3916
|
*/
|
3883
3917
|
interface OnRobotExplodedCliffEvent extends EventData {
|
3884
3918
|
readonly robot: LuaEntity
|
@@ -3897,11 +3931,11 @@ declare module "factorio:runtime" {
|
|
3897
3931
|
/**
|
3898
3932
|
* Tick the event was generated.
|
3899
3933
|
*/
|
3900
|
-
readonly tick:
|
3934
|
+
readonly tick: uint32
|
3901
3935
|
}
|
3902
3936
|
/**
|
3903
3937
|
* Called when a robot mines an entity.
|
3904
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3938
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_robot_mined Online documentation}
|
3905
3939
|
*/
|
3906
3940
|
interface OnRobotMinedEvent extends EventData {
|
3907
3941
|
/**
|
@@ -3919,7 +3953,7 @@ declare module "factorio:runtime" {
|
|
3919
3953
|
/**
|
3920
3954
|
* Tick the event was generated.
|
3921
3955
|
*/
|
3922
|
-
readonly tick:
|
3956
|
+
readonly tick: uint32
|
3923
3957
|
}
|
3924
3958
|
/**
|
3925
3959
|
* Called after the results of an entity being mined are collected just before the entity is destroyed.
|
@@ -3929,7 +3963,7 @@ declare module "factorio:runtime" {
|
|
3929
3963
|
* 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.
|
3930
3964
|
*
|
3931
3965
|
* Event filter: [LuaRobotMinedEntityEventFilter](LuaRobotMinedEntityEventFilter]
|
3932
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3966
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_robot_mined_entity Online documentation}
|
3933
3967
|
*/
|
3934
3968
|
interface OnRobotMinedEntityEvent extends EventData {
|
3935
3969
|
/**
|
@@ -3951,11 +3985,11 @@ declare module "factorio:runtime" {
|
|
3951
3985
|
/**
|
3952
3986
|
* Tick the event was generated.
|
3953
3987
|
*/
|
3954
|
-
readonly tick:
|
3988
|
+
readonly tick: uint32
|
3955
3989
|
}
|
3956
3990
|
/**
|
3957
3991
|
* Called after a robot mines tiles.
|
3958
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3992
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_robot_mined_tile Online documentation}
|
3959
3993
|
*/
|
3960
3994
|
interface OnRobotMinedTileEvent extends EventData {
|
3961
3995
|
/**
|
@@ -3977,13 +4011,13 @@ declare module "factorio:runtime" {
|
|
3977
4011
|
/**
|
3978
4012
|
* Tick the event was generated.
|
3979
4013
|
*/
|
3980
|
-
readonly tick:
|
4014
|
+
readonly tick: uint32
|
3981
4015
|
}
|
3982
4016
|
/**
|
3983
4017
|
* Called before a robot mines an entity.
|
3984
4018
|
*
|
3985
4019
|
* Event filter: [LuaPreRobotMinedEntityEventFilter](LuaPreRobotMinedEntityEventFilter]
|
3986
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4020
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_robot_pre_mined Online documentation}
|
3987
4021
|
*/
|
3988
4022
|
interface OnRobotPreMinedEvent extends EventData {
|
3989
4023
|
/**
|
@@ -4001,11 +4035,11 @@ declare module "factorio:runtime" {
|
|
4001
4035
|
/**
|
4002
4036
|
* Tick the event was generated.
|
4003
4037
|
*/
|
4004
|
-
readonly tick:
|
4038
|
+
readonly tick: uint32
|
4005
4039
|
}
|
4006
4040
|
/**
|
4007
4041
|
* Called when a rocket silo is ordered to be launched.
|
4008
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4042
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_rocket_launch_ordered Online documentation}
|
4009
4043
|
*/
|
4010
4044
|
interface OnRocketLaunchOrderedEvent extends EventData {
|
4011
4045
|
readonly rocket: LuaEntity
|
@@ -4021,11 +4055,11 @@ declare module "factorio:runtime" {
|
|
4021
4055
|
/**
|
4022
4056
|
* Tick the event was generated.
|
4023
4057
|
*/
|
4024
|
-
readonly tick:
|
4058
|
+
readonly tick: uint32
|
4025
4059
|
}
|
4026
4060
|
/**
|
4027
4061
|
* Called when a rocket finishes ascending. (Triggers listening for finished rocket launch past 2.0 have been moved to 'on_cargo_pod_finished_ascending' as rocket and cargo pod are two separate entities)
|
4028
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4062
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_rocket_launched Online documentation}
|
4029
4063
|
*/
|
4030
4064
|
interface OnRocketLaunchedEvent extends EventData {
|
4031
4065
|
readonly rocket: LuaEntity
|
@@ -4037,11 +4071,11 @@ declare module "factorio:runtime" {
|
|
4037
4071
|
/**
|
4038
4072
|
* Tick the event was generated.
|
4039
4073
|
*/
|
4040
|
-
readonly tick:
|
4074
|
+
readonly tick: uint32
|
4041
4075
|
}
|
4042
4076
|
/**
|
4043
4077
|
* Called when a runtime mod setting is changed by a player.
|
4044
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4078
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_runtime_mod_setting_changed Online documentation}
|
4045
4079
|
*/
|
4046
4080
|
interface OnRuntimeModSettingChangedEvent extends EventData {
|
4047
4081
|
/**
|
@@ -4060,11 +4094,11 @@ declare module "factorio:runtime" {
|
|
4060
4094
|
/**
|
4061
4095
|
* Tick the event was generated.
|
4062
4096
|
*/
|
4063
|
-
readonly tick:
|
4097
|
+
readonly tick: uint32
|
4064
4098
|
}
|
4065
4099
|
/**
|
4066
4100
|
* Called just after a script inventory is resized.
|
4067
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4101
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_script_inventory_resized Online documentation}
|
4068
4102
|
*/
|
4069
4103
|
interface OnScriptInventoryResizedEvent extends EventData {
|
4070
4104
|
/**
|
@@ -4079,11 +4113,11 @@ declare module "factorio:runtime" {
|
|
4079
4113
|
/**
|
4080
4114
|
* The old inventory size.
|
4081
4115
|
*/
|
4082
|
-
readonly old_size:
|
4116
|
+
readonly old_size: uint32
|
4083
4117
|
/**
|
4084
4118
|
* The new inventory size.
|
4085
4119
|
*/
|
4086
|
-
readonly new_size:
|
4120
|
+
readonly new_size: uint32
|
4087
4121
|
/**
|
4088
4122
|
* Any items which didn't fit into the new inventory size.
|
4089
4123
|
*/
|
@@ -4095,11 +4129,11 @@ declare module "factorio:runtime" {
|
|
4095
4129
|
/**
|
4096
4130
|
* Tick the event was generated.
|
4097
4131
|
*/
|
4098
|
-
readonly tick:
|
4132
|
+
readonly tick: uint32
|
4099
4133
|
}
|
4100
4134
|
/**
|
4101
4135
|
* Called when a {@link LuaSurface#request_path LuaSurface::request_path} call completes.
|
4102
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4136
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_script_path_request_finished Online documentation}
|
4103
4137
|
*/
|
4104
4138
|
interface OnScriptPathRequestFinishedEvent extends EventData {
|
4105
4139
|
/**
|
@@ -4109,7 +4143,7 @@ declare module "factorio:runtime" {
|
|
4109
4143
|
/**
|
4110
4144
|
* Handle to associate the callback with a particular call to {@link LuaSurface#request_path LuaSurface::request_path}.
|
4111
4145
|
*/
|
4112
|
-
readonly id:
|
4146
|
+
readonly id: uint32
|
4113
4147
|
/**
|
4114
4148
|
* Indicates that the pathfinder failed because it is too busy, and that you can retry later.
|
4115
4149
|
*/
|
@@ -4121,11 +4155,11 @@ declare module "factorio:runtime" {
|
|
4121
4155
|
/**
|
4122
4156
|
* Tick the event was generated.
|
4123
4157
|
*/
|
4124
|
-
readonly tick:
|
4158
|
+
readonly tick: uint32
|
4125
4159
|
}
|
4126
4160
|
/**
|
4127
4161
|
* Called when a script trigger effect is triggered.
|
4128
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4162
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_script_trigger_effect Online documentation}
|
4129
4163
|
*/
|
4130
4164
|
interface OnScriptTriggerEffectEvent extends EventData {
|
4131
4165
|
/**
|
@@ -4152,13 +4186,13 @@ declare module "factorio:runtime" {
|
|
4152
4186
|
/**
|
4153
4187
|
* Tick the event was generated.
|
4154
4188
|
*/
|
4155
|
-
readonly tick:
|
4189
|
+
readonly tick: uint32
|
4156
4190
|
}
|
4157
4191
|
/**
|
4158
4192
|
* Called when an entity of type `radar` finishes scanning a sector.
|
4159
4193
|
*
|
4160
4194
|
* Event filter: [LuaSectorScannedEventFilter](LuaSectorScannedEventFilter]
|
4161
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4195
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_sector_scanned Online documentation}
|
4162
4196
|
*/
|
4163
4197
|
interface OnSectorScannedEvent extends EventData {
|
4164
4198
|
/**
|
@@ -4180,11 +4214,11 @@ declare module "factorio:runtime" {
|
|
4180
4214
|
/**
|
4181
4215
|
* Tick the event was generated.
|
4182
4216
|
*/
|
4183
|
-
readonly tick:
|
4217
|
+
readonly tick: uint32
|
4184
4218
|
}
|
4185
4219
|
/**
|
4186
4220
|
* Called when an individual segment of a SegmentedUnit is created.
|
4187
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4221
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_segment_entity_created Online documentation}
|
4188
4222
|
*/
|
4189
4223
|
interface OnSegmentEntityCreatedEvent extends EventData {
|
4190
4224
|
readonly entity: LuaEntity
|
@@ -4195,13 +4229,13 @@ declare module "factorio:runtime" {
|
|
4195
4229
|
/**
|
4196
4230
|
* Tick the event was generated.
|
4197
4231
|
*/
|
4198
|
-
readonly tick:
|
4232
|
+
readonly tick: uint32
|
4199
4233
|
}
|
4200
4234
|
/**
|
4201
4235
|
* Called when a segmented unit is created for any reason.
|
4202
4236
|
*
|
4203
4237
|
* Event filter: [LuaSegmentedUnitCreatedEventFilter](LuaSegmentedUnitCreatedEventFilter]
|
4204
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4238
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_segmented_unit_created Online documentation}
|
4205
4239
|
*/
|
4206
4240
|
interface OnSegmentedUnitCreatedEvent extends EventData {
|
4207
4241
|
/**
|
@@ -4223,13 +4257,13 @@ declare module "factorio:runtime" {
|
|
4223
4257
|
/**
|
4224
4258
|
* Tick the event was generated.
|
4225
4259
|
*/
|
4226
|
-
readonly tick:
|
4260
|
+
readonly tick: uint32
|
4227
4261
|
}
|
4228
4262
|
/**
|
4229
4263
|
* Called when a segmented unit is damaged. This is not called when a segmented unit's health is set directly by another mod.
|
4230
4264
|
*
|
4231
4265
|
* Event filter: [LuaSegmentedUnitDamagedEventFilter](LuaSegmentedUnitDamagedEventFilter]
|
4232
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4266
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_segmented_unit_damaged Online documentation}
|
4233
4267
|
*/
|
4234
4268
|
interface OnSegmentedUnitDamagedEvent extends EventData {
|
4235
4269
|
readonly segmented_unit: LuaSegmentedUnit
|
@@ -4265,13 +4299,13 @@ declare module "factorio:runtime" {
|
|
4265
4299
|
/**
|
4266
4300
|
* Tick the event was generated.
|
4267
4301
|
*/
|
4268
|
-
readonly tick:
|
4302
|
+
readonly tick: uint32
|
4269
4303
|
}
|
4270
4304
|
/**
|
4271
4305
|
* Called when a segmented unit dies.
|
4272
4306
|
*
|
4273
4307
|
* Event filter: [LuaSegmentedUnitDiedEventFilter](LuaSegmentedUnitDiedEventFilter]
|
4274
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4308
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_segmented_unit_died Online documentation}
|
4275
4309
|
*/
|
4276
4310
|
interface OnSegmentedUnitDiedEvent extends EventData {
|
4277
4311
|
/**
|
@@ -4297,11 +4331,11 @@ declare module "factorio:runtime" {
|
|
4297
4331
|
/**
|
4298
4332
|
* Tick the event was generated.
|
4299
4333
|
*/
|
4300
|
-
readonly tick:
|
4334
|
+
readonly tick: uint32
|
4301
4335
|
}
|
4302
4336
|
/**
|
4303
4337
|
* Called after the selected entity changes for a given player.
|
4304
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4338
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_selected_entity_changed Online documentation}
|
4305
4339
|
*/
|
4306
4340
|
interface OnSelectedEntityChangedEvent extends EventData {
|
4307
4341
|
/**
|
@@ -4319,11 +4353,11 @@ declare module "factorio:runtime" {
|
|
4319
4353
|
/**
|
4320
4354
|
* Tick the event was generated.
|
4321
4355
|
*/
|
4322
|
-
readonly tick:
|
4356
|
+
readonly tick: uint32
|
4323
4357
|
}
|
4324
4358
|
/**
|
4325
4359
|
* Called when {@link LuaGameScript#is_multiplayer LuaGameScript::is_multiplayer} changes to false. May also be raised when it was already false but a game was loaded from a save file without hosting.
|
4326
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4360
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_singleplayer_init Online documentation}
|
4327
4361
|
*/
|
4328
4362
|
interface OnSingleplayerInitEvent extends EventData {
|
4329
4363
|
/**
|
@@ -4333,13 +4367,13 @@ declare module "factorio:runtime" {
|
|
4333
4367
|
/**
|
4334
4368
|
* Tick the event was generated.
|
4335
4369
|
*/
|
4336
|
-
readonly tick:
|
4370
|
+
readonly tick: uint32
|
4337
4371
|
}
|
4338
4372
|
/**
|
4339
4373
|
* Called when a space platform builds an entity.
|
4340
4374
|
*
|
4341
4375
|
* Event filter: [LuaPlatformBuiltEntityEventFilter](LuaPlatformBuiltEntityEventFilter]
|
4342
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4376
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_space_platform_built_entity Online documentation}
|
4343
4377
|
*/
|
4344
4378
|
interface OnSpacePlatformBuiltEntityEvent extends EventData {
|
4345
4379
|
/**
|
@@ -4365,11 +4399,11 @@ declare module "factorio:runtime" {
|
|
4365
4399
|
/**
|
4366
4400
|
* Tick the event was generated.
|
4367
4401
|
*/
|
4368
|
-
readonly tick:
|
4402
|
+
readonly tick: uint32
|
4369
4403
|
}
|
4370
4404
|
/**
|
4371
4405
|
* Called after a space platform builds tiles.
|
4372
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4406
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_space_platform_built_tile Online documentation}
|
4373
4407
|
*/
|
4374
4408
|
interface OnSpacePlatformBuiltTileEvent extends EventData {
|
4375
4409
|
/**
|
@@ -4407,11 +4441,11 @@ declare module "factorio:runtime" {
|
|
4407
4441
|
/**
|
4408
4442
|
* Tick the event was generated.
|
4409
4443
|
*/
|
4410
|
-
readonly tick:
|
4444
|
+
readonly tick: uint32
|
4411
4445
|
}
|
4412
4446
|
/**
|
4413
4447
|
* Called when a space platform changes state
|
4414
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4448
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_space_platform_changed_state Online documentation}
|
4415
4449
|
*/
|
4416
4450
|
interface OnSpacePlatformChangedStateEvent extends EventData {
|
4417
4451
|
readonly platform: LuaSpacePlatform
|
@@ -4423,7 +4457,7 @@ declare module "factorio:runtime" {
|
|
4423
4457
|
/**
|
4424
4458
|
* Tick the event was generated.
|
4425
4459
|
*/
|
4426
|
-
readonly tick:
|
4460
|
+
readonly tick: uint32
|
4427
4461
|
}
|
4428
4462
|
/**
|
4429
4463
|
* Called after the results of an entity being mined are collected just before the entity is destroyed.
|
@@ -4433,7 +4467,7 @@ declare module "factorio:runtime" {
|
|
4433
4467
|
* 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.
|
4434
4468
|
*
|
4435
4469
|
* Event filter: [LuaPlatformMinedEntityEventFilter](LuaPlatformMinedEntityEventFilter]
|
4436
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4470
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_space_platform_mined_entity Online documentation}
|
4437
4471
|
*/
|
4438
4472
|
interface OnSpacePlatformMinedEntityEvent extends EventData {
|
4439
4473
|
/**
|
@@ -4455,11 +4489,11 @@ declare module "factorio:runtime" {
|
|
4455
4489
|
/**
|
4456
4490
|
* Tick the event was generated.
|
4457
4491
|
*/
|
4458
|
-
readonly tick:
|
4492
|
+
readonly tick: uint32
|
4459
4493
|
}
|
4460
4494
|
/**
|
4461
4495
|
* Called when a platform mines an entity.
|
4462
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4496
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_space_platform_mined_item Online documentation}
|
4463
4497
|
*/
|
4464
4498
|
interface OnSpacePlatformMinedItemEvent extends EventData {
|
4465
4499
|
/**
|
@@ -4477,11 +4511,11 @@ declare module "factorio:runtime" {
|
|
4477
4511
|
/**
|
4478
4512
|
* Tick the event was generated.
|
4479
4513
|
*/
|
4480
|
-
readonly tick:
|
4514
|
+
readonly tick: uint32
|
4481
4515
|
}
|
4482
4516
|
/**
|
4483
4517
|
* Called after a platform mines tiles.
|
4484
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4518
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_space_platform_mined_tile Online documentation}
|
4485
4519
|
*/
|
4486
4520
|
interface OnSpacePlatformMinedTileEvent extends EventData {
|
4487
4521
|
/**
|
@@ -4503,13 +4537,13 @@ declare module "factorio:runtime" {
|
|
4503
4537
|
/**
|
4504
4538
|
* Tick the event was generated.
|
4505
4539
|
*/
|
4506
|
-
readonly tick:
|
4540
|
+
readonly tick: uint32
|
4507
4541
|
}
|
4508
4542
|
/**
|
4509
4543
|
* Called before a platform mines an entity.
|
4510
4544
|
*
|
4511
4545
|
* Event filter: [LuaPrePlatformMinedEntityEventFilter](LuaPrePlatformMinedEntityEventFilter]
|
4512
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4546
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_space_platform_pre_mined Online documentation}
|
4513
4547
|
*/
|
4514
4548
|
interface OnSpacePlatformPreMinedEvent extends EventData {
|
4515
4549
|
/**
|
@@ -4527,11 +4561,11 @@ declare module "factorio:runtime" {
|
|
4527
4561
|
/**
|
4528
4562
|
* Tick the event was generated.
|
4529
4563
|
*/
|
4530
|
-
readonly tick:
|
4564
|
+
readonly tick: uint32
|
4531
4565
|
}
|
4532
4566
|
/**
|
4533
4567
|
* Called when a spider finishes moving to its autopilot position.
|
4534
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4568
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_spider_command_completed Online documentation}
|
4535
4569
|
*/
|
4536
4570
|
interface OnSpiderCommandCompletedEvent extends EventData {
|
4537
4571
|
/**
|
@@ -4545,11 +4579,11 @@ declare module "factorio:runtime" {
|
|
4545
4579
|
/**
|
4546
4580
|
* Tick the event was generated.
|
4547
4581
|
*/
|
4548
|
-
readonly tick:
|
4582
|
+
readonly tick: uint32
|
4549
4583
|
}
|
4550
4584
|
/**
|
4551
4585
|
* 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.
|
4552
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4586
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_string_translated Online documentation}
|
4553
4587
|
*/
|
4554
4588
|
interface OnStringTranslatedEvent extends EventData {
|
4555
4589
|
/**
|
@@ -4567,7 +4601,7 @@ declare module "factorio:runtime" {
|
|
4567
4601
|
/**
|
4568
4602
|
* The unique id for this translation request.
|
4569
4603
|
*/
|
4570
|
-
readonly id:
|
4604
|
+
readonly id: uint32
|
4571
4605
|
/**
|
4572
4606
|
* Whether the requested localised string was valid and could be translated.
|
4573
4607
|
*/
|
@@ -4579,11 +4613,11 @@ declare module "factorio:runtime" {
|
|
4579
4613
|
/**
|
4580
4614
|
* Tick the event was generated.
|
4581
4615
|
*/
|
4582
|
-
readonly tick:
|
4616
|
+
readonly tick: uint32
|
4583
4617
|
}
|
4584
4618
|
/**
|
4585
4619
|
* Called just after a surface is cleared (all entities removed and all chunks deleted).
|
4586
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4620
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_surface_cleared Online documentation}
|
4587
4621
|
*/
|
4588
4622
|
interface OnSurfaceClearedEvent extends EventData {
|
4589
4623
|
readonly surface_index: SurfaceIndex
|
@@ -4594,13 +4628,13 @@ declare module "factorio:runtime" {
|
|
4594
4628
|
/**
|
4595
4629
|
* Tick the event was generated.
|
4596
4630
|
*/
|
4597
|
-
readonly tick:
|
4631
|
+
readonly tick: uint32
|
4598
4632
|
}
|
4599
4633
|
/**
|
4600
4634
|
* Called when a surface is created.
|
4601
4635
|
*
|
4602
4636
|
* This is not called when the default surface is created as it will always exist.
|
4603
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4637
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_surface_created Online documentation}
|
4604
4638
|
*/
|
4605
4639
|
interface OnSurfaceCreatedEvent extends EventData {
|
4606
4640
|
readonly surface_index: SurfaceIndex
|
@@ -4611,11 +4645,11 @@ declare module "factorio:runtime" {
|
|
4611
4645
|
/**
|
4612
4646
|
* Tick the event was generated.
|
4613
4647
|
*/
|
4614
|
-
readonly tick:
|
4648
|
+
readonly tick: uint32
|
4615
4649
|
}
|
4616
4650
|
/**
|
4617
4651
|
* Called after a surface is deleted.
|
4618
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4652
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_surface_deleted Online documentation}
|
4619
4653
|
*/
|
4620
4654
|
interface OnSurfaceDeletedEvent extends EventData {
|
4621
4655
|
readonly surface_index: SurfaceIndex
|
@@ -4626,11 +4660,11 @@ declare module "factorio:runtime" {
|
|
4626
4660
|
/**
|
4627
4661
|
* Tick the event was generated.
|
4628
4662
|
*/
|
4629
|
-
readonly tick:
|
4663
|
+
readonly tick: uint32
|
4630
4664
|
}
|
4631
4665
|
/**
|
4632
4666
|
* Called after a surface is imported via the map editor.
|
4633
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4667
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_surface_imported Online documentation}
|
4634
4668
|
*/
|
4635
4669
|
interface OnSurfaceImportedEvent extends EventData {
|
4636
4670
|
readonly surface_index: SurfaceIndex
|
@@ -4645,11 +4679,11 @@ declare module "factorio:runtime" {
|
|
4645
4679
|
/**
|
4646
4680
|
* Tick the event was generated.
|
4647
4681
|
*/
|
4648
|
-
readonly tick:
|
4682
|
+
readonly tick: uint32
|
4649
4683
|
}
|
4650
4684
|
/**
|
4651
4685
|
* Called when a surface is renamed.
|
4652
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4686
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_surface_renamed Online documentation}
|
4653
4687
|
*/
|
4654
4688
|
interface OnSurfaceRenamedEvent extends EventData {
|
4655
4689
|
readonly surface_index: SurfaceIndex
|
@@ -4662,11 +4696,11 @@ declare module "factorio:runtime" {
|
|
4662
4696
|
/**
|
4663
4697
|
* Tick the event was generated.
|
4664
4698
|
*/
|
4665
|
-
readonly tick:
|
4699
|
+
readonly tick: uint32
|
4666
4700
|
}
|
4667
4701
|
/**
|
4668
4702
|
* Called when {@link LuaForce#reset_technology_effects LuaForce::reset_technology_effects} is finished.
|
4669
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4703
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_technology_effects_reset Online documentation}
|
4670
4704
|
*/
|
4671
4705
|
interface OnTechnologyEffectsResetEvent extends EventData {
|
4672
4706
|
readonly force: LuaForce
|
@@ -4677,11 +4711,11 @@ declare module "factorio:runtime" {
|
|
4677
4711
|
/**
|
4678
4712
|
* Tick the event was generated.
|
4679
4713
|
*/
|
4680
|
-
readonly tick:
|
4714
|
+
readonly tick: uint32
|
4681
4715
|
}
|
4682
4716
|
/**
|
4683
4717
|
* Called when a territory is created for any reason.
|
4684
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4718
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_territory_created Online documentation}
|
4685
4719
|
*/
|
4686
4720
|
interface OnTerritoryCreatedEvent extends EventData {
|
4687
4721
|
/**
|
@@ -4699,11 +4733,11 @@ declare module "factorio:runtime" {
|
|
4699
4733
|
/**
|
4700
4734
|
* Tick the event was generated.
|
4701
4735
|
*/
|
4702
|
-
readonly tick:
|
4736
|
+
readonly tick: uint32
|
4703
4737
|
}
|
4704
4738
|
/**
|
4705
4739
|
* Called when a territory is destroyed from a surface.
|
4706
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4740
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_territory_destroyed Online documentation}
|
4707
4741
|
*/
|
4708
4742
|
interface OnTerritoryDestroyedEvent extends EventData {
|
4709
4743
|
/**
|
@@ -4717,11 +4751,11 @@ declare module "factorio:runtime" {
|
|
4717
4751
|
/**
|
4718
4752
|
* Tick the event was generated.
|
4719
4753
|
*/
|
4720
|
-
readonly tick:
|
4754
|
+
readonly tick: uint32
|
4721
4755
|
}
|
4722
4756
|
/**
|
4723
4757
|
* It is fired once every tick. Since this event is fired every tick, its handler shouldn't include performance heavy code.
|
4724
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4758
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_tick Online documentation}
|
4725
4759
|
*/
|
4726
4760
|
interface OnTickEvent extends EventData {
|
4727
4761
|
/**
|
@@ -4731,7 +4765,7 @@ declare module "factorio:runtime" {
|
|
4731
4765
|
/**
|
4732
4766
|
* Tick the event was generated.
|
4733
4767
|
*/
|
4734
|
-
readonly tick:
|
4768
|
+
readonly tick: uint32
|
4735
4769
|
}
|
4736
4770
|
/**
|
4737
4771
|
* Called after the results of an entity being mined are collected just before the entity is destroyed.
|
@@ -4739,7 +4773,7 @@ declare module "factorio:runtime" {
|
|
4739
4773
|
* After this event any items in the buffer will be transferred into the tower as if they came from mining the entity.
|
4740
4774
|
*
|
4741
4775
|
* 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.
|
4742
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4776
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_tower_mined_plant Online documentation}
|
4743
4777
|
*/
|
4744
4778
|
interface OnTowerMinedPlantEvent extends EventData {
|
4745
4779
|
/**
|
@@ -4761,11 +4795,11 @@ declare module "factorio:runtime" {
|
|
4761
4795
|
/**
|
4762
4796
|
* Tick the event was generated.
|
4763
4797
|
*/
|
4764
|
-
readonly tick:
|
4798
|
+
readonly tick: uint32
|
4765
4799
|
}
|
4766
4800
|
/**
|
4767
4801
|
* Called before an agricultural tower plants a seed.
|
4768
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4802
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_tower_planted_seed Online documentation}
|
4769
4803
|
*/
|
4770
4804
|
interface OnTowerPlantedSeedEvent extends EventData {
|
4771
4805
|
/**
|
@@ -4787,11 +4821,11 @@ declare module "factorio:runtime" {
|
|
4787
4821
|
/**
|
4788
4822
|
* Tick the event was generated.
|
4789
4823
|
*/
|
4790
|
-
readonly tick:
|
4824
|
+
readonly tick: uint32
|
4791
4825
|
}
|
4792
4826
|
/**
|
4793
4827
|
* Called before an agricultural tower mines a plant.
|
4794
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4828
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_tower_pre_mined_plant Online documentation}
|
4795
4829
|
*/
|
4796
4830
|
interface OnTowerPreMinedPlantEvent extends EventData {
|
4797
4831
|
/**
|
@@ -4809,11 +4843,11 @@ declare module "factorio:runtime" {
|
|
4809
4843
|
/**
|
4810
4844
|
* Tick the event was generated.
|
4811
4845
|
*/
|
4812
|
-
readonly tick:
|
4846
|
+
readonly tick: uint32
|
4813
4847
|
}
|
4814
4848
|
/**
|
4815
4849
|
* Called when a train changes state (started to stopped and vice versa)
|
4816
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4850
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_train_changed_state Online documentation}
|
4817
4851
|
*/
|
4818
4852
|
interface OnTrainChangedStateEvent extends EventData {
|
4819
4853
|
readonly train: LuaTrain
|
@@ -4825,22 +4859,22 @@ declare module "factorio:runtime" {
|
|
4825
4859
|
/**
|
4826
4860
|
* Tick the event was generated.
|
4827
4861
|
*/
|
4828
|
-
readonly tick:
|
4862
|
+
readonly tick: uint32
|
4829
4863
|
}
|
4830
4864
|
/**
|
4831
4865
|
* Called when a new train is created either through disconnecting/connecting an existing one or building a new one.
|
4832
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4866
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_train_created Online documentation}
|
4833
4867
|
*/
|
4834
4868
|
interface OnTrainCreatedEvent extends EventData {
|
4835
4869
|
readonly train: LuaTrain
|
4836
4870
|
/**
|
4837
4871
|
* The first old train id when splitting/merging trains.
|
4838
4872
|
*/
|
4839
|
-
readonly old_train_id_1?:
|
4873
|
+
readonly old_train_id_1?: uint32
|
4840
4874
|
/**
|
4841
4875
|
* The second old train id when splitting/merging trains.
|
4842
4876
|
*/
|
4843
|
-
readonly old_train_id_2?:
|
4877
|
+
readonly old_train_id_2?: uint32
|
4844
4878
|
/**
|
4845
4879
|
* Identifier of the event
|
4846
4880
|
*/
|
@@ -4848,11 +4882,11 @@ declare module "factorio:runtime" {
|
|
4848
4882
|
/**
|
4849
4883
|
* Tick the event was generated.
|
4850
4884
|
*/
|
4851
|
-
readonly tick:
|
4885
|
+
readonly tick: uint32
|
4852
4886
|
}
|
4853
4887
|
/**
|
4854
4888
|
* Called when a trains schedule is changed either by the player or through script.
|
4855
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4889
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_train_schedule_changed Online documentation}
|
4856
4890
|
*/
|
4857
4891
|
interface OnTrainScheduleChangedEvent extends EventData {
|
4858
4892
|
readonly train: LuaTrain
|
@@ -4867,11 +4901,11 @@ declare module "factorio:runtime" {
|
|
4867
4901
|
/**
|
4868
4902
|
* Tick the event was generated.
|
4869
4903
|
*/
|
4870
|
-
readonly tick:
|
4904
|
+
readonly tick: uint32
|
4871
4905
|
}
|
4872
4906
|
/**
|
4873
4907
|
* Called when an entity with a trigger prototype (such as capsules) create an entity AND that trigger prototype defined `trigger_created_entity=true`.
|
4874
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4908
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_trigger_created_entity Online documentation}
|
4875
4909
|
*/
|
4876
4910
|
interface OnTriggerCreatedEntityEvent extends EventData {
|
4877
4911
|
readonly entity: LuaEntity
|
@@ -4883,11 +4917,11 @@ declare module "factorio:runtime" {
|
|
4883
4917
|
/**
|
4884
4918
|
* Tick the event was generated.
|
4885
4919
|
*/
|
4886
|
-
readonly tick:
|
4920
|
+
readonly tick: uint32
|
4887
4921
|
}
|
4888
4922
|
/**
|
4889
4923
|
* Called when an entity with a trigger prototype (such as capsules) fire an artillery projectile AND that trigger prototype defined `trigger_fired_artillery=true`.
|
4890
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4924
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_trigger_fired_artillery Online documentation}
|
4891
4925
|
*/
|
4892
4926
|
interface OnTriggerFiredArtilleryEvent extends EventData {
|
4893
4927
|
readonly entity: LuaEntity
|
@@ -4899,11 +4933,11 @@ declare module "factorio:runtime" {
|
|
4899
4933
|
/**
|
4900
4934
|
* Tick the event was generated.
|
4901
4935
|
*/
|
4902
|
-
readonly tick:
|
4936
|
+
readonly tick: uint32
|
4903
4937
|
}
|
4904
4938
|
/**
|
4905
4939
|
* Called when new packets are processed by {@link LuaHelpers#recv_udp LuaHelpers::recv_udp}.
|
4906
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4940
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_udp_packet_received Online documentation}
|
4907
4941
|
*/
|
4908
4942
|
interface OnUdpPacketReceivedEvent extends EventData {
|
4909
4943
|
/**
|
@@ -4925,11 +4959,11 @@ declare module "factorio:runtime" {
|
|
4925
4959
|
/**
|
4926
4960
|
* Tick the event was generated.
|
4927
4961
|
*/
|
4928
|
-
readonly tick:
|
4962
|
+
readonly tick: uint32
|
4929
4963
|
}
|
4930
4964
|
/**
|
4931
4965
|
* Called when the player triggers "undo".
|
4932
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4966
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_undo_applied Online documentation}
|
4933
4967
|
*/
|
4934
4968
|
interface OnUndoAppliedEvent extends EventData {
|
4935
4969
|
/**
|
@@ -4947,11 +4981,11 @@ declare module "factorio:runtime" {
|
|
4947
4981
|
/**
|
4948
4982
|
* Tick the event was generated.
|
4949
4983
|
*/
|
4950
|
-
readonly tick:
|
4984
|
+
readonly tick: uint32
|
4951
4985
|
}
|
4952
4986
|
/**
|
4953
4987
|
* Called when a unit is added to a unit group.
|
4954
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
4988
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_unit_added_to_group Online documentation}
|
4955
4989
|
*/
|
4956
4990
|
interface OnUnitAddedToGroupEvent extends EventData {
|
4957
4991
|
readonly unit: LuaEntity
|
@@ -4963,11 +4997,11 @@ declare module "factorio:runtime" {
|
|
4963
4997
|
/**
|
4964
4998
|
* Tick the event was generated.
|
4965
4999
|
*/
|
4966
|
-
readonly tick:
|
5000
|
+
readonly tick: uint32
|
4967
5001
|
}
|
4968
5002
|
/**
|
4969
5003
|
* Called when a new unit group is created, before any members are added to it.
|
4970
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5004
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_unit_group_created Online documentation}
|
4971
5005
|
*/
|
4972
5006
|
interface OnUnitGroupCreatedEvent extends EventData {
|
4973
5007
|
readonly group: LuaCommandable
|
@@ -4978,11 +5012,11 @@ declare module "factorio:runtime" {
|
|
4978
5012
|
/**
|
4979
5013
|
* Tick the event was generated.
|
4980
5014
|
*/
|
4981
|
-
readonly tick:
|
5015
|
+
readonly tick: uint32
|
4982
5016
|
}
|
4983
5017
|
/**
|
4984
5018
|
* Called when a unit group finishes gathering and starts executing its command.
|
4985
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5019
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_unit_group_finished_gathering Online documentation}
|
4986
5020
|
*/
|
4987
5021
|
interface OnUnitGroupFinishedGatheringEvent extends EventData {
|
4988
5022
|
readonly group: LuaCommandable
|
@@ -4993,11 +5027,11 @@ declare module "factorio:runtime" {
|
|
4993
5027
|
/**
|
4994
5028
|
* Tick the event was generated.
|
4995
5029
|
*/
|
4996
|
-
readonly tick:
|
5030
|
+
readonly tick: uint32
|
4997
5031
|
}
|
4998
5032
|
/**
|
4999
5033
|
* Called when a unit is removed from a unit group.
|
5000
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5034
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_unit_removed_from_group Online documentation}
|
5001
5035
|
*/
|
5002
5036
|
interface OnUnitRemovedFromGroupEvent extends EventData {
|
5003
5037
|
readonly unit: LuaEntity
|
@@ -5009,11 +5043,11 @@ declare module "factorio:runtime" {
|
|
5009
5043
|
/**
|
5010
5044
|
* Tick the event was generated.
|
5011
5045
|
*/
|
5012
|
-
readonly tick:
|
5046
|
+
readonly tick: uint32
|
5013
5047
|
}
|
5014
5048
|
/**
|
5015
5049
|
* Called when a worker (construction or logistic) robot expires through a lack of energy.
|
5016
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5050
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#on_worker_robot_expired Online documentation}
|
5017
5051
|
*/
|
5018
5052
|
interface OnWorkerRobotExpiredEvent extends EventData {
|
5019
5053
|
readonly robot: LuaEntity
|
@@ -5024,13 +5058,13 @@ declare module "factorio:runtime" {
|
|
5024
5058
|
/**
|
5025
5059
|
* Tick the event was generated.
|
5026
5060
|
*/
|
5027
|
-
readonly tick:
|
5061
|
+
readonly tick: uint32
|
5028
5062
|
}
|
5029
5063
|
/**
|
5030
5064
|
* 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}.
|
5031
5065
|
*
|
5032
5066
|
* Event filter: [LuaScriptRaisedBuiltEventFilter](LuaScriptRaisedBuiltEventFilter]
|
5033
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5067
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#script_raised_built Online documentation}
|
5034
5068
|
*/
|
5035
5069
|
interface ScriptRaisedBuiltEvent extends EventData {
|
5036
5070
|
/**
|
@@ -5044,13 +5078,13 @@ declare module "factorio:runtime" {
|
|
5044
5078
|
/**
|
5045
5079
|
* Tick the event was generated.
|
5046
5080
|
*/
|
5047
|
-
readonly tick:
|
5081
|
+
readonly tick: uint32
|
5048
5082
|
}
|
5049
5083
|
/**
|
5050
5084
|
* 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}.
|
5051
5085
|
*
|
5052
5086
|
* Event filter: [LuaScriptRaisedDestroyEventFilter](LuaScriptRaisedDestroyEventFilter]
|
5053
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5087
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#script_raised_destroy Online documentation}
|
5054
5088
|
*/
|
5055
5089
|
interface ScriptRaisedDestroyEvent extends EventData {
|
5056
5090
|
/**
|
@@ -5064,13 +5098,13 @@ declare module "factorio:runtime" {
|
|
5064
5098
|
/**
|
5065
5099
|
* Tick the event was generated.
|
5066
5100
|
*/
|
5067
|
-
readonly tick:
|
5101
|
+
readonly tick: uint32
|
5068
5102
|
}
|
5069
5103
|
/**
|
5070
5104
|
* A static event that mods can use to tell other mods they destroyed a segmented unit by script. This event is only raised if a mod does so with {@link LuaBootstrap#raise_event LuaBootstrap::raise_event}, or {@link LuaBootstrap#raise_script_destroy_segmented_unit LuaBootstrap::raise_script_destroy_segmented_unit}, or when `raise_destroy` is passed to {@link LuaSegmentedUnit#destroy LuaSegmentedUnit::destroy}.
|
5071
5105
|
*
|
5072
5106
|
* Event filter: [LuaScriptRaisedDestroySegmentedUnitEventFilter](LuaScriptRaisedDestroySegmentedUnitEventFilter]
|
5073
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5107
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#script_raised_destroy_segmented_unit Online documentation}
|
5074
5108
|
*/
|
5075
5109
|
interface ScriptRaisedDestroySegmentedUnitEvent extends EventData {
|
5076
5110
|
/**
|
@@ -5084,13 +5118,13 @@ declare module "factorio:runtime" {
|
|
5084
5118
|
/**
|
5085
5119
|
* Tick the event was generated.
|
5086
5120
|
*/
|
5087
|
-
readonly tick:
|
5121
|
+
readonly tick: uint32
|
5088
5122
|
}
|
5089
5123
|
/**
|
5090
5124
|
* 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}.
|
5091
5125
|
*
|
5092
5126
|
* Event filter: [LuaScriptRaisedReviveEventFilter](LuaScriptRaisedReviveEventFilter]
|
5093
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5127
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#script_raised_revive Online documentation}
|
5094
5128
|
*/
|
5095
5129
|
interface ScriptRaisedReviveEvent extends EventData {
|
5096
5130
|
/**
|
@@ -5108,11 +5142,11 @@ declare module "factorio:runtime" {
|
|
5108
5142
|
/**
|
5109
5143
|
* Tick the event was generated.
|
5110
5144
|
*/
|
5111
|
-
readonly tick:
|
5145
|
+
readonly tick: uint32
|
5112
5146
|
}
|
5113
5147
|
/**
|
5114
5148
|
* 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}.
|
5115
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5149
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#script_raised_set_tiles Online documentation}
|
5116
5150
|
*/
|
5117
5151
|
interface ScriptRaisedSetTilesEvent extends EventData {
|
5118
5152
|
/**
|
@@ -5130,13 +5164,13 @@ declare module "factorio:runtime" {
|
|
5130
5164
|
/**
|
5131
5165
|
* Tick the event was generated.
|
5132
5166
|
*/
|
5133
|
-
readonly tick:
|
5167
|
+
readonly tick: uint32
|
5134
5168
|
}
|
5135
5169
|
/**
|
5136
5170
|
* 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}.
|
5137
5171
|
*
|
5138
5172
|
* Event filter: [LuaScriptRaisedTeleportedEventFilter](LuaScriptRaisedTeleportedEventFilter]
|
5139
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
5173
|
+
* @see {@link https://lua-api.factorio.com/2.0.68/events.html#script_raised_teleported Online documentation}
|
5140
5174
|
*/
|
5141
5175
|
interface ScriptRaisedTeleportedEvent extends EventData {
|
5142
5176
|
/**
|
@@ -5158,6 +5192,6 @@ declare module "factorio:runtime" {
|
|
5158
5192
|
/**
|
5159
5193
|
* Tick the event was generated.
|
5160
5194
|
*/
|
5161
|
-
readonly tick:
|
5195
|
+
readonly tick: uint32
|
5162
5196
|
}
|
5163
5197
|
}
|