typed-factorio 3.18.0 → 3.19.1
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/README.md +48 -47
- package/package.json +2 -2
- package/prototype/generated/prototypes.d.ts +2140 -2110
- package/prototype/generated/types.d.ts +2133 -2110
- package/runtime/generated/classes.d.ts +3705 -3679
- package/runtime/generated/concepts.d.ts +5925 -5925
- package/runtime/generated/defines.d.ts +199 -188
- package/runtime/generated/events.d.ts +205 -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.44/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.44/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.44/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.44/defines.html#defines.cargo_destination.station Online documentation}
|
271
271
|
*/
|
272
272
|
station,
|
273
273
|
/**
|
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.
|
275
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/defines.html#defines.entity_status.broken Online documentation}
|
727
727
|
*/
|
728
728
|
broken,
|
729
729
|
no_power,
|
@@ -737,267 +737,267 @@ 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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/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.44/defines.html#defines.entity_status.recipe_not_researched Online documentation}
|
1001
1001
|
*/
|
1002
1002
|
recipe_not_researched,
|
1003
1003
|
}
|
@@ -1007,8 +1007,8 @@ declare global {
|
|
1007
1007
|
yellow,
|
1008
1008
|
}
|
1009
1009
|
/**
|
1010
|
-
* See the {@linkplain https://lua-api.factorio.com/2.0.
|
1011
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1010
|
+
* See the {@linkplain https://lua-api.factorio.com/2.0.44/events.html events page} for more info on what events contain and when they get raised.
|
1011
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.events Online documentation}
|
1012
1012
|
*/
|
1013
1013
|
namespace events {
|
1014
1014
|
/**
|
@@ -1829,8 +1829,8 @@ declare global {
|
|
1829
1829
|
const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent>
|
1830
1830
|
}
|
1831
1831
|
/**
|
1832
|
-
* See the {@linkplain https://lua-api.factorio.com/2.0.
|
1833
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1832
|
+
* See the {@linkplain https://lua-api.factorio.com/2.0.44/events.html events page} for more info on what events contain and when they get raised.
|
1833
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.events Online documentation}
|
1834
1834
|
*/
|
1835
1835
|
type events = (typeof events)[keyof typeof events]
|
1836
1836
|
enum flow_precision_index {
|
@@ -1846,17 +1846,17 @@ declare global {
|
|
1846
1846
|
enum game_controller_interaction {
|
1847
1847
|
/**
|
1848
1848
|
* Game controller will always hover this element regardless of type or state.
|
1849
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1849
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.game_controller_interaction.always Online documentation}
|
1850
1850
|
*/
|
1851
1851
|
always,
|
1852
1852
|
/**
|
1853
1853
|
* Never hover this element with a game controller.
|
1854
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1854
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.game_controller_interaction.never Online documentation}
|
1855
1855
|
*/
|
1856
1856
|
never,
|
1857
1857
|
/**
|
1858
1858
|
* Hover according to the element type and implementation.
|
1859
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1859
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.game_controller_interaction.normal Online documentation}
|
1860
1860
|
*/
|
1861
1861
|
normal,
|
1862
1862
|
}
|
@@ -2184,7 +2184,7 @@ declare global {
|
|
2184
2184
|
furnace_modules,
|
2185
2185
|
/**
|
2186
2186
|
* Used for spoil result items that do not fit into the recipe slots.
|
2187
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2187
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.inventory.furnace_trash Online documentation}
|
2188
2188
|
*/
|
2189
2189
|
furnace_trash,
|
2190
2190
|
character_main,
|
@@ -2207,12 +2207,12 @@ declare global {
|
|
2207
2207
|
assembling_machine_modules,
|
2208
2208
|
/**
|
2209
2209
|
* Used when items are ejected or items held by inserters cannot be inserted due to changing the recipe with the circuit network.
|
2210
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2210
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.inventory.assembling_machine_dump Online documentation}
|
2211
2211
|
*/
|
2212
2212
|
assembling_machine_dump,
|
2213
2213
|
/**
|
2214
2214
|
* 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.
|
2215
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2215
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.inventory.assembling_machine_trash Online documentation}
|
2216
2216
|
*/
|
2217
2217
|
assembling_machine_trash,
|
2218
2218
|
lab_input,
|
@@ -2245,12 +2245,23 @@ declare global {
|
|
2245
2245
|
}
|
2246
2246
|
enum logistic_member_index {
|
2247
2247
|
logistic_container,
|
2248
|
+
logistic_container_trash_provider,
|
2248
2249
|
vehicle_storage,
|
2249
2250
|
character_requester,
|
2250
2251
|
character_storage,
|
2251
2252
|
character_provider,
|
2252
2253
|
generic_on_off_behavior,
|
2253
2254
|
spidertron_requester,
|
2255
|
+
spidertron_provider,
|
2256
|
+
car_requester,
|
2257
|
+
car_provider,
|
2258
|
+
roboport_provider,
|
2259
|
+
roboport_requester,
|
2260
|
+
rocket_silo_provider,
|
2261
|
+
rocket_silo_requester,
|
2262
|
+
rocket_silo_trash_provider,
|
2263
|
+
space_platform_hub_requester,
|
2264
|
+
space_platform_hub_provider,
|
2254
2265
|
}
|
2255
2266
|
enum logistic_mode {
|
2256
2267
|
none,
|
@@ -2265,12 +2276,12 @@ declare global {
|
|
2265
2276
|
circuit_controlled,
|
2266
2277
|
/**
|
2267
2278
|
* Used by rocket silos.
|
2268
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2279
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
|
2269
2280
|
*/
|
2270
2281
|
transitional_request_controlled,
|
2271
2282
|
/**
|
2272
2283
|
* Used by space platform hubs.
|
2273
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2284
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
|
2274
2285
|
*/
|
2275
2286
|
request_missing_materials_controlled,
|
2276
2287
|
}
|
@@ -2289,17 +2300,17 @@ declare global {
|
|
2289
2300
|
enum print_skip {
|
2290
2301
|
/**
|
2291
2302
|
* Print will not be skipped.
|
2292
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2303
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.print_skip.never Online documentation}
|
2293
2304
|
*/
|
2294
2305
|
never,
|
2295
2306
|
/**
|
2296
2307
|
* Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
|
2297
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2308
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.print_skip.if_redundant Online documentation}
|
2298
2309
|
*/
|
2299
2310
|
if_redundant,
|
2300
2311
|
/**
|
2301
2312
|
* Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
|
2302
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2313
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.print_skip.if_visible Online documentation}
|
2303
2314
|
*/
|
2304
2315
|
if_visible,
|
2305
2316
|
}
|
@@ -2310,7 +2321,7 @@ declare global {
|
|
2310
2321
|
}
|
2311
2322
|
/**
|
2312
2323
|
* 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, ...}`.
|
2313
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2324
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.prototypes Online documentation}
|
2314
2325
|
*/
|
2315
2326
|
interface prototypes {
|
2316
2327
|
achievement: {
|
@@ -2701,7 +2712,7 @@ declare global {
|
|
2701
2712
|
}
|
2702
2713
|
/**
|
2703
2714
|
* 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, ...}`.
|
2704
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2715
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.prototypes Online documentation}
|
2705
2716
|
*/
|
2706
2717
|
const prototypes: prototypes
|
2707
2718
|
enum rail_connection_direction {
|
@@ -2827,128 +2838,128 @@ declare global {
|
|
2827
2838
|
enum robot_order_type {
|
2828
2839
|
/**
|
2829
2840
|
* Construct a ghost.
|
2830
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2841
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.robot_order_type.construct Online documentation}
|
2831
2842
|
*/
|
2832
2843
|
construct,
|
2833
2844
|
/**
|
2834
2845
|
* Pickup an item.
|
2835
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2846
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.robot_order_type.pickup Online documentation}
|
2836
2847
|
*/
|
2837
2848
|
pickup,
|
2838
2849
|
/**
|
2839
2850
|
* Deliver an item.
|
2840
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2851
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.robot_order_type.deliver Online documentation}
|
2841
2852
|
*/
|
2842
2853
|
deliver,
|
2843
2854
|
/**
|
2844
2855
|
* Repair an entity.
|
2845
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2856
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.robot_order_type.repair Online documentation}
|
2846
2857
|
*/
|
2847
2858
|
repair,
|
2848
2859
|
/**
|
2849
2860
|
* Deconstruct an entity.
|
2850
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2861
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.robot_order_type.deconstruct Online documentation}
|
2851
2862
|
*/
|
2852
2863
|
deconstruct,
|
2853
2864
|
/**
|
2854
2865
|
* Deliver specific items to an entity (item request proxy).
|
2855
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2866
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.robot_order_type.deliver_items Online documentation}
|
2856
2867
|
*/
|
2857
2868
|
deliver_items,
|
2858
2869
|
/**
|
2859
2870
|
* Upgrade an entity.
|
2860
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2871
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.robot_order_type.upgrade Online documentation}
|
2861
2872
|
*/
|
2862
2873
|
upgrade,
|
2863
2874
|
/**
|
2864
2875
|
* Explode a cliff.
|
2865
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2876
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.robot_order_type.explode_cliff Online documentation}
|
2866
2877
|
*/
|
2867
2878
|
explode_cliff,
|
2868
2879
|
/**
|
2869
2880
|
* Pickup items from an entity (item request proxy).
|
2870
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2881
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.robot_order_type.pickup_items Online documentation}
|
2871
2882
|
*/
|
2872
2883
|
pickup_items,
|
2873
2884
|
}
|
2874
2885
|
/**
|
2875
2886
|
* The various parts of the launch sequence of the rocket silo.
|
2876
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2887
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.rocket_silo_status Online documentation}
|
2877
2888
|
*/
|
2878
2889
|
enum rocket_silo_status {
|
2879
2890
|
/**
|
2880
2891
|
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
2881
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2892
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
|
2882
2893
|
*/
|
2883
2894
|
building_rocket,
|
2884
2895
|
/**
|
2885
2896
|
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
2886
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2897
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
|
2887
2898
|
*/
|
2888
2899
|
create_rocket,
|
2889
2900
|
/**
|
2890
2901
|
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
2891
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2902
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
|
2892
2903
|
*/
|
2893
2904
|
lights_blinking_open,
|
2894
2905
|
/**
|
2895
2906
|
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
2896
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2907
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
|
2897
2908
|
*/
|
2898
2909
|
doors_opening,
|
2899
2910
|
/**
|
2900
2911
|
* 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.
|
2901
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2912
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
|
2902
2913
|
*/
|
2903
2914
|
doors_opened,
|
2904
2915
|
/**
|
2905
2916
|
* 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.
|
2906
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2917
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
|
2907
2918
|
*/
|
2908
2919
|
rocket_rising,
|
2909
2920
|
/**
|
2910
2921
|
* 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.
|
2911
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2922
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
|
2912
2923
|
*/
|
2913
2924
|
arms_advance,
|
2914
2925
|
/**
|
2915
2926
|
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
2916
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2927
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
|
2917
2928
|
*/
|
2918
2929
|
rocket_ready,
|
2919
2930
|
/**
|
2920
2931
|
* The next state is `launch_started`.
|
2921
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2932
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
|
2922
2933
|
*/
|
2923
2934
|
launch_starting,
|
2924
2935
|
/**
|
2925
2936
|
* 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.
|
2926
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2937
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
|
2927
2938
|
*/
|
2928
2939
|
engine_starting,
|
2929
2940
|
/**
|
2930
2941
|
* 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.
|
2931
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2942
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
|
2932
2943
|
*/
|
2933
2944
|
arms_retract,
|
2934
2945
|
/**
|
2935
2946
|
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
2936
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2947
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
|
2937
2948
|
*/
|
2938
2949
|
rocket_flying,
|
2939
2950
|
/**
|
2940
2951
|
* The next state is `doors_closing`.
|
2941
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2952
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
|
2942
2953
|
*/
|
2943
2954
|
lights_blinking_close,
|
2944
2955
|
/**
|
2945
2956
|
* The next state is `building_rocket`.
|
2946
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2957
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
|
2947
2958
|
*/
|
2948
2959
|
doors_closing,
|
2949
2960
|
/**
|
2950
2961
|
* 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.
|
2951
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2962
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.rocket_silo_status.launch_started Online documentation}
|
2952
2963
|
*/
|
2953
2964
|
launch_started,
|
2954
2965
|
}
|
@@ -2965,74 +2976,74 @@ declare global {
|
|
2965
2976
|
}
|
2966
2977
|
/**
|
2967
2978
|
* State of an ordinary rail signal.
|
2968
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2979
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.signal_state Online documentation}
|
2969
2980
|
*/
|
2970
2981
|
enum signal_state {
|
2971
2982
|
/**
|
2972
2983
|
* Green.
|
2973
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2984
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.signal_state.open Online documentation}
|
2974
2985
|
*/
|
2975
2986
|
open,
|
2976
2987
|
/**
|
2977
2988
|
* Red.
|
2978
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2989
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.signal_state.closed Online documentation}
|
2979
2990
|
*/
|
2980
2991
|
closed,
|
2981
2992
|
/**
|
2982
2993
|
* Orange.
|
2983
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2994
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.signal_state.reserved Online documentation}
|
2984
2995
|
*/
|
2985
2996
|
reserved,
|
2986
2997
|
/**
|
2987
2998
|
* Red - From circuit network.
|
2988
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2999
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
2989
3000
|
*/
|
2990
3001
|
reserved_by_circuit_network,
|
2991
3002
|
}
|
2992
3003
|
enum space_platform_state {
|
2993
3004
|
/**
|
2994
3005
|
* Waiting for a starter pack.
|
2995
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3006
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
|
2996
3007
|
*/
|
2997
3008
|
waiting_for_starter_pack,
|
2998
3009
|
/**
|
2999
3010
|
* Starter pack was requested from the logistics system.
|
3000
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3011
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
|
3001
3012
|
*/
|
3002
3013
|
starter_pack_requested,
|
3003
3014
|
/**
|
3004
3015
|
* Starter pack is on the way.
|
3005
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3016
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
|
3006
3017
|
*/
|
3007
3018
|
starter_pack_on_the_way,
|
3008
3019
|
/**
|
3009
3020
|
* Following the path.
|
3010
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3021
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.space_platform_state.on_the_path Online documentation}
|
3011
3022
|
*/
|
3012
3023
|
on_the_path,
|
3013
3024
|
/**
|
3014
3025
|
* Platform is ready to leave this planet and does not accept deliveries.
|
3015
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3026
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
|
3016
3027
|
*/
|
3017
3028
|
waiting_for_departure,
|
3018
3029
|
/**
|
3019
3030
|
* Doesn't have any stations in schedule.
|
3020
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3031
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.space_platform_state.no_schedule Online documentation}
|
3021
3032
|
*/
|
3022
3033
|
no_schedule,
|
3023
3034
|
/**
|
3024
3035
|
* Doesn't have anywhere to go.
|
3025
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3036
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.space_platform_state.no_path Online documentation}
|
3026
3037
|
*/
|
3027
3038
|
no_path,
|
3028
3039
|
/**
|
3029
3040
|
* Waiting at a station.
|
3030
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3041
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
|
3031
3042
|
*/
|
3032
3043
|
waiting_at_station,
|
3033
3044
|
/**
|
3034
3045
|
* Paused.
|
3035
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3046
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.space_platform_state.paused Online documentation}
|
3036
3047
|
*/
|
3037
3048
|
paused,
|
3038
3049
|
}
|
@@ -3061,52 +3072,52 @@ declare global {
|
|
3061
3072
|
enum train_state {
|
3062
3073
|
/**
|
3063
3074
|
* Normal state -- following the path.
|
3064
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3075
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.train_state.on_the_path Online documentation}
|
3065
3076
|
*/
|
3066
3077
|
on_the_path,
|
3067
3078
|
/**
|
3068
3079
|
* Doesn't have anywhere to go.
|
3069
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3080
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.train_state.no_schedule Online documentation}
|
3070
3081
|
*/
|
3071
3082
|
no_schedule,
|
3072
3083
|
/**
|
3073
3084
|
* Has no path and is stopped.
|
3074
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3085
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.train_state.no_path Online documentation}
|
3075
3086
|
*/
|
3076
3087
|
no_path,
|
3077
3088
|
/**
|
3078
3089
|
* Braking before a rail signal.
|
3079
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3090
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.train_state.arrive_signal Online documentation}
|
3080
3091
|
*/
|
3081
3092
|
arrive_signal,
|
3082
3093
|
/**
|
3083
3094
|
* Waiting at a signal.
|
3084
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3095
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.train_state.wait_signal Online documentation}
|
3085
3096
|
*/
|
3086
3097
|
wait_signal,
|
3087
3098
|
/**
|
3088
3099
|
* Braking before a station.
|
3089
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3100
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.train_state.arrive_station Online documentation}
|
3090
3101
|
*/
|
3091
3102
|
arrive_station,
|
3092
3103
|
/**
|
3093
3104
|
* Switched to manual control and has to stop.
|
3094
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3105
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.train_state.manual_control_stop Online documentation}
|
3095
3106
|
*/
|
3096
3107
|
manual_control_stop,
|
3097
3108
|
/**
|
3098
3109
|
* Can move if user explicitly sits in and rides the train.
|
3099
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3110
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.train_state.manual_control Online documentation}
|
3100
3111
|
*/
|
3101
3112
|
manual_control,
|
3102
3113
|
/**
|
3103
3114
|
* Waiting at a station.
|
3104
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3115
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.train_state.wait_station Online documentation}
|
3105
3116
|
*/
|
3106
3117
|
wait_station,
|
3107
3118
|
/**
|
3108
3119
|
* Same as no_path but all candidate train stops are full
|
3109
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3120
|
+
* @see {@link https://lua-api.factorio.com/2.0.44/defines.html#defines.train_state.destination_full Online documentation}
|
3110
3121
|
*/
|
3111
3122
|
destination_full,
|
3112
3123
|
}
|