typed-factorio 3.21.0 → 3.24.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 +2317 -2159
- package/prototype/generated/types.d.ts +2268 -2198
- package/runtime/generated/classes.d.ts +4381 -3848
- package/runtime/generated/concepts.d.ts +4125 -3612
- package/runtime/generated/defines.d.ts +258 -192
- 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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/defines.html#defines.entity_status.ghost Online documentation}
|
722
722
|
*/
|
723
723
|
ghost,
|
724
724
|
/**
|
725
|
-
* Only used if set through {@link
|
726
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
725
|
+
* Only used if set through {@link import("factorio:prototype").ContainerPrototype#default_status ContainerPrototype::default_status}.
|
726
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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.54/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,
|
@@ -2180,12 +2184,24 @@ declare global {
|
|
2180
2184
|
burnt_result,
|
2181
2185
|
chest,
|
2182
2186
|
logistic_container_trash,
|
2187
|
+
/**
|
2188
|
+
* Deprecated, replaced by `"crafter_input"`.
|
2189
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.inventory.furnace_source Online documentation}
|
2190
|
+
*/
|
2183
2191
|
furnace_source,
|
2192
|
+
/**
|
2193
|
+
* Deprecated, replaced by `"crafter_output"`.
|
2194
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.inventory.furnace_result Online documentation}
|
2195
|
+
*/
|
2184
2196
|
furnace_result,
|
2197
|
+
/**
|
2198
|
+
* Deprecated, replaced by `"crafter_modules"`.
|
2199
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.inventory.furnace_modules Online documentation}
|
2200
|
+
*/
|
2185
2201
|
furnace_modules,
|
2186
2202
|
/**
|
2187
|
-
*
|
2188
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2203
|
+
* Deprecated, replaced by `"crafter_trash"`.
|
2204
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.inventory.furnace_trash Online documentation}
|
2189
2205
|
*/
|
2190
2206
|
furnace_trash,
|
2191
2207
|
character_main,
|
@@ -2203,27 +2219,52 @@ declare global {
|
|
2203
2219
|
roboport_material,
|
2204
2220
|
robot_cargo,
|
2205
2221
|
robot_repair,
|
2222
|
+
/**
|
2223
|
+
* Deprecated, replaced by `"crafter_input"`.
|
2224
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.inventory.assembling_machine_input Online documentation}
|
2225
|
+
*/
|
2206
2226
|
assembling_machine_input,
|
2227
|
+
/**
|
2228
|
+
* Deprecated, replaced by `"crafter_output"`.
|
2229
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.inventory.assembling_machine_output Online documentation}
|
2230
|
+
*/
|
2207
2231
|
assembling_machine_output,
|
2232
|
+
/**
|
2233
|
+
* Deprecated, replaced by `"crafter_modules"`.
|
2234
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.inventory.assembling_machine_modules Online documentation}
|
2235
|
+
*/
|
2208
2236
|
assembling_machine_modules,
|
2209
2237
|
/**
|
2210
|
-
* Used
|
2211
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2238
|
+
* Used for ejected items, or items held by inserters that can't be inserted due the recipe being changed with the circuit network.
|
2239
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.inventory.assembling_machine_dump Online documentation}
|
2212
2240
|
*/
|
2213
2241
|
assembling_machine_dump,
|
2214
2242
|
/**
|
2215
|
-
*
|
2216
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2243
|
+
* Deprecated, replaced by `"crafter_trash"`.
|
2244
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.inventory.assembling_machine_trash Online documentation}
|
2217
2245
|
*/
|
2218
2246
|
assembling_machine_trash,
|
2219
2247
|
lab_input,
|
2220
2248
|
lab_modules,
|
2249
|
+
lab_trash,
|
2221
2250
|
mining_drill_modules,
|
2222
2251
|
item_main,
|
2223
2252
|
rocket_silo_rocket,
|
2224
2253
|
rocket_silo_trash,
|
2254
|
+
/**
|
2255
|
+
* Deprecated, replaced by `"crafter_input"`.
|
2256
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.inventory.rocket_silo_input Online documentation}
|
2257
|
+
*/
|
2225
2258
|
rocket_silo_input,
|
2259
|
+
/**
|
2260
|
+
* Deprecated, replaced by `"crafter_output"`.
|
2261
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.inventory.rocket_silo_output Online documentation}
|
2262
|
+
*/
|
2226
2263
|
rocket_silo_output,
|
2264
|
+
/**
|
2265
|
+
* Deprecated, replaced by `"crafter_modules"`.
|
2266
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.inventory.rocket_silo_modules Online documentation}
|
2267
|
+
*/
|
2227
2268
|
rocket_silo_modules,
|
2228
2269
|
cargo_unit,
|
2229
2270
|
car_trunk,
|
@@ -2243,6 +2284,18 @@ declare global {
|
|
2243
2284
|
cargo_landing_pad_main,
|
2244
2285
|
cargo_landing_pad_trash,
|
2245
2286
|
proxy_main,
|
2287
|
+
agricultural_tower_input,
|
2288
|
+
agricultural_tower_output,
|
2289
|
+
linked_container_main,
|
2290
|
+
crafter_input,
|
2291
|
+
crafter_output,
|
2292
|
+
crafter_modules,
|
2293
|
+
/**
|
2294
|
+
* Used for spoil result items that do not fit into the recipe slots, and for items that are ejected when changing the recipe via remote view.
|
2295
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.inventory.crafter_trash Online documentation}
|
2296
|
+
*/
|
2297
|
+
crafter_trash,
|
2298
|
+
asteroid_collector_output,
|
2246
2299
|
}
|
2247
2300
|
enum logistic_member_index {
|
2248
2301
|
logistic_container,
|
@@ -2277,12 +2330,12 @@ declare global {
|
|
2277
2330
|
circuit_controlled,
|
2278
2331
|
/**
|
2279
2332
|
* Used by rocket silos.
|
2280
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2333
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
|
2281
2334
|
*/
|
2282
2335
|
transitional_request_controlled,
|
2283
2336
|
/**
|
2284
2337
|
* Used by space platform hubs.
|
2285
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2338
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
|
2286
2339
|
*/
|
2287
2340
|
request_missing_materials_controlled,
|
2288
2341
|
}
|
@@ -2301,17 +2354,17 @@ declare global {
|
|
2301
2354
|
enum print_skip {
|
2302
2355
|
/**
|
2303
2356
|
* Print will not be skipped.
|
2304
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2357
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.print_skip.never Online documentation}
|
2305
2358
|
*/
|
2306
2359
|
never,
|
2307
2360
|
/**
|
2308
2361
|
* 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.
|
2362
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.print_skip.if_redundant Online documentation}
|
2310
2363
|
*/
|
2311
2364
|
if_redundant,
|
2312
2365
|
/**
|
2313
2366
|
* 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.
|
2367
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.print_skip.if_visible Online documentation}
|
2315
2368
|
*/
|
2316
2369
|
if_visible,
|
2317
2370
|
}
|
@@ -2322,7 +2375,7 @@ declare global {
|
|
2322
2375
|
}
|
2323
2376
|
/**
|
2324
2377
|
* 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.
|
2378
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.prototypes Online documentation}
|
2326
2379
|
*/
|
2327
2380
|
interface prototypes {
|
2328
2381
|
achievement: {
|
@@ -2539,6 +2592,7 @@ declare global {
|
|
2539
2592
|
"underground-belt": 0
|
2540
2593
|
unit: 0
|
2541
2594
|
"unit-spawner": 0
|
2595
|
+
valve: 0
|
2542
2596
|
wall: 0
|
2543
2597
|
}
|
2544
2598
|
equipment: {
|
@@ -2713,7 +2767,7 @@ declare global {
|
|
2713
2767
|
}
|
2714
2768
|
/**
|
2715
2769
|
* 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.
|
2770
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.prototypes Online documentation}
|
2717
2771
|
*/
|
2718
2772
|
const prototypes: prototypes
|
2719
2773
|
enum rail_connection_direction {
|
@@ -2839,128 +2893,128 @@ declare global {
|
|
2839
2893
|
enum robot_order_type {
|
2840
2894
|
/**
|
2841
2895
|
* Construct a ghost.
|
2842
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2896
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.robot_order_type.construct Online documentation}
|
2843
2897
|
*/
|
2844
2898
|
construct,
|
2845
2899
|
/**
|
2846
2900
|
* Pickup an item.
|
2847
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2901
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.robot_order_type.pickup Online documentation}
|
2848
2902
|
*/
|
2849
2903
|
pickup,
|
2850
2904
|
/**
|
2851
2905
|
* Deliver an item.
|
2852
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2906
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.robot_order_type.deliver Online documentation}
|
2853
2907
|
*/
|
2854
2908
|
deliver,
|
2855
2909
|
/**
|
2856
2910
|
* Repair an entity.
|
2857
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2911
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.robot_order_type.repair Online documentation}
|
2858
2912
|
*/
|
2859
2913
|
repair,
|
2860
2914
|
/**
|
2861
2915
|
* Deconstruct an entity.
|
2862
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2916
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.robot_order_type.deconstruct Online documentation}
|
2863
2917
|
*/
|
2864
2918
|
deconstruct,
|
2865
2919
|
/**
|
2866
2920
|
* Deliver specific items to an entity (item request proxy).
|
2867
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2921
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.robot_order_type.deliver_items Online documentation}
|
2868
2922
|
*/
|
2869
2923
|
deliver_items,
|
2870
2924
|
/**
|
2871
2925
|
* Upgrade an entity.
|
2872
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2926
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.robot_order_type.upgrade Online documentation}
|
2873
2927
|
*/
|
2874
2928
|
upgrade,
|
2875
2929
|
/**
|
2876
2930
|
* Explode a cliff.
|
2877
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2931
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.robot_order_type.explode_cliff Online documentation}
|
2878
2932
|
*/
|
2879
2933
|
explode_cliff,
|
2880
2934
|
/**
|
2881
2935
|
* Pickup items from an entity (item request proxy).
|
2882
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2936
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.robot_order_type.pickup_items Online documentation}
|
2883
2937
|
*/
|
2884
2938
|
pickup_items,
|
2885
2939
|
}
|
2886
2940
|
/**
|
2887
2941
|
* The various parts of the launch sequence of the rocket silo.
|
2888
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2942
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.rocket_silo_status Online documentation}
|
2889
2943
|
*/
|
2890
2944
|
enum rocket_silo_status {
|
2891
2945
|
/**
|
2892
2946
|
* 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.
|
2947
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
|
2894
2948
|
*/
|
2895
2949
|
building_rocket,
|
2896
2950
|
/**
|
2897
2951
|
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
2898
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2952
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
|
2899
2953
|
*/
|
2900
2954
|
create_rocket,
|
2901
2955
|
/**
|
2902
2956
|
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
2903
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2957
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
|
2904
2958
|
*/
|
2905
2959
|
lights_blinking_open,
|
2906
2960
|
/**
|
2907
2961
|
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
2908
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2962
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
|
2909
2963
|
*/
|
2910
2964
|
doors_opening,
|
2911
2965
|
/**
|
2912
2966
|
* 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.
|
2967
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
|
2914
2968
|
*/
|
2915
2969
|
doors_opened,
|
2916
2970
|
/**
|
2917
2971
|
* 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.
|
2972
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
|
2919
2973
|
*/
|
2920
2974
|
rocket_rising,
|
2921
2975
|
/**
|
2922
2976
|
* 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.
|
2977
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
|
2924
2978
|
*/
|
2925
2979
|
arms_advance,
|
2926
2980
|
/**
|
2927
2981
|
* 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.
|
2982
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
|
2929
2983
|
*/
|
2930
2984
|
rocket_ready,
|
2931
2985
|
/**
|
2932
2986
|
* The next state is `launch_started`.
|
2933
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2987
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
|
2934
2988
|
*/
|
2935
2989
|
launch_starting,
|
2936
2990
|
/**
|
2937
2991
|
* 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.
|
2992
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
|
2939
2993
|
*/
|
2940
2994
|
engine_starting,
|
2941
2995
|
/**
|
2942
2996
|
* 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.
|
2997
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
|
2944
2998
|
*/
|
2945
2999
|
arms_retract,
|
2946
3000
|
/**
|
2947
3001
|
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
2948
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3002
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
|
2949
3003
|
*/
|
2950
3004
|
rocket_flying,
|
2951
3005
|
/**
|
2952
3006
|
* The next state is `doors_closing`.
|
2953
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3007
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
|
2954
3008
|
*/
|
2955
3009
|
lights_blinking_close,
|
2956
3010
|
/**
|
2957
3011
|
* The next state is `building_rocket`.
|
2958
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3012
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
|
2959
3013
|
*/
|
2960
3014
|
doors_closing,
|
2961
3015
|
/**
|
2962
3016
|
* 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.
|
3017
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.rocket_silo_status.launch_started Online documentation}
|
2964
3018
|
*/
|
2965
3019
|
launch_started,
|
2966
3020
|
}
|
@@ -2977,74 +3031,74 @@ declare global {
|
|
2977
3031
|
}
|
2978
3032
|
/**
|
2979
3033
|
* State of an ordinary rail signal.
|
2980
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3034
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.signal_state Online documentation}
|
2981
3035
|
*/
|
2982
3036
|
enum signal_state {
|
2983
3037
|
/**
|
2984
3038
|
* Green.
|
2985
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3039
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.signal_state.open Online documentation}
|
2986
3040
|
*/
|
2987
3041
|
open,
|
2988
3042
|
/**
|
2989
3043
|
* Red.
|
2990
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3044
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.signal_state.closed Online documentation}
|
2991
3045
|
*/
|
2992
3046
|
closed,
|
2993
3047
|
/**
|
2994
3048
|
* Orange.
|
2995
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3049
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.signal_state.reserved Online documentation}
|
2996
3050
|
*/
|
2997
3051
|
reserved,
|
2998
3052
|
/**
|
2999
3053
|
* Red - From circuit network.
|
3000
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3054
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
3001
3055
|
*/
|
3002
3056
|
reserved_by_circuit_network,
|
3003
3057
|
}
|
3004
3058
|
enum space_platform_state {
|
3005
3059
|
/**
|
3006
3060
|
* Waiting for a starter pack.
|
3007
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3061
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
|
3008
3062
|
*/
|
3009
3063
|
waiting_for_starter_pack,
|
3010
3064
|
/**
|
3011
3065
|
* Starter pack was requested from the logistics system.
|
3012
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3066
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
|
3013
3067
|
*/
|
3014
3068
|
starter_pack_requested,
|
3015
3069
|
/**
|
3016
3070
|
* Starter pack is on the way.
|
3017
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3071
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
|
3018
3072
|
*/
|
3019
3073
|
starter_pack_on_the_way,
|
3020
3074
|
/**
|
3021
3075
|
* Following the path.
|
3022
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3076
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.space_platform_state.on_the_path Online documentation}
|
3023
3077
|
*/
|
3024
3078
|
on_the_path,
|
3025
3079
|
/**
|
3026
3080
|
* Platform is ready to leave this planet and does not accept deliveries.
|
3027
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3081
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
|
3028
3082
|
*/
|
3029
3083
|
waiting_for_departure,
|
3030
3084
|
/**
|
3031
3085
|
* Doesn't have any stations in schedule.
|
3032
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3086
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.space_platform_state.no_schedule Online documentation}
|
3033
3087
|
*/
|
3034
3088
|
no_schedule,
|
3035
3089
|
/**
|
3036
3090
|
* Doesn't have anywhere to go.
|
3037
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3091
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.space_platform_state.no_path Online documentation}
|
3038
3092
|
*/
|
3039
3093
|
no_path,
|
3040
3094
|
/**
|
3041
3095
|
* Waiting at a station.
|
3042
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3096
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
|
3043
3097
|
*/
|
3044
3098
|
waiting_at_station,
|
3045
3099
|
/**
|
3046
3100
|
* Paused.
|
3047
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3101
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.space_platform_state.paused Online documentation}
|
3048
3102
|
*/
|
3049
3103
|
paused,
|
3050
3104
|
}
|
@@ -3073,52 +3127,52 @@ declare global {
|
|
3073
3127
|
enum train_state {
|
3074
3128
|
/**
|
3075
3129
|
* Normal state -- following the path.
|
3076
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3130
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.train_state.on_the_path Online documentation}
|
3077
3131
|
*/
|
3078
3132
|
on_the_path,
|
3079
3133
|
/**
|
3080
3134
|
* Doesn't have anywhere to go.
|
3081
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3135
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.train_state.no_schedule Online documentation}
|
3082
3136
|
*/
|
3083
3137
|
no_schedule,
|
3084
3138
|
/**
|
3085
3139
|
* Has no path and is stopped.
|
3086
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3140
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.train_state.no_path Online documentation}
|
3087
3141
|
*/
|
3088
3142
|
no_path,
|
3089
3143
|
/**
|
3090
3144
|
* Braking before a rail signal.
|
3091
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3145
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.train_state.arrive_signal Online documentation}
|
3092
3146
|
*/
|
3093
3147
|
arrive_signal,
|
3094
3148
|
/**
|
3095
3149
|
* Waiting at a signal.
|
3096
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3150
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.train_state.wait_signal Online documentation}
|
3097
3151
|
*/
|
3098
3152
|
wait_signal,
|
3099
3153
|
/**
|
3100
3154
|
* Braking before a station.
|
3101
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3155
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.train_state.arrive_station Online documentation}
|
3102
3156
|
*/
|
3103
3157
|
arrive_station,
|
3104
3158
|
/**
|
3105
3159
|
* Switched to manual control and has to stop.
|
3106
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3160
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.train_state.manual_control_stop Online documentation}
|
3107
3161
|
*/
|
3108
3162
|
manual_control_stop,
|
3109
3163
|
/**
|
3110
3164
|
* Can move if user explicitly sits in and rides the train.
|
3111
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3165
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.train_state.manual_control Online documentation}
|
3112
3166
|
*/
|
3113
3167
|
manual_control,
|
3114
3168
|
/**
|
3115
3169
|
* Waiting at a station.
|
3116
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3170
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.train_state.wait_station Online documentation}
|
3117
3171
|
*/
|
3118
3172
|
wait_station,
|
3119
3173
|
/**
|
3120
3174
|
* Same as no_path but all candidate train stops are full
|
3121
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3175
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.train_state.destination_full Online documentation}
|
3122
3176
|
*/
|
3123
3177
|
destination_full,
|
3124
3178
|
}
|
@@ -3146,8 +3200,20 @@ declare global {
|
|
3146
3200
|
power_switch_right_copper,
|
3147
3201
|
}
|
3148
3202
|
enum wire_origin {
|
3203
|
+
/**
|
3204
|
+
* These wires can be modified by players, scripts, and the game. They are visible to the player if the entity's `draw_circuit_wires` prototype property is set to `true` and both ends of it are on the same surface.
|
3205
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.wire_origin.player Online documentation}
|
3206
|
+
*/
|
3149
3207
|
player,
|
3208
|
+
/**
|
3209
|
+
* These wires can be modified by scripts and the game. They are not visible to the player, irrespective of the `draw_circuit_wires` prototype property.
|
3210
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.wire_origin.script Online documentation}
|
3211
|
+
*/
|
3150
3212
|
script,
|
3213
|
+
/**
|
3214
|
+
* These wires can only be modified by the game. They are not visible to the player, irrespective of the `draw_circuit_wires` prototype property.
|
3215
|
+
* @see {@link https://lua-api.factorio.com/2.0.54/defines.html#defines.wire_origin.radars Online documentation}
|
3216
|
+
*/
|
3151
3217
|
radars,
|
3152
3218
|
}
|
3153
3219
|
enum wire_type {
|