typed-factorio 3.27.0 → 3.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +343 -244
- 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
@@ -4,6 +4,36 @@
|
|
4
4
|
|
5
5
|
import type {
|
6
6
|
EventId,
|
7
|
+
LuaEntityClonedEventFilter,
|
8
|
+
LuaEntityDamagedEventFilter,
|
9
|
+
LuaEntityDeconstructionCancelledEventFilter,
|
10
|
+
LuaEntityDiedEventFilter,
|
11
|
+
LuaEntityMarkedForDeconstructionEventFilter,
|
12
|
+
LuaEntityMarkedForUpgradeEventFilter,
|
13
|
+
LuaPlatformBuiltEntityEventFilter,
|
14
|
+
LuaPlatformMinedEntityEventFilter,
|
15
|
+
LuaPlayerBuiltEntityEventFilter,
|
16
|
+
LuaPlayerMinedEntityEventFilter,
|
17
|
+
LuaPlayerRepairedEntityEventFilter,
|
18
|
+
LuaPostEntityDiedEventFilter,
|
19
|
+
LuaPostSegmentedUnitDiedEventFilter,
|
20
|
+
LuaPreGhostDeconstructedEventFilter,
|
21
|
+
LuaPreGhostUpgradedEventFilter,
|
22
|
+
LuaPrePlatformMinedEntityEventFilter,
|
23
|
+
LuaPrePlayerMinedEntityEventFilter,
|
24
|
+
LuaPreRobotMinedEntityEventFilter,
|
25
|
+
LuaRobotBuiltEntityEventFilter,
|
26
|
+
LuaRobotMinedEntityEventFilter,
|
27
|
+
LuaScriptRaisedBuiltEventFilter,
|
28
|
+
LuaScriptRaisedDestroyEventFilter,
|
29
|
+
LuaScriptRaisedDestroySegmentedUnitEventFilter,
|
30
|
+
LuaScriptRaisedReviveEventFilter,
|
31
|
+
LuaScriptRaisedTeleportedEventFilter,
|
32
|
+
LuaSectorScannedEventFilter,
|
33
|
+
LuaSegmentedUnitCreatedEventFilter,
|
34
|
+
LuaSegmentedUnitDamagedEventFilter,
|
35
|
+
LuaSegmentedUnitDiedEventFilter,
|
36
|
+
LuaUpgradeCancelledEventFilter,
|
7
37
|
OnAchievementGainedEvent,
|
8
38
|
OnAiCommandCompletedEvent,
|
9
39
|
OnAreaClonedEvent,
|
@@ -245,7 +275,7 @@ declare global {
|
|
245
275
|
}
|
246
276
|
/**
|
247
277
|
* AI command exit status. See {@link LuaEntity#set_command LuaEntity::set_command}
|
248
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
278
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.behavior_result Online documentation}
|
249
279
|
*/
|
250
280
|
enum behavior_result {
|
251
281
|
in_progress,
|
@@ -269,33 +299,33 @@ declare global {
|
|
269
299
|
enum cargo_destination {
|
270
300
|
/**
|
271
301
|
* 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.
|
302
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.cargo_destination.invalid Online documentation}
|
273
303
|
*/
|
274
304
|
invalid,
|
275
305
|
/**
|
276
306
|
* Cargo pods with orbit destination are destroyed when ascent is completed.
|
277
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
307
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.cargo_destination.orbit Online documentation}
|
278
308
|
*/
|
279
309
|
orbit,
|
280
310
|
/**
|
281
311
|
* Any cargo landing pad or space platform hub.
|
282
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
312
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.cargo_destination.station Online documentation}
|
283
313
|
*/
|
284
314
|
station,
|
285
315
|
/**
|
286
316
|
* 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.
|
317
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.cargo_destination.surface Online documentation}
|
288
318
|
*/
|
289
319
|
surface,
|
290
320
|
/**
|
291
321
|
* 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.
|
322
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.cargo_destination.space_platform Online documentation}
|
293
323
|
*/
|
294
324
|
space_platform,
|
295
325
|
}
|
296
326
|
/**
|
297
327
|
* State of a chain signal.
|
298
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
328
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.chain_signal_state Online documentation}
|
299
329
|
*/
|
300
330
|
enum chain_signal_state {
|
301
331
|
none,
|
@@ -313,73 +343,73 @@ declare global {
|
|
313
343
|
}
|
314
344
|
/**
|
315
345
|
* Command given to units describing what they should do.
|
316
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
346
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command Online documentation}
|
317
347
|
*/
|
318
348
|
enum command {
|
319
349
|
/**
|
320
350
|
* Attack another entity.
|
321
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
351
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.attack Online documentation}
|
322
352
|
*/
|
323
353
|
attack = 0,
|
324
354
|
/**
|
325
355
|
* Go to a specific position.
|
326
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
356
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.go_to_location Online documentation}
|
327
357
|
*/
|
328
358
|
go_to_location = 1,
|
329
359
|
/**
|
330
360
|
* Chain commands together, see {@link defines.compound_command}.
|
331
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
361
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.compound Online documentation}
|
332
362
|
*/
|
333
363
|
compound = 2,
|
334
364
|
/**
|
335
365
|
* Do what your group wants you to do.
|
336
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
366
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.group Online documentation}
|
337
367
|
*/
|
338
368
|
group = 3,
|
339
369
|
/**
|
340
370
|
* Go to a place and attack what you see.
|
341
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
371
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.attack_area Online documentation}
|
342
372
|
*/
|
343
373
|
attack_area = 4,
|
344
374
|
/**
|
345
375
|
* Chill.
|
346
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
376
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.wander Online documentation}
|
347
377
|
*/
|
348
378
|
wander = 5,
|
349
379
|
/**
|
350
380
|
* Flee from another entity.
|
351
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
381
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.flee Online documentation}
|
352
382
|
*/
|
353
383
|
flee = 6,
|
354
384
|
/**
|
355
385
|
* Stop moving and stay where you are.
|
356
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
386
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.stop Online documentation}
|
357
387
|
*/
|
358
388
|
stop = 7,
|
359
389
|
/**
|
360
390
|
* Go to a position and build a base there.
|
361
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
391
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.command.build_base Online documentation}
|
362
392
|
*/
|
363
393
|
build_base = 8,
|
364
394
|
}
|
365
395
|
/**
|
366
396
|
* How commands are joined together in a compound command (see {@link defines.command.compound}).
|
367
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
397
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.compound_command Online documentation}
|
368
398
|
*/
|
369
399
|
enum compound_command {
|
370
400
|
/**
|
371
401
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
372
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
402
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.compound_command.logical_and Online documentation}
|
373
403
|
*/
|
374
404
|
logical_and,
|
375
405
|
/**
|
376
406
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
377
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
407
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.compound_command.logical_or Online documentation}
|
378
408
|
*/
|
379
409
|
logical_or,
|
380
410
|
/**
|
381
411
|
* 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.
|
412
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.compound_command.return_last Online documentation}
|
383
413
|
*/
|
384
414
|
return_last,
|
385
415
|
}
|
@@ -441,172 +471,172 @@ declare global {
|
|
441
471
|
enum type {
|
442
472
|
/**
|
443
473
|
* {@link LuaContainerControlBehavior}
|
444
|
-
* @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.container Online documentation}
|
445
475
|
*/
|
446
476
|
container,
|
447
477
|
/**
|
448
478
|
* {@link LuaGenericOnOffControlBehavior}
|
449
|
-
* @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.generic_on_off Online documentation}
|
450
480
|
*/
|
451
481
|
generic_on_off,
|
452
482
|
/**
|
453
483
|
* {@link LuaInserterControlBehavior}
|
454
|
-
* @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.inserter Online documentation}
|
455
485
|
*/
|
456
486
|
inserter,
|
457
487
|
/**
|
458
488
|
* {@link LuaLampControlBehavior}
|
459
|
-
* @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.lamp Online documentation}
|
460
490
|
*/
|
461
491
|
lamp,
|
462
492
|
/**
|
463
493
|
* {@link LuaLogisticContainerControlBehavior}
|
464
|
-
* @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.logistic_container Online documentation}
|
465
495
|
*/
|
466
496
|
logistic_container,
|
467
497
|
/**
|
468
498
|
* {@link LuaRoboportControlBehavior}
|
469
|
-
* @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.roboport Online documentation}
|
470
500
|
*/
|
471
501
|
roboport,
|
472
502
|
/**
|
473
503
|
* {@link LuaStorageTankControlBehavior}
|
474
|
-
* @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.storage_tank Online documentation}
|
475
505
|
*/
|
476
506
|
storage_tank,
|
477
507
|
/**
|
478
508
|
* {@link LuaTrainStopControlBehavior}
|
479
|
-
* @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.train_stop Online documentation}
|
480
510
|
*/
|
481
511
|
train_stop,
|
482
512
|
/**
|
483
513
|
* {@link LuaDeciderCombinatorControlBehavior}
|
484
|
-
* @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.decider_combinator Online documentation}
|
485
515
|
*/
|
486
516
|
decider_combinator,
|
487
517
|
/**
|
488
518
|
* {@link LuaArithmeticCombinatorControlBehavior}
|
489
|
-
* @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.arithmetic_combinator Online documentation}
|
490
520
|
*/
|
491
521
|
arithmetic_combinator,
|
492
522
|
/**
|
493
523
|
* {@link LuaConstantCombinatorControlBehavior}
|
494
|
-
* @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.constant_combinator Online documentation}
|
495
525
|
*/
|
496
526
|
constant_combinator,
|
497
527
|
/**
|
498
528
|
* {@link LuaTransportBeltControlBehavior}
|
499
|
-
* @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.transport_belt Online documentation}
|
500
530
|
*/
|
501
531
|
transport_belt,
|
502
532
|
/**
|
503
533
|
* {@link LuaAccumulatorControlBehavior}
|
504
|
-
* @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.accumulator Online documentation}
|
505
535
|
*/
|
506
536
|
accumulator,
|
507
537
|
/**
|
508
538
|
* {@link LuaRailSignalBaseControlBehavior}
|
509
|
-
* @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.rail_signal Online documentation}
|
510
540
|
*/
|
511
541
|
rail_signal,
|
512
542
|
/**
|
513
543
|
* {@link LuaRailSignalBaseControlBehavior}
|
514
|
-
* @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.rail_chain_signal Online documentation}
|
515
545
|
*/
|
516
546
|
rail_chain_signal,
|
517
547
|
/**
|
518
548
|
* {@link LuaWallControlBehavior}
|
519
|
-
* @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.wall Online documentation}
|
520
550
|
*/
|
521
551
|
wall,
|
522
552
|
/**
|
523
553
|
* {@link LuaMiningDrillControlBehavior}
|
524
|
-
* @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.mining_drill Online documentation}
|
525
555
|
*/
|
526
556
|
mining_drill,
|
527
557
|
/**
|
528
558
|
* {@link LuaProgrammableSpeakerControlBehavior}
|
529
|
-
* @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.programmable_speaker Online documentation}
|
530
560
|
*/
|
531
561
|
programmable_speaker,
|
532
562
|
/**
|
533
563
|
* {@link LuaAssemblingMachineControlBehavior}
|
534
|
-
* @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.assembling_machine Online documentation}
|
535
565
|
*/
|
536
566
|
assembling_machine,
|
537
567
|
/**
|
538
568
|
* {@link LuaPumpControlBehavior}
|
539
|
-
* @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.pump Online documentation}
|
540
570
|
*/
|
541
571
|
pump,
|
542
572
|
/**
|
543
573
|
* {@link LuaSelectorCombinatorControlBehavior}
|
544
|
-
* @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.selector_combinator Online documentation}
|
545
575
|
*/
|
546
576
|
selector_combinator,
|
547
577
|
/**
|
548
578
|
* {@link LuaRocketSiloControlBehavior}
|
549
|
-
* @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.rocket_silo Online documentation}
|
550
580
|
*/
|
551
581
|
rocket_silo,
|
552
582
|
/**
|
553
583
|
* {@link LuaTurretControlBehavior}
|
554
|
-
* @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.turret Online documentation}
|
555
585
|
*/
|
556
586
|
turret,
|
557
587
|
/**
|
558
588
|
* {@link LuaReactorControlBehavior}
|
559
|
-
* @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.reactor Online documentation}
|
560
590
|
*/
|
561
591
|
reactor,
|
562
592
|
/**
|
563
593
|
* {@link LuaSpacePlatformHubControlBehavior}
|
564
|
-
* @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.space_platform_hub Online documentation}
|
565
595
|
*/
|
566
596
|
space_platform_hub,
|
567
597
|
/**
|
568
598
|
* {@link LuaArtilleryTurretControlBehavior}
|
569
|
-
* @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.artillery_turret Online documentation}
|
570
600
|
*/
|
571
601
|
artillery_turret,
|
572
602
|
/**
|
573
603
|
* {@link LuaAsteroidCollectorControlBehavior}
|
574
|
-
* @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.asteroid_collector Online documentation}
|
575
605
|
*/
|
576
606
|
asteroid_collector,
|
577
607
|
/**
|
578
608
|
* {@link LuaRadarControlBehavior}
|
579
|
-
* @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.radar Online documentation}
|
580
610
|
*/
|
581
611
|
radar,
|
582
612
|
/**
|
583
613
|
* {@link LuaDisplayPanelControlBehavior}
|
584
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
614
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.display_panel Online documentation}
|
585
615
|
*/
|
586
616
|
display_panel,
|
587
617
|
/**
|
588
618
|
* {@link LuaLoaderControlBehavior}
|
589
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
619
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.loader Online documentation}
|
590
620
|
*/
|
591
621
|
loader,
|
592
622
|
/**
|
593
623
|
* {@link LuaCargoLandingPadControlBehavior}
|
594
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
624
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.cargo_landing_pad Online documentation}
|
595
625
|
*/
|
596
626
|
cargo_landing_pad,
|
597
627
|
/**
|
598
628
|
* {@link LuaAgriculturalTowerControlBehavior}
|
599
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
629
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.agricultural_tower Online documentation}
|
600
630
|
*/
|
601
631
|
agricultural_tower,
|
602
632
|
/**
|
603
633
|
* {@link LuaFurnaceControlBehavior}
|
604
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
634
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.furnace Online documentation}
|
605
635
|
*/
|
606
636
|
furnace,
|
607
637
|
/**
|
608
638
|
* {@link LuaProxyContainerControlBehavior}
|
609
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
639
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.control_behavior.type.proxy_container Online documentation}
|
610
640
|
*/
|
611
641
|
proxy_container,
|
612
642
|
}
|
@@ -614,37 +644,37 @@ declare global {
|
|
614
644
|
enum controllers {
|
615
645
|
/**
|
616
646
|
* 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.
|
647
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.controllers.ghost Online documentation}
|
618
648
|
*/
|
619
649
|
ghost,
|
620
650
|
/**
|
621
651
|
* The controller controls a character. This is the default controller in freeplay.
|
622
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
652
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.controllers.character Online documentation}
|
623
653
|
*/
|
624
654
|
character,
|
625
655
|
/**
|
626
656
|
* 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.
|
657
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.controllers.god Online documentation}
|
628
658
|
*/
|
629
659
|
god,
|
630
660
|
/**
|
631
661
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
632
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
662
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.controllers.editor Online documentation}
|
633
663
|
*/
|
634
664
|
editor,
|
635
665
|
/**
|
636
666
|
* 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.
|
667
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.controllers.cutscene Online documentation}
|
638
668
|
*/
|
639
669
|
cutscene,
|
640
670
|
/**
|
641
671
|
* Can't change anything in the world but can view anything.
|
642
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
672
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.controllers.spectator Online documentation}
|
643
673
|
*/
|
644
674
|
spectator,
|
645
675
|
/**
|
646
676
|
* Can't move/change items but can build ghosts/change settings.
|
647
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
677
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.controllers.remote Online documentation}
|
648
678
|
*/
|
649
679
|
remote,
|
650
680
|
}
|
@@ -706,22 +736,22 @@ declare global {
|
|
706
736
|
enum distraction {
|
707
737
|
/**
|
708
738
|
* Perform command even if someone attacks the unit.
|
709
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
739
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.distraction.none Online documentation}
|
710
740
|
*/
|
711
741
|
none,
|
712
742
|
/**
|
713
743
|
* Attack closer enemy entities with force.
|
714
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
744
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.distraction.by_enemy Online documentation}
|
715
745
|
*/
|
716
746
|
by_enemy,
|
717
747
|
/**
|
718
748
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
719
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
749
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.distraction.by_anything Online documentation}
|
720
750
|
*/
|
721
751
|
by_anything,
|
722
752
|
/**
|
723
753
|
* Attack when attacked.
|
724
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
754
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.distraction.by_damage Online documentation}
|
725
755
|
*/
|
726
756
|
by_damage,
|
727
757
|
}
|
@@ -730,12 +760,12 @@ declare global {
|
|
730
760
|
normal,
|
731
761
|
/**
|
732
762
|
* Used by ghosts.
|
733
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
763
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.ghost Online documentation}
|
734
764
|
*/
|
735
765
|
ghost,
|
736
766
|
/**
|
737
767
|
* 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.
|
768
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.broken Online documentation}
|
739
769
|
*/
|
740
770
|
broken,
|
741
771
|
no_power,
|
@@ -749,272 +779,272 @@ declare global {
|
|
749
779
|
marked_for_deconstruction,
|
750
780
|
/**
|
751
781
|
* Used by space platform hubs.
|
752
|
-
* @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.paused Online documentation}
|
753
783
|
*/
|
754
784
|
paused,
|
755
785
|
/**
|
756
786
|
* Used by generators and solar panels.
|
757
|
-
* @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.not_plugged_in_electric_network Online documentation}
|
758
788
|
*/
|
759
789
|
not_plugged_in_electric_network,
|
760
790
|
/**
|
761
791
|
* Used by power switches.
|
762
|
-
* @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.networks_connected Online documentation}
|
763
793
|
*/
|
764
794
|
networks_connected,
|
765
795
|
/**
|
766
796
|
* Used by power switches.
|
767
|
-
* @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.networks_disconnected Online documentation}
|
768
798
|
*/
|
769
799
|
networks_disconnected,
|
770
800
|
/**
|
771
801
|
* Used by accumulators.
|
772
|
-
* @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.charging Online documentation}
|
773
803
|
*/
|
774
804
|
charging,
|
775
805
|
/**
|
776
806
|
* Used by accumulators.
|
777
|
-
* @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.discharging Online documentation}
|
778
808
|
*/
|
779
809
|
discharging,
|
780
810
|
/**
|
781
811
|
* Used by accumulators.
|
782
|
-
* @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.fully_charged Online documentation}
|
783
813
|
*/
|
784
814
|
fully_charged,
|
785
815
|
/**
|
786
816
|
* Used by logistic containers.
|
787
|
-
* @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.out_of_logistic_network Online documentation}
|
788
818
|
*/
|
789
819
|
out_of_logistic_network,
|
790
820
|
/**
|
791
821
|
* Used by assembling machines.
|
792
|
-
* @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.no_recipe Online documentation}
|
793
823
|
*/
|
794
824
|
no_recipe,
|
795
825
|
/**
|
796
826
|
* Used by furnaces.
|
797
|
-
* @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.no_ingredients Online documentation}
|
798
828
|
*/
|
799
829
|
no_ingredients,
|
800
830
|
/**
|
801
831
|
* 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.
|
832
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.no_input_fluid Online documentation}
|
803
833
|
*/
|
804
834
|
no_input_fluid,
|
805
835
|
/**
|
806
836
|
* Used by labs.
|
807
|
-
* @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.no_research_in_progress Online documentation}
|
808
838
|
*/
|
809
839
|
no_research_in_progress,
|
810
840
|
/**
|
811
841
|
* Used by mining drills.
|
812
|
-
* @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.no_minable_resources Online documentation}
|
813
843
|
*/
|
814
844
|
no_minable_resources,
|
815
845
|
/**
|
816
846
|
* Used by cargo bays.
|
817
|
-
* @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.not_connected_to_hub_or_pad Online documentation}
|
818
848
|
*/
|
819
849
|
not_connected_to_hub_or_pad,
|
820
850
|
/**
|
821
851
|
* 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.
|
852
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.low_input_fluid Online documentation}
|
823
853
|
*/
|
824
854
|
low_input_fluid,
|
825
855
|
/**
|
826
856
|
* Used by crafting machines.
|
827
|
-
* @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.fluid_ingredient_shortage Online documentation}
|
828
858
|
*/
|
829
859
|
fluid_ingredient_shortage,
|
830
860
|
/**
|
831
861
|
* 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.
|
862
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.full_output Online documentation}
|
833
863
|
*/
|
834
864
|
full_output,
|
835
865
|
/**
|
836
866
|
* Used by agricultural towers.
|
837
|
-
* @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.not_enough_space_in_output Online documentation}
|
838
868
|
*/
|
839
869
|
not_enough_space_in_output,
|
840
870
|
/**
|
841
871
|
* Used by burner energy sources.
|
842
|
-
* @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.full_burnt_result_output Online documentation}
|
843
873
|
*/
|
844
874
|
full_burnt_result_output,
|
845
875
|
/**
|
846
876
|
* Used by crafting machines.
|
847
|
-
* @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.item_ingredient_shortage Online documentation}
|
848
878
|
*/
|
849
879
|
item_ingredient_shortage,
|
850
880
|
/**
|
851
881
|
* Used by mining drills when the mining fluid is missing.
|
852
|
-
* @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.missing_required_fluid Online documentation}
|
853
883
|
*/
|
854
884
|
missing_required_fluid,
|
855
885
|
/**
|
856
886
|
* Used by labs.
|
857
|
-
* @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.missing_science_packs Online documentation}
|
858
888
|
*/
|
859
889
|
missing_science_packs,
|
860
890
|
/**
|
861
891
|
* Used by inserters.
|
862
|
-
* @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.waiting_for_source_items Online documentation}
|
863
893
|
*/
|
864
894
|
waiting_for_source_items,
|
865
895
|
/**
|
866
896
|
* Used by inserters when wait_for_full_hand is set.
|
867
|
-
* @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.waiting_for_more_items Online documentation}
|
868
898
|
*/
|
869
899
|
waiting_for_more_items,
|
870
900
|
/**
|
871
901
|
* Used by inserters and mining drills.
|
872
|
-
* @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.waiting_for_space_in_destination Online documentation}
|
873
903
|
*/
|
874
904
|
waiting_for_space_in_destination,
|
875
905
|
/**
|
876
906
|
* Used by the rocket silo.
|
877
|
-
* @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.preparing_rocket_for_launch Online documentation}
|
878
908
|
*/
|
879
909
|
preparing_rocket_for_launch,
|
880
910
|
/**
|
881
911
|
* Used by the rocket silo.
|
882
|
-
* @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_to_launch_rocket Online documentation}
|
883
913
|
*/
|
884
914
|
waiting_to_launch_rocket,
|
885
915
|
/**
|
886
916
|
* Used by the rocket silo.
|
887
|
-
* @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_space_in_platform_hub Online documentation}
|
888
918
|
*/
|
889
919
|
waiting_for_space_in_platform_hub,
|
890
920
|
/**
|
891
921
|
* Used by the rocket silo.
|
892
|
-
* @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.launching_rocket Online documentation}
|
893
923
|
*/
|
894
924
|
launching_rocket,
|
895
925
|
/**
|
896
926
|
* Used by thrusters.
|
897
|
-
* @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.thrust_not_required Online documentation}
|
898
928
|
*/
|
899
929
|
thrust_not_required,
|
900
930
|
/**
|
901
931
|
* Used by space platform hubs.
|
902
|
-
* @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.on_the_way Online documentation}
|
903
933
|
*/
|
904
934
|
on_the_way,
|
905
935
|
/**
|
906
936
|
* Used by space platform hubs.
|
907
|
-
* @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.waiting_in_orbit Online documentation}
|
908
938
|
*/
|
909
939
|
waiting_in_orbit,
|
910
940
|
/**
|
911
941
|
* Used by trains.
|
912
|
-
* @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.waiting_at_stop Online documentation}
|
913
943
|
*/
|
914
944
|
waiting_at_stop,
|
915
945
|
/**
|
916
946
|
* Used by space platform hubs.
|
917
|
-
* @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_rockets_to_arrive Online documentation}
|
918
948
|
*/
|
919
949
|
waiting_for_rockets_to_arrive,
|
920
950
|
/**
|
921
951
|
* Used by space platform hubs.
|
922
|
-
* @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.not_enough_thrust Online documentation}
|
923
953
|
*/
|
924
954
|
not_enough_thrust,
|
925
955
|
/**
|
926
956
|
* Used by trains.
|
927
|
-
* @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.destination_stop_full Online documentation}
|
928
958
|
*/
|
929
959
|
destination_stop_full,
|
930
960
|
/**
|
931
961
|
* Used by trains and space platform hubs.
|
932
|
-
* @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.no_path Online documentation}
|
933
963
|
*/
|
934
964
|
no_path,
|
935
965
|
/**
|
936
966
|
* Used by beacons.
|
937
|
-
* @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.no_modules_to_transmit Online documentation}
|
938
968
|
*/
|
939
969
|
no_modules_to_transmit,
|
940
970
|
/**
|
941
971
|
* Used by roboports.
|
942
|
-
* @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.recharging_after_power_outage Online documentation}
|
943
973
|
*/
|
944
974
|
recharging_after_power_outage,
|
945
975
|
/**
|
946
976
|
* Used by inserters targeting entity ghosts.
|
947
|
-
* @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.waiting_for_target_to_be_built Online documentation}
|
948
978
|
*/
|
949
979
|
waiting_for_target_to_be_built,
|
950
980
|
/**
|
951
981
|
* Used by inserters targeting rails.
|
952
|
-
* @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.waiting_for_train Online documentation}
|
953
983
|
*/
|
954
984
|
waiting_for_train,
|
955
985
|
/**
|
956
986
|
* Used by ammo turrets.
|
957
|
-
* @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_ammo Online documentation}
|
958
988
|
*/
|
959
989
|
no_ammo,
|
960
990
|
/**
|
961
991
|
* Used by heat energy sources.
|
962
|
-
* @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.low_temperature Online documentation}
|
963
993
|
*/
|
964
994
|
low_temperature,
|
965
995
|
/**
|
966
996
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
967
|
-
* @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.disabled Online documentation}
|
968
998
|
*/
|
969
999
|
disabled,
|
970
1000
|
/**
|
971
1001
|
* Used by lamps.
|
972
|
-
* @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.turned_off_during_daytime Online documentation}
|
973
1003
|
*/
|
974
1004
|
turned_off_during_daytime,
|
975
1005
|
/**
|
976
1006
|
* Used by rail signals.
|
977
|
-
* @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.not_connected_to_rail Online documentation}
|
978
1008
|
*/
|
979
1009
|
not_connected_to_rail,
|
980
1010
|
/**
|
981
1011
|
* Used by rail signals.
|
982
|
-
* @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.cant_divide_segments Online documentation}
|
983
1013
|
*/
|
984
1014
|
cant_divide_segments,
|
985
1015
|
/**
|
986
1016
|
* Used by filter inserters.
|
987
|
-
* @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.no_filter Online documentation}
|
988
1018
|
*/
|
989
1019
|
no_filter,
|
990
1020
|
/**
|
991
1021
|
* Used by agricultural towers.
|
992
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1022
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.no_spot_seedable_by_inputs Online documentation}
|
993
1023
|
*/
|
994
1024
|
no_spot_seedable_by_inputs,
|
995
1025
|
/**
|
996
1026
|
* Used by agricultural towers.
|
997
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1027
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.waiting_for_plants_to_grow Online documentation}
|
998
1028
|
*/
|
999
1029
|
waiting_for_plants_to_grow,
|
1000
1030
|
/**
|
1001
1031
|
* Used by asteroid collectors.
|
1002
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1032
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.computing_navigation Online documentation}
|
1003
1033
|
*/
|
1004
1034
|
computing_navigation,
|
1005
1035
|
/**
|
1006
1036
|
* Used by pipes, pipes to ground and storage tanks.
|
1007
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1037
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.pipeline_overextended Online documentation}
|
1008
1038
|
*/
|
1009
1039
|
pipeline_overextended,
|
1010
1040
|
/**
|
1011
1041
|
* Used by assembling machines.
|
1012
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1042
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.recipe_not_researched Online documentation}
|
1013
1043
|
*/
|
1014
1044
|
recipe_not_researched,
|
1015
1045
|
/**
|
1016
1046
|
* Used by assembling machines.
|
1017
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1047
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.entity_status.recipe_is_parameter Online documentation}
|
1018
1048
|
*/
|
1019
1049
|
recipe_is_parameter,
|
1020
1050
|
}
|
@@ -1024,8 +1054,8 @@ declare global {
|
|
1024
1054
|
yellow,
|
1025
1055
|
}
|
1026
1056
|
/**
|
1027
|
-
* See the {@linkplain https://lua-api.factorio.com/2.0.
|
1028
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1057
|
+
* 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.
|
1058
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.events Online documentation}
|
1029
1059
|
*/
|
1030
1060
|
namespace events {
|
1031
1061
|
/**
|
@@ -1054,16 +1084,25 @@ declare global {
|
|
1054
1084
|
const on_build_base_arrived: EventId<OnBuildBaseArrivedEvent>
|
1055
1085
|
/**
|
1056
1086
|
* Event type: {@link OnBuiltEntityEvent}
|
1087
|
+
*
|
1088
|
+
* Event filter: {@link LuaPlayerBuiltEntityEventFilter}
|
1057
1089
|
*/
|
1058
|
-
const on_built_entity: EventId<OnBuiltEntityEvent>
|
1090
|
+
const on_built_entity: EventId<OnBuiltEntityEvent, LuaPlayerBuiltEntityEventFilter>
|
1059
1091
|
/**
|
1060
1092
|
* Event type: {@link OnCancelledDeconstructionEvent}
|
1093
|
+
*
|
1094
|
+
* Event filter: {@link LuaEntityDeconstructionCancelledEventFilter}
|
1061
1095
|
*/
|
1062
|
-
const on_cancelled_deconstruction: EventId<
|
1096
|
+
const on_cancelled_deconstruction: EventId<
|
1097
|
+
OnCancelledDeconstructionEvent,
|
1098
|
+
LuaEntityDeconstructionCancelledEventFilter
|
1099
|
+
>
|
1063
1100
|
/**
|
1064
1101
|
* Event type: {@link OnCancelledUpgradeEvent}
|
1102
|
+
*
|
1103
|
+
* Event filter: {@link LuaUpgradeCancelledEventFilter}
|
1065
1104
|
*/
|
1066
|
-
const on_cancelled_upgrade: EventId<OnCancelledUpgradeEvent>
|
1105
|
+
const on_cancelled_upgrade: EventId<OnCancelledUpgradeEvent, LuaUpgradeCancelledEventFilter>
|
1067
1106
|
/**
|
1068
1107
|
* Event type: {@link OnCargoPodDeliveredCargoEvent}
|
1069
1108
|
*/
|
@@ -1134,20 +1173,26 @@ declare global {
|
|
1134
1173
|
const on_cutscene_waypoint_reached: EventId<OnCutsceneWaypointReachedEvent>
|
1135
1174
|
/**
|
1136
1175
|
* Event type: {@link OnEntityClonedEvent}
|
1176
|
+
*
|
1177
|
+
* Event filter: {@link LuaEntityClonedEventFilter}
|
1137
1178
|
*/
|
1138
|
-
const on_entity_cloned: EventId<OnEntityClonedEvent>
|
1179
|
+
const on_entity_cloned: EventId<OnEntityClonedEvent, LuaEntityClonedEventFilter>
|
1139
1180
|
/**
|
1140
1181
|
* Event type: {@link OnEntityColorChangedEvent}
|
1141
1182
|
*/
|
1142
1183
|
const on_entity_color_changed: EventId<OnEntityColorChangedEvent>
|
1143
1184
|
/**
|
1144
1185
|
* Event type: {@link OnEntityDamagedEvent}
|
1186
|
+
*
|
1187
|
+
* Event filter: {@link LuaEntityDamagedEventFilter}
|
1145
1188
|
*/
|
1146
|
-
const on_entity_damaged: EventId<OnEntityDamagedEvent>
|
1189
|
+
const on_entity_damaged: EventId<OnEntityDamagedEvent, LuaEntityDamagedEventFilter>
|
1147
1190
|
/**
|
1148
1191
|
* Event type: {@link OnEntityDiedEvent}
|
1192
|
+
*
|
1193
|
+
* Event filter: {@link LuaEntityDiedEventFilter}
|
1149
1194
|
*/
|
1150
|
-
const on_entity_died: EventId<OnEntityDiedEvent>
|
1195
|
+
const on_entity_died: EventId<OnEntityDiedEvent, LuaEntityDiedEventFilter>
|
1151
1196
|
/**
|
1152
1197
|
* Event type: {@link OnEntityLogisticSlotChangedEvent}
|
1153
1198
|
*/
|
@@ -1266,12 +1311,19 @@ declare global {
|
|
1266
1311
|
const on_lua_shortcut: EventId<OnLuaShortcutEvent>
|
1267
1312
|
/**
|
1268
1313
|
* Event type: {@link OnMarkedForDeconstructionEvent}
|
1314
|
+
*
|
1315
|
+
* Event filter: {@link LuaEntityMarkedForDeconstructionEventFilter}
|
1269
1316
|
*/
|
1270
|
-
const on_marked_for_deconstruction: EventId<
|
1317
|
+
const on_marked_for_deconstruction: EventId<
|
1318
|
+
OnMarkedForDeconstructionEvent,
|
1319
|
+
LuaEntityMarkedForDeconstructionEventFilter
|
1320
|
+
>
|
1271
1321
|
/**
|
1272
1322
|
* Event type: {@link OnMarkedForUpgradeEvent}
|
1323
|
+
*
|
1324
|
+
* Event filter: {@link LuaEntityMarkedForUpgradeEventFilter}
|
1273
1325
|
*/
|
1274
|
-
const on_marked_for_upgrade: EventId<OnMarkedForUpgradeEvent>
|
1326
|
+
const on_marked_for_upgrade: EventId<OnMarkedForUpgradeEvent, LuaEntityMarkedForUpgradeEventFilter>
|
1275
1327
|
/**
|
1276
1328
|
* Event type: {@link OnMarketItemPurchasedEvent}
|
1277
1329
|
*/
|
@@ -1454,8 +1506,10 @@ declare global {
|
|
1454
1506
|
const on_player_main_inventory_changed: EventId<OnPlayerMainInventoryChangedEvent>
|
1455
1507
|
/**
|
1456
1508
|
* Event type: {@link OnPlayerMinedEntityEvent}
|
1509
|
+
*
|
1510
|
+
* Event filter: {@link LuaPlayerMinedEntityEventFilter}
|
1457
1511
|
*/
|
1458
|
-
const on_player_mined_entity: EventId<OnPlayerMinedEntityEvent>
|
1512
|
+
const on_player_mined_entity: EventId<OnPlayerMinedEntityEvent, LuaPlayerMinedEntityEventFilter>
|
1459
1513
|
/**
|
1460
1514
|
* Event type: {@link OnPlayerMinedItemEvent}
|
1461
1515
|
*/
|
@@ -1490,8 +1544,10 @@ declare global {
|
|
1490
1544
|
const on_player_removed_equipment: EventId<OnPlayerRemovedEquipmentEvent>
|
1491
1545
|
/**
|
1492
1546
|
* Event type: {@link OnPlayerRepairedEntityEvent}
|
1547
|
+
*
|
1548
|
+
* Event filter: {@link LuaPlayerRepairedEntityEventFilter}
|
1493
1549
|
*/
|
1494
|
-
const on_player_repaired_entity: EventId<OnPlayerRepairedEntityEvent>
|
1550
|
+
const on_player_repaired_entity: EventId<OnPlayerRepairedEntityEvent, LuaPlayerRepairedEntityEventFilter>
|
1495
1551
|
/**
|
1496
1552
|
* Event type: {@link OnPlayerRespawnedEvent}
|
1497
1553
|
*/
|
@@ -1546,12 +1602,16 @@ declare global {
|
|
1546
1602
|
const on_player_used_spidertron_remote: EventId<OnPlayerUsedSpidertronRemoteEvent>
|
1547
1603
|
/**
|
1548
1604
|
* Event type: {@link OnPostEntityDiedEvent}
|
1605
|
+
*
|
1606
|
+
* Event filter: {@link LuaPostEntityDiedEventFilter}
|
1549
1607
|
*/
|
1550
|
-
const on_post_entity_died: EventId<OnPostEntityDiedEvent>
|
1608
|
+
const on_post_entity_died: EventId<OnPostEntityDiedEvent, LuaPostEntityDiedEventFilter>
|
1551
1609
|
/**
|
1552
1610
|
* Event type: {@link OnPostSegmentedUnitDiedEvent}
|
1611
|
+
*
|
1612
|
+
* Event filter: {@link LuaPostSegmentedUnitDiedEventFilter}
|
1553
1613
|
*/
|
1554
|
-
const on_post_segmented_unit_died: EventId<OnPostSegmentedUnitDiedEvent>
|
1614
|
+
const on_post_segmented_unit_died: EventId<OnPostSegmentedUnitDiedEvent, LuaPostSegmentedUnitDiedEventFilter>
|
1555
1615
|
/**
|
1556
1616
|
* Event type: {@link OnPreBuildEvent}
|
1557
1617
|
*/
|
@@ -1566,12 +1626,16 @@ declare global {
|
|
1566
1626
|
const on_pre_entity_settings_pasted: EventId<OnPreEntitySettingsPastedEvent>
|
1567
1627
|
/**
|
1568
1628
|
* Event type: {@link OnPreGhostDeconstructedEvent}
|
1629
|
+
*
|
1630
|
+
* Event filter: {@link LuaPreGhostDeconstructedEventFilter}
|
1569
1631
|
*/
|
1570
|
-
const on_pre_ghost_deconstructed: EventId<OnPreGhostDeconstructedEvent>
|
1632
|
+
const on_pre_ghost_deconstructed: EventId<OnPreGhostDeconstructedEvent, LuaPreGhostDeconstructedEventFilter>
|
1571
1633
|
/**
|
1572
1634
|
* Event type: {@link OnPreGhostUpgradedEvent}
|
1635
|
+
*
|
1636
|
+
* Event filter: {@link LuaPreGhostUpgradedEventFilter}
|
1573
1637
|
*/
|
1574
|
-
const on_pre_ghost_upgraded: EventId<OnPreGhostUpgradedEvent>
|
1638
|
+
const on_pre_ghost_upgraded: EventId<OnPreGhostUpgradedEvent, LuaPreGhostUpgradedEventFilter>
|
1575
1639
|
/**
|
1576
1640
|
* Event type: {@link OnPrePermissionGroupDeletedEvent}
|
1577
1641
|
*/
|
@@ -1594,8 +1658,10 @@ declare global {
|
|
1594
1658
|
const on_pre_player_left_game: EventId<OnPrePlayerLeftGameEvent>
|
1595
1659
|
/**
|
1596
1660
|
* Event type: {@link OnPrePlayerMinedItemEvent}
|
1661
|
+
*
|
1662
|
+
* Event filter: {@link LuaPrePlayerMinedEntityEventFilter}
|
1597
1663
|
*/
|
1598
|
-
const on_pre_player_mined_item: EventId<OnPrePlayerMinedItemEvent>
|
1664
|
+
const on_pre_player_mined_item: EventId<OnPrePlayerMinedItemEvent, LuaPrePlayerMinedEntityEventFilter>
|
1599
1665
|
/**
|
1600
1666
|
* Event type: {@link OnPrePlayerRemovedEvent}
|
1601
1667
|
*/
|
@@ -1658,8 +1724,10 @@ declare global {
|
|
1658
1724
|
const on_resource_depleted: EventId<OnResourceDepletedEvent>
|
1659
1725
|
/**
|
1660
1726
|
* Event type: {@link OnRobotBuiltEntityEvent}
|
1727
|
+
*
|
1728
|
+
* Event filter: {@link LuaRobotBuiltEntityEventFilter}
|
1661
1729
|
*/
|
1662
|
-
const on_robot_built_entity: EventId<OnRobotBuiltEntityEvent>
|
1730
|
+
const on_robot_built_entity: EventId<OnRobotBuiltEntityEvent, LuaRobotBuiltEntityEventFilter>
|
1663
1731
|
/**
|
1664
1732
|
* Event type: {@link OnRobotBuiltTileEvent}
|
1665
1733
|
*/
|
@@ -1674,16 +1742,20 @@ declare global {
|
|
1674
1742
|
const on_robot_mined: EventId<OnRobotMinedEvent>
|
1675
1743
|
/**
|
1676
1744
|
* Event type: {@link OnRobotMinedEntityEvent}
|
1745
|
+
*
|
1746
|
+
* Event filter: {@link LuaRobotMinedEntityEventFilter}
|
1677
1747
|
*/
|
1678
|
-
const on_robot_mined_entity: EventId<OnRobotMinedEntityEvent>
|
1748
|
+
const on_robot_mined_entity: EventId<OnRobotMinedEntityEvent, LuaRobotMinedEntityEventFilter>
|
1679
1749
|
/**
|
1680
1750
|
* Event type: {@link OnRobotMinedTileEvent}
|
1681
1751
|
*/
|
1682
1752
|
const on_robot_mined_tile: EventId<OnRobotMinedTileEvent>
|
1683
1753
|
/**
|
1684
1754
|
* Event type: {@link OnRobotPreMinedEvent}
|
1755
|
+
*
|
1756
|
+
* Event filter: {@link LuaPreRobotMinedEntityEventFilter}
|
1685
1757
|
*/
|
1686
|
-
const on_robot_pre_mined: EventId<OnRobotPreMinedEvent>
|
1758
|
+
const on_robot_pre_mined: EventId<OnRobotPreMinedEvent, LuaPreRobotMinedEntityEventFilter>
|
1687
1759
|
/**
|
1688
1760
|
* Event type: {@link OnRocketLaunchOrderedEvent}
|
1689
1761
|
*/
|
@@ -1710,24 +1782,32 @@ declare global {
|
|
1710
1782
|
const on_script_trigger_effect: EventId<OnScriptTriggerEffectEvent>
|
1711
1783
|
/**
|
1712
1784
|
* Event type: {@link OnSectorScannedEvent}
|
1785
|
+
*
|
1786
|
+
* Event filter: {@link LuaSectorScannedEventFilter}
|
1713
1787
|
*/
|
1714
|
-
const on_sector_scanned: EventId<OnSectorScannedEvent>
|
1788
|
+
const on_sector_scanned: EventId<OnSectorScannedEvent, LuaSectorScannedEventFilter>
|
1715
1789
|
/**
|
1716
1790
|
* Event type: {@link OnSegmentEntityCreatedEvent}
|
1717
1791
|
*/
|
1718
1792
|
const on_segment_entity_created: EventId<OnSegmentEntityCreatedEvent>
|
1719
1793
|
/**
|
1720
1794
|
* Event type: {@link OnSegmentedUnitCreatedEvent}
|
1795
|
+
*
|
1796
|
+
* Event filter: {@link LuaSegmentedUnitCreatedEventFilter}
|
1721
1797
|
*/
|
1722
|
-
const on_segmented_unit_created: EventId<OnSegmentedUnitCreatedEvent>
|
1798
|
+
const on_segmented_unit_created: EventId<OnSegmentedUnitCreatedEvent, LuaSegmentedUnitCreatedEventFilter>
|
1723
1799
|
/**
|
1724
1800
|
* Event type: {@link OnSegmentedUnitDamagedEvent}
|
1801
|
+
*
|
1802
|
+
* Event filter: {@link LuaSegmentedUnitDamagedEventFilter}
|
1725
1803
|
*/
|
1726
|
-
const on_segmented_unit_damaged: EventId<OnSegmentedUnitDamagedEvent>
|
1804
|
+
const on_segmented_unit_damaged: EventId<OnSegmentedUnitDamagedEvent, LuaSegmentedUnitDamagedEventFilter>
|
1727
1805
|
/**
|
1728
1806
|
* Event type: {@link OnSegmentedUnitDiedEvent}
|
1807
|
+
*
|
1808
|
+
* Event filter: {@link LuaSegmentedUnitDiedEventFilter}
|
1729
1809
|
*/
|
1730
|
-
const on_segmented_unit_died: EventId<OnSegmentedUnitDiedEvent>
|
1810
|
+
const on_segmented_unit_died: EventId<OnSegmentedUnitDiedEvent, LuaSegmentedUnitDiedEventFilter>
|
1731
1811
|
/**
|
1732
1812
|
* Event type: {@link OnSelectedEntityChangedEvent}
|
1733
1813
|
*/
|
@@ -1738,8 +1818,10 @@ declare global {
|
|
1738
1818
|
const on_singleplayer_init: EventId<OnSingleplayerInitEvent>
|
1739
1819
|
/**
|
1740
1820
|
* Event type: {@link OnSpacePlatformBuiltEntityEvent}
|
1821
|
+
*
|
1822
|
+
* Event filter: {@link LuaPlatformBuiltEntityEventFilter}
|
1741
1823
|
*/
|
1742
|
-
const on_space_platform_built_entity: EventId<OnSpacePlatformBuiltEntityEvent>
|
1824
|
+
const on_space_platform_built_entity: EventId<OnSpacePlatformBuiltEntityEvent, LuaPlatformBuiltEntityEventFilter>
|
1743
1825
|
/**
|
1744
1826
|
* Event type: {@link OnSpacePlatformBuiltTileEvent}
|
1745
1827
|
*/
|
@@ -1750,8 +1832,10 @@ declare global {
|
|
1750
1832
|
const on_space_platform_changed_state: EventId<OnSpacePlatformChangedStateEvent>
|
1751
1833
|
/**
|
1752
1834
|
* Event type: {@link OnSpacePlatformMinedEntityEvent}
|
1835
|
+
*
|
1836
|
+
* Event filter: {@link LuaPlatformMinedEntityEventFilter}
|
1753
1837
|
*/
|
1754
|
-
const on_space_platform_mined_entity: EventId<OnSpacePlatformMinedEntityEvent>
|
1838
|
+
const on_space_platform_mined_entity: EventId<OnSpacePlatformMinedEntityEvent, LuaPlatformMinedEntityEventFilter>
|
1755
1839
|
/**
|
1756
1840
|
* Event type: {@link OnSpacePlatformMinedItemEvent}
|
1757
1841
|
*/
|
@@ -1762,8 +1846,10 @@ declare global {
|
|
1762
1846
|
const on_space_platform_mined_tile: EventId<OnSpacePlatformMinedTileEvent>
|
1763
1847
|
/**
|
1764
1848
|
* Event type: {@link OnSpacePlatformPreMinedEvent}
|
1849
|
+
*
|
1850
|
+
* Event filter: {@link LuaPrePlatformMinedEntityEventFilter}
|
1765
1851
|
*/
|
1766
|
-
const on_space_platform_pre_mined: EventId<OnSpacePlatformPreMinedEvent>
|
1852
|
+
const on_space_platform_pre_mined: EventId<OnSpacePlatformPreMinedEvent, LuaPrePlatformMinedEntityEventFilter>
|
1767
1853
|
/**
|
1768
1854
|
* Event type: {@link OnSpiderCommandCompletedEvent}
|
1769
1855
|
*/
|
@@ -1870,32 +1956,45 @@ declare global {
|
|
1870
1956
|
const on_worker_robot_expired: EventId<OnWorkerRobotExpiredEvent>
|
1871
1957
|
/**
|
1872
1958
|
* Event type: {@link ScriptRaisedBuiltEvent}
|
1959
|
+
*
|
1960
|
+
* Event filter: {@link LuaScriptRaisedBuiltEventFilter}
|
1873
1961
|
*/
|
1874
|
-
const script_raised_built: EventId<ScriptRaisedBuiltEvent>
|
1962
|
+
const script_raised_built: EventId<ScriptRaisedBuiltEvent, LuaScriptRaisedBuiltEventFilter>
|
1875
1963
|
/**
|
1876
1964
|
* Event type: {@link ScriptRaisedDestroyEvent}
|
1965
|
+
*
|
1966
|
+
* Event filter: {@link LuaScriptRaisedDestroyEventFilter}
|
1877
1967
|
*/
|
1878
|
-
const script_raised_destroy: EventId<ScriptRaisedDestroyEvent>
|
1968
|
+
const script_raised_destroy: EventId<ScriptRaisedDestroyEvent, LuaScriptRaisedDestroyEventFilter>
|
1879
1969
|
/**
|
1880
1970
|
* Event type: {@link ScriptRaisedDestroySegmentedUnitEvent}
|
1971
|
+
*
|
1972
|
+
* Event filter: {@link LuaScriptRaisedDestroySegmentedUnitEventFilter}
|
1881
1973
|
*/
|
1882
|
-
const script_raised_destroy_segmented_unit: EventId<
|
1974
|
+
const script_raised_destroy_segmented_unit: EventId<
|
1975
|
+
ScriptRaisedDestroySegmentedUnitEvent,
|
1976
|
+
LuaScriptRaisedDestroySegmentedUnitEventFilter
|
1977
|
+
>
|
1883
1978
|
/**
|
1884
1979
|
* Event type: {@link ScriptRaisedReviveEvent}
|
1980
|
+
*
|
1981
|
+
* Event filter: {@link LuaScriptRaisedReviveEventFilter}
|
1885
1982
|
*/
|
1886
|
-
const script_raised_revive: EventId<ScriptRaisedReviveEvent>
|
1983
|
+
const script_raised_revive: EventId<ScriptRaisedReviveEvent, LuaScriptRaisedReviveEventFilter>
|
1887
1984
|
/**
|
1888
1985
|
* Event type: {@link ScriptRaisedSetTilesEvent}
|
1889
1986
|
*/
|
1890
1987
|
const script_raised_set_tiles: EventId<ScriptRaisedSetTilesEvent>
|
1891
1988
|
/**
|
1892
1989
|
* Event type: {@link ScriptRaisedTeleportedEvent}
|
1990
|
+
*
|
1991
|
+
* Event filter: {@link LuaScriptRaisedTeleportedEventFilter}
|
1893
1992
|
*/
|
1894
|
-
const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent>
|
1993
|
+
const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent, LuaScriptRaisedTeleportedEventFilter>
|
1895
1994
|
}
|
1896
1995
|
/**
|
1897
|
-
* See the {@linkplain https://lua-api.factorio.com/2.0.
|
1898
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
1996
|
+
* 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.
|
1997
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.events Online documentation}
|
1899
1998
|
*/
|
1900
1999
|
type events = (typeof events)[keyof typeof events]
|
1901
2000
|
enum flow_precision_index {
|
@@ -1911,17 +2010,17 @@ declare global {
|
|
1911
2010
|
enum game_controller_interaction {
|
1912
2011
|
/**
|
1913
2012
|
* Game controller will always hover this element regardless of type or state.
|
1914
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2013
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.game_controller_interaction.always Online documentation}
|
1915
2014
|
*/
|
1916
2015
|
always,
|
1917
2016
|
/**
|
1918
2017
|
* Never hover this element with a game controller.
|
1919
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2018
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.game_controller_interaction.never Online documentation}
|
1920
2019
|
*/
|
1921
2020
|
never,
|
1922
2021
|
/**
|
1923
2022
|
* Hover according to the element type and implementation.
|
1924
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2023
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.game_controller_interaction.normal Online documentation}
|
1925
2024
|
*/
|
1926
2025
|
normal,
|
1927
2026
|
}
|
@@ -2248,22 +2347,22 @@ declare global {
|
|
2248
2347
|
logistic_container_trash,
|
2249
2348
|
/**
|
2250
2349
|
* Deprecated, replaced by `"crafter_input"`.
|
2251
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2350
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.furnace_source Online documentation}
|
2252
2351
|
*/
|
2253
2352
|
furnace_source,
|
2254
2353
|
/**
|
2255
2354
|
* Deprecated, replaced by `"crafter_output"`.
|
2256
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2355
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.furnace_result Online documentation}
|
2257
2356
|
*/
|
2258
2357
|
furnace_result,
|
2259
2358
|
/**
|
2260
2359
|
* Deprecated, replaced by `"crafter_modules"`.
|
2261
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2360
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.furnace_modules Online documentation}
|
2262
2361
|
*/
|
2263
2362
|
furnace_modules,
|
2264
2363
|
/**
|
2265
2364
|
* Deprecated, replaced by `"crafter_trash"`.
|
2266
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2365
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.furnace_trash Online documentation}
|
2267
2366
|
*/
|
2268
2367
|
furnace_trash,
|
2269
2368
|
character_main,
|
@@ -2283,27 +2382,27 @@ declare global {
|
|
2283
2382
|
robot_repair,
|
2284
2383
|
/**
|
2285
2384
|
* Deprecated, replaced by `"crafter_input"`.
|
2286
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2385
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.assembling_machine_input Online documentation}
|
2287
2386
|
*/
|
2288
2387
|
assembling_machine_input,
|
2289
2388
|
/**
|
2290
2389
|
* Deprecated, replaced by `"crafter_output"`.
|
2291
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2390
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.assembling_machine_output Online documentation}
|
2292
2391
|
*/
|
2293
2392
|
assembling_machine_output,
|
2294
2393
|
/**
|
2295
2394
|
* Deprecated, replaced by `"crafter_modules"`.
|
2296
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2395
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.assembling_machine_modules Online documentation}
|
2297
2396
|
*/
|
2298
2397
|
assembling_machine_modules,
|
2299
2398
|
/**
|
2300
2399
|
* 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.
|
2400
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.assembling_machine_dump Online documentation}
|
2302
2401
|
*/
|
2303
2402
|
assembling_machine_dump,
|
2304
2403
|
/**
|
2305
2404
|
* Deprecated, replaced by `"crafter_trash"`.
|
2306
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2405
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.assembling_machine_trash Online documentation}
|
2307
2406
|
*/
|
2308
2407
|
assembling_machine_trash,
|
2309
2408
|
lab_input,
|
@@ -2315,17 +2414,17 @@ declare global {
|
|
2315
2414
|
rocket_silo_trash,
|
2316
2415
|
/**
|
2317
2416
|
* Deprecated, replaced by `"crafter_input"`.
|
2318
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2417
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.rocket_silo_input Online documentation}
|
2319
2418
|
*/
|
2320
2419
|
rocket_silo_input,
|
2321
2420
|
/**
|
2322
2421
|
* Deprecated, replaced by `"crafter_output"`.
|
2323
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2422
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.rocket_silo_output Online documentation}
|
2324
2423
|
*/
|
2325
2424
|
rocket_silo_output,
|
2326
2425
|
/**
|
2327
2426
|
* Deprecated, replaced by `"crafter_modules"`.
|
2328
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2427
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.rocket_silo_modules Online documentation}
|
2329
2428
|
*/
|
2330
2429
|
rocket_silo_modules,
|
2331
2430
|
cargo_unit,
|
@@ -2354,7 +2453,7 @@ declare global {
|
|
2354
2453
|
crafter_modules,
|
2355
2454
|
/**
|
2356
2455
|
* 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.
|
2456
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.inventory.crafter_trash Online documentation}
|
2358
2457
|
*/
|
2359
2458
|
crafter_trash,
|
2360
2459
|
asteroid_collector_output,
|
@@ -2397,12 +2496,12 @@ declare global {
|
|
2397
2496
|
circuit_controlled,
|
2398
2497
|
/**
|
2399
2498
|
* Used by rocket silos.
|
2400
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2499
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
|
2401
2500
|
*/
|
2402
2501
|
transitional_request_controlled,
|
2403
2502
|
/**
|
2404
2503
|
* Used by space platform hubs.
|
2405
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2504
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
|
2406
2505
|
*/
|
2407
2506
|
request_missing_materials_controlled,
|
2408
2507
|
}
|
@@ -2421,17 +2520,17 @@ declare global {
|
|
2421
2520
|
enum print_skip {
|
2422
2521
|
/**
|
2423
2522
|
* Print will not be skipped.
|
2424
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
2523
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.print_skip.never Online documentation}
|
2425
2524
|
*/
|
2426
2525
|
never,
|
2427
2526
|
/**
|
2428
2527
|
* 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.
|
2528
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.print_skip.if_redundant Online documentation}
|
2430
2529
|
*/
|
2431
2530
|
if_redundant,
|
2432
2531
|
/**
|
2433
2532
|
* 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.
|
2533
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.print_skip.if_visible Online documentation}
|
2435
2534
|
*/
|
2436
2535
|
if_visible,
|
2437
2536
|
}
|
@@ -2442,7 +2541,7 @@ declare global {
|
|
2442
2541
|
}
|
2443
2542
|
/**
|
2444
2543
|
* 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.
|
2544
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.prototypes Online documentation}
|
2446
2545
|
*/
|
2447
2546
|
interface prototypes {
|
2448
2547
|
achievement: {
|
@@ -2837,7 +2936,7 @@ declare global {
|
|
2837
2936
|
}
|
2838
2937
|
/**
|
2839
2938
|
* 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.
|
2939
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.prototypes Online documentation}
|
2841
2940
|
*/
|
2842
2941
|
const prototypes: prototypes
|
2843
2942
|
enum rail_connection_direction {
|
@@ -2963,189 +3062,189 @@ declare global {
|
|
2963
3062
|
enum robot_order_type {
|
2964
3063
|
/**
|
2965
3064
|
* Construct a ghost.
|
2966
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3065
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.construct Online documentation}
|
2967
3066
|
*/
|
2968
3067
|
construct,
|
2969
3068
|
/**
|
2970
3069
|
* Pickup an item.
|
2971
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3070
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.pickup Online documentation}
|
2972
3071
|
*/
|
2973
3072
|
pickup,
|
2974
3073
|
/**
|
2975
3074
|
* Deliver an item.
|
2976
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3075
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.deliver Online documentation}
|
2977
3076
|
*/
|
2978
3077
|
deliver,
|
2979
3078
|
/**
|
2980
3079
|
* Repair an entity.
|
2981
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3080
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.repair Online documentation}
|
2982
3081
|
*/
|
2983
3082
|
repair,
|
2984
3083
|
/**
|
2985
3084
|
* Deconstruct an entity.
|
2986
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3085
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.deconstruct Online documentation}
|
2987
3086
|
*/
|
2988
3087
|
deconstruct,
|
2989
3088
|
/**
|
2990
3089
|
* Deliver specific items to an entity (item request proxy).
|
2991
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3090
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.deliver_items Online documentation}
|
2992
3091
|
*/
|
2993
3092
|
deliver_items,
|
2994
3093
|
/**
|
2995
3094
|
* Upgrade an entity.
|
2996
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3095
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.upgrade Online documentation}
|
2997
3096
|
*/
|
2998
3097
|
upgrade,
|
2999
3098
|
/**
|
3000
3099
|
* Explode a cliff.
|
3001
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3100
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.explode_cliff Online documentation}
|
3002
3101
|
*/
|
3003
3102
|
explode_cliff,
|
3004
3103
|
/**
|
3005
3104
|
* Pickup items from an entity (item request proxy).
|
3006
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3105
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.robot_order_type.pickup_items Online documentation}
|
3007
3106
|
*/
|
3008
3107
|
pickup_items,
|
3009
3108
|
}
|
3010
3109
|
/**
|
3011
3110
|
* The various parts of the launch sequence of the rocket silo.
|
3012
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3111
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status Online documentation}
|
3013
3112
|
*/
|
3014
3113
|
enum rocket_silo_status {
|
3015
3114
|
/**
|
3016
3115
|
* 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.
|
3116
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
|
3018
3117
|
*/
|
3019
3118
|
building_rocket,
|
3020
3119
|
/**
|
3021
3120
|
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
3022
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3121
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
|
3023
3122
|
*/
|
3024
3123
|
create_rocket,
|
3025
3124
|
/**
|
3026
3125
|
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
3027
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3126
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
|
3028
3127
|
*/
|
3029
3128
|
lights_blinking_open,
|
3030
3129
|
/**
|
3031
3130
|
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
3032
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3131
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
|
3033
3132
|
*/
|
3034
3133
|
doors_opening,
|
3035
3134
|
/**
|
3036
3135
|
* 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.
|
3136
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
|
3038
3137
|
*/
|
3039
3138
|
doors_opened,
|
3040
3139
|
/**
|
3041
3140
|
* 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.
|
3141
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
|
3043
3142
|
*/
|
3044
3143
|
rocket_rising,
|
3045
3144
|
/**
|
3046
3145
|
* 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.
|
3146
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
|
3048
3147
|
*/
|
3049
3148
|
arms_advance,
|
3050
3149
|
/**
|
3051
3150
|
* 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.
|
3151
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
|
3053
3152
|
*/
|
3054
3153
|
rocket_ready,
|
3055
3154
|
/**
|
3056
3155
|
* The next state is `launch_started`.
|
3057
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3156
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
|
3058
3157
|
*/
|
3059
3158
|
launch_starting,
|
3060
3159
|
/**
|
3061
3160
|
* 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.
|
3161
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
|
3063
3162
|
*/
|
3064
3163
|
engine_starting,
|
3065
3164
|
/**
|
3066
3165
|
* 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.
|
3166
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
|
3068
3167
|
*/
|
3069
3168
|
arms_retract,
|
3070
3169
|
/**
|
3071
3170
|
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
3072
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3171
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
|
3073
3172
|
*/
|
3074
3173
|
rocket_flying,
|
3075
3174
|
/**
|
3076
3175
|
* The next state is `doors_closing`.
|
3077
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3176
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
|
3078
3177
|
*/
|
3079
3178
|
lights_blinking_close,
|
3080
3179
|
/**
|
3081
3180
|
* The next state is `building_rocket`.
|
3082
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3181
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
|
3083
3182
|
*/
|
3084
3183
|
doors_closing,
|
3085
3184
|
/**
|
3086
3185
|
* 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.
|
3186
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.rocket_silo_status.launch_started Online documentation}
|
3088
3187
|
*/
|
3089
3188
|
launch_started,
|
3090
3189
|
}
|
3091
3190
|
enum segmented_unit_activity_mode {
|
3092
3191
|
/**
|
3093
3192
|
* 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.
|
3193
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_activity_mode.asleep Online documentation}
|
3095
3194
|
*/
|
3096
3195
|
asleep,
|
3097
3196
|
/**
|
3098
3197
|
* 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.
|
3198
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_activity_mode.minimal Online documentation}
|
3100
3199
|
*/
|
3101
3200
|
minimal,
|
3102
3201
|
/**
|
3103
3202
|
* 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.
|
3203
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_activity_mode.full Online documentation}
|
3105
3204
|
*/
|
3106
3205
|
full,
|
3107
3206
|
}
|
3108
3207
|
enum segmented_unit_ai_state {
|
3109
3208
|
/**
|
3110
3209
|
* 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.
|
3210
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_ai_state.patrolling Online documentation}
|
3112
3211
|
*/
|
3113
3212
|
patrolling,
|
3114
3213
|
/**
|
3115
3214
|
* The segmented unit is investigating a location where it detected a disturbance.
|
3116
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3215
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_ai_state.investigating Online documentation}
|
3117
3216
|
*/
|
3118
3217
|
investigating,
|
3119
3218
|
/**
|
3120
3219
|
* 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.
|
3220
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_ai_state.attacking Online documentation}
|
3122
3221
|
*/
|
3123
3222
|
attacking,
|
3124
3223
|
/**
|
3125
3224
|
* 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.
|
3225
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_ai_state.enraged_at_target Online documentation}
|
3127
3226
|
*/
|
3128
3227
|
enraged_at_target,
|
3129
3228
|
/**
|
3130
3229
|
* 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.
|
3230
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_ai_state.enraged_at_nothing Online documentation}
|
3132
3231
|
*/
|
3133
3232
|
enraged_at_nothing,
|
3134
3233
|
}
|
3135
3234
|
enum segmented_unit_created_cause {
|
3136
3235
|
/**
|
3137
3236
|
* The segmented unit was spawned naturally by the map generator.
|
3138
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3237
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_created_cause.map_generated Online documentation}
|
3139
3238
|
*/
|
3140
3239
|
map_generated,
|
3141
3240
|
/**
|
3142
3241
|
* The segmented unit was created manually via script.
|
3143
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3242
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_created_cause.script_created Online documentation}
|
3144
3243
|
*/
|
3145
3244
|
script_created,
|
3146
3245
|
/**
|
3147
3246
|
* The segmented unit was cloned from an existing segmented unit via script.
|
3148
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3247
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.segmented_unit_created_cause.script_cloned Online documentation}
|
3149
3248
|
*/
|
3150
3249
|
script_cloned,
|
3151
3250
|
}
|
@@ -3162,74 +3261,74 @@ declare global {
|
|
3162
3261
|
}
|
3163
3262
|
/**
|
3164
3263
|
* State of an ordinary rail signal.
|
3165
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3264
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.signal_state Online documentation}
|
3166
3265
|
*/
|
3167
3266
|
enum signal_state {
|
3168
3267
|
/**
|
3169
3268
|
* Green.
|
3170
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3269
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.signal_state.open Online documentation}
|
3171
3270
|
*/
|
3172
3271
|
open,
|
3173
3272
|
/**
|
3174
3273
|
* Red.
|
3175
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3274
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.signal_state.closed Online documentation}
|
3176
3275
|
*/
|
3177
3276
|
closed,
|
3178
3277
|
/**
|
3179
3278
|
* Orange.
|
3180
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3279
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.signal_state.reserved Online documentation}
|
3181
3280
|
*/
|
3182
3281
|
reserved,
|
3183
3282
|
/**
|
3184
3283
|
* Red - From circuit network.
|
3185
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3284
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
3186
3285
|
*/
|
3187
3286
|
reserved_by_circuit_network,
|
3188
3287
|
}
|
3189
3288
|
enum space_platform_state {
|
3190
3289
|
/**
|
3191
3290
|
* Waiting for a starter pack.
|
3192
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3291
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
|
3193
3292
|
*/
|
3194
3293
|
waiting_for_starter_pack,
|
3195
3294
|
/**
|
3196
3295
|
* Starter pack was requested from the logistics system.
|
3197
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3296
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
|
3198
3297
|
*/
|
3199
3298
|
starter_pack_requested,
|
3200
3299
|
/**
|
3201
3300
|
* Starter pack is on the way.
|
3202
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3301
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
|
3203
3302
|
*/
|
3204
3303
|
starter_pack_on_the_way,
|
3205
3304
|
/**
|
3206
3305
|
* Following the path.
|
3207
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3306
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.on_the_path Online documentation}
|
3208
3307
|
*/
|
3209
3308
|
on_the_path,
|
3210
3309
|
/**
|
3211
3310
|
* Platform is ready to leave this planet and does not accept deliveries.
|
3212
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3311
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
|
3213
3312
|
*/
|
3214
3313
|
waiting_for_departure,
|
3215
3314
|
/**
|
3216
3315
|
* Doesn't have any stations in schedule.
|
3217
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3316
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.no_schedule Online documentation}
|
3218
3317
|
*/
|
3219
3318
|
no_schedule,
|
3220
3319
|
/**
|
3221
3320
|
* Doesn't have anywhere to go.
|
3222
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3321
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.no_path Online documentation}
|
3223
3322
|
*/
|
3224
3323
|
no_path,
|
3225
3324
|
/**
|
3226
3325
|
* Waiting at a station.
|
3227
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3326
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
|
3228
3327
|
*/
|
3229
3328
|
waiting_at_station,
|
3230
3329
|
/**
|
3231
3330
|
* Paused.
|
3232
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3331
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.space_platform_state.paused Online documentation}
|
3233
3332
|
*/
|
3234
3333
|
paused,
|
3235
3334
|
}
|
@@ -3260,64 +3359,64 @@ declare global {
|
|
3260
3359
|
enum territory_created_cause {
|
3261
3360
|
/**
|
3262
3361
|
* The territory was spawned naturally by the map generator.
|
3263
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3362
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.territory_created_cause.map_generated Online documentation}
|
3264
3363
|
*/
|
3265
3364
|
map_generated,
|
3266
3365
|
/**
|
3267
3366
|
* The territory was created manually via script.
|
3268
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3367
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.territory_created_cause.script_created Online documentation}
|
3269
3368
|
*/
|
3270
3369
|
script_created,
|
3271
3370
|
}
|
3272
3371
|
enum train_state {
|
3273
3372
|
/**
|
3274
3373
|
* Normal state -- following the path.
|
3275
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3374
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.on_the_path Online documentation}
|
3276
3375
|
*/
|
3277
3376
|
on_the_path,
|
3278
3377
|
/**
|
3279
3378
|
* Doesn't have anywhere to go.
|
3280
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3379
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.no_schedule Online documentation}
|
3281
3380
|
*/
|
3282
3381
|
no_schedule,
|
3283
3382
|
/**
|
3284
3383
|
* Has no path and is stopped.
|
3285
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3384
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.no_path Online documentation}
|
3286
3385
|
*/
|
3287
3386
|
no_path,
|
3288
3387
|
/**
|
3289
3388
|
* Braking before a rail signal.
|
3290
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3389
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.arrive_signal Online documentation}
|
3291
3390
|
*/
|
3292
3391
|
arrive_signal,
|
3293
3392
|
/**
|
3294
3393
|
* Waiting at a signal.
|
3295
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3394
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.wait_signal Online documentation}
|
3296
3395
|
*/
|
3297
3396
|
wait_signal,
|
3298
3397
|
/**
|
3299
3398
|
* Braking before a station.
|
3300
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3399
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.arrive_station Online documentation}
|
3301
3400
|
*/
|
3302
3401
|
arrive_station,
|
3303
3402
|
/**
|
3304
3403
|
* Switched to manual control and has to stop.
|
3305
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3404
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.manual_control_stop Online documentation}
|
3306
3405
|
*/
|
3307
3406
|
manual_control_stop,
|
3308
3407
|
/**
|
3309
3408
|
* Can move if user explicitly sits in and rides the train.
|
3310
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3409
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.manual_control Online documentation}
|
3311
3410
|
*/
|
3312
3411
|
manual_control,
|
3313
3412
|
/**
|
3314
3413
|
* Waiting at a station.
|
3315
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3414
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.wait_station Online documentation}
|
3316
3415
|
*/
|
3317
3416
|
wait_station,
|
3318
3417
|
/**
|
3319
3418
|
* Same as no_path but all candidate train stops are full
|
3320
|
-
* @see {@link https://lua-api.factorio.com/2.0.
|
3419
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.train_state.destination_full Online documentation}
|
3321
3420
|
*/
|
3322
3421
|
destination_full,
|
3323
3422
|
}
|
@@ -3347,17 +3446,17 @@ declare global {
|
|
3347
3446
|
enum wire_origin {
|
3348
3447
|
/**
|
3349
3448
|
* 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.
|
3449
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.wire_origin.player Online documentation}
|
3351
3450
|
*/
|
3352
3451
|
player,
|
3353
3452
|
/**
|
3354
3453
|
* 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.
|
3454
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.wire_origin.script Online documentation}
|
3356
3455
|
*/
|
3357
3456
|
script,
|
3358
3457
|
/**
|
3359
3458
|
* 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.
|
3459
|
+
* @see {@link https://lua-api.factorio.com/2.0.64/defines.html#defines.wire_origin.radars Online documentation}
|
3361
3460
|
*/
|
3362
3461
|
radars,
|
3363
3462
|
}
|