Skip to content

Commit bdcb1d4

Browse files
committed
Factorio API version 1.1.109
1 parent 2d61c32 commit bdcb1d4

File tree

8 files changed

+523
-495
lines changed

8 files changed

+523
-495
lines changed

dist/classes.d.ts

Lines changed: 377 additions & 375 deletions
Large diffs are not rendered by default.

dist/concepts.d.ts

Lines changed: 65 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Factorio API reference https://lua-api.factorio.com/latest/index.html
33
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
44
// Definition source https://github.com/sguest/factorio-types
5-
// Factorio version 1.1.108
5+
// Factorio version 1.1.109
66
// API version 5
77

88
declare namespace runtime {
@@ -140,10 +140,14 @@ interface AttackParameterFluid {
140140
type: string
141141
}
142142

143+
/**
144+
*
145+
* Other attributes may be specified depending on `type`:
146+
*/
143147
interface AttackParameters {
144148

145149
/**
146-
* List of the names of compatible
150+
* List of the names of compatible {@link LuaAmmoCategoryPrototypes | runtime:LuaAmmoCategoryPrototype}.
147151
*/
148152
ammo_categories?: string[],
149153

@@ -864,18 +868,18 @@ interface DecorativeResult {
864868
interface DifficultySettings {
865869
recipe_difficulty: defines.difficulty_settings.recipe_difficulty
866870

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+
867876
technology_difficulty: defines.difficulty_settings.technology_difficulty
868877

869878
/**
870879
* A value in range [0.001, 1000].
871880
*/
872881
technology_price_multiplier: double
873882

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-
879883
}
880884

881885
interface DisplayResolution {
@@ -1257,79 +1261,79 @@ type ForceIdentification = /* The force index. */ uint8 | /* The force name. */
12571261
*/
12581262
interface GameViewSettings {
12591263
/**
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.
12611265
*/
1262-
show_controller_gui: boolean
1266+
show_alert_gui: boolean
12631267

12641268
/**
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.
12661270
*/
1267-
show_minimap: boolean
1271+
show_controller_gui: boolean
12681272

12691273
/**
1270-
* Show research progress and name in the upper right-hand corner of the screen.
1274+
* Shows or hides the crafting queue.
12711275
*/
1272-
show_research_info: boolean
1276+
show_crafting_queue: boolean
12731277

12741278
/**
12751279
* Show overlay icons on entities. Also known as "alt-mode".
12761280
*/
12771281
show_entity_info: boolean
12781282

12791283
/**
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.
12811285
*/
1282-
show_alert_gui: boolean
1286+
show_entity_tooltip: boolean
12831287

12841288
/**
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.
12861290
*/
1287-
update_entity_selection: boolean
1291+
show_hotkey_suggestions: boolean
12881292

12891293
/**
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.
12911295
*/
1292-
show_rail_block_visualisation: boolean
1296+
show_map_view_options: boolean
12931297

12941298
/**
1295-
* Shows or hides the buttons row.
1299+
* Show the chart in the upper right-hand corner of the screen.
12961300
*/
1297-
show_side_menu: boolean
1301+
show_minimap: boolean
12981302

12991303
/**
1300-
* Shows or hides the view options when map is opened.
1304+
* Shows or hides quickbar of shortcuts.
13011305
*/
1302-
show_map_view_options: boolean
1306+
show_quickbar: boolean
13031307

13041308
/**
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.
13061310
*/
1307-
show_entity_tooltip: boolean
1311+
show_rail_block_visualisation: boolean
13081312

13091313
/**
1310-
* Shows or hides quickbar of shortcuts.
1314+
* Show research progress and name in the upper right-hand corner of the screen.
13111315
*/
1312-
show_quickbar: boolean
1316+
show_research_info: boolean
13131317

13141318
/**
13151319
* Shows or hides the shortcut bar.
13161320
*/
13171321
show_shortcut_bar: boolean
13181322

13191323
/**
1320-
* Shows or hides the crafting queue.
1324+
* Shows or hides the buttons row.
13211325
*/
1322-
show_crafting_queue: boolean
1326+
show_side_menu: boolean
13231327

13241328
/**
13251329
* Shows or hides the tool window with the weapons and armor.
13261330
*/
13271331
show_tool_bar: boolean
13281332

13291333
/**
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.
13311335
*/
1332-
show_hotkey_suggestions: boolean
1336+
update_entity_selection: boolean
13331337

13341338
}
13351339

@@ -2408,23 +2412,23 @@ type MapPosition = {
24082412
*
24092413
*/
24102414
interface MapSettings {
2411-
pollution: PollutionMapSettings
2412-
24132415
enemy_evolution: EnemyEvolutionMapSettings
24142416

24152417
enemy_expansion: EnemyExpansionMapSettings
24162418

2417-
unit_group: UnitGroupMapSettings
2418-
2419-
steering: SteeringMapSetting
2420-
2421-
path_finder: PathFinderMapSettings
2422-
24232419
/**
24242420
* If a behavior fails this many times, the enemy (or enemy group) is destroyed. This solves biters getting stuck within their own base.
24252421
*/
24262422
max_failed_behavior_count: uint
24272423

2424+
path_finder: PathFinderMapSettings
2425+
2426+
pollution: PollutionMapSettings
2427+
2428+
steering: SteeringMapSetting
2429+
2430+
unit_group: UnitGroupMapSettings
2431+
24282432
}
24292433

24302434
/**
@@ -3907,6 +3911,28 @@ interface AchievementPrototypeFilterType extends AchievementPrototypeFilter {
39073911
type: string | string[]
39083912
}
39093913

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+
39103936
/**
39113937
* Applies to `artillery-remote` variant case
39123938
*/

dist/defines.d.ts

Lines changed: 75 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Factorio API reference https://lua-api.factorio.com/latest/index.html
33
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
44
// Definition source https://github.com/sguest/factorio-types
5-
// Factorio version 1.1.108
5+
// Factorio version 1.1.109
66
// API version 5
77

88
declare namespace defines {
@@ -175,6 +175,80 @@ declare namespace defines {
175175
pulse = 0,
176176
}
177177
}
178+
enum type {
179+
/**
180+
* {@link LuaAccumulatorControlBehavior | runtime:LuaAccumulatorControlBehavior}
181+
*/
182+
accumulator = 12,
183+
/**
184+
* {@link LuaArithmeticCombinatorControlBehavior | runtime:LuaArithmeticCombinatorControlBehavior}
185+
*/
186+
arithmetic_combinator = 9,
187+
/**
188+
* {@link LuaConstantCombinatorControlBehavior | runtime:LuaConstantCombinatorControlBehavior}
189+
*/
190+
constant_combinator = 10,
191+
/**
192+
* {@link LuaContainerControlBehavior | runtime:LuaContainerControlBehavior}
193+
*/
194+
container = 0,
195+
/**
196+
* {@link LuaDeciderCombinatorControlBehavior | runtime:LuaDeciderCombinatorControlBehavior}
197+
*/
198+
decider_combinator = 8,
199+
/**
200+
* {@link LuaGenericOnOffControlBehavior | runtime:LuaGenericOnOffControlBehavior}
201+
*/
202+
generic_on_off = 1,
203+
/**
204+
* {@link LuaInserterControlBehavior | runtime:LuaInserterControlBehavior}
205+
*/
206+
inserter = 2,
207+
/**
208+
* {@link LuaLampControlBehavior | runtime:LuaLampControlBehavior}
209+
*/
210+
lamp = 3,
211+
/**
212+
* {@link LuaLogisticContainerControlBehavior | runtime:LuaLogisticContainerControlBehavior}
213+
*/
214+
logistic_container = 4,
215+
/**
216+
* {@link LuaMiningDrillControlBehavior | runtime:LuaMiningDrillControlBehavior}
217+
*/
218+
mining_drill = 16,
219+
/**
220+
* {@link LuaProgrammableSpeakerControlBehavior | runtime:LuaProgrammableSpeakerControlBehavior}
221+
*/
222+
programmable_speaker = 17,
223+
/**
224+
* {@link LuaRailChainSignalControlBehavior | runtime:LuaRailChainSignalControlBehavior}
225+
*/
226+
rail_chain_signal = 14,
227+
/**
228+
* {@link LuaRailSignalControlBehavior | runtime:LuaRailSignalControlBehavior}
229+
*/
230+
rail_signal = 13,
231+
/**
232+
* {@link LuaRoboportControlBehavior | runtime:LuaRoboportControlBehavior}
233+
*/
234+
roboport = 5,
235+
/**
236+
* {@link LuaStorageTankControlBehavior | runtime:LuaStorageTankControlBehavior}
237+
*/
238+
storage_tank = 6,
239+
/**
240+
* {@link LuaTrainStopControlBehavior | runtime:LuaTrainStopControlBehavior}
241+
*/
242+
train_stop = 7,
243+
/**
244+
* {@link LuaTransportBeltControlBehavior | runtime:LuaTransportBeltControlBehavior}
245+
*/
246+
transport_belt = 11,
247+
/**
248+
* {@link LuaWallControlBehavior | runtime:LuaWallControlBehavior}
249+
*/
250+
wall = 15,
251+
}
178252
}
179253
enum controllers {
180254
/**
@@ -1222,80 +1296,6 @@ declare namespace defines {
12221296
secondary_right_line = 5,
12231297
secondary_right_split_line = 9,
12241298
}
1225-
enum type {
1226-
/**
1227-
* {@link LuaAccumulatorControlBehavior | runtime:LuaAccumulatorControlBehavior}
1228-
*/
1229-
accumulator = 12,
1230-
/**
1231-
* {@link LuaArithmeticCombinatorControlBehavior | runtime:LuaArithmeticCombinatorControlBehavior}
1232-
*/
1233-
arithmetic_combinator = 9,
1234-
/**
1235-
* {@link LuaConstantCombinatorControlBehavior | runtime:LuaConstantCombinatorControlBehavior}
1236-
*/
1237-
constant_combinator = 10,
1238-
/**
1239-
* {@link LuaContainerControlBehavior | runtime:LuaContainerControlBehavior}
1240-
*/
1241-
container = 0,
1242-
/**
1243-
* {@link LuaDeciderCombinatorControlBehavior | runtime:LuaDeciderCombinatorControlBehavior}
1244-
*/
1245-
decider_combinator = 8,
1246-
/**
1247-
* {@link LuaGenericOnOffControlBehavior | runtime:LuaGenericOnOffControlBehavior}
1248-
*/
1249-
generic_on_off = 1,
1250-
/**
1251-
* {@link LuaInserterControlBehavior | runtime:LuaInserterControlBehavior}
1252-
*/
1253-
inserter = 2,
1254-
/**
1255-
* {@link LuaLampControlBehavior | runtime:LuaLampControlBehavior}
1256-
*/
1257-
lamp = 3,
1258-
/**
1259-
* {@link LuaLogisticContainerControlBehavior | runtime:LuaLogisticContainerControlBehavior}
1260-
*/
1261-
logistic_container = 4,
1262-
/**
1263-
* {@link LuaMiningDrillControlBehavior | runtime:LuaMiningDrillControlBehavior}
1264-
*/
1265-
mining_drill = 16,
1266-
/**
1267-
* {@link LuaProgrammableSpeakerControlBehavior | runtime:LuaProgrammableSpeakerControlBehavior}
1268-
*/
1269-
programmable_speaker = 17,
1270-
/**
1271-
* {@link LuaRailChainSignalControlBehavior | runtime:LuaRailChainSignalControlBehavior}
1272-
*/
1273-
rail_chain_signal = 14,
1274-
/**
1275-
* {@link LuaRailSignalControlBehavior | runtime:LuaRailSignalControlBehavior}
1276-
*/
1277-
rail_signal = 13,
1278-
/**
1279-
* {@link LuaRoboportControlBehavior | runtime:LuaRoboportControlBehavior}
1280-
*/
1281-
roboport = 5,
1282-
/**
1283-
* {@link LuaStorageTankControlBehavior | runtime:LuaStorageTankControlBehavior}
1284-
*/
1285-
storage_tank = 6,
1286-
/**
1287-
* {@link LuaTrainStopControlBehavior | runtime:LuaTrainStopControlBehavior}
1288-
*/
1289-
train_stop = 7,
1290-
/**
1291-
* {@link LuaTransportBeltControlBehavior | runtime:LuaTransportBeltControlBehavior}
1292-
*/
1293-
transport_belt = 11,
1294-
/**
1295-
* {@link LuaWallControlBehavior | runtime:LuaWallControlBehavior}
1296-
*/
1297-
wall = 15,
1298-
}
12991299
enum wire_connection_id {
13001300
electric_pole = 0,
13011301
power_switch_left = 1,

dist/events.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Factorio API reference https://lua-api.factorio.com/latest/index.html
33
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
44
// Definition source https://github.com/sguest/factorio-types
5-
// Factorio version 1.1.108
5+
// Factorio version 1.1.109
66
// API version 5
77

88
declare namespace runtime {

0 commit comments

Comments
 (0)