typed-factorio 3.30.1 → 3.32.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 +2407 -2224
- package/prototype/generated/types.d.ts +2304 -2166
- package/runtime/generated/classes.d.ts +5586 -4957
- package/runtime/generated/concepts.d.ts +753 -687
- package/runtime/generated/defines.d.ts +234 -215
- package/runtime/generated/events.d.ts +511 -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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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.70/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,30 @@ declare module "factorio:runtime" {
|
|
|
2353
2387
|
/**
|
|
2354
2388
|
* Tick the event was generated.
|
|
2355
2389
|
*/
|
|
2356
|
-
readonly tick:
|
|
2390
|
+
readonly tick: uint32
|
|
2391
|
+
}
|
|
2392
|
+
/**
|
|
2393
|
+
* Called when a player drops a single item into an entity.
|
|
2394
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_dropped_item_into_entity Online documentation}
|
|
2395
|
+
*/
|
|
2396
|
+
interface OnPlayerDroppedItemIntoEntityEvent extends EventData {
|
|
2397
|
+
readonly player_index: PlayerIndex
|
|
2398
|
+
/**
|
|
2399
|
+
* The entity the item was dropped into.
|
|
2400
|
+
*/
|
|
2401
|
+
readonly entity: LuaEntity
|
|
2402
|
+
/**
|
|
2403
|
+
* Identifier of the event
|
|
2404
|
+
*/
|
|
2405
|
+
readonly name: typeof defines.events.on_player_dropped_item_into_entity
|
|
2406
|
+
/**
|
|
2407
|
+
* Tick the event was generated.
|
|
2408
|
+
*/
|
|
2409
|
+
readonly tick: uint32
|
|
2357
2410
|
}
|
|
2358
2411
|
/**
|
|
2359
2412
|
* Called when a player fast-transfers something to or from an entity.
|
|
2360
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2413
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_fast_transferred Online documentation}
|
|
2361
2414
|
*/
|
|
2362
2415
|
interface OnPlayerFastTransferredEvent extends EventData {
|
|
2363
2416
|
/**
|
|
@@ -2383,13 +2436,13 @@ declare module "factorio:runtime" {
|
|
|
2383
2436
|
/**
|
|
2384
2437
|
* Tick the event was generated.
|
|
2385
2438
|
*/
|
|
2386
|
-
readonly tick:
|
|
2439
|
+
readonly tick: uint32
|
|
2387
2440
|
}
|
|
2388
2441
|
/**
|
|
2389
2442
|
* 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
2443
|
*
|
|
2391
2444
|
* This event reflects a change in the {@link LuaEntity#mirroring LuaEntity::mirroring} property.
|
|
2392
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2445
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_flipped_entity Online documentation}
|
|
2393
2446
|
*/
|
|
2394
2447
|
interface OnPlayerFlippedEntityEvent extends EventData {
|
|
2395
2448
|
/**
|
|
@@ -2408,11 +2461,11 @@ declare module "factorio:runtime" {
|
|
|
2408
2461
|
/**
|
|
2409
2462
|
* Tick the event was generated.
|
|
2410
2463
|
*/
|
|
2411
|
-
readonly tick:
|
|
2464
|
+
readonly tick: uint32
|
|
2412
2465
|
}
|
|
2413
2466
|
/**
|
|
2414
2467
|
* Called after player flushed fluid
|
|
2415
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2468
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_flushed_fluid Online documentation}
|
|
2416
2469
|
*/
|
|
2417
2470
|
interface OnPlayerFlushedFluidEvent extends EventData {
|
|
2418
2471
|
/**
|
|
@@ -2442,11 +2495,11 @@ declare module "factorio:runtime" {
|
|
|
2442
2495
|
/**
|
|
2443
2496
|
* Tick the event was generated.
|
|
2444
2497
|
*/
|
|
2445
|
-
readonly tick:
|
|
2498
|
+
readonly tick: uint32
|
|
2446
2499
|
}
|
|
2447
2500
|
/**
|
|
2448
2501
|
* Called after a players gun inventory changed in some way.
|
|
2449
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2502
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_gun_inventory_changed Online documentation}
|
|
2450
2503
|
*/
|
|
2451
2504
|
interface OnPlayerGunInventoryChangedEvent extends EventData {
|
|
2452
2505
|
readonly player_index: PlayerIndex
|
|
@@ -2457,11 +2510,11 @@ declare module "factorio:runtime" {
|
|
|
2457
2510
|
/**
|
|
2458
2511
|
* Tick the event was generated.
|
|
2459
2512
|
*/
|
|
2460
|
-
readonly tick:
|
|
2513
|
+
readonly tick: uint32
|
|
2461
2514
|
}
|
|
2462
2515
|
/**
|
|
2463
2516
|
* 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.
|
|
2517
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_input_method_changed Online documentation}
|
|
2465
2518
|
*/
|
|
2466
2519
|
interface OnPlayerInputMethodChangedEvent extends EventData {
|
|
2467
2520
|
/**
|
|
@@ -2475,11 +2528,11 @@ declare module "factorio:runtime" {
|
|
|
2475
2528
|
/**
|
|
2476
2529
|
* Tick the event was generated.
|
|
2477
2530
|
*/
|
|
2478
|
-
readonly tick:
|
|
2531
|
+
readonly tick: uint32
|
|
2479
2532
|
}
|
|
2480
2533
|
/**
|
|
2481
2534
|
* 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.
|
|
2535
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_joined_game Online documentation}
|
|
2483
2536
|
*/
|
|
2484
2537
|
interface OnPlayerJoinedGameEvent extends EventData {
|
|
2485
2538
|
readonly player_index: PlayerIndex
|
|
@@ -2490,11 +2543,11 @@ declare module "factorio:runtime" {
|
|
|
2490
2543
|
/**
|
|
2491
2544
|
* Tick the event was generated.
|
|
2492
2545
|
*/
|
|
2493
|
-
readonly tick:
|
|
2546
|
+
readonly tick: uint32
|
|
2494
2547
|
}
|
|
2495
2548
|
/**
|
|
2496
2549
|
* Called when a player is kicked.
|
|
2497
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2550
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_kicked Online documentation}
|
|
2498
2551
|
*/
|
|
2499
2552
|
interface OnPlayerKickedEvent extends EventData {
|
|
2500
2553
|
/**
|
|
@@ -2516,11 +2569,11 @@ declare module "factorio:runtime" {
|
|
|
2516
2569
|
/**
|
|
2517
2570
|
* Tick the event was generated.
|
|
2518
2571
|
*/
|
|
2519
|
-
readonly tick:
|
|
2572
|
+
readonly tick: uint32
|
|
2520
2573
|
}
|
|
2521
2574
|
/**
|
|
2522
2575
|
* 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.
|
|
2576
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_left_game Online documentation}
|
|
2524
2577
|
*/
|
|
2525
2578
|
interface OnPlayerLeftGameEvent extends EventData {
|
|
2526
2579
|
readonly player_index: PlayerIndex
|
|
@@ -2532,11 +2585,11 @@ declare module "factorio:runtime" {
|
|
|
2532
2585
|
/**
|
|
2533
2586
|
* Tick the event was generated.
|
|
2534
2587
|
*/
|
|
2535
|
-
readonly tick:
|
|
2588
|
+
readonly tick: uint32
|
|
2536
2589
|
}
|
|
2537
2590
|
/**
|
|
2538
2591
|
* Called when a player's active locale changes. See {@link LuaPlayer#locale LuaPlayer::locale}.
|
|
2539
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2592
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_locale_changed Online documentation}
|
|
2540
2593
|
*/
|
|
2541
2594
|
interface OnPlayerLocaleChangedEvent extends EventData {
|
|
2542
2595
|
/**
|
|
@@ -2554,11 +2607,11 @@ declare module "factorio:runtime" {
|
|
|
2554
2607
|
/**
|
|
2555
2608
|
* Tick the event was generated.
|
|
2556
2609
|
*/
|
|
2557
|
-
readonly tick:
|
|
2610
|
+
readonly tick: uint32
|
|
2558
2611
|
}
|
|
2559
2612
|
/**
|
|
2560
2613
|
* Called after a players main inventory changed in some way.
|
|
2561
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2614
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_main_inventory_changed Online documentation}
|
|
2562
2615
|
*/
|
|
2563
2616
|
interface OnPlayerMainInventoryChangedEvent extends EventData {
|
|
2564
2617
|
readonly player_index: PlayerIndex
|
|
@@ -2569,7 +2622,7 @@ declare module "factorio:runtime" {
|
|
|
2569
2622
|
/**
|
|
2570
2623
|
* Tick the event was generated.
|
|
2571
2624
|
*/
|
|
2572
|
-
readonly tick:
|
|
2625
|
+
readonly tick: uint32
|
|
2573
2626
|
}
|
|
2574
2627
|
/**
|
|
2575
2628
|
* Called after the results of an entity being mined are collected just before the entity is destroyed.
|
|
@@ -2579,7 +2632,7 @@ declare module "factorio:runtime" {
|
|
|
2579
2632
|
* 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
2633
|
*
|
|
2581
2634
|
* Event filter: [LuaPlayerMinedEntityEventFilter](LuaPlayerMinedEntityEventFilter]
|
|
2582
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2635
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_mined_entity Online documentation}
|
|
2583
2636
|
*/
|
|
2584
2637
|
interface OnPlayerMinedEntityEvent extends EventData {
|
|
2585
2638
|
/**
|
|
@@ -2601,11 +2654,11 @@ declare module "factorio:runtime" {
|
|
|
2601
2654
|
/**
|
|
2602
2655
|
* Tick the event was generated.
|
|
2603
2656
|
*/
|
|
2604
|
-
readonly tick:
|
|
2657
|
+
readonly tick: uint32
|
|
2605
2658
|
}
|
|
2606
2659
|
/**
|
|
2607
2660
|
* Called when the player mines something.
|
|
2608
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2661
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_mined_item Online documentation}
|
|
2609
2662
|
*/
|
|
2610
2663
|
interface OnPlayerMinedItemEvent extends EventData {
|
|
2611
2664
|
/**
|
|
@@ -2620,11 +2673,11 @@ declare module "factorio:runtime" {
|
|
|
2620
2673
|
/**
|
|
2621
2674
|
* Tick the event was generated.
|
|
2622
2675
|
*/
|
|
2623
|
-
readonly tick:
|
|
2676
|
+
readonly tick: uint32
|
|
2624
2677
|
}
|
|
2625
2678
|
/**
|
|
2626
2679
|
* Called after a player mines tiles.
|
|
2627
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2680
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_mined_tile Online documentation}
|
|
2628
2681
|
*/
|
|
2629
2682
|
interface OnPlayerMinedTileEvent extends EventData {
|
|
2630
2683
|
readonly player_index: PlayerIndex
|
|
@@ -2643,11 +2696,11 @@ declare module "factorio:runtime" {
|
|
|
2643
2696
|
/**
|
|
2644
2697
|
* Tick the event was generated.
|
|
2645
2698
|
*/
|
|
2646
|
-
readonly tick:
|
|
2699
|
+
readonly tick: uint32
|
|
2647
2700
|
}
|
|
2648
2701
|
/**
|
|
2649
2702
|
* Called when a player is muted.
|
|
2650
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2703
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_muted Online documentation}
|
|
2651
2704
|
*/
|
|
2652
2705
|
interface OnPlayerMutedEvent extends EventData {
|
|
2653
2706
|
/**
|
|
@@ -2661,11 +2714,11 @@ declare module "factorio:runtime" {
|
|
|
2661
2714
|
/**
|
|
2662
2715
|
* Tick the event was generated.
|
|
2663
2716
|
*/
|
|
2664
|
-
readonly tick:
|
|
2717
|
+
readonly tick: uint32
|
|
2665
2718
|
}
|
|
2666
2719
|
/**
|
|
2667
2720
|
* Called when a player invokes the "smart pipette" over an entity.
|
|
2668
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2721
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_pipette Online documentation}
|
|
2669
2722
|
*/
|
|
2670
2723
|
interface OnPlayerPipetteEvent extends EventData {
|
|
2671
2724
|
/**
|
|
@@ -2691,11 +2744,11 @@ declare module "factorio:runtime" {
|
|
|
2691
2744
|
/**
|
|
2692
2745
|
* Tick the event was generated.
|
|
2693
2746
|
*/
|
|
2694
|
-
readonly tick:
|
|
2747
|
+
readonly tick: uint32
|
|
2695
2748
|
}
|
|
2696
2749
|
/**
|
|
2697
2750
|
* Called after the player puts equipment in an equipment grid
|
|
2698
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2751
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_placed_equipment Online documentation}
|
|
2699
2752
|
*/
|
|
2700
2753
|
interface OnPlayerPlacedEquipmentEvent extends EventData {
|
|
2701
2754
|
readonly player_index: PlayerIndex
|
|
@@ -2714,11 +2767,11 @@ declare module "factorio:runtime" {
|
|
|
2714
2767
|
/**
|
|
2715
2768
|
* Tick the event was generated.
|
|
2716
2769
|
*/
|
|
2717
|
-
readonly tick:
|
|
2770
|
+
readonly tick: uint32
|
|
2718
2771
|
}
|
|
2719
2772
|
/**
|
|
2720
2773
|
* Called when a player is promoted.
|
|
2721
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2774
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_promoted Online documentation}
|
|
2722
2775
|
*/
|
|
2723
2776
|
interface OnPlayerPromotedEvent extends EventData {
|
|
2724
2777
|
/**
|
|
@@ -2732,11 +2785,11 @@ declare module "factorio:runtime" {
|
|
|
2732
2785
|
/**
|
|
2733
2786
|
* Tick the event was generated.
|
|
2734
2787
|
*/
|
|
2735
|
-
readonly tick:
|
|
2788
|
+
readonly tick: uint32
|
|
2736
2789
|
}
|
|
2737
2790
|
/**
|
|
2738
2791
|
* 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.
|
|
2792
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_removed Online documentation}
|
|
2740
2793
|
*/
|
|
2741
2794
|
interface OnPlayerRemovedEvent extends EventData {
|
|
2742
2795
|
/**
|
|
@@ -2750,11 +2803,11 @@ declare module "factorio:runtime" {
|
|
|
2750
2803
|
/**
|
|
2751
2804
|
* Tick the event was generated.
|
|
2752
2805
|
*/
|
|
2753
|
-
readonly tick:
|
|
2806
|
+
readonly tick: uint32
|
|
2754
2807
|
}
|
|
2755
2808
|
/**
|
|
2756
2809
|
* Called after the player removes equipment from an equipment grid
|
|
2757
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2810
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_removed_equipment Online documentation}
|
|
2758
2811
|
*/
|
|
2759
2812
|
interface OnPlayerRemovedEquipmentEvent extends EventData {
|
|
2760
2813
|
readonly player_index: PlayerIndex
|
|
@@ -2773,7 +2826,7 @@ declare module "factorio:runtime" {
|
|
|
2773
2826
|
/**
|
|
2774
2827
|
* The count of equipment removed.
|
|
2775
2828
|
*/
|
|
2776
|
-
readonly count:
|
|
2829
|
+
readonly count: uint32
|
|
2777
2830
|
/**
|
|
2778
2831
|
* Identifier of the event
|
|
2779
2832
|
*/
|
|
@@ -2781,13 +2834,13 @@ declare module "factorio:runtime" {
|
|
|
2781
2834
|
/**
|
|
2782
2835
|
* Tick the event was generated.
|
|
2783
2836
|
*/
|
|
2784
|
-
readonly tick:
|
|
2837
|
+
readonly tick: uint32
|
|
2785
2838
|
}
|
|
2786
2839
|
/**
|
|
2787
2840
|
* Called when a player repairs an entity.
|
|
2788
2841
|
*
|
|
2789
2842
|
* Event filter: [LuaPlayerRepairedEntityEventFilter](LuaPlayerRepairedEntityEventFilter]
|
|
2790
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2843
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_repaired_entity Online documentation}
|
|
2791
2844
|
*/
|
|
2792
2845
|
interface OnPlayerRepairedEntityEvent extends EventData {
|
|
2793
2846
|
readonly player_index: PlayerIndex
|
|
@@ -2799,11 +2852,11 @@ declare module "factorio:runtime" {
|
|
|
2799
2852
|
/**
|
|
2800
2853
|
* Tick the event was generated.
|
|
2801
2854
|
*/
|
|
2802
|
-
readonly tick:
|
|
2855
|
+
readonly tick: uint32
|
|
2803
2856
|
}
|
|
2804
2857
|
/**
|
|
2805
2858
|
* Called after a player respawns.
|
|
2806
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2859
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_respawned Online documentation}
|
|
2807
2860
|
*/
|
|
2808
2861
|
interface OnPlayerRespawnedEvent extends EventData {
|
|
2809
2862
|
readonly player_index: PlayerIndex
|
|
@@ -2818,11 +2871,11 @@ declare module "factorio:runtime" {
|
|
|
2818
2871
|
/**
|
|
2819
2872
|
* Tick the event was generated.
|
|
2820
2873
|
*/
|
|
2821
|
-
readonly tick:
|
|
2874
|
+
readonly tick: uint32
|
|
2822
2875
|
}
|
|
2823
2876
|
/**
|
|
2824
2877
|
* Called after a player reverse-selects an area with a selection-tool item.
|
|
2825
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2878
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_reverse_selected_area Online documentation}
|
|
2826
2879
|
*/
|
|
2827
2880
|
interface OnPlayerReverseSelectedAreaEvent extends EventData {
|
|
2828
2881
|
/**
|
|
@@ -2856,13 +2909,13 @@ declare module "factorio:runtime" {
|
|
|
2856
2909
|
/**
|
|
2857
2910
|
* Tick the event was generated.
|
|
2858
2911
|
*/
|
|
2859
|
-
readonly tick:
|
|
2912
|
+
readonly tick: uint32
|
|
2860
2913
|
}
|
|
2861
2914
|
/**
|
|
2862
2915
|
* 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
2916
|
*
|
|
2864
2917
|
* 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.
|
|
2918
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_rotated_entity Online documentation}
|
|
2866
2919
|
*/
|
|
2867
2920
|
interface OnPlayerRotatedEntityEvent extends EventData {
|
|
2868
2921
|
/**
|
|
@@ -2881,11 +2934,11 @@ declare module "factorio:runtime" {
|
|
|
2881
2934
|
/**
|
|
2882
2935
|
* Tick the event was generated.
|
|
2883
2936
|
*/
|
|
2884
|
-
readonly tick:
|
|
2937
|
+
readonly tick: uint32
|
|
2885
2938
|
}
|
|
2886
2939
|
/**
|
|
2887
2940
|
* Called after a player selects an area with a selection-tool item.
|
|
2888
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2941
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_selected_area Online documentation}
|
|
2889
2942
|
*/
|
|
2890
2943
|
interface OnPlayerSelectedAreaEvent extends EventData {
|
|
2891
2944
|
/**
|
|
@@ -2923,11 +2976,11 @@ declare module "factorio:runtime" {
|
|
|
2923
2976
|
/**
|
|
2924
2977
|
* Tick the event was generated.
|
|
2925
2978
|
*/
|
|
2926
|
-
readonly tick:
|
|
2979
|
+
readonly tick: uint32
|
|
2927
2980
|
}
|
|
2928
2981
|
/**
|
|
2929
2982
|
* 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.
|
|
2983
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_set_quick_bar_slot Online documentation}
|
|
2931
2984
|
*/
|
|
2932
2985
|
interface OnPlayerSetQuickBarSlotEvent extends EventData {
|
|
2933
2986
|
readonly player_index: PlayerIndex
|
|
@@ -2938,11 +2991,11 @@ declare module "factorio:runtime" {
|
|
|
2938
2991
|
/**
|
|
2939
2992
|
* Tick the event was generated.
|
|
2940
2993
|
*/
|
|
2941
|
-
readonly tick:
|
|
2994
|
+
readonly tick: uint32
|
|
2942
2995
|
}
|
|
2943
2996
|
/**
|
|
2944
2997
|
* Called when a player selects an area with a blueprint.
|
|
2945
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
2998
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_setup_blueprint Online documentation}
|
|
2946
2999
|
*/
|
|
2947
3000
|
interface OnPlayerSetupBlueprintEvent extends EventData {
|
|
2948
3001
|
/**
|
|
@@ -2980,7 +3033,7 @@ declare module "factorio:runtime" {
|
|
|
2980
3033
|
/**
|
|
2981
3034
|
* The blueprint entity index to source entity mapping. Note: if any mod changes the blueprint this will be incorrect.
|
|
2982
3035
|
*/
|
|
2983
|
-
readonly mapping: LuaLazyLoadedValue<Record<
|
|
3036
|
+
readonly mapping: LuaLazyLoadedValue<Record<uint32, LuaEntity>>
|
|
2984
3037
|
/**
|
|
2985
3038
|
* Identifier of the event
|
|
2986
3039
|
*/
|
|
@@ -2988,11 +3041,11 @@ declare module "factorio:runtime" {
|
|
|
2988
3041
|
/**
|
|
2989
3042
|
* Tick the event was generated.
|
|
2990
3043
|
*/
|
|
2991
|
-
readonly tick:
|
|
3044
|
+
readonly tick: uint32
|
|
2992
3045
|
}
|
|
2993
3046
|
/**
|
|
2994
3047
|
* Called when a player toggles alt mode, also known as "show entity info".
|
|
2995
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3048
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_toggled_alt_mode Online documentation}
|
|
2996
3049
|
*/
|
|
2997
3050
|
interface OnPlayerToggledAltModeEvent extends EventData {
|
|
2998
3051
|
readonly player_index: PlayerIndex
|
|
@@ -3007,11 +3060,11 @@ declare module "factorio:runtime" {
|
|
|
3007
3060
|
/**
|
|
3008
3061
|
* Tick the event was generated.
|
|
3009
3062
|
*/
|
|
3010
|
-
readonly tick:
|
|
3063
|
+
readonly tick: uint32
|
|
3011
3064
|
}
|
|
3012
3065
|
/**
|
|
3013
3066
|
* Called when a player toggles the map editor on or off.
|
|
3014
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3067
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_toggled_map_editor Online documentation}
|
|
3015
3068
|
*/
|
|
3016
3069
|
interface OnPlayerToggledMapEditorEvent extends EventData {
|
|
3017
3070
|
readonly player_index: PlayerIndex
|
|
@@ -3022,11 +3075,11 @@ declare module "factorio:runtime" {
|
|
|
3022
3075
|
/**
|
|
3023
3076
|
* Tick the event was generated.
|
|
3024
3077
|
*/
|
|
3025
|
-
readonly tick:
|
|
3078
|
+
readonly tick: uint32
|
|
3026
3079
|
}
|
|
3027
3080
|
/**
|
|
3028
3081
|
* Called after a players trash inventory changed in some way.
|
|
3029
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3082
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_trash_inventory_changed Online documentation}
|
|
3030
3083
|
*/
|
|
3031
3084
|
interface OnPlayerTrashInventoryChangedEvent extends EventData {
|
|
3032
3085
|
readonly player_index: PlayerIndex
|
|
@@ -3037,11 +3090,11 @@ declare module "factorio:runtime" {
|
|
|
3037
3090
|
/**
|
|
3038
3091
|
* Tick the event was generated.
|
|
3039
3092
|
*/
|
|
3040
|
-
readonly tick:
|
|
3093
|
+
readonly tick: uint32
|
|
3041
3094
|
}
|
|
3042
3095
|
/**
|
|
3043
3096
|
* Called when a player is un-banned.
|
|
3044
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3097
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_unbanned Online documentation}
|
|
3045
3098
|
*/
|
|
3046
3099
|
interface OnPlayerUnbannedEvent extends EventData {
|
|
3047
3100
|
/**
|
|
@@ -3067,11 +3120,11 @@ declare module "factorio:runtime" {
|
|
|
3067
3120
|
/**
|
|
3068
3121
|
* Tick the event was generated.
|
|
3069
3122
|
*/
|
|
3070
|
-
readonly tick:
|
|
3123
|
+
readonly tick: uint32
|
|
3071
3124
|
}
|
|
3072
3125
|
/**
|
|
3073
3126
|
* Called when a player is unmuted.
|
|
3074
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3127
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_unmuted Online documentation}
|
|
3075
3128
|
*/
|
|
3076
3129
|
interface OnPlayerUnmutedEvent extends EventData {
|
|
3077
3130
|
/**
|
|
@@ -3085,11 +3138,11 @@ declare module "factorio:runtime" {
|
|
|
3085
3138
|
/**
|
|
3086
3139
|
* Tick the event was generated.
|
|
3087
3140
|
*/
|
|
3088
|
-
readonly tick:
|
|
3141
|
+
readonly tick: uint32
|
|
3089
3142
|
}
|
|
3090
3143
|
/**
|
|
3091
3144
|
* Called when a player uses a capsule that results in some game action.
|
|
3092
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3145
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_used_capsule Online documentation}
|
|
3093
3146
|
*/
|
|
3094
3147
|
interface OnPlayerUsedCapsuleEvent extends EventData {
|
|
3095
3148
|
/**
|
|
@@ -3115,11 +3168,11 @@ declare module "factorio:runtime" {
|
|
|
3115
3168
|
/**
|
|
3116
3169
|
* Tick the event was generated.
|
|
3117
3170
|
*/
|
|
3118
|
-
readonly tick:
|
|
3171
|
+
readonly tick: uint32
|
|
3119
3172
|
}
|
|
3120
3173
|
/**
|
|
3121
3174
|
* 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.
|
|
3175
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_player_used_spidertron_remote Online documentation}
|
|
3123
3176
|
*/
|
|
3124
3177
|
interface OnPlayerUsedSpidertronRemoteEvent extends EventData {
|
|
3125
3178
|
/**
|
|
@@ -3137,13 +3190,13 @@ declare module "factorio:runtime" {
|
|
|
3137
3190
|
/**
|
|
3138
3191
|
* Tick the event was generated.
|
|
3139
3192
|
*/
|
|
3140
|
-
readonly tick:
|
|
3193
|
+
readonly tick: uint32
|
|
3141
3194
|
}
|
|
3142
3195
|
/**
|
|
3143
3196
|
* Called after an entity dies.
|
|
3144
3197
|
*
|
|
3145
3198
|
* Event filter: [LuaPostEntityDiedEventFilter](LuaPostEntityDiedEventFilter]
|
|
3146
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3199
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_post_entity_died Online documentation}
|
|
3147
3200
|
*/
|
|
3148
3201
|
interface OnPostEntityDiedEvent extends EventData {
|
|
3149
3202
|
/**
|
|
@@ -3189,13 +3242,13 @@ declare module "factorio:runtime" {
|
|
|
3189
3242
|
/**
|
|
3190
3243
|
* Tick the event was generated.
|
|
3191
3244
|
*/
|
|
3192
|
-
readonly tick:
|
|
3245
|
+
readonly tick: uint32
|
|
3193
3246
|
}
|
|
3194
3247
|
/**
|
|
3195
3248
|
* Called after a segmented unit dies.
|
|
3196
3249
|
*
|
|
3197
3250
|
* Event filter: [LuaPostSegmentedUnitDiedEventFilter](LuaPostSegmentedUnitDiedEventFilter]
|
|
3198
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3251
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_post_segmented_unit_died Online documentation}
|
|
3199
3252
|
*/
|
|
3200
3253
|
interface OnPostSegmentedUnitDiedEvent extends EventData {
|
|
3201
3254
|
/**
|
|
@@ -3233,11 +3286,11 @@ declare module "factorio:runtime" {
|
|
|
3233
3286
|
/**
|
|
3234
3287
|
* Tick the event was generated.
|
|
3235
3288
|
*/
|
|
3236
|
-
readonly tick:
|
|
3289
|
+
readonly tick: uint32
|
|
3237
3290
|
}
|
|
3238
3291
|
/**
|
|
3239
3292
|
* 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.
|
|
3293
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_build Online documentation}
|
|
3241
3294
|
*/
|
|
3242
3295
|
interface OnPreBuildEvent extends EventData {
|
|
3243
3296
|
/**
|
|
@@ -3279,11 +3332,11 @@ declare module "factorio:runtime" {
|
|
|
3279
3332
|
/**
|
|
3280
3333
|
* Tick the event was generated.
|
|
3281
3334
|
*/
|
|
3282
|
-
readonly tick:
|
|
3335
|
+
readonly tick: uint32
|
|
3283
3336
|
}
|
|
3284
3337
|
/**
|
|
3285
3338
|
* 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.
|
|
3339
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_chunk_deleted Online documentation}
|
|
3287
3340
|
*/
|
|
3288
3341
|
interface OnPreChunkDeletedEvent extends EventData {
|
|
3289
3342
|
readonly surface_index: SurfaceIndex
|
|
@@ -3298,11 +3351,11 @@ declare module "factorio:runtime" {
|
|
|
3298
3351
|
/**
|
|
3299
3352
|
* Tick the event was generated.
|
|
3300
3353
|
*/
|
|
3301
|
-
readonly tick:
|
|
3354
|
+
readonly tick: uint32
|
|
3302
3355
|
}
|
|
3303
3356
|
/**
|
|
3304
3357
|
* Called before entity copy-paste is done.
|
|
3305
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3358
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_entity_settings_pasted Online documentation}
|
|
3306
3359
|
*/
|
|
3307
3360
|
interface OnPreEntitySettingsPastedEvent extends EventData {
|
|
3308
3361
|
readonly player_index: PlayerIndex
|
|
@@ -3321,7 +3374,7 @@ declare module "factorio:runtime" {
|
|
|
3321
3374
|
/**
|
|
3322
3375
|
* Tick the event was generated.
|
|
3323
3376
|
*/
|
|
3324
|
-
readonly tick:
|
|
3377
|
+
readonly tick: uint32
|
|
3325
3378
|
}
|
|
3326
3379
|
/**
|
|
3327
3380
|
* Called before a ghost entity is destroyed as a result of being marked for deconstruction.
|
|
@@ -3329,7 +3382,7 @@ declare module "factorio:runtime" {
|
|
|
3329
3382
|
* Also called for item request proxies before they are destroyed as a result of being marked for deconstruction.
|
|
3330
3383
|
*
|
|
3331
3384
|
* Event filter: [LuaPreGhostDeconstructedEventFilter](LuaPreGhostDeconstructedEventFilter]
|
|
3332
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3385
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_ghost_deconstructed Online documentation}
|
|
3333
3386
|
*/
|
|
3334
3387
|
interface OnPreGhostDeconstructedEvent extends EventData {
|
|
3335
3388
|
/**
|
|
@@ -3344,13 +3397,13 @@ declare module "factorio:runtime" {
|
|
|
3344
3397
|
/**
|
|
3345
3398
|
* Tick the event was generated.
|
|
3346
3399
|
*/
|
|
3347
|
-
readonly tick:
|
|
3400
|
+
readonly tick: uint32
|
|
3348
3401
|
}
|
|
3349
3402
|
/**
|
|
3350
3403
|
* Called before a ghost entity is upgraded.
|
|
3351
3404
|
*
|
|
3352
3405
|
* Event filter: [LuaPreGhostUpgradedEventFilter](LuaPreGhostUpgradedEventFilter]
|
|
3353
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3406
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_ghost_upgraded Online documentation}
|
|
3354
3407
|
*/
|
|
3355
3408
|
interface OnPreGhostUpgradedEvent extends EventData {
|
|
3356
3409
|
/**
|
|
@@ -3367,11 +3420,11 @@ declare module "factorio:runtime" {
|
|
|
3367
3420
|
/**
|
|
3368
3421
|
* Tick the event was generated.
|
|
3369
3422
|
*/
|
|
3370
|
-
readonly tick:
|
|
3423
|
+
readonly tick: uint32
|
|
3371
3424
|
}
|
|
3372
3425
|
/**
|
|
3373
3426
|
* Called directly before a permission group is deleted.
|
|
3374
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3427
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_permission_group_deleted Online documentation}
|
|
3375
3428
|
*/
|
|
3376
3429
|
interface OnPrePermissionGroupDeletedEvent extends EventData {
|
|
3377
3430
|
/**
|
|
@@ -3389,11 +3442,11 @@ declare module "factorio:runtime" {
|
|
|
3389
3442
|
/**
|
|
3390
3443
|
* Tick the event was generated.
|
|
3391
3444
|
*/
|
|
3392
|
-
readonly tick:
|
|
3445
|
+
readonly tick: uint32
|
|
3393
3446
|
}
|
|
3394
3447
|
/**
|
|
3395
3448
|
* Called directly before a permission string is imported.
|
|
3396
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3449
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_permission_string_imported Online documentation}
|
|
3397
3450
|
*/
|
|
3398
3451
|
interface OnPrePermissionStringImportedEvent extends EventData {
|
|
3399
3452
|
/**
|
|
@@ -3407,11 +3460,11 @@ declare module "factorio:runtime" {
|
|
|
3407
3460
|
/**
|
|
3408
3461
|
* Tick the event was generated.
|
|
3409
3462
|
*/
|
|
3410
|
-
readonly tick:
|
|
3463
|
+
readonly tick: uint32
|
|
3411
3464
|
}
|
|
3412
3465
|
/**
|
|
3413
3466
|
* Called when a player queues something to be crafted.
|
|
3414
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3467
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_player_crafted_item Online documentation}
|
|
3415
3468
|
*/
|
|
3416
3469
|
interface OnPrePlayerCraftedItemEvent extends EventData {
|
|
3417
3470
|
/**
|
|
@@ -3429,7 +3482,7 @@ declare module "factorio:runtime" {
|
|
|
3429
3482
|
/**
|
|
3430
3483
|
* The number of times the recipe is being queued.
|
|
3431
3484
|
*/
|
|
3432
|
-
readonly queued_count:
|
|
3485
|
+
readonly queued_count: uint32
|
|
3433
3486
|
/**
|
|
3434
3487
|
* Identifier of the event
|
|
3435
3488
|
*/
|
|
@@ -3437,11 +3490,11 @@ declare module "factorio:runtime" {
|
|
|
3437
3490
|
/**
|
|
3438
3491
|
* Tick the event was generated.
|
|
3439
3492
|
*/
|
|
3440
|
-
readonly tick:
|
|
3493
|
+
readonly tick: uint32
|
|
3441
3494
|
}
|
|
3442
3495
|
/**
|
|
3443
3496
|
* Called before a players dies.
|
|
3444
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3497
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_player_died Online documentation}
|
|
3445
3498
|
*/
|
|
3446
3499
|
interface OnPrePlayerDiedEvent extends EventData {
|
|
3447
3500
|
readonly player_index: PlayerIndex
|
|
@@ -3453,11 +3506,11 @@ declare module "factorio:runtime" {
|
|
|
3453
3506
|
/**
|
|
3454
3507
|
* Tick the event was generated.
|
|
3455
3508
|
*/
|
|
3456
|
-
readonly tick:
|
|
3509
|
+
readonly tick: uint32
|
|
3457
3510
|
}
|
|
3458
3511
|
/**
|
|
3459
3512
|
* Called before a player leaves the game.
|
|
3460
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3513
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_player_left_game Online documentation}
|
|
3461
3514
|
*/
|
|
3462
3515
|
interface OnPrePlayerLeftGameEvent extends EventData {
|
|
3463
3516
|
readonly player_index: PlayerIndex
|
|
@@ -3469,13 +3522,13 @@ declare module "factorio:runtime" {
|
|
|
3469
3522
|
/**
|
|
3470
3523
|
* Tick the event was generated.
|
|
3471
3524
|
*/
|
|
3472
|
-
readonly tick:
|
|
3525
|
+
readonly tick: uint32
|
|
3473
3526
|
}
|
|
3474
3527
|
/**
|
|
3475
3528
|
* 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
3529
|
*
|
|
3477
3530
|
* Event filter: [LuaPrePlayerMinedEntityEventFilter](LuaPrePlayerMinedEntityEventFilter]
|
|
3478
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3531
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_player_mined_item Online documentation}
|
|
3479
3532
|
*/
|
|
3480
3533
|
interface OnPrePlayerMinedItemEvent extends EventData {
|
|
3481
3534
|
/**
|
|
@@ -3490,11 +3543,11 @@ declare module "factorio:runtime" {
|
|
|
3490
3543
|
/**
|
|
3491
3544
|
* Tick the event was generated.
|
|
3492
3545
|
*/
|
|
3493
|
-
readonly tick:
|
|
3546
|
+
readonly tick: uint32
|
|
3494
3547
|
}
|
|
3495
3548
|
/**
|
|
3496
3549
|
* 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.
|
|
3550
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_player_removed Online documentation}
|
|
3498
3551
|
*/
|
|
3499
3552
|
interface OnPrePlayerRemovedEvent extends EventData {
|
|
3500
3553
|
/**
|
|
@@ -3508,11 +3561,11 @@ declare module "factorio:runtime" {
|
|
|
3508
3561
|
/**
|
|
3509
3562
|
* Tick the event was generated.
|
|
3510
3563
|
*/
|
|
3511
|
-
readonly tick:
|
|
3564
|
+
readonly tick: uint32
|
|
3512
3565
|
}
|
|
3513
3566
|
/**
|
|
3514
3567
|
* Called before a player toggles the map editor on or off.
|
|
3515
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3568
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_player_toggled_map_editor Online documentation}
|
|
3516
3569
|
*/
|
|
3517
3570
|
interface OnPrePlayerToggledMapEditorEvent extends EventData {
|
|
3518
3571
|
readonly player_index: PlayerIndex
|
|
@@ -3523,11 +3576,11 @@ declare module "factorio:runtime" {
|
|
|
3523
3576
|
/**
|
|
3524
3577
|
* Tick the event was generated.
|
|
3525
3578
|
*/
|
|
3526
|
-
readonly tick:
|
|
3579
|
+
readonly tick: uint32
|
|
3527
3580
|
}
|
|
3528
3581
|
/**
|
|
3529
3582
|
* Called directly before a robot explodes cliffs.
|
|
3530
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3583
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_robot_exploded_cliff Online documentation}
|
|
3531
3584
|
*/
|
|
3532
3585
|
interface OnPreRobotExplodedCliffEvent extends EventData {
|
|
3533
3586
|
readonly robot: LuaEntity
|
|
@@ -3547,11 +3600,11 @@ declare module "factorio:runtime" {
|
|
|
3547
3600
|
/**
|
|
3548
3601
|
* Tick the event was generated.
|
|
3549
3602
|
*/
|
|
3550
|
-
readonly tick:
|
|
3603
|
+
readonly tick: uint32
|
|
3551
3604
|
}
|
|
3552
3605
|
/**
|
|
3553
3606
|
* Called just before the scenario finishes.
|
|
3554
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3607
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_scenario_finished Online documentation}
|
|
3555
3608
|
*/
|
|
3556
3609
|
interface OnPreScenarioFinishedEvent extends EventData {
|
|
3557
3610
|
/**
|
|
@@ -3565,11 +3618,11 @@ declare module "factorio:runtime" {
|
|
|
3565
3618
|
/**
|
|
3566
3619
|
* Tick the event was generated.
|
|
3567
3620
|
*/
|
|
3568
|
-
readonly tick:
|
|
3621
|
+
readonly tick: uint32
|
|
3569
3622
|
}
|
|
3570
3623
|
/**
|
|
3571
3624
|
* Called just before a script inventory is resized.
|
|
3572
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3625
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_script_inventory_resized Online documentation}
|
|
3573
3626
|
*/
|
|
3574
3627
|
interface OnPreScriptInventoryResizedEvent extends EventData {
|
|
3575
3628
|
/**
|
|
@@ -3584,11 +3637,11 @@ declare module "factorio:runtime" {
|
|
|
3584
3637
|
/**
|
|
3585
3638
|
* The old inventory size.
|
|
3586
3639
|
*/
|
|
3587
|
-
readonly old_size:
|
|
3640
|
+
readonly old_size: uint32
|
|
3588
3641
|
/**
|
|
3589
3642
|
* The new inventory size.
|
|
3590
3643
|
*/
|
|
3591
|
-
readonly new_size:
|
|
3644
|
+
readonly new_size: uint32
|
|
3592
3645
|
/**
|
|
3593
3646
|
* Identifier of the event
|
|
3594
3647
|
*/
|
|
@@ -3596,11 +3649,11 @@ declare module "factorio:runtime" {
|
|
|
3596
3649
|
/**
|
|
3597
3650
|
* Tick the event was generated.
|
|
3598
3651
|
*/
|
|
3599
|
-
readonly tick:
|
|
3652
|
+
readonly tick: uint32
|
|
3600
3653
|
}
|
|
3601
3654
|
/**
|
|
3602
3655
|
* Called just before a surface is cleared (all entities removed and all chunks deleted).
|
|
3603
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3656
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_surface_cleared Online documentation}
|
|
3604
3657
|
*/
|
|
3605
3658
|
interface OnPreSurfaceClearedEvent extends EventData {
|
|
3606
3659
|
readonly surface_index: SurfaceIndex
|
|
@@ -3611,11 +3664,11 @@ declare module "factorio:runtime" {
|
|
|
3611
3664
|
/**
|
|
3612
3665
|
* Tick the event was generated.
|
|
3613
3666
|
*/
|
|
3614
|
-
readonly tick:
|
|
3667
|
+
readonly tick: uint32
|
|
3615
3668
|
}
|
|
3616
3669
|
/**
|
|
3617
3670
|
* Called just before a surface is deleted.
|
|
3618
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3671
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_pre_surface_deleted Online documentation}
|
|
3619
3672
|
*/
|
|
3620
3673
|
interface OnPreSurfaceDeletedEvent extends EventData {
|
|
3621
3674
|
readonly surface_index: SurfaceIndex
|
|
@@ -3626,11 +3679,11 @@ declare module "factorio:runtime" {
|
|
|
3626
3679
|
/**
|
|
3627
3680
|
* Tick the event was generated.
|
|
3628
3681
|
*/
|
|
3629
|
-
readonly tick:
|
|
3682
|
+
readonly tick: uint32
|
|
3630
3683
|
}
|
|
3631
3684
|
/**
|
|
3632
3685
|
* Called when the player triggers "redo".
|
|
3633
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3686
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_redo_applied Online documentation}
|
|
3634
3687
|
*/
|
|
3635
3688
|
interface OnRedoAppliedEvent extends EventData {
|
|
3636
3689
|
/**
|
|
@@ -3648,17 +3701,17 @@ declare module "factorio:runtime" {
|
|
|
3648
3701
|
/**
|
|
3649
3702
|
* Tick the event was generated.
|
|
3650
3703
|
*/
|
|
3651
|
-
readonly tick:
|
|
3704
|
+
readonly tick: uint32
|
|
3652
3705
|
}
|
|
3653
3706
|
/**
|
|
3654
3707
|
* Called when research is cancelled.
|
|
3655
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3708
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_research_cancelled Online documentation}
|
|
3656
3709
|
*/
|
|
3657
3710
|
interface OnResearchCancelledEvent extends EventData {
|
|
3658
3711
|
/**
|
|
3659
3712
|
* A mapping of technology name to how many times it was cancelled.
|
|
3660
3713
|
*/
|
|
3661
|
-
readonly research: Record<string,
|
|
3714
|
+
readonly research: Record<string, uint32>
|
|
3662
3715
|
/**
|
|
3663
3716
|
* The force whose research was cancelled.
|
|
3664
3717
|
*/
|
|
@@ -3674,11 +3727,11 @@ declare module "factorio:runtime" {
|
|
|
3674
3727
|
/**
|
|
3675
3728
|
* Tick the event was generated.
|
|
3676
3729
|
*/
|
|
3677
|
-
readonly tick:
|
|
3730
|
+
readonly tick: uint32
|
|
3678
3731
|
}
|
|
3679
3732
|
/**
|
|
3680
3733
|
* Called when a research finishes.
|
|
3681
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3734
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_research_finished Online documentation}
|
|
3682
3735
|
*/
|
|
3683
3736
|
interface OnResearchFinishedEvent extends EventData {
|
|
3684
3737
|
/**
|
|
@@ -3696,11 +3749,11 @@ declare module "factorio:runtime" {
|
|
|
3696
3749
|
/**
|
|
3697
3750
|
* Tick the event was generated.
|
|
3698
3751
|
*/
|
|
3699
|
-
readonly tick:
|
|
3752
|
+
readonly tick: uint32
|
|
3700
3753
|
}
|
|
3701
3754
|
/**
|
|
3702
3755
|
* Called when research is moved forwards or backwards in the research queue.
|
|
3703
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3756
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_research_moved Online documentation}
|
|
3704
3757
|
*/
|
|
3705
3758
|
interface OnResearchMovedEvent extends EventData {
|
|
3706
3759
|
/**
|
|
@@ -3718,11 +3771,11 @@ declare module "factorio:runtime" {
|
|
|
3718
3771
|
/**
|
|
3719
3772
|
* Tick the event was generated.
|
|
3720
3773
|
*/
|
|
3721
|
-
readonly tick:
|
|
3774
|
+
readonly tick: uint32
|
|
3722
3775
|
}
|
|
3723
3776
|
/**
|
|
3724
3777
|
* Called when research is queued.
|
|
3725
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3778
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_research_queued Online documentation}
|
|
3726
3779
|
*/
|
|
3727
3780
|
interface OnResearchQueuedEvent extends EventData {
|
|
3728
3781
|
/**
|
|
@@ -3744,11 +3797,11 @@ declare module "factorio:runtime" {
|
|
|
3744
3797
|
/**
|
|
3745
3798
|
* Tick the event was generated.
|
|
3746
3799
|
*/
|
|
3747
|
-
readonly tick:
|
|
3800
|
+
readonly tick: uint32
|
|
3748
3801
|
}
|
|
3749
3802
|
/**
|
|
3750
3803
|
* Called when a research is reversed (unresearched).
|
|
3751
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3804
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_research_reversed Online documentation}
|
|
3752
3805
|
*/
|
|
3753
3806
|
interface OnResearchReversedEvent extends EventData {
|
|
3754
3807
|
/**
|
|
@@ -3766,11 +3819,11 @@ declare module "factorio:runtime" {
|
|
|
3766
3819
|
/**
|
|
3767
3820
|
* Tick the event was generated.
|
|
3768
3821
|
*/
|
|
3769
|
-
readonly tick:
|
|
3822
|
+
readonly tick: uint32
|
|
3770
3823
|
}
|
|
3771
3824
|
/**
|
|
3772
3825
|
* Called when a technology research starts.
|
|
3773
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3826
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_research_started Online documentation}
|
|
3774
3827
|
*/
|
|
3775
3828
|
interface OnResearchStartedEvent extends EventData {
|
|
3776
3829
|
/**
|
|
@@ -3785,11 +3838,11 @@ declare module "factorio:runtime" {
|
|
|
3785
3838
|
/**
|
|
3786
3839
|
* Tick the event was generated.
|
|
3787
3840
|
*/
|
|
3788
|
-
readonly tick:
|
|
3841
|
+
readonly tick: uint32
|
|
3789
3842
|
}
|
|
3790
3843
|
/**
|
|
3791
3844
|
* Called when a resource entity reaches 0 or its minimum yield for infinite resources.
|
|
3792
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3845
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_resource_depleted Online documentation}
|
|
3793
3846
|
*/
|
|
3794
3847
|
interface OnResourceDepletedEvent extends EventData {
|
|
3795
3848
|
readonly entity: LuaEntity
|
|
@@ -3800,13 +3853,13 @@ declare module "factorio:runtime" {
|
|
|
3800
3853
|
/**
|
|
3801
3854
|
* Tick the event was generated.
|
|
3802
3855
|
*/
|
|
3803
|
-
readonly tick:
|
|
3856
|
+
readonly tick: uint32
|
|
3804
3857
|
}
|
|
3805
3858
|
/**
|
|
3806
3859
|
* Called when a construction robot builds an entity.
|
|
3807
3860
|
*
|
|
3808
3861
|
* Event filter: [LuaRobotBuiltEntityEventFilter](LuaRobotBuiltEntityEventFilter]
|
|
3809
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3862
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_robot_built_entity Online documentation}
|
|
3810
3863
|
*/
|
|
3811
3864
|
interface OnRobotBuiltEntityEvent extends EventData {
|
|
3812
3865
|
/**
|
|
@@ -3832,11 +3885,11 @@ declare module "factorio:runtime" {
|
|
|
3832
3885
|
/**
|
|
3833
3886
|
* Tick the event was generated.
|
|
3834
3887
|
*/
|
|
3835
|
-
readonly tick:
|
|
3888
|
+
readonly tick: uint32
|
|
3836
3889
|
}
|
|
3837
3890
|
/**
|
|
3838
3891
|
* Called after a robot builds tiles.
|
|
3839
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3892
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_robot_built_tile Online documentation}
|
|
3840
3893
|
*/
|
|
3841
3894
|
interface OnRobotBuiltTileEvent extends EventData {
|
|
3842
3895
|
/**
|
|
@@ -3874,11 +3927,11 @@ declare module "factorio:runtime" {
|
|
|
3874
3927
|
/**
|
|
3875
3928
|
* Tick the event was generated.
|
|
3876
3929
|
*/
|
|
3877
|
-
readonly tick:
|
|
3930
|
+
readonly tick: uint32
|
|
3878
3931
|
}
|
|
3879
3932
|
/**
|
|
3880
3933
|
* Called directly after a robot explodes cliffs.
|
|
3881
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3934
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_robot_exploded_cliff Online documentation}
|
|
3882
3935
|
*/
|
|
3883
3936
|
interface OnRobotExplodedCliffEvent extends EventData {
|
|
3884
3937
|
readonly robot: LuaEntity
|
|
@@ -3897,11 +3950,11 @@ declare module "factorio:runtime" {
|
|
|
3897
3950
|
/**
|
|
3898
3951
|
* Tick the event was generated.
|
|
3899
3952
|
*/
|
|
3900
|
-
readonly tick:
|
|
3953
|
+
readonly tick: uint32
|
|
3901
3954
|
}
|
|
3902
3955
|
/**
|
|
3903
3956
|
* Called when a robot mines an entity.
|
|
3904
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3957
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_robot_mined Online documentation}
|
|
3905
3958
|
*/
|
|
3906
3959
|
interface OnRobotMinedEvent extends EventData {
|
|
3907
3960
|
/**
|
|
@@ -3919,7 +3972,7 @@ declare module "factorio:runtime" {
|
|
|
3919
3972
|
/**
|
|
3920
3973
|
* Tick the event was generated.
|
|
3921
3974
|
*/
|
|
3922
|
-
readonly tick:
|
|
3975
|
+
readonly tick: uint32
|
|
3923
3976
|
}
|
|
3924
3977
|
/**
|
|
3925
3978
|
* Called after the results of an entity being mined are collected just before the entity is destroyed.
|
|
@@ -3929,7 +3982,7 @@ declare module "factorio:runtime" {
|
|
|
3929
3982
|
* 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
3983
|
*
|
|
3931
3984
|
* Event filter: [LuaRobotMinedEntityEventFilter](LuaRobotMinedEntityEventFilter]
|
|
3932
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
3985
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_robot_mined_entity Online documentation}
|
|
3933
3986
|
*/
|
|
3934
3987
|
interface OnRobotMinedEntityEvent extends EventData {
|
|
3935
3988
|
/**
|
|
@@ -3951,11 +4004,11 @@ declare module "factorio:runtime" {
|
|
|
3951
4004
|
/**
|
|
3952
4005
|
* Tick the event was generated.
|
|
3953
4006
|
*/
|
|
3954
|
-
readonly tick:
|
|
4007
|
+
readonly tick: uint32
|
|
3955
4008
|
}
|
|
3956
4009
|
/**
|
|
3957
4010
|
* Called after a robot mines tiles.
|
|
3958
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4011
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_robot_mined_tile Online documentation}
|
|
3959
4012
|
*/
|
|
3960
4013
|
interface OnRobotMinedTileEvent extends EventData {
|
|
3961
4014
|
/**
|
|
@@ -3977,13 +4030,13 @@ declare module "factorio:runtime" {
|
|
|
3977
4030
|
/**
|
|
3978
4031
|
* Tick the event was generated.
|
|
3979
4032
|
*/
|
|
3980
|
-
readonly tick:
|
|
4033
|
+
readonly tick: uint32
|
|
3981
4034
|
}
|
|
3982
4035
|
/**
|
|
3983
4036
|
* Called before a robot mines an entity.
|
|
3984
4037
|
*
|
|
3985
4038
|
* Event filter: [LuaPreRobotMinedEntityEventFilter](LuaPreRobotMinedEntityEventFilter]
|
|
3986
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4039
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_robot_pre_mined Online documentation}
|
|
3987
4040
|
*/
|
|
3988
4041
|
interface OnRobotPreMinedEvent extends EventData {
|
|
3989
4042
|
/**
|
|
@@ -4001,11 +4054,11 @@ declare module "factorio:runtime" {
|
|
|
4001
4054
|
/**
|
|
4002
4055
|
* Tick the event was generated.
|
|
4003
4056
|
*/
|
|
4004
|
-
readonly tick:
|
|
4057
|
+
readonly tick: uint32
|
|
4005
4058
|
}
|
|
4006
4059
|
/**
|
|
4007
4060
|
* Called when a rocket silo is ordered to be launched.
|
|
4008
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4061
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_rocket_launch_ordered Online documentation}
|
|
4009
4062
|
*/
|
|
4010
4063
|
interface OnRocketLaunchOrderedEvent extends EventData {
|
|
4011
4064
|
readonly rocket: LuaEntity
|
|
@@ -4021,11 +4074,11 @@ declare module "factorio:runtime" {
|
|
|
4021
4074
|
/**
|
|
4022
4075
|
* Tick the event was generated.
|
|
4023
4076
|
*/
|
|
4024
|
-
readonly tick:
|
|
4077
|
+
readonly tick: uint32
|
|
4025
4078
|
}
|
|
4026
4079
|
/**
|
|
4027
4080
|
* 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.
|
|
4081
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_rocket_launched Online documentation}
|
|
4029
4082
|
*/
|
|
4030
4083
|
interface OnRocketLaunchedEvent extends EventData {
|
|
4031
4084
|
readonly rocket: LuaEntity
|
|
@@ -4037,11 +4090,11 @@ declare module "factorio:runtime" {
|
|
|
4037
4090
|
/**
|
|
4038
4091
|
* Tick the event was generated.
|
|
4039
4092
|
*/
|
|
4040
|
-
readonly tick:
|
|
4093
|
+
readonly tick: uint32
|
|
4041
4094
|
}
|
|
4042
4095
|
/**
|
|
4043
4096
|
* Called when a runtime mod setting is changed by a player.
|
|
4044
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4097
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_runtime_mod_setting_changed Online documentation}
|
|
4045
4098
|
*/
|
|
4046
4099
|
interface OnRuntimeModSettingChangedEvent extends EventData {
|
|
4047
4100
|
/**
|
|
@@ -4060,11 +4113,11 @@ declare module "factorio:runtime" {
|
|
|
4060
4113
|
/**
|
|
4061
4114
|
* Tick the event was generated.
|
|
4062
4115
|
*/
|
|
4063
|
-
readonly tick:
|
|
4116
|
+
readonly tick: uint32
|
|
4064
4117
|
}
|
|
4065
4118
|
/**
|
|
4066
4119
|
* Called just after a script inventory is resized.
|
|
4067
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4120
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_script_inventory_resized Online documentation}
|
|
4068
4121
|
*/
|
|
4069
4122
|
interface OnScriptInventoryResizedEvent extends EventData {
|
|
4070
4123
|
/**
|
|
@@ -4079,11 +4132,11 @@ declare module "factorio:runtime" {
|
|
|
4079
4132
|
/**
|
|
4080
4133
|
* The old inventory size.
|
|
4081
4134
|
*/
|
|
4082
|
-
readonly old_size:
|
|
4135
|
+
readonly old_size: uint32
|
|
4083
4136
|
/**
|
|
4084
4137
|
* The new inventory size.
|
|
4085
4138
|
*/
|
|
4086
|
-
readonly new_size:
|
|
4139
|
+
readonly new_size: uint32
|
|
4087
4140
|
/**
|
|
4088
4141
|
* Any items which didn't fit into the new inventory size.
|
|
4089
4142
|
*/
|
|
@@ -4095,11 +4148,11 @@ declare module "factorio:runtime" {
|
|
|
4095
4148
|
/**
|
|
4096
4149
|
* Tick the event was generated.
|
|
4097
4150
|
*/
|
|
4098
|
-
readonly tick:
|
|
4151
|
+
readonly tick: uint32
|
|
4099
4152
|
}
|
|
4100
4153
|
/**
|
|
4101
4154
|
* Called when a {@link LuaSurface#request_path LuaSurface::request_path} call completes.
|
|
4102
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4155
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_script_path_request_finished Online documentation}
|
|
4103
4156
|
*/
|
|
4104
4157
|
interface OnScriptPathRequestFinishedEvent extends EventData {
|
|
4105
4158
|
/**
|
|
@@ -4109,7 +4162,7 @@ declare module "factorio:runtime" {
|
|
|
4109
4162
|
/**
|
|
4110
4163
|
* Handle to associate the callback with a particular call to {@link LuaSurface#request_path LuaSurface::request_path}.
|
|
4111
4164
|
*/
|
|
4112
|
-
readonly id:
|
|
4165
|
+
readonly id: uint32
|
|
4113
4166
|
/**
|
|
4114
4167
|
* Indicates that the pathfinder failed because it is too busy, and that you can retry later.
|
|
4115
4168
|
*/
|
|
@@ -4121,11 +4174,11 @@ declare module "factorio:runtime" {
|
|
|
4121
4174
|
/**
|
|
4122
4175
|
* Tick the event was generated.
|
|
4123
4176
|
*/
|
|
4124
|
-
readonly tick:
|
|
4177
|
+
readonly tick: uint32
|
|
4125
4178
|
}
|
|
4126
4179
|
/**
|
|
4127
4180
|
* Called when a script trigger effect is triggered.
|
|
4128
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4181
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_script_trigger_effect Online documentation}
|
|
4129
4182
|
*/
|
|
4130
4183
|
interface OnScriptTriggerEffectEvent extends EventData {
|
|
4131
4184
|
/**
|
|
@@ -4152,13 +4205,13 @@ declare module "factorio:runtime" {
|
|
|
4152
4205
|
/**
|
|
4153
4206
|
* Tick the event was generated.
|
|
4154
4207
|
*/
|
|
4155
|
-
readonly tick:
|
|
4208
|
+
readonly tick: uint32
|
|
4156
4209
|
}
|
|
4157
4210
|
/**
|
|
4158
4211
|
* Called when an entity of type `radar` finishes scanning a sector.
|
|
4159
4212
|
*
|
|
4160
4213
|
* Event filter: [LuaSectorScannedEventFilter](LuaSectorScannedEventFilter]
|
|
4161
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4214
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_sector_scanned Online documentation}
|
|
4162
4215
|
*/
|
|
4163
4216
|
interface OnSectorScannedEvent extends EventData {
|
|
4164
4217
|
/**
|
|
@@ -4180,11 +4233,11 @@ declare module "factorio:runtime" {
|
|
|
4180
4233
|
/**
|
|
4181
4234
|
* Tick the event was generated.
|
|
4182
4235
|
*/
|
|
4183
|
-
readonly tick:
|
|
4236
|
+
readonly tick: uint32
|
|
4184
4237
|
}
|
|
4185
4238
|
/**
|
|
4186
4239
|
* Called when an individual segment of a SegmentedUnit is created.
|
|
4187
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4240
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_segment_entity_created Online documentation}
|
|
4188
4241
|
*/
|
|
4189
4242
|
interface OnSegmentEntityCreatedEvent extends EventData {
|
|
4190
4243
|
readonly entity: LuaEntity
|
|
@@ -4195,13 +4248,13 @@ declare module "factorio:runtime" {
|
|
|
4195
4248
|
/**
|
|
4196
4249
|
* Tick the event was generated.
|
|
4197
4250
|
*/
|
|
4198
|
-
readonly tick:
|
|
4251
|
+
readonly tick: uint32
|
|
4199
4252
|
}
|
|
4200
4253
|
/**
|
|
4201
4254
|
* Called when a segmented unit is created for any reason.
|
|
4202
4255
|
*
|
|
4203
4256
|
* Event filter: [LuaSegmentedUnitCreatedEventFilter](LuaSegmentedUnitCreatedEventFilter]
|
|
4204
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4257
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_segmented_unit_created Online documentation}
|
|
4205
4258
|
*/
|
|
4206
4259
|
interface OnSegmentedUnitCreatedEvent extends EventData {
|
|
4207
4260
|
/**
|
|
@@ -4223,13 +4276,13 @@ declare module "factorio:runtime" {
|
|
|
4223
4276
|
/**
|
|
4224
4277
|
* Tick the event was generated.
|
|
4225
4278
|
*/
|
|
4226
|
-
readonly tick:
|
|
4279
|
+
readonly tick: uint32
|
|
4227
4280
|
}
|
|
4228
4281
|
/**
|
|
4229
4282
|
* Called when a segmented unit is damaged. This is not called when a segmented unit's health is set directly by another mod.
|
|
4230
4283
|
*
|
|
4231
4284
|
* Event filter: [LuaSegmentedUnitDamagedEventFilter](LuaSegmentedUnitDamagedEventFilter]
|
|
4232
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4285
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_segmented_unit_damaged Online documentation}
|
|
4233
4286
|
*/
|
|
4234
4287
|
interface OnSegmentedUnitDamagedEvent extends EventData {
|
|
4235
4288
|
readonly segmented_unit: LuaSegmentedUnit
|
|
@@ -4265,13 +4318,13 @@ declare module "factorio:runtime" {
|
|
|
4265
4318
|
/**
|
|
4266
4319
|
* Tick the event was generated.
|
|
4267
4320
|
*/
|
|
4268
|
-
readonly tick:
|
|
4321
|
+
readonly tick: uint32
|
|
4269
4322
|
}
|
|
4270
4323
|
/**
|
|
4271
4324
|
* Called when a segmented unit dies.
|
|
4272
4325
|
*
|
|
4273
4326
|
* Event filter: [LuaSegmentedUnitDiedEventFilter](LuaSegmentedUnitDiedEventFilter]
|
|
4274
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4327
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_segmented_unit_died Online documentation}
|
|
4275
4328
|
*/
|
|
4276
4329
|
interface OnSegmentedUnitDiedEvent extends EventData {
|
|
4277
4330
|
/**
|
|
@@ -4297,11 +4350,11 @@ declare module "factorio:runtime" {
|
|
|
4297
4350
|
/**
|
|
4298
4351
|
* Tick the event was generated.
|
|
4299
4352
|
*/
|
|
4300
|
-
readonly tick:
|
|
4353
|
+
readonly tick: uint32
|
|
4301
4354
|
}
|
|
4302
4355
|
/**
|
|
4303
4356
|
* Called after the selected entity changes for a given player.
|
|
4304
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4357
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_selected_entity_changed Online documentation}
|
|
4305
4358
|
*/
|
|
4306
4359
|
interface OnSelectedEntityChangedEvent extends EventData {
|
|
4307
4360
|
/**
|
|
@@ -4319,11 +4372,11 @@ declare module "factorio:runtime" {
|
|
|
4319
4372
|
/**
|
|
4320
4373
|
* Tick the event was generated.
|
|
4321
4374
|
*/
|
|
4322
|
-
readonly tick:
|
|
4375
|
+
readonly tick: uint32
|
|
4323
4376
|
}
|
|
4324
4377
|
/**
|
|
4325
4378
|
* 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.
|
|
4379
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_singleplayer_init Online documentation}
|
|
4327
4380
|
*/
|
|
4328
4381
|
interface OnSingleplayerInitEvent extends EventData {
|
|
4329
4382
|
/**
|
|
@@ -4333,13 +4386,13 @@ declare module "factorio:runtime" {
|
|
|
4333
4386
|
/**
|
|
4334
4387
|
* Tick the event was generated.
|
|
4335
4388
|
*/
|
|
4336
|
-
readonly tick:
|
|
4389
|
+
readonly tick: uint32
|
|
4337
4390
|
}
|
|
4338
4391
|
/**
|
|
4339
4392
|
* Called when a space platform builds an entity.
|
|
4340
4393
|
*
|
|
4341
4394
|
* Event filter: [LuaPlatformBuiltEntityEventFilter](LuaPlatformBuiltEntityEventFilter]
|
|
4342
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4395
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_space_platform_built_entity Online documentation}
|
|
4343
4396
|
*/
|
|
4344
4397
|
interface OnSpacePlatformBuiltEntityEvent extends EventData {
|
|
4345
4398
|
/**
|
|
@@ -4365,11 +4418,11 @@ declare module "factorio:runtime" {
|
|
|
4365
4418
|
/**
|
|
4366
4419
|
* Tick the event was generated.
|
|
4367
4420
|
*/
|
|
4368
|
-
readonly tick:
|
|
4421
|
+
readonly tick: uint32
|
|
4369
4422
|
}
|
|
4370
4423
|
/**
|
|
4371
4424
|
* Called after a space platform builds tiles.
|
|
4372
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4425
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_space_platform_built_tile Online documentation}
|
|
4373
4426
|
*/
|
|
4374
4427
|
interface OnSpacePlatformBuiltTileEvent extends EventData {
|
|
4375
4428
|
/**
|
|
@@ -4407,11 +4460,11 @@ declare module "factorio:runtime" {
|
|
|
4407
4460
|
/**
|
|
4408
4461
|
* Tick the event was generated.
|
|
4409
4462
|
*/
|
|
4410
|
-
readonly tick:
|
|
4463
|
+
readonly tick: uint32
|
|
4411
4464
|
}
|
|
4412
4465
|
/**
|
|
4413
4466
|
* Called when a space platform changes state
|
|
4414
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4467
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_space_platform_changed_state Online documentation}
|
|
4415
4468
|
*/
|
|
4416
4469
|
interface OnSpacePlatformChangedStateEvent extends EventData {
|
|
4417
4470
|
readonly platform: LuaSpacePlatform
|
|
@@ -4423,7 +4476,7 @@ declare module "factorio:runtime" {
|
|
|
4423
4476
|
/**
|
|
4424
4477
|
* Tick the event was generated.
|
|
4425
4478
|
*/
|
|
4426
|
-
readonly tick:
|
|
4479
|
+
readonly tick: uint32
|
|
4427
4480
|
}
|
|
4428
4481
|
/**
|
|
4429
4482
|
* Called after the results of an entity being mined are collected just before the entity is destroyed.
|
|
@@ -4433,7 +4486,7 @@ declare module "factorio:runtime" {
|
|
|
4433
4486
|
* 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
4487
|
*
|
|
4435
4488
|
* Event filter: [LuaPlatformMinedEntityEventFilter](LuaPlatformMinedEntityEventFilter]
|
|
4436
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4489
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_space_platform_mined_entity Online documentation}
|
|
4437
4490
|
*/
|
|
4438
4491
|
interface OnSpacePlatformMinedEntityEvent extends EventData {
|
|
4439
4492
|
/**
|
|
@@ -4455,11 +4508,11 @@ declare module "factorio:runtime" {
|
|
|
4455
4508
|
/**
|
|
4456
4509
|
* Tick the event was generated.
|
|
4457
4510
|
*/
|
|
4458
|
-
readonly tick:
|
|
4511
|
+
readonly tick: uint32
|
|
4459
4512
|
}
|
|
4460
4513
|
/**
|
|
4461
4514
|
* Called when a platform mines an entity.
|
|
4462
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4515
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_space_platform_mined_item Online documentation}
|
|
4463
4516
|
*/
|
|
4464
4517
|
interface OnSpacePlatformMinedItemEvent extends EventData {
|
|
4465
4518
|
/**
|
|
@@ -4477,11 +4530,11 @@ declare module "factorio:runtime" {
|
|
|
4477
4530
|
/**
|
|
4478
4531
|
* Tick the event was generated.
|
|
4479
4532
|
*/
|
|
4480
|
-
readonly tick:
|
|
4533
|
+
readonly tick: uint32
|
|
4481
4534
|
}
|
|
4482
4535
|
/**
|
|
4483
4536
|
* Called after a platform mines tiles.
|
|
4484
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4537
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_space_platform_mined_tile Online documentation}
|
|
4485
4538
|
*/
|
|
4486
4539
|
interface OnSpacePlatformMinedTileEvent extends EventData {
|
|
4487
4540
|
/**
|
|
@@ -4503,13 +4556,13 @@ declare module "factorio:runtime" {
|
|
|
4503
4556
|
/**
|
|
4504
4557
|
* Tick the event was generated.
|
|
4505
4558
|
*/
|
|
4506
|
-
readonly tick:
|
|
4559
|
+
readonly tick: uint32
|
|
4507
4560
|
}
|
|
4508
4561
|
/**
|
|
4509
4562
|
* Called before a platform mines an entity.
|
|
4510
4563
|
*
|
|
4511
4564
|
* Event filter: [LuaPrePlatformMinedEntityEventFilter](LuaPrePlatformMinedEntityEventFilter]
|
|
4512
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4565
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_space_platform_pre_mined Online documentation}
|
|
4513
4566
|
*/
|
|
4514
4567
|
interface OnSpacePlatformPreMinedEvent extends EventData {
|
|
4515
4568
|
/**
|
|
@@ -4527,11 +4580,11 @@ declare module "factorio:runtime" {
|
|
|
4527
4580
|
/**
|
|
4528
4581
|
* Tick the event was generated.
|
|
4529
4582
|
*/
|
|
4530
|
-
readonly tick:
|
|
4583
|
+
readonly tick: uint32
|
|
4531
4584
|
}
|
|
4532
4585
|
/**
|
|
4533
4586
|
* Called when a spider finishes moving to its autopilot position.
|
|
4534
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4587
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_spider_command_completed Online documentation}
|
|
4535
4588
|
*/
|
|
4536
4589
|
interface OnSpiderCommandCompletedEvent extends EventData {
|
|
4537
4590
|
/**
|
|
@@ -4545,11 +4598,11 @@ declare module "factorio:runtime" {
|
|
|
4545
4598
|
/**
|
|
4546
4599
|
* Tick the event was generated.
|
|
4547
4600
|
*/
|
|
4548
|
-
readonly tick:
|
|
4601
|
+
readonly tick: uint32
|
|
4549
4602
|
}
|
|
4550
4603
|
/**
|
|
4551
4604
|
* 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.
|
|
4605
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_string_translated Online documentation}
|
|
4553
4606
|
*/
|
|
4554
4607
|
interface OnStringTranslatedEvent extends EventData {
|
|
4555
4608
|
/**
|
|
@@ -4567,7 +4620,7 @@ declare module "factorio:runtime" {
|
|
|
4567
4620
|
/**
|
|
4568
4621
|
* The unique id for this translation request.
|
|
4569
4622
|
*/
|
|
4570
|
-
readonly id:
|
|
4623
|
+
readonly id: uint32
|
|
4571
4624
|
/**
|
|
4572
4625
|
* Whether the requested localised string was valid and could be translated.
|
|
4573
4626
|
*/
|
|
@@ -4579,11 +4632,11 @@ declare module "factorio:runtime" {
|
|
|
4579
4632
|
/**
|
|
4580
4633
|
* Tick the event was generated.
|
|
4581
4634
|
*/
|
|
4582
|
-
readonly tick:
|
|
4635
|
+
readonly tick: uint32
|
|
4583
4636
|
}
|
|
4584
4637
|
/**
|
|
4585
4638
|
* Called just after a surface is cleared (all entities removed and all chunks deleted).
|
|
4586
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4639
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_surface_cleared Online documentation}
|
|
4587
4640
|
*/
|
|
4588
4641
|
interface OnSurfaceClearedEvent extends EventData {
|
|
4589
4642
|
readonly surface_index: SurfaceIndex
|
|
@@ -4594,13 +4647,13 @@ declare module "factorio:runtime" {
|
|
|
4594
4647
|
/**
|
|
4595
4648
|
* Tick the event was generated.
|
|
4596
4649
|
*/
|
|
4597
|
-
readonly tick:
|
|
4650
|
+
readonly tick: uint32
|
|
4598
4651
|
}
|
|
4599
4652
|
/**
|
|
4600
4653
|
* Called when a surface is created.
|
|
4601
4654
|
*
|
|
4602
4655
|
* 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.
|
|
4656
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_surface_created Online documentation}
|
|
4604
4657
|
*/
|
|
4605
4658
|
interface OnSurfaceCreatedEvent extends EventData {
|
|
4606
4659
|
readonly surface_index: SurfaceIndex
|
|
@@ -4611,11 +4664,11 @@ declare module "factorio:runtime" {
|
|
|
4611
4664
|
/**
|
|
4612
4665
|
* Tick the event was generated.
|
|
4613
4666
|
*/
|
|
4614
|
-
readonly tick:
|
|
4667
|
+
readonly tick: uint32
|
|
4615
4668
|
}
|
|
4616
4669
|
/**
|
|
4617
4670
|
* Called after a surface is deleted.
|
|
4618
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4671
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_surface_deleted Online documentation}
|
|
4619
4672
|
*/
|
|
4620
4673
|
interface OnSurfaceDeletedEvent extends EventData {
|
|
4621
4674
|
readonly surface_index: SurfaceIndex
|
|
@@ -4626,11 +4679,11 @@ declare module "factorio:runtime" {
|
|
|
4626
4679
|
/**
|
|
4627
4680
|
* Tick the event was generated.
|
|
4628
4681
|
*/
|
|
4629
|
-
readonly tick:
|
|
4682
|
+
readonly tick: uint32
|
|
4630
4683
|
}
|
|
4631
4684
|
/**
|
|
4632
4685
|
* Called after a surface is imported via the map editor.
|
|
4633
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4686
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_surface_imported Online documentation}
|
|
4634
4687
|
*/
|
|
4635
4688
|
interface OnSurfaceImportedEvent extends EventData {
|
|
4636
4689
|
readonly surface_index: SurfaceIndex
|
|
@@ -4645,11 +4698,11 @@ declare module "factorio:runtime" {
|
|
|
4645
4698
|
/**
|
|
4646
4699
|
* Tick the event was generated.
|
|
4647
4700
|
*/
|
|
4648
|
-
readonly tick:
|
|
4701
|
+
readonly tick: uint32
|
|
4649
4702
|
}
|
|
4650
4703
|
/**
|
|
4651
4704
|
* Called when a surface is renamed.
|
|
4652
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4705
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_surface_renamed Online documentation}
|
|
4653
4706
|
*/
|
|
4654
4707
|
interface OnSurfaceRenamedEvent extends EventData {
|
|
4655
4708
|
readonly surface_index: SurfaceIndex
|
|
@@ -4662,11 +4715,11 @@ declare module "factorio:runtime" {
|
|
|
4662
4715
|
/**
|
|
4663
4716
|
* Tick the event was generated.
|
|
4664
4717
|
*/
|
|
4665
|
-
readonly tick:
|
|
4718
|
+
readonly tick: uint32
|
|
4666
4719
|
}
|
|
4667
4720
|
/**
|
|
4668
4721
|
* Called when {@link LuaForce#reset_technology_effects LuaForce::reset_technology_effects} is finished.
|
|
4669
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4722
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_technology_effects_reset Online documentation}
|
|
4670
4723
|
*/
|
|
4671
4724
|
interface OnTechnologyEffectsResetEvent extends EventData {
|
|
4672
4725
|
readonly force: LuaForce
|
|
@@ -4677,11 +4730,11 @@ declare module "factorio:runtime" {
|
|
|
4677
4730
|
/**
|
|
4678
4731
|
* Tick the event was generated.
|
|
4679
4732
|
*/
|
|
4680
|
-
readonly tick:
|
|
4733
|
+
readonly tick: uint32
|
|
4681
4734
|
}
|
|
4682
4735
|
/**
|
|
4683
4736
|
* Called when a territory is created for any reason.
|
|
4684
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4737
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_territory_created Online documentation}
|
|
4685
4738
|
*/
|
|
4686
4739
|
interface OnTerritoryCreatedEvent extends EventData {
|
|
4687
4740
|
/**
|
|
@@ -4699,11 +4752,11 @@ declare module "factorio:runtime" {
|
|
|
4699
4752
|
/**
|
|
4700
4753
|
* Tick the event was generated.
|
|
4701
4754
|
*/
|
|
4702
|
-
readonly tick:
|
|
4755
|
+
readonly tick: uint32
|
|
4703
4756
|
}
|
|
4704
4757
|
/**
|
|
4705
4758
|
* Called when a territory is destroyed from a surface.
|
|
4706
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4759
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_territory_destroyed Online documentation}
|
|
4707
4760
|
*/
|
|
4708
4761
|
interface OnTerritoryDestroyedEvent extends EventData {
|
|
4709
4762
|
/**
|
|
@@ -4717,11 +4770,11 @@ declare module "factorio:runtime" {
|
|
|
4717
4770
|
/**
|
|
4718
4771
|
* Tick the event was generated.
|
|
4719
4772
|
*/
|
|
4720
|
-
readonly tick:
|
|
4773
|
+
readonly tick: uint32
|
|
4721
4774
|
}
|
|
4722
4775
|
/**
|
|
4723
4776
|
* 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.
|
|
4777
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_tick Online documentation}
|
|
4725
4778
|
*/
|
|
4726
4779
|
interface OnTickEvent extends EventData {
|
|
4727
4780
|
/**
|
|
@@ -4731,7 +4784,7 @@ declare module "factorio:runtime" {
|
|
|
4731
4784
|
/**
|
|
4732
4785
|
* Tick the event was generated.
|
|
4733
4786
|
*/
|
|
4734
|
-
readonly tick:
|
|
4787
|
+
readonly tick: uint32
|
|
4735
4788
|
}
|
|
4736
4789
|
/**
|
|
4737
4790
|
* Called after the results of an entity being mined are collected just before the entity is destroyed.
|
|
@@ -4739,7 +4792,7 @@ declare module "factorio:runtime" {
|
|
|
4739
4792
|
* After this event any items in the buffer will be transferred into the tower as if they came from mining the entity.
|
|
4740
4793
|
*
|
|
4741
4794
|
* 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.
|
|
4795
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_tower_mined_plant Online documentation}
|
|
4743
4796
|
*/
|
|
4744
4797
|
interface OnTowerMinedPlantEvent extends EventData {
|
|
4745
4798
|
/**
|
|
@@ -4761,11 +4814,11 @@ declare module "factorio:runtime" {
|
|
|
4761
4814
|
/**
|
|
4762
4815
|
* Tick the event was generated.
|
|
4763
4816
|
*/
|
|
4764
|
-
readonly tick:
|
|
4817
|
+
readonly tick: uint32
|
|
4765
4818
|
}
|
|
4766
4819
|
/**
|
|
4767
4820
|
* Called before an agricultural tower plants a seed.
|
|
4768
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4821
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_tower_planted_seed Online documentation}
|
|
4769
4822
|
*/
|
|
4770
4823
|
interface OnTowerPlantedSeedEvent extends EventData {
|
|
4771
4824
|
/**
|
|
@@ -4787,11 +4840,11 @@ declare module "factorio:runtime" {
|
|
|
4787
4840
|
/**
|
|
4788
4841
|
* Tick the event was generated.
|
|
4789
4842
|
*/
|
|
4790
|
-
readonly tick:
|
|
4843
|
+
readonly tick: uint32
|
|
4791
4844
|
}
|
|
4792
4845
|
/**
|
|
4793
4846
|
* Called before an agricultural tower mines a plant.
|
|
4794
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4847
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_tower_pre_mined_plant Online documentation}
|
|
4795
4848
|
*/
|
|
4796
4849
|
interface OnTowerPreMinedPlantEvent extends EventData {
|
|
4797
4850
|
/**
|
|
@@ -4809,11 +4862,11 @@ declare module "factorio:runtime" {
|
|
|
4809
4862
|
/**
|
|
4810
4863
|
* Tick the event was generated.
|
|
4811
4864
|
*/
|
|
4812
|
-
readonly tick:
|
|
4865
|
+
readonly tick: uint32
|
|
4813
4866
|
}
|
|
4814
4867
|
/**
|
|
4815
4868
|
* Called when a train changes state (started to stopped and vice versa)
|
|
4816
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4869
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_train_changed_state Online documentation}
|
|
4817
4870
|
*/
|
|
4818
4871
|
interface OnTrainChangedStateEvent extends EventData {
|
|
4819
4872
|
readonly train: LuaTrain
|
|
@@ -4825,22 +4878,22 @@ declare module "factorio:runtime" {
|
|
|
4825
4878
|
/**
|
|
4826
4879
|
* Tick the event was generated.
|
|
4827
4880
|
*/
|
|
4828
|
-
readonly tick:
|
|
4881
|
+
readonly tick: uint32
|
|
4829
4882
|
}
|
|
4830
4883
|
/**
|
|
4831
4884
|
* 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.
|
|
4885
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_train_created Online documentation}
|
|
4833
4886
|
*/
|
|
4834
4887
|
interface OnTrainCreatedEvent extends EventData {
|
|
4835
4888
|
readonly train: LuaTrain
|
|
4836
4889
|
/**
|
|
4837
4890
|
* The first old train id when splitting/merging trains.
|
|
4838
4891
|
*/
|
|
4839
|
-
readonly old_train_id_1?:
|
|
4892
|
+
readonly old_train_id_1?: uint32
|
|
4840
4893
|
/**
|
|
4841
4894
|
* The second old train id when splitting/merging trains.
|
|
4842
4895
|
*/
|
|
4843
|
-
readonly old_train_id_2?:
|
|
4896
|
+
readonly old_train_id_2?: uint32
|
|
4844
4897
|
/**
|
|
4845
4898
|
* Identifier of the event
|
|
4846
4899
|
*/
|
|
@@ -4848,11 +4901,11 @@ declare module "factorio:runtime" {
|
|
|
4848
4901
|
/**
|
|
4849
4902
|
* Tick the event was generated.
|
|
4850
4903
|
*/
|
|
4851
|
-
readonly tick:
|
|
4904
|
+
readonly tick: uint32
|
|
4852
4905
|
}
|
|
4853
4906
|
/**
|
|
4854
4907
|
* Called when a trains schedule is changed either by the player or through script.
|
|
4855
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4908
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_train_schedule_changed Online documentation}
|
|
4856
4909
|
*/
|
|
4857
4910
|
interface OnTrainScheduleChangedEvent extends EventData {
|
|
4858
4911
|
readonly train: LuaTrain
|
|
@@ -4867,11 +4920,11 @@ declare module "factorio:runtime" {
|
|
|
4867
4920
|
/**
|
|
4868
4921
|
* Tick the event was generated.
|
|
4869
4922
|
*/
|
|
4870
|
-
readonly tick:
|
|
4923
|
+
readonly tick: uint32
|
|
4871
4924
|
}
|
|
4872
4925
|
/**
|
|
4873
4926
|
* 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.
|
|
4927
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_trigger_created_entity Online documentation}
|
|
4875
4928
|
*/
|
|
4876
4929
|
interface OnTriggerCreatedEntityEvent extends EventData {
|
|
4877
4930
|
readonly entity: LuaEntity
|
|
@@ -4883,11 +4936,11 @@ declare module "factorio:runtime" {
|
|
|
4883
4936
|
/**
|
|
4884
4937
|
* Tick the event was generated.
|
|
4885
4938
|
*/
|
|
4886
|
-
readonly tick:
|
|
4939
|
+
readonly tick: uint32
|
|
4887
4940
|
}
|
|
4888
4941
|
/**
|
|
4889
4942
|
* 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.
|
|
4943
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_trigger_fired_artillery Online documentation}
|
|
4891
4944
|
*/
|
|
4892
4945
|
interface OnTriggerFiredArtilleryEvent extends EventData {
|
|
4893
4946
|
readonly entity: LuaEntity
|
|
@@ -4899,11 +4952,11 @@ declare module "factorio:runtime" {
|
|
|
4899
4952
|
/**
|
|
4900
4953
|
* Tick the event was generated.
|
|
4901
4954
|
*/
|
|
4902
|
-
readonly tick:
|
|
4955
|
+
readonly tick: uint32
|
|
4903
4956
|
}
|
|
4904
4957
|
/**
|
|
4905
4958
|
* Called when new packets are processed by {@link LuaHelpers#recv_udp LuaHelpers::recv_udp}.
|
|
4906
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4959
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_udp_packet_received Online documentation}
|
|
4907
4960
|
*/
|
|
4908
4961
|
interface OnUdpPacketReceivedEvent extends EventData {
|
|
4909
4962
|
/**
|
|
@@ -4925,11 +4978,11 @@ declare module "factorio:runtime" {
|
|
|
4925
4978
|
/**
|
|
4926
4979
|
* Tick the event was generated.
|
|
4927
4980
|
*/
|
|
4928
|
-
readonly tick:
|
|
4981
|
+
readonly tick: uint32
|
|
4929
4982
|
}
|
|
4930
4983
|
/**
|
|
4931
4984
|
* Called when the player triggers "undo".
|
|
4932
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
4985
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_undo_applied Online documentation}
|
|
4933
4986
|
*/
|
|
4934
4987
|
interface OnUndoAppliedEvent extends EventData {
|
|
4935
4988
|
/**
|
|
@@ -4947,11 +5000,11 @@ declare module "factorio:runtime" {
|
|
|
4947
5000
|
/**
|
|
4948
5001
|
* Tick the event was generated.
|
|
4949
5002
|
*/
|
|
4950
|
-
readonly tick:
|
|
5003
|
+
readonly tick: uint32
|
|
4951
5004
|
}
|
|
4952
5005
|
/**
|
|
4953
5006
|
* Called when a unit is added to a unit group.
|
|
4954
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5007
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_unit_added_to_group Online documentation}
|
|
4955
5008
|
*/
|
|
4956
5009
|
interface OnUnitAddedToGroupEvent extends EventData {
|
|
4957
5010
|
readonly unit: LuaEntity
|
|
@@ -4963,11 +5016,11 @@ declare module "factorio:runtime" {
|
|
|
4963
5016
|
/**
|
|
4964
5017
|
* Tick the event was generated.
|
|
4965
5018
|
*/
|
|
4966
|
-
readonly tick:
|
|
5019
|
+
readonly tick: uint32
|
|
4967
5020
|
}
|
|
4968
5021
|
/**
|
|
4969
5022
|
* 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.
|
|
5023
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_unit_group_created Online documentation}
|
|
4971
5024
|
*/
|
|
4972
5025
|
interface OnUnitGroupCreatedEvent extends EventData {
|
|
4973
5026
|
readonly group: LuaCommandable
|
|
@@ -4978,11 +5031,11 @@ declare module "factorio:runtime" {
|
|
|
4978
5031
|
/**
|
|
4979
5032
|
* Tick the event was generated.
|
|
4980
5033
|
*/
|
|
4981
|
-
readonly tick:
|
|
5034
|
+
readonly tick: uint32
|
|
4982
5035
|
}
|
|
4983
5036
|
/**
|
|
4984
5037
|
* Called when a unit group finishes gathering and starts executing its command.
|
|
4985
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5038
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_unit_group_finished_gathering Online documentation}
|
|
4986
5039
|
*/
|
|
4987
5040
|
interface OnUnitGroupFinishedGatheringEvent extends EventData {
|
|
4988
5041
|
readonly group: LuaCommandable
|
|
@@ -4993,11 +5046,11 @@ declare module "factorio:runtime" {
|
|
|
4993
5046
|
/**
|
|
4994
5047
|
* Tick the event was generated.
|
|
4995
5048
|
*/
|
|
4996
|
-
readonly tick:
|
|
5049
|
+
readonly tick: uint32
|
|
4997
5050
|
}
|
|
4998
5051
|
/**
|
|
4999
5052
|
* Called when a unit is removed from a unit group.
|
|
5000
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5053
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_unit_removed_from_group Online documentation}
|
|
5001
5054
|
*/
|
|
5002
5055
|
interface OnUnitRemovedFromGroupEvent extends EventData {
|
|
5003
5056
|
readonly unit: LuaEntity
|
|
@@ -5009,11 +5062,11 @@ declare module "factorio:runtime" {
|
|
|
5009
5062
|
/**
|
|
5010
5063
|
* Tick the event was generated.
|
|
5011
5064
|
*/
|
|
5012
|
-
readonly tick:
|
|
5065
|
+
readonly tick: uint32
|
|
5013
5066
|
}
|
|
5014
5067
|
/**
|
|
5015
5068
|
* Called when a worker (construction or logistic) robot expires through a lack of energy.
|
|
5016
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5069
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#on_worker_robot_expired Online documentation}
|
|
5017
5070
|
*/
|
|
5018
5071
|
interface OnWorkerRobotExpiredEvent extends EventData {
|
|
5019
5072
|
readonly robot: LuaEntity
|
|
@@ -5024,13 +5077,13 @@ declare module "factorio:runtime" {
|
|
|
5024
5077
|
/**
|
|
5025
5078
|
* Tick the event was generated.
|
|
5026
5079
|
*/
|
|
5027
|
-
readonly tick:
|
|
5080
|
+
readonly tick: uint32
|
|
5028
5081
|
}
|
|
5029
5082
|
/**
|
|
5030
5083
|
* 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
5084
|
*
|
|
5032
5085
|
* Event filter: [LuaScriptRaisedBuiltEventFilter](LuaScriptRaisedBuiltEventFilter]
|
|
5033
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5086
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#script_raised_built Online documentation}
|
|
5034
5087
|
*/
|
|
5035
5088
|
interface ScriptRaisedBuiltEvent extends EventData {
|
|
5036
5089
|
/**
|
|
@@ -5044,13 +5097,13 @@ declare module "factorio:runtime" {
|
|
|
5044
5097
|
/**
|
|
5045
5098
|
* Tick the event was generated.
|
|
5046
5099
|
*/
|
|
5047
|
-
readonly tick:
|
|
5100
|
+
readonly tick: uint32
|
|
5048
5101
|
}
|
|
5049
5102
|
/**
|
|
5050
5103
|
* 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
5104
|
*
|
|
5052
5105
|
* Event filter: [LuaScriptRaisedDestroyEventFilter](LuaScriptRaisedDestroyEventFilter]
|
|
5053
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5106
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#script_raised_destroy Online documentation}
|
|
5054
5107
|
*/
|
|
5055
5108
|
interface ScriptRaisedDestroyEvent extends EventData {
|
|
5056
5109
|
/**
|
|
@@ -5064,13 +5117,13 @@ declare module "factorio:runtime" {
|
|
|
5064
5117
|
/**
|
|
5065
5118
|
* Tick the event was generated.
|
|
5066
5119
|
*/
|
|
5067
|
-
readonly tick:
|
|
5120
|
+
readonly tick: uint32
|
|
5068
5121
|
}
|
|
5069
5122
|
/**
|
|
5070
5123
|
* 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
5124
|
*
|
|
5072
5125
|
* Event filter: [LuaScriptRaisedDestroySegmentedUnitEventFilter](LuaScriptRaisedDestroySegmentedUnitEventFilter]
|
|
5073
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5126
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#script_raised_destroy_segmented_unit Online documentation}
|
|
5074
5127
|
*/
|
|
5075
5128
|
interface ScriptRaisedDestroySegmentedUnitEvent extends EventData {
|
|
5076
5129
|
/**
|
|
@@ -5084,13 +5137,13 @@ declare module "factorio:runtime" {
|
|
|
5084
5137
|
/**
|
|
5085
5138
|
* Tick the event was generated.
|
|
5086
5139
|
*/
|
|
5087
|
-
readonly tick:
|
|
5140
|
+
readonly tick: uint32
|
|
5088
5141
|
}
|
|
5089
5142
|
/**
|
|
5090
5143
|
* 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
5144
|
*
|
|
5092
5145
|
* Event filter: [LuaScriptRaisedReviveEventFilter](LuaScriptRaisedReviveEventFilter]
|
|
5093
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5146
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#script_raised_revive Online documentation}
|
|
5094
5147
|
*/
|
|
5095
5148
|
interface ScriptRaisedReviveEvent extends EventData {
|
|
5096
5149
|
/**
|
|
@@ -5108,11 +5161,11 @@ declare module "factorio:runtime" {
|
|
|
5108
5161
|
/**
|
|
5109
5162
|
* Tick the event was generated.
|
|
5110
5163
|
*/
|
|
5111
|
-
readonly tick:
|
|
5164
|
+
readonly tick: uint32
|
|
5112
5165
|
}
|
|
5113
5166
|
/**
|
|
5114
5167
|
* 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.
|
|
5168
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#script_raised_set_tiles Online documentation}
|
|
5116
5169
|
*/
|
|
5117
5170
|
interface ScriptRaisedSetTilesEvent extends EventData {
|
|
5118
5171
|
/**
|
|
@@ -5130,13 +5183,13 @@ declare module "factorio:runtime" {
|
|
|
5130
5183
|
/**
|
|
5131
5184
|
* Tick the event was generated.
|
|
5132
5185
|
*/
|
|
5133
|
-
readonly tick:
|
|
5186
|
+
readonly tick: uint32
|
|
5134
5187
|
}
|
|
5135
5188
|
/**
|
|
5136
5189
|
* 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
5190
|
*
|
|
5138
5191
|
* Event filter: [LuaScriptRaisedTeleportedEventFilter](LuaScriptRaisedTeleportedEventFilter]
|
|
5139
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
|
5192
|
+
* @see {@link https://lua-api.factorio.com/2.0.70/events.html#script_raised_teleported Online documentation}
|
|
5140
5193
|
*/
|
|
5141
5194
|
interface ScriptRaisedTeleportedEvent extends EventData {
|
|
5142
5195
|
/**
|
|
@@ -5158,6 +5211,6 @@ declare module "factorio:runtime" {
|
|
|
5158
5211
|
/**
|
|
5159
5212
|
* Tick the event was generated.
|
|
5160
5213
|
*/
|
|
5161
|
-
readonly tick:
|
|
5214
|
+
readonly tick: uint32
|
|
5162
5215
|
}
|
|
5163
5216
|
}
|