factorio-types 1.2.3 → 1.2.5

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.
@@ -2,8 +2,8 @@
2
2
  // Factorio API reference https://lua-api.factorio.com/latest/index.html
3
3
  // Generated from JSON source https://lua-api.factorio.com/latest/prototype-api.json
4
4
  // Definition source https://github.com/sguest/factorio-types
5
- // Factorio version 1.1.109
6
- // API version 5
5
+ // Factorio version 2.0.11
6
+ // API version 6
7
7
 
8
8
  declare namespace prototype {
9
9
  interface dataCollection {
@@ -16,6 +16,12 @@ interface dataCollection {
16
16
  'active-defense-equipment': {
17
17
  [key: string]: ActiveDefenseEquipmentPrototype;
18
18
  };
19
+ 'agricultural-tower': {
20
+ [key: string]: AgriculturalTowerPrototype;
21
+ };
22
+ 'airborne-pollutant': {
23
+ [key: string]: AirbornePollutantPrototype;
24
+ };
19
25
  'ambient-sound': {
20
26
  [key: string]: AmbientSound;
21
27
  };
@@ -55,6 +61,15 @@ interface dataCollection {
55
61
  'assembling-machine': {
56
62
  [key: string]: AssemblingMachinePrototype;
57
63
  };
64
+ 'asteroid-chunk': {
65
+ [key: string]: AsteroidChunkPrototype;
66
+ };
67
+ 'asteroid-collector': {
68
+ [key: string]: AsteroidCollectorPrototype;
69
+ };
70
+ 'asteroid': {
71
+ [key: string]: AsteroidPrototype;
72
+ };
58
73
  'autoplace-control': {
59
74
  [key: string]: AutoplaceControl;
60
75
  };
@@ -85,15 +100,36 @@ interface dataCollection {
85
100
  'burner-generator': {
86
101
  [key: string]: BurnerGeneratorPrototype;
87
102
  };
103
+ 'burner-usage': {
104
+ [key: string]: BurnerUsagePrototype;
105
+ };
88
106
  'capsule': {
89
107
  [key: string]: CapsulePrototype;
90
108
  };
109
+ 'capture-robot': {
110
+ [key: string]: CaptureRobotPrototype;
111
+ };
91
112
  'car': {
92
113
  [key: string]: CarPrototype;
93
114
  };
115
+ 'cargo-bay': {
116
+ [key: string]: CargoBayPrototype;
117
+ };
118
+ 'cargo-landing-pad': {
119
+ [key: string]: CargoLandingPadPrototype;
120
+ };
121
+ 'cargo-pod': {
122
+ [key: string]: CargoPodPrototype;
123
+ };
94
124
  'cargo-wagon': {
95
125
  [key: string]: CargoWagonPrototype;
96
126
  };
127
+ 'chain-active-trigger': {
128
+ [key: string]: ChainActiveTriggerPrototype;
129
+ };
130
+ 'change-surface-achievement': {
131
+ [key: string]: ChangedSurfaceAchievementPrototype;
132
+ };
97
133
  'character-corpse': {
98
134
  [key: string]: CharacterCorpsePrototype;
99
135
  };
@@ -103,12 +139,18 @@ interface dataCollection {
103
139
  'cliff': {
104
140
  [key: string]: CliffPrototype;
105
141
  };
106
- 'combat-robot-count': {
142
+ 'collision-layer': {
143
+ [key: string]: CollisionLayerPrototype;
144
+ };
145
+ 'combat-robot-count-achievement': {
107
146
  [key: string]: CombatRobotCountAchievementPrototype;
108
147
  };
109
148
  'combat-robot': {
110
149
  [key: string]: CombatRobotPrototype;
111
150
  };
151
+ 'complete-objective-achievement': {
152
+ [key: string]: CompleteObjectiveAchievementPrototype;
153
+ };
112
154
  'constant-combinator': {
113
155
  [key: string]: ConstantCombinatorPrototype;
114
156
  };
@@ -127,8 +169,20 @@ interface dataCollection {
127
169
  'corpse': {
128
170
  [key: string]: CorpsePrototype;
129
171
  };
130
- 'curved-rail': {
131
- [key: string]: CurvedRailPrototype;
172
+ 'crafting-machine': {
173
+ [key: string]: CraftingMachinePrototype;
174
+ };
175
+ 'create-platform-achievement': {
176
+ [key: string]: CreatePlatformAchievementPrototype;
177
+ };
178
+ 'curved-rail-a': {
179
+ [key: string]: CurvedRailAPrototype;
180
+ };
181
+ 'curved-rail-b': {
182
+ [key: string]: CurvedRailBPrototype;
183
+ };
184
+ 'custom-event': {
185
+ [key: string]: CustomEventPrototype;
132
186
  };
133
187
  'custom-input': {
134
188
  [key: string]: CustomInputPrototype;
@@ -151,15 +205,39 @@ interface dataCollection {
151
205
  'optimized-decorative': {
152
206
  [key: string]: DecorativePrototype;
153
207
  };
208
+ 'delayed-active-trigger': {
209
+ [key: string]: DelayedActiveTriggerPrototype;
210
+ };
154
211
  'deliver-by-robots-achievement': {
155
212
  [key: string]: DeliverByRobotsAchievementPrototype;
156
213
  };
214
+ 'deliver-category': {
215
+ [key: string]: DeliverCategory;
216
+ };
217
+ 'deliver-impact-combination': {
218
+ [key: string]: DeliverImpactCombination;
219
+ };
220
+ 'deplete-resource-achievement': {
221
+ [key: string]: DepleteResourceAchievementPrototype;
222
+ };
223
+ 'destroy-cliff-achievement': {
224
+ [key: string]: DestroyCliffAchievementPrototype;
225
+ };
226
+ 'display-panel': {
227
+ [key: string]: DisplayPanelPrototype;
228
+ };
157
229
  'dont-build-entity-achievement': {
158
230
  [key: string]: DontBuildEntityAchievementPrototype;
159
231
  };
160
232
  'dont-craft-manually-achievement': {
161
233
  [key: string]: DontCraftManuallyAchievementPrototype;
162
234
  };
235
+ 'dont-kill-manually-achievement': {
236
+ [key: string]: DontKillManuallyAchievementPrototype;
237
+ };
238
+ 'dont-research-before-researching-achievement': {
239
+ [key: string]: DontResearchBeforeResearchingAchievementPrototype;
240
+ };
163
241
  'dont-use-entity-in-energy-production-achievement': {
164
242
  [key: string]: DontUseEntityInEnergyProductionAchievementPrototype;
165
243
  };
@@ -175,6 +253,18 @@ interface dataCollection {
175
253
  'electric-turret': {
176
254
  [key: string]: ElectricTurretPrototype;
177
255
  };
256
+ 'elevated-curved-rail-a': {
257
+ [key: string]: ElevatedCurvedRailAPrototype;
258
+ };
259
+ 'elevated-curved-rail-b': {
260
+ [key: string]: ElevatedCurvedRailBPrototype;
261
+ };
262
+ 'elevated-half-diagonal-rail': {
263
+ [key: string]: ElevatedHalfDiagonalRailPrototype;
264
+ };
265
+ 'elevated-straight-rail': {
266
+ [key: string]: ElevatedStraightRailPrototype;
267
+ };
178
268
  'unit-spawner': {
179
269
  [key: string]: EnemySpawnerPrototype;
180
270
  };
@@ -184,30 +274,27 @@ interface dataCollection {
184
274
  'entity-ghost': {
185
275
  [key: string]: EntityGhostPrototype;
186
276
  };
187
- 'particle': {
188
- [key: string]: EntityParticlePrototype;
277
+ 'equip-armor-achievement': {
278
+ [key: string]: EquipArmorAchievementPrototype;
189
279
  };
190
280
  'equipment-category': {
191
281
  [key: string]: EquipmentCategory;
192
282
  };
283
+ 'equipment-ghost': {
284
+ [key: string]: EquipmentGhostPrototype;
285
+ };
193
286
  'equipment-grid': {
194
287
  [key: string]: EquipmentGridPrototype;
195
288
  };
196
289
  'explosion': {
197
290
  [key: string]: ExplosionPrototype;
198
291
  };
199
- 'finish-the-game-achievement': {
200
- [key: string]: FinishTheGameAchievementPrototype;
201
- };
202
292
  'fire': {
203
293
  [key: string]: FireFlamePrototype;
204
294
  };
205
295
  'fish': {
206
296
  [key: string]: FishPrototype;
207
297
  };
208
- 'flame-thrower-explosion': {
209
- [key: string]: FlameThrowerExplosionPrototype;
210
- };
211
298
  'fluid': {
212
299
  [key: string]: FluidPrototype;
213
300
  };
@@ -220,9 +307,6 @@ interface dataCollection {
220
307
  'fluid-wagon': {
221
308
  [key: string]: FluidWagonPrototype;
222
309
  };
223
- 'flying-text': {
224
- [key: string]: FlyingTextPrototype;
225
- };
226
310
  'font': {
227
311
  [key: string]: FontPrototype;
228
312
  };
@@ -232,6 +316,12 @@ interface dataCollection {
232
316
  'furnace': {
233
317
  [key: string]: FurnacePrototype;
234
318
  };
319
+ 'fusion-generator': {
320
+ [key: string]: FusionGeneratorPrototype;
321
+ };
322
+ 'fusion-reactor': {
323
+ [key: string]: FusionReactorPrototype;
324
+ };
235
325
  'gate': {
236
326
  [key: string]: GatePrototype;
237
327
  };
@@ -253,6 +343,9 @@ interface dataCollection {
253
343
  'gun': {
254
344
  [key: string]: GunPrototype;
255
345
  };
346
+ 'half-diagonal-rail': {
347
+ [key: string]: HalfDiagonalRailPrototype;
348
+ };
256
349
  'heat-interface': {
257
350
  [key: string]: HeatInterfacePrototype;
258
351
  };
@@ -262,6 +355,9 @@ interface dataCollection {
262
355
  'highlight-box': {
263
356
  [key: string]: HighlightBoxEntityPrototype;
264
357
  };
358
+ 'impact-category': {
359
+ [key: string]: ImpactCategory;
360
+ };
265
361
  'infinity-container': {
266
362
  [key: string]: InfinityContainerPrototype;
267
363
  };
@@ -271,6 +367,9 @@ interface dataCollection {
271
367
  'inserter': {
272
368
  [key: string]: InserterPrototype;
273
369
  };
370
+ 'inventory-bonus-equipment': {
371
+ [key: string]: InventoryBonusEquipmentPrototype;
372
+ };
274
373
  'item-entity': {
275
374
  [key: string]: ItemEntityPrototype;
276
375
  };
@@ -310,8 +409,20 @@ interface dataCollection {
310
409
  'land-mine': {
311
410
  [key: string]: LandMinePrototype;
312
411
  };
313
- 'leaf-particle': {
314
- [key: string]: LeafParticlePrototype;
412
+ 'lane-splitter': {
413
+ [key: string]: LaneSplitterPrototype;
414
+ };
415
+ 'legacy-curved-rail': {
416
+ [key: string]: LegacyCurvedRailPrototype;
417
+ };
418
+ 'legacy-straight-rail': {
419
+ [key: string]: LegacyStraightRailPrototype;
420
+ };
421
+ 'lightning-attractor': {
422
+ [key: string]: LightningAttractorPrototype;
423
+ };
424
+ 'lightning': {
425
+ [key: string]: LightningPrototype;
315
426
  };
316
427
  'linked-belt': {
317
428
  [key: string]: LinkedBeltPrototype;
@@ -323,7 +434,7 @@ interface dataCollection {
323
434
  [key: string]: Loader1x1Prototype;
324
435
  };
325
436
  'loader': {
326
- [key: string]: Loader1x2Prototype;
437
+ [key: string]: Loader1x2Prototype | LoaderPrototype;
327
438
  };
328
439
  'locomotive': {
329
440
  [key: string]: LocomotivePrototype;
@@ -346,15 +457,15 @@ interface dataCollection {
346
457
  'mining-drill': {
347
458
  [key: string]: MiningDrillPrototype;
348
459
  };
349
- 'mining-tool': {
350
- [key: string]: MiningToolPrototype;
351
- };
352
460
  'module-category': {
353
461
  [key: string]: ModuleCategory;
354
462
  };
355
463
  'module': {
356
464
  [key: string]: ModulePrototype;
357
465
  };
466
+ 'module-transfer-achievement': {
467
+ [key: string]: ModuleTransferAchievementPrototype;
468
+ };
358
469
  'mouse-cursor': {
359
470
  [key: string]: MouseCursor;
360
471
  };
@@ -364,12 +475,12 @@ interface dataCollection {
364
475
  'noise-expression': {
365
476
  [key: string]: NamedNoiseExpression;
366
477
  };
478
+ 'noise-function': {
479
+ [key: string]: NamedNoiseFunction;
480
+ };
367
481
  'night-vision-equipment': {
368
482
  [key: string]: NightVisionEquipmentPrototype;
369
483
  };
370
- 'noise-layer': {
371
- [key: string]: NoiseLayer;
372
- };
373
484
  'offshore-pump': {
374
485
  [key: string]: OffshorePumpPrototype;
375
486
  };
@@ -385,6 +496,15 @@ interface dataCollection {
385
496
  'pipe-to-ground': {
386
497
  [key: string]: PipeToGroundPrototype;
387
498
  };
499
+ 'place-equipment-achievement': {
500
+ [key: string]: PlaceEquipmentAchievementPrototype;
501
+ };
502
+ 'planet': {
503
+ [key: string]: PlanetPrototype;
504
+ };
505
+ 'plant': {
506
+ [key: string]: PlantPrototype;
507
+ };
388
508
  'player-damaged-achievement': {
389
509
  [key: string]: PlayerDamagedAchievementPrototype;
390
510
  };
@@ -394,6 +514,12 @@ interface dataCollection {
394
514
  'power-switch': {
395
515
  [key: string]: PowerSwitchPrototype;
396
516
  };
517
+ 'procession-layer-inheritance-group': {
518
+ [key: string]: ProcessionLayerInheritanceGroup;
519
+ };
520
+ 'procession': {
521
+ [key: string]: ProcessionPrototype;
522
+ };
397
523
  'produce-achievement': {
398
524
  [key: string]: ProduceAchievementPrototype;
399
525
  };
@@ -409,6 +535,9 @@ interface dataCollection {
409
535
  'pump': {
410
536
  [key: string]: PumpPrototype;
411
537
  };
538
+ 'quality': {
539
+ [key: string]: QualityPrototype;
540
+ };
412
541
  'radar': {
413
542
  [key: string]: RadarPrototype;
414
543
  };
@@ -418,12 +547,21 @@ interface dataCollection {
418
547
  'rail-planner': {
419
548
  [key: string]: RailPlannerPrototype;
420
549
  };
550
+ 'rail': {
551
+ [key: string]: RailPrototype;
552
+ };
553
+ 'rail-ramp': {
554
+ [key: string]: RailRampPrototype;
555
+ };
421
556
  'rail-remnants': {
422
557
  [key: string]: RailRemnantsPrototype;
423
558
  };
424
559
  'rail-signal': {
425
560
  [key: string]: RailSignalPrototype;
426
561
  };
562
+ 'rail-support': {
563
+ [key: string]: RailSupportPrototype;
564
+ };
427
565
  'reactor': {
428
566
  [key: string]: ReactorPrototype;
429
567
  };
@@ -433,12 +571,18 @@ interface dataCollection {
433
571
  'recipe': {
434
572
  [key: string]: RecipePrototype;
435
573
  };
574
+ 'remote-controller': {
575
+ [key: string]: RemoteControllerPrototype;
576
+ };
436
577
  'repair-tool': {
437
578
  [key: string]: RepairToolPrototype;
438
579
  };
439
580
  'research-achievement': {
440
581
  [key: string]: ResearchAchievementPrototype;
441
582
  };
583
+ 'research-with-science-pack-achievement': {
584
+ [key: string]: ResearchWithSciencePackAchievementPrototype;
585
+ };
442
586
  'resource-category': {
443
587
  [key: string]: ResourceCategory;
444
588
  };
@@ -460,9 +604,24 @@ interface dataCollection {
460
604
  'rocket-silo-rocket-shadow': {
461
605
  [key: string]: RocketSiloRocketShadowPrototype;
462
606
  };
607
+ 'rolling-stock': {
608
+ [key: string]: RollingStockPrototype;
609
+ };
610
+ 'segment': {
611
+ [key: string]: SegmentPrototype;
612
+ };
613
+ 'segmented-unit': {
614
+ [key: string]: SegmentedUnitPrototype;
615
+ };
463
616
  'selection-tool': {
464
617
  [key: string]: SelectionToolPrototype;
465
618
  };
619
+ 'selector-combinator': {
620
+ [key: string]: SelectorCombinatorPrototype;
621
+ };
622
+ 'shoot-achievement': {
623
+ [key: string]: ShootAchievementPrototype;
624
+ };
466
625
  'shortcut': {
467
626
  [key: string]: ShortcutPrototype;
468
627
  };
@@ -475,9 +634,6 @@ interface dataCollection {
475
634
  'simple-entity-with-owner': {
476
635
  [key: string]: SimpleEntityWithOwnerPrototype;
477
636
  };
478
- 'smoke': {
479
- [key: string]: SimpleSmokePrototype;
480
- };
481
637
  'smoke-with-trigger': {
482
638
  [key: string]: SmokeWithTriggerPrototype;
483
639
  };
@@ -490,6 +646,21 @@ interface dataCollection {
490
646
  'sound': {
491
647
  [key: string]: SoundPrototype;
492
648
  };
649
+ 'space-connection-distance-traveled-achievement': {
650
+ [key: string]: SpaceConnectionDistanceTraveledAchievementPrototype;
651
+ };
652
+ 'space-connection': {
653
+ [key: string]: SpaceConnectionPrototype;
654
+ };
655
+ 'space-location': {
656
+ [key: string]: SpaceLocationPrototype;
657
+ };
658
+ 'space-platform-hub': {
659
+ [key: string]: SpacePlatformHubPrototype;
660
+ };
661
+ 'space-platform-starter-pack': {
662
+ [key: string]: SpacePlatformStarterPackPrototype;
663
+ };
493
664
  'spectator-controller': {
494
665
  [key: string]: SpectatorControllerPrototype;
495
666
  };
@@ -499,6 +670,9 @@ interface dataCollection {
499
670
  'spider-leg': {
500
671
  [key: string]: SpiderLegPrototype;
501
672
  };
673
+ 'spider-unit': {
674
+ [key: string]: SpiderUnitPrototype;
675
+ };
502
676
  'spider-vehicle': {
503
677
  [key: string]: SpiderVehiclePrototype;
504
678
  };
@@ -520,9 +694,21 @@ interface dataCollection {
520
694
  'straight-rail': {
521
695
  [key: string]: StraightRailPrototype;
522
696
  };
697
+ 'surface-property': {
698
+ [key: string]: SurfacePropertyPrototype;
699
+ };
700
+ 'surface': {
701
+ [key: string]: SurfacePrototype;
702
+ };
523
703
  'technology': {
524
704
  [key: string]: TechnologyPrototype;
525
705
  };
706
+ 'temporary-container': {
707
+ [key: string]: TemporaryContainerPrototype;
708
+ };
709
+ 'thruster': {
710
+ [key: string]: ThrusterPrototype;
711
+ };
526
712
  'tile-effect': {
527
713
  [key: string]: TileEffectDefinition;
528
714
  };
@@ -547,6 +733,9 @@ interface dataCollection {
547
733
  'train-stop': {
548
734
  [key: string]: TrainStopPrototype;
549
735
  };
736
+ 'transport-belt-connectable': {
737
+ [key: string]: TransportBeltConnectablePrototype;
738
+ };
550
739
  'transport-belt': {
551
740
  [key: string]: TransportBeltPrototype;
552
741
  };
@@ -574,6 +763,9 @@ interface dataCollection {
574
763
  'upgrade-item': {
575
764
  [key: string]: UpgradeItemPrototype;
576
765
  };
766
+ 'use-item-achievement': {
767
+ [key: string]: UseItemAchievementPrototype;
768
+ };
577
769
  'utility-constants': {
578
770
  [key: string]: UtilityConstants;
579
771
  };
@@ -583,14 +775,14 @@ interface dataCollection {
583
775
  'utility-sprites': {
584
776
  [key: string]: UtilitySprites;
585
777
  };
778
+ 'vehicle': {
779
+ [key: string]: VehiclePrototype;
780
+ };
586
781
  'virtual-signal': {
587
782
  [key: string]: VirtualSignalPrototype;
588
783
  };
589
784
  'wall': {
590
785
  [key: string]: WallPrototype;
591
786
  };
592
- 'wind-sound': {
593
- [key: string]: WindSound;
594
- };
595
787
  }
596
788
  }