factorio-types 1.2.65 → 1.2.67

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/dist/classes.d.ts CHANGED
@@ -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.14
5
+ // Factorio version 2.1.17
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -1648,6 +1648,24 @@ interface LuaBootstrap {
1648
1648
  script.on_event(defines.events.on_built_entity,
1649
1649
  function(event) game.print("Gotta go fast!") end,
1650
1650
  {{filter = "name", name = "fast-inserter"}})
1651
+ ```
1652
+ */
1653
+ on_event(this: void, event: defines.events.on_next_day_started, handler: ((this: void, arg0: runtime.on_next_day_started) => any) | nil, filters?: EventFilter): void;
1654
+ /**
1655
+ * Register a handler to run on the specified event(s). Each mod can only register once for every event, as any additional registration will overwrite the previous one. This holds true even if different filters are used for subsequent registrations.
1656
+ * @param event The event(s) or custom-input to invoke the handler on.
1657
+ * @param handler The handler for this event. Passing `nil` will unregister it.
1658
+ * @param filters The filters for this event. Can only be used when registering for individual events.
1659
+ * @example ```
1660
+ -- Register for the on_tick event to print the current tick to console each tick
1661
+ script.on_event(defines.events.on_tick,
1662
+ function(event) game.print(event.tick) end)
1663
+ ```
1664
+ * @example ```
1665
+ -- Register for the on_built_entity event, limiting it to only be received when a `"fast-inserter"` is built
1666
+ script.on_event(defines.events.on_built_entity,
1667
+ function(event) game.print("Gotta go fast!") end,
1668
+ {{filter = "name", name = "fast-inserter"}})
1651
1669
  ```
1652
1670
  */
1653
1671
  on_event(this: void, event: defines.events.on_object_destroyed, handler: ((this: void, arg0: runtime.on_object_destroyed) => any) | nil, filters?: EventFilter): void;
@@ -5161,13 +5179,13 @@ interface LuaConstantCombinatorControlBehavior extends LuaControlBehavior {
5161
5179
  * Gets section on the selected index, if it exists.
5162
5180
  * @param section_index Index of the section.
5163
5181
  */
5164
- get_section(this: void, section_index: uint32): LuaLogisticSection | null;
5182
+ get_section(this: void, section_index: LogisticSectionIndex): LuaLogisticSection | null;
5165
5183
  /**
5166
5184
  * Removes the given logistic section if possible. Removal may fail if the section index is out of range or the section is not {@link manual | runtime:LuaLogisticSection::is_manual}.
5167
5185
  * @param section_index Index of the section.
5168
5186
  * @returns Whether section was removed.
5169
5187
  */
5170
- remove_section(this: void, section_index: uint32): boolean;
5188
+ remove_section(this: void, section_index: LogisticSectionIndex): boolean;
5171
5189
  /**
5172
5190
  * Turns this constant combinator on and off.
5173
5191
  */
@@ -5604,9 +5622,9 @@ interface LuaControl {
5604
5622
  *
5605
5623
  * This is the GUI that will asked to close (by firing the {@link on_gui_closed | runtime:on_gui_closed} event) when the `Esc` or `E` keys are pressed. If this attribute is non-nil, then writing `nil` or a new GUI to it will ask the existing GUI to close.
5606
5624
  *
5607
- * Write supports any of the types. Read will return the `entity`, `equipment`, `equipment-grid`, `player`, `element`, `inventory`, `item` or `nil`.
5625
+ * Write supports any of the types. Read will return the `entity`, `equipment`, `equipment-grid`, `player`, `element`, `inventory`, `item`, `tile`, or `nil`.
5608
5626
  */
5609
- opened?: LuaEntity | LuaItemStack | LuaEquipment | LuaEquipmentGrid | LuaPlayer | LuaGuiElement | LuaInventory | LuaLogisticNetwork | defines.gui_type;
5627
+ opened?: LuaEntity | LuaItemStack | LuaEquipment | LuaEquipmentGrid | LuaPlayer | LuaGuiElement | LuaInventory | LuaLogisticNetwork | LuaTile | defines.gui_type;
5610
5628
  readonly opened_gui_type?: defines.gui_type;
5611
5629
  /**
5612
5630
  * Current item-picking state.
@@ -8187,6 +8205,10 @@ interface LuaEntity extends LuaControl {
8187
8205
  * The pollution bonus of this entity.
8188
8206
  */
8189
8207
  readonly pollution_bonus: double;
8208
+ /**
8209
+ * The effects that will be applied to this entity once all upgrades are resolved. Can only be used when the entity has an effect receiver (AssemblingMachine, Furnace, Lab, MiningDrill, AgriculturalTower).
8210
+ */
8211
+ readonly potential_effects?: Effect;
8190
8212
  /**
8191
8213
  * The power production specific to the ElectricEnergyInterface entity type.
8192
8214
  */
@@ -12100,41 +12122,6 @@ interface LuaGenericOnOffControlBehavior extends LuaControlBehavior {
12100
12122
  */
12101
12123
  logistic_condition?: CircuitConditionDefinition;
12102
12124
  }
12103
- /**
12104
- * Item group or subgroup.
12105
- */
12106
- interface LuaGroup {
12107
- /**
12108
- * The parent group.
12109
- */
12110
- readonly group: LuaGroup;
12111
- /**
12112
- * Localised name of the group.
12113
- */
12114
- readonly localised_name: LocalisedString;
12115
- readonly name: string;
12116
- /**
12117
- * The class name of this object. Available even when `valid` is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
12118
- */
12119
- readonly object_name: string;
12120
- /**
12121
- * The string used to alphabetically sort these prototypes. It is a simple string that has no additional semantic meaning.
12122
- */
12123
- readonly order: string;
12124
- /**
12125
- * The additional order value used in recipe ordering.
12126
- */
12127
- readonly order_in_recipe: string;
12128
- /**
12129
- * Subgroups of this group.
12130
- */
12131
- readonly subgroups: LuaGroup[];
12132
- readonly type: string;
12133
- /**
12134
- * Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be `false`. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
12135
- */
12136
- readonly valid: boolean;
12137
- }
12138
12125
  /**
12139
12126
  * The root of the GUI. This type houses the root elements, `top`, `left`, `center`, `goal`, and `screen`, to which other elements can be added to be displayed on screen.
12140
12127
  *
@@ -14275,6 +14262,37 @@ interface LuaItemCommon {
14275
14262
  */
14276
14263
  trees_and_rocks_only: boolean;
14277
14264
  }
14265
+ /**
14266
+ * Item group.
14267
+ */
14268
+ interface LuaItemGroup {
14269
+ /**
14270
+ * Localised name of the group.
14271
+ */
14272
+ readonly localised_name: LocalisedString;
14273
+ readonly name: string;
14274
+ /**
14275
+ * The class name of this object. Available even when `valid` is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
14276
+ */
14277
+ readonly object_name: string;
14278
+ /**
14279
+ * The string used to alphabetically sort these prototypes. It is a simple string that has no additional semantic meaning.
14280
+ */
14281
+ readonly order: string;
14282
+ /**
14283
+ * The additional order value used in recipe ordering.
14284
+ */
14285
+ readonly order_in_recipe: string;
14286
+ /**
14287
+ * Subgroups of this group.
14288
+ */
14289
+ readonly subgroups: LuaItemSubGroup[];
14290
+ readonly type: string;
14291
+ /**
14292
+ * Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be `false`. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
14293
+ */
14294
+ readonly valid: boolean;
14295
+ }
14278
14296
  /**
14279
14297
  * Prototype of an item. For example, an item prototype can be obtained from {@link LuaPrototypes::item | runtime:LuaPrototypes::item} by its name: `prototypes.item["iron-plate"]`.
14280
14298
  */
@@ -14452,8 +14470,8 @@ interface LuaItemPrototype extends LuaPrototypeBase {
14452
14470
  readonly ingredient_to_weight_coefficient: double;
14453
14471
  readonly initial_items?: ItemProduct[];
14454
14472
  readonly item_filters?: LuaItemPrototype[];
14455
- readonly item_group_filters?: LuaGroup[];
14456
- readonly item_subgroup_filters?: LuaGroup[];
14473
+ readonly item_group_filters?: LuaItemGroup[];
14474
+ readonly item_subgroup_filters?: LuaItemSubGroup[];
14457
14475
  readonly lab_ignores_spoil_percent: boolean;
14458
14476
  /**
14459
14477
  * The localised string used when the player attempts to put items into this item with inventory that aren't allowed.
@@ -14703,6 +14721,33 @@ interface LuaItemStack extends LuaItemCommon {
14703
14721
  */
14704
14722
  readonly valid_for_read: boolean;
14705
14723
  }
14724
+ /**
14725
+ * Item subgroup.
14726
+ */
14727
+ interface LuaItemSubGroup {
14728
+ /**
14729
+ * The parent group.
14730
+ */
14731
+ readonly group: LuaItemGroup;
14732
+ /**
14733
+ * Localised name of the subgroup.
14734
+ */
14735
+ readonly localised_name: LocalisedString;
14736
+ readonly name: string;
14737
+ /**
14738
+ * The class name of this object. Available even when `valid` is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
14739
+ */
14740
+ readonly object_name: string;
14741
+ /**
14742
+ * The string used to alphabetically sort these prototypes. It is a simple string that has no additional semantic meaning.
14743
+ */
14744
+ readonly order: string;
14745
+ readonly type: string;
14746
+ /**
14747
+ * Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be `false`. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
14748
+ */
14749
+ readonly valid: boolean;
14750
+ }
14706
14751
  /**
14707
14752
  * Control behavior for lab.
14708
14753
  */
@@ -15113,13 +15158,13 @@ interface LuaLogisticPoint {
15113
15158
  * Gets section on the selected index, if it exists
15114
15159
  * @param section_index Index of the section
15115
15160
  */
15116
- get_section(this: void, section_index: uint32): LuaLogisticSection;
15161
+ get_section(this: void, section_index: LogisticSectionIndex): LuaLogisticSection;
15117
15162
  /**
15118
15163
  * Removes the given logistic section if possible. Removal may fail if the section index is out of range or the section is not {@link manual | runtime:LuaLogisticSection::is_manual}.
15119
15164
  * @param section_index Index of the section
15120
15165
  * @returns Whether section was removed.
15121
15166
  */
15122
- remove_section(this: void, section_index: uint32): boolean;
15167
+ remove_section(this: void, section_index: LogisticSectionIndex): boolean;
15123
15168
  /**
15124
15169
  * Whether this logistic point is active, related to disabling logistics on player/spidertron.
15125
15170
  *
@@ -15276,13 +15321,13 @@ interface LuaLogisticSections {
15276
15321
  * Gets section on the selected index, if it exists.
15277
15322
  * @param section_index Index of the section.
15278
15323
  */
15279
- get_section(this: void, section_index: uint32): LuaLogisticSection | null;
15324
+ get_section(this: void, section_index: LogisticSectionIndex): LuaLogisticSection | null;
15280
15325
  /**
15281
15326
  * Removes the given logistic section if possible. Removal may fail if the section index is out of range or the section is not {@link manual | runtime:LuaLogisticSection::is_manual}.
15282
15327
  * @param section_index Index of the section.
15283
15328
  * @returns Whether section was removed.
15284
15329
  */
15285
- remove_section(this: void, section_index: uint32): boolean;
15330
+ remove_section(this: void, section_index: LogisticSectionIndex): boolean;
15286
15331
  /**
15287
15332
  * The class name of this object. Available even when `valid` is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
15288
15333
  */
@@ -16638,7 +16683,7 @@ interface LuaPrototypeBase {
16638
16683
  /**
16639
16684
  * Group of this prototype.
16640
16685
  */
16641
- readonly group: LuaGroup;
16686
+ readonly group: LuaItemGroup;
16642
16687
  readonly hidden: boolean;
16643
16688
  readonly hidden_in_factoriopedia: boolean;
16644
16689
  readonly localised_description: LocalisedString;
@@ -16655,7 +16700,7 @@ interface LuaPrototypeBase {
16655
16700
  /**
16656
16701
  * Subgroup of this prototype.
16657
16702
  */
16658
- readonly subgroup: LuaGroup;
16703
+ readonly subgroup: LuaItemSubGroup;
16659
16704
  /**
16660
16705
  * Type of this prototype.
16661
16706
  */
@@ -16832,11 +16877,11 @@ interface LuaPrototypes {
16832
16877
  /**
16833
16878
  * A dictionary containing every ItemGroup indexed by `name`.
16834
16879
  */
16835
- readonly item_group: Record<string, LuaGroup>;
16880
+ readonly item_group: Record<string, LuaItemGroup>;
16836
16881
  /**
16837
16882
  * A dictionary containing every ItemSubgroup indexed by `name`.
16838
16883
  */
16839
- readonly item_subgroup: Record<string, LuaGroup>;
16884
+ readonly item_subgroup: Record<string, LuaItemSubGroup>;
16840
16885
  /**
16841
16886
  * A dictionary containing every MapGenPreset indexed by `name`.
16842
16887
  *
@@ -17323,7 +17368,7 @@ interface LuaRecipe {
17323
17368
  /**
17324
17369
  * Group of this recipe.
17325
17370
  */
17326
- readonly group: LuaGroup;
17371
+ readonly group: LuaItemGroup;
17327
17372
  /**
17328
17373
  * Is the recipe hidden? Hidden recipes don't show up in the crafting menu.
17329
17374
  */
@@ -17376,7 +17421,7 @@ interface LuaRecipe {
17376
17421
  /**
17377
17422
  * Subgroup of this recipe.
17378
17423
  */
17379
- readonly subgroup: LuaGroup;
17424
+ readonly subgroup: LuaItemSubGroup;
17380
17425
  /**
17381
17426
  * Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be `false`. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
17382
17427
  */
@@ -19067,18 +19112,14 @@ interface LuaSimulation {
19067
19112
  * @returns Position of the GUI slot on the screen, if successfully found.
19068
19113
  */
19069
19114
  get_slot_position(this: void, table: {
19070
- inventory_index: InventoryIndex;
19115
+ inventory_index: defines.inventory;
19071
19116
  slot_index: ItemStackIndex;
19072
19117
  inventory?: 'character' | 'entity';
19073
19118
  }): MapPosition | null;
19074
19119
  /**
19075
19120
  * @returns Center of the GUI widget on the screen, if successfully found.
19076
19121
  */
19077
- get_widget_position(this: void, table: {
19078
- type: SimulationWidgetType;
19079
- data?: string;
19080
- data2?: string;
19081
- }): MapPosition | null;
19122
+ get_widget_position(this: void, table: LuaSimulationGetWidgetPositionParams): MapPosition | null;
19082
19123
  /**
19083
19124
  * Send a left mouse button click event at its current position. This is equivalent to calling {@link LuaSimulation::mouse_down | runtime:LuaSimulation::mouse_down}, then {@link LuaSimulation::mouse_up | runtime:LuaSimulation::mouse_up}.
19084
19125
  */
@@ -19135,6 +19176,144 @@ interface LuaSimulation {
19135
19176
  */
19136
19177
  readonly valid: boolean;
19137
19178
  }
19179
+ type LuaSimulationGetWidgetPositionParams = BaseLuaSimulationGetWidgetPositionParams | LuaSimulationGetWidgetPositionParamsCheckBox | LuaSimulationGetWidgetPositionParamsDropDown | LuaSimulationGetWidgetPositionParamsItemGroupTab | LuaSimulationGetWidgetPositionParamsLabel | LuaSimulationGetWidgetPositionParamsLogisticsButton | LuaSimulationGetWidgetPositionParamsLogisticsButtonSpace | LuaSimulationGetWidgetPositionParamsQuickbarSlot | LuaSimulationGetWidgetPositionParamsRecipeSlot | LuaSimulationGetWidgetPositionParamsSignalIdBase | LuaSimulationGetWidgetPositionParamsSimpleItemSlot | LuaSimulationGetWidgetPositionParamsSimpleItemWithQualitySlot | LuaSimulationGetWidgetPositionParamsSimpleSlot | LuaSimulationGetWidgetPositionParamsTextButton | LuaSimulationGetWidgetPositionParamsTextButtonLocalisedSubstring | LuaSimulationGetWidgetPositionParamsTextButtonSubstring | LuaSimulationGetWidgetPositionParamsTextfield;
19180
+ interface BaseLuaSimulationGetWidgetPositionParams {
19181
+ 'type': 'check-box' | 'drop-down' | 'item-group-tab' | 'label' | 'logistics-button' | 'logistics-button-space' | 'quickbar-slot' | 'recipe-slot' | 'signal-id-base' | 'simple-item-slot' | 'simple-item-with-quality-slot' | 'simple-slot' | 'text-button' | 'text-button-localised-substring' | 'text-button-substring' | 'textfield';
19182
+ }
19183
+ /**
19184
+ *
19185
+ * Applies to variant case `check-box`
19186
+ */
19187
+ interface LuaSimulationGetWidgetPositionParamsCheckBox extends BaseLuaSimulationGetWidgetPositionParams {
19188
+ 'type': 'check-box';
19189
+ 'text': LocalisedString;
19190
+ }
19191
+ /**
19192
+ *
19193
+ * Applies to variant case `drop-down`
19194
+ */
19195
+ interface LuaSimulationGetWidgetPositionParamsDropDown extends BaseLuaSimulationGetWidgetPositionParams {
19196
+ 'type': 'drop-down';
19197
+ 'text'?: string;
19198
+ }
19199
+ /**
19200
+ *
19201
+ * Applies to variant case `item-group-tab`
19202
+ */
19203
+ interface LuaSimulationGetWidgetPositionParamsItemGroupTab extends BaseLuaSimulationGetWidgetPositionParams {
19204
+ 'type': 'item-group-tab';
19205
+ 'group': ItemGroupID;
19206
+ }
19207
+ /**
19208
+ *
19209
+ * Applies to variant case `label`
19210
+ */
19211
+ interface LuaSimulationGetWidgetPositionParamsLabel extends BaseLuaSimulationGetWidgetPositionParams {
19212
+ 'type': 'label';
19213
+ 'text'?: string;
19214
+ }
19215
+ /**
19216
+ *
19217
+ * Applies to variant case `logistics-button`
19218
+ */
19219
+ interface LuaSimulationGetWidgetPositionParamsLogisticsButton extends BaseLuaSimulationGetWidgetPositionParams {
19220
+ 'type': 'logistics-button';
19221
+ 'request_index': LogisticFilterIndex;
19222
+ }
19223
+ /**
19224
+ *
19225
+ * Applies to variant case `logistics-button-space`
19226
+ */
19227
+ interface LuaSimulationGetWidgetPositionParamsLogisticsButtonSpace extends BaseLuaSimulationGetWidgetPositionParams {
19228
+ 'type': 'logistics-button-space';
19229
+ 'request_index': LogisticFilterIndex;
19230
+ 'section_index': LogisticSectionIndex;
19231
+ }
19232
+ /**
19233
+ *
19234
+ * Applies to variant case `quickbar-slot`
19235
+ */
19236
+ interface LuaSimulationGetWidgetPositionParamsQuickbarSlot extends BaseLuaSimulationGetWidgetPositionParams {
19237
+ 'type': 'quickbar-slot';
19238
+ /**
19239
+ * Note: since quickbar slots are also of type ItemFilter, filter is used as a value: it must be equal {@link QuickBarSlot::filter | runtime:QuickBarSlot::filter}.
19240
+ */
19241
+ 'filter'?: ItemFilter;
19242
+ 'page_index'?: uint8;
19243
+ 'slot_index'?: uint8;
19244
+ }
19245
+ /**
19246
+ *
19247
+ * Applies to variant case `recipe-slot`
19248
+ */
19249
+ interface LuaSimulationGetWidgetPositionParamsRecipeSlot extends BaseLuaSimulationGetWidgetPositionParams {
19250
+ 'type': 'recipe-slot';
19251
+ 'recipe': RecipeID;
19252
+ }
19253
+ /**
19254
+ *
19255
+ * Applies to variant case `signal-id-base`
19256
+ */
19257
+ interface LuaSimulationGetWidgetPositionParamsSignalIdBase extends BaseLuaSimulationGetWidgetPositionParams {
19258
+ 'type': 'signal-id-base';
19259
+ 'id': SignalIDBase;
19260
+ }
19261
+ /**
19262
+ *
19263
+ * Applies to variant case `simple-item-slot`
19264
+ */
19265
+ interface LuaSimulationGetWidgetPositionParamsSimpleItemSlot extends BaseLuaSimulationGetWidgetPositionParams {
19266
+ 'type': 'simple-item-slot';
19267
+ 'item': ItemID;
19268
+ }
19269
+ /**
19270
+ *
19271
+ * Applies to variant case `simple-item-with-quality-slot`
19272
+ */
19273
+ interface LuaSimulationGetWidgetPositionParamsSimpleItemWithQualitySlot extends BaseLuaSimulationGetWidgetPositionParams {
19274
+ 'type': 'simple-item-with-quality-slot';
19275
+ 'filter': ItemFilter;
19276
+ }
19277
+ /**
19278
+ *
19279
+ * Applies to variant case `simple-slot`
19280
+ */
19281
+ interface LuaSimulationGetWidgetPositionParamsSimpleSlot extends BaseLuaSimulationGetWidgetPositionParams {
19282
+ 'type': 'simple-slot';
19283
+ 'item': ItemID;
19284
+ }
19285
+ /**
19286
+ *
19287
+ * Applies to variant case `text-button`
19288
+ */
19289
+ interface LuaSimulationGetWidgetPositionParamsTextButton extends BaseLuaSimulationGetWidgetPositionParams {
19290
+ 'type': 'text-button';
19291
+ 'text': string;
19292
+ }
19293
+ /**
19294
+ *
19295
+ * Applies to variant case `text-button-localised-substring`
19296
+ */
19297
+ interface LuaSimulationGetWidgetPositionParamsTextButtonLocalisedSubstring extends BaseLuaSimulationGetWidgetPositionParams {
19298
+ 'type': 'text-button-localised-substring';
19299
+ 'text': LocalisedString;
19300
+ }
19301
+ /**
19302
+ *
19303
+ * Applies to variant case `text-button-substring`
19304
+ */
19305
+ interface LuaSimulationGetWidgetPositionParamsTextButtonSubstring extends BaseLuaSimulationGetWidgetPositionParams {
19306
+ 'type': 'text-button-substring';
19307
+ 'text': string;
19308
+ }
19309
+ /**
19310
+ *
19311
+ * Applies to variant case `textfield`
19312
+ */
19313
+ interface LuaSimulationGetWidgetPositionParamsTextfield extends BaseLuaSimulationGetWidgetPositionParams {
19314
+ 'type': 'textfield';
19315
+ 'text': string;
19316
+ }
19138
19317
  /**
19139
19318
  * Control behavior for entities with a single fluid box (i.e. pipe, pipe-to-ground, storage-tank).
19140
19319
  */
@@ -19299,6 +19478,10 @@ interface LuaSpacePlatform {
19299
19478
  * Repairs the given tile if it's damaged.
19300
19479
  */
19301
19480
  repair_tile(this: void, position: TilePosition, amount?: float): void;
19481
+ /**
19482
+ * The number of trips completed between space locations.
19483
+ */
19484
+ completed_trips: uint32;
19302
19485
  /**
19303
19486
  * The damaged tiles on this platform.
19304
19487
  */
@@ -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.14
5
+ // Factorio version 2.1.17
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -3415,7 +3415,7 @@ interface FluidPrototypeFilterSubgroup extends BaseFluidPrototypeFilter {
3415
3415
  */
3416
3416
  'filter': 'subgroup';
3417
3417
  /**
3418
- * A {@link LuaGroup | runtime:LuaGroup} (subgroup) name
3418
+ * A {@link LuaItemSubGroup | runtime:LuaItemSubGroup} name
3419
3419
  */
3420
3420
  'subgroup': string;
3421
3421
  }
@@ -4008,7 +4008,6 @@ interface InserterBlueprintControlBehavior {
4008
4008
  connect_to_logistic_network?: boolean;
4009
4009
  logistic_condition?: CircuitCondition;
4010
4010
  }
4011
- type InventoryIndex = uint8;
4012
4011
  interface InventoryPosition {
4013
4012
  /**
4014
4013
  * The ID of the inventory to insert into.
@@ -4048,6 +4047,16 @@ type ItemFilter = {
4048
4047
  */
4049
4048
  comparator?: ComparatorString;
4050
4049
  } | string;
4050
+ /**
4051
+ * An item group may be specified in one of two ways.
4052
+ */
4053
+ type ItemGroupID = /**
4054
+ * The item group prototype.
4055
+ */
4056
+ LuaItemGroup | /**
4057
+ * The prototype name.
4058
+ */
4059
+ string;
4051
4060
  interface ItemHealthColorData {
4052
4061
  color: Color;
4053
4062
  threshold: float;
@@ -4120,7 +4129,7 @@ interface ItemLocationData {
4120
4129
  * @example ```
4121
4130
  -- What a custom recipe would look like that had a probability of 0.5 to return a
4122
4131
  -- minimum amount of 1 and a maximum amount of 5
4123
- {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
4132
+ {{type="item", name="custom-item", independent_probability=0.5, amount_min=1, amount_max=5}}
4124
4133
  ```
4125
4134
  */
4126
4135
  interface ItemProduct {
@@ -4395,7 +4404,7 @@ interface ItemPrototypeFilterSubgroup extends BaseItemPrototypeFilter {
4395
4404
  */
4396
4405
  'filter': 'subgroup';
4397
4406
  /**
4398
- * A {@link LuaGroup | runtime:LuaGroup} (subgroup) name
4407
+ * A {@link LuaItemSubGroup | runtime:LuaItemSubGroup} name
4399
4408
  */
4400
4409
  'subgroup': string;
4401
4410
  }
@@ -4758,6 +4767,7 @@ interface LogisticSection {
4758
4767
  */
4759
4768
  active?: boolean;
4760
4769
  }
4770
+ type LogisticSectionIndex = uint8;
4761
4771
  interface LogisticSections {
4762
4772
  sections?: LogisticSection[];
4763
4773
  /**
@@ -7936,7 +7946,7 @@ interface ProcessionTimeline {
7936
7946
  * @example ```
7937
7947
  -- What a custom recipe would look like that had a probability of 0.5 to return a
7938
7948
  -- minimum amount of 1 and a maximum amount of 5
7939
- {{type="item", name="custom-item", probability=0.5, amount_min=1, amount_max=5}}
7949
+ {{type="item", name="custom-item", independent_probability=0.5, amount_min=1, amount_max=5}}
7940
7950
  ```
7941
7951
  */
7942
7952
  type Product = /**
@@ -8412,7 +8422,7 @@ interface RecipePrototypeFilterSubgroup extends BaseRecipePrototypeFilter {
8412
8422
  */
8413
8423
  'filter': 'subgroup';
8414
8424
  /**
8415
- * A {@link LuaGroup | runtime:LuaGroup} (subgroup) name
8425
+ * A {@link LuaItemSubGroup | runtime:LuaItemSubGroup} name
8416
8426
  */
8417
8427
  'subgroup': string;
8418
8428
  }
@@ -8661,6 +8671,9 @@ string | /**
8661
8671
  * 137
8662
8672
  */
8663
8673
  'elevated-rail-metal' | /**
8674
+ * 138
8675
+ */
8676
+ 'elevated-rail-above-metal' | /**
8664
8677
  * 141
8665
8678
  */
8666
8679
  'elevated-lower-object' | /**
@@ -9437,7 +9450,7 @@ interface SimulationDefinition {
9437
9450
  mute_wind_sounds?: boolean;
9438
9451
  hide_factoriopedia_gradient?: boolean;
9439
9452
  }
9440
- type SimulationWidgetType = 'signal-id' | 'signal-id-base' | 'signal-or-number' | 'simple-slot' | 'simple-item-slot' | 'recipe-slot' | 'quickbar-slot' | 'logistics-button' | 'logistics-button-space' | 'text-button-localised-substring' | 'text-button' | 'text-button-substring' | 'inventory-limit-slot-button' | 'train-schedule-action-button' | 'choose-button' | 'textfield' | 'item-group-tab' | 'drop-down' | 'check-box' | 'switch' | 'label';
9453
+ type SimulationWidgetType = 'signal-id' | 'signal-id-base' | 'signal-or-number' | 'simple-slot' | 'simple-item-slot' | 'simple-item-with-quality-slot' | 'recipe-slot' | 'quickbar-slot' | 'logistics-button' | 'logistics-button-space' | 'text-button-localised-substring' | 'text-button' | 'text-button-substring' | 'inventory-limit-slot-button' | 'train-schedule-action-button' | 'choose-button' | 'textfield' | 'item-group-tab' | 'drop-down' | 'check-box' | 'switch' | 'label';
9441
9454
  interface SingleFluidBoxBlueprintControlBehavior {
9442
9455
  output_networks?: CircuitNetworkSelection;
9443
9456
  /**
@@ -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.14
5
+ // Factorio version 2.1.17
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
package/dist/defines.d.ts CHANGED
@@ -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.14
5
+ // Factorio version 2.1.17
6
6
  // API version 6
7
7
 
8
8
  declare namespace defines {
@@ -806,162 +806,163 @@ enum events {
806
806
  on_market_item_purchased = 64,
807
807
  on_mod_item_opened = 65,
808
808
  on_multiplayer_init = 66,
809
- on_object_destroyed = 67,
810
- on_permission_group_added = 68,
811
- on_permission_group_deleted = 69,
812
- on_permission_group_edited = 70,
813
- on_permission_string_imported = 71,
814
- on_picked_up_item = 72,
815
- on_player_alt_reverse_selected_area = 73,
816
- on_player_alt_selected_area = 74,
817
- on_player_ammo_inventory_changed = 75,
818
- on_player_armor_inventory_changed = 76,
819
- on_player_banned = 77,
820
- on_player_built_tile = 78,
821
- on_player_cancelled_crafting = 79,
822
- on_player_changed_force = 80,
823
- on_player_changed_position = 81,
824
- on_player_changed_surface = 82,
825
- on_player_cheat_mode_disabled = 83,
826
- on_player_cheat_mode_enabled = 84,
827
- on_player_clicked_gps_tag = 85,
828
- on_player_color_changed = 86,
829
- on_player_configured_blueprint = 87,
830
- on_player_controller_changed = 88,
831
- on_player_crafted_item = 89,
832
- on_player_created = 90,
833
- on_player_cursor_stack_changed = 91,
834
- on_player_deconstructed_area = 92,
835
- on_player_demoted = 93,
836
- on_player_died = 94,
837
- on_player_display_density_scale_changed = 95,
838
- on_player_display_resolution_changed = 96,
839
- on_player_display_scale_changed = 97,
840
- on_player_driving_changed_state = 98,
841
- on_player_dropped_item = 99,
842
- on_player_dropped_item_into_entity = 100,
843
- on_player_fast_transferred = 101,
844
- on_player_flipped_entity = 102,
845
- on_player_flushed_fluid = 103,
846
- on_player_gun_inventory_changed = 104,
847
- on_player_input_method_changed = 105,
848
- on_player_joined_game = 106,
849
- on_player_kicked = 107,
850
- on_player_left_game = 108,
851
- on_player_locale_changed = 109,
852
- on_player_main_inventory_changed = 110,
853
- on_player_mined_entity = 111,
854
- on_player_mined_item = 112,
855
- on_player_mined_tile = 113,
856
- on_player_music_changed = 114,
857
- on_player_muted = 115,
858
- on_player_pipette = 116,
859
- on_player_placed_equipment = 117,
860
- on_player_promoted = 118,
861
- on_player_removed = 119,
862
- on_player_removed_equipment = 120,
863
- on_player_repaired_entity = 121,
864
- on_player_respawned = 122,
865
- on_player_reverse_selected_area = 123,
866
- on_player_rotated_entity = 124,
867
- on_player_selected_area = 125,
868
- on_player_set_quick_bar_slot = 126,
869
- on_player_setup_blueprint = 127,
870
- on_player_super_forced_selected_area = 128,
871
- on_player_toggled_alt_mode = 129,
872
- on_player_toggled_map_editor = 130,
873
- on_player_trash_inventory_changed = 131,
874
- on_player_unbanned = 132,
875
- on_player_unmuted = 133,
876
- on_player_used_capsule = 134,
877
- on_player_used_spidertron_remote = 135,
878
- on_post_entity_died = 136,
879
- on_post_segmented_unit_died = 137,
880
- on_pre_build = 138,
881
- on_pre_chunk_deleted = 139,
882
- on_pre_entity_settings_pasted = 140,
883
- on_pre_ghost_deconstructed = 141,
884
- on_pre_ghost_upgraded = 142,
885
- on_pre_permission_group_deleted = 143,
886
- on_pre_permission_string_imported = 144,
887
- on_pre_player_crafted_item = 145,
888
- on_pre_player_died = 146,
889
- on_pre_player_left_game = 147,
890
- on_pre_player_mined_item = 148,
891
- on_pre_player_removed = 149,
892
- on_pre_player_toggled_map_editor = 150,
893
- on_pre_robot_exploded_cliff = 151,
894
- on_pre_scenario_finished = 152,
895
- on_pre_script_inventory_resized = 153,
896
- on_pre_surface_cleared = 154,
897
- on_pre_surface_deleted = 155,
898
- on_redo_applied = 156,
899
- on_research_cancelled = 157,
900
- on_research_finished = 158,
901
- on_research_moved = 159,
902
- on_research_queued = 160,
903
- on_research_reversed = 161,
904
- on_research_started = 162,
905
- on_resource_depleted = 163,
906
- on_robot_built_entity = 164,
907
- on_robot_built_tile = 165,
908
- on_robot_exploded_cliff = 166,
909
- on_robot_mined = 167,
910
- on_robot_mined_entity = 168,
911
- on_robot_mined_tile = 169,
912
- on_robot_pre_mined = 170,
913
- on_rocket_launch_ordered = 171,
914
- on_rocket_launched = 172,
915
- on_runtime_mod_setting_changed = 173,
916
- on_script_inventory_resized = 174,
917
- on_script_path_request_finished = 175,
918
- on_script_trigger_effect = 176,
919
- on_sector_scanned = 177,
920
- on_segment_entity_created = 178,
921
- on_segmented_unit_created = 179,
922
- on_segmented_unit_damaged = 180,
923
- on_segmented_unit_died = 181,
924
- on_selected_entity_changed = 182,
925
- on_singleplayer_init = 183,
926
- on_space_platform_built_entity = 184,
927
- on_space_platform_built_tile = 185,
928
- on_space_platform_changed_state = 186,
929
- on_space_platform_mined_entity = 187,
930
- on_space_platform_mined_item = 188,
931
- on_space_platform_mined_tile = 189,
932
- on_space_platform_pre_mined = 190,
933
- on_spider_command_completed = 191,
934
- on_string_translated = 192,
935
- on_surface_cleared = 193,
936
- on_surface_created = 194,
937
- on_surface_deleted = 195,
938
- on_surface_imported = 196,
939
- on_surface_renamed = 197,
940
- on_technology_effects_reset = 198,
941
- on_territory_created = 199,
942
- on_territory_destroyed = 200,
943
- on_tick = 201,
944
- on_tower_mined_plant = 202,
945
- on_tower_planted_seed = 203,
946
- on_tower_pre_mined_plant = 204,
947
- on_train_changed_state = 205,
948
- on_train_created = 206,
949
- on_train_schedule_changed = 207,
950
- on_trigger_created_entity = 208,
951
- on_trigger_fired_artillery = 209,
952
- on_udp_packet_received = 210,
953
- on_undo_applied = 211,
954
- on_unit_added_to_group = 212,
955
- on_unit_group_created = 213,
956
- on_unit_group_finished_gathering = 214,
957
- on_unit_removed_from_group = 215,
958
- on_worker_robot_expired = 216,
959
- script_raised_built = 217,
960
- script_raised_destroy = 218,
961
- script_raised_destroy_segmented_unit = 219,
962
- script_raised_revive = 220,
963
- script_raised_set_tiles = 221,
964
- script_raised_teleported = 222
809
+ on_next_day_started = 67,
810
+ on_object_destroyed = 68,
811
+ on_permission_group_added = 69,
812
+ on_permission_group_deleted = 70,
813
+ on_permission_group_edited = 71,
814
+ on_permission_string_imported = 72,
815
+ on_picked_up_item = 73,
816
+ on_player_alt_reverse_selected_area = 74,
817
+ on_player_alt_selected_area = 75,
818
+ on_player_ammo_inventory_changed = 76,
819
+ on_player_armor_inventory_changed = 77,
820
+ on_player_banned = 78,
821
+ on_player_built_tile = 79,
822
+ on_player_cancelled_crafting = 80,
823
+ on_player_changed_force = 81,
824
+ on_player_changed_position = 82,
825
+ on_player_changed_surface = 83,
826
+ on_player_cheat_mode_disabled = 84,
827
+ on_player_cheat_mode_enabled = 85,
828
+ on_player_clicked_gps_tag = 86,
829
+ on_player_color_changed = 87,
830
+ on_player_configured_blueprint = 88,
831
+ on_player_controller_changed = 89,
832
+ on_player_crafted_item = 90,
833
+ on_player_created = 91,
834
+ on_player_cursor_stack_changed = 92,
835
+ on_player_deconstructed_area = 93,
836
+ on_player_demoted = 94,
837
+ on_player_died = 95,
838
+ on_player_display_density_scale_changed = 96,
839
+ on_player_display_resolution_changed = 97,
840
+ on_player_display_scale_changed = 98,
841
+ on_player_driving_changed_state = 99,
842
+ on_player_dropped_item = 100,
843
+ on_player_dropped_item_into_entity = 101,
844
+ on_player_fast_transferred = 102,
845
+ on_player_flipped_entity = 103,
846
+ on_player_flushed_fluid = 104,
847
+ on_player_gun_inventory_changed = 105,
848
+ on_player_input_method_changed = 106,
849
+ on_player_joined_game = 107,
850
+ on_player_kicked = 108,
851
+ on_player_left_game = 109,
852
+ on_player_locale_changed = 110,
853
+ on_player_main_inventory_changed = 111,
854
+ on_player_mined_entity = 112,
855
+ on_player_mined_item = 113,
856
+ on_player_mined_tile = 114,
857
+ on_player_music_changed = 115,
858
+ on_player_muted = 116,
859
+ on_player_pipette = 117,
860
+ on_player_placed_equipment = 118,
861
+ on_player_promoted = 119,
862
+ on_player_removed = 120,
863
+ on_player_removed_equipment = 121,
864
+ on_player_repaired_entity = 122,
865
+ on_player_respawned = 123,
866
+ on_player_reverse_selected_area = 124,
867
+ on_player_rotated_entity = 125,
868
+ on_player_selected_area = 126,
869
+ on_player_set_quick_bar_slot = 127,
870
+ on_player_setup_blueprint = 128,
871
+ on_player_super_forced_selected_area = 129,
872
+ on_player_toggled_alt_mode = 130,
873
+ on_player_toggled_map_editor = 131,
874
+ on_player_trash_inventory_changed = 132,
875
+ on_player_unbanned = 133,
876
+ on_player_unmuted = 134,
877
+ on_player_used_capsule = 135,
878
+ on_player_used_spidertron_remote = 136,
879
+ on_post_entity_died = 137,
880
+ on_post_segmented_unit_died = 138,
881
+ on_pre_build = 139,
882
+ on_pre_chunk_deleted = 140,
883
+ on_pre_entity_settings_pasted = 141,
884
+ on_pre_ghost_deconstructed = 142,
885
+ on_pre_ghost_upgraded = 143,
886
+ on_pre_permission_group_deleted = 144,
887
+ on_pre_permission_string_imported = 145,
888
+ on_pre_player_crafted_item = 146,
889
+ on_pre_player_died = 147,
890
+ on_pre_player_left_game = 148,
891
+ on_pre_player_mined_item = 149,
892
+ on_pre_player_removed = 150,
893
+ on_pre_player_toggled_map_editor = 151,
894
+ on_pre_robot_exploded_cliff = 152,
895
+ on_pre_scenario_finished = 153,
896
+ on_pre_script_inventory_resized = 154,
897
+ on_pre_surface_cleared = 155,
898
+ on_pre_surface_deleted = 156,
899
+ on_redo_applied = 157,
900
+ on_research_cancelled = 158,
901
+ on_research_finished = 159,
902
+ on_research_moved = 160,
903
+ on_research_queued = 161,
904
+ on_research_reversed = 162,
905
+ on_research_started = 163,
906
+ on_resource_depleted = 164,
907
+ on_robot_built_entity = 165,
908
+ on_robot_built_tile = 166,
909
+ on_robot_exploded_cliff = 167,
910
+ on_robot_mined = 168,
911
+ on_robot_mined_entity = 169,
912
+ on_robot_mined_tile = 170,
913
+ on_robot_pre_mined = 171,
914
+ on_rocket_launch_ordered = 172,
915
+ on_rocket_launched = 173,
916
+ on_runtime_mod_setting_changed = 174,
917
+ on_script_inventory_resized = 175,
918
+ on_script_path_request_finished = 176,
919
+ on_script_trigger_effect = 177,
920
+ on_sector_scanned = 178,
921
+ on_segment_entity_created = 179,
922
+ on_segmented_unit_created = 180,
923
+ on_segmented_unit_damaged = 181,
924
+ on_segmented_unit_died = 182,
925
+ on_selected_entity_changed = 183,
926
+ on_singleplayer_init = 184,
927
+ on_space_platform_built_entity = 185,
928
+ on_space_platform_built_tile = 186,
929
+ on_space_platform_changed_state = 187,
930
+ on_space_platform_mined_entity = 188,
931
+ on_space_platform_mined_item = 189,
932
+ on_space_platform_mined_tile = 190,
933
+ on_space_platform_pre_mined = 191,
934
+ on_spider_command_completed = 192,
935
+ on_string_translated = 193,
936
+ on_surface_cleared = 194,
937
+ on_surface_created = 195,
938
+ on_surface_deleted = 196,
939
+ on_surface_imported = 197,
940
+ on_surface_renamed = 198,
941
+ on_technology_effects_reset = 199,
942
+ on_territory_created = 200,
943
+ on_territory_destroyed = 201,
944
+ on_tick = 202,
945
+ on_tower_mined_plant = 203,
946
+ on_tower_planted_seed = 204,
947
+ on_tower_pre_mined_plant = 205,
948
+ on_train_changed_state = 206,
949
+ on_train_created = 207,
950
+ on_train_schedule_changed = 208,
951
+ on_trigger_created_entity = 209,
952
+ on_trigger_fired_artillery = 210,
953
+ on_udp_packet_received = 211,
954
+ on_undo_applied = 212,
955
+ on_unit_added_to_group = 213,
956
+ on_unit_group_created = 214,
957
+ on_unit_group_finished_gathering = 215,
958
+ on_unit_removed_from_group = 216,
959
+ on_worker_robot_expired = 217,
960
+ script_raised_built = 218,
961
+ script_raised_destroy = 219,
962
+ script_raised_destroy_segmented_unit = 220,
963
+ script_raised_revive = 221,
964
+ script_raised_set_tiles = 222,
965
+ script_raised_teleported = 223
965
966
  }
966
967
  enum flow_precision_index {
967
968
  fifty_hours = 5,
package/dist/events.d.ts CHANGED
@@ -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.14
5
+ // Factorio version 2.1.17
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -1626,6 +1626,20 @@ interface on_multiplayer_init {
1626
1626
  */
1627
1627
  tick: MapTick;
1628
1628
  }
1629
+ /**
1630
+ * Called when value of {@link LuaSurface::daytime | runtime:LuaSurface::daytime} wraps around to be in `[0, 1)` range.
1631
+ */
1632
+ interface on_next_day_started {
1633
+ /**
1634
+ * Identifier of the event.
1635
+ */
1636
+ name: defines.events;
1637
+ surface: LuaSurface;
1638
+ /**
1639
+ * Tick the event was generated.
1640
+ */
1641
+ tick: MapTick;
1642
+ }
1629
1643
  /**
1630
1644
  * Called after an object is destroyed which was registered with {@link LuaBootstrap::register_on_object_destroyed | runtime:LuaBootstrap::register_on_object_destroyed} previously.
1631
1645
  *
package/dist/global.d.ts CHANGED
@@ -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.14
5
+ // Factorio version 2.1.17
6
6
  // API version 6
7
7
 
8
8
  /**
@@ -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.14
5
+ // Factorio version 2.1.17
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
@@ -3427,6 +3427,7 @@ interface EntityPrototype extends Prototype {
3427
3427
  fast_replaceable_group?: string;
3428
3428
  flags?: EntityPrototypeFlags;
3429
3429
  friendly_map_color?: Color;
3430
+ ghost_build_sound?: Sound;
3430
3431
  /**
3431
3432
  * This entity can freeze if heating_energy is larger than zero.
3432
3433
  */
@@ -5814,10 +5815,6 @@ interface LoaderPrototype extends TransportBeltConnectablePrototype {
5814
5815
  * First the four cardinal directions for `direction_out`, followed by the four directions for `direction_in`.
5815
5816
  */
5816
5817
  circuit_connector?: CircuitConnectorDefinition[];
5817
- /**
5818
- * Render layer for all directions of the circuit connectors.
5819
- */
5820
- circuit_connector_layer?: RenderLayer;
5821
5818
  /**
5822
5819
  * The maximum circuit wire distance for this entity.
5823
5820
  */
@@ -8400,7 +8397,7 @@ interface RocketSiloPrototype extends AssemblingMachinePrototype {
8400
8397
  */
8401
8398
  rocket_parts_required: uint32;
8402
8399
  /**
8403
- * Must be at least `rocket_parts_required`.
8400
+ * All values down to 0 are allowed, however it is suggested to avoid values from 1 up to `rocket_parts_required - 1` to avoid second progress bar stopping before reaching 100%. When set to 0, second progress bar is hidden.
8404
8401
  */
8405
8402
  rocket_parts_storage_cap?: uint32;
8406
8403
  rocket_quick_relaunch_start_offset: double;
package/dist/types.d.ts CHANGED
@@ -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.14
5
+ // Factorio version 2.1.17
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
@@ -2727,18 +2727,6 @@ interface CircuitConnectorDefinition {
2727
2727
  */
2728
2728
  sprites?: CircuitConnectorSprites;
2729
2729
  }
2730
- interface CircuitConnectorLayer {
2731
- east?: RenderLayer;
2732
- north?: RenderLayer;
2733
- south?: RenderLayer;
2734
- west?: RenderLayer;
2735
- }
2736
- interface CircuitConnectorSecondaryDrawOrder {
2737
- east?: int8;
2738
- north?: int8;
2739
- south?: int8;
2740
- west?: int8;
2741
- }
2742
2730
  interface CircuitConnectorSprites {
2743
2731
  blue_led_light_offset?: Vector;
2744
2732
  /**
@@ -2755,6 +2743,8 @@ interface CircuitConnectorSprites {
2755
2743
  led_light: LightDefinition;
2756
2744
  led_red: Sprite;
2757
2745
  red_green_led_light_offset?: Vector;
2746
+ render_layer?: RenderLayer;
2747
+ secondary_draw_order?: int8;
2758
2748
  /**
2759
2749
  * Drawn when the entity is connected to a circuit network.
2760
2750
  */
@@ -3337,14 +3327,6 @@ interface CraftItemTipTrigger extends CountBasedTipTrigger {
3337
3327
  }
3338
3328
  interface CraftingMachineGraphicsSet extends WorkingVisualisations {
3339
3329
  animation_progress?: float;
3340
- /**
3341
- * Render layer(s) for all directions of the circuit connectors.
3342
- */
3343
- circuit_connector_layer?: RenderLayer | CircuitConnectorLayer;
3344
- /**
3345
- * Secondary draw order(s) for all directions of the circuit connectors.
3346
- */
3347
- circuit_connector_secondary_draw_order?: int8 | CircuitConnectorSecondaryDrawOrder;
3348
3330
  frozen_patch?: Sprite4Way;
3349
3331
  reset_animation_when_frozen?: boolean;
3350
3332
  /**
@@ -7012,14 +6994,6 @@ interface MinimapStyleSpecification extends EmptyWidgetStyleSpecificationBase {
7012
6994
  */
7013
6995
  interface MiningDrillGraphicsSet extends WorkingVisualisations {
7014
6996
  animation_progress?: float;
7015
- /**
7016
- * Render layer(s) for all directions of the circuit connectors.
7017
- */
7018
- circuit_connector_layer?: RenderLayer | CircuitConnectorLayer;
7019
- /**
7020
- * Secondary draw order(s) for all directions of the circuit connectors.
7021
- */
7022
- circuit_connector_secondary_draw_order?: int8 | CircuitConnectorSecondaryDrawOrder;
7023
6997
  drilling_vertical_movement_duration?: uint16;
7024
6998
  frozen_patch?: Sprite4Way;
7025
6999
  reset_animation_when_frozen?: boolean;
@@ -9043,7 +9017,6 @@ interface RailSignalLights {
9043
9017
  }
9044
9018
  interface RailSignalPictureSet {
9045
9019
  circuit_connector?: CircuitConnectorDefinition[];
9046
- circuit_connector_render_layer?: RenderLayer;
9047
9020
  lights: RailSignalLights;
9048
9021
  rail_piece?: RailSignalStaticSpriteLayer;
9049
9022
  selection_box_shift?: Vector[];
@@ -9153,7 +9126,7 @@ interface RecipeTints {
9153
9126
  *
9154
9127
  * Note: `decals` is used as special marker for {@link DecorativePrototype::render_layer | prototype:DecorativePrototype::render_layer}. When used elsewhere, the sprites will draw over the terrain.
9155
9128
  */
9156
- type RenderLayer = 'zero' | 'background-transitions' | 'under-tiles' | 'decals' | 'above-tiles' | 'ground-layer-1' | 'ground-layer-2' | 'ground-layer-3' | 'ground-layer-4' | 'ground-layer-5' | 'lower-radius-visualization' | 'radius-visualization' | 'transport-belt-integration' | 'resource' | 'building-smoke' | 'rail-stone-path-lower' | 'rail-stone-path' | 'rail-tie' | 'decorative' | 'ground-patch' | 'ground-patch-higher' | 'ground-patch-higher2' | 'rail-chain-signal-metal' | 'rail-screw' | 'rail-metal' | 'remnants' | 'floor' | 'transport-belt' | 'transport-belt-endings' | 'floor-mechanics-under-corpse' | 'corpse' | 'floor-mechanics' | 'item' | 'transport-belt-reader' | 'lower-object' | 'transport-belt-circuit-connector' | 'lower-object-above-shadow' | 'lower-object-overlay' | 'object-under' | 'object' | 'cargo-hatch' | 'higher-object-under' | 'higher-object-above' | 'train-stop-top' | 'item-in-inserter-hand' | 'above-inserters' | 'wires' | 'under-elevated' | 'elevated-rail-stone-path-lower' | 'elevated-rail-stone-path' | 'elevated-rail-tie' | 'elevated-rail-screw' | 'elevated-rail-metal' | 'elevated-lower-object' | 'elevated-object' | 'elevated-higher-object' | 'fluid-visualization' | 'wires-above' | 'entity-info-icon' | 'entity-info-icon-above' | 'explosion' | 'projectile' | 'smoke' | 'air-object' | 'air-entity-info-icon' | 'light-effect' | 'selection-box' | 'higher-selection-box' | 'collision-selection-box' | 'arrow' | 'cursor';
9129
+ type RenderLayer = 'zero' | 'background-transitions' | 'under-tiles' | 'decals' | 'above-tiles' | 'ground-layer-1' | 'ground-layer-2' | 'ground-layer-3' | 'ground-layer-4' | 'ground-layer-5' | 'lower-radius-visualization' | 'radius-visualization' | 'transport-belt-integration' | 'resource' | 'building-smoke' | 'rail-stone-path-lower' | 'rail-stone-path' | 'rail-tie' | 'decorative' | 'ground-patch' | 'ground-patch-higher' | 'ground-patch-higher2' | 'rail-chain-signal-metal' | 'rail-screw' | 'rail-metal' | 'remnants' | 'floor' | 'transport-belt' | 'transport-belt-endings' | 'floor-mechanics-under-corpse' | 'corpse' | 'floor-mechanics' | 'item' | 'transport-belt-reader' | 'lower-object' | 'transport-belt-circuit-connector' | 'lower-object-above-shadow' | 'lower-object-overlay' | 'object-under' | 'object' | 'cargo-hatch' | 'higher-object-under' | 'higher-object-above' | 'train-stop-top' | 'item-in-inserter-hand' | 'above-inserters' | 'wires' | 'under-elevated' | 'elevated-rail-stone-path-lower' | 'elevated-rail-stone-path' | 'elevated-rail-tie' | 'elevated-rail-screw' | 'elevated-rail-metal' | 'elevated-rail-above-metal' | 'elevated-lower-object' | 'elevated-object' | 'elevated-higher-object' | 'fluid-visualization' | 'wires-above' | 'entity-info-icon' | 'entity-info-icon-above' | 'explosion' | 'projectile' | 'smoke' | 'air-object' | 'air-entity-info-icon' | 'light-effect' | 'selection-box' | 'higher-selection-box' | 'collision-selection-box' | 'arrow' | 'cursor';
9157
9130
  /**
9158
9131
  * Defines the amount of an item required to research one unit of a {@link technology | prototype:TechnologyPrototype}. The first member of the tuple is the name of a {@link ItemPrototype | prototype:ItemPrototype} and the second is the amount. Amount must not be 0.
9159
9132
  * @example ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "factorio-types",
3
- "version": "1.2.65",
3
+ "version": "1.2.67",
4
4
  "description": "Typescript declarations for the Factorio mod API",
5
5
  "main": "index.d.ts",
6
6
  "repository": "https://github.com/sguest/factorio-types.git",
@@ -23,7 +23,7 @@
23
23
  "src/**/*.d.ts",
24
24
  "dist/**/*.d.ts"
25
25
  ],
26
- "factorioVersion": "2.1.14",
26
+ "factorioVersion": "2.1.17",
27
27
  "dependencies": {
28
28
  "lua-types": "^2.13.1"
29
29
  },