factorio-types 1.2.69 → 1.2.71

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,7 +2,7 @@
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/runtime-api.json
4
4
  // Definition source https://github.com/sguest/factorio-types
5
- // Factorio version 2.1.20
5
+ // Factorio version 2.1.22
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -1437,6 +1437,18 @@ type BoundingBox = {
1437
1437
  MapPosition,
1438
1438
  MapPosition
1439
1439
  ];
1440
+ interface BuildPreviewTintSet {
1441
+ buildable: Color;
1442
+ buildable_too_far: Color;
1443
+ ignorable: Color;
1444
+ not_buildable: Color;
1445
+ }
1446
+ interface BuildPreviewTints {
1447
+ entity: BuildPreviewTintSet;
1448
+ tile: BuildPreviewTintSet;
1449
+ entity_chart: BuildPreviewTintSet;
1450
+ tile_chart: BuildPreviewTintSet;
1451
+ }
1440
1452
  interface BaseCapsuleAction {
1441
1453
  type: 'throw' | 'equipment-remote' | 'use-on-self' | 'artillery-remote' | 'destroy-cliffs';
1442
1454
  }
@@ -1543,6 +1555,11 @@ interface CargoLandingPadBlueprintControlBehavior {
1543
1555
  * Defaults to `true`.
1544
1556
  */
1545
1557
  read_contents?: boolean;
1558
+ /**
1559
+ * Defaults to `false`.
1560
+ */
1561
+ read_empty_slots?: boolean;
1562
+ empty_slots_signal?: SignalID;
1546
1563
  /**
1547
1564
  * Defaults to `false`.
1548
1565
  */
@@ -2145,6 +2162,11 @@ interface ContainerBlueprintControlBehavior {
2145
2162
  * Defaults to `true`.
2146
2163
  */
2147
2164
  read_contents?: boolean;
2165
+ /**
2166
+ * Defaults to `false`.
2167
+ */
2168
+ read_empty_slots?: boolean;
2169
+ empty_slots_signal?: SignalID;
2148
2170
  }
2149
2171
  interface CraftingQueueItem {
2150
2172
  /**
@@ -2591,7 +2613,7 @@ interface ElemID {
2591
2613
  /**
2592
2614
  * A {@link string | runtime:string} specifying a type for {@link choose elem buttons | runtime:LuaGuiElement::elem_type}. It's also used by {@link ElemID | runtime:ElemID} for {@link LuaGuiElement::elem_tooltip | runtime:LuaGuiElement::elem_tooltip}.
2593
2615
  */
2594
- type ElemType = 'achievement' | 'decorative' | 'entity' | 'equipment' | 'fluid' | 'item' | 'item-group' | 'recipe' | 'signal' | 'technology' | 'tile' | 'asteroid-chunk' | 'space-location' | 'item-with-quality' | 'entity-with-quality' | 'recipe-with-quality' | 'equipment-with-quality';
2616
+ type ElemType = 'achievement' | 'decorative' | 'entity' | 'equipment' | 'fluid' | 'item' | 'item-group' | 'recipe' | 'signal' | 'technology' | 'tile' | 'asteroid-chunk' | 'space-location' | 'item-with-quality' | 'entity-with-quality' | 'recipe-with-quality' | 'equipment-with-quality' | 'ammo-category' | 'airborne-pollutant' | 'quality' | 'shortcut' | 'space-connection' | 'surface' | 'virtual-signal';
2595
2617
  interface EmptySlotInfo {
2596
2618
  /**
2597
2619
  * The icon to use.
@@ -3230,17 +3252,6 @@ interface FluidBoxNeighbourRecord {
3230
3252
  entity: LuaEntity;
3231
3253
  index: FluidStorageIndex;
3232
3254
  }
3233
- interface FluidFilter {
3234
- fluid?: FluidID;
3235
- /**
3236
- * The minimum fluid temperature required.
3237
- */
3238
- minimum_temperature?: float;
3239
- /**
3240
- * The maximum fluid temperature allowed.
3241
- */
3242
- maximum_temperature?: float;
3243
- }
3244
3255
  type FluidFlowDirection = 'input-output' | 'input' | 'output';
3245
3256
  /**
3246
3257
  * A fluid may be specified in one of three ways.
@@ -4009,7 +4020,7 @@ interface InserterBlueprintControlBehavior {
4009
4020
  */
4010
4021
  circuit_hand_read_mode?: defines.control_behavior.inserter.hand_read_mode;
4011
4022
  /**
4012
- * Defaults to `false`.
4023
+ * Defaults to `false`. Whether the inserter hand size is controlled by the circuit network.
4013
4024
  */
4014
4025
  circuit_set_stack_size?: boolean;
4015
4026
  stack_control_input_signal?: SignalID;
@@ -4728,6 +4739,11 @@ interface LogisticContainerBlueprintControlBehavior {
4728
4739
  * Defaults to `true`.
4729
4740
  */
4730
4741
  read_contents?: boolean;
4742
+ /**
4743
+ * Defaults to `false`.
4744
+ */
4745
+ read_empty_slots?: boolean;
4746
+ empty_slots_signal?: SignalID;
4731
4747
  /**
4732
4748
  * Defaults to `false`.
4733
4749
  */
@@ -8035,6 +8051,11 @@ interface ProxyContainerBlueprintControlBehavior {
8035
8051
  * Defaults to `true`.
8036
8052
  */
8037
8053
  read_contents?: boolean;
8054
+ /**
8055
+ * Defaults to `false`.
8056
+ */
8057
+ read_empty_slots?: boolean;
8058
+ empty_slots_signal?: SignalID;
8038
8059
  }
8039
8060
  interface PumpBlueprintControlBehavior {
8040
8061
  input_networks?: CircuitNetworkSelection;
@@ -8184,7 +8205,7 @@ interface ReactorBlueprintControlBehavior {
8184
8205
  * Defaults to `false`.
8185
8206
  */
8186
8207
  read_temperature?: boolean;
8187
- temperature_signal: SignalID;
8208
+ temperature_signal?: SignalID;
8188
8209
  }
8189
8210
  /**
8190
8211
  * The smooth orientation. It is a `float` in the range `[0, 1)` that covers a full circle, starting at the top and going clockwise.
@@ -8766,7 +8787,10 @@ interface ResearchTriggerCraftItem extends BaseResearchTrigger {
8766
8787
  */
8767
8788
  interface ResearchTriggerMineEntity extends BaseResearchTrigger {
8768
8789
  'type': 'mine-entity';
8769
- 'entity': string;
8790
+ /**
8791
+ * The trigger is considered fulfilled if at least one of these entities is mined.
8792
+ */
8793
+ 'entities': string[];
8770
8794
  }
8771
8795
  /**
8772
8796
  *
@@ -8814,6 +8838,11 @@ interface RocketSiloBlueprintControlBehavior {
8814
8838
  * Defaults to `logistic_inventory`.
8815
8839
  */
8816
8840
  read_items_mode?: defines.control_behavior.rocket_silo.read_mode;
8841
+ /**
8842
+ * Defaults to `false`.
8843
+ */
8844
+ read_launched?: boolean;
8845
+ launched_signal?: SignalID;
8817
8846
  }
8818
8847
  interface RollingStockDrawData {
8819
8848
  position: MapPosition;
@@ -9217,14 +9246,14 @@ type SelectionModeFlags = Record</**
9217
9246
  * Selects entities that are `tile-ghost`s.
9218
9247
  */
9219
9248
  'tile-ghost', true>;
9220
- type SelectorCombinatorParameterOperation = 'select' | 'count' | 'random' | 'quality-transfer' | 'rocket-capacity' | 'stack-size' | 'quality-filter' | 'time';
9249
+ type SelectorCombinatorParameterOperation = 'select' | 'count' | 'random' | 'quality-transfer' | 'rocket-capacity' | 'stack-size' | 'quality-filter' | 'time' | 'quality-select';
9221
9250
  interface BaseSelectorCombinatorParameters {
9222
9251
  /**
9223
9252
  * Defaults to `"select"`.
9224
9253
  */
9225
9254
  operation?: SelectorCombinatorParameterOperation;
9226
9255
  }
9227
- type SelectorCombinatorParameters = BaseSelectorCombinatorParameters | SelectorCombinatorParametersCount | SelectorCombinatorParametersQualityFilter | SelectorCombinatorParametersQualityTransfer | SelectorCombinatorParametersRandom | SelectorCombinatorParametersSelect | SelectorCombinatorParametersTime;
9256
+ type SelectorCombinatorParameters = BaseSelectorCombinatorParameters | SelectorCombinatorParametersCount | SelectorCombinatorParametersQualityFilter | SelectorCombinatorParametersQualitySelect | SelectorCombinatorParametersQualityTransfer | SelectorCombinatorParametersRandom | SelectorCombinatorParametersSelect | SelectorCombinatorParametersTime;
9228
9257
  /**
9229
9258
  *
9230
9259
  * Applies to variant case `count`
@@ -9253,6 +9282,20 @@ interface SelectorCombinatorParametersQualityFilter extends BaseSelectorCombinat
9253
9282
  */
9254
9283
  'quality_filter'?: QualityCondition;
9255
9284
  }
9285
+ /**
9286
+ *
9287
+ * Applies to variant case `quality-select`
9288
+ */
9289
+ interface SelectorCombinatorParametersQualitySelect extends BaseSelectorCombinatorParameters {
9290
+ /**
9291
+ * Defaults to `"select"`.
9292
+ */
9293
+ 'operation'?: 'quality-select';
9294
+ /**
9295
+ * Defaults to `true`.
9296
+ */
9297
+ 'select_highest_quality'?: boolean;
9298
+ }
9256
9299
  /**
9257
9300
  *
9258
9301
  * Applies to variant case `quality-transfer`
@@ -9293,6 +9336,10 @@ interface SelectorCombinatorParametersSelect extends BaseSelectorCombinatorParam
9293
9336
  * Defaults to `"select"`.
9294
9337
  */
9295
9338
  'operation'?: 'select';
9339
+ /**
9340
+ * Defaults to `"="`.
9341
+ */
9342
+ 'index_comparator'?: ComparatorString;
9296
9343
  /**
9297
9344
  * The signal index to use if not using a specific `index_signal`. Defaults to `0`.
9298
9345
  */
@@ -9606,6 +9653,11 @@ interface SpacePlatformHubBlueprintControlBehavior {
9606
9653
  * Defaults to `true`.
9607
9654
  */
9608
9655
  read_contents?: boolean;
9656
+ /**
9657
+ * Defaults to `false`.
9658
+ */
9659
+ read_empty_slots?: boolean;
9660
+ empty_slots_signal?: SignalID;
9609
9661
  /**
9610
9662
  * Defaults to `false`.
9611
9663
  */
@@ -9828,6 +9880,7 @@ string;
9828
9880
  * The effect that is applied when a technology is researched.
9829
9881
  */
9830
9882
  interface BaseTechnologyModifier {
9883
+ hidden: boolean;
9831
9884
  /**
9832
9885
  * Modifier type. Specifies which of the other fields will be available.
9833
9886
  */
@@ -12060,10 +12113,7 @@ interface UtilityConstants {
12060
12113
  bonus_gui_ordering: BonusUtilityConstants;
12061
12114
  map_editor: EditorUtilityConstants;
12062
12115
  entity_button_background_color: Color;
12063
- building_buildable_too_far_tint: Color;
12064
- building_buildable_tint: Color;
12065
- building_not_buildable_tint: Color;
12066
- building_ignorable_tint: Color;
12116
+ build_preview_tints: BuildPreviewTints;
12067
12117
  building_no_tint: Color;
12068
12118
  /**
12069
12119
  * Tall entities will be tinted with this value when "Hide tall entities" mode is active.
@@ -2,7 +2,7 @@
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 2.1.20
5
+ // Factorio version 2.1.22
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {