factorio-types 1.2.72 → 1.2.74
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 +116 -32
- package/dist/concepts.d.ts +33 -19
- package/dist/datacollection.d.ts +1 -1
- package/dist/defines.d.ts +195 -194
- package/dist/events.d.ts +9 -1
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +54 -11
- package/dist/types.d.ts +60 -42
- package/package.json +2 -2
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.
|
|
5
|
+
// Factorio version 2.1.25
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
|
@@ -1135,199 +1135,200 @@ enum input_action {
|
|
|
1135
1135
|
fast_entity_transfer = 100,
|
|
1136
1136
|
flip_entity = 101,
|
|
1137
1137
|
flush_opened_entity_fluid = 102,
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1138
|
+
flush_opened_entity_fluid_system = 103,
|
|
1139
|
+
flush_opened_entity_specific_fluid = 104,
|
|
1140
|
+
go_to_train_station = 105,
|
|
1141
|
+
grab_blueprint_record = 106,
|
|
1142
|
+
gui_checked_state_changed = 107,
|
|
1143
|
+
gui_click = 108,
|
|
1144
|
+
gui_confirmed = 109,
|
|
1145
|
+
gui_elem_changed = 110,
|
|
1146
|
+
gui_hover = 111,
|
|
1147
|
+
gui_inventory_action = 112,
|
|
1148
|
+
gui_inventory_bar_changed = 113,
|
|
1149
|
+
gui_inventory_filter_changed = 114,
|
|
1150
|
+
gui_leave = 115,
|
|
1151
|
+
gui_location_changed = 116,
|
|
1152
|
+
gui_selected_tab_changed = 117,
|
|
1153
|
+
gui_selection_state_changed = 118,
|
|
1154
|
+
gui_switch_state_changed = 119,
|
|
1155
|
+
gui_text_changed = 120,
|
|
1156
|
+
gui_value_changed = 121,
|
|
1157
|
+
import_blueprint = 122,
|
|
1158
|
+
import_blueprint_string = 123,
|
|
1159
|
+
import_blueprints_filtered = 124,
|
|
1160
|
+
import_permissions_string = 125,
|
|
1161
|
+
instantly_create_space_platform = 126,
|
|
1162
|
+
inventory_split = 127,
|
|
1163
|
+
inventory_transfer = 128,
|
|
1164
|
+
land_at_planet = 129,
|
|
1165
|
+
launch_rocket = 130,
|
|
1166
|
+
lua_shortcut = 131,
|
|
1167
|
+
map_editor_action = 132,
|
|
1168
|
+
market_offer = 133,
|
|
1169
|
+
mod_settings_changed = 134,
|
|
1170
|
+
modify_decider_combinator_condition = 135,
|
|
1171
|
+
modify_decider_combinator_else_output = 136,
|
|
1172
|
+
modify_decider_combinator_output = 137,
|
|
1173
|
+
move_pin = 138,
|
|
1174
|
+
move_research = 139,
|
|
1175
|
+
open_achievements_gui = 140,
|
|
1176
|
+
open_alerts_config_gui = 141,
|
|
1177
|
+
open_blueprint_library_gui = 142,
|
|
1178
|
+
open_blueprint_record = 143,
|
|
1179
|
+
open_bonus_gui = 144,
|
|
1180
|
+
open_character_gui = 145,
|
|
1181
|
+
open_current_vehicle_gui = 146,
|
|
1182
|
+
open_equipment = 147,
|
|
1183
|
+
open_global_electric_network_gui = 148,
|
|
1184
|
+
open_gui = 149,
|
|
1185
|
+
open_item = 150,
|
|
1186
|
+
open_logistics_gui = 151,
|
|
1187
|
+
open_mod_item = 152,
|
|
1188
|
+
open_new_platform_button_from_rocket_silo = 153,
|
|
1189
|
+
open_opened_entity_grid = 154,
|
|
1190
|
+
open_parent_of_opened_item = 155,
|
|
1191
|
+
open_production_gui = 156,
|
|
1192
|
+
open_train_gui = 157,
|
|
1193
|
+
open_train_station_gui = 158,
|
|
1194
|
+
open_trains_gui = 159,
|
|
1195
|
+
parametrise_blueprint = 160,
|
|
1196
|
+
paste_entity_settings = 161,
|
|
1197
|
+
pin_alert_group = 162,
|
|
1198
|
+
pin_custom_alert = 163,
|
|
1199
|
+
pin_search_result = 164,
|
|
1200
|
+
pipette = 165,
|
|
1201
|
+
place_equipment = 166,
|
|
1202
|
+
providing_to_other_platforms = 167,
|
|
1203
|
+
quick_bar_pick_slot = 168,
|
|
1204
|
+
quick_bar_set_selected_page = 169,
|
|
1205
|
+
quick_bar_set_slot = 170,
|
|
1206
|
+
reassign_blueprint = 171,
|
|
1207
|
+
redo = 172,
|
|
1208
|
+
remote_view_entity = 173,
|
|
1209
|
+
remote_view_surface = 174,
|
|
1210
|
+
remove_cables = 175,
|
|
1211
|
+
remove_decider_combinator_condition = 176,
|
|
1212
|
+
remove_decider_combinator_else_output = 177,
|
|
1213
|
+
remove_decider_combinator_output = 178,
|
|
1214
|
+
remove_logistic_section = 179,
|
|
1215
|
+
remove_pin = 180,
|
|
1216
|
+
remove_train_interrupt = 181,
|
|
1217
|
+
remove_train_station = 182,
|
|
1218
|
+
rename_interrupt = 183,
|
|
1219
|
+
rename_space_platform = 184,
|
|
1220
|
+
reorder_logistic_section = 185,
|
|
1221
|
+
request_missing_construction_materials = 186,
|
|
1222
|
+
reset_assembling_machine = 187,
|
|
1223
|
+
rotate_entity = 188,
|
|
1224
|
+
select_area = 189,
|
|
1225
|
+
select_asteroid_chunk_slot = 190,
|
|
1226
|
+
select_blueprint_entities = 191,
|
|
1227
|
+
select_entity_filter_slot = 192,
|
|
1228
|
+
select_entity_slot = 193,
|
|
1229
|
+
select_item_filter = 194,
|
|
1230
|
+
select_mapper_slot_from = 195,
|
|
1231
|
+
select_mapper_slot_to = 196,
|
|
1232
|
+
select_next_valid_gun = 197,
|
|
1233
|
+
select_tile_slot = 198,
|
|
1234
|
+
send_spidertron = 199,
|
|
1235
|
+
send_stack_to_trash = 200,
|
|
1236
|
+
send_stacks_to_trash = 201,
|
|
1237
|
+
send_train_to_pin_target = 202,
|
|
1238
|
+
set_behavior_mode = 203,
|
|
1239
|
+
set_car_weapons_control = 204,
|
|
1240
|
+
set_cheat_mode_quality = 205,
|
|
1241
|
+
set_circuit_condition = 206,
|
|
1242
|
+
set_circuit_mode_of_operation = 207,
|
|
1243
|
+
set_combinator_description = 208,
|
|
1244
|
+
set_control_behavior_input_networks = 209,
|
|
1245
|
+
set_control_behavior_output_networks = 210,
|
|
1246
|
+
set_copy_color_from_train_stop = 211,
|
|
1247
|
+
set_deconstruction_item_tile_selection_mode = 212,
|
|
1248
|
+
set_deconstruction_item_trees_and_rocks_only = 213,
|
|
1249
|
+
set_entity_color = 214,
|
|
1250
|
+
set_entity_energy_property = 215,
|
|
1251
|
+
set_equipment_energy_property = 216,
|
|
1252
|
+
set_filter = 217,
|
|
1253
|
+
set_ghost_cursor = 218,
|
|
1254
|
+
set_heat_interface_mode = 219,
|
|
1255
|
+
set_heat_interface_temperature = 220,
|
|
1256
|
+
set_infinity_container_filter_item = 221,
|
|
1257
|
+
set_infinity_container_logistic_mode = 222,
|
|
1258
|
+
set_infinity_container_remove_unfiltered_items = 223,
|
|
1259
|
+
set_infinity_pipe_filter = 224,
|
|
1260
|
+
set_inserter_max_stack_size = 225,
|
|
1261
|
+
set_inventory_bar = 226,
|
|
1262
|
+
set_lamp_always_on = 227,
|
|
1263
|
+
set_linked_container_link_i_d = 228,
|
|
1264
|
+
set_loader_belt_stack_size_override = 229,
|
|
1265
|
+
set_logistic_filter_item = 230,
|
|
1266
|
+
set_logistic_network_name = 231,
|
|
1267
|
+
set_logistic_section_active = 232,
|
|
1268
|
+
set_player_color = 233,
|
|
1269
|
+
set_pump_fluid_filter = 234,
|
|
1270
|
+
set_request_from_buffers = 235,
|
|
1271
|
+
set_research_finished_stops_game = 236,
|
|
1272
|
+
set_rocket_silo_send_to_orbit_automated_mode = 237,
|
|
1273
|
+
set_schedule_record_allow_unloading = 238,
|
|
1274
|
+
set_signal = 239,
|
|
1275
|
+
set_splitter_priority = 240,
|
|
1276
|
+
set_spoil_priority = 241,
|
|
1277
|
+
set_train_stop_priority = 242,
|
|
1278
|
+
set_train_stopped = 243,
|
|
1279
|
+
set_trains_limit = 244,
|
|
1280
|
+
set_turret_ignore_unlisted = 245,
|
|
1281
|
+
set_use_inserter_filters = 246,
|
|
1282
|
+
set_vehicle_automatic_targeting_parameters = 247,
|
|
1283
|
+
setup_assembling_machine = 248,
|
|
1284
|
+
setup_blueprint = 249,
|
|
1285
|
+
setup_single_blueprint_record = 250,
|
|
1286
|
+
spawn_item = 251,
|
|
1287
|
+
spectator_change_surface = 252,
|
|
1288
|
+
stack_split = 253,
|
|
1289
|
+
stack_transfer = 254,
|
|
1290
|
+
start_repair = 255,
|
|
1291
|
+
start_research = 256,
|
|
1292
|
+
start_select_area = 257,
|
|
1293
|
+
start_walking = 258,
|
|
1294
|
+
stop_drag_build = 259,
|
|
1295
|
+
swap_asteroid_chunk_slots = 260,
|
|
1296
|
+
swap_entity_filter_slots = 261,
|
|
1297
|
+
swap_entity_slots = 262,
|
|
1298
|
+
swap_infinity_container_filter_items = 263,
|
|
1299
|
+
swap_item_filters = 264,
|
|
1300
|
+
swap_logistic_filter_items = 265,
|
|
1301
|
+
swap_mappers = 266,
|
|
1302
|
+
swap_tile_slots = 267,
|
|
1303
|
+
switch_connect_to_logistic_network = 268,
|
|
1304
|
+
switch_constant_combinator_state = 269,
|
|
1305
|
+
switch_inserter_filter_mode_state = 270,
|
|
1306
|
+
switch_loader_filter_mode = 271,
|
|
1307
|
+
switch_mining_drill_filter_mode_state = 272,
|
|
1308
|
+
switch_power_switch_state = 273,
|
|
1309
|
+
take_equipment = 274,
|
|
1310
|
+
toggle_artillery_auto_targeting = 275,
|
|
1311
|
+
toggle_blueprint_snap_to_grid = 276,
|
|
1312
|
+
toggle_deconstruction_item_entity_filter_mode = 277,
|
|
1313
|
+
toggle_deconstruction_item_tile_filter_mode = 278,
|
|
1314
|
+
toggle_driving = 279,
|
|
1315
|
+
toggle_enable_vehicle_logistics_while_moving = 280,
|
|
1316
|
+
toggle_entity_logistic_requests = 281,
|
|
1317
|
+
toggle_equipment_movement_bonus = 282,
|
|
1318
|
+
toggle_map_editor = 283,
|
|
1319
|
+
toggle_personal_logistic_requests = 284,
|
|
1320
|
+
toggle_personal_roboport = 285,
|
|
1321
|
+
toggle_selected_entity = 286,
|
|
1322
|
+
toggle_show_entity_info = 287,
|
|
1323
|
+
toggle_tall_entity_visibility = 288,
|
|
1324
|
+
trash_not_requested_items = 289,
|
|
1325
|
+
undo = 290,
|
|
1326
|
+
upgrade = 291,
|
|
1327
|
+
upgrade_opened_blueprint_by_item = 292,
|
|
1328
|
+
upgrade_opened_blueprint_by_record = 293,
|
|
1329
|
+
use_item = 294,
|
|
1330
|
+
wire_dragging = 295,
|
|
1331
|
+
write_to_console = 296
|
|
1331
1332
|
}
|
|
1332
1333
|
enum input_method {
|
|
1333
1334
|
game_controller = 1,
|
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.
|
|
5
|
+
// Factorio version 2.1.25
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -1176,6 +1176,10 @@ interface on_gui_closed {
|
|
|
1176
1176
|
* The player closing the GUI.
|
|
1177
1177
|
*/
|
|
1178
1178
|
player_index: uint32;
|
|
1179
|
+
/**
|
|
1180
|
+
* Blueprint record that was closed.
|
|
1181
|
+
*/
|
|
1182
|
+
record?: LuaRecord;
|
|
1179
1183
|
/**
|
|
1180
1184
|
* The surface index of the global electric network whose GUI was closed.
|
|
1181
1185
|
*/
|
|
@@ -1407,6 +1411,10 @@ interface on_gui_opened {
|
|
|
1407
1411
|
* The player opening the GUI.
|
|
1408
1412
|
*/
|
|
1409
1413
|
player_index: uint32;
|
|
1414
|
+
/**
|
|
1415
|
+
* Blueprint record that was opened.
|
|
1416
|
+
*/
|
|
1417
|
+
record?: LuaRecord;
|
|
1410
1418
|
/**
|
|
1411
1419
|
* The surface index of the global electric network whose GUI was opened.
|
|
1412
1420
|
*/
|
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.
|
|
5
|
+
// Factorio version 2.1.25
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/prototypes.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.
|
|
5
|
+
// Factorio version 2.1.25
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -1242,6 +1242,10 @@ interface BlueprintItemPrototype extends SelectionToolPrototype {
|
|
|
1242
1242
|
* Tints of the building preview when this blueprint is held in the cursor. Every property is optional here, any that are not given use the color from {@link UtilityConstants::build_preview_tints | prototype:UtilityConstants::build_preview_tints}.
|
|
1243
1243
|
*/
|
|
1244
1244
|
build_preview_tints?: BuildPreviewTints;
|
|
1245
|
+
/**
|
|
1246
|
+
* Whether the {@link collision indicators | prototype:UtilitySprites::buildability_collision} are drawn over entities that collide with the building preview when this blueprint is held in the cursor.
|
|
1247
|
+
*/
|
|
1248
|
+
draw_collision_indicators?: boolean;
|
|
1245
1249
|
/**
|
|
1246
1250
|
* Whether the item will draw its label when held in the cursor in place of the item count.
|
|
1247
1251
|
*/
|
|
@@ -1299,7 +1303,7 @@ interface BoilerPrototype extends EntityWithOwnerPrototype {
|
|
|
1299
1303
|
*/
|
|
1300
1304
|
fluid_box: FluidBox;
|
|
1301
1305
|
/**
|
|
1302
|
-
* If specified, an input fluid above this temperature will cause the boiler to stop working.
|
|
1306
|
+
* If specified, an input fluid above this temperature will cause the boiler to stop working. This can be lower than the `target_temperature` for heating the fluid.
|
|
1303
1307
|
*/
|
|
1304
1308
|
maximum_input_temperature?: float;
|
|
1305
1309
|
/**
|
|
@@ -1555,6 +1559,11 @@ interface CargoLandingPadPrototype extends EntityWithOwnerPrototype {
|
|
|
1555
1559
|
robot_door?: RobotDoorSpecification;
|
|
1556
1560
|
trash_inventory_size?: ItemStackIndex;
|
|
1557
1561
|
}
|
|
1562
|
+
/**
|
|
1563
|
+
* Entity used to send cargo between the {@link cargo hatches | prototype:CargoHatchDefinition} of {@link cargo landing pads | prototype:CargoLandingPadPrototype}, {@link space platform hubs | prototype:SpacePlatformHubPrototype}, {@link cargo bays | prototype:CargoBayPrototype} and {@link rocket silos | prototype:RocketSiloPrototype}.
|
|
1564
|
+
*
|
|
1565
|
+
* The pod for sending cargo is determined by {@link CargoHatchDefinition::cargo_unit_entity_to_spawn | prototype:CargoHatchDefinition::cargo_unit_entity_to_spawn}. A cargo pod will only be sent to a destination if {@link receiving_cargo_units | prototype:CargoHatchDefinition::receiving_cargo_units} of the destination hatch contains the cargo pod.
|
|
1566
|
+
*/
|
|
1558
1567
|
interface CargoPodPrototype extends EntityWithOwnerPrototype {
|
|
1559
1568
|
/**
|
|
1560
1569
|
* Has to be of type 'pod-catalogue'.
|
|
@@ -1565,6 +1574,9 @@ interface CargoPodPrototype extends EntityWithOwnerPrototype {
|
|
|
1565
1574
|
*/
|
|
1566
1575
|
default_shadow_graphic?: ProcessionGraphic;
|
|
1567
1576
|
impact_trigger?: Trigger;
|
|
1577
|
+
/**
|
|
1578
|
+
* The amount of item stacks that this cargo pod can transport.
|
|
1579
|
+
*/
|
|
1568
1580
|
inventory_size: ItemStackIndex;
|
|
1569
1581
|
procession_audio_catalogue?: ProcessionAudioCatalogue;
|
|
1570
1582
|
procession_graphic_catalogue?: ProcessionGraphicCatalogue;
|
|
@@ -1575,6 +1587,9 @@ interface CargoPodPrototype extends EntityWithOwnerPrototype {
|
|
|
1575
1587
|
*/
|
|
1576
1588
|
selection_priority?: uint8;
|
|
1577
1589
|
shadow_slave_entity?: EntityID;
|
|
1590
|
+
/**
|
|
1591
|
+
* The entity that is created if this cargo pod lands on the ground instead of in a cargo hatch. The transported items will be transferred into the spawned entity.
|
|
1592
|
+
*/
|
|
1578
1593
|
spawned_container: EntityID;
|
|
1579
1594
|
}
|
|
1580
1595
|
/**
|
|
@@ -2300,6 +2315,8 @@ interface CurvedRailBPrototype extends RailPrototype {
|
|
|
2300
2315
|
collision_box?: BoundingBox;
|
|
2301
2316
|
}
|
|
2302
2317
|
/**
|
|
2318
|
+
* Defines a custom event with an unique name. During runtime, mods can use the event name to {@link raise | runtime:LuaBootstrap::raise_event} and {@link subscribe to | runtime:LuaBootstrap::on_event} the custom event.
|
|
2319
|
+
*
|
|
2303
2320
|
* Custom events share the same namespace as custom inputs and built-in events for subscribing to and raising them.
|
|
2304
2321
|
* @example ```
|
|
2305
2322
|
{
|
|
@@ -2312,6 +2329,8 @@ interface CustomEventPrototype extends Prototype {
|
|
|
2312
2329
|
}
|
|
2313
2330
|
/**
|
|
2314
2331
|
* Used for custom keyboard shortcuts/key bindings in mods. The key associated with the custom input can be changed in the options. This means that `key_sequence` is simply the default key binding.
|
|
2332
|
+
*
|
|
2333
|
+
* Custom inputs share the same namespace as custom events and built-in events for subscribing to and raising them.
|
|
2315
2334
|
*/
|
|
2316
2335
|
interface CustomInputPrototype extends Prototype {
|
|
2317
2336
|
/**
|
|
@@ -4708,7 +4727,7 @@ interface GeneratorPrototype extends EntityWithOwnerPrototype {
|
|
|
4708
4727
|
/**
|
|
4709
4728
|
* Scales the generator's fluid usage to its maximum power output.
|
|
4710
4729
|
*
|
|
4711
|
-
* Setting this to true prevents the generator from overconsuming fluid, for example when higher than`maximum_temperature` fluid is fed to the generator.
|
|
4730
|
+
* Setting this to `true` prevents the generator from overconsuming fluid, for example when higher than `maximum_temperature` fluid is fed to the generator.
|
|
4712
4731
|
*
|
|
4713
4732
|
* If scale_fluid_usage is false, the generator consumes the full `fluid_usage_per_tick` and any of the extra energy in the fluid (in the form of higher temperature) is wasted. The {@link steam engine | https://wiki.factorio.com/Steam_engine} exhibits this behavior when fed steam from {@link heat exchangers | https://wiki.factorio.com/Heat_exchanger}.
|
|
4714
4733
|
*/
|
|
@@ -6618,16 +6637,18 @@ interface ParticleSourcePrototype extends EntityPrototype {
|
|
|
6618
6637
|
* An entity to transport fluids over a distance and between machines.
|
|
6619
6638
|
*/
|
|
6620
6639
|
interface PipePrototype extends EntityWithOwnerPrototype {
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
CircuitConnectorDefinition
|
|
6626
|
-
];
|
|
6640
|
+
/**
|
|
6641
|
+
* If given, there must be exactly 16 elements in the table.
|
|
6642
|
+
*/
|
|
6643
|
+
circuit_connector?: CircuitConnectorDefinition[];
|
|
6627
6644
|
circuit_wire_max_distance?: double;
|
|
6628
6645
|
default_fluid_temperature_signal?: SignalIDConnector;
|
|
6629
6646
|
draw_circuit_wires?: boolean;
|
|
6630
6647
|
draw_copper_wires?: boolean;
|
|
6648
|
+
/**
|
|
6649
|
+
* When this is `false`, pipe will never attempt drawing window.
|
|
6650
|
+
*/
|
|
6651
|
+
draw_window?: boolean;
|
|
6631
6652
|
/**
|
|
6632
6653
|
* The area of the entity where fluid/gas inputs, and outputs.
|
|
6633
6654
|
*/
|
|
@@ -6637,6 +6658,10 @@ interface PipePrototype extends EntityWithOwnerPrototype {
|
|
|
6637
6658
|
* All graphics for this pipe.
|
|
6638
6659
|
*/
|
|
6639
6660
|
pictures?: PipePictures;
|
|
6661
|
+
/**
|
|
6662
|
+
* Whether a random graphics variation is chosen when placing the entity/creating it via script/creating it via map generation. If this is `false`, the entity will use the first variation instead of a random one.
|
|
6663
|
+
*/
|
|
6664
|
+
random_variation_on_create?: boolean;
|
|
6640
6665
|
/**
|
|
6641
6666
|
* When this is true, fluid pipelines will be visualized when this entity is held in the cursor.
|
|
6642
6667
|
*/
|
|
@@ -7859,6 +7884,11 @@ interface RecipePrototype extends Prototype {
|
|
|
7859
7884
|
* This property is not read by the game engine itself, but the recycler mod's recycling.lua file. This means it is discarded by the game engine after loading finishes.
|
|
7860
7885
|
*/
|
|
7861
7886
|
recycle_to_ingredients_of?: RecipeID;
|
|
7887
|
+
/**
|
|
7888
|
+
* The multiplier used when this recipe is copied from an {@link assembling machine | prototype:AssemblingMachinePrototype} to a {@link requester chest | prototype:LogisticContainerPrototype} or {@link infinity chest | prototype:InfinityContainerPrototype}.
|
|
7889
|
+
*
|
|
7890
|
+
* For each item ingredient the `ingredient_amount * requester_paste_multiplier * machine_crafting_speed / energy_required` is set as a request for that item in the chest. The request is clamped to always be for at least `ingredient_amount` items.
|
|
7891
|
+
*/
|
|
7862
7892
|
requester_paste_multiplier?: uint32;
|
|
7863
7893
|
/**
|
|
7864
7894
|
* Whether enabling this recipe requires the ingredients be unlocked before the products are marked as unlocked.
|
|
@@ -8840,7 +8870,7 @@ interface SelectionToolPrototype extends ItemWithLabelPrototype {
|
|
|
8840
8870
|
reverse_select?: SelectionModeData;
|
|
8841
8871
|
select: SelectionModeData;
|
|
8842
8872
|
/**
|
|
8843
|
-
* If true, the selection tool will send pre-selection events to mods {@link defines.events.
|
|
8873
|
+
* If true, the selection tool will send pre-selection events to mods {@link defines.events.on_player_start_selected_area | runtime:defines.events.on_player_start_selected_area}, {@link defines.events.on_player_change_selected_area | runtime:defines.events.on_player_change_selected_area}, and {@link defines.events.on_player_cancel_selected_area | runtime:defines.events.on_player_cancel_selected_area}. Off by default because it will incur a performance penalty in multiplayer. It should only be enabled if a mod specifically needs it.
|
|
8844
8874
|
*/
|
|
8845
8875
|
send_pre_selection_events?: boolean;
|
|
8846
8876
|
skip_fog_of_war?: boolean;
|
|
@@ -8901,7 +8931,7 @@ interface ShortcutPrototype extends Prototype {
|
|
|
8901
8931
|
/**
|
|
8902
8932
|
* If this is `"lua"`, {@link on_lua_shortcut | runtime:on_lua_shortcut} is raised when the shortcut is clicked.
|
|
8903
8933
|
*/
|
|
8904
|
-
action: 'toggle-alt-mode' | 'undo' | 'redo' | 'paste' | 'import-string' | 'toggle-personal-roboport' | 'toggle-personal-logistic-requests' | 'toggle-equipment-movement-bonus' | 'spawn-item' | 'lua';
|
|
8934
|
+
action: 'toggle-alt-mode' | 'undo' | 'redo' | 'paste' | 'import-string' | 'toggle-personal-roboport' | 'toggle-personal-logistic-requests' | 'toggle-equipment-movement-bonus' | 'toggle-tall-entity-visibility' | 'spawn-item' | 'lua';
|
|
8905
8935
|
/**
|
|
8906
8936
|
* Name of a custom input or vanilla control. This is **only** used to show the keybind in the tooltip of the shortcut.
|
|
8907
8937
|
*/
|
|
@@ -9630,6 +9660,16 @@ interface SplitterPrototype extends TransportBeltConnectablePrototype {
|
|
|
9630
9660
|
default_output_right_condition?: CircuitConditionConnector;
|
|
9631
9661
|
draw_circuit_wires?: boolean;
|
|
9632
9662
|
draw_copper_wires?: boolean;
|
|
9663
|
+
/**
|
|
9664
|
+
* When set to true, right lane of left input belt is swapped with left lane of right input belt. This can be used to create a splitter which spreads both lanes of left input belt onto left lanes of both outputs, and both lanes of right input belt onto right lanes of both outputs.
|
|
9665
|
+
*/
|
|
9666
|
+
exchange_input_lines?: boolean;
|
|
9667
|
+
/**
|
|
9668
|
+
* When set to true, right lane of left output belt is swapped with left lane of right output belt. This can be used to create a splitter which combines left lanes of both input lanes into left output belt and right lanes of both input lanes into right output belt.
|
|
9669
|
+
*
|
|
9670
|
+
* When this option is used, a {@link IconDrawSpecification::scale_for_many | prototype:IconDrawSpecification::scale_for_many} inside of {@link EntityPrototype::icon_draw_specification | prototype:EntityPrototype::icon_draw_specification} will need to be provided in case a filter is to be drawn as it will be rendered on respective sides of both output belts. Suggested value is `0.35`.
|
|
9671
|
+
*/
|
|
9672
|
+
exchange_output_lines?: boolean;
|
|
9633
9673
|
frozen_patch?: Sprite4Way;
|
|
9634
9674
|
/**
|
|
9635
9675
|
* The name of the {@link TransportBeltPrototype | prototype:TransportBeltPrototype} which is used for the sound of the underlying belt.
|
|
@@ -10870,6 +10910,9 @@ interface UndergroundBeltPrototype extends TransportBeltConnectablePrototype {
|
|
|
10870
10910
|
max_distance_tint?: Color;
|
|
10871
10911
|
max_distance_underground_remove_belts_sprite?: Sprite;
|
|
10872
10912
|
structure?: UndergroundBeltStructure;
|
|
10913
|
+
/**
|
|
10914
|
+
* The underground connection may be defined as colliding with tiles in which case if any colliding tile is placed between underground ends the connection will not be established.
|
|
10915
|
+
*/
|
|
10873
10916
|
underground_collision_mask?: CollisionMaskConnector;
|
|
10874
10917
|
underground_remove_belts_sprite?: Sprite;
|
|
10875
10918
|
underground_sprite?: Sprite;
|