|
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 1.1.108 |
| 5 | +// Factorio version 1.1.109 |
6 | 6 | // API version 5
|
7 | 7 |
|
8 | 8 | declare namespace runtime {
|
@@ -140,10 +140,14 @@ interface AttackParameterFluid {
|
140 | 140 | type: string
|
141 | 141 | }
|
142 | 142 |
|
| 143 | +/** |
| 144 | + * |
| 145 | + * Other attributes may be specified depending on `type`: |
| 146 | + */ |
143 | 147 | interface AttackParameters {
|
144 | 148 |
|
145 | 149 | /**
|
146 |
| - * List of the names of compatible |
| 150 | + * List of the names of compatible {@link LuaAmmoCategoryPrototypes | runtime:LuaAmmoCategoryPrototype}. |
147 | 151 | */
|
148 | 152 | ammo_categories?: string[],
|
149 | 153 |
|
@@ -864,18 +868,18 @@ interface DecorativeResult {
|
864 | 868 | interface DifficultySettings {
|
865 | 869 | recipe_difficulty: defines.difficulty_settings.recipe_difficulty
|
866 | 870 |
|
| 871 | + /** |
| 872 | + * Changing this to `"always"` or `"after-victory"` does not automatically unlock the research queue. See {@link LuaForce::research_queue_enabled | runtime:LuaForce::research_queue_enabled} for that. |
| 873 | + */ |
| 874 | + research_queue_setting: 'after-victory' | 'always' | 'never' |
| 875 | + |
867 | 876 | technology_difficulty: defines.difficulty_settings.technology_difficulty
|
868 | 877 |
|
869 | 878 | /**
|
870 | 879 | * A value in range [0.001, 1000].
|
871 | 880 | */
|
872 | 881 | technology_price_multiplier: double
|
873 | 882 |
|
874 |
| - /** |
875 |
| - * Changing this to `"always"` or `"after-victory"` does not automatically unlock the research queue. See {@link LuaForce::research_queue_enabled | runtime:LuaForce::research_queue_enabled} for that. |
876 |
| - */ |
877 |
| - research_queue_setting: 'after-victory' | 'always' | 'never' |
878 |
| - |
879 | 883 | }
|
880 | 884 |
|
881 | 885 | interface DisplayResolution {
|
@@ -1257,79 +1261,79 @@ type ForceIdentification = /* The force index. */ uint8 | /* The force name. */
|
1257 | 1261 | */
|
1258 | 1262 | interface GameViewSettings {
|
1259 | 1263 | /**
|
1260 |
| - * Show the controller GUI elements. This includes the toolbar, the selected tool slot, the armour slot, and the gun and ammunition slots. |
| 1264 | + * Show the flashing alert icons next to the player's toolbar. |
1261 | 1265 | */
|
1262 |
| - show_controller_gui: boolean |
| 1266 | + show_alert_gui: boolean |
1263 | 1267 |
|
1264 | 1268 | /**
|
1265 |
| - * Show the chart in the upper right-hand corner of the screen. |
| 1269 | + * Show the controller GUI elements. This includes the toolbar, the selected tool slot, the armour slot, and the gun and ammunition slots. |
1266 | 1270 | */
|
1267 |
| - show_minimap: boolean |
| 1271 | + show_controller_gui: boolean |
1268 | 1272 |
|
1269 | 1273 | /**
|
1270 |
| - * Show research progress and name in the upper right-hand corner of the screen. |
| 1274 | + * Shows or hides the crafting queue. |
1271 | 1275 | */
|
1272 |
| - show_research_info: boolean |
| 1276 | + show_crafting_queue: boolean |
1273 | 1277 |
|
1274 | 1278 | /**
|
1275 | 1279 | * Show overlay icons on entities. Also known as "alt-mode".
|
1276 | 1280 | */
|
1277 | 1281 | show_entity_info: boolean
|
1278 | 1282 |
|
1279 | 1283 | /**
|
1280 |
| - * Show the flashing alert icons next to the player's toolbar. |
| 1284 | + * Shows or hides the tooltip that is displayed when selecting an entity. |
1281 | 1285 | */
|
1282 |
| - show_alert_gui: boolean |
| 1286 | + show_entity_tooltip: boolean |
1283 | 1287 |
|
1284 | 1288 | /**
|
1285 |
| - * When `true` (the default), mousing over an entity will select it. Otherwise, moving the mouse won't update entity selection. |
| 1289 | + * Shows or hides the mouse and keyboard/controller button hints in the bottom left corner if they are enabled in the interface settings. |
1286 | 1290 | */
|
1287 |
| - update_entity_selection: boolean |
| 1291 | + show_hotkey_suggestions: boolean |
1288 | 1292 |
|
1289 | 1293 | /**
|
1290 |
| - * When `true` (`false` is default), the rails will always show the rail block visualisation. |
| 1294 | + * Shows or hides the view options when map is opened. |
1291 | 1295 | */
|
1292 |
| - show_rail_block_visualisation: boolean |
| 1296 | + show_map_view_options: boolean |
1293 | 1297 |
|
1294 | 1298 | /**
|
1295 |
| - * Shows or hides the buttons row. |
| 1299 | + * Show the chart in the upper right-hand corner of the screen. |
1296 | 1300 | */
|
1297 |
| - show_side_menu: boolean |
| 1301 | + show_minimap: boolean |
1298 | 1302 |
|
1299 | 1303 | /**
|
1300 |
| - * Shows or hides the view options when map is opened. |
| 1304 | + * Shows or hides quickbar of shortcuts. |
1301 | 1305 | */
|
1302 |
| - show_map_view_options: boolean |
| 1306 | + show_quickbar: boolean |
1303 | 1307 |
|
1304 | 1308 | /**
|
1305 |
| - * Shows or hides the tooltip that is displayed when selecting an entity. |
| 1309 | + * When `true` (`false` is default), the rails will always show the rail block visualisation. |
1306 | 1310 | */
|
1307 |
| - show_entity_tooltip: boolean |
| 1311 | + show_rail_block_visualisation: boolean |
1308 | 1312 |
|
1309 | 1313 | /**
|
1310 |
| - * Shows or hides quickbar of shortcuts. |
| 1314 | + * Show research progress and name in the upper right-hand corner of the screen. |
1311 | 1315 | */
|
1312 |
| - show_quickbar: boolean |
| 1316 | + show_research_info: boolean |
1313 | 1317 |
|
1314 | 1318 | /**
|
1315 | 1319 | * Shows or hides the shortcut bar.
|
1316 | 1320 | */
|
1317 | 1321 | show_shortcut_bar: boolean
|
1318 | 1322 |
|
1319 | 1323 | /**
|
1320 |
| - * Shows or hides the crafting queue. |
| 1324 | + * Shows or hides the buttons row. |
1321 | 1325 | */
|
1322 |
| - show_crafting_queue: boolean |
| 1326 | + show_side_menu: boolean |
1323 | 1327 |
|
1324 | 1328 | /**
|
1325 | 1329 | * Shows or hides the tool window with the weapons and armor.
|
1326 | 1330 | */
|
1327 | 1331 | show_tool_bar: boolean
|
1328 | 1332 |
|
1329 | 1333 | /**
|
1330 |
| - * Shows or hides the mouse and keyboard/controller button hints in the bottom left corner if they are enabled in the interface settings. |
| 1334 | + * When `true` (the default), mousing over an entity will select it. Otherwise, moving the mouse won't update entity selection. |
1331 | 1335 | */
|
1332 |
| - show_hotkey_suggestions: boolean |
| 1336 | + update_entity_selection: boolean |
1333 | 1337 |
|
1334 | 1338 | }
|
1335 | 1339 |
|
@@ -2408,23 +2412,23 @@ type MapPosition = {
|
2408 | 2412 | *
|
2409 | 2413 | */
|
2410 | 2414 | interface MapSettings {
|
2411 |
| - pollution: PollutionMapSettings |
2412 |
| - |
2413 | 2415 | enemy_evolution: EnemyEvolutionMapSettings
|
2414 | 2416 |
|
2415 | 2417 | enemy_expansion: EnemyExpansionMapSettings
|
2416 | 2418 |
|
2417 |
| - unit_group: UnitGroupMapSettings |
2418 |
| - |
2419 |
| - steering: SteeringMapSetting |
2420 |
| - |
2421 |
| - path_finder: PathFinderMapSettings |
2422 |
| - |
2423 | 2419 | /**
|
2424 | 2420 | * If a behavior fails this many times, the enemy (or enemy group) is destroyed. This solves biters getting stuck within their own base.
|
2425 | 2421 | */
|
2426 | 2422 | max_failed_behavior_count: uint
|
2427 | 2423 |
|
| 2424 | + path_finder: PathFinderMapSettings |
| 2425 | + |
| 2426 | + pollution: PollutionMapSettings |
| 2427 | + |
| 2428 | + steering: SteeringMapSetting |
| 2429 | + |
| 2430 | + unit_group: UnitGroupMapSettings |
| 2431 | + |
2428 | 2432 | }
|
2429 | 2433 |
|
2430 | 2434 | /**
|
@@ -3907,6 +3911,28 @@ interface AchievementPrototypeFilterType extends AchievementPrototypeFilter {
|
3907 | 3911 | type: string | string[]
|
3908 | 3912 | }
|
3909 | 3913 |
|
| 3914 | +/** |
| 3915 | + * Applies to `projectile` variant case |
| 3916 | + */ |
| 3917 | +interface AttackParametersProjectile extends AttackParameters { |
| 3918 | + projectile_center: Vector, |
| 3919 | + projectile_creation_distance: float, |
| 3920 | + projectile_creation_parameters?: CircularProjectileCreationSpecification[], |
| 3921 | + projectile_orientation_offset: float, |
| 3922 | + shell_particle?: CircularParticleCreationSpecification |
| 3923 | +} |
| 3924 | + |
| 3925 | +/** |
| 3926 | + * Applies to `stream` variant case |
| 3927 | + */ |
| 3928 | +interface AttackParametersStream extends AttackParameters { |
| 3929 | + fluid_consumption: float, |
| 3930 | + fluids?: AttackParameterFluid[], |
| 3931 | + gun_barrel_length: float, |
| 3932 | + gun_center_shift: GunShift4Way, |
| 3933 | + projectile_creation_parameters?: CircularProjectileCreationSpecification[] |
| 3934 | +} |
| 3935 | + |
3910 | 3936 | /**
|
3911 | 3937 | * Applies to `artillery-remote` variant case
|
3912 | 3938 | */
|
|
0 commit comments