typed-factorio 3.21.0 → 3.23.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 +3 -3
- package/prototype/generated/prototypes.d.ts +2248 -2147
- package/prototype/generated/types.d.ts +2268 -2198
- package/runtime/generated/classes.d.ts +4315 -3828
- package/runtime/generated/concepts.d.ts +4558 -4117
- package/runtime/generated/defines.d.ts +202 -188
- package/runtime/generated/events.d.ts +215 -205
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +8 -8
@@ -233,7 +233,7 @@ declare global {
|
|
233
233
|
}
|
234
234
|
/**
|
235
235
|
* AI command exit status. See {@link LuaEntity#set_command LuaEntity::set_command}
|
236
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
236
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.behavior_result Online documentation}
|
237
237
|
*/
|
238
238
|
enum behavior_result {
|
239
239
|
in_progress,
|
@@ -257,33 +257,33 @@ declare global {
|
|
257
257
|
enum cargo_destination {
|
258
258
|
/**
|
259
259
|
* 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.
|
260
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.cargo_destination.invalid Online documentation}
|
261
261
|
*/
|
262
262
|
invalid,
|
263
263
|
/**
|
264
264
|
* Cargo pods with orbit destination are destroyed when ascent is completed.
|
265
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
265
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.cargo_destination.orbit Online documentation}
|
266
266
|
*/
|
267
267
|
orbit,
|
268
268
|
/**
|
269
269
|
* Any cargo landing pad or space platform hub.
|
270
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
270
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.cargo_destination.station Online documentation}
|
271
271
|
*/
|
272
272
|
station,
|
273
273
|
/**
|
274
274
|
* 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.
|
275
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.cargo_destination.surface Online documentation}
|
276
276
|
*/
|
277
277
|
surface,
|
278
278
|
/**
|
279
279
|
* 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.
|
280
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.cargo_destination.space_platform Online documentation}
|
281
281
|
*/
|
282
282
|
space_platform,
|
283
283
|
}
|
284
284
|
/**
|
285
285
|
* State of a chain signal.
|
286
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
286
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.chain_signal_state Online documentation}
|
287
287
|
*/
|
288
288
|
enum chain_signal_state {
|
289
289
|
none,
|
@@ -301,73 +301,73 @@ declare global {
|
|
301
301
|
}
|
302
302
|
/**
|
303
303
|
* Command given to units describing what they should do.
|
304
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
304
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.command Online documentation}
|
305
305
|
*/
|
306
306
|
enum command {
|
307
307
|
/**
|
308
308
|
* Attack another entity.
|
309
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
309
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.command.attack Online documentation}
|
310
310
|
*/
|
311
311
|
attack = 0,
|
312
312
|
/**
|
313
313
|
* Go to a specific position.
|
314
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
314
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.command.go_to_location Online documentation}
|
315
315
|
*/
|
316
316
|
go_to_location = 1,
|
317
317
|
/**
|
318
318
|
* Chain commands together, see {@link defines.compound_command}.
|
319
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
319
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.command.compound Online documentation}
|
320
320
|
*/
|
321
321
|
compound = 2,
|
322
322
|
/**
|
323
323
|
* Do what your group wants you to do.
|
324
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
324
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.command.group Online documentation}
|
325
325
|
*/
|
326
326
|
group = 3,
|
327
327
|
/**
|
328
328
|
* Go to a place and attack what you see.
|
329
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
329
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.command.attack_area Online documentation}
|
330
330
|
*/
|
331
331
|
attack_area = 4,
|
332
332
|
/**
|
333
333
|
* Chill.
|
334
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
334
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.command.wander Online documentation}
|
335
335
|
*/
|
336
336
|
wander = 5,
|
337
337
|
/**
|
338
338
|
* Flee from another entity.
|
339
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
339
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.command.flee Online documentation}
|
340
340
|
*/
|
341
341
|
flee = 6,
|
342
342
|
/**
|
343
343
|
* Stop moving and stay where you are.
|
344
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
344
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.command.stop Online documentation}
|
345
345
|
*/
|
346
346
|
stop = 7,
|
347
347
|
/**
|
348
348
|
* Go to a position and build a base there.
|
349
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
349
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.command.build_base Online documentation}
|
350
350
|
*/
|
351
351
|
build_base = 8,
|
352
352
|
}
|
353
353
|
/**
|
354
354
|
* How commands are joined together in a compound command (see {@link defines.command.compound}).
|
355
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
355
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.compound_command Online documentation}
|
356
356
|
*/
|
357
357
|
enum compound_command {
|
358
358
|
/**
|
359
359
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
360
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
360
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.compound_command.logical_and Online documentation}
|
361
361
|
*/
|
362
362
|
logical_and,
|
363
363
|
/**
|
364
364
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
365
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
365
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.compound_command.logical_or Online documentation}
|
366
366
|
*/
|
367
367
|
logical_or,
|
368
368
|
/**
|
369
369
|
* 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.
|
370
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.compound_command.return_last Online documentation}
|
371
371
|
*/
|
372
372
|
return_last,
|
373
373
|
}
|
@@ -429,172 +429,172 @@ declare global {
|
|
429
429
|
enum type {
|
430
430
|
/**
|
431
431
|
* {@link LuaContainerControlBehavior}
|
432
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
432
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.container Online documentation}
|
433
433
|
*/
|
434
434
|
container,
|
435
435
|
/**
|
436
436
|
* {@link LuaGenericOnOffControlBehavior}
|
437
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
437
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
|
438
438
|
*/
|
439
439
|
generic_on_off,
|
440
440
|
/**
|
441
441
|
* {@link LuaInserterControlBehavior}
|
442
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
442
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.inserter Online documentation}
|
443
443
|
*/
|
444
444
|
inserter,
|
445
445
|
/**
|
446
446
|
* {@link LuaLampControlBehavior}
|
447
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
447
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.lamp Online documentation}
|
448
448
|
*/
|
449
449
|
lamp,
|
450
450
|
/**
|
451
451
|
* {@link LuaLogisticContainerControlBehavior}
|
452
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
452
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.logistic_container Online documentation}
|
453
453
|
*/
|
454
454
|
logistic_container,
|
455
455
|
/**
|
456
456
|
* {@link LuaRoboportControlBehavior}
|
457
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
457
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.roboport Online documentation}
|
458
458
|
*/
|
459
459
|
roboport,
|
460
460
|
/**
|
461
461
|
* {@link LuaStorageTankControlBehavior}
|
462
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
462
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.storage_tank Online documentation}
|
463
463
|
*/
|
464
464
|
storage_tank,
|
465
465
|
/**
|
466
466
|
* {@link LuaTrainStopControlBehavior}
|
467
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
467
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.train_stop Online documentation}
|
468
468
|
*/
|
469
469
|
train_stop,
|
470
470
|
/**
|
471
471
|
* {@link LuaDeciderCombinatorControlBehavior}
|
472
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
472
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
|
473
473
|
*/
|
474
474
|
decider_combinator,
|
475
475
|
/**
|
476
476
|
* {@link LuaArithmeticCombinatorControlBehavior}
|
477
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
477
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
|
478
478
|
*/
|
479
479
|
arithmetic_combinator,
|
480
480
|
/**
|
481
481
|
* {@link LuaConstantCombinatorControlBehavior}
|
482
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
482
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
|
483
483
|
*/
|
484
484
|
constant_combinator,
|
485
485
|
/**
|
486
486
|
* {@link LuaTransportBeltControlBehavior}
|
487
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
487
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.transport_belt Online documentation}
|
488
488
|
*/
|
489
489
|
transport_belt,
|
490
490
|
/**
|
491
491
|
* {@link LuaAccumulatorControlBehavior}
|
492
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
492
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.accumulator Online documentation}
|
493
493
|
*/
|
494
494
|
accumulator,
|
495
495
|
/**
|
496
496
|
* {@link LuaRailSignalBaseControlBehavior}
|
497
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
497
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.rail_signal Online documentation}
|
498
498
|
*/
|
499
499
|
rail_signal,
|
500
500
|
/**
|
501
501
|
* {@link LuaRailSignalBaseControlBehavior}
|
502
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
502
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
|
503
503
|
*/
|
504
504
|
rail_chain_signal,
|
505
505
|
/**
|
506
506
|
* {@link LuaWallControlBehavior}
|
507
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
507
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.wall Online documentation}
|
508
508
|
*/
|
509
509
|
wall,
|
510
510
|
/**
|
511
511
|
* {@link LuaMiningDrillControlBehavior}
|
512
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
512
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.mining_drill Online documentation}
|
513
513
|
*/
|
514
514
|
mining_drill,
|
515
515
|
/**
|
516
516
|
* {@link LuaProgrammableSpeakerControlBehavior}
|
517
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
517
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
|
518
518
|
*/
|
519
519
|
programmable_speaker,
|
520
520
|
/**
|
521
521
|
* {@link LuaAssemblingMachineControlBehavior}
|
522
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
522
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.assembling_machine Online documentation}
|
523
523
|
*/
|
524
524
|
assembling_machine,
|
525
525
|
/**
|
526
526
|
* {@link LuaPumpControlBehavior}
|
527
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
527
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.pump Online documentation}
|
528
528
|
*/
|
529
529
|
pump,
|
530
530
|
/**
|
531
531
|
* {@link LuaSelectorCombinatorControlBehavior}
|
532
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
532
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.selector_combinator Online documentation}
|
533
533
|
*/
|
534
534
|
selector_combinator,
|
535
535
|
/**
|
536
536
|
* {@link LuaRocketSiloControlBehavior}
|
537
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
537
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.rocket_silo Online documentation}
|
538
538
|
*/
|
539
539
|
rocket_silo,
|
540
540
|
/**
|
541
541
|
* {@link LuaTurretControlBehavior}
|
542
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
542
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.turret Online documentation}
|
543
543
|
*/
|
544
544
|
turret,
|
545
545
|
/**
|
546
546
|
* {@link LuaReactorControlBehavior}
|
547
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
547
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.reactor Online documentation}
|
548
548
|
*/
|
549
549
|
reactor,
|
550
550
|
/**
|
551
551
|
* {@link LuaSpacePlatformHubControlBehavior}
|
552
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
552
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.space_platform_hub Online documentation}
|
553
553
|
*/
|
554
554
|
space_platform_hub,
|
555
555
|
/**
|
556
556
|
* {@link LuaArtilleryTurretControlBehavior}
|
557
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
557
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.artillery_turret Online documentation}
|
558
558
|
*/
|
559
559
|
artillery_turret,
|
560
560
|
/**
|
561
561
|
* {@link LuaAsteroidCollectorControlBehavior}
|
562
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
562
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.asteroid_collector Online documentation}
|
563
563
|
*/
|
564
564
|
asteroid_collector,
|
565
565
|
/**
|
566
566
|
* {@link LuaRadarControlBehavior}
|
567
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
567
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.radar Online documentation}
|
568
568
|
*/
|
569
569
|
radar,
|
570
570
|
/**
|
571
571
|
* {@link LuaDisplayPanelControlBehavior}
|
572
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
572
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.display_panel Online documentation}
|
573
573
|
*/
|
574
574
|
display_panel,
|
575
575
|
/**
|
576
576
|
* {@link LuaLoaderControlBehavior}
|
577
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
577
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.loader Online documentation}
|
578
578
|
*/
|
579
579
|
loader,
|
580
580
|
/**
|
581
581
|
* {@link LuaCargoLandingPadControlBehavior}
|
582
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
582
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.cargo_landing_pad Online documentation}
|
583
583
|
*/
|
584
584
|
cargo_landing_pad,
|
585
585
|
/**
|
586
586
|
* {@link LuaAgriculturalTowerControlBehavior}
|
587
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
587
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.agricultural_tower Online documentation}
|
588
588
|
*/
|
589
589
|
agricultural_tower,
|
590
590
|
/**
|
591
591
|
* {@link LuaFurnaceControlBehavior}
|
592
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
592
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.furnace Online documentation}
|
593
593
|
*/
|
594
594
|
furnace,
|
595
595
|
/**
|
596
596
|
* {@link LuaProxyContainerControlBehavior}
|
597
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
597
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.control_behavior.type.proxy_container Online documentation}
|
598
598
|
*/
|
599
599
|
proxy_container,
|
600
600
|
}
|
@@ -602,37 +602,37 @@ declare global {
|
|
602
602
|
enum controllers {
|
603
603
|
/**
|
604
604
|
* 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.
|
605
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.controllers.ghost Online documentation}
|
606
606
|
*/
|
607
607
|
ghost,
|
608
608
|
/**
|
609
609
|
* The controller controls a character. This is the default controller in freeplay.
|
610
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
610
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.controllers.character Online documentation}
|
611
611
|
*/
|
612
612
|
character,
|
613
613
|
/**
|
614
614
|
* 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.
|
615
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.controllers.god Online documentation}
|
616
616
|
*/
|
617
617
|
god,
|
618
618
|
/**
|
619
619
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
620
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
620
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.controllers.editor Online documentation}
|
621
621
|
*/
|
622
622
|
editor,
|
623
623
|
/**
|
624
624
|
* 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.
|
625
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.controllers.cutscene Online documentation}
|
626
626
|
*/
|
627
627
|
cutscene,
|
628
628
|
/**
|
629
629
|
* Can't change anything in the world but can view anything.
|
630
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
630
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.controllers.spectator Online documentation}
|
631
631
|
*/
|
632
632
|
spectator,
|
633
633
|
/**
|
634
634
|
* Can't move/change items but can build ghosts/change settings.
|
635
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
635
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.controllers.remote Online documentation}
|
636
636
|
*/
|
637
637
|
remote,
|
638
638
|
}
|
@@ -694,22 +694,22 @@ declare global {
|
|
694
694
|
enum distraction {
|
695
695
|
/**
|
696
696
|
* Perform command even if someone attacks the unit.
|
697
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
697
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.distraction.none Online documentation}
|
698
698
|
*/
|
699
699
|
none,
|
700
700
|
/**
|
701
701
|
* Attack closer enemy entities with force.
|
702
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
702
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.distraction.by_enemy Online documentation}
|
703
703
|
*/
|
704
704
|
by_enemy,
|
705
705
|
/**
|
706
706
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
707
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
707
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.distraction.by_anything Online documentation}
|
708
708
|
*/
|
709
709
|
by_anything,
|
710
710
|
/**
|
711
711
|
* Attack when attacked.
|
712
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
712
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.distraction.by_damage Online documentation}
|
713
713
|
*/
|
714
714
|
by_damage,
|
715
715
|
}
|
@@ -718,12 +718,12 @@ declare global {
|
|
718
718
|
normal,
|
719
719
|
/**
|
720
720
|
* Used by ghosts.
|
721
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
721
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.ghost Online documentation}
|
722
722
|
*/
|
723
723
|
ghost,
|
724
724
|
/**
|
725
725
|
* Only used if set through {@link LuaEntity#status LuaEntity::status} or {@link import("factorio:prototype").ContainerPrototype#default_status ContainerPrototype::default_status}.
|
726
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
726
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.broken Online documentation}
|
727
727
|
*/
|
728
728
|
broken,
|
729
729
|
no_power,
|
@@ -737,269 +737,274 @@ declare global {
|
|
737
737
|
marked_for_deconstruction,
|
738
738
|
/**
|
739
739
|
* Used by space platform hubs.
|
740
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
740
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.paused Online documentation}
|
741
741
|
*/
|
742
742
|
paused,
|
743
743
|
/**
|
744
744
|
* Used by generators and solar panels.
|
745
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
745
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
|
746
746
|
*/
|
747
747
|
not_plugged_in_electric_network,
|
748
748
|
/**
|
749
749
|
* Used by power switches.
|
750
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
750
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.networks_connected Online documentation}
|
751
751
|
*/
|
752
752
|
networks_connected,
|
753
753
|
/**
|
754
754
|
* Used by power switches.
|
755
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
755
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.networks_disconnected Online documentation}
|
756
756
|
*/
|
757
757
|
networks_disconnected,
|
758
758
|
/**
|
759
759
|
* Used by accumulators.
|
760
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
760
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.charging Online documentation}
|
761
761
|
*/
|
762
762
|
charging,
|
763
763
|
/**
|
764
764
|
* Used by accumulators.
|
765
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
765
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.discharging Online documentation}
|
766
766
|
*/
|
767
767
|
discharging,
|
768
768
|
/**
|
769
769
|
* Used by accumulators.
|
770
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
770
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.fully_charged Online documentation}
|
771
771
|
*/
|
772
772
|
fully_charged,
|
773
773
|
/**
|
774
774
|
* Used by logistic containers.
|
775
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
775
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
|
776
776
|
*/
|
777
777
|
out_of_logistic_network,
|
778
778
|
/**
|
779
779
|
* Used by assembling machines.
|
780
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
780
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.no_recipe Online documentation}
|
781
781
|
*/
|
782
782
|
no_recipe,
|
783
783
|
/**
|
784
784
|
* Used by furnaces.
|
785
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
785
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.no_ingredients Online documentation}
|
786
786
|
*/
|
787
787
|
no_ingredients,
|
788
788
|
/**
|
789
789
|
* 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.
|
790
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.no_input_fluid Online documentation}
|
791
791
|
*/
|
792
792
|
no_input_fluid,
|
793
793
|
/**
|
794
794
|
* Used by labs.
|
795
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
795
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.no_research_in_progress Online documentation}
|
796
796
|
*/
|
797
797
|
no_research_in_progress,
|
798
798
|
/**
|
799
799
|
* Used by mining drills.
|
800
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
800
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.no_minable_resources Online documentation}
|
801
801
|
*/
|
802
802
|
no_minable_resources,
|
803
803
|
/**
|
804
804
|
* Used by cargo bays.
|
805
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
805
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.not_connected_to_hub_or_pad Online documentation}
|
806
806
|
*/
|
807
807
|
not_connected_to_hub_or_pad,
|
808
808
|
/**
|
809
809
|
* 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.
|
810
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.low_input_fluid Online documentation}
|
811
811
|
*/
|
812
812
|
low_input_fluid,
|
813
813
|
/**
|
814
814
|
* Used by crafting machines.
|
815
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
815
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
|
816
816
|
*/
|
817
817
|
fluid_ingredient_shortage,
|
818
818
|
/**
|
819
819
|
* 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.
|
820
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.full_output Online documentation}
|
821
821
|
*/
|
822
822
|
full_output,
|
823
823
|
/**
|
824
824
|
* Used by agricultural towers.
|
825
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
825
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.not_enough_space_in_output Online documentation}
|
826
826
|
*/
|
827
827
|
not_enough_space_in_output,
|
828
828
|
/**
|
829
829
|
* Used by burner energy sources.
|
830
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
830
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
|
831
831
|
*/
|
832
832
|
full_burnt_result_output,
|
833
833
|
/**
|
834
834
|
* Used by crafting machines.
|
835
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
835
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
|
836
836
|
*/
|
837
837
|
item_ingredient_shortage,
|
838
838
|
/**
|
839
839
|
* Used by mining drills when the mining fluid is missing.
|
840
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
840
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.missing_required_fluid Online documentation}
|
841
841
|
*/
|
842
842
|
missing_required_fluid,
|
843
843
|
/**
|
844
844
|
* Used by labs.
|
845
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
845
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.missing_science_packs Online documentation}
|
846
846
|
*/
|
847
847
|
missing_science_packs,
|
848
848
|
/**
|
849
849
|
* Used by inserters.
|
850
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
850
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
|
851
851
|
*/
|
852
852
|
waiting_for_source_items,
|
853
853
|
/**
|
854
854
|
* Used by inserters when wait_for_full_hand is set.
|
855
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
855
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.waiting_for_more_items Online documentation}
|
856
856
|
*/
|
857
857
|
waiting_for_more_items,
|
858
858
|
/**
|
859
859
|
* Used by inserters and mining drills.
|
860
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
860
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
|
861
861
|
*/
|
862
862
|
waiting_for_space_in_destination,
|
863
863
|
/**
|
864
864
|
* Used by the rocket silo.
|
865
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
865
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
|
866
866
|
*/
|
867
867
|
preparing_rocket_for_launch,
|
868
868
|
/**
|
869
869
|
* Used by the rocket silo.
|
870
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
870
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
|
871
871
|
*/
|
872
872
|
waiting_to_launch_rocket,
|
873
873
|
/**
|
874
874
|
* Used by the rocket silo.
|
875
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
875
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.waiting_for_space_in_platform_hub Online documentation}
|
876
876
|
*/
|
877
877
|
waiting_for_space_in_platform_hub,
|
878
878
|
/**
|
879
879
|
* Used by the rocket silo.
|
880
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
880
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.launching_rocket Online documentation}
|
881
881
|
*/
|
882
882
|
launching_rocket,
|
883
883
|
/**
|
884
884
|
* Used by thrusters.
|
885
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
885
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.thrust_not_required Online documentation}
|
886
886
|
*/
|
887
887
|
thrust_not_required,
|
888
888
|
/**
|
889
889
|
* Used by space platform hubs.
|
890
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
890
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.on_the_way Online documentation}
|
891
891
|
*/
|
892
892
|
on_the_way,
|
893
893
|
/**
|
894
894
|
* Used by space platform hubs.
|
895
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
895
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.waiting_in_orbit Online documentation}
|
896
896
|
*/
|
897
897
|
waiting_in_orbit,
|
898
898
|
/**
|
899
899
|
* Used by trains.
|
900
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
900
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.waiting_at_stop Online documentation}
|
901
901
|
*/
|
902
902
|
waiting_at_stop,
|
903
903
|
/**
|
904
904
|
* Used by space platform hubs.
|
905
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
905
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.waiting_for_rockets_to_arrive Online documentation}
|
906
906
|
*/
|
907
907
|
waiting_for_rockets_to_arrive,
|
908
908
|
/**
|
909
909
|
* Used by space platform hubs.
|
910
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
910
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.not_enough_thrust Online documentation}
|
911
911
|
*/
|
912
912
|
not_enough_thrust,
|
913
913
|
/**
|
914
914
|
* Used by trains.
|
915
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
915
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.destination_stop_full Online documentation}
|
916
916
|
*/
|
917
917
|
destination_stop_full,
|
918
918
|
/**
|
919
919
|
* Used by trains and space platform hubs.
|
920
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
920
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.no_path Online documentation}
|
921
921
|
*/
|
922
922
|
no_path,
|
923
923
|
/**
|
924
924
|
* Used by beacons.
|
925
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
925
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
|
926
926
|
*/
|
927
927
|
no_modules_to_transmit,
|
928
928
|
/**
|
929
929
|
* Used by roboports.
|
930
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
930
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
|
931
931
|
*/
|
932
932
|
recharging_after_power_outage,
|
933
933
|
/**
|
934
934
|
* Used by inserters targeting entity ghosts.
|
935
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
935
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
|
936
936
|
*/
|
937
937
|
waiting_for_target_to_be_built,
|
938
938
|
/**
|
939
939
|
* Used by inserters targeting rails.
|
940
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
940
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.waiting_for_train Online documentation}
|
941
941
|
*/
|
942
942
|
waiting_for_train,
|
943
943
|
/**
|
944
944
|
* Used by ammo turrets.
|
945
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
945
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.no_ammo Online documentation}
|
946
946
|
*/
|
947
947
|
no_ammo,
|
948
948
|
/**
|
949
949
|
* Used by heat energy sources.
|
950
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
950
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.low_temperature Online documentation}
|
951
951
|
*/
|
952
952
|
low_temperature,
|
953
953
|
/**
|
954
954
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
955
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
955
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.disabled Online documentation}
|
956
956
|
*/
|
957
957
|
disabled,
|
958
958
|
/**
|
959
959
|
* Used by lamps.
|
960
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
960
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
|
961
961
|
*/
|
962
962
|
turned_off_during_daytime,
|
963
963
|
/**
|
964
964
|
* Used by rail signals.
|
965
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
965
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
|
966
966
|
*/
|
967
967
|
not_connected_to_rail,
|
968
968
|
/**
|
969
969
|
* Used by rail signals.
|
970
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
970
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.cant_divide_segments Online documentation}
|
971
971
|
*/
|
972
972
|
cant_divide_segments,
|
973
973
|
/**
|
974
974
|
* Used by filter inserters.
|
975
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
975
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.no_filter Online documentation}
|
976
976
|
*/
|
977
977
|
no_filter,
|
978
978
|
/**
|
979
979
|
* Used by agricultural towers.
|
980
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
980
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.no_spot_seedable_by_inputs Online documentation}
|
981
981
|
*/
|
982
982
|
no_spot_seedable_by_inputs,
|
983
983
|
/**
|
984
984
|
* Used by agricultural towers.
|
985
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
985
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.waiting_for_plants_to_grow Online documentation}
|
986
986
|
*/
|
987
987
|
waiting_for_plants_to_grow,
|
988
988
|
/**
|
989
989
|
* Used by asteroid collectors.
|
990
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
990
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.computing_navigation Online documentation}
|
991
991
|
*/
|
992
992
|
computing_navigation,
|
993
993
|
/**
|
994
994
|
* Used by pipes, pipes to ground and storage tanks.
|
995
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
995
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.pipeline_overextended Online documentation}
|
996
996
|
*/
|
997
997
|
pipeline_overextended,
|
998
998
|
/**
|
999
999
|
* Used by assembling machines.
|
1000
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1000
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.recipe_not_researched Online documentation}
|
1001
1001
|
*/
|
1002
1002
|
recipe_not_researched,
|
1003
|
+
/**
|
1004
|
+
* Used by assembling machines.
|
1005
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.entity_status.recipe_is_parameter Online documentation}
|
1006
|
+
*/
|
1007
|
+
recipe_is_parameter,
|
1003
1008
|
}
|
1004
1009
|
enum entity_status_diode {
|
1005
1010
|
green,
|
@@ -1007,8 +1012,8 @@ declare global {
|
|
1007
1012
|
yellow,
|
1008
1013
|
}
|
1009
1014
|
/**
|
1010
|
-
* See the {@linkplain https://lua-api.factorio.com/2.0.
|
1011
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1015
|
+
* See the {@linkplain https://lua-api.factorio.com/2.0.52/events.html events page} for more info on what events contain and when they get raised.
|
1016
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.events Online documentation}
|
1012
1017
|
*/
|
1013
1018
|
namespace events {
|
1014
1019
|
/**
|
@@ -1829,8 +1834,8 @@ declare global {
|
|
1829
1834
|
const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent>
|
1830
1835
|
}
|
1831
1836
|
/**
|
1832
|
-
* See the {@linkplain https://lua-api.factorio.com/2.0.
|
1833
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1837
|
+
* See the {@linkplain https://lua-api.factorio.com/2.0.52/events.html events page} for more info on what events contain and when they get raised.
|
1838
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.events Online documentation}
|
1834
1839
|
*/
|
1835
1840
|
type events = (typeof events)[keyof typeof events]
|
1836
1841
|
enum flow_precision_index {
|
@@ -1846,17 +1851,17 @@ declare global {
|
|
1846
1851
|
enum game_controller_interaction {
|
1847
1852
|
/**
|
1848
1853
|
* Game controller will always hover this element regardless of type or state.
|
1849
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1854
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.game_controller_interaction.always Online documentation}
|
1850
1855
|
*/
|
1851
1856
|
always,
|
1852
1857
|
/**
|
1853
1858
|
* Never hover this element with a game controller.
|
1854
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1859
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.game_controller_interaction.never Online documentation}
|
1855
1860
|
*/
|
1856
1861
|
never,
|
1857
1862
|
/**
|
1858
1863
|
* Hover according to the element type and implementation.
|
1859
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1864
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.game_controller_interaction.normal Online documentation}
|
1860
1865
|
*/
|
1861
1866
|
normal,
|
1862
1867
|
}
|
@@ -1983,7 +1988,6 @@ declare global {
|
|
1983
1988
|
edit_interrupt,
|
1984
1989
|
edit_permission_group,
|
1985
1990
|
edit_pin,
|
1986
|
-
enable_transitional_requests,
|
1987
1991
|
export_blueprint,
|
1988
1992
|
fast_entity_split,
|
1989
1993
|
fast_entity_transfer,
|
@@ -2185,7 +2189,7 @@ declare global {
|
|
2185
2189
|
furnace_modules,
|
2186
2190
|
/**
|
2187
2191
|
* Used for spoil result items that do not fit into the recipe slots.
|
2188
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2192
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.inventory.furnace_trash Online documentation}
|
2189
2193
|
*/
|
2190
2194
|
furnace_trash,
|
2191
2195
|
character_main,
|
@@ -2208,16 +2212,17 @@ declare global {
|
|
2208
2212
|
assembling_machine_modules,
|
2209
2213
|
/**
|
2210
2214
|
* Used when items are ejected or items held by inserters cannot be inserted due to changing the recipe with the circuit network.
|
2211
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2215
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.inventory.assembling_machine_dump Online documentation}
|
2212
2216
|
*/
|
2213
2217
|
assembling_machine_dump,
|
2214
2218
|
/**
|
2215
2219
|
* 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.
|
2216
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2220
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.inventory.assembling_machine_trash Online documentation}
|
2217
2221
|
*/
|
2218
2222
|
assembling_machine_trash,
|
2219
2223
|
lab_input,
|
2220
2224
|
lab_modules,
|
2225
|
+
lab_trash,
|
2221
2226
|
mining_drill_modules,
|
2222
2227
|
item_main,
|
2223
2228
|
rocket_silo_rocket,
|
@@ -2243,6 +2248,14 @@ declare global {
|
|
2243
2248
|
cargo_landing_pad_main,
|
2244
2249
|
cargo_landing_pad_trash,
|
2245
2250
|
proxy_main,
|
2251
|
+
agricultural_tower_input,
|
2252
|
+
agricultural_tower_output,
|
2253
|
+
linked_container_main,
|
2254
|
+
crafter_input,
|
2255
|
+
crafter_output,
|
2256
|
+
crafter_modules,
|
2257
|
+
crafter_trash,
|
2258
|
+
asteroid_collector_output,
|
2246
2259
|
}
|
2247
2260
|
enum logistic_member_index {
|
2248
2261
|
logistic_container,
|
@@ -2277,12 +2290,12 @@ declare global {
|
|
2277
2290
|
circuit_controlled,
|
2278
2291
|
/**
|
2279
2292
|
* Used by rocket silos.
|
2280
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2293
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
|
2281
2294
|
*/
|
2282
2295
|
transitional_request_controlled,
|
2283
2296
|
/**
|
2284
2297
|
* Used by space platform hubs.
|
2285
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2298
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
|
2286
2299
|
*/
|
2287
2300
|
request_missing_materials_controlled,
|
2288
2301
|
}
|
@@ -2301,17 +2314,17 @@ declare global {
|
|
2301
2314
|
enum print_skip {
|
2302
2315
|
/**
|
2303
2316
|
* Print will not be skipped.
|
2304
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2317
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.print_skip.never Online documentation}
|
2305
2318
|
*/
|
2306
2319
|
never,
|
2307
2320
|
/**
|
2308
2321
|
* Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
|
2309
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2322
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.print_skip.if_redundant Online documentation}
|
2310
2323
|
*/
|
2311
2324
|
if_redundant,
|
2312
2325
|
/**
|
2313
2326
|
* Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
|
2314
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2327
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.print_skip.if_visible Online documentation}
|
2315
2328
|
*/
|
2316
2329
|
if_visible,
|
2317
2330
|
}
|
@@ -2322,7 +2335,7 @@ declare global {
|
|
2322
2335
|
}
|
2323
2336
|
/**
|
2324
2337
|
* 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, ...}`.
|
2325
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2338
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.prototypes Online documentation}
|
2326
2339
|
*/
|
2327
2340
|
interface prototypes {
|
2328
2341
|
achievement: {
|
@@ -2539,6 +2552,7 @@ declare global {
|
|
2539
2552
|
"underground-belt": 0
|
2540
2553
|
unit: 0
|
2541
2554
|
"unit-spawner": 0
|
2555
|
+
valve: 0
|
2542
2556
|
wall: 0
|
2543
2557
|
}
|
2544
2558
|
equipment: {
|
@@ -2713,7 +2727,7 @@ declare global {
|
|
2713
2727
|
}
|
2714
2728
|
/**
|
2715
2729
|
* 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, ...}`.
|
2716
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2730
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.prototypes Online documentation}
|
2717
2731
|
*/
|
2718
2732
|
const prototypes: prototypes
|
2719
2733
|
enum rail_connection_direction {
|
@@ -2839,128 +2853,128 @@ declare global {
|
|
2839
2853
|
enum robot_order_type {
|
2840
2854
|
/**
|
2841
2855
|
* Construct a ghost.
|
2842
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2856
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.robot_order_type.construct Online documentation}
|
2843
2857
|
*/
|
2844
2858
|
construct,
|
2845
2859
|
/**
|
2846
2860
|
* Pickup an item.
|
2847
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2861
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.robot_order_type.pickup Online documentation}
|
2848
2862
|
*/
|
2849
2863
|
pickup,
|
2850
2864
|
/**
|
2851
2865
|
* Deliver an item.
|
2852
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2866
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.robot_order_type.deliver Online documentation}
|
2853
2867
|
*/
|
2854
2868
|
deliver,
|
2855
2869
|
/**
|
2856
2870
|
* Repair an entity.
|
2857
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2871
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.robot_order_type.repair Online documentation}
|
2858
2872
|
*/
|
2859
2873
|
repair,
|
2860
2874
|
/**
|
2861
2875
|
* Deconstruct an entity.
|
2862
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2876
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.robot_order_type.deconstruct Online documentation}
|
2863
2877
|
*/
|
2864
2878
|
deconstruct,
|
2865
2879
|
/**
|
2866
2880
|
* Deliver specific items to an entity (item request proxy).
|
2867
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2881
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.robot_order_type.deliver_items Online documentation}
|
2868
2882
|
*/
|
2869
2883
|
deliver_items,
|
2870
2884
|
/**
|
2871
2885
|
* Upgrade an entity.
|
2872
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2886
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.robot_order_type.upgrade Online documentation}
|
2873
2887
|
*/
|
2874
2888
|
upgrade,
|
2875
2889
|
/**
|
2876
2890
|
* Explode a cliff.
|
2877
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2891
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.robot_order_type.explode_cliff Online documentation}
|
2878
2892
|
*/
|
2879
2893
|
explode_cliff,
|
2880
2894
|
/**
|
2881
2895
|
* Pickup items from an entity (item request proxy).
|
2882
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2896
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.robot_order_type.pickup_items Online documentation}
|
2883
2897
|
*/
|
2884
2898
|
pickup_items,
|
2885
2899
|
}
|
2886
2900
|
/**
|
2887
2901
|
* The various parts of the launch sequence of the rocket silo.
|
2888
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2902
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.rocket_silo_status Online documentation}
|
2889
2903
|
*/
|
2890
2904
|
enum rocket_silo_status {
|
2891
2905
|
/**
|
2892
2906
|
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
2893
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2907
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
|
2894
2908
|
*/
|
2895
2909
|
building_rocket,
|
2896
2910
|
/**
|
2897
2911
|
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
2898
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2912
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
|
2899
2913
|
*/
|
2900
2914
|
create_rocket,
|
2901
2915
|
/**
|
2902
2916
|
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
2903
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2917
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
|
2904
2918
|
*/
|
2905
2919
|
lights_blinking_open,
|
2906
2920
|
/**
|
2907
2921
|
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
2908
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2922
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
|
2909
2923
|
*/
|
2910
2924
|
doors_opening,
|
2911
2925
|
/**
|
2912
2926
|
* 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.
|
2913
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2927
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
|
2914
2928
|
*/
|
2915
2929
|
doors_opened,
|
2916
2930
|
/**
|
2917
2931
|
* 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.
|
2918
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2932
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
|
2919
2933
|
*/
|
2920
2934
|
rocket_rising,
|
2921
2935
|
/**
|
2922
2936
|
* 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.
|
2923
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2937
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
|
2924
2938
|
*/
|
2925
2939
|
arms_advance,
|
2926
2940
|
/**
|
2927
2941
|
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
2928
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2942
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
|
2929
2943
|
*/
|
2930
2944
|
rocket_ready,
|
2931
2945
|
/**
|
2932
2946
|
* The next state is `launch_started`.
|
2933
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2947
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
|
2934
2948
|
*/
|
2935
2949
|
launch_starting,
|
2936
2950
|
/**
|
2937
2951
|
* 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.
|
2938
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2952
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
|
2939
2953
|
*/
|
2940
2954
|
engine_starting,
|
2941
2955
|
/**
|
2942
2956
|
* 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.
|
2943
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2957
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
|
2944
2958
|
*/
|
2945
2959
|
arms_retract,
|
2946
2960
|
/**
|
2947
2961
|
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
2948
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2962
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
|
2949
2963
|
*/
|
2950
2964
|
rocket_flying,
|
2951
2965
|
/**
|
2952
2966
|
* The next state is `doors_closing`.
|
2953
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2967
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
|
2954
2968
|
*/
|
2955
2969
|
lights_blinking_close,
|
2956
2970
|
/**
|
2957
2971
|
* The next state is `building_rocket`.
|
2958
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2972
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
|
2959
2973
|
*/
|
2960
2974
|
doors_closing,
|
2961
2975
|
/**
|
2962
2976
|
* 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.
|
2963
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2977
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.rocket_silo_status.launch_started Online documentation}
|
2964
2978
|
*/
|
2965
2979
|
launch_started,
|
2966
2980
|
}
|
@@ -2977,74 +2991,74 @@ declare global {
|
|
2977
2991
|
}
|
2978
2992
|
/**
|
2979
2993
|
* State of an ordinary rail signal.
|
2980
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2994
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.signal_state Online documentation}
|
2981
2995
|
*/
|
2982
2996
|
enum signal_state {
|
2983
2997
|
/**
|
2984
2998
|
* Green.
|
2985
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2999
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.signal_state.open Online documentation}
|
2986
3000
|
*/
|
2987
3001
|
open,
|
2988
3002
|
/**
|
2989
3003
|
* Red.
|
2990
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3004
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.signal_state.closed Online documentation}
|
2991
3005
|
*/
|
2992
3006
|
closed,
|
2993
3007
|
/**
|
2994
3008
|
* Orange.
|
2995
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3009
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.signal_state.reserved Online documentation}
|
2996
3010
|
*/
|
2997
3011
|
reserved,
|
2998
3012
|
/**
|
2999
3013
|
* Red - From circuit network.
|
3000
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3014
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
3001
3015
|
*/
|
3002
3016
|
reserved_by_circuit_network,
|
3003
3017
|
}
|
3004
3018
|
enum space_platform_state {
|
3005
3019
|
/**
|
3006
3020
|
* Waiting for a starter pack.
|
3007
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3021
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
|
3008
3022
|
*/
|
3009
3023
|
waiting_for_starter_pack,
|
3010
3024
|
/**
|
3011
3025
|
* Starter pack was requested from the logistics system.
|
3012
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3026
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
|
3013
3027
|
*/
|
3014
3028
|
starter_pack_requested,
|
3015
3029
|
/**
|
3016
3030
|
* Starter pack is on the way.
|
3017
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3031
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
|
3018
3032
|
*/
|
3019
3033
|
starter_pack_on_the_way,
|
3020
3034
|
/**
|
3021
3035
|
* Following the path.
|
3022
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3036
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.space_platform_state.on_the_path Online documentation}
|
3023
3037
|
*/
|
3024
3038
|
on_the_path,
|
3025
3039
|
/**
|
3026
3040
|
* Platform is ready to leave this planet and does not accept deliveries.
|
3027
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3041
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
|
3028
3042
|
*/
|
3029
3043
|
waiting_for_departure,
|
3030
3044
|
/**
|
3031
3045
|
* Doesn't have any stations in schedule.
|
3032
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3046
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.space_platform_state.no_schedule Online documentation}
|
3033
3047
|
*/
|
3034
3048
|
no_schedule,
|
3035
3049
|
/**
|
3036
3050
|
* Doesn't have anywhere to go.
|
3037
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3051
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.space_platform_state.no_path Online documentation}
|
3038
3052
|
*/
|
3039
3053
|
no_path,
|
3040
3054
|
/**
|
3041
3055
|
* Waiting at a station.
|
3042
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3056
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
|
3043
3057
|
*/
|
3044
3058
|
waiting_at_station,
|
3045
3059
|
/**
|
3046
3060
|
* Paused.
|
3047
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3061
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.space_platform_state.paused Online documentation}
|
3048
3062
|
*/
|
3049
3063
|
paused,
|
3050
3064
|
}
|
@@ -3073,52 +3087,52 @@ declare global {
|
|
3073
3087
|
enum train_state {
|
3074
3088
|
/**
|
3075
3089
|
* Normal state -- following the path.
|
3076
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3090
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.train_state.on_the_path Online documentation}
|
3077
3091
|
*/
|
3078
3092
|
on_the_path,
|
3079
3093
|
/**
|
3080
3094
|
* Doesn't have anywhere to go.
|
3081
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3095
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.train_state.no_schedule Online documentation}
|
3082
3096
|
*/
|
3083
3097
|
no_schedule,
|
3084
3098
|
/**
|
3085
3099
|
* Has no path and is stopped.
|
3086
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3100
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.train_state.no_path Online documentation}
|
3087
3101
|
*/
|
3088
3102
|
no_path,
|
3089
3103
|
/**
|
3090
3104
|
* Braking before a rail signal.
|
3091
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3105
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.train_state.arrive_signal Online documentation}
|
3092
3106
|
*/
|
3093
3107
|
arrive_signal,
|
3094
3108
|
/**
|
3095
3109
|
* Waiting at a signal.
|
3096
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3110
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.train_state.wait_signal Online documentation}
|
3097
3111
|
*/
|
3098
3112
|
wait_signal,
|
3099
3113
|
/**
|
3100
3114
|
* Braking before a station.
|
3101
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3115
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.train_state.arrive_station Online documentation}
|
3102
3116
|
*/
|
3103
3117
|
arrive_station,
|
3104
3118
|
/**
|
3105
3119
|
* Switched to manual control and has to stop.
|
3106
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3120
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.train_state.manual_control_stop Online documentation}
|
3107
3121
|
*/
|
3108
3122
|
manual_control_stop,
|
3109
3123
|
/**
|
3110
3124
|
* Can move if user explicitly sits in and rides the train.
|
3111
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3125
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.train_state.manual_control Online documentation}
|
3112
3126
|
*/
|
3113
3127
|
manual_control,
|
3114
3128
|
/**
|
3115
3129
|
* Waiting at a station.
|
3116
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3130
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.train_state.wait_station Online documentation}
|
3117
3131
|
*/
|
3118
3132
|
wait_station,
|
3119
3133
|
/**
|
3120
3134
|
* Same as no_path but all candidate train stops are full
|
3121
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3135
|
+
* @see {@link https://lua-api.factorio.com/2.0.52/defines.html#defines.train_state.destination_full Online documentation}
|
3122
3136
|
*/
|
3123
3137
|
destination_full,
|
3124
3138
|
}
|