typed-factorio 3.25.0 → 3.26.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 +2469 -2154
- package/prototype/generated/types.d.ts +2179 -2134
- package/runtime/generated/classes.d.ts +4977 -4024
- package/runtime/generated/concepts.d.ts +499 -361
- package/runtime/generated/defines.d.ts +215 -201
- package/runtime/generated/events.d.ts +243 -205
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +7 -7
@@ -156,6 +156,7 @@ import type {
|
|
156
156
|
OnResearchCancelledEvent,
|
157
157
|
OnResearchFinishedEvent,
|
158
158
|
OnResearchMovedEvent,
|
159
|
+
OnResearchQueuedEvent,
|
159
160
|
OnResearchReversedEvent,
|
160
161
|
OnResearchStartedEvent,
|
161
162
|
OnResourceDepletedEvent,
|
@@ -233,7 +234,7 @@ declare global {
|
|
233
234
|
}
|
234
235
|
/**
|
235
236
|
* AI command exit status. See {@link LuaEntity#set_command LuaEntity::set_command}
|
236
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
237
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.behavior_result Online documentation}
|
237
238
|
*/
|
238
239
|
enum behavior_result {
|
239
240
|
in_progress,
|
@@ -257,33 +258,33 @@ declare global {
|
|
257
258
|
enum cargo_destination {
|
258
259
|
/**
|
259
260
|
* The default destination type of a cargo pod when created runtime. Setting its destination to any other type will instantly launch it.
|
260
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
261
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.cargo_destination.invalid Online documentation}
|
261
262
|
*/
|
262
263
|
invalid,
|
263
264
|
/**
|
264
265
|
* Cargo pods with orbit destination are destroyed when ascent is completed.
|
265
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
266
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.cargo_destination.orbit Online documentation}
|
266
267
|
*/
|
267
268
|
orbit,
|
268
269
|
/**
|
269
270
|
* Any cargo landing pad or space platform hub.
|
270
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
271
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.cargo_destination.station Online documentation}
|
271
272
|
*/
|
272
273
|
station,
|
273
274
|
/**
|
274
275
|
* Cargo pods will switch destination type from surface to station before starting descent if there is a station available and {@link CargoDestination#position CargoDestination::position} has not been specified. Note, setting the destination to "surface" when the surface is the same as the one the pod is on forces it to find and set a landing position.
|
275
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
276
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.cargo_destination.surface Online documentation}
|
276
277
|
*/
|
277
278
|
surface,
|
278
279
|
/**
|
279
280
|
* Only used for sending a space platform starter pack to a platform that is waiting for one. Regular deliveries to space platform hubs use {@link defines.cargo_destination.station station} destination type instead.
|
280
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
281
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.cargo_destination.space_platform Online documentation}
|
281
282
|
*/
|
282
283
|
space_platform,
|
283
284
|
}
|
284
285
|
/**
|
285
286
|
* State of a chain signal.
|
286
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
287
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.chain_signal_state Online documentation}
|
287
288
|
*/
|
288
289
|
enum chain_signal_state {
|
289
290
|
none,
|
@@ -301,73 +302,73 @@ declare global {
|
|
301
302
|
}
|
302
303
|
/**
|
303
304
|
* Command given to units describing what they should do.
|
304
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
305
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.command Online documentation}
|
305
306
|
*/
|
306
307
|
enum command {
|
307
308
|
/**
|
308
309
|
* Attack another entity.
|
309
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
310
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.command.attack Online documentation}
|
310
311
|
*/
|
311
312
|
attack = 0,
|
312
313
|
/**
|
313
314
|
* Go to a specific position.
|
314
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
315
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.command.go_to_location Online documentation}
|
315
316
|
*/
|
316
317
|
go_to_location = 1,
|
317
318
|
/**
|
318
319
|
* Chain commands together, see {@link defines.compound_command}.
|
319
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
320
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.command.compound Online documentation}
|
320
321
|
*/
|
321
322
|
compound = 2,
|
322
323
|
/**
|
323
324
|
* Do what your group wants you to do.
|
324
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
325
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.command.group Online documentation}
|
325
326
|
*/
|
326
327
|
group = 3,
|
327
328
|
/**
|
328
329
|
* Go to a place and attack what you see.
|
329
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
330
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.command.attack_area Online documentation}
|
330
331
|
*/
|
331
332
|
attack_area = 4,
|
332
333
|
/**
|
333
334
|
* Chill.
|
334
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
335
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.command.wander Online documentation}
|
335
336
|
*/
|
336
337
|
wander = 5,
|
337
338
|
/**
|
338
339
|
* Flee from another entity.
|
339
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
340
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.command.flee Online documentation}
|
340
341
|
*/
|
341
342
|
flee = 6,
|
342
343
|
/**
|
343
344
|
* Stop moving and stay where you are.
|
344
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
345
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.command.stop Online documentation}
|
345
346
|
*/
|
346
347
|
stop = 7,
|
347
348
|
/**
|
348
349
|
* Go to a position and build a base there.
|
349
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
350
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.command.build_base Online documentation}
|
350
351
|
*/
|
351
352
|
build_base = 8,
|
352
353
|
}
|
353
354
|
/**
|
354
355
|
* How commands are joined together in a compound command (see {@link defines.command.compound}).
|
355
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
356
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.compound_command Online documentation}
|
356
357
|
*/
|
357
358
|
enum compound_command {
|
358
359
|
/**
|
359
360
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
360
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
361
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.compound_command.logical_and Online documentation}
|
361
362
|
*/
|
362
363
|
logical_and,
|
363
364
|
/**
|
364
365
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
365
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
366
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.compound_command.logical_or Online documentation}
|
366
367
|
*/
|
367
368
|
logical_or,
|
368
369
|
/**
|
369
370
|
* Execute all commands in sequence and fail or succeed depending on the return status of the last command.
|
370
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
371
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.compound_command.return_last Online documentation}
|
371
372
|
*/
|
372
373
|
return_last,
|
373
374
|
}
|
@@ -429,172 +430,172 @@ declare global {
|
|
429
430
|
enum type {
|
430
431
|
/**
|
431
432
|
* {@link LuaContainerControlBehavior}
|
432
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
433
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.container Online documentation}
|
433
434
|
*/
|
434
435
|
container,
|
435
436
|
/**
|
436
437
|
* {@link LuaGenericOnOffControlBehavior}
|
437
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
438
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
|
438
439
|
*/
|
439
440
|
generic_on_off,
|
440
441
|
/**
|
441
442
|
* {@link LuaInserterControlBehavior}
|
442
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
443
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.inserter Online documentation}
|
443
444
|
*/
|
444
445
|
inserter,
|
445
446
|
/**
|
446
447
|
* {@link LuaLampControlBehavior}
|
447
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
448
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.lamp Online documentation}
|
448
449
|
*/
|
449
450
|
lamp,
|
450
451
|
/**
|
451
452
|
* {@link LuaLogisticContainerControlBehavior}
|
452
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
453
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.logistic_container Online documentation}
|
453
454
|
*/
|
454
455
|
logistic_container,
|
455
456
|
/**
|
456
457
|
* {@link LuaRoboportControlBehavior}
|
457
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
458
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.roboport Online documentation}
|
458
459
|
*/
|
459
460
|
roboport,
|
460
461
|
/**
|
461
462
|
* {@link LuaStorageTankControlBehavior}
|
462
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
463
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.storage_tank Online documentation}
|
463
464
|
*/
|
464
465
|
storage_tank,
|
465
466
|
/**
|
466
467
|
* {@link LuaTrainStopControlBehavior}
|
467
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
468
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.train_stop Online documentation}
|
468
469
|
*/
|
469
470
|
train_stop,
|
470
471
|
/**
|
471
472
|
* {@link LuaDeciderCombinatorControlBehavior}
|
472
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
473
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
|
473
474
|
*/
|
474
475
|
decider_combinator,
|
475
476
|
/**
|
476
477
|
* {@link LuaArithmeticCombinatorControlBehavior}
|
477
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
478
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
|
478
479
|
*/
|
479
480
|
arithmetic_combinator,
|
480
481
|
/**
|
481
482
|
* {@link LuaConstantCombinatorControlBehavior}
|
482
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
483
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
|
483
484
|
*/
|
484
485
|
constant_combinator,
|
485
486
|
/**
|
486
487
|
* {@link LuaTransportBeltControlBehavior}
|
487
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
488
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.transport_belt Online documentation}
|
488
489
|
*/
|
489
490
|
transport_belt,
|
490
491
|
/**
|
491
492
|
* {@link LuaAccumulatorControlBehavior}
|
492
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
493
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.accumulator Online documentation}
|
493
494
|
*/
|
494
495
|
accumulator,
|
495
496
|
/**
|
496
497
|
* {@link LuaRailSignalBaseControlBehavior}
|
497
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
498
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.rail_signal Online documentation}
|
498
499
|
*/
|
499
500
|
rail_signal,
|
500
501
|
/**
|
501
502
|
* {@link LuaRailSignalBaseControlBehavior}
|
502
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
503
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
|
503
504
|
*/
|
504
505
|
rail_chain_signal,
|
505
506
|
/**
|
506
507
|
* {@link LuaWallControlBehavior}
|
507
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
508
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.wall Online documentation}
|
508
509
|
*/
|
509
510
|
wall,
|
510
511
|
/**
|
511
512
|
* {@link LuaMiningDrillControlBehavior}
|
512
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
513
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.mining_drill Online documentation}
|
513
514
|
*/
|
514
515
|
mining_drill,
|
515
516
|
/**
|
516
517
|
* {@link LuaProgrammableSpeakerControlBehavior}
|
517
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
518
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
|
518
519
|
*/
|
519
520
|
programmable_speaker,
|
520
521
|
/**
|
521
522
|
* {@link LuaAssemblingMachineControlBehavior}
|
522
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
523
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.assembling_machine Online documentation}
|
523
524
|
*/
|
524
525
|
assembling_machine,
|
525
526
|
/**
|
526
527
|
* {@link LuaPumpControlBehavior}
|
527
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
528
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.pump Online documentation}
|
528
529
|
*/
|
529
530
|
pump,
|
530
531
|
/**
|
531
532
|
* {@link LuaSelectorCombinatorControlBehavior}
|
532
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
533
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.selector_combinator Online documentation}
|
533
534
|
*/
|
534
535
|
selector_combinator,
|
535
536
|
/**
|
536
537
|
* {@link LuaRocketSiloControlBehavior}
|
537
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
538
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.rocket_silo Online documentation}
|
538
539
|
*/
|
539
540
|
rocket_silo,
|
540
541
|
/**
|
541
542
|
* {@link LuaTurretControlBehavior}
|
542
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
543
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.turret Online documentation}
|
543
544
|
*/
|
544
545
|
turret,
|
545
546
|
/**
|
546
547
|
* {@link LuaReactorControlBehavior}
|
547
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
548
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.reactor Online documentation}
|
548
549
|
*/
|
549
550
|
reactor,
|
550
551
|
/**
|
551
552
|
* {@link LuaSpacePlatformHubControlBehavior}
|
552
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
553
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.space_platform_hub Online documentation}
|
553
554
|
*/
|
554
555
|
space_platform_hub,
|
555
556
|
/**
|
556
557
|
* {@link LuaArtilleryTurretControlBehavior}
|
557
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
558
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.artillery_turret Online documentation}
|
558
559
|
*/
|
559
560
|
artillery_turret,
|
560
561
|
/**
|
561
562
|
* {@link LuaAsteroidCollectorControlBehavior}
|
562
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
563
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.asteroid_collector Online documentation}
|
563
564
|
*/
|
564
565
|
asteroid_collector,
|
565
566
|
/**
|
566
567
|
* {@link LuaRadarControlBehavior}
|
567
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
568
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.radar Online documentation}
|
568
569
|
*/
|
569
570
|
radar,
|
570
571
|
/**
|
571
572
|
* {@link LuaDisplayPanelControlBehavior}
|
572
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
573
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.display_panel Online documentation}
|
573
574
|
*/
|
574
575
|
display_panel,
|
575
576
|
/**
|
576
577
|
* {@link LuaLoaderControlBehavior}
|
577
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
578
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.loader Online documentation}
|
578
579
|
*/
|
579
580
|
loader,
|
580
581
|
/**
|
581
582
|
* {@link LuaCargoLandingPadControlBehavior}
|
582
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
583
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.cargo_landing_pad Online documentation}
|
583
584
|
*/
|
584
585
|
cargo_landing_pad,
|
585
586
|
/**
|
586
587
|
* {@link LuaAgriculturalTowerControlBehavior}
|
587
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
588
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.agricultural_tower Online documentation}
|
588
589
|
*/
|
589
590
|
agricultural_tower,
|
590
591
|
/**
|
591
592
|
* {@link LuaFurnaceControlBehavior}
|
592
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
593
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.furnace Online documentation}
|
593
594
|
*/
|
594
595
|
furnace,
|
595
596
|
/**
|
596
597
|
* {@link LuaProxyContainerControlBehavior}
|
597
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
598
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.control_behavior.type.proxy_container Online documentation}
|
598
599
|
*/
|
599
600
|
proxy_container,
|
600
601
|
}
|
@@ -602,37 +603,37 @@ declare global {
|
|
602
603
|
enum controllers {
|
603
604
|
/**
|
604
605
|
* Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
|
605
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
606
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.controllers.ghost Online documentation}
|
606
607
|
*/
|
607
608
|
ghost,
|
608
609
|
/**
|
609
610
|
* The controller controls a character. This is the default controller in freeplay.
|
610
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
611
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.controllers.character Online documentation}
|
611
612
|
*/
|
612
613
|
character,
|
613
614
|
/**
|
614
615
|
* The controller isn't tied to a character. This is the default controller in sandbox.
|
615
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
616
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.controllers.god Online documentation}
|
616
617
|
*/
|
617
618
|
god,
|
618
619
|
/**
|
619
620
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
620
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
621
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.controllers.editor Online documentation}
|
621
622
|
*/
|
622
623
|
editor,
|
623
624
|
/**
|
624
625
|
* The player can't interact with the world, and the camera pans around in a predefined manner.
|
625
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
626
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.controllers.cutscene Online documentation}
|
626
627
|
*/
|
627
628
|
cutscene,
|
628
629
|
/**
|
629
630
|
* Can't change anything in the world but can view anything.
|
630
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
631
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.controllers.spectator Online documentation}
|
631
632
|
*/
|
632
633
|
spectator,
|
633
634
|
/**
|
634
635
|
* Can't move/change items but can build ghosts/change settings.
|
635
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
636
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.controllers.remote Online documentation}
|
636
637
|
*/
|
637
638
|
remote,
|
638
639
|
}
|
@@ -694,22 +695,22 @@ declare global {
|
|
694
695
|
enum distraction {
|
695
696
|
/**
|
696
697
|
* Perform command even if someone attacks the unit.
|
697
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
698
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.distraction.none Online documentation}
|
698
699
|
*/
|
699
700
|
none,
|
700
701
|
/**
|
701
702
|
* Attack closer enemy entities with force.
|
702
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
703
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.distraction.by_enemy Online documentation}
|
703
704
|
*/
|
704
705
|
by_enemy,
|
705
706
|
/**
|
706
707
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
707
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
708
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.distraction.by_anything Online documentation}
|
708
709
|
*/
|
709
710
|
by_anything,
|
710
711
|
/**
|
711
712
|
* Attack when attacked.
|
712
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
713
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.distraction.by_damage Online documentation}
|
713
714
|
*/
|
714
715
|
by_damage,
|
715
716
|
}
|
@@ -718,12 +719,12 @@ declare global {
|
|
718
719
|
normal,
|
719
720
|
/**
|
720
721
|
* Used by ghosts.
|
721
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
722
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.ghost Online documentation}
|
722
723
|
*/
|
723
724
|
ghost,
|
724
725
|
/**
|
725
726
|
* Only used if set through {@link import("factorio:prototype").ContainerPrototype#default_status ContainerPrototype::default_status}.
|
726
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
727
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.broken Online documentation}
|
727
728
|
*/
|
728
729
|
broken,
|
729
730
|
no_power,
|
@@ -737,272 +738,272 @@ declare global {
|
|
737
738
|
marked_for_deconstruction,
|
738
739
|
/**
|
739
740
|
* Used by space platform hubs.
|
740
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
741
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.paused Online documentation}
|
741
742
|
*/
|
742
743
|
paused,
|
743
744
|
/**
|
744
745
|
* Used by generators and solar panels.
|
745
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
746
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
|
746
747
|
*/
|
747
748
|
not_plugged_in_electric_network,
|
748
749
|
/**
|
749
750
|
* Used by power switches.
|
750
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
751
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.networks_connected Online documentation}
|
751
752
|
*/
|
752
753
|
networks_connected,
|
753
754
|
/**
|
754
755
|
* Used by power switches.
|
755
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
756
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.networks_disconnected Online documentation}
|
756
757
|
*/
|
757
758
|
networks_disconnected,
|
758
759
|
/**
|
759
760
|
* Used by accumulators.
|
760
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
761
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.charging Online documentation}
|
761
762
|
*/
|
762
763
|
charging,
|
763
764
|
/**
|
764
765
|
* Used by accumulators.
|
765
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
766
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.discharging Online documentation}
|
766
767
|
*/
|
767
768
|
discharging,
|
768
769
|
/**
|
769
770
|
* Used by accumulators.
|
770
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
771
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.fully_charged Online documentation}
|
771
772
|
*/
|
772
773
|
fully_charged,
|
773
774
|
/**
|
774
775
|
* Used by logistic containers.
|
775
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
776
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
|
776
777
|
*/
|
777
778
|
out_of_logistic_network,
|
778
779
|
/**
|
779
780
|
* Used by assembling machines.
|
780
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
781
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.no_recipe Online documentation}
|
781
782
|
*/
|
782
783
|
no_recipe,
|
783
784
|
/**
|
784
785
|
* Used by furnaces.
|
785
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
786
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.no_ingredients Online documentation}
|
786
787
|
*/
|
787
788
|
no_ingredients,
|
788
789
|
/**
|
789
790
|
* Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
|
790
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
791
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.no_input_fluid Online documentation}
|
791
792
|
*/
|
792
793
|
no_input_fluid,
|
793
794
|
/**
|
794
795
|
* Used by labs.
|
795
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
796
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.no_research_in_progress Online documentation}
|
796
797
|
*/
|
797
798
|
no_research_in_progress,
|
798
799
|
/**
|
799
800
|
* Used by mining drills.
|
800
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
801
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.no_minable_resources Online documentation}
|
801
802
|
*/
|
802
803
|
no_minable_resources,
|
803
804
|
/**
|
804
805
|
* Used by cargo bays.
|
805
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
806
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.not_connected_to_hub_or_pad Online documentation}
|
806
807
|
*/
|
807
808
|
not_connected_to_hub_or_pad,
|
808
809
|
/**
|
809
810
|
* Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
|
810
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
811
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.low_input_fluid Online documentation}
|
811
812
|
*/
|
812
813
|
low_input_fluid,
|
813
814
|
/**
|
814
815
|
* Used by crafting machines.
|
815
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
816
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
|
816
817
|
*/
|
817
818
|
fluid_ingredient_shortage,
|
818
819
|
/**
|
819
820
|
* Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
|
820
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
821
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.full_output Online documentation}
|
821
822
|
*/
|
822
823
|
full_output,
|
823
824
|
/**
|
824
825
|
* Used by agricultural towers.
|
825
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
826
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.not_enough_space_in_output Online documentation}
|
826
827
|
*/
|
827
828
|
not_enough_space_in_output,
|
828
829
|
/**
|
829
830
|
* Used by burner energy sources.
|
830
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
831
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
|
831
832
|
*/
|
832
833
|
full_burnt_result_output,
|
833
834
|
/**
|
834
835
|
* Used by crafting machines.
|
835
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
836
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
|
836
837
|
*/
|
837
838
|
item_ingredient_shortage,
|
838
839
|
/**
|
839
840
|
* Used by mining drills when the mining fluid is missing.
|
840
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
841
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.missing_required_fluid Online documentation}
|
841
842
|
*/
|
842
843
|
missing_required_fluid,
|
843
844
|
/**
|
844
845
|
* Used by labs.
|
845
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
846
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.missing_science_packs Online documentation}
|
846
847
|
*/
|
847
848
|
missing_science_packs,
|
848
849
|
/**
|
849
850
|
* Used by inserters.
|
850
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
851
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
|
851
852
|
*/
|
852
853
|
waiting_for_source_items,
|
853
854
|
/**
|
854
855
|
* Used by inserters when wait_for_full_hand is set.
|
855
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
856
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.waiting_for_more_items Online documentation}
|
856
857
|
*/
|
857
858
|
waiting_for_more_items,
|
858
859
|
/**
|
859
860
|
* Used by inserters and mining drills.
|
860
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
861
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
|
861
862
|
*/
|
862
863
|
waiting_for_space_in_destination,
|
863
864
|
/**
|
864
865
|
* Used by the rocket silo.
|
865
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
866
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
|
866
867
|
*/
|
867
868
|
preparing_rocket_for_launch,
|
868
869
|
/**
|
869
870
|
* Used by the rocket silo.
|
870
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
871
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
|
871
872
|
*/
|
872
873
|
waiting_to_launch_rocket,
|
873
874
|
/**
|
874
875
|
* Used by the rocket silo.
|
875
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
876
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.waiting_for_space_in_platform_hub Online documentation}
|
876
877
|
*/
|
877
878
|
waiting_for_space_in_platform_hub,
|
878
879
|
/**
|
879
880
|
* Used by the rocket silo.
|
880
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
881
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.launching_rocket Online documentation}
|
881
882
|
*/
|
882
883
|
launching_rocket,
|
883
884
|
/**
|
884
885
|
* Used by thrusters.
|
885
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
886
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.thrust_not_required Online documentation}
|
886
887
|
*/
|
887
888
|
thrust_not_required,
|
888
889
|
/**
|
889
890
|
* Used by space platform hubs.
|
890
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
891
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.on_the_way Online documentation}
|
891
892
|
*/
|
892
893
|
on_the_way,
|
893
894
|
/**
|
894
895
|
* Used by space platform hubs.
|
895
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
896
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.waiting_in_orbit Online documentation}
|
896
897
|
*/
|
897
898
|
waiting_in_orbit,
|
898
899
|
/**
|
899
900
|
* Used by trains.
|
900
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
901
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.waiting_at_stop Online documentation}
|
901
902
|
*/
|
902
903
|
waiting_at_stop,
|
903
904
|
/**
|
904
905
|
* Used by space platform hubs.
|
905
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
906
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.waiting_for_rockets_to_arrive Online documentation}
|
906
907
|
*/
|
907
908
|
waiting_for_rockets_to_arrive,
|
908
909
|
/**
|
909
910
|
* Used by space platform hubs.
|
910
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
911
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.not_enough_thrust Online documentation}
|
911
912
|
*/
|
912
913
|
not_enough_thrust,
|
913
914
|
/**
|
914
915
|
* Used by trains.
|
915
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
916
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.destination_stop_full Online documentation}
|
916
917
|
*/
|
917
918
|
destination_stop_full,
|
918
919
|
/**
|
919
920
|
* Used by trains and space platform hubs.
|
920
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
921
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.no_path Online documentation}
|
921
922
|
*/
|
922
923
|
no_path,
|
923
924
|
/**
|
924
925
|
* Used by beacons.
|
925
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
926
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
|
926
927
|
*/
|
927
928
|
no_modules_to_transmit,
|
928
929
|
/**
|
929
930
|
* Used by roboports.
|
930
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
931
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
|
931
932
|
*/
|
932
933
|
recharging_after_power_outage,
|
933
934
|
/**
|
934
935
|
* Used by inserters targeting entity ghosts.
|
935
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
936
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
|
936
937
|
*/
|
937
938
|
waiting_for_target_to_be_built,
|
938
939
|
/**
|
939
940
|
* Used by inserters targeting rails.
|
940
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
941
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.waiting_for_train Online documentation}
|
941
942
|
*/
|
942
943
|
waiting_for_train,
|
943
944
|
/**
|
944
945
|
* Used by ammo turrets.
|
945
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
946
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.no_ammo Online documentation}
|
946
947
|
*/
|
947
948
|
no_ammo,
|
948
949
|
/**
|
949
950
|
* Used by heat energy sources.
|
950
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
951
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.low_temperature Online documentation}
|
951
952
|
*/
|
952
953
|
low_temperature,
|
953
954
|
/**
|
954
955
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
955
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
956
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.disabled Online documentation}
|
956
957
|
*/
|
957
958
|
disabled,
|
958
959
|
/**
|
959
960
|
* Used by lamps.
|
960
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
961
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
|
961
962
|
*/
|
962
963
|
turned_off_during_daytime,
|
963
964
|
/**
|
964
965
|
* Used by rail signals.
|
965
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
966
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
|
966
967
|
*/
|
967
968
|
not_connected_to_rail,
|
968
969
|
/**
|
969
970
|
* Used by rail signals.
|
970
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
971
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.cant_divide_segments Online documentation}
|
971
972
|
*/
|
972
973
|
cant_divide_segments,
|
973
974
|
/**
|
974
975
|
* Used by filter inserters.
|
975
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
976
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.no_filter Online documentation}
|
976
977
|
*/
|
977
978
|
no_filter,
|
978
979
|
/**
|
979
980
|
* Used by agricultural towers.
|
980
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
981
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.no_spot_seedable_by_inputs Online documentation}
|
981
982
|
*/
|
982
983
|
no_spot_seedable_by_inputs,
|
983
984
|
/**
|
984
985
|
* Used by agricultural towers.
|
985
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
986
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.waiting_for_plants_to_grow Online documentation}
|
986
987
|
*/
|
987
988
|
waiting_for_plants_to_grow,
|
988
989
|
/**
|
989
990
|
* Used by asteroid collectors.
|
990
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
991
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.computing_navigation Online documentation}
|
991
992
|
*/
|
992
993
|
computing_navigation,
|
993
994
|
/**
|
994
995
|
* Used by pipes, pipes to ground and storage tanks.
|
995
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
996
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.pipeline_overextended Online documentation}
|
996
997
|
*/
|
997
998
|
pipeline_overextended,
|
998
999
|
/**
|
999
1000
|
* Used by assembling machines.
|
1000
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1001
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.recipe_not_researched Online documentation}
|
1001
1002
|
*/
|
1002
1003
|
recipe_not_researched,
|
1003
1004
|
/**
|
1004
1005
|
* Used by assembling machines.
|
1005
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1006
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.entity_status.recipe_is_parameter Online documentation}
|
1006
1007
|
*/
|
1007
1008
|
recipe_is_parameter,
|
1008
1009
|
}
|
@@ -1012,8 +1013,8 @@ declare global {
|
|
1012
1013
|
yellow,
|
1013
1014
|
}
|
1014
1015
|
/**
|
1015
|
-
* See the {@linkplain https://lua-api.factorio.com/2.0.
|
1016
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1016
|
+
* See the {@linkplain https://lua-api.factorio.com/2.0.58/events.html events page} for more info on what events contain and when they get raised.
|
1017
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.events Online documentation}
|
1017
1018
|
*/
|
1018
1019
|
namespace events {
|
1019
1020
|
/**
|
@@ -1624,6 +1625,10 @@ declare global {
|
|
1624
1625
|
* Event type: {@link OnResearchMovedEvent}
|
1625
1626
|
*/
|
1626
1627
|
const on_research_moved: EventId<OnResearchMovedEvent>
|
1628
|
+
/**
|
1629
|
+
* Event type: {@link OnResearchQueuedEvent}
|
1630
|
+
*/
|
1631
|
+
const on_research_queued: EventId<OnResearchQueuedEvent>
|
1627
1632
|
/**
|
1628
1633
|
* Event type: {@link OnResearchReversedEvent}
|
1629
1634
|
*/
|
@@ -1834,8 +1839,8 @@ declare global {
|
|
1834
1839
|
const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent>
|
1835
1840
|
}
|
1836
1841
|
/**
|
1837
|
-
* See the {@linkplain https://lua-api.factorio.com/2.0.
|
1838
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1842
|
+
* See the {@linkplain https://lua-api.factorio.com/2.0.58/events.html events page} for more info on what events contain and when they get raised.
|
1843
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.events Online documentation}
|
1839
1844
|
*/
|
1840
1845
|
type events = (typeof events)[keyof typeof events]
|
1841
1846
|
enum flow_precision_index {
|
@@ -1851,17 +1856,17 @@ declare global {
|
|
1851
1856
|
enum game_controller_interaction {
|
1852
1857
|
/**
|
1853
1858
|
* Game controller will always hover this element regardless of type or state.
|
1854
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1859
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.game_controller_interaction.always Online documentation}
|
1855
1860
|
*/
|
1856
1861
|
always,
|
1857
1862
|
/**
|
1858
1863
|
* Never hover this element with a game controller.
|
1859
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1864
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.game_controller_interaction.never Online documentation}
|
1860
1865
|
*/
|
1861
1866
|
never,
|
1862
1867
|
/**
|
1863
1868
|
* Hover according to the element type and implementation.
|
1864
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1869
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.game_controller_interaction.normal Online documentation}
|
1865
1870
|
*/
|
1866
1871
|
normal,
|
1867
1872
|
}
|
@@ -1944,6 +1949,7 @@ declare global {
|
|
1944
1949
|
change_train_stop_station,
|
1945
1950
|
change_train_wait_condition,
|
1946
1951
|
change_train_wait_condition_data,
|
1952
|
+
cheat,
|
1947
1953
|
clear_cursor,
|
1948
1954
|
connect_rolling_stock,
|
1949
1955
|
copy,
|
@@ -2186,22 +2192,22 @@ declare global {
|
|
2186
2192
|
logistic_container_trash,
|
2187
2193
|
/**
|
2188
2194
|
* Deprecated, replaced by `"crafter_input"`.
|
2189
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2195
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.inventory.furnace_source Online documentation}
|
2190
2196
|
*/
|
2191
2197
|
furnace_source,
|
2192
2198
|
/**
|
2193
2199
|
* Deprecated, replaced by `"crafter_output"`.
|
2194
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2200
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.inventory.furnace_result Online documentation}
|
2195
2201
|
*/
|
2196
2202
|
furnace_result,
|
2197
2203
|
/**
|
2198
2204
|
* Deprecated, replaced by `"crafter_modules"`.
|
2199
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2205
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.inventory.furnace_modules Online documentation}
|
2200
2206
|
*/
|
2201
2207
|
furnace_modules,
|
2202
2208
|
/**
|
2203
2209
|
* Deprecated, replaced by `"crafter_trash"`.
|
2204
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2210
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.inventory.furnace_trash Online documentation}
|
2205
2211
|
*/
|
2206
2212
|
furnace_trash,
|
2207
2213
|
character_main,
|
@@ -2221,27 +2227,27 @@ declare global {
|
|
2221
2227
|
robot_repair,
|
2222
2228
|
/**
|
2223
2229
|
* Deprecated, replaced by `"crafter_input"`.
|
2224
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2230
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.inventory.assembling_machine_input Online documentation}
|
2225
2231
|
*/
|
2226
2232
|
assembling_machine_input,
|
2227
2233
|
/**
|
2228
2234
|
* Deprecated, replaced by `"crafter_output"`.
|
2229
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2235
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.inventory.assembling_machine_output Online documentation}
|
2230
2236
|
*/
|
2231
2237
|
assembling_machine_output,
|
2232
2238
|
/**
|
2233
2239
|
* Deprecated, replaced by `"crafter_modules"`.
|
2234
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2240
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.inventory.assembling_machine_modules Online documentation}
|
2235
2241
|
*/
|
2236
2242
|
assembling_machine_modules,
|
2237
2243
|
/**
|
2238
2244
|
* Used for ejected items, or items held by inserters that can't be inserted due the recipe being changed with the circuit network.
|
2239
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2245
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.inventory.assembling_machine_dump Online documentation}
|
2240
2246
|
*/
|
2241
2247
|
assembling_machine_dump,
|
2242
2248
|
/**
|
2243
2249
|
* Deprecated, replaced by `"crafter_trash"`.
|
2244
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2250
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.inventory.assembling_machine_trash Online documentation}
|
2245
2251
|
*/
|
2246
2252
|
assembling_machine_trash,
|
2247
2253
|
lab_input,
|
@@ -2253,17 +2259,17 @@ declare global {
|
|
2253
2259
|
rocket_silo_trash,
|
2254
2260
|
/**
|
2255
2261
|
* Deprecated, replaced by `"crafter_input"`.
|
2256
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2262
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.inventory.rocket_silo_input Online documentation}
|
2257
2263
|
*/
|
2258
2264
|
rocket_silo_input,
|
2259
2265
|
/**
|
2260
2266
|
* Deprecated, replaced by `"crafter_output"`.
|
2261
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2267
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.inventory.rocket_silo_output Online documentation}
|
2262
2268
|
*/
|
2263
2269
|
rocket_silo_output,
|
2264
2270
|
/**
|
2265
2271
|
* Deprecated, replaced by `"crafter_modules"`.
|
2266
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2272
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.inventory.rocket_silo_modules Online documentation}
|
2267
2273
|
*/
|
2268
2274
|
rocket_silo_modules,
|
2269
2275
|
cargo_unit,
|
@@ -2292,10 +2298,15 @@ declare global {
|
|
2292
2298
|
crafter_modules,
|
2293
2299
|
/**
|
2294
2300
|
* Used for spoil result items that do not fit into the recipe slots, and for items that are ejected when changing the recipe via remote view.
|
2295
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2301
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.inventory.crafter_trash Online documentation}
|
2296
2302
|
*/
|
2297
2303
|
crafter_trash,
|
2298
2304
|
asteroid_collector_output,
|
2305
|
+
asteroid_collector_arm,
|
2306
|
+
}
|
2307
|
+
enum logistic_group_type {
|
2308
|
+
with_trash,
|
2309
|
+
roboport,
|
2299
2310
|
}
|
2300
2311
|
enum logistic_member_index {
|
2301
2312
|
logistic_container,
|
@@ -2330,12 +2341,12 @@ declare global {
|
|
2330
2341
|
circuit_controlled,
|
2331
2342
|
/**
|
2332
2343
|
* Used by rocket silos.
|
2333
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2344
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
|
2334
2345
|
*/
|
2335
2346
|
transitional_request_controlled,
|
2336
2347
|
/**
|
2337
2348
|
* Used by space platform hubs.
|
2338
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2349
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
|
2339
2350
|
*/
|
2340
2351
|
request_missing_materials_controlled,
|
2341
2352
|
}
|
@@ -2354,17 +2365,17 @@ declare global {
|
|
2354
2365
|
enum print_skip {
|
2355
2366
|
/**
|
2356
2367
|
* Print will not be skipped.
|
2357
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2368
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.print_skip.never Online documentation}
|
2358
2369
|
*/
|
2359
2370
|
never,
|
2360
2371
|
/**
|
2361
2372
|
* Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
|
2362
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2373
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.print_skip.if_redundant Online documentation}
|
2363
2374
|
*/
|
2364
2375
|
if_redundant,
|
2365
2376
|
/**
|
2366
2377
|
* Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
|
2367
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2378
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.print_skip.if_visible Online documentation}
|
2368
2379
|
*/
|
2369
2380
|
if_visible,
|
2370
2381
|
}
|
@@ -2375,7 +2386,7 @@ declare global {
|
|
2375
2386
|
}
|
2376
2387
|
/**
|
2377
2388
|
* This define describes all top-level prototypes and their associated subtypes. It is organized as a lookup table, meaning the values of all the defines is `0`. As an example, `defines.prototypes['entity']` looks like `{furnace=0, inserter=0, container=0, ...}`.
|
2378
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2389
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.prototypes Online documentation}
|
2379
2390
|
*/
|
2380
2391
|
interface prototypes {
|
2381
2392
|
achievement: {
|
@@ -2667,6 +2678,9 @@ declare global {
|
|
2667
2678
|
"map-settings": {
|
2668
2679
|
"map-settings": 0
|
2669
2680
|
}
|
2681
|
+
"mod-data": {
|
2682
|
+
"mod-data": 0
|
2683
|
+
}
|
2670
2684
|
"module-category": {
|
2671
2685
|
"module-category": 0
|
2672
2686
|
}
|
@@ -2767,7 +2781,7 @@ declare global {
|
|
2767
2781
|
}
|
2768
2782
|
/**
|
2769
2783
|
* This define describes all top-level prototypes and their associated subtypes. It is organized as a lookup table, meaning the values of all the defines is `0`. As an example, `defines.prototypes['entity']` looks like `{furnace=0, inserter=0, container=0, ...}`.
|
2770
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2784
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.prototypes Online documentation}
|
2771
2785
|
*/
|
2772
2786
|
const prototypes: prototypes
|
2773
2787
|
enum rail_connection_direction {
|
@@ -2893,128 +2907,128 @@ declare global {
|
|
2893
2907
|
enum robot_order_type {
|
2894
2908
|
/**
|
2895
2909
|
* Construct a ghost.
|
2896
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2910
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.robot_order_type.construct Online documentation}
|
2897
2911
|
*/
|
2898
2912
|
construct,
|
2899
2913
|
/**
|
2900
2914
|
* Pickup an item.
|
2901
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2915
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.robot_order_type.pickup Online documentation}
|
2902
2916
|
*/
|
2903
2917
|
pickup,
|
2904
2918
|
/**
|
2905
2919
|
* Deliver an item.
|
2906
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2920
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.robot_order_type.deliver Online documentation}
|
2907
2921
|
*/
|
2908
2922
|
deliver,
|
2909
2923
|
/**
|
2910
2924
|
* Repair an entity.
|
2911
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2925
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.robot_order_type.repair Online documentation}
|
2912
2926
|
*/
|
2913
2927
|
repair,
|
2914
2928
|
/**
|
2915
2929
|
* Deconstruct an entity.
|
2916
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2930
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.robot_order_type.deconstruct Online documentation}
|
2917
2931
|
*/
|
2918
2932
|
deconstruct,
|
2919
2933
|
/**
|
2920
2934
|
* Deliver specific items to an entity (item request proxy).
|
2921
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2935
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.robot_order_type.deliver_items Online documentation}
|
2922
2936
|
*/
|
2923
2937
|
deliver_items,
|
2924
2938
|
/**
|
2925
2939
|
* Upgrade an entity.
|
2926
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2940
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.robot_order_type.upgrade Online documentation}
|
2927
2941
|
*/
|
2928
2942
|
upgrade,
|
2929
2943
|
/**
|
2930
2944
|
* Explode a cliff.
|
2931
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2945
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.robot_order_type.explode_cliff Online documentation}
|
2932
2946
|
*/
|
2933
2947
|
explode_cliff,
|
2934
2948
|
/**
|
2935
2949
|
* Pickup items from an entity (item request proxy).
|
2936
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2950
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.robot_order_type.pickup_items Online documentation}
|
2937
2951
|
*/
|
2938
2952
|
pickup_items,
|
2939
2953
|
}
|
2940
2954
|
/**
|
2941
2955
|
* The various parts of the launch sequence of the rocket silo.
|
2942
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2956
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.rocket_silo_status Online documentation}
|
2943
2957
|
*/
|
2944
2958
|
enum rocket_silo_status {
|
2945
2959
|
/**
|
2946
2960
|
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
2947
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2961
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
|
2948
2962
|
*/
|
2949
2963
|
building_rocket,
|
2950
2964
|
/**
|
2951
2965
|
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
2952
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2966
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
|
2953
2967
|
*/
|
2954
2968
|
create_rocket,
|
2955
2969
|
/**
|
2956
2970
|
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
2957
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2971
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
|
2958
2972
|
*/
|
2959
2973
|
lights_blinking_open,
|
2960
2974
|
/**
|
2961
2975
|
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
2962
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2976
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
|
2963
2977
|
*/
|
2964
2978
|
doors_opening,
|
2965
2979
|
/**
|
2966
2980
|
* The next state is `rocket_rising` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
2967
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2981
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
|
2968
2982
|
*/
|
2969
2983
|
doors_opened,
|
2970
2984
|
/**
|
2971
2985
|
* The next state is `arms_advance` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
2972
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2986
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
|
2973
2987
|
*/
|
2974
2988
|
rocket_rising,
|
2975
2989
|
/**
|
2976
2990
|
* The next state is `rocket_ready` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
2977
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2991
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
|
2978
2992
|
*/
|
2979
2993
|
arms_advance,
|
2980
2994
|
/**
|
2981
2995
|
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
2982
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2996
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
|
2983
2997
|
*/
|
2984
2998
|
rocket_ready,
|
2985
2999
|
/**
|
2986
3000
|
* The next state is `launch_started`.
|
2987
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3001
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
|
2988
3002
|
*/
|
2989
3003
|
launch_starting,
|
2990
3004
|
/**
|
2991
3005
|
* The next state is `arms_retract` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
2992
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3006
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
|
2993
3007
|
*/
|
2994
3008
|
engine_starting,
|
2995
3009
|
/**
|
2996
3010
|
* The next state is `rocket_flying` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
2997
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3011
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
|
2998
3012
|
*/
|
2999
3013
|
arms_retract,
|
3000
3014
|
/**
|
3001
3015
|
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
3002
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3016
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
|
3003
3017
|
*/
|
3004
3018
|
rocket_flying,
|
3005
3019
|
/**
|
3006
3020
|
* The next state is `doors_closing`.
|
3007
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3021
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
|
3008
3022
|
*/
|
3009
3023
|
lights_blinking_close,
|
3010
3024
|
/**
|
3011
3025
|
* The next state is `building_rocket`.
|
3012
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3026
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
|
3013
3027
|
*/
|
3014
3028
|
doors_closing,
|
3015
3029
|
/**
|
3016
3030
|
* The next state is `engine_starting` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
3017
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3031
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.rocket_silo_status.launch_started Online documentation}
|
3018
3032
|
*/
|
3019
3033
|
launch_started,
|
3020
3034
|
}
|
@@ -3031,74 +3045,74 @@ declare global {
|
|
3031
3045
|
}
|
3032
3046
|
/**
|
3033
3047
|
* State of an ordinary rail signal.
|
3034
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3048
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.signal_state Online documentation}
|
3035
3049
|
*/
|
3036
3050
|
enum signal_state {
|
3037
3051
|
/**
|
3038
3052
|
* Green.
|
3039
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3053
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.signal_state.open Online documentation}
|
3040
3054
|
*/
|
3041
3055
|
open,
|
3042
3056
|
/**
|
3043
3057
|
* Red.
|
3044
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3058
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.signal_state.closed Online documentation}
|
3045
3059
|
*/
|
3046
3060
|
closed,
|
3047
3061
|
/**
|
3048
3062
|
* Orange.
|
3049
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3063
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.signal_state.reserved Online documentation}
|
3050
3064
|
*/
|
3051
3065
|
reserved,
|
3052
3066
|
/**
|
3053
3067
|
* Red - From circuit network.
|
3054
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3068
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
3055
3069
|
*/
|
3056
3070
|
reserved_by_circuit_network,
|
3057
3071
|
}
|
3058
3072
|
enum space_platform_state {
|
3059
3073
|
/**
|
3060
3074
|
* Waiting for a starter pack.
|
3061
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3075
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
|
3062
3076
|
*/
|
3063
3077
|
waiting_for_starter_pack,
|
3064
3078
|
/**
|
3065
3079
|
* Starter pack was requested from the logistics system.
|
3066
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3080
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
|
3067
3081
|
*/
|
3068
3082
|
starter_pack_requested,
|
3069
3083
|
/**
|
3070
3084
|
* Starter pack is on the way.
|
3071
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3085
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
|
3072
3086
|
*/
|
3073
3087
|
starter_pack_on_the_way,
|
3074
3088
|
/**
|
3075
3089
|
* Following the path.
|
3076
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3090
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.space_platform_state.on_the_path Online documentation}
|
3077
3091
|
*/
|
3078
3092
|
on_the_path,
|
3079
3093
|
/**
|
3080
3094
|
* Platform is ready to leave this planet and does not accept deliveries.
|
3081
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3095
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
|
3082
3096
|
*/
|
3083
3097
|
waiting_for_departure,
|
3084
3098
|
/**
|
3085
3099
|
* Doesn't have any stations in schedule.
|
3086
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3100
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.space_platform_state.no_schedule Online documentation}
|
3087
3101
|
*/
|
3088
3102
|
no_schedule,
|
3089
3103
|
/**
|
3090
3104
|
* Doesn't have anywhere to go.
|
3091
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3105
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.space_platform_state.no_path Online documentation}
|
3092
3106
|
*/
|
3093
3107
|
no_path,
|
3094
3108
|
/**
|
3095
3109
|
* Waiting at a station.
|
3096
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3110
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
|
3097
3111
|
*/
|
3098
3112
|
waiting_at_station,
|
3099
3113
|
/**
|
3100
3114
|
* Paused.
|
3101
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3115
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.space_platform_state.paused Online documentation}
|
3102
3116
|
*/
|
3103
3117
|
paused,
|
3104
3118
|
}
|
@@ -3127,52 +3141,52 @@ declare global {
|
|
3127
3141
|
enum train_state {
|
3128
3142
|
/**
|
3129
3143
|
* Normal state -- following the path.
|
3130
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3144
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.train_state.on_the_path Online documentation}
|
3131
3145
|
*/
|
3132
3146
|
on_the_path,
|
3133
3147
|
/**
|
3134
3148
|
* Doesn't have anywhere to go.
|
3135
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3149
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.train_state.no_schedule Online documentation}
|
3136
3150
|
*/
|
3137
3151
|
no_schedule,
|
3138
3152
|
/**
|
3139
3153
|
* Has no path and is stopped.
|
3140
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3154
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.train_state.no_path Online documentation}
|
3141
3155
|
*/
|
3142
3156
|
no_path,
|
3143
3157
|
/**
|
3144
3158
|
* Braking before a rail signal.
|
3145
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3159
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.train_state.arrive_signal Online documentation}
|
3146
3160
|
*/
|
3147
3161
|
arrive_signal,
|
3148
3162
|
/**
|
3149
3163
|
* Waiting at a signal.
|
3150
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3164
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.train_state.wait_signal Online documentation}
|
3151
3165
|
*/
|
3152
3166
|
wait_signal,
|
3153
3167
|
/**
|
3154
3168
|
* Braking before a station.
|
3155
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3169
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.train_state.arrive_station Online documentation}
|
3156
3170
|
*/
|
3157
3171
|
arrive_station,
|
3158
3172
|
/**
|
3159
3173
|
* Switched to manual control and has to stop.
|
3160
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3174
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.train_state.manual_control_stop Online documentation}
|
3161
3175
|
*/
|
3162
3176
|
manual_control_stop,
|
3163
3177
|
/**
|
3164
3178
|
* Can move if user explicitly sits in and rides the train.
|
3165
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3179
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.train_state.manual_control Online documentation}
|
3166
3180
|
*/
|
3167
3181
|
manual_control,
|
3168
3182
|
/**
|
3169
3183
|
* Waiting at a station.
|
3170
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3184
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.train_state.wait_station Online documentation}
|
3171
3185
|
*/
|
3172
3186
|
wait_station,
|
3173
3187
|
/**
|
3174
3188
|
* Same as no_path but all candidate train stops are full
|
3175
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3189
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.train_state.destination_full Online documentation}
|
3176
3190
|
*/
|
3177
3191
|
destination_full,
|
3178
3192
|
}
|
@@ -3202,17 +3216,17 @@ declare global {
|
|
3202
3216
|
enum wire_origin {
|
3203
3217
|
/**
|
3204
3218
|
* These wires can be modified by players, scripts, and the game. They are visible to the player if the entity's `draw_circuit_wires` prototype property is set to `true` and both ends of it are on the same surface.
|
3205
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3219
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.wire_origin.player Online documentation}
|
3206
3220
|
*/
|
3207
3221
|
player,
|
3208
3222
|
/**
|
3209
3223
|
* These wires can be modified by scripts and the game. They are not visible to the player, irrespective of the `draw_circuit_wires` prototype property.
|
3210
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3224
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.wire_origin.script Online documentation}
|
3211
3225
|
*/
|
3212
3226
|
script,
|
3213
3227
|
/**
|
3214
3228
|
* These wires can only be modified by the game. They are not visible to the player, irrespective of the `draw_circuit_wires` prototype property.
|
3215
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3229
|
+
* @see {@link https://lua-api.factorio.com/2.0.58/defines.html#defines.wire_origin.radars Online documentation}
|
3216
3230
|
*/
|
3217
3231
|
radars,
|
3218
3232
|
}
|