typed-factorio 3.35.0 → 4.0.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/common/helpers-global.d.ts +5 -0
- package/package.json +2 -2
- package/prototype/generated/prototypes.d.ts +3929 -2482
- package/prototype/generated/types.d.ts +4483 -2453
- package/runtime/generated/classes.d.ts +11443 -6347
- package/runtime/generated/concepts.d.ts +11607 -9342
- package/runtime/generated/defines.d.ts +336 -280
- package/runtime/generated/events.d.ts +806 -661
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +7 -7
|
@@ -38,6 +38,7 @@ import type {
|
|
|
38
38
|
OnAiCommandCompletedEvent,
|
|
39
39
|
OnAreaClonedEvent,
|
|
40
40
|
OnBiterBaseBuiltEvent,
|
|
41
|
+
OnBlueprintSettingsPastedEvent,
|
|
41
42
|
OnBrushClonedEvent,
|
|
42
43
|
OnBuildBaseArrivedEvent,
|
|
43
44
|
OnBuiltEntityEvent,
|
|
@@ -84,6 +85,7 @@ import type {
|
|
|
84
85
|
OnGuiConfirmedEvent,
|
|
85
86
|
OnGuiElemChangedEvent,
|
|
86
87
|
OnGuiHoverEvent,
|
|
88
|
+
OnGuiInventoryActionEvent,
|
|
87
89
|
OnGuiLeaveEvent,
|
|
88
90
|
OnGuiLocationChangedEvent,
|
|
89
91
|
OnGuiOpenedEvent,
|
|
@@ -118,6 +120,7 @@ import type {
|
|
|
118
120
|
OnPlayerCheatModeDisabledEvent,
|
|
119
121
|
OnPlayerCheatModeEnabledEvent,
|
|
120
122
|
OnPlayerClickedGpsTagEvent,
|
|
123
|
+
OnPlayerColorChangedEvent,
|
|
121
124
|
OnPlayerConfiguredBlueprintEvent,
|
|
122
125
|
OnPlayerControllerChangedEvent,
|
|
123
126
|
OnPlayerCraftedItemEvent,
|
|
@@ -145,6 +148,7 @@ import type {
|
|
|
145
148
|
OnPlayerMinedEntityEvent,
|
|
146
149
|
OnPlayerMinedItemEvent,
|
|
147
150
|
OnPlayerMinedTileEvent,
|
|
151
|
+
OnPlayerMusicChangedEvent,
|
|
148
152
|
OnPlayerMutedEvent,
|
|
149
153
|
OnPlayerPipetteEvent,
|
|
150
154
|
OnPlayerPlacedEquipmentEvent,
|
|
@@ -261,6 +265,7 @@ declare global {
|
|
|
261
265
|
custom,
|
|
262
266
|
entity_destroyed,
|
|
263
267
|
entity_under_attack,
|
|
268
|
+
fluid_mixing,
|
|
264
269
|
no_material_for_construction,
|
|
265
270
|
no_platform_storage,
|
|
266
271
|
no_roboport_storage,
|
|
@@ -277,7 +282,7 @@ declare global {
|
|
|
277
282
|
}
|
|
278
283
|
/**
|
|
279
284
|
* AI command exit status, see {@link LuaCommandable#set_command LuaCommandable::set_command}
|
|
280
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
285
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.behavior_result Online documentation}
|
|
281
286
|
*/
|
|
282
287
|
enum behavior_result {
|
|
283
288
|
in_progress,
|
|
@@ -301,33 +306,33 @@ declare global {
|
|
|
301
306
|
enum cargo_destination {
|
|
302
307
|
/**
|
|
303
308
|
* The default destination type of a cargo pod when created runtime. Setting its destination to any other type will instantly launch it.
|
|
304
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
309
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.cargo_destination.invalid Online documentation}
|
|
305
310
|
*/
|
|
306
311
|
invalid,
|
|
307
312
|
/**
|
|
308
313
|
* Cargo pods with orbit destination are destroyed when ascent is completed.
|
|
309
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
314
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.cargo_destination.orbit Online documentation}
|
|
310
315
|
*/
|
|
311
316
|
orbit,
|
|
312
317
|
/**
|
|
313
318
|
* Any cargo landing pad or space platform hub.
|
|
314
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
319
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.cargo_destination.station Online documentation}
|
|
315
320
|
*/
|
|
316
321
|
station,
|
|
317
322
|
/**
|
|
318
323
|
* 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.
|
|
319
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
324
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.cargo_destination.surface Online documentation}
|
|
320
325
|
*/
|
|
321
326
|
surface,
|
|
322
327
|
/**
|
|
323
328
|
* 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.
|
|
324
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
329
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.cargo_destination.space_platform Online documentation}
|
|
325
330
|
*/
|
|
326
331
|
space_platform,
|
|
327
332
|
}
|
|
328
333
|
/**
|
|
329
334
|
* State of a chain signal.
|
|
330
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
335
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.chain_signal_state Online documentation}
|
|
331
336
|
*/
|
|
332
337
|
enum chain_signal_state {
|
|
333
338
|
none,
|
|
@@ -345,76 +350,79 @@ declare global {
|
|
|
345
350
|
}
|
|
346
351
|
/**
|
|
347
352
|
* Command given to units describing what they should do.
|
|
348
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
353
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command Online documentation}
|
|
349
354
|
*/
|
|
350
355
|
enum command {
|
|
351
356
|
/**
|
|
352
357
|
* Attack another entity.
|
|
353
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
358
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.attack Online documentation}
|
|
354
359
|
*/
|
|
355
360
|
attack = 0,
|
|
356
361
|
/**
|
|
357
362
|
* Go to a specific position.
|
|
358
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
363
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.go_to_location Online documentation}
|
|
359
364
|
*/
|
|
360
365
|
go_to_location = 1,
|
|
361
366
|
/**
|
|
362
367
|
* Chain commands together, see {@link defines.compound_command}.
|
|
363
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
368
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.compound Online documentation}
|
|
364
369
|
*/
|
|
365
370
|
compound = 2,
|
|
366
371
|
/**
|
|
367
372
|
* Do what your group wants you to do.
|
|
368
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
373
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.group Online documentation}
|
|
369
374
|
*/
|
|
370
375
|
group = 3,
|
|
371
376
|
/**
|
|
372
377
|
* Go to a place and attack what you see.
|
|
373
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
378
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.attack_area Online documentation}
|
|
374
379
|
*/
|
|
375
380
|
attack_area = 4,
|
|
376
381
|
/**
|
|
377
382
|
* Chill.
|
|
378
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
383
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.wander Online documentation}
|
|
379
384
|
*/
|
|
380
385
|
wander = 5,
|
|
381
386
|
/**
|
|
382
387
|
* Flee from another entity.
|
|
383
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
388
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.flee Online documentation}
|
|
384
389
|
*/
|
|
385
390
|
flee = 6,
|
|
386
391
|
/**
|
|
387
392
|
* Stop moving and stay where you are.
|
|
388
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
393
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.stop Online documentation}
|
|
389
394
|
*/
|
|
390
395
|
stop = 7,
|
|
391
396
|
/**
|
|
392
397
|
* Go to a position and build a base there.
|
|
393
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
398
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.command.build_base Online documentation}
|
|
394
399
|
*/
|
|
395
400
|
build_base = 8,
|
|
396
401
|
}
|
|
397
402
|
/**
|
|
398
403
|
* How commands are joined together in a compound command (see {@link defines.command.compound}).
|
|
399
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
404
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.compound_command Online documentation}
|
|
400
405
|
*/
|
|
401
406
|
enum compound_command {
|
|
402
407
|
/**
|
|
403
408
|
* Fail on first failure. Only succeeds if all commands (executed one after another) succeed.
|
|
404
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
409
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.compound_command.logical_and Online documentation}
|
|
405
410
|
*/
|
|
406
411
|
logical_and,
|
|
407
412
|
/**
|
|
408
413
|
* Succeed on first success. Only fails if all commands (executed one after another) fail.
|
|
409
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
414
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.compound_command.logical_or Online documentation}
|
|
410
415
|
*/
|
|
411
416
|
logical_or,
|
|
412
417
|
/**
|
|
413
418
|
* Execute all commands in sequence and fail or succeed depending on the return status of the last command.
|
|
414
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
419
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.compound_command.return_last Online documentation}
|
|
415
420
|
*/
|
|
416
421
|
return_last,
|
|
417
422
|
}
|
|
423
|
+
enum constant {
|
|
424
|
+
default_icon_size,
|
|
425
|
+
}
|
|
418
426
|
namespace control_behavior {
|
|
419
427
|
namespace inserter {
|
|
420
428
|
enum hand_read_mode {
|
|
@@ -422,13 +430,6 @@ declare global {
|
|
|
422
430
|
pulse,
|
|
423
431
|
}
|
|
424
432
|
}
|
|
425
|
-
namespace logistic_container {
|
|
426
|
-
enum exclusive_mode {
|
|
427
|
-
send_contents,
|
|
428
|
-
set_requests,
|
|
429
|
-
none,
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
433
|
namespace lamp {
|
|
433
434
|
enum color_mode {
|
|
434
435
|
color_mapping,
|
|
@@ -463,225 +464,251 @@ declare global {
|
|
|
463
464
|
missing_requests,
|
|
464
465
|
}
|
|
465
466
|
}
|
|
466
|
-
namespace
|
|
467
|
+
namespace single_fluid_box {
|
|
467
468
|
enum exclusive_mode {
|
|
468
469
|
none,
|
|
469
470
|
send_contents,
|
|
470
|
-
|
|
471
|
+
send_segment_contents,
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
namespace radar {
|
|
475
|
+
enum mode {
|
|
476
|
+
surface,
|
|
477
|
+
universe,
|
|
471
478
|
}
|
|
472
479
|
}
|
|
473
480
|
enum type {
|
|
474
481
|
/**
|
|
475
482
|
* {@link LuaContainerControlBehavior}
|
|
476
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
483
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.container Online documentation}
|
|
477
484
|
*/
|
|
478
485
|
container,
|
|
479
486
|
/**
|
|
480
487
|
* {@link LuaGenericOnOffControlBehavior}
|
|
481
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
488
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.generic_on_off Online documentation}
|
|
482
489
|
*/
|
|
483
490
|
generic_on_off,
|
|
484
491
|
/**
|
|
485
492
|
* {@link LuaInserterControlBehavior}
|
|
486
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
493
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.inserter Online documentation}
|
|
487
494
|
*/
|
|
488
495
|
inserter,
|
|
489
496
|
/**
|
|
490
497
|
* {@link LuaLampControlBehavior}
|
|
491
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
498
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.lamp Online documentation}
|
|
492
499
|
*/
|
|
493
500
|
lamp,
|
|
494
501
|
/**
|
|
495
502
|
* {@link LuaLogisticContainerControlBehavior}
|
|
496
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
503
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.logistic_container Online documentation}
|
|
497
504
|
*/
|
|
498
505
|
logistic_container,
|
|
499
506
|
/**
|
|
500
507
|
* {@link LuaRoboportControlBehavior}
|
|
501
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
508
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.roboport Online documentation}
|
|
502
509
|
*/
|
|
503
510
|
roboport,
|
|
504
511
|
/**
|
|
505
|
-
* {@link
|
|
506
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
512
|
+
* {@link LuaSingleFluidBoxControlBehavior}
|
|
513
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.single_fluid_box Online documentation}
|
|
507
514
|
*/
|
|
508
|
-
|
|
515
|
+
single_fluid_box,
|
|
509
516
|
/**
|
|
510
517
|
* {@link LuaTrainStopControlBehavior}
|
|
511
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
518
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.train_stop Online documentation}
|
|
512
519
|
*/
|
|
513
520
|
train_stop,
|
|
514
521
|
/**
|
|
515
522
|
* {@link LuaDeciderCombinatorControlBehavior}
|
|
516
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
523
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.decider_combinator Online documentation}
|
|
517
524
|
*/
|
|
518
525
|
decider_combinator,
|
|
519
526
|
/**
|
|
520
527
|
* {@link LuaArithmeticCombinatorControlBehavior}
|
|
521
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
528
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.arithmetic_combinator Online documentation}
|
|
522
529
|
*/
|
|
523
530
|
arithmetic_combinator,
|
|
524
531
|
/**
|
|
525
532
|
* {@link LuaConstantCombinatorControlBehavior}
|
|
526
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
533
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.constant_combinator Online documentation}
|
|
527
534
|
*/
|
|
528
535
|
constant_combinator,
|
|
529
536
|
/**
|
|
530
537
|
* {@link LuaTransportBeltControlBehavior}
|
|
531
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
538
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.transport_belt Online documentation}
|
|
532
539
|
*/
|
|
533
540
|
transport_belt,
|
|
534
541
|
/**
|
|
535
542
|
* {@link LuaAccumulatorControlBehavior}
|
|
536
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
543
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.accumulator Online documentation}
|
|
537
544
|
*/
|
|
538
545
|
accumulator,
|
|
539
546
|
/**
|
|
540
547
|
* {@link LuaRailSignalBaseControlBehavior}
|
|
541
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
548
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.rail_signal Online documentation}
|
|
542
549
|
*/
|
|
543
550
|
rail_signal,
|
|
544
551
|
/**
|
|
545
552
|
* {@link LuaRailSignalBaseControlBehavior}
|
|
546
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
553
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.rail_chain_signal Online documentation}
|
|
547
554
|
*/
|
|
548
555
|
rail_chain_signal,
|
|
549
556
|
/**
|
|
550
557
|
* {@link LuaWallControlBehavior}
|
|
551
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
558
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.wall Online documentation}
|
|
552
559
|
*/
|
|
553
560
|
wall,
|
|
554
561
|
/**
|
|
555
562
|
* {@link LuaMiningDrillControlBehavior}
|
|
556
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
563
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.mining_drill Online documentation}
|
|
557
564
|
*/
|
|
558
565
|
mining_drill,
|
|
559
566
|
/**
|
|
560
567
|
* {@link LuaProgrammableSpeakerControlBehavior}
|
|
561
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
568
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.programmable_speaker Online documentation}
|
|
562
569
|
*/
|
|
563
570
|
programmable_speaker,
|
|
564
571
|
/**
|
|
565
572
|
* {@link LuaAssemblingMachineControlBehavior}
|
|
566
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
573
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.assembling_machine Online documentation}
|
|
567
574
|
*/
|
|
568
575
|
assembling_machine,
|
|
569
576
|
/**
|
|
570
577
|
* {@link LuaPumpControlBehavior}
|
|
571
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
578
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.pump Online documentation}
|
|
572
579
|
*/
|
|
573
580
|
pump,
|
|
574
581
|
/**
|
|
575
582
|
* {@link LuaSelectorCombinatorControlBehavior}
|
|
576
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
583
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.selector_combinator Online documentation}
|
|
577
584
|
*/
|
|
578
585
|
selector_combinator,
|
|
579
586
|
/**
|
|
580
587
|
* {@link LuaRocketSiloControlBehavior}
|
|
581
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
588
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.rocket_silo Online documentation}
|
|
582
589
|
*/
|
|
583
590
|
rocket_silo,
|
|
584
591
|
/**
|
|
585
592
|
* {@link LuaTurretControlBehavior}
|
|
586
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
593
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.turret Online documentation}
|
|
587
594
|
*/
|
|
588
595
|
turret,
|
|
589
596
|
/**
|
|
590
597
|
* {@link LuaReactorControlBehavior}
|
|
591
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
598
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.reactor Online documentation}
|
|
592
599
|
*/
|
|
593
600
|
reactor,
|
|
594
601
|
/**
|
|
595
602
|
* {@link LuaSpacePlatformHubControlBehavior}
|
|
596
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
603
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.space_platform_hub Online documentation}
|
|
597
604
|
*/
|
|
598
605
|
space_platform_hub,
|
|
599
606
|
/**
|
|
600
607
|
* {@link LuaArtilleryTurretControlBehavior}
|
|
601
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
608
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.artillery_turret Online documentation}
|
|
602
609
|
*/
|
|
603
610
|
artillery_turret,
|
|
604
611
|
/**
|
|
605
612
|
* {@link LuaAsteroidCollectorControlBehavior}
|
|
606
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
613
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.asteroid_collector Online documentation}
|
|
607
614
|
*/
|
|
608
615
|
asteroid_collector,
|
|
609
616
|
/**
|
|
610
617
|
* {@link LuaRadarControlBehavior}
|
|
611
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
618
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.radar Online documentation}
|
|
612
619
|
*/
|
|
613
620
|
radar,
|
|
614
621
|
/**
|
|
615
622
|
* {@link LuaDisplayPanelControlBehavior}
|
|
616
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
623
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.display_panel Online documentation}
|
|
617
624
|
*/
|
|
618
625
|
display_panel,
|
|
619
626
|
/**
|
|
620
627
|
* {@link LuaLoaderControlBehavior}
|
|
621
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
628
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.loader Online documentation}
|
|
622
629
|
*/
|
|
623
630
|
loader,
|
|
624
631
|
/**
|
|
625
632
|
* {@link LuaCargoLandingPadControlBehavior}
|
|
626
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
633
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.cargo_landing_pad Online documentation}
|
|
627
634
|
*/
|
|
628
635
|
cargo_landing_pad,
|
|
629
636
|
/**
|
|
630
637
|
* {@link LuaAgriculturalTowerControlBehavior}
|
|
631
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
638
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.agricultural_tower Online documentation}
|
|
632
639
|
*/
|
|
633
640
|
agricultural_tower,
|
|
634
641
|
/**
|
|
635
642
|
* {@link LuaFurnaceControlBehavior}
|
|
636
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
643
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.furnace Online documentation}
|
|
637
644
|
*/
|
|
638
645
|
furnace,
|
|
639
646
|
/**
|
|
640
647
|
* {@link LuaProxyContainerControlBehavior}
|
|
641
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
648
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.proxy_container Online documentation}
|
|
642
649
|
*/
|
|
643
650
|
proxy_container,
|
|
644
651
|
/**
|
|
645
652
|
* {@link LuaSplitterControlBehavior}
|
|
646
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
653
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.splitter Online documentation}
|
|
647
654
|
*/
|
|
648
655
|
splitter,
|
|
656
|
+
/**
|
|
657
|
+
* {@link LuaLabControlBehavior}
|
|
658
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.lab Online documentation}
|
|
659
|
+
*/
|
|
660
|
+
lab,
|
|
661
|
+
/**
|
|
662
|
+
* {@link LuaHeatPipeControlBehavior}
|
|
663
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.heat_pipe Online documentation}
|
|
664
|
+
*/
|
|
665
|
+
heat_pipe,
|
|
666
|
+
/**
|
|
667
|
+
* {@link LuaBoilerControlBehavior}
|
|
668
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.boiler Online documentation}
|
|
669
|
+
*/
|
|
670
|
+
boiler,
|
|
671
|
+
/**
|
|
672
|
+
* {@link LuaLandMineControlBehavior}
|
|
673
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.control_behavior.type.land_mine Online documentation}
|
|
674
|
+
*/
|
|
675
|
+
land_mine,
|
|
649
676
|
}
|
|
650
677
|
}
|
|
651
678
|
enum controllers {
|
|
652
679
|
/**
|
|
653
680
|
* Can't interact with the world, can only observe. Used in the multiplayer waiting-to-respawn screen.
|
|
654
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
681
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.controllers.ghost Online documentation}
|
|
655
682
|
*/
|
|
656
683
|
ghost,
|
|
657
684
|
/**
|
|
658
685
|
* The controller controls a character. This is the default controller in freeplay.
|
|
659
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
686
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.controllers.character Online documentation}
|
|
660
687
|
*/
|
|
661
688
|
character,
|
|
662
689
|
/**
|
|
663
690
|
* The controller isn't tied to a character. This is the default controller in sandbox.
|
|
664
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
691
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.controllers.god Online documentation}
|
|
665
692
|
*/
|
|
666
693
|
god,
|
|
667
694
|
/**
|
|
668
695
|
* The Editor Controller near ultimate power to do almost anything in the game.
|
|
669
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
696
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.controllers.editor Online documentation}
|
|
670
697
|
*/
|
|
671
698
|
editor,
|
|
672
699
|
/**
|
|
673
700
|
* The player can't interact with the world, and the camera pans around in a predefined manner.
|
|
674
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
701
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.controllers.cutscene Online documentation}
|
|
675
702
|
*/
|
|
676
703
|
cutscene,
|
|
677
704
|
/**
|
|
678
705
|
* Can't change anything in the world but can view anything.
|
|
679
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
706
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.controllers.spectator Online documentation}
|
|
680
707
|
*/
|
|
681
708
|
spectator,
|
|
682
709
|
/**
|
|
683
710
|
* Can't move/change items but can build ghosts/change settings.
|
|
684
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
711
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.controllers.remote Online documentation}
|
|
685
712
|
*/
|
|
686
713
|
remote,
|
|
687
714
|
}
|
|
@@ -701,9 +728,6 @@ declare global {
|
|
|
701
728
|
only,
|
|
702
729
|
}
|
|
703
730
|
}
|
|
704
|
-
// See https://forums.factorio.com/viewtopic.php?f=233&t=118305
|
|
705
|
-
/** @omit */
|
|
706
|
-
enum default_icon_size {}
|
|
707
731
|
enum difficulty {
|
|
708
732
|
easy,
|
|
709
733
|
normal,
|
|
@@ -743,36 +767,47 @@ declare global {
|
|
|
743
767
|
enum distraction {
|
|
744
768
|
/**
|
|
745
769
|
* Perform command even if someone attacks the unit.
|
|
746
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
770
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.distraction.none Online documentation}
|
|
747
771
|
*/
|
|
748
772
|
none,
|
|
749
773
|
/**
|
|
750
774
|
* Attack closer enemy entities with force.
|
|
751
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
775
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.distraction.by_enemy Online documentation}
|
|
752
776
|
*/
|
|
753
777
|
by_enemy,
|
|
754
778
|
/**
|
|
755
779
|
* Attack closer enemy entities, including entities "built" by player (belts, inserters, chests).
|
|
756
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
780
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.distraction.by_anything Online documentation}
|
|
757
781
|
*/
|
|
758
782
|
by_anything,
|
|
759
783
|
/**
|
|
760
784
|
* Attack when attacked.
|
|
761
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
785
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.distraction.by_damage Online documentation}
|
|
762
786
|
*/
|
|
763
787
|
by_damage,
|
|
764
788
|
}
|
|
789
|
+
enum electric_interface_mode {
|
|
790
|
+
solar_output,
|
|
791
|
+
primary_output,
|
|
792
|
+
secondary_output,
|
|
793
|
+
tertiary_output,
|
|
794
|
+
primary_input,
|
|
795
|
+
secondary_input,
|
|
796
|
+
tertiary_input,
|
|
797
|
+
tertiary_input_output,
|
|
798
|
+
accumulator,
|
|
799
|
+
}
|
|
765
800
|
enum entity_status {
|
|
766
801
|
working,
|
|
767
802
|
normal,
|
|
768
803
|
/**
|
|
769
804
|
* Used by ghosts.
|
|
770
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
805
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.ghost Online documentation}
|
|
771
806
|
*/
|
|
772
807
|
ghost,
|
|
773
808
|
/**
|
|
774
809
|
* Only used if set through {@link import("factorio:prototype").ContainerPrototype#default_status ContainerPrototype::default_status}.
|
|
775
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
810
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.broken Online documentation}
|
|
776
811
|
*/
|
|
777
812
|
broken,
|
|
778
813
|
no_power,
|
|
@@ -786,274 +821,299 @@ declare global {
|
|
|
786
821
|
marked_for_deconstruction,
|
|
787
822
|
/**
|
|
788
823
|
* Used by space platform hubs.
|
|
789
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
824
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.paused Online documentation}
|
|
790
825
|
*/
|
|
791
826
|
paused,
|
|
792
827
|
/**
|
|
793
828
|
* Used by generators and solar panels.
|
|
794
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
829
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.not_plugged_in_electric_network Online documentation}
|
|
795
830
|
*/
|
|
796
831
|
not_plugged_in_electric_network,
|
|
797
832
|
/**
|
|
798
833
|
* Used by power switches.
|
|
799
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
834
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.networks_connected Online documentation}
|
|
800
835
|
*/
|
|
801
836
|
networks_connected,
|
|
802
837
|
/**
|
|
803
838
|
* Used by power switches.
|
|
804
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
839
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.networks_disconnected Online documentation}
|
|
805
840
|
*/
|
|
806
841
|
networks_disconnected,
|
|
807
842
|
/**
|
|
808
843
|
* Used by accumulators.
|
|
809
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
844
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.charging Online documentation}
|
|
810
845
|
*/
|
|
811
846
|
charging,
|
|
812
847
|
/**
|
|
813
848
|
* Used by accumulators.
|
|
814
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
849
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.discharging Online documentation}
|
|
815
850
|
*/
|
|
816
851
|
discharging,
|
|
817
852
|
/**
|
|
818
853
|
* Used by accumulators.
|
|
819
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
854
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.fully_charged Online documentation}
|
|
820
855
|
*/
|
|
821
856
|
fully_charged,
|
|
822
857
|
/**
|
|
823
858
|
* Used by logistic containers.
|
|
824
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
859
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.out_of_logistic_network Online documentation}
|
|
825
860
|
*/
|
|
826
861
|
out_of_logistic_network,
|
|
827
862
|
/**
|
|
828
863
|
* Used by assembling machines.
|
|
829
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
864
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_recipe Online documentation}
|
|
830
865
|
*/
|
|
831
866
|
no_recipe,
|
|
832
867
|
/**
|
|
833
868
|
* Used by furnaces.
|
|
834
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
869
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_ingredients Online documentation}
|
|
835
870
|
*/
|
|
836
871
|
no_ingredients,
|
|
837
872
|
/**
|
|
838
|
-
* Used by boilers, fluid turrets and fluid energy sources: Boiler has no fluid to work with.
|
|
839
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
873
|
+
* Used by boilers, fluid turrets, and fluid energy sources: Boiler has no fluid to work with.
|
|
874
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_input_fluid Online documentation}
|
|
840
875
|
*/
|
|
841
876
|
no_input_fluid,
|
|
842
877
|
/**
|
|
843
878
|
* Used by labs.
|
|
844
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
879
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_research_in_progress Online documentation}
|
|
845
880
|
*/
|
|
846
881
|
no_research_in_progress,
|
|
847
882
|
/**
|
|
848
883
|
* Used by mining drills.
|
|
849
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
884
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_minable_resources Online documentation}
|
|
850
885
|
*/
|
|
851
886
|
no_minable_resources,
|
|
852
887
|
/**
|
|
853
888
|
* Used by cargo bays.
|
|
854
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
889
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.hatches_blocked_by_elevated_rail Online documentation}
|
|
890
|
+
*/
|
|
891
|
+
hatches_blocked_by_elevated_rail,
|
|
892
|
+
/**
|
|
893
|
+
* Used by cargo bays.
|
|
894
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.not_connected_to_hub_or_pad Online documentation}
|
|
855
895
|
*/
|
|
856
896
|
not_connected_to_hub_or_pad,
|
|
897
|
+
/**
|
|
898
|
+
* Used by some cargo bays.
|
|
899
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.too_far_from_pad_to_unload Online documentation}
|
|
900
|
+
*/
|
|
901
|
+
too_far_from_pad_to_unload,
|
|
857
902
|
/**
|
|
858
903
|
* Used by boilers and fluid turrets: Boiler still has some fluid but is about to run out.
|
|
859
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
904
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.low_input_fluid Online documentation}
|
|
860
905
|
*/
|
|
861
906
|
low_input_fluid,
|
|
862
907
|
/**
|
|
863
908
|
* Used by crafting machines.
|
|
864
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
909
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.fluid_ingredient_shortage Online documentation}
|
|
865
910
|
*/
|
|
866
911
|
fluid_ingredient_shortage,
|
|
867
912
|
/**
|
|
868
|
-
* Used by crafting machines, boilers, burner energy sources and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
|
|
869
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
913
|
+
* Used by crafting machines, boilers, burner energy sources, and reactors: Reactor/burner has full burnt result inventory, boiler has full output fluidbox.
|
|
914
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.full_output Online documentation}
|
|
870
915
|
*/
|
|
871
916
|
full_output,
|
|
872
917
|
/**
|
|
873
918
|
* Used by agricultural towers.
|
|
874
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
919
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.not_enough_space_in_output Online documentation}
|
|
875
920
|
*/
|
|
876
921
|
not_enough_space_in_output,
|
|
877
922
|
/**
|
|
878
923
|
* Used by burner energy sources.
|
|
879
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
924
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.full_burnt_result_output Online documentation}
|
|
880
925
|
*/
|
|
881
926
|
full_burnt_result_output,
|
|
882
927
|
/**
|
|
883
928
|
* Used by crafting machines.
|
|
884
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
929
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.item_ingredient_shortage Online documentation}
|
|
885
930
|
*/
|
|
886
931
|
item_ingredient_shortage,
|
|
887
932
|
/**
|
|
888
933
|
* Used by mining drills when the mining fluid is missing.
|
|
889
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
934
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.missing_required_fluid Online documentation}
|
|
890
935
|
*/
|
|
891
936
|
missing_required_fluid,
|
|
892
937
|
/**
|
|
893
938
|
* Used by labs.
|
|
894
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
939
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.missing_science_packs Online documentation}
|
|
895
940
|
*/
|
|
896
941
|
missing_science_packs,
|
|
897
942
|
/**
|
|
898
943
|
* Used by inserters.
|
|
899
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
944
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_source_items Online documentation}
|
|
900
945
|
*/
|
|
901
946
|
waiting_for_source_items,
|
|
902
947
|
/**
|
|
903
948
|
* Used by inserters when wait_for_full_hand is set.
|
|
904
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
949
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_more_items Online documentation}
|
|
905
950
|
*/
|
|
906
951
|
waiting_for_more_items,
|
|
907
952
|
/**
|
|
908
|
-
* Used by inserters and
|
|
909
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
953
|
+
* Used by inserters, mining drills, and crafting machines using vector_to_place_result.
|
|
954
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_space_in_destination Online documentation}
|
|
910
955
|
*/
|
|
911
956
|
waiting_for_space_in_destination,
|
|
912
957
|
/**
|
|
913
958
|
* Used by the rocket silo.
|
|
914
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
959
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.preparing_rocket_for_launch Online documentation}
|
|
915
960
|
*/
|
|
916
961
|
preparing_rocket_for_launch,
|
|
917
962
|
/**
|
|
918
963
|
* Used by the rocket silo.
|
|
919
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
964
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_to_launch_rocket Online documentation}
|
|
920
965
|
*/
|
|
921
966
|
waiting_to_launch_rocket,
|
|
922
967
|
/**
|
|
923
968
|
* Used by the rocket silo.
|
|
924
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
969
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_space_in_platform_hub Online documentation}
|
|
925
970
|
*/
|
|
926
971
|
waiting_for_space_in_platform_hub,
|
|
927
972
|
/**
|
|
928
973
|
* Used by the rocket silo.
|
|
929
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
974
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.launching_rocket Online documentation}
|
|
930
975
|
*/
|
|
931
976
|
launching_rocket,
|
|
932
977
|
/**
|
|
933
978
|
* Used by thrusters.
|
|
934
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
979
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.thrust_not_required Online documentation}
|
|
935
980
|
*/
|
|
936
981
|
thrust_not_required,
|
|
937
982
|
/**
|
|
938
983
|
* Used by space platform hubs.
|
|
939
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
984
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.on_the_way Online documentation}
|
|
940
985
|
*/
|
|
941
986
|
on_the_way,
|
|
942
987
|
/**
|
|
943
988
|
* Used by space platform hubs.
|
|
944
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
989
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_in_orbit Online documentation}
|
|
945
990
|
*/
|
|
946
991
|
waiting_in_orbit,
|
|
947
992
|
/**
|
|
948
993
|
* Used by trains.
|
|
949
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
994
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_at_stop Online documentation}
|
|
950
995
|
*/
|
|
951
996
|
waiting_at_stop,
|
|
997
|
+
/**
|
|
998
|
+
* Used by trains.
|
|
999
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_upgrade Online documentation}
|
|
1000
|
+
*/
|
|
1001
|
+
waiting_for_upgrade,
|
|
952
1002
|
/**
|
|
953
1003
|
* Used by space platform hubs.
|
|
954
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1004
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_rockets_to_arrive Online documentation}
|
|
955
1005
|
*/
|
|
956
1006
|
waiting_for_rockets_to_arrive,
|
|
957
1007
|
/**
|
|
958
1008
|
* Used by space platform hubs.
|
|
959
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1009
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_to_clear_drop_slots Online documentation}
|
|
1010
|
+
*/
|
|
1011
|
+
waiting_to_clear_drop_slots,
|
|
1012
|
+
/**
|
|
1013
|
+
* Used by space platform hubs.
|
|
1014
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.not_enough_thrust Online documentation}
|
|
960
1015
|
*/
|
|
961
1016
|
not_enough_thrust,
|
|
962
1017
|
/**
|
|
963
1018
|
* Used by trains.
|
|
964
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1019
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.destination_stop_full Online documentation}
|
|
965
1020
|
*/
|
|
966
1021
|
destination_stop_full,
|
|
967
1022
|
/**
|
|
968
1023
|
* Used by trains and space platform hubs.
|
|
969
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1024
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_path Online documentation}
|
|
970
1025
|
*/
|
|
971
1026
|
no_path,
|
|
972
1027
|
/**
|
|
973
1028
|
* Used by beacons.
|
|
974
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1029
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_modules_to_transmit Online documentation}
|
|
975
1030
|
*/
|
|
976
1031
|
no_modules_to_transmit,
|
|
977
1032
|
/**
|
|
978
1033
|
* Used by roboports.
|
|
979
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1034
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.recharging_after_power_outage Online documentation}
|
|
980
1035
|
*/
|
|
981
1036
|
recharging_after_power_outage,
|
|
982
1037
|
/**
|
|
983
1038
|
* Used by inserters targeting entity ghosts.
|
|
984
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1039
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_target_to_be_built Online documentation}
|
|
985
1040
|
*/
|
|
986
1041
|
waiting_for_target_to_be_built,
|
|
987
1042
|
/**
|
|
988
1043
|
* Used by inserters targeting rails.
|
|
989
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1044
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_train Online documentation}
|
|
990
1045
|
*/
|
|
991
1046
|
waiting_for_train,
|
|
992
1047
|
/**
|
|
993
1048
|
* Used by ammo turrets.
|
|
994
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1049
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_ammo Online documentation}
|
|
995
1050
|
*/
|
|
996
1051
|
no_ammo,
|
|
997
1052
|
/**
|
|
998
1053
|
* Used by heat energy sources.
|
|
999
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1054
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.low_temperature Online documentation}
|
|
1000
1055
|
*/
|
|
1001
1056
|
low_temperature,
|
|
1002
1057
|
/**
|
|
1003
1058
|
* Used by constant combinators: Combinator is turned off via switch in GUI.
|
|
1004
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1059
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.disabled Online documentation}
|
|
1005
1060
|
*/
|
|
1006
1061
|
disabled,
|
|
1007
1062
|
/**
|
|
1008
1063
|
* Used by lamps.
|
|
1009
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1064
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.turned_off_during_daytime Online documentation}
|
|
1010
1065
|
*/
|
|
1011
1066
|
turned_off_during_daytime,
|
|
1012
1067
|
/**
|
|
1013
1068
|
* Used by rail signals.
|
|
1014
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1069
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.not_connected_to_rail Online documentation}
|
|
1015
1070
|
*/
|
|
1016
1071
|
not_connected_to_rail,
|
|
1017
1072
|
/**
|
|
1018
1073
|
* Used by rail signals.
|
|
1019
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1074
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.cant_divide_segments Online documentation}
|
|
1020
1075
|
*/
|
|
1021
1076
|
cant_divide_segments,
|
|
1022
1077
|
/**
|
|
1023
1078
|
* Used by filter inserters.
|
|
1024
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1079
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_filter Online documentation}
|
|
1025
1080
|
*/
|
|
1026
1081
|
no_filter,
|
|
1027
1082
|
/**
|
|
1028
1083
|
* Used by agricultural towers.
|
|
1029
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1084
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.no_spot_seedable_by_inputs Online documentation}
|
|
1030
1085
|
*/
|
|
1031
1086
|
no_spot_seedable_by_inputs,
|
|
1032
1087
|
/**
|
|
1033
1088
|
* Used by agricultural towers.
|
|
1034
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1089
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.waiting_for_plants_to_grow Online documentation}
|
|
1035
1090
|
*/
|
|
1036
1091
|
waiting_for_plants_to_grow,
|
|
1037
1092
|
/**
|
|
1038
1093
|
* Used by asteroid collectors.
|
|
1039
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1094
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.computing_navigation Online documentation}
|
|
1040
1095
|
*/
|
|
1041
1096
|
computing_navigation,
|
|
1042
1097
|
/**
|
|
1043
|
-
* Used by pipes, pipes to ground and storage tanks.
|
|
1044
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1098
|
+
* Used by pipes, pipes to ground, and storage tanks.
|
|
1099
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.pipeline_overextended Online documentation}
|
|
1045
1100
|
*/
|
|
1046
1101
|
pipeline_overextended,
|
|
1047
1102
|
/**
|
|
1048
1103
|
* Used by assembling machines.
|
|
1049
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1104
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.recipe_not_researched Online documentation}
|
|
1050
1105
|
*/
|
|
1051
1106
|
recipe_not_researched,
|
|
1052
1107
|
/**
|
|
1053
1108
|
* Used by assembling machines.
|
|
1054
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1109
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.recipe_is_parameter Online documentation}
|
|
1055
1110
|
*/
|
|
1056
1111
|
recipe_is_parameter,
|
|
1112
|
+
/**
|
|
1113
|
+
* Used by land mines.
|
|
1114
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.entity_status.armed Online documentation}
|
|
1115
|
+
*/
|
|
1116
|
+
armed,
|
|
1057
1117
|
}
|
|
1058
1118
|
enum entity_status_diode {
|
|
1059
1119
|
green,
|
|
@@ -1061,8 +1121,8 @@ declare global {
|
|
|
1061
1121
|
yellow,
|
|
1062
1122
|
}
|
|
1063
1123
|
/**
|
|
1064
|
-
* See the {@linkplain https://lua-api.factorio.com/2.
|
|
1065
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
1124
|
+
* See the {@linkplain https://lua-api.factorio.com/2.1.7/events.html events page} for more info on what events contain and when they get raised.
|
|
1125
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.events Online documentation}
|
|
1066
1126
|
*/
|
|
1067
1127
|
namespace events {
|
|
1068
1128
|
/**
|
|
@@ -1081,6 +1141,10 @@ declare global {
|
|
|
1081
1141
|
* Event type: {@link OnBiterBaseBuiltEvent}
|
|
1082
1142
|
*/
|
|
1083
1143
|
const on_biter_base_built: EventId<OnBiterBaseBuiltEvent>
|
|
1144
|
+
/**
|
|
1145
|
+
* Event type: {@link OnBlueprintSettingsPastedEvent}
|
|
1146
|
+
*/
|
|
1147
|
+
const on_blueprint_settings_pasted: EventId<OnBlueprintSettingsPastedEvent>
|
|
1084
1148
|
/**
|
|
1085
1149
|
* Event type: {@link OnBrushClonedEvent}
|
|
1086
1150
|
*/
|
|
@@ -1280,6 +1344,10 @@ declare global {
|
|
|
1280
1344
|
* Event type: {@link OnGuiHoverEvent}
|
|
1281
1345
|
*/
|
|
1282
1346
|
const on_gui_hover: EventId<OnGuiHoverEvent>
|
|
1347
|
+
/**
|
|
1348
|
+
* Event type: {@link OnGuiInventoryActionEvent}
|
|
1349
|
+
*/
|
|
1350
|
+
const on_gui_inventory_action: EventId<OnGuiInventoryActionEvent>
|
|
1283
1351
|
/**
|
|
1284
1352
|
* Event type: {@link OnGuiLeaveEvent}
|
|
1285
1353
|
*/
|
|
@@ -1423,6 +1491,10 @@ declare global {
|
|
|
1423
1491
|
* Event type: {@link OnPlayerClickedGpsTagEvent}
|
|
1424
1492
|
*/
|
|
1425
1493
|
const on_player_clicked_gps_tag: EventId<OnPlayerClickedGpsTagEvent>
|
|
1494
|
+
/**
|
|
1495
|
+
* Event type: {@link OnPlayerColorChangedEvent}
|
|
1496
|
+
*/
|
|
1497
|
+
const on_player_color_changed: EventId<OnPlayerColorChangedEvent>
|
|
1426
1498
|
/**
|
|
1427
1499
|
* Event type: {@link OnPlayerConfiguredBlueprintEvent}
|
|
1428
1500
|
*/
|
|
@@ -1533,6 +1605,10 @@ declare global {
|
|
|
1533
1605
|
* Event type: {@link OnPlayerMinedTileEvent}
|
|
1534
1606
|
*/
|
|
1535
1607
|
const on_player_mined_tile: EventId<OnPlayerMinedTileEvent>
|
|
1608
|
+
/**
|
|
1609
|
+
* Event type: {@link OnPlayerMusicChangedEvent}
|
|
1610
|
+
*/
|
|
1611
|
+
const on_player_music_changed: EventId<OnPlayerMusicChangedEvent>
|
|
1536
1612
|
/**
|
|
1537
1613
|
* Event type: {@link OnPlayerMutedEvent}
|
|
1538
1614
|
*/
|
|
@@ -2008,8 +2084,8 @@ declare global {
|
|
|
2008
2084
|
const script_raised_teleported: EventId<ScriptRaisedTeleportedEvent, LuaScriptRaisedTeleportedEventFilter>
|
|
2009
2085
|
}
|
|
2010
2086
|
/**
|
|
2011
|
-
* See the {@linkplain https://lua-api.factorio.com/2.
|
|
2012
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
2087
|
+
* See the {@linkplain https://lua-api.factorio.com/2.1.7/events.html events page} for more info on what events contain and when they get raised.
|
|
2088
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.events Online documentation}
|
|
2013
2089
|
*/
|
|
2014
2090
|
type events = (typeof events)[keyof typeof events]
|
|
2015
2091
|
enum flow_precision_index {
|
|
@@ -2025,17 +2101,17 @@ declare global {
|
|
|
2025
2101
|
enum game_controller_interaction {
|
|
2026
2102
|
/**
|
|
2027
2103
|
* Game controller will always hover this element regardless of type or state.
|
|
2028
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
2104
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.game_controller_interaction.always Online documentation}
|
|
2029
2105
|
*/
|
|
2030
2106
|
always,
|
|
2031
2107
|
/**
|
|
2032
2108
|
* Never hover this element with a game controller.
|
|
2033
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
2109
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.game_controller_interaction.never Online documentation}
|
|
2034
2110
|
*/
|
|
2035
2111
|
never,
|
|
2036
2112
|
/**
|
|
2037
2113
|
* Hover according to the element type and implementation.
|
|
2038
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
2114
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.game_controller_interaction.normal Online documentation}
|
|
2039
2115
|
*/
|
|
2040
2116
|
normal,
|
|
2041
2117
|
}
|
|
@@ -2050,6 +2126,7 @@ declare global {
|
|
|
2050
2126
|
}
|
|
2051
2127
|
enum gui_type {
|
|
2052
2128
|
achievement,
|
|
2129
|
+
alerts_config,
|
|
2053
2130
|
blueprint_library,
|
|
2054
2131
|
bonus,
|
|
2055
2132
|
controller,
|
|
@@ -2111,10 +2188,12 @@ declare global {
|
|
|
2111
2188
|
change_programmable_speaker_alert_parameters,
|
|
2112
2189
|
change_programmable_speaker_circuit_parameters,
|
|
2113
2190
|
change_programmable_speaker_parameters,
|
|
2191
|
+
change_research_condition,
|
|
2114
2192
|
change_riding_state,
|
|
2115
2193
|
change_selector_combinator_parameters,
|
|
2116
2194
|
change_shooting_state,
|
|
2117
2195
|
change_train_name,
|
|
2196
|
+
change_train_station,
|
|
2118
2197
|
change_train_stop_station,
|
|
2119
2198
|
change_train_wait_condition,
|
|
2120
2199
|
change_train_wait_condition_data,
|
|
@@ -2148,6 +2227,7 @@ declare global {
|
|
|
2148
2227
|
disconnect_rolling_stock,
|
|
2149
2228
|
drag_decider_combinator_condition,
|
|
2150
2229
|
drag_decider_combinator_output,
|
|
2230
|
+
drag_research_condition,
|
|
2151
2231
|
drag_train_schedule,
|
|
2152
2232
|
drag_train_schedule_interrupt,
|
|
2153
2233
|
drag_train_wait_condition,
|
|
@@ -2177,6 +2257,9 @@ declare global {
|
|
|
2177
2257
|
gui_confirmed,
|
|
2178
2258
|
gui_elem_changed,
|
|
2179
2259
|
gui_hover,
|
|
2260
|
+
gui_inventory_action,
|
|
2261
|
+
gui_inventory_bar_changed,
|
|
2262
|
+
gui_inventory_filter_changed,
|
|
2180
2263
|
gui_leave,
|
|
2181
2264
|
gui_location_changed,
|
|
2182
2265
|
gui_selected_tab_changed,
|
|
@@ -2227,6 +2310,7 @@ declare global {
|
|
|
2227
2310
|
pin_search_result,
|
|
2228
2311
|
pipette,
|
|
2229
2312
|
place_equipment,
|
|
2313
|
+
providing_to_other_platforms,
|
|
2230
2314
|
quick_bar_pick_slot,
|
|
2231
2315
|
quick_bar_set_selected_page,
|
|
2232
2316
|
quick_bar_set_slot,
|
|
@@ -2268,16 +2352,20 @@ declare global {
|
|
|
2268
2352
|
set_circuit_condition,
|
|
2269
2353
|
set_circuit_mode_of_operation,
|
|
2270
2354
|
set_combinator_description,
|
|
2355
|
+
set_control_behavior_input_networks,
|
|
2356
|
+
set_control_behavior_output_networks,
|
|
2271
2357
|
set_copy_color_from_train_stop,
|
|
2272
2358
|
set_deconstruction_item_tile_selection_mode,
|
|
2273
2359
|
set_deconstruction_item_trees_and_rocks_only,
|
|
2274
2360
|
set_entity_color,
|
|
2275
2361
|
set_entity_energy_property,
|
|
2362
|
+
set_equipment_energy_property,
|
|
2276
2363
|
set_filter,
|
|
2277
2364
|
set_ghost_cursor,
|
|
2278
2365
|
set_heat_interface_mode,
|
|
2279
2366
|
set_heat_interface_temperature,
|
|
2280
2367
|
set_infinity_container_filter_item,
|
|
2368
|
+
set_infinity_container_logistic_mode,
|
|
2281
2369
|
set_infinity_container_remove_unfiltered_items,
|
|
2282
2370
|
set_infinity_pipe_filter,
|
|
2283
2371
|
set_inserter_max_stack_size,
|
|
@@ -2330,6 +2418,7 @@ declare global {
|
|
|
2330
2418
|
switch_power_switch_state,
|
|
2331
2419
|
take_equipment,
|
|
2332
2420
|
toggle_artillery_auto_targeting,
|
|
2421
|
+
toggle_blueprint_snap_to_grid,
|
|
2333
2422
|
toggle_deconstruction_item_entity_filter_mode,
|
|
2334
2423
|
toggle_deconstruction_item_tile_filter_mode,
|
|
2335
2424
|
toggle_driving,
|
|
@@ -2341,7 +2430,7 @@ declare global {
|
|
|
2341
2430
|
toggle_personal_roboport,
|
|
2342
2431
|
toggle_selected_entity,
|
|
2343
2432
|
toggle_show_entity_info,
|
|
2344
|
-
|
|
2433
|
+
toggle_tall_entity_visibility,
|
|
2345
2434
|
trash_not_requested_items,
|
|
2346
2435
|
undo,
|
|
2347
2436
|
upgrade,
|
|
@@ -2360,26 +2449,6 @@ declare global {
|
|
|
2360
2449
|
burnt_result,
|
|
2361
2450
|
chest,
|
|
2362
2451
|
logistic_container_trash,
|
|
2363
|
-
/**
|
|
2364
|
-
* Deprecated, replaced by `"crafter_input"`.
|
|
2365
|
-
* @see {@link https://lua-api.factorio.com/2.0.75/defines.html#defines.inventory.furnace_source Online documentation}
|
|
2366
|
-
*/
|
|
2367
|
-
furnace_source,
|
|
2368
|
-
/**
|
|
2369
|
-
* Deprecated, replaced by `"crafter_output"`.
|
|
2370
|
-
* @see {@link https://lua-api.factorio.com/2.0.75/defines.html#defines.inventory.furnace_result Online documentation}
|
|
2371
|
-
*/
|
|
2372
|
-
furnace_result,
|
|
2373
|
-
/**
|
|
2374
|
-
* Deprecated, replaced by `"crafter_modules"`.
|
|
2375
|
-
* @see {@link https://lua-api.factorio.com/2.0.75/defines.html#defines.inventory.furnace_modules Online documentation}
|
|
2376
|
-
*/
|
|
2377
|
-
furnace_modules,
|
|
2378
|
-
/**
|
|
2379
|
-
* Deprecated, replaced by `"crafter_trash"`.
|
|
2380
|
-
* @see {@link https://lua-api.factorio.com/2.0.75/defines.html#defines.inventory.furnace_trash Online documentation}
|
|
2381
|
-
*/
|
|
2382
|
-
furnace_trash,
|
|
2383
2452
|
character_main,
|
|
2384
2453
|
character_guns,
|
|
2385
2454
|
character_ammo,
|
|
@@ -2395,31 +2464,11 @@ declare global {
|
|
|
2395
2464
|
roboport_material,
|
|
2396
2465
|
robot_cargo,
|
|
2397
2466
|
robot_repair,
|
|
2398
|
-
/**
|
|
2399
|
-
* Deprecated, replaced by `"crafter_input"`.
|
|
2400
|
-
* @see {@link https://lua-api.factorio.com/2.0.75/defines.html#defines.inventory.assembling_machine_input Online documentation}
|
|
2401
|
-
*/
|
|
2402
|
-
assembling_machine_input,
|
|
2403
|
-
/**
|
|
2404
|
-
* Deprecated, replaced by `"crafter_output"`.
|
|
2405
|
-
* @see {@link https://lua-api.factorio.com/2.0.75/defines.html#defines.inventory.assembling_machine_output Online documentation}
|
|
2406
|
-
*/
|
|
2407
|
-
assembling_machine_output,
|
|
2408
|
-
/**
|
|
2409
|
-
* Deprecated, replaced by `"crafter_modules"`.
|
|
2410
|
-
* @see {@link https://lua-api.factorio.com/2.0.75/defines.html#defines.inventory.assembling_machine_modules Online documentation}
|
|
2411
|
-
*/
|
|
2412
|
-
assembling_machine_modules,
|
|
2413
2467
|
/**
|
|
2414
2468
|
* Used for ejected items, or items held by inserters that can't be inserted due the recipe being changed with the circuit network.
|
|
2415
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
2469
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.inventory.assembling_machine_dump Online documentation}
|
|
2416
2470
|
*/
|
|
2417
2471
|
assembling_machine_dump,
|
|
2418
|
-
/**
|
|
2419
|
-
* Deprecated, replaced by `"crafter_trash"`.
|
|
2420
|
-
* @see {@link https://lua-api.factorio.com/2.0.75/defines.html#defines.inventory.assembling_machine_trash Online documentation}
|
|
2421
|
-
*/
|
|
2422
|
-
assembling_machine_trash,
|
|
2423
2472
|
lab_input,
|
|
2424
2473
|
lab_modules,
|
|
2425
2474
|
lab_trash,
|
|
@@ -2427,24 +2476,10 @@ declare global {
|
|
|
2427
2476
|
item_main,
|
|
2428
2477
|
rocket_silo_rocket,
|
|
2429
2478
|
rocket_silo_trash,
|
|
2430
|
-
|
|
2431
|
-
* Deprecated, replaced by `"crafter_input"`.
|
|
2432
|
-
* @see {@link https://lua-api.factorio.com/2.0.75/defines.html#defines.inventory.rocket_silo_input Online documentation}
|
|
2433
|
-
*/
|
|
2434
|
-
rocket_silo_input,
|
|
2435
|
-
/**
|
|
2436
|
-
* Deprecated, replaced by `"crafter_output"`.
|
|
2437
|
-
* @see {@link https://lua-api.factorio.com/2.0.75/defines.html#defines.inventory.rocket_silo_output Online documentation}
|
|
2438
|
-
*/
|
|
2439
|
-
rocket_silo_output,
|
|
2440
|
-
/**
|
|
2441
|
-
* Deprecated, replaced by `"crafter_modules"`.
|
|
2442
|
-
* @see {@link https://lua-api.factorio.com/2.0.75/defines.html#defines.inventory.rocket_silo_modules Online documentation}
|
|
2443
|
-
*/
|
|
2444
|
-
rocket_silo_modules,
|
|
2479
|
+
rocket_silo_attached_cargo_unit,
|
|
2445
2480
|
/**
|
|
2446
2481
|
* Inventory of cargo pod.
|
|
2447
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
2482
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.inventory.cargo_unit Online documentation}
|
|
2448
2483
|
*/
|
|
2449
2484
|
cargo_unit,
|
|
2450
2485
|
car_trunk,
|
|
@@ -2466,18 +2501,31 @@ declare global {
|
|
|
2466
2501
|
proxy_main,
|
|
2467
2502
|
agricultural_tower_input,
|
|
2468
2503
|
agricultural_tower_output,
|
|
2504
|
+
agricultural_tower_modules,
|
|
2469
2505
|
linked_container_main,
|
|
2470
2506
|
crafter_input,
|
|
2471
2507
|
crafter_output,
|
|
2472
2508
|
crafter_modules,
|
|
2473
2509
|
/**
|
|
2474
2510
|
* 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.
|
|
2475
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
2511
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.inventory.crafter_trash Online documentation}
|
|
2476
2512
|
*/
|
|
2477
2513
|
crafter_trash,
|
|
2478
2514
|
asteroid_collector_output,
|
|
2479
2515
|
asteroid_collector_arm,
|
|
2480
2516
|
}
|
|
2517
|
+
enum inventory_actions {
|
|
2518
|
+
cursor_transfer,
|
|
2519
|
+
cursor_split,
|
|
2520
|
+
stack_transfer,
|
|
2521
|
+
stack_split,
|
|
2522
|
+
inventory_transfer,
|
|
2523
|
+
inventory_split,
|
|
2524
|
+
open_item,
|
|
2525
|
+
open_mod_item,
|
|
2526
|
+
send_stack_to_trash,
|
|
2527
|
+
send_stacks_to_trash,
|
|
2528
|
+
}
|
|
2481
2529
|
enum logistic_group_type {
|
|
2482
2530
|
with_trash,
|
|
2483
2531
|
roboport,
|
|
@@ -2518,12 +2566,12 @@ declare global {
|
|
|
2518
2566
|
circuit_controlled,
|
|
2519
2567
|
/**
|
|
2520
2568
|
* Used by rocket silos.
|
|
2521
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
2569
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.logistic_section_type.transitional_request_controlled Online documentation}
|
|
2522
2570
|
*/
|
|
2523
2571
|
transitional_request_controlled,
|
|
2524
2572
|
/**
|
|
2525
2573
|
* Used by space platform hubs.
|
|
2526
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
2574
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.logistic_section_type.request_missing_materials_controlled Online documentation}
|
|
2527
2575
|
*/
|
|
2528
2576
|
request_missing_materials_controlled,
|
|
2529
2577
|
}
|
|
@@ -2542,17 +2590,17 @@ declare global {
|
|
|
2542
2590
|
enum print_skip {
|
|
2543
2591
|
/**
|
|
2544
2592
|
* Print will not be skipped.
|
|
2545
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
2593
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.print_skip.never Online documentation}
|
|
2546
2594
|
*/
|
|
2547
2595
|
never,
|
|
2548
2596
|
/**
|
|
2549
2597
|
* Print will be skipped if same text was recently printed (within last 60 ticks). Used by most game messages.
|
|
2550
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
2598
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.print_skip.if_redundant Online documentation}
|
|
2551
2599
|
*/
|
|
2552
2600
|
if_redundant,
|
|
2553
2601
|
/**
|
|
2554
2602
|
* Print will be skipped if same text is still visible (printed within last 1152 ticks). Used by some notifications.
|
|
2555
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
2603
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.print_skip.if_visible Online documentation}
|
|
2556
2604
|
*/
|
|
2557
2605
|
if_visible,
|
|
2558
2606
|
}
|
|
@@ -2563,7 +2611,7 @@ declare global {
|
|
|
2563
2611
|
}
|
|
2564
2612
|
/**
|
|
2565
2613
|
* 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, ...}`.
|
|
2566
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
2614
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.prototypes Online documentation}
|
|
2567
2615
|
*/
|
|
2568
2616
|
interface prototypes {
|
|
2569
2617
|
achievement: {
|
|
@@ -2787,6 +2835,7 @@ declare global {
|
|
|
2787
2835
|
"active-defense-equipment": 0
|
|
2788
2836
|
"battery-equipment": 0
|
|
2789
2837
|
"belt-immunity-equipment": 0
|
|
2838
|
+
"electric-energy-interface-equipment": 0
|
|
2790
2839
|
"energy-shield-equipment": 0
|
|
2791
2840
|
"equipment-ghost": 0
|
|
2792
2841
|
"generator-equipment": 0
|
|
@@ -2958,7 +3007,7 @@ declare global {
|
|
|
2958
3007
|
}
|
|
2959
3008
|
/**
|
|
2960
3009
|
* 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, ...}`.
|
|
2961
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3010
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.prototypes Online documentation}
|
|
2962
3011
|
*/
|
|
2963
3012
|
const prototypes: prototypes
|
|
2964
3013
|
enum rail_connection_direction {
|
|
@@ -2987,6 +3036,7 @@ declare global {
|
|
|
2987
3036
|
additional_entity_info_gui,
|
|
2988
3037
|
admin_gui,
|
|
2989
3038
|
agriculture_tower_gui,
|
|
3039
|
+
alerts_config_gui,
|
|
2990
3040
|
arithmetic_combinator_gui,
|
|
2991
3041
|
armor_gui,
|
|
2992
3042
|
assembling_machine_gui,
|
|
@@ -2996,6 +3046,7 @@ declare global {
|
|
|
2996
3046
|
blueprint_book_gui,
|
|
2997
3047
|
blueprint_library_gui,
|
|
2998
3048
|
blueprint_setup_gui,
|
|
3049
|
+
boiler_gui,
|
|
2999
3050
|
bonus_gui,
|
|
3000
3051
|
burner_equipment_gui,
|
|
3001
3052
|
car_gui,
|
|
@@ -3006,6 +3057,7 @@ declare global {
|
|
|
3006
3057
|
decider_combinator_gui,
|
|
3007
3058
|
deconstruction_item_gui,
|
|
3008
3059
|
display_panel_gui,
|
|
3060
|
+
electric_energy_interface_equipment_gui,
|
|
3009
3061
|
electric_energy_interface_gui,
|
|
3010
3062
|
electric_network_gui,
|
|
3011
3063
|
entity_variations_gui,
|
|
@@ -3016,6 +3068,7 @@ declare global {
|
|
|
3016
3068
|
ghost_picker_gui,
|
|
3017
3069
|
global_electric_network_gui,
|
|
3018
3070
|
heat_interface_gui,
|
|
3071
|
+
heat_pipe_gui,
|
|
3019
3072
|
infinity_pipe_gui,
|
|
3020
3073
|
inserter_gui,
|
|
3021
3074
|
item_with_inventory_gui,
|
|
@@ -3035,6 +3088,7 @@ declare global {
|
|
|
3035
3088
|
programmable_speaker_gui,
|
|
3036
3089
|
proxy_container_gui,
|
|
3037
3090
|
pump_gui,
|
|
3091
|
+
radar_gui,
|
|
3038
3092
|
rail_signal_base_gui,
|
|
3039
3093
|
reactor_gui,
|
|
3040
3094
|
resource_entity_gui,
|
|
@@ -3047,7 +3101,6 @@ declare global {
|
|
|
3047
3101
|
spider_vehicle_gui,
|
|
3048
3102
|
splitter_gui,
|
|
3049
3103
|
standalone_character_gui,
|
|
3050
|
-
storage_tank_gui,
|
|
3051
3104
|
tile_variations_gui,
|
|
3052
3105
|
tips_and_tricks_gui,
|
|
3053
3106
|
train_gui,
|
|
@@ -3084,189 +3137,189 @@ declare global {
|
|
|
3084
3137
|
enum robot_order_type {
|
|
3085
3138
|
/**
|
|
3086
3139
|
* Construct a ghost.
|
|
3087
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3140
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.construct Online documentation}
|
|
3088
3141
|
*/
|
|
3089
3142
|
construct,
|
|
3090
3143
|
/**
|
|
3091
3144
|
* Pickup an item.
|
|
3092
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3145
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.pickup Online documentation}
|
|
3093
3146
|
*/
|
|
3094
3147
|
pickup,
|
|
3095
3148
|
/**
|
|
3096
3149
|
* Deliver an item.
|
|
3097
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3150
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.deliver Online documentation}
|
|
3098
3151
|
*/
|
|
3099
3152
|
deliver,
|
|
3100
3153
|
/**
|
|
3101
3154
|
* Repair an entity.
|
|
3102
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3155
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.repair Online documentation}
|
|
3103
3156
|
*/
|
|
3104
3157
|
repair,
|
|
3105
3158
|
/**
|
|
3106
3159
|
* Deconstruct an entity.
|
|
3107
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3160
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.deconstruct Online documentation}
|
|
3108
3161
|
*/
|
|
3109
3162
|
deconstruct,
|
|
3110
3163
|
/**
|
|
3111
3164
|
* Deliver specific items to an entity (item request proxy).
|
|
3112
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3165
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.deliver_items Online documentation}
|
|
3113
3166
|
*/
|
|
3114
3167
|
deliver_items,
|
|
3115
3168
|
/**
|
|
3116
3169
|
* Upgrade an entity.
|
|
3117
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3170
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.upgrade Online documentation}
|
|
3118
3171
|
*/
|
|
3119
3172
|
upgrade,
|
|
3120
3173
|
/**
|
|
3121
3174
|
* Explode a cliff.
|
|
3122
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3175
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.explode_cliff Online documentation}
|
|
3123
3176
|
*/
|
|
3124
3177
|
explode_cliff,
|
|
3125
3178
|
/**
|
|
3126
3179
|
* Pickup items from an entity (item request proxy).
|
|
3127
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3180
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.robot_order_type.pickup_items Online documentation}
|
|
3128
3181
|
*/
|
|
3129
3182
|
pickup_items,
|
|
3130
3183
|
}
|
|
3131
3184
|
/**
|
|
3132
3185
|
* The various parts of the launch sequence of the rocket silo.
|
|
3133
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3186
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status Online documentation}
|
|
3134
3187
|
*/
|
|
3135
3188
|
enum rocket_silo_status {
|
|
3136
3189
|
/**
|
|
3137
3190
|
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
|
3138
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3191
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.building_rocket Online documentation}
|
|
3139
3192
|
*/
|
|
3140
3193
|
building_rocket,
|
|
3141
3194
|
/**
|
|
3142
3195
|
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
|
3143
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3196
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.create_rocket Online documentation}
|
|
3144
3197
|
*/
|
|
3145
3198
|
create_rocket,
|
|
3146
3199
|
/**
|
|
3147
3200
|
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
|
3148
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3201
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.lights_blinking_open Online documentation}
|
|
3149
3202
|
*/
|
|
3150
3203
|
lights_blinking_open,
|
|
3151
3204
|
/**
|
|
3152
3205
|
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
|
3153
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3206
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.doors_opening Online documentation}
|
|
3154
3207
|
*/
|
|
3155
3208
|
doors_opening,
|
|
3156
3209
|
/**
|
|
3157
3210
|
* 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.
|
|
3158
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3211
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.doors_opened Online documentation}
|
|
3159
3212
|
*/
|
|
3160
3213
|
doors_opened,
|
|
3161
3214
|
/**
|
|
3162
3215
|
* 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.
|
|
3163
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3216
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.rocket_rising Online documentation}
|
|
3164
3217
|
*/
|
|
3165
3218
|
rocket_rising,
|
|
3166
3219
|
/**
|
|
3167
3220
|
* 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.
|
|
3168
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3221
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.arms_advance Online documentation}
|
|
3169
3222
|
*/
|
|
3170
3223
|
arms_advance,
|
|
3171
3224
|
/**
|
|
3172
3225
|
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
|
3173
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3226
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.rocket_ready Online documentation}
|
|
3174
3227
|
*/
|
|
3175
3228
|
rocket_ready,
|
|
3176
3229
|
/**
|
|
3177
3230
|
* The next state is `launch_started`.
|
|
3178
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3231
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.launch_starting Online documentation}
|
|
3179
3232
|
*/
|
|
3180
3233
|
launch_starting,
|
|
3181
3234
|
/**
|
|
3182
3235
|
* 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.
|
|
3183
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3236
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.engine_starting Online documentation}
|
|
3184
3237
|
*/
|
|
3185
3238
|
engine_starting,
|
|
3186
3239
|
/**
|
|
3187
3240
|
* 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.
|
|
3188
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3241
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.arms_retract Online documentation}
|
|
3189
3242
|
*/
|
|
3190
3243
|
arms_retract,
|
|
3191
3244
|
/**
|
|
3192
3245
|
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
|
3193
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3246
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.rocket_flying Online documentation}
|
|
3194
3247
|
*/
|
|
3195
3248
|
rocket_flying,
|
|
3196
3249
|
/**
|
|
3197
3250
|
* The next state is `doors_closing`.
|
|
3198
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3251
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.lights_blinking_close Online documentation}
|
|
3199
3252
|
*/
|
|
3200
3253
|
lights_blinking_close,
|
|
3201
3254
|
/**
|
|
3202
3255
|
* The next state is `building_rocket`.
|
|
3203
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3256
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.doors_closing Online documentation}
|
|
3204
3257
|
*/
|
|
3205
3258
|
doors_closing,
|
|
3206
3259
|
/**
|
|
3207
3260
|
* 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.
|
|
3208
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3261
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.rocket_silo_status.launch_started Online documentation}
|
|
3209
3262
|
*/
|
|
3210
3263
|
launch_started,
|
|
3211
3264
|
}
|
|
3212
3265
|
enum segmented_unit_activity_mode {
|
|
3213
3266
|
/**
|
|
3214
3267
|
* The segmented unit is completely asleep, only performing the bare minimum checks to wake up if needed.
|
|
3215
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3268
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_activity_mode.asleep Online documentation}
|
|
3216
3269
|
*/
|
|
3217
3270
|
asleep,
|
|
3218
3271
|
/**
|
|
3219
3272
|
* The segmented unit is minimally active, reducing unnecessary entity movement and trigger effects while continuing to patrol around its territory.
|
|
3220
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3273
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_activity_mode.minimal Online documentation}
|
|
3221
3274
|
*/
|
|
3222
3275
|
minimal,
|
|
3223
3276
|
/**
|
|
3224
3277
|
* The segmented unit is fully active and simulated as if it is being observed by a player.
|
|
3225
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3278
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_activity_mode.full Online documentation}
|
|
3226
3279
|
*/
|
|
3227
3280
|
full,
|
|
3228
3281
|
}
|
|
3229
3282
|
enum segmented_unit_ai_state {
|
|
3230
3283
|
/**
|
|
3231
3284
|
* 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.
|
|
3232
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3285
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_ai_state.patrolling Online documentation}
|
|
3233
3286
|
*/
|
|
3234
3287
|
patrolling,
|
|
3235
3288
|
/**
|
|
3236
3289
|
* The segmented unit is investigating a location where it detected a disturbance.
|
|
3237
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3290
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_ai_state.investigating Online documentation}
|
|
3238
3291
|
*/
|
|
3239
3292
|
investigating,
|
|
3240
3293
|
/**
|
|
3241
3294
|
* The segmented unit is attacking an entity that is trespassing on its territory, but the segmented unit is not using its full strength.
|
|
3242
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3295
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_ai_state.attacking Online documentation}
|
|
3243
3296
|
*/
|
|
3244
3297
|
attacking,
|
|
3245
3298
|
/**
|
|
3246
3299
|
* The segmented unit is angry because it was attacked and is aggressively attacking an entity with its full strength.
|
|
3247
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3300
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_ai_state.enraged_at_target Online documentation}
|
|
3248
3301
|
*/
|
|
3249
3302
|
enraged_at_target,
|
|
3250
3303
|
/**
|
|
3251
3304
|
* 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.
|
|
3252
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3305
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_ai_state.enraged_at_nothing Online documentation}
|
|
3253
3306
|
*/
|
|
3254
3307
|
enraged_at_nothing,
|
|
3255
3308
|
}
|
|
3256
3309
|
enum segmented_unit_created_cause {
|
|
3257
3310
|
/**
|
|
3258
3311
|
* The segmented unit was spawned naturally by the map generator.
|
|
3259
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3312
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_created_cause.map_generated Online documentation}
|
|
3260
3313
|
*/
|
|
3261
3314
|
map_generated,
|
|
3262
3315
|
/**
|
|
3263
3316
|
* The segmented unit was created manually via script.
|
|
3264
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3317
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_created_cause.script_created Online documentation}
|
|
3265
3318
|
*/
|
|
3266
3319
|
script_created,
|
|
3267
3320
|
/**
|
|
3268
3321
|
* The segmented unit was cloned from an existing segmented unit via script.
|
|
3269
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3322
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.segmented_unit_created_cause.script_cloned Online documentation}
|
|
3270
3323
|
*/
|
|
3271
3324
|
script_cloned,
|
|
3272
3325
|
}
|
|
@@ -3283,74 +3336,74 @@ declare global {
|
|
|
3283
3336
|
}
|
|
3284
3337
|
/**
|
|
3285
3338
|
* State of an ordinary rail signal.
|
|
3286
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3339
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.signal_state Online documentation}
|
|
3287
3340
|
*/
|
|
3288
3341
|
enum signal_state {
|
|
3289
3342
|
/**
|
|
3290
3343
|
* Green.
|
|
3291
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3344
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.signal_state.open Online documentation}
|
|
3292
3345
|
*/
|
|
3293
3346
|
open,
|
|
3294
3347
|
/**
|
|
3295
3348
|
* Red.
|
|
3296
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3349
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.signal_state.closed Online documentation}
|
|
3297
3350
|
*/
|
|
3298
3351
|
closed,
|
|
3299
3352
|
/**
|
|
3300
3353
|
* Orange.
|
|
3301
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3354
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.signal_state.reserved Online documentation}
|
|
3302
3355
|
*/
|
|
3303
3356
|
reserved,
|
|
3304
3357
|
/**
|
|
3305
3358
|
* Red - From circuit network.
|
|
3306
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3359
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.signal_state.reserved_by_circuit_network Online documentation}
|
|
3307
3360
|
*/
|
|
3308
3361
|
reserved_by_circuit_network,
|
|
3309
3362
|
}
|
|
3310
3363
|
enum space_platform_state {
|
|
3311
3364
|
/**
|
|
3312
3365
|
* Waiting for a starter pack.
|
|
3313
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3366
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.waiting_for_starter_pack Online documentation}
|
|
3314
3367
|
*/
|
|
3315
3368
|
waiting_for_starter_pack,
|
|
3316
3369
|
/**
|
|
3317
3370
|
* Starter pack was requested from the logistics system.
|
|
3318
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3371
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.starter_pack_requested Online documentation}
|
|
3319
3372
|
*/
|
|
3320
3373
|
starter_pack_requested,
|
|
3321
3374
|
/**
|
|
3322
3375
|
* Starter pack is on the way.
|
|
3323
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3376
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.starter_pack_on_the_way Online documentation}
|
|
3324
3377
|
*/
|
|
3325
3378
|
starter_pack_on_the_way,
|
|
3326
3379
|
/**
|
|
3327
3380
|
* Following the path.
|
|
3328
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3381
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.on_the_path Online documentation}
|
|
3329
3382
|
*/
|
|
3330
3383
|
on_the_path,
|
|
3331
3384
|
/**
|
|
3332
3385
|
* Platform is ready to leave this planet and does not accept deliveries.
|
|
3333
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3386
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.waiting_for_departure Online documentation}
|
|
3334
3387
|
*/
|
|
3335
3388
|
waiting_for_departure,
|
|
3336
3389
|
/**
|
|
3337
3390
|
* Doesn't have any stations in schedule.
|
|
3338
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3391
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.no_schedule Online documentation}
|
|
3339
3392
|
*/
|
|
3340
3393
|
no_schedule,
|
|
3341
3394
|
/**
|
|
3342
3395
|
* Doesn't have anywhere to go.
|
|
3343
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3396
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.no_path Online documentation}
|
|
3344
3397
|
*/
|
|
3345
3398
|
no_path,
|
|
3346
3399
|
/**
|
|
3347
3400
|
* Waiting at a station.
|
|
3348
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3401
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.waiting_at_station Online documentation}
|
|
3349
3402
|
*/
|
|
3350
3403
|
waiting_at_station,
|
|
3351
3404
|
/**
|
|
3352
3405
|
* Paused.
|
|
3353
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3406
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.space_platform_state.paused Online documentation}
|
|
3354
3407
|
*/
|
|
3355
3408
|
paused,
|
|
3356
3409
|
}
|
|
@@ -3377,68 +3430,71 @@ declare global {
|
|
|
3377
3430
|
schedule,
|
|
3378
3431
|
territory,
|
|
3379
3432
|
segmented_unit,
|
|
3433
|
+
electric_network,
|
|
3434
|
+
electric_sub_network,
|
|
3435
|
+
force,
|
|
3380
3436
|
}
|
|
3381
3437
|
enum territory_created_cause {
|
|
3382
3438
|
/**
|
|
3383
3439
|
* The territory was spawned naturally by the map generator.
|
|
3384
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3440
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.territory_created_cause.map_generated Online documentation}
|
|
3385
3441
|
*/
|
|
3386
3442
|
map_generated,
|
|
3387
3443
|
/**
|
|
3388
3444
|
* The territory was created manually via script.
|
|
3389
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3445
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.territory_created_cause.script_created Online documentation}
|
|
3390
3446
|
*/
|
|
3391
3447
|
script_created,
|
|
3392
3448
|
}
|
|
3393
3449
|
enum train_state {
|
|
3394
3450
|
/**
|
|
3395
3451
|
* Normal state -- following the path.
|
|
3396
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3452
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.on_the_path Online documentation}
|
|
3397
3453
|
*/
|
|
3398
3454
|
on_the_path,
|
|
3399
3455
|
/**
|
|
3400
3456
|
* Doesn't have anywhere to go.
|
|
3401
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3457
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.no_schedule Online documentation}
|
|
3402
3458
|
*/
|
|
3403
3459
|
no_schedule,
|
|
3404
3460
|
/**
|
|
3405
3461
|
* Has no path and is stopped.
|
|
3406
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3462
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.no_path Online documentation}
|
|
3407
3463
|
*/
|
|
3408
3464
|
no_path,
|
|
3409
3465
|
/**
|
|
3410
3466
|
* Braking before a rail signal.
|
|
3411
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3467
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.arrive_signal Online documentation}
|
|
3412
3468
|
*/
|
|
3413
3469
|
arrive_signal,
|
|
3414
3470
|
/**
|
|
3415
3471
|
* Waiting at a signal.
|
|
3416
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3472
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.wait_signal Online documentation}
|
|
3417
3473
|
*/
|
|
3418
3474
|
wait_signal,
|
|
3419
3475
|
/**
|
|
3420
3476
|
* Braking before a station.
|
|
3421
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3477
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.arrive_station Online documentation}
|
|
3422
3478
|
*/
|
|
3423
3479
|
arrive_station,
|
|
3424
3480
|
/**
|
|
3425
3481
|
* Switched to manual control and has to stop.
|
|
3426
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3482
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.manual_control_stop Online documentation}
|
|
3427
3483
|
*/
|
|
3428
3484
|
manual_control_stop,
|
|
3429
3485
|
/**
|
|
3430
3486
|
* Can move if user explicitly sits in and rides the train.
|
|
3431
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3487
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.manual_control Online documentation}
|
|
3432
3488
|
*/
|
|
3433
3489
|
manual_control,
|
|
3434
3490
|
/**
|
|
3435
3491
|
* Waiting at a station.
|
|
3436
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3492
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.wait_station Online documentation}
|
|
3437
3493
|
*/
|
|
3438
3494
|
wait_station,
|
|
3439
3495
|
/**
|
|
3440
3496
|
* Same as no_path but all candidate train stops are full
|
|
3441
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3497
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.train_state.destination_full Online documentation}
|
|
3442
3498
|
*/
|
|
3443
3499
|
destination_full,
|
|
3444
3500
|
}
|
|
@@ -3468,17 +3524,17 @@ declare global {
|
|
|
3468
3524
|
enum wire_origin {
|
|
3469
3525
|
/**
|
|
3470
3526
|
* 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.
|
|
3471
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3527
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.wire_origin.player Online documentation}
|
|
3472
3528
|
*/
|
|
3473
3529
|
player,
|
|
3474
3530
|
/**
|
|
3475
3531
|
* 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.
|
|
3476
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3532
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.wire_origin.script Online documentation}
|
|
3477
3533
|
*/
|
|
3478
3534
|
script,
|
|
3479
3535
|
/**
|
|
3480
3536
|
* These wires can only be modified by the game. They are not visible to the player, irrespective of the `draw_circuit_wires` prototype property.
|
|
3481
|
-
* @see {@link https://lua-api.factorio.com/2.
|
|
3537
|
+
* @see {@link https://lua-api.factorio.com/2.1.7/defines.html#defines.wire_origin.radars Online documentation}
|
|
3482
3538
|
*/
|
|
3483
3539
|
radars,
|
|
3484
3540
|
}
|