factorio-types 1.2.33 → 1.2.35

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/prototype-api.json
4
4
  // Definition source https://github.com/sguest/factorio-types
5
- // Factorio version 2.0.47
5
+ // Factorio version 2.0.50
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
@@ -772,6 +772,9 @@ interface dataCollection {
772
772
  'utility-sprites': {
773
773
  [key: string]: UtilitySprites;
774
774
  };
775
+ 'valve': {
776
+ [key: string]: ValvePrototype;
777
+ };
775
778
  'virtual-signal': {
776
779
  [key: string]: VirtualSignalPrototype;
777
780
  };
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.0.47
5
+ // Factorio version 2.0.50
6
6
  // API version 6
7
7
 
8
8
  declare namespace defines {
@@ -615,6 +615,10 @@ enum entity_status {
615
615
  * Used by roboports.
616
616
  */
617
617
  recharging_after_power_outage = 51,
618
+ /**
619
+ * Used by assembling machines.
620
+ */
621
+ recipe_is_parameter = 66,
618
622
  /**
619
623
  * Used by assembling machines.
620
624
  */
@@ -1034,201 +1038,202 @@ enum input_action {
1034
1038
  edit_interrupt = 88,
1035
1039
  edit_permission_group = 89,
1036
1040
  edit_pin = 90,
1037
- enable_transitional_requests = 91,
1038
- export_blueprint = 92,
1039
- fast_entity_split = 93,
1040
- fast_entity_transfer = 94,
1041
- flip_entity = 95,
1042
- flush_opened_entity_fluid = 96,
1043
- flush_opened_entity_specific_fluid = 97,
1044
- go_to_train_station = 98,
1045
- grab_blueprint_record = 99,
1046
- gui_checked_state_changed = 100,
1047
- gui_click = 101,
1048
- gui_confirmed = 102,
1049
- gui_elem_changed = 103,
1050
- gui_hover = 104,
1051
- gui_leave = 105,
1052
- gui_location_changed = 106,
1053
- gui_selected_tab_changed = 107,
1054
- gui_selection_state_changed = 108,
1055
- gui_switch_state_changed = 109,
1056
- gui_text_changed = 110,
1057
- gui_value_changed = 111,
1058
- import_blueprint = 112,
1059
- import_blueprint_string = 113,
1060
- import_blueprints_filtered = 114,
1061
- import_permissions_string = 115,
1062
- instantly_create_space_platform = 116,
1063
- inventory_split = 117,
1064
- inventory_transfer = 118,
1065
- land_at_planet = 119,
1066
- launch_rocket = 120,
1067
- lua_shortcut = 121,
1068
- map_editor_action = 122,
1069
- market_offer = 123,
1070
- mod_settings_changed = 124,
1071
- modify_decider_combinator_condition = 125,
1072
- modify_decider_combinator_output = 126,
1073
- move_pin = 127,
1074
- move_research = 128,
1075
- open_achievements_gui = 129,
1076
- open_blueprint_library_gui = 130,
1077
- open_blueprint_record = 131,
1078
- open_bonus_gui = 132,
1079
- open_character_gui = 133,
1080
- open_current_vehicle_gui = 134,
1081
- open_equipment = 135,
1082
- open_global_electric_network_gui = 136,
1083
- open_gui = 137,
1084
- open_item = 138,
1085
- open_logistics_gui = 139,
1086
- open_mod_item = 140,
1087
- open_new_platform_button_from_rocket_silo = 141,
1088
- open_opened_entity_grid = 142,
1089
- open_parent_of_opened_item = 143,
1090
- open_production_gui = 144,
1091
- open_train_gui = 145,
1092
- open_train_station_gui = 146,
1093
- open_trains_gui = 147,
1094
- parametrise_blueprint = 148,
1095
- paste_entity_settings = 149,
1096
- pin_alert_group = 150,
1097
- pin_custom_alert = 151,
1098
- pin_search_result = 152,
1099
- pipette = 153,
1100
- place_equipment = 154,
1101
- quick_bar_pick_slot = 155,
1102
- quick_bar_set_selected_page = 156,
1103
- quick_bar_set_slot = 157,
1104
- reassign_blueprint = 158,
1105
- redo = 159,
1106
- remote_view_entity = 160,
1107
- remote_view_surface = 161,
1108
- remove_cables = 162,
1109
- remove_decider_combinator_condition = 163,
1110
- remove_decider_combinator_output = 164,
1111
- remove_logistic_section = 165,
1112
- remove_pin = 166,
1113
- remove_train_interrupt = 167,
1114
- remove_train_station = 168,
1115
- rename_interrupt = 169,
1116
- rename_space_platform = 170,
1117
- reorder_logistic_section = 171,
1118
- request_missing_construction_materials = 172,
1119
- reset_assembling_machine = 173,
1120
- reverse_select_area = 174,
1121
- rotate_entity = 175,
1122
- select_area = 176,
1123
- select_asteroid_chunk_slot = 177,
1124
- select_blueprint_entities = 178,
1125
- select_entity_filter_slot = 179,
1126
- select_entity_slot = 180,
1127
- select_item_filter = 181,
1128
- select_mapper_slot_from = 182,
1129
- select_mapper_slot_to = 183,
1130
- select_next_valid_gun = 184,
1131
- select_tile_slot = 185,
1132
- send_spidertron = 186,
1133
- send_stack_to_trash = 187,
1134
- send_stacks_to_trash = 188,
1135
- send_train_to_pin_target = 189,
1136
- set_behavior_mode = 190,
1137
- set_car_weapons_control = 191,
1138
- set_cheat_mode_quality = 192,
1139
- set_circuit_condition = 193,
1140
- set_circuit_mode_of_operation = 194,
1141
- set_combinator_description = 195,
1142
- set_copy_color_from_train_stop = 196,
1143
- set_deconstruction_item_tile_selection_mode = 197,
1144
- set_deconstruction_item_trees_and_rocks_only = 198,
1145
- set_entity_color = 199,
1146
- set_entity_energy_property = 200,
1147
- set_filter = 201,
1148
- set_ghost_cursor = 202,
1149
- set_heat_interface_mode = 203,
1150
- set_heat_interface_temperature = 204,
1151
- set_infinity_container_filter_item = 205,
1152
- set_infinity_container_remove_unfiltered_items = 206,
1153
- set_infinity_pipe_filter = 207,
1154
- set_inserter_max_stack_size = 208,
1155
- set_inventory_bar = 209,
1156
- set_lamp_always_on = 210,
1157
- set_linked_container_link_i_d = 211,
1158
- set_loader_belt_stack_size_override = 212,
1159
- set_logistic_filter_item = 213,
1160
- set_logistic_network_name = 214,
1161
- set_logistic_section_active = 215,
1162
- set_player_color = 216,
1163
- set_pump_fluid_filter = 217,
1164
- set_request_from_buffers = 218,
1165
- set_research_finished_stops_game = 219,
1166
- set_rocket_silo_send_to_orbit_automated_mode = 220,
1167
- set_schedule_record_allow_unloading = 221,
1168
- set_signal = 222,
1169
- set_splitter_priority = 223,
1170
- set_spoil_priority = 224,
1171
- set_train_stop_priority = 225,
1172
- set_train_stopped = 226,
1173
- set_trains_limit = 227,
1174
- set_turret_ignore_unlisted = 228,
1175
- set_use_inserter_filters = 229,
1176
- set_vehicle_automatic_targeting_parameters = 230,
1177
- setup_assembling_machine = 231,
1178
- setup_blueprint = 232,
1179
- setup_single_blueprint_record = 233,
1180
- spawn_item = 234,
1181
- spectator_change_surface = 235,
1182
- stack_split = 236,
1183
- stack_transfer = 237,
1184
- start_repair = 238,
1185
- start_research = 239,
1186
- start_walking = 240,
1187
- stop_drag_build = 241,
1188
- swap_asteroid_chunk_slots = 242,
1189
- swap_entity_filter_slots = 243,
1190
- swap_entity_slots = 244,
1191
- swap_infinity_container_filter_items = 245,
1192
- swap_item_filters = 246,
1193
- swap_logistic_filter_items = 247,
1194
- swap_mappers = 248,
1195
- swap_tile_slots = 249,
1196
- switch_connect_to_logistic_network = 250,
1197
- switch_constant_combinator_state = 251,
1198
- switch_inserter_filter_mode_state = 252,
1199
- switch_loader_filter_mode = 253,
1200
- switch_mining_drill_filter_mode_state = 254,
1201
- switch_power_switch_state = 255,
1202
- take_equipment = 256,
1203
- toggle_artillery_auto_targeting = 257,
1204
- toggle_deconstruction_item_entity_filter_mode = 258,
1205
- toggle_deconstruction_item_tile_filter_mode = 259,
1206
- toggle_driving = 260,
1207
- toggle_enable_vehicle_logistics_while_moving = 261,
1208
- toggle_entity_logistic_requests = 262,
1209
- toggle_equipment_movement_bonus = 263,
1210
- toggle_map_editor = 264,
1211
- toggle_personal_logistic_requests = 265,
1212
- toggle_personal_roboport = 266,
1213
- toggle_selected_entity = 267,
1214
- toggle_show_entity_info = 268,
1215
- translate_string = 269,
1216
- trash_not_requested_items = 270,
1217
- undo = 271,
1218
- upgrade = 272,
1219
- upgrade_opened_blueprint_by_item = 273,
1220
- upgrade_opened_blueprint_by_record = 274,
1221
- use_item = 275,
1222
- wire_dragging = 276,
1223
- write_to_console = 277
1041
+ export_blueprint = 91,
1042
+ fast_entity_split = 92,
1043
+ fast_entity_transfer = 93,
1044
+ flip_entity = 94,
1045
+ flush_opened_entity_fluid = 95,
1046
+ flush_opened_entity_specific_fluid = 96,
1047
+ go_to_train_station = 97,
1048
+ grab_blueprint_record = 98,
1049
+ gui_checked_state_changed = 99,
1050
+ gui_click = 100,
1051
+ gui_confirmed = 101,
1052
+ gui_elem_changed = 102,
1053
+ gui_hover = 103,
1054
+ gui_leave = 104,
1055
+ gui_location_changed = 105,
1056
+ gui_selected_tab_changed = 106,
1057
+ gui_selection_state_changed = 107,
1058
+ gui_switch_state_changed = 108,
1059
+ gui_text_changed = 109,
1060
+ gui_value_changed = 110,
1061
+ import_blueprint = 111,
1062
+ import_blueprint_string = 112,
1063
+ import_blueprints_filtered = 113,
1064
+ import_permissions_string = 114,
1065
+ instantly_create_space_platform = 115,
1066
+ inventory_split = 116,
1067
+ inventory_transfer = 117,
1068
+ land_at_planet = 118,
1069
+ launch_rocket = 119,
1070
+ lua_shortcut = 120,
1071
+ map_editor_action = 121,
1072
+ market_offer = 122,
1073
+ mod_settings_changed = 123,
1074
+ modify_decider_combinator_condition = 124,
1075
+ modify_decider_combinator_output = 125,
1076
+ move_pin = 126,
1077
+ move_research = 127,
1078
+ open_achievements_gui = 128,
1079
+ open_blueprint_library_gui = 129,
1080
+ open_blueprint_record = 130,
1081
+ open_bonus_gui = 131,
1082
+ open_character_gui = 132,
1083
+ open_current_vehicle_gui = 133,
1084
+ open_equipment = 134,
1085
+ open_global_electric_network_gui = 135,
1086
+ open_gui = 136,
1087
+ open_item = 137,
1088
+ open_logistics_gui = 138,
1089
+ open_mod_item = 139,
1090
+ open_new_platform_button_from_rocket_silo = 140,
1091
+ open_opened_entity_grid = 141,
1092
+ open_parent_of_opened_item = 142,
1093
+ open_production_gui = 143,
1094
+ open_train_gui = 144,
1095
+ open_train_station_gui = 145,
1096
+ open_trains_gui = 146,
1097
+ parametrise_blueprint = 147,
1098
+ paste_entity_settings = 148,
1099
+ pin_alert_group = 149,
1100
+ pin_custom_alert = 150,
1101
+ pin_search_result = 151,
1102
+ pipette = 152,
1103
+ place_equipment = 153,
1104
+ quick_bar_pick_slot = 154,
1105
+ quick_bar_set_selected_page = 155,
1106
+ quick_bar_set_slot = 156,
1107
+ reassign_blueprint = 157,
1108
+ redo = 158,
1109
+ remote_view_entity = 159,
1110
+ remote_view_surface = 160,
1111
+ remove_cables = 161,
1112
+ remove_decider_combinator_condition = 162,
1113
+ remove_decider_combinator_output = 163,
1114
+ remove_logistic_section = 164,
1115
+ remove_pin = 165,
1116
+ remove_train_interrupt = 166,
1117
+ remove_train_station = 167,
1118
+ rename_interrupt = 168,
1119
+ rename_space_platform = 169,
1120
+ reorder_logistic_section = 170,
1121
+ request_missing_construction_materials = 171,
1122
+ reset_assembling_machine = 172,
1123
+ reverse_select_area = 173,
1124
+ rotate_entity = 174,
1125
+ select_area = 175,
1126
+ select_asteroid_chunk_slot = 176,
1127
+ select_blueprint_entities = 177,
1128
+ select_entity_filter_slot = 178,
1129
+ select_entity_slot = 179,
1130
+ select_item_filter = 180,
1131
+ select_mapper_slot_from = 181,
1132
+ select_mapper_slot_to = 182,
1133
+ select_next_valid_gun = 183,
1134
+ select_tile_slot = 184,
1135
+ send_spidertron = 185,
1136
+ send_stack_to_trash = 186,
1137
+ send_stacks_to_trash = 187,
1138
+ send_train_to_pin_target = 188,
1139
+ set_behavior_mode = 189,
1140
+ set_car_weapons_control = 190,
1141
+ set_cheat_mode_quality = 191,
1142
+ set_circuit_condition = 192,
1143
+ set_circuit_mode_of_operation = 193,
1144
+ set_combinator_description = 194,
1145
+ set_copy_color_from_train_stop = 195,
1146
+ set_deconstruction_item_tile_selection_mode = 196,
1147
+ set_deconstruction_item_trees_and_rocks_only = 197,
1148
+ set_entity_color = 198,
1149
+ set_entity_energy_property = 199,
1150
+ set_filter = 200,
1151
+ set_ghost_cursor = 201,
1152
+ set_heat_interface_mode = 202,
1153
+ set_heat_interface_temperature = 203,
1154
+ set_infinity_container_filter_item = 204,
1155
+ set_infinity_container_remove_unfiltered_items = 205,
1156
+ set_infinity_pipe_filter = 206,
1157
+ set_inserter_max_stack_size = 207,
1158
+ set_inventory_bar = 208,
1159
+ set_lamp_always_on = 209,
1160
+ set_linked_container_link_i_d = 210,
1161
+ set_loader_belt_stack_size_override = 211,
1162
+ set_logistic_filter_item = 212,
1163
+ set_logistic_network_name = 213,
1164
+ set_logistic_section_active = 214,
1165
+ set_player_color = 215,
1166
+ set_pump_fluid_filter = 216,
1167
+ set_request_from_buffers = 217,
1168
+ set_research_finished_stops_game = 218,
1169
+ set_rocket_silo_send_to_orbit_automated_mode = 219,
1170
+ set_schedule_record_allow_unloading = 220,
1171
+ set_signal = 221,
1172
+ set_splitter_priority = 222,
1173
+ set_spoil_priority = 223,
1174
+ set_train_stop_priority = 224,
1175
+ set_train_stopped = 225,
1176
+ set_trains_limit = 226,
1177
+ set_turret_ignore_unlisted = 227,
1178
+ set_use_inserter_filters = 228,
1179
+ set_vehicle_automatic_targeting_parameters = 229,
1180
+ setup_assembling_machine = 230,
1181
+ setup_blueprint = 231,
1182
+ setup_single_blueprint_record = 232,
1183
+ spawn_item = 233,
1184
+ spectator_change_surface = 234,
1185
+ stack_split = 235,
1186
+ stack_transfer = 236,
1187
+ start_repair = 237,
1188
+ start_research = 238,
1189
+ start_walking = 239,
1190
+ stop_drag_build = 240,
1191
+ swap_asteroid_chunk_slots = 241,
1192
+ swap_entity_filter_slots = 242,
1193
+ swap_entity_slots = 243,
1194
+ swap_infinity_container_filter_items = 244,
1195
+ swap_item_filters = 245,
1196
+ swap_logistic_filter_items = 246,
1197
+ swap_mappers = 247,
1198
+ swap_tile_slots = 248,
1199
+ switch_connect_to_logistic_network = 249,
1200
+ switch_constant_combinator_state = 250,
1201
+ switch_inserter_filter_mode_state = 251,
1202
+ switch_loader_filter_mode = 252,
1203
+ switch_mining_drill_filter_mode_state = 253,
1204
+ switch_power_switch_state = 254,
1205
+ take_equipment = 255,
1206
+ toggle_artillery_auto_targeting = 256,
1207
+ toggle_deconstruction_item_entity_filter_mode = 257,
1208
+ toggle_deconstruction_item_tile_filter_mode = 258,
1209
+ toggle_driving = 259,
1210
+ toggle_enable_vehicle_logistics_while_moving = 260,
1211
+ toggle_entity_logistic_requests = 261,
1212
+ toggle_equipment_movement_bonus = 262,
1213
+ toggle_map_editor = 263,
1214
+ toggle_personal_logistic_requests = 264,
1215
+ toggle_personal_roboport = 265,
1216
+ toggle_selected_entity = 266,
1217
+ toggle_show_entity_info = 267,
1218
+ translate_string = 268,
1219
+ trash_not_requested_items = 269,
1220
+ undo = 270,
1221
+ upgrade = 271,
1222
+ upgrade_opened_blueprint_by_item = 272,
1223
+ upgrade_opened_blueprint_by_record = 273,
1224
+ use_item = 274,
1225
+ wire_dragging = 275,
1226
+ write_to_console = 276
1224
1227
  }
1225
1228
  enum input_method {
1226
1229
  game_controller = 1,
1227
1230
  keyboard_and_mouse = 0
1228
1231
  }
1229
1232
  enum inventory {
1230
- artillery_turret_ammo = 45,
1231
- artillery_wagon_ammo = 46,
1233
+ agricultural_tower_input = 56,
1234
+ agricultural_tower_output = 57,
1235
+ artillery_turret_ammo = 46,
1236
+ artillery_wagon_ammo = 47,
1232
1237
  /**
1233
1238
  * Used when items are ejected or items held by inserters cannot be inserted due to changing the recipe with the circuit network.
1234
1239
  */
@@ -1240,23 +1245,28 @@ enum inventory {
1240
1245
  * 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.
1241
1246
  */
1242
1247
  assembling_machine_trash = 27,
1243
- beacon_modules = 43,
1248
+ asteroid_collector_output = 63,
1249
+ beacon_modules = 44,
1244
1250
  burnt_result = 1,
1245
- car_ammo = 39,
1246
- car_trash = 40,
1247
- car_trunk = 38,
1248
- cargo_landing_pad_main = 52,
1249
- cargo_landing_pad_trash = 53,
1250
- cargo_unit = 37,
1251
- cargo_wagon = 41,
1251
+ car_ammo = 40,
1252
+ car_trash = 41,
1253
+ car_trunk = 39,
1254
+ cargo_landing_pad_main = 53,
1255
+ cargo_landing_pad_trash = 54,
1256
+ cargo_unit = 38,
1257
+ cargo_wagon = 42,
1252
1258
  character_ammo = 10,
1253
1259
  character_armor = 11,
1254
- character_corpse = 44,
1260
+ character_corpse = 45,
1255
1261
  character_guns = 9,
1256
1262
  character_main = 8,
1257
1263
  character_trash = 13,
1258
1264
  character_vehicle = 12,
1259
1265
  chest = 2,
1266
+ crafter_input = 59,
1267
+ crafter_modules = 61,
1268
+ crafter_output = 60,
1269
+ crafter_trash = 62,
1260
1270
  editor_ammo = 17,
1261
1271
  editor_armor = 18,
1262
1272
  editor_guns = 16,
@@ -1270,27 +1280,29 @@ enum inventory {
1270
1280
  */
1271
1281
  furnace_trash = 7,
1272
1282
  god_main = 14,
1273
- hub_main = 50,
1274
- hub_trash = 51,
1275
- item_main = 31,
1283
+ hub_main = 51,
1284
+ hub_trash = 52,
1285
+ item_main = 32,
1276
1286
  lab_input = 28,
1277
1287
  lab_modules = 29,
1288
+ lab_trash = 30,
1289
+ linked_container_main = 58,
1278
1290
  logistic_container_trash = 3,
1279
- mining_drill_modules = 30,
1280
- proxy_main = 54,
1291
+ mining_drill_modules = 31,
1292
+ proxy_main = 55,
1281
1293
  roboport_material = 20,
1282
1294
  roboport_robot = 19,
1283
1295
  robot_cargo = 21,
1284
1296
  robot_repair = 22,
1285
- rocket_silo_input = 34,
1286
- rocket_silo_modules = 36,
1287
- rocket_silo_output = 35,
1288
- rocket_silo_rocket = 32,
1289
- rocket_silo_trash = 33,
1290
- spider_ammo = 48,
1291
- spider_trash = 49,
1292
- spider_trunk = 47,
1293
- turret_ammo = 42
1297
+ rocket_silo_input = 35,
1298
+ rocket_silo_modules = 37,
1299
+ rocket_silo_output = 36,
1300
+ rocket_silo_rocket = 33,
1301
+ rocket_silo_trash = 34,
1302
+ spider_ammo = 49,
1303
+ spider_trash = 50,
1304
+ spider_trunk = 48,
1305
+ turret_ammo = 43
1294
1306
  }
1295
1307
  enum logistic_member_index {
1296
1308
  car_provider = 10,
@@ -1623,7 +1635,8 @@ namespace prototypes {
1623
1635
  'underground-belt' = 128,
1624
1636
  unit = 129,
1625
1637
  'unit-spawner' = 130,
1626
- wall = 131
1638
+ valve = 131,
1639
+ wall = 132
1627
1640
  }
1628
1641
  enum equipment {
1629
1642
  'active-defense-equipment' = 0,
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.0.47
5
+ // Factorio version 2.0.50
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
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.0.47
5
+ // Factorio version 2.0.50
6
6
  // API version 6
7
7
 
8
8
  /**