typed-factorio 3.27.0 → 3.28.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 +5 -4
- package/prototype/generated/prototypes.d.ts +2248 -2199
- package/prototype/generated/types.d.ts +2148 -2141
- package/runtime/generated/classes.d.ts +4772 -4189
- package/runtime/generated/concepts.d.ts +503 -479
- package/runtime/generated/defines.d.ts +214 -214
- package/runtime/generated/events.d.ts +217 -217
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +7 -7
@@ -245,7 +245,7 @@ declare global {
|
|
245
245
|
}
|
246
246
|
/**
|
247
247
|
* AI command exit status. See {@link LuaEntity#set_command LuaEntity::set_command}
|
248
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
248
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.behavior_result Online documentation}
|
249
249
|
*/
|
250
250
|
enum behavior_result {
|
251
251
|
in_progress,
|
@@ -269,33 +269,33 @@ declare global {
|
|
269
269
|
enum cargo_destination {
|
270
270
|
/**
|
271
271
|
* The default destination type of a cargo pod when created runtime. Setting its destination to any other type will instantly launch it.
|
272
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
272
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.cargo_destination.invalid Online documentation}
|
273
273
|
*/
|
274
274
|
invalid,
|
275
275
|
/**
|
276
276
|
* Cargo pods with orbit destination are destroyed when ascent is completed.
|
277
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
277
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.cargo_destination.orbit Online documentation}
|
278
278
|
*/
|
279
279
|
orbit,
|
280
280
|
/**
|
281
281
|
* Any cargo landing pad or space platform hub.
|
282
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
282
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.cargo_destination.station Online documentation}
|
283
283
|
*/
|
284
284
|
station,
|
285
285
|
/**
|
286
286
|
* 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.
|
287
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
287
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.cargo_destination.surface Online documentation}
|
288
288
|
*/
|
289
289
|
surface,
|
290
290
|
/**
|
291
291
|
* 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.
|
292
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
292
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.cargo_destination.space_platform Online documentation}
|
293
293
|
*/
|
294
294
|
space_platform,
|
295
295
|
}
|
296
296
|
/**
|
297
297
|
* State of a chain signal.
|
298
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
298
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.chain_signal_state Online documentation}
|
299
299
|
*/
|
300
300
|
enum chain_signal_state {
|
301
301
|
none,
|
@@ -313,73 +313,73 @@ declare global {
|
|
313
313
|
}
|
314
314
|
/**
|
315
315
|
* Command given to units describing what they should do.
|
316
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
316
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command Online documentation}
|
317
317
|
*/
|
318
318
|
enum command {
|
319
319
|
/**
|
320
320
|
* Attack another entity.
|
321
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
321
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.attack Online documentation}
|
322
322
|
*/
|
323
323
|
attack = 0,
|
324
324
|
/**
|
325
325
|
* Go to a specific position.
|
326
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
326
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.go_to_location Online documentation}
|
327
327
|
*/
|
328
328
|
go_to_location = 1,
|
329
329
|
/**
|
330
330
|
* Chain commands together, see {@link defines.compound_command}.
|
331
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
331
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.compound Online documentation}
|
332
332
|
*/
|
333
333
|
compound = 2,
|
334
334
|
/**
|
335
335
|
* Do what your group wants you to do.
|
336
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
336
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.group Online documentation}
|
337
337
|
*/
|
338
338
|
group = 3,
|
339
339
|
/**
|
340
340
|
* Go to a place and attack what you see.
|
341
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
341
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.attack_area Online documentation}
|
342
342
|
*/
|
343
343
|
attack_area = 4,
|
344
344
|
/**
|
345
345
|
* Chill.
|
346
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
346
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.wander Online documentation}
|
347
347
|
*/
|
348
348
|
wander = 5,
|
349
349
|
/**
|
350
350
|
* Flee from another entity.
|
351
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
351
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.flee Online documentation}
|
352
352
|
*/
|
353
353
|
flee = 6,
|
354
354
|
/**
|
355
355
|
* Stop moving and stay where you are.
|
356
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
356
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.stop Online documentation}
|
357
357
|
*/
|
358
358
|
stop = 7,
|
359
359
|
/**
|
360
360
|
* Go to a position and build a base there.
|
361
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
361
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.build_base Online documentation}
|
362
362
|
*/
|
363
363
|
build_base = 8,
|
364
364
|
}
|
365
365
|
/**
|
366
366
|
* How commands are joined together in a compound command (see {@link defines.command.compound}).
|
367
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
367
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.compound_command Online documentation}
|
368
368
|
*/
|
369
369
|
enum compound_command {
|
370
370
|
/**
|
371
371
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
372
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
372
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.compound_command.logical_and Online documentation}
|
373
373
|
*/
|
374
374
|
logical_and,
|
375
375
|
/**
|
376
376
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
377
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
377
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.compound_command.logical_or Online documentation}
|
378
378
|
*/
|
379
379
|
logical_or,
|
380
380
|
/**
|
381
381
|
* Execute all commands in sequence and fail or succeed depending on the return status of the last command.
|
382
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
382
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.compound_command.return_last Online documentation}
|
383
383
|
*/
|
384
384
|
return_last,
|
385
385
|
}
|
@@ -441,172 +441,172 @@ declare global {
|
|
441
441
|
enum type {
|
442
442
|
/**
|
443
443
|
* {@link LuaContainerControlBehavior}
|
444
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
444
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.container Online documentation}
|
445
445
|
*/
|
446
446
|
container,
|
447
447
|
/**
|
448
448
|
* {@link LuaGenericOnOffControlBehavior}
|
449
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
449
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
|
450
450
|
*/
|
451
451
|
generic_on_off,
|
452
452
|
/**
|
453
453
|
* {@link LuaInserterControlBehavior}
|
454
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
454
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.inserter Online documentation}
|
455
455
|
*/
|
456
456
|
inserter,
|
457
457
|
/**
|
458
458
|
* {@link LuaLampControlBehavior}
|
459
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
459
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.lamp Online documentation}
|
460
460
|
*/
|
461
461
|
lamp,
|
462
462
|
/**
|
463
463
|
* {@link LuaLogisticContainerControlBehavior}
|
464
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
464
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.logistic_container Online documentation}
|
465
465
|
*/
|
466
466
|
logistic_container,
|
467
467
|
/**
|
468
468
|
* {@link LuaRoboportControlBehavior}
|
469
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
469
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.roboport Online documentation}
|
470
470
|
*/
|
471
471
|
roboport,
|
472
472
|
/**
|
473
473
|
* {@link LuaStorageTankControlBehavior}
|
474
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
474
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.storage_tank Online documentation}
|
475
475
|
*/
|
476
476
|
storage_tank,
|
477
477
|
/**
|
478
478
|
* {@link LuaTrainStopControlBehavior}
|
479
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
479
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.train_stop Online documentation}
|
480
480
|
*/
|
481
481
|
train_stop,
|
482
482
|
/**
|
483
483
|
* {@link LuaDeciderCombinatorControlBehavior}
|
484
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
484
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
|
485
485
|
*/
|
486
486
|
decider_combinator,
|
487
487
|
/**
|
488
488
|
* {@link LuaArithmeticCombinatorControlBehavior}
|
489
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
489
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
|
490
490
|
*/
|
491
491
|
arithmetic_combinator,
|
492
492
|
/**
|
493
493
|
* {@link LuaConstantCombinatorControlBehavior}
|
494
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
494
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
|
495
495
|
*/
|
496
496
|
constant_combinator,
|
497
497
|
/**
|
498
498
|
* {@link LuaTransportBeltControlBehavior}
|
499
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
499
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.transport_belt Online documentation}
|
500
500
|
*/
|
501
501
|
transport_belt,
|
502
502
|
/**
|
503
503
|
* {@link LuaAccumulatorControlBehavior}
|
504
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
504
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.accumulator Online documentation}
|
505
505
|
*/
|
506
506
|
accumulator,
|
507
507
|
/**
|
508
508
|
* {@link LuaRailSignalBaseControlBehavior}
|
509
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
509
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.rail_signal Online documentation}
|
510
510
|
*/
|
511
511
|
rail_signal,
|
512
512
|
/**
|
513
513
|
* {@link LuaRailSignalBaseControlBehavior}
|
514
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
514
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
|
515
515
|
*/
|
516
516
|
rail_chain_signal,
|
517
517
|
/**
|
518
518
|
* {@link LuaWallControlBehavior}
|
519
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
519
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.wall Online documentation}
|
520
520
|
*/
|
521
521
|
wall,
|
522
522
|
/**
|
523
523
|
* {@link LuaMiningDrillControlBehavior}
|
524
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
524
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.mining_drill Online documentation}
|
525
525
|
*/
|
526
526
|
mining_drill,
|
527
527
|
/**
|
528
528
|
* {@link LuaProgrammableSpeakerControlBehavior}
|
529
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
529
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
|
530
530
|
*/
|
531
531
|
programmable_speaker,
|
532
532
|
/**
|
533
533
|
* {@link LuaAssemblingMachineControlBehavior}
|
534
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
534
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.assembling_machine Online documentation}
|
535
535
|
*/
|
536
536
|
assembling_machine,
|
537
537
|
/**
|
538
538
|
* {@link LuaPumpControlBehavior}
|
539
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
539
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.pump Online documentation}
|
540
540
|
*/
|
541
541
|
pump,
|
542
542
|
/**
|
543
543
|
* {@link LuaSelectorCombinatorControlBehavior}
|
544
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
544
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.selector_combinator Online documentation}
|
545
545
|
*/
|
546
546
|
selector_combinator,
|
547
547
|
/**
|
548
548
|
* {@link LuaRocketSiloControlBehavior}
|
549
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
549
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.rocket_silo Online documentation}
|
550
550
|
*/
|
551
551
|
rocket_silo,
|
552
552
|
/**
|
553
553
|
* {@link LuaTurretControlBehavior}
|
554
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
554
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.turret Online documentation}
|
555
555
|
*/
|
556
556
|
turret,
|
557
557
|
/**
|
558
558
|
* {@link LuaReactorControlBehavior}
|
559
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
559
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.reactor Online documentation}
|
560
560
|
*/
|
561
561
|
reactor,
|
562
562
|
/**
|
563
563
|
* {@link LuaSpacePlatformHubControlBehavior}
|
564
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
564
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.space_platform_hub Online documentation}
|
565
565
|
*/
|
566
566
|
space_platform_hub,
|
567
567
|
/**
|
568
568
|
* {@link LuaArtilleryTurretControlBehavior}
|
569
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
569
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.artillery_turret Online documentation}
|
570
570
|
*/
|
571
571
|
artillery_turret,
|
572
572
|
/**
|
573
573
|
* {@link LuaAsteroidCollectorControlBehavior}
|
574
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
574
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.asteroid_collector Online documentation}
|
575
575
|
*/
|
576
576
|
asteroid_collector,
|
577
577
|
/**
|
578
578
|
* {@link LuaRadarControlBehavior}
|
579
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
579
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.radar Online documentation}
|
580
580
|
*/
|
581
581
|
radar,
|
582
582
|
/**
|
583
583
|
* {@link LuaDisplayPanelControlBehavior}
|
584
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
584
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.display_panel Online documentation}
|
585
585
|
*/
|
586
586
|
display_panel,
|
587
587
|
/**
|
588
588
|
* {@link LuaLoaderControlBehavior}
|
589
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
589
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.loader Online documentation}
|
590
590
|
*/
|
591
591
|
loader,
|
592
592
|
/**
|
593
593
|
* {@link LuaCargoLandingPadControlBehavior}
|
594
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
594
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.cargo_landing_pad Online documentation}
|
595
595
|
*/
|
596
596
|
cargo_landing_pad,
|
597
597
|
/**
|
598
598
|
* {@link LuaAgriculturalTowerControlBehavior}
|
599
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
599
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.agricultural_tower Online documentation}
|
600
600
|
*/
|
601
601
|
agricultural_tower,
|
602
602
|
/**
|
603
603
|
* {@link LuaFurnaceControlBehavior}
|
604
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
604
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.furnace Online documentation}
|
605
605
|
*/
|
606
606
|
furnace,
|
607
607
|
/**
|
608
608
|
* {@link LuaProxyContainerControlBehavior}
|
609
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
609
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.proxy_container Online documentation}
|
610
610
|
*/
|
611
611
|
proxy_container,
|
612
612
|
}
|
@@ -614,37 +614,37 @@ declare global {
|
|
614
614
|
enum controllers {
|
615
615
|
/**
|
616
616
|
* Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
|
617
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
617
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.controllers.ghost Online documentation}
|
618
618
|
*/
|
619
619
|
ghost,
|
620
620
|
/**
|
621
621
|
* The controller controls a character. This is the default controller in freeplay.
|
622
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
622
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.controllers.character Online documentation}
|
623
623
|
*/
|
624
624
|
character,
|
625
625
|
/**
|
626
626
|
* The controller isn't tied to a character. This is the default controller in sandbox.
|
627
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
627
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.controllers.god Online documentation}
|
628
628
|
*/
|
629
629
|
god,
|
630
630
|
/**
|
631
631
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
632
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
632
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.controllers.editor Online documentation}
|
633
633
|
*/
|
634
634
|
editor,
|
635
635
|
/**
|
636
636
|
* The player can't interact with the world, and the camera pans around in a predefined manner.
|
637
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
637
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.controllers.cutscene Online documentation}
|
638
638
|
*/
|
639
639
|
cutscene,
|
640
640
|
/**
|
641
641
|
* Can't change anything in the world but can view anything.
|
642
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
642
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.controllers.spectator Online documentation}
|
643
643
|
*/
|
644
644
|
spectator,
|
645
645
|
/**
|
646
646
|
* Can't move/change items but can build ghosts/change settings.
|
647
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
647
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.controllers.remote Online documentation}
|
648
648
|
*/
|
649
649
|
remote,
|
650
650
|
}
|
@@ -706,22 +706,22 @@ declare global {
|
|
706
706
|
enum distraction {
|
707
707
|
/**
|
708
708
|
* Perform command even if someone attacks the unit.
|
709
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
709
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.distraction.none Online documentation}
|
710
710
|
*/
|
711
711
|
none,
|
712
712
|
/**
|
713
713
|
* Attack closer enemy entities with force.
|
714
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
714
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.distraction.by_enemy Online documentation}
|
715
715
|
*/
|
716
716
|
by_enemy,
|
717
717
|
/**
|
718
718
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
719
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
719
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.distraction.by_anything Online documentation}
|
720
720
|
*/
|
721
721
|
by_anything,
|
722
722
|
/**
|
723
723
|
* Attack when attacked.
|
724
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
724
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.distraction.by_damage Online documentation}
|
725
725
|
*/
|
726
726
|
by_damage,
|
727
727
|
}
|
@@ -730,12 +730,12 @@ declare global {
|
|
730
730
|
normal,
|
731
731
|
/**
|
732
732
|
* Used by ghosts.
|
733
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
733
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.ghost Online documentation}
|
734
734
|
*/
|
735
735
|
ghost,
|
736
736
|
/**
|
737
737
|
* Only used if set through {@link import("factorio:prototype").ContainerPrototype#default_status ContainerPrototype::default_status}.
|
738
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
738
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.broken Online documentation}
|
739
739
|
*/
|
740
740
|
broken,
|
741
741
|
no_power,
|
@@ -749,272 +749,272 @@ declare global {
|
|
749
749
|
marked_for_deconstruction,
|
750
750
|
/**
|
751
751
|
* Used by space platform hubs.
|
752
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
752
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.paused Online documentation}
|
753
753
|
*/
|
754
754
|
paused,
|
755
755
|
/**
|
756
756
|
* Used by generators and solar panels.
|
757
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
757
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
|
758
758
|
*/
|
759
759
|
not_plugged_in_electric_network,
|
760
760
|
/**
|
761
761
|
* Used by power switches.
|
762
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
762
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.networks_connected Online documentation}
|
763
763
|
*/
|
764
764
|
networks_connected,
|
765
765
|
/**
|
766
766
|
* Used by power switches.
|
767
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
767
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.networks_disconnected Online documentation}
|
768
768
|
*/
|
769
769
|
networks_disconnected,
|
770
770
|
/**
|
771
771
|
* Used by accumulators.
|
772
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
772
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.charging Online documentation}
|
773
773
|
*/
|
774
774
|
charging,
|
775
775
|
/**
|
776
776
|
* Used by accumulators.
|
777
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
777
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.discharging Online documentation}
|
778
778
|
*/
|
779
779
|
discharging,
|
780
780
|
/**
|
781
781
|
* Used by accumulators.
|
782
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
782
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.fully_charged Online documentation}
|
783
783
|
*/
|
784
784
|
fully_charged,
|
785
785
|
/**
|
786
786
|
* Used by logistic containers.
|
787
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
787
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
|
788
788
|
*/
|
789
789
|
out_of_logistic_network,
|
790
790
|
/**
|
791
791
|
* Used by assembling machines.
|
792
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
792
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.no_recipe Online documentation}
|
793
793
|
*/
|
794
794
|
no_recipe,
|
795
795
|
/**
|
796
796
|
* Used by furnaces.
|
797
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
797
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.no_ingredients Online documentation}
|
798
798
|
*/
|
799
799
|
no_ingredients,
|
800
800
|
/**
|
801
801
|
* Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
|
802
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
802
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.no_input_fluid Online documentation}
|
803
803
|
*/
|
804
804
|
no_input_fluid,
|
805
805
|
/**
|
806
806
|
* Used by labs.
|
807
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
807
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.no_research_in_progress Online documentation}
|
808
808
|
*/
|
809
809
|
no_research_in_progress,
|
810
810
|
/**
|
811
811
|
* Used by mining drills.
|
812
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
812
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.no_minable_resources Online documentation}
|
813
813
|
*/
|
814
814
|
no_minable_resources,
|
815
815
|
/**
|
816
816
|
* Used by cargo bays.
|
817
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
817
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.not_connected_to_hub_or_pad Online documentation}
|
818
818
|
*/
|
819
819
|
not_connected_to_hub_or_pad,
|
820
820
|
/**
|
821
821
|
* Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
|
822
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
822
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.low_input_fluid Online documentation}
|
823
823
|
*/
|
824
824
|
low_input_fluid,
|
825
825
|
/**
|
826
826
|
* Used by crafting machines.
|
827
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
827
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
|
828
828
|
*/
|
829
829
|
fluid_ingredient_shortage,
|
830
830
|
/**
|
831
831
|
* Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
|
832
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
832
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.full_output Online documentation}
|
833
833
|
*/
|
834
834
|
full_output,
|
835
835
|
/**
|
836
836
|
* Used by agricultural towers.
|
837
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
837
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.not_enough_space_in_output Online documentation}
|
838
838
|
*/
|
839
839
|
not_enough_space_in_output,
|
840
840
|
/**
|
841
841
|
* Used by burner energy sources.
|
842
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
842
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
|
843
843
|
*/
|
844
844
|
full_burnt_result_output,
|
845
845
|
/**
|
846
846
|
* Used by crafting machines.
|
847
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
847
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
|
848
848
|
*/
|
849
849
|
item_ingredient_shortage,
|
850
850
|
/**
|
851
851
|
* Used by mining drills when the mining fluid is missing.
|
852
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
852
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.missing_required_fluid Online documentation}
|
853
853
|
*/
|
854
854
|
missing_required_fluid,
|
855
855
|
/**
|
856
856
|
* Used by labs.
|
857
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
857
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.missing_science_packs Online documentation}
|
858
858
|
*/
|
859
859
|
missing_science_packs,
|
860
860
|
/**
|
861
861
|
* Used by inserters.
|
862
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
862
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
|
863
863
|
*/
|
864
864
|
waiting_for_source_items,
|
865
865
|
/**
|
866
866
|
* Used by inserters when wait_for_full_hand is set.
|
867
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
867
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.waiting_for_more_items Online documentation}
|
868
868
|
*/
|
869
869
|
waiting_for_more_items,
|
870
870
|
/**
|
871
871
|
* Used by inserters and mining drills.
|
872
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
872
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
|
873
873
|
*/
|
874
874
|
waiting_for_space_in_destination,
|
875
875
|
/**
|
876
876
|
* Used by the rocket silo.
|
877
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
877
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
|
878
878
|
*/
|
879
879
|
preparing_rocket_for_launch,
|
880
880
|
/**
|
881
881
|
* Used by the rocket silo.
|
882
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
882
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
|
883
883
|
*/
|
884
884
|
waiting_to_launch_rocket,
|
885
885
|
/**
|
886
886
|
* Used by the rocket silo.
|
887
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
887
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.waiting_for_space_in_platform_hub Online documentation}
|
888
888
|
*/
|
889
889
|
waiting_for_space_in_platform_hub,
|
890
890
|
/**
|
891
891
|
* Used by the rocket silo.
|
892
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
892
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.launching_rocket Online documentation}
|
893
893
|
*/
|
894
894
|
launching_rocket,
|
895
895
|
/**
|
896
896
|
* Used by thrusters.
|
897
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
897
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.thrust_not_required Online documentation}
|
898
898
|
*/
|
899
899
|
thrust_not_required,
|
900
900
|
/**
|
901
901
|
* Used by space platform hubs.
|
902
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
902
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.on_the_way Online documentation}
|
903
903
|
*/
|
904
904
|
on_the_way,
|
905
905
|
/**
|
906
906
|
* Used by space platform hubs.
|
907
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
907
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.waiting_in_orbit Online documentation}
|
908
908
|
*/
|
909
909
|
waiting_in_orbit,
|
910
910
|
/**
|
911
911
|
* Used by trains.
|
912
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
912
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.waiting_at_stop Online documentation}
|
913
913
|
*/
|
914
914
|
waiting_at_stop,
|
915
915
|
/**
|
916
916
|
* Used by space platform hubs.
|
917
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
917
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.waiting_for_rockets_to_arrive Online documentation}
|
918
918
|
*/
|
919
919
|
waiting_for_rockets_to_arrive,
|
920
920
|
/**
|
921
921
|
* Used by space platform hubs.
|
922
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
922
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.not_enough_thrust Online documentation}
|
923
923
|
*/
|
924
924
|
not_enough_thrust,
|
925
925
|
/**
|
926
926
|
* Used by trains.
|
927
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
927
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.destination_stop_full Online documentation}
|
928
928
|
*/
|
929
929
|
destination_stop_full,
|
930
930
|
/**
|
931
931
|
* Used by trains and space platform hubs.
|
932
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
932
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.no_path Online documentation}
|
933
933
|
*/
|
934
934
|
no_path,
|
935
935
|
/**
|
936
936
|
* Used by beacons.
|
937
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
937
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
|
938
938
|
*/
|
939
939
|
no_modules_to_transmit,
|
940
940
|
/**
|
941
941
|
* Used by roboports.
|
942
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
942
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
|
943
943
|
*/
|
944
944
|
recharging_after_power_outage,
|
945
945
|
/**
|
946
946
|
* Used by inserters targeting entity ghosts.
|
947
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
947
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
|
948
948
|
*/
|
949
949
|
waiting_for_target_to_be_built,
|
950
950
|
/**
|
951
951
|
* Used by inserters targeting rails.
|
952
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
952
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.waiting_for_train Online documentation}
|
953
953
|
*/
|
954
954
|
waiting_for_train,
|
955
955
|
/**
|
956
956
|
* Used by ammo turrets.
|
957
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
957
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.no_ammo Online documentation}
|
958
958
|
*/
|
959
959
|
no_ammo,
|
960
960
|
/**
|
961
961
|
* Used by heat energy sources.
|
962
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
962
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.low_temperature Online documentation}
|
963
963
|
*/
|
964
964
|
low_temperature,
|
965
965
|
/**
|
966
966
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
967
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
967
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.disabled Online documentation}
|
968
968
|
*/
|
969
969
|
disabled,
|
970
970
|
/**
|
971
971
|
* Used by lamps.
|
972
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
972
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
|
973
973
|
*/
|
974
974
|
turned_off_during_daytime,
|
975
975
|
/**
|
976
976
|
* Used by rail signals.
|
977
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
977
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
|
978
978
|
*/
|
979
979
|
not_connected_to_rail,
|
980
980
|
/**
|
981
981
|
* Used by rail signals.
|
982
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
982
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.cant_divide_segments Online documentation}
|
983
983
|
*/
|
984
984
|
cant_divide_segments,
|
985
985
|
/**
|
986
986
|
* Used by filter inserters.
|
987
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
987
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.no_filter Online documentation}
|
988
988
|
*/
|
989
989
|
no_filter,
|
990
990
|
/**
|
991
991
|
* Used by agricultural towers.
|
992
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
992
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.no_spot_seedable_by_inputs Online documentation}
|
993
993
|
*/
|
994
994
|
no_spot_seedable_by_inputs,
|
995
995
|
/**
|
996
996
|
* Used by agricultural towers.
|
997
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
997
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.waiting_for_plants_to_grow Online documentation}
|
998
998
|
*/
|
999
999
|
waiting_for_plants_to_grow,
|
1000
1000
|
/**
|
1001
1001
|
* Used by asteroid collectors.
|
1002
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1002
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.computing_navigation Online documentation}
|
1003
1003
|
*/
|
1004
1004
|
computing_navigation,
|
1005
1005
|
/**
|
1006
1006
|
* Used by pipes, pipes to ground and storage tanks.
|
1007
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1007
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.pipeline_overextended Online documentation}
|
1008
1008
|
*/
|
1009
1009
|
pipeline_overextended,
|
1010
1010
|
/**
|
1011
1011
|
* Used by assembling machines.
|
1012
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1012
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.recipe_not_researched Online documentation}
|
1013
1013
|
*/
|
1014
1014
|
recipe_not_researched,
|
1015
1015
|
/**
|
1016
1016
|
* Used by assembling machines.
|
1017
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1017
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.recipe_is_parameter Online documentation}
|
1018
1018
|
*/
|
1019
1019
|
recipe_is_parameter,
|
1020
1020
|
}
|
@@ -1024,8 +1024,8 @@ declare global {
|
|
1024
1024
|
yellow,
|
1025
1025
|
}
|
1026
1026
|
/**
|
1027
|
-
* See the {@linkplain https://lua-api.factorio.com/2.0.
|
1028
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1027
|
+
* See the {@linkplain https://lua-api.factorio.com/2.0.64/events.html events page} for more info on what events contain and when they get raised.
|
1028
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.events Online documentation}
|
1029
1029
|
*/
|
1030
1030
|
namespace events {
|
1031
1031
|
/**
|
@@ -1894,8 +1894,8 @@ declare global {
|
|
1894
1894
|
const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent>
|
1895
1895
|
}
|
1896
1896
|
/**
|
1897
|
-
* See the {@linkplain https://lua-api.factorio.com/2.0.
|
1898
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1897
|
+
* See the {@linkplain https://lua-api.factorio.com/2.0.64/events.html events page} for more info on what events contain and when they get raised.
|
1898
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.events Online documentation}
|
1899
1899
|
*/
|
1900
1900
|
type events = (typeof events)[keyof typeof events]
|
1901
1901
|
enum flow_precision_index {
|
@@ -1911,17 +1911,17 @@ declare global {
|
|
1911
1911
|
enum game_controller_interaction {
|
1912
1912
|
/**
|
1913
1913
|
* Game controller will always hover this element regardless of type or state.
|
1914
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1914
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.game_controller_interaction.always Online documentation}
|
1915
1915
|
*/
|
1916
1916
|
always,
|
1917
1917
|
/**
|
1918
1918
|
* Never hover this element with a game controller.
|
1919
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1919
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.game_controller_interaction.never Online documentation}
|
1920
1920
|
*/
|
1921
1921
|
never,
|
1922
1922
|
/**
|
1923
1923
|
* Hover according to the element type and implementation.
|
1924
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1924
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.game_controller_interaction.normal Online documentation}
|
1925
1925
|
*/
|
1926
1926
|
normal,
|
1927
1927
|
}
|
@@ -2248,22 +2248,22 @@ declare global {
|
|
2248
2248
|
logistic_container_trash,
|
2249
2249
|
/**
|
2250
2250
|
* Deprecated, replaced by `"crafter_input"`.
|
2251
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2251
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.furnace_source Online documentation}
|
2252
2252
|
*/
|
2253
2253
|
furnace_source,
|
2254
2254
|
/**
|
2255
2255
|
* Deprecated, replaced by `"crafter_output"`.
|
2256
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2256
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.furnace_result Online documentation}
|
2257
2257
|
*/
|
2258
2258
|
furnace_result,
|
2259
2259
|
/**
|
2260
2260
|
* Deprecated, replaced by `"crafter_modules"`.
|
2261
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2261
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.furnace_modules Online documentation}
|
2262
2262
|
*/
|
2263
2263
|
furnace_modules,
|
2264
2264
|
/**
|
2265
2265
|
* Deprecated, replaced by `"crafter_trash"`.
|
2266
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2266
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.furnace_trash Online documentation}
|
2267
2267
|
*/
|
2268
2268
|
furnace_trash,
|
2269
2269
|
character_main,
|
@@ -2283,27 +2283,27 @@ declare global {
|
|
2283
2283
|
robot_repair,
|
2284
2284
|
/**
|
2285
2285
|
* Deprecated, replaced by `"crafter_input"`.
|
2286
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2286
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.assembling_machine_input Online documentation}
|
2287
2287
|
*/
|
2288
2288
|
assembling_machine_input,
|
2289
2289
|
/**
|
2290
2290
|
* Deprecated, replaced by `"crafter_output"`.
|
2291
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2291
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.assembling_machine_output Online documentation}
|
2292
2292
|
*/
|
2293
2293
|
assembling_machine_output,
|
2294
2294
|
/**
|
2295
2295
|
* Deprecated, replaced by `"crafter_modules"`.
|
2296
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2296
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.assembling_machine_modules Online documentation}
|
2297
2297
|
*/
|
2298
2298
|
assembling_machine_modules,
|
2299
2299
|
/**
|
2300
2300
|
* Used for ejected items, or items held by inserters that can't be inserted due the recipe being changed with the circuit network.
|
2301
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2301
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.assembling_machine_dump Online documentation}
|
2302
2302
|
*/
|
2303
2303
|
assembling_machine_dump,
|
2304
2304
|
/**
|
2305
2305
|
* Deprecated, replaced by `"crafter_trash"`.
|
2306
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2306
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.assembling_machine_trash Online documentation}
|
2307
2307
|
*/
|
2308
2308
|
assembling_machine_trash,
|
2309
2309
|
lab_input,
|
@@ -2315,17 +2315,17 @@ declare global {
|
|
2315
2315
|
rocket_silo_trash,
|
2316
2316
|
/**
|
2317
2317
|
* Deprecated, replaced by `"crafter_input"`.
|
2318
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2318
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.rocket_silo_input Online documentation}
|
2319
2319
|
*/
|
2320
2320
|
rocket_silo_input,
|
2321
2321
|
/**
|
2322
2322
|
* Deprecated, replaced by `"crafter_output"`.
|
2323
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2323
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.rocket_silo_output Online documentation}
|
2324
2324
|
*/
|
2325
2325
|
rocket_silo_output,
|
2326
2326
|
/**
|
2327
2327
|
* Deprecated, replaced by `"crafter_modules"`.
|
2328
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2328
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.rocket_silo_modules Online documentation}
|
2329
2329
|
*/
|
2330
2330
|
rocket_silo_modules,
|
2331
2331
|
cargo_unit,
|
@@ -2354,7 +2354,7 @@ declare global {
|
|
2354
2354
|
crafter_modules,
|
2355
2355
|
/**
|
2356
2356
|
* 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.
|
2357
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2357
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.crafter_trash Online documentation}
|
2358
2358
|
*/
|
2359
2359
|
crafter_trash,
|
2360
2360
|
asteroid_collector_output,
|
@@ -2397,12 +2397,12 @@ declare global {
|
|
2397
2397
|
circuit_controlled,
|
2398
2398
|
/**
|
2399
2399
|
* Used by rocket silos.
|
2400
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2400
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
|
2401
2401
|
*/
|
2402
2402
|
transitional_request_controlled,
|
2403
2403
|
/**
|
2404
2404
|
* Used by space platform hubs.
|
2405
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2405
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
|
2406
2406
|
*/
|
2407
2407
|
request_missing_materials_controlled,
|
2408
2408
|
}
|
@@ -2421,17 +2421,17 @@ declare global {
|
|
2421
2421
|
enum print_skip {
|
2422
2422
|
/**
|
2423
2423
|
* Print will not be skipped.
|
2424
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2424
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.print_skip.never Online documentation}
|
2425
2425
|
*/
|
2426
2426
|
never,
|
2427
2427
|
/**
|
2428
2428
|
* Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
|
2429
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2429
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.print_skip.if_redundant Online documentation}
|
2430
2430
|
*/
|
2431
2431
|
if_redundant,
|
2432
2432
|
/**
|
2433
2433
|
* Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
|
2434
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2434
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.print_skip.if_visible Online documentation}
|
2435
2435
|
*/
|
2436
2436
|
if_visible,
|
2437
2437
|
}
|
@@ -2442,7 +2442,7 @@ declare global {
|
|
2442
2442
|
}
|
2443
2443
|
/**
|
2444
2444
|
* 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, ...}`.
|
2445
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2445
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.prototypes Online documentation}
|
2446
2446
|
*/
|
2447
2447
|
interface prototypes {
|
2448
2448
|
achievement: {
|
@@ -2837,7 +2837,7 @@ declare global {
|
|
2837
2837
|
}
|
2838
2838
|
/**
|
2839
2839
|
* 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, ...}`.
|
2840
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2840
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.prototypes Online documentation}
|
2841
2841
|
*/
|
2842
2842
|
const prototypes: prototypes
|
2843
2843
|
enum rail_connection_direction {
|
@@ -2963,189 +2963,189 @@ declare global {
|
|
2963
2963
|
enum robot_order_type {
|
2964
2964
|
/**
|
2965
2965
|
* Construct a ghost.
|
2966
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2966
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.construct Online documentation}
|
2967
2967
|
*/
|
2968
2968
|
construct,
|
2969
2969
|
/**
|
2970
2970
|
* Pickup an item.
|
2971
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2971
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.pickup Online documentation}
|
2972
2972
|
*/
|
2973
2973
|
pickup,
|
2974
2974
|
/**
|
2975
2975
|
* Deliver an item.
|
2976
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2976
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.deliver Online documentation}
|
2977
2977
|
*/
|
2978
2978
|
deliver,
|
2979
2979
|
/**
|
2980
2980
|
* Repair an entity.
|
2981
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2981
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.repair Online documentation}
|
2982
2982
|
*/
|
2983
2983
|
repair,
|
2984
2984
|
/**
|
2985
2985
|
* Deconstruct an entity.
|
2986
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2986
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.deconstruct Online documentation}
|
2987
2987
|
*/
|
2988
2988
|
deconstruct,
|
2989
2989
|
/**
|
2990
2990
|
* Deliver specific items to an entity (item request proxy).
|
2991
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2991
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.deliver_items Online documentation}
|
2992
2992
|
*/
|
2993
2993
|
deliver_items,
|
2994
2994
|
/**
|
2995
2995
|
* Upgrade an entity.
|
2996
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2996
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.upgrade Online documentation}
|
2997
2997
|
*/
|
2998
2998
|
upgrade,
|
2999
2999
|
/**
|
3000
3000
|
* Explode a cliff.
|
3001
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3001
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.explode_cliff Online documentation}
|
3002
3002
|
*/
|
3003
3003
|
explode_cliff,
|
3004
3004
|
/**
|
3005
3005
|
* Pickup items from an entity (item request proxy).
|
3006
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3006
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.pickup_items Online documentation}
|
3007
3007
|
*/
|
3008
3008
|
pickup_items,
|
3009
3009
|
}
|
3010
3010
|
/**
|
3011
3011
|
* The various parts of the launch sequence of the rocket silo.
|
3012
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3012
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status Online documentation}
|
3013
3013
|
*/
|
3014
3014
|
enum rocket_silo_status {
|
3015
3015
|
/**
|
3016
3016
|
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
3017
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3017
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
|
3018
3018
|
*/
|
3019
3019
|
building_rocket,
|
3020
3020
|
/**
|
3021
3021
|
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
3022
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3022
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
|
3023
3023
|
*/
|
3024
3024
|
create_rocket,
|
3025
3025
|
/**
|
3026
3026
|
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
3027
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3027
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
|
3028
3028
|
*/
|
3029
3029
|
lights_blinking_open,
|
3030
3030
|
/**
|
3031
3031
|
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
3032
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3032
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
|
3033
3033
|
*/
|
3034
3034
|
doors_opening,
|
3035
3035
|
/**
|
3036
3036
|
* 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.
|
3037
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3037
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
|
3038
3038
|
*/
|
3039
3039
|
doors_opened,
|
3040
3040
|
/**
|
3041
3041
|
* 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.
|
3042
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3042
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
|
3043
3043
|
*/
|
3044
3044
|
rocket_rising,
|
3045
3045
|
/**
|
3046
3046
|
* 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.
|
3047
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3047
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
|
3048
3048
|
*/
|
3049
3049
|
arms_advance,
|
3050
3050
|
/**
|
3051
3051
|
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
3052
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3052
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
|
3053
3053
|
*/
|
3054
3054
|
rocket_ready,
|
3055
3055
|
/**
|
3056
3056
|
* The next state is `launch_started`.
|
3057
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3057
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
|
3058
3058
|
*/
|
3059
3059
|
launch_starting,
|
3060
3060
|
/**
|
3061
3061
|
* 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.
|
3062
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3062
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
|
3063
3063
|
*/
|
3064
3064
|
engine_starting,
|
3065
3065
|
/**
|
3066
3066
|
* 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.
|
3067
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3067
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
|
3068
3068
|
*/
|
3069
3069
|
arms_retract,
|
3070
3070
|
/**
|
3071
3071
|
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
3072
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3072
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
|
3073
3073
|
*/
|
3074
3074
|
rocket_flying,
|
3075
3075
|
/**
|
3076
3076
|
* The next state is `doors_closing`.
|
3077
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3077
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
|
3078
3078
|
*/
|
3079
3079
|
lights_blinking_close,
|
3080
3080
|
/**
|
3081
3081
|
* The next state is `building_rocket`.
|
3082
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3082
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
|
3083
3083
|
*/
|
3084
3084
|
doors_closing,
|
3085
3085
|
/**
|
3086
3086
|
* 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.
|
3087
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3087
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.launch_started Online documentation}
|
3088
3088
|
*/
|
3089
3089
|
launch_started,
|
3090
3090
|
}
|
3091
3091
|
enum segmented_unit_activity_mode {
|
3092
3092
|
/**
|
3093
3093
|
* The segmented unit is completely asleep, only performing the bare minimum checks to wake up if needed.
|
3094
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3094
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_activity_mode.asleep Online documentation}
|
3095
3095
|
*/
|
3096
3096
|
asleep,
|
3097
3097
|
/**
|
3098
3098
|
* The segmented unit is minimally active, reducing unnecessary entity movement and trigger effects while continuing to patrol around its territory.
|
3099
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3099
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_activity_mode.minimal Online documentation}
|
3100
3100
|
*/
|
3101
3101
|
minimal,
|
3102
3102
|
/**
|
3103
3103
|
* The segmented unit is fully active and simulated as if it is being observed by a player.
|
3104
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3104
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_activity_mode.full Online documentation}
|
3105
3105
|
*/
|
3106
3106
|
full,
|
3107
3107
|
}
|
3108
3108
|
enum segmented_unit_ai_state {
|
3109
3109
|
/**
|
3110
3110
|
* The segmented unit is navigating its territory's patrol path. If the unit is not assigned to a territory, then it is patrolling around the position it was created.
|
3111
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3111
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_ai_state.patrolling Online documentation}
|
3112
3112
|
*/
|
3113
3113
|
patrolling,
|
3114
3114
|
/**
|
3115
3115
|
* The segmented unit is investigating a location where it detected a disturbance.
|
3116
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3116
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_ai_state.investigating Online documentation}
|
3117
3117
|
*/
|
3118
3118
|
investigating,
|
3119
3119
|
/**
|
3120
3120
|
* The segmented unit is attacking an entity that is trespassing on its territory, but the segmented unit is not using its full strength.
|
3121
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3121
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_ai_state.attacking Online documentation}
|
3122
3122
|
*/
|
3123
3123
|
attacking,
|
3124
3124
|
/**
|
3125
3125
|
* The segmented unit is angry because it was attacked and is aggressively attacking an entity with its full strength.
|
3126
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3126
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_ai_state.enraged_at_target Online documentation}
|
3127
3127
|
*/
|
3128
3128
|
enraged_at_target,
|
3129
3129
|
/**
|
3130
3130
|
* The segmented unit is angry because it was attacked but it does not have a valid attack target, so it is wandering around trying to find a valid attack target.
|
3131
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3131
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_ai_state.enraged_at_nothing Online documentation}
|
3132
3132
|
*/
|
3133
3133
|
enraged_at_nothing,
|
3134
3134
|
}
|
3135
3135
|
enum segmented_unit_created_cause {
|
3136
3136
|
/**
|
3137
3137
|
* The segmented unit was spawned naturally by the map generator.
|
3138
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3138
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_created_cause.map_generated Online documentation}
|
3139
3139
|
*/
|
3140
3140
|
map_generated,
|
3141
3141
|
/**
|
3142
3142
|
* The segmented unit was created manually via script.
|
3143
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3143
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_created_cause.script_created Online documentation}
|
3144
3144
|
*/
|
3145
3145
|
script_created,
|
3146
3146
|
/**
|
3147
3147
|
* The segmented unit was cloned from an existing segmented unit via script.
|
3148
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3148
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_created_cause.script_cloned Online documentation}
|
3149
3149
|
*/
|
3150
3150
|
script_cloned,
|
3151
3151
|
}
|
@@ -3162,74 +3162,74 @@ declare global {
|
|
3162
3162
|
}
|
3163
3163
|
/**
|
3164
3164
|
* State of an ordinary rail signal.
|
3165
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3165
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.signal_state Online documentation}
|
3166
3166
|
*/
|
3167
3167
|
enum signal_state {
|
3168
3168
|
/**
|
3169
3169
|
* Green.
|
3170
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3170
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.signal_state.open Online documentation}
|
3171
3171
|
*/
|
3172
3172
|
open,
|
3173
3173
|
/**
|
3174
3174
|
* Red.
|
3175
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3175
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.signal_state.closed Online documentation}
|
3176
3176
|
*/
|
3177
3177
|
closed,
|
3178
3178
|
/**
|
3179
3179
|
* Orange.
|
3180
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3180
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.signal_state.reserved Online documentation}
|
3181
3181
|
*/
|
3182
3182
|
reserved,
|
3183
3183
|
/**
|
3184
3184
|
* Red - From circuit network.
|
3185
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3185
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
3186
3186
|
*/
|
3187
3187
|
reserved_by_circuit_network,
|
3188
3188
|
}
|
3189
3189
|
enum space_platform_state {
|
3190
3190
|
/**
|
3191
3191
|
* Waiting for a starter pack.
|
3192
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3192
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
|
3193
3193
|
*/
|
3194
3194
|
waiting_for_starter_pack,
|
3195
3195
|
/**
|
3196
3196
|
* Starter pack was requested from the logistics system.
|
3197
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3197
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
|
3198
3198
|
*/
|
3199
3199
|
starter_pack_requested,
|
3200
3200
|
/**
|
3201
3201
|
* Starter pack is on the way.
|
3202
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3202
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
|
3203
3203
|
*/
|
3204
3204
|
starter_pack_on_the_way,
|
3205
3205
|
/**
|
3206
3206
|
* Following the path.
|
3207
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3207
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.on_the_path Online documentation}
|
3208
3208
|
*/
|
3209
3209
|
on_the_path,
|
3210
3210
|
/**
|
3211
3211
|
* Platform is ready to leave this planet and does not accept deliveries.
|
3212
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3212
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
|
3213
3213
|
*/
|
3214
3214
|
waiting_for_departure,
|
3215
3215
|
/**
|
3216
3216
|
* Doesn't have any stations in schedule.
|
3217
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3217
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.no_schedule Online documentation}
|
3218
3218
|
*/
|
3219
3219
|
no_schedule,
|
3220
3220
|
/**
|
3221
3221
|
* Doesn't have anywhere to go.
|
3222
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3222
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.no_path Online documentation}
|
3223
3223
|
*/
|
3224
3224
|
no_path,
|
3225
3225
|
/**
|
3226
3226
|
* Waiting at a station.
|
3227
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3227
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
|
3228
3228
|
*/
|
3229
3229
|
waiting_at_station,
|
3230
3230
|
/**
|
3231
3231
|
* Paused.
|
3232
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3232
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.paused Online documentation}
|
3233
3233
|
*/
|
3234
3234
|
paused,
|
3235
3235
|
}
|
@@ -3260,64 +3260,64 @@ declare global {
|
|
3260
3260
|
enum territory_created_cause {
|
3261
3261
|
/**
|
3262
3262
|
* The territory was spawned naturally by the map generator.
|
3263
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3263
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.territory_created_cause.map_generated Online documentation}
|
3264
3264
|
*/
|
3265
3265
|
map_generated,
|
3266
3266
|
/**
|
3267
3267
|
* The territory was created manually via script.
|
3268
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3268
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.territory_created_cause.script_created Online documentation}
|
3269
3269
|
*/
|
3270
3270
|
script_created,
|
3271
3271
|
}
|
3272
3272
|
enum train_state {
|
3273
3273
|
/**
|
3274
3274
|
* Normal state -- following the path.
|
3275
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3275
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.on_the_path Online documentation}
|
3276
3276
|
*/
|
3277
3277
|
on_the_path,
|
3278
3278
|
/**
|
3279
3279
|
* Doesn't have anywhere to go.
|
3280
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3280
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.no_schedule Online documentation}
|
3281
3281
|
*/
|
3282
3282
|
no_schedule,
|
3283
3283
|
/**
|
3284
3284
|
* Has no path and is stopped.
|
3285
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3285
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.no_path Online documentation}
|
3286
3286
|
*/
|
3287
3287
|
no_path,
|
3288
3288
|
/**
|
3289
3289
|
* Braking before a rail signal.
|
3290
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3290
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.arrive_signal Online documentation}
|
3291
3291
|
*/
|
3292
3292
|
arrive_signal,
|
3293
3293
|
/**
|
3294
3294
|
* Waiting at a signal.
|
3295
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3295
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.wait_signal Online documentation}
|
3296
3296
|
*/
|
3297
3297
|
wait_signal,
|
3298
3298
|
/**
|
3299
3299
|
* Braking before a station.
|
3300
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3300
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.arrive_station Online documentation}
|
3301
3301
|
*/
|
3302
3302
|
arrive_station,
|
3303
3303
|
/**
|
3304
3304
|
* Switched to manual control and has to stop.
|
3305
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3305
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.manual_control_stop Online documentation}
|
3306
3306
|
*/
|
3307
3307
|
manual_control_stop,
|
3308
3308
|
/**
|
3309
3309
|
* Can move if user explicitly sits in and rides the train.
|
3310
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3310
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.manual_control Online documentation}
|
3311
3311
|
*/
|
3312
3312
|
manual_control,
|
3313
3313
|
/**
|
3314
3314
|
* Waiting at a station.
|
3315
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3315
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.wait_station Online documentation}
|
3316
3316
|
*/
|
3317
3317
|
wait_station,
|
3318
3318
|
/**
|
3319
3319
|
* Same as no_path but all candidate train stops are full
|
3320
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3320
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.destination_full Online documentation}
|
3321
3321
|
*/
|
3322
3322
|
destination_full,
|
3323
3323
|
}
|
@@ -3347,17 +3347,17 @@ declare global {
|
|
3347
3347
|
enum wire_origin {
|
3348
3348
|
/**
|
3349
3349
|
* 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.
|
3350
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3350
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.wire_origin.player Online documentation}
|
3351
3351
|
*/
|
3352
3352
|
player,
|
3353
3353
|
/**
|
3354
3354
|
* 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.
|
3355
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3355
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.wire_origin.script Online documentation}
|
3356
3356
|
*/
|
3357
3357
|
script,
|
3358
3358
|
/**
|
3359
3359
|
* These wires can only be modified by the game. They are not visible to the player, irrespective of the `draw_circuit_wires` prototype property.
|
3360
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3360
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.wire_origin.radars Online documentation}
|
3361
3361
|
*/
|
3362
3362
|
radars,
|
3363
3363
|
}
|