factorio-types 1.2.39 → 1.2.40
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 +272 -14
- package/dist/concepts.d.ts +82 -10
- package/dist/datacollection.d.ts +1 -1
- package/dist/defines.d.ts +290 -283
- package/dist/events.d.ts +38 -1
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +156 -8
- package/dist/types.d.ts +25 -6
- package/package.json +2 -2
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.
|
|
5
|
+
// Factorio version 2.0.57
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -28,6 +28,10 @@ interface CustomInputEvent {
|
|
|
28
28
|
* The mouse cursor position when the custom input was activated.
|
|
29
29
|
*/
|
|
30
30
|
cursor_position: MapPosition;
|
|
31
|
+
/**
|
|
32
|
+
* The GUI element under the cursor when the custom input was activated.
|
|
33
|
+
*/
|
|
34
|
+
element?: LuaGuiElement;
|
|
31
35
|
/**
|
|
32
36
|
* The prototype name of the custom input that was activated.
|
|
33
37
|
*/
|
|
@@ -3422,6 +3426,10 @@ interface on_research_cancelled {
|
|
|
3422
3426
|
* Identifier of the event
|
|
3423
3427
|
*/
|
|
3424
3428
|
name: defines.events;
|
|
3429
|
+
/**
|
|
3430
|
+
* The player who cancelled the research if any.
|
|
3431
|
+
*/
|
|
3432
|
+
player_index?: uint;
|
|
3425
3433
|
/**
|
|
3426
3434
|
* A mapping of technology name to how many times it was cancelled.
|
|
3427
3435
|
*/
|
|
@@ -3464,6 +3472,35 @@ interface on_research_moved {
|
|
|
3464
3472
|
* Identifier of the event
|
|
3465
3473
|
*/
|
|
3466
3474
|
name: defines.events;
|
|
3475
|
+
/**
|
|
3476
|
+
* The player who did the re-arranging if any.
|
|
3477
|
+
*/
|
|
3478
|
+
player_index?: uint;
|
|
3479
|
+
/**
|
|
3480
|
+
* Tick the event was generated.
|
|
3481
|
+
*/
|
|
3482
|
+
tick: uint;
|
|
3483
|
+
}
|
|
3484
|
+
/**
|
|
3485
|
+
* Called when research is queued.
|
|
3486
|
+
*/
|
|
3487
|
+
interface on_research_queued {
|
|
3488
|
+
/**
|
|
3489
|
+
* The force whose research was queued.
|
|
3490
|
+
*/
|
|
3491
|
+
force: LuaForce;
|
|
3492
|
+
/**
|
|
3493
|
+
* Identifier of the event
|
|
3494
|
+
*/
|
|
3495
|
+
name: defines.events;
|
|
3496
|
+
/**
|
|
3497
|
+
* The player who queued the research if any.
|
|
3498
|
+
*/
|
|
3499
|
+
player_index?: uint;
|
|
3500
|
+
/**
|
|
3501
|
+
* The technology queued
|
|
3502
|
+
*/
|
|
3503
|
+
research: LuaTechnology;
|
|
3467
3504
|
/**
|
|
3468
3505
|
* Tick the event was generated.
|
|
3469
3506
|
*/
|
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.
|
|
5
|
+
// Factorio version 2.0.57
|
|
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.0.
|
|
5
|
+
// Factorio version 2.0.57
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -1063,6 +1063,14 @@ interface BeaconPrototype extends EntityWithOwnerPrototype {
|
|
|
1063
1063
|
```
|
|
1064
1064
|
*/
|
|
1065
1065
|
profile?: double[];
|
|
1066
|
+
/**
|
|
1067
|
+
* If set, {@link QualityPrototype::beacon_module_slots_bonus | prototype:QualityPrototype::beacon_module_slots_bonus} will be added to module slots count.
|
|
1068
|
+
*/
|
|
1069
|
+
quality_affects_module_slots?: boolean;
|
|
1070
|
+
/**
|
|
1071
|
+
* If set, {@link QualityPrototype::beacon_supply_area_distance_bonus | prototype:QualityPrototype::beacon_supply_area_distance_bonus} will be added to supply_area_distance. Total value will be clamped to be within range `[0, 64]`.
|
|
1072
|
+
*/
|
|
1073
|
+
quality_affects_supply_area_distance?: boolean;
|
|
1066
1074
|
radius_visualisation_picture?: Sprite;
|
|
1067
1075
|
/**
|
|
1068
1076
|
* The maximum distance that this beacon can supply its neighbors with its module's effects. Max distance is 64.
|
|
@@ -1519,6 +1527,7 @@ interface CharacterPrototype extends EntityWithOwnerPrototype {
|
|
|
1519
1527
|
* Names of the crafting categories the character can craft recipes from. The built-in categories can be found {@link here | https://wiki.factorio.com/Data.raw#recipe-category}. See also {@link RecipeCategory | prototype:RecipeCategory}.
|
|
1520
1528
|
*/
|
|
1521
1529
|
crafting_categories?: RecipeCategoryID[];
|
|
1530
|
+
crafting_speed?: double;
|
|
1522
1531
|
damage_hit_tint: Color;
|
|
1523
1532
|
distance_per_frame: double;
|
|
1524
1533
|
drop_item_distance: uint32;
|
|
@@ -1828,14 +1837,22 @@ interface ContainerPrototype extends EntityWithOwnerPrototype {
|
|
|
1828
1837
|
default_status?: EntityStatus;
|
|
1829
1838
|
draw_circuit_wires?: boolean;
|
|
1830
1839
|
draw_copper_wires?: boolean;
|
|
1840
|
+
/**
|
|
1841
|
+
* Only used when `inventory_type` is `"with_custom_stack_size"`.
|
|
1842
|
+
*/
|
|
1843
|
+
inventory_properties?: InventoryWithCustomStackSizePrototype;
|
|
1831
1844
|
/**
|
|
1832
1845
|
* The number of slots in this container.
|
|
1833
1846
|
*/
|
|
1834
1847
|
inventory_size: ItemStackIndex;
|
|
1835
1848
|
/**
|
|
1836
|
-
*
|
|
1849
|
+
* Determines the type of inventory that this container has. Whether the inventory has a limiter bar, can be filtered (like cargo wagons), uses a custom stack size for contained item stacks (like artillery wagon), or uses a weight limit (like space age rocket silo).
|
|
1850
|
+
*/
|
|
1851
|
+
inventory_type?: 'normal' | 'with_bar' | 'with_filters_and_bar' | 'with_custom_stack_size' | 'with_weight_limit';
|
|
1852
|
+
/**
|
|
1853
|
+
* Only used when `inventory_type` is `"with_weight_limit"`.
|
|
1837
1854
|
*/
|
|
1838
|
-
|
|
1855
|
+
inventory_weight_limit?: Weight;
|
|
1839
1856
|
/**
|
|
1840
1857
|
* The picture displayed for this entity.
|
|
1841
1858
|
*/
|
|
@@ -1986,7 +2003,7 @@ interface CraftingMachinePrototype extends EntityWithOwnerPrototype {
|
|
|
1986
2003
|
pipe_picture = assembler2pipepictures(),
|
|
1987
2004
|
pipe_covers = pipecoverspictures(),
|
|
1988
2005
|
volume = 1000,
|
|
1989
|
-
pipe_connections = {{ flow_direction="input", direction = defines.direction.north, position = {0, -1} }},
|
|
2006
|
+
pipe_connections = {{ flow_direction = "input", direction = defines.direction.north, position = {0, -1} }},
|
|
1990
2007
|
secondary_draw_orders = { north = -1 }
|
|
1991
2008
|
},
|
|
1992
2009
|
{
|
|
@@ -1994,7 +2011,7 @@ interface CraftingMachinePrototype extends EntityWithOwnerPrototype {
|
|
|
1994
2011
|
pipe_picture = assembler2pipepictures(),
|
|
1995
2012
|
pipe_covers = pipecoverspictures(),
|
|
1996
2013
|
volume = 1000,
|
|
1997
|
-
pipe_connections = {{ flow_direction="output", direction = defines.direction.south, position = {0, 1} }},
|
|
2014
|
+
pipe_connections = {{ flow_direction = "output", direction = defines.direction.south, position = {0, 1} }},
|
|
1998
2015
|
secondary_draw_orders = { north = -1 }
|
|
1999
2016
|
},
|
|
2000
2017
|
}
|
|
@@ -2018,6 +2035,14 @@ interface CraftingMachinePrototype extends EntityWithOwnerPrototype {
|
|
|
2018
2035
|
*/
|
|
2019
2036
|
perceived_performance?: PerceivedPerformance;
|
|
2020
2037
|
production_health_effect?: ProductionHealthEffect;
|
|
2038
|
+
/**
|
|
2039
|
+
* When set, {@link QualityPrototype::crafting_machine_energy_usage_multiplier | prototype:QualityPrototype::crafting_machine_energy_usage_multiplier} will be applied to energy_usage.
|
|
2040
|
+
*/
|
|
2041
|
+
quality_affects_energy_usage?: boolean;
|
|
2042
|
+
/**
|
|
2043
|
+
* If set, {@link QualityPrototype::crafting_machine_module_slots_bonus | prototype:QualityPrototype::crafting_machine_module_slots_bonus} will be added to module slots count.
|
|
2044
|
+
*/
|
|
2045
|
+
quality_affects_module_slots?: boolean;
|
|
2021
2046
|
/**
|
|
2022
2047
|
* Controls whether the ingredients of an in-progress recipe are destroyed when mining the machine/changing the recipe. If set to true, the ingredients do not get destroyed. This affects only the ingredients of the recipe that is currently in progress, so those that visually have already been consumed while their resulting product has not yet been produced.
|
|
2023
2048
|
*/
|
|
@@ -4964,6 +4989,10 @@ interface LabPrototype extends EntityWithOwnerPrototype {
|
|
|
4964
4989
|
* The animation that plays when the lab is active.
|
|
4965
4990
|
*/
|
|
4966
4991
|
on_animation?: Animation;
|
|
4992
|
+
/**
|
|
4993
|
+
* If set, {@link QualityPrototype::beacon_module_slots_bonus | prototype:QualityPrototype::beacon_module_slots_bonus} will be added to module slots count.
|
|
4994
|
+
*/
|
|
4995
|
+
quality_affects_module_slots?: boolean;
|
|
4967
4996
|
researching_speed?: double;
|
|
4968
4997
|
/**
|
|
4969
4998
|
* May not be `0` or larger than `100`.
|
|
@@ -5230,14 +5259,22 @@ interface LinkedContainerPrototype extends EntityWithOwnerPrototype {
|
|
|
5230
5259
|
* Players that can access the GUI to change the link ID.
|
|
5231
5260
|
*/
|
|
5232
5261
|
gui_mode?: 'all' | 'none' | 'admins';
|
|
5262
|
+
/**
|
|
5263
|
+
* Only used when `inventory_type` is `"with_custom_stack_size"`.
|
|
5264
|
+
*/
|
|
5265
|
+
inventory_properties?: InventoryWithCustomStackSizePrototype;
|
|
5233
5266
|
/**
|
|
5234
5267
|
* Must be > 0.
|
|
5235
5268
|
*/
|
|
5236
5269
|
inventory_size: ItemStackIndex;
|
|
5237
5270
|
/**
|
|
5238
|
-
*
|
|
5271
|
+
* Determines the type of inventory that this linked container has. Whether the inventory has a limiter bar, can be filtered (like cargo wagons), uses a custom stack size for contained item stacks (like artillery wagon), or uses a weight limit (like space age rocket silo).
|
|
5272
|
+
*/
|
|
5273
|
+
inventory_type?: 'normal' | 'with_bar' | 'with_filters_and_bar' | 'with_custom_stack_size' | 'with_weight_limit';
|
|
5274
|
+
/**
|
|
5275
|
+
* Only used when `inventory_type` is `"with_weight_limit"`.
|
|
5239
5276
|
*/
|
|
5240
|
-
|
|
5277
|
+
inventory_weight_limit?: Weight;
|
|
5241
5278
|
picture?: Sprite;
|
|
5242
5279
|
}
|
|
5243
5280
|
/**
|
|
@@ -5315,6 +5352,10 @@ interface LoaderPrototype extends TransportBeltConnectablePrototype {
|
|
|
5315
5352
|
per_lane_filters?: boolean;
|
|
5316
5353
|
structure?: LoaderStructure;
|
|
5317
5354
|
structure_render_layer?: RenderLayer;
|
|
5355
|
+
/**
|
|
5356
|
+
* When set, loader will ignore items for which there is not enough to create a full belt stack. Relevant only when loader can create belt stacks.
|
|
5357
|
+
*/
|
|
5358
|
+
wait_for_full_stack?: boolean;
|
|
5318
5359
|
}
|
|
5319
5360
|
/**
|
|
5320
5361
|
* A {@link locomotive | https://wiki.factorio.com/Locomotive}.
|
|
@@ -5555,6 +5596,14 @@ interface MiningDrillPrototype extends EntityWithOwnerPrototype {
|
|
|
5555
5596
|
* Affects animation speed.
|
|
5556
5597
|
*/
|
|
5557
5598
|
perceived_performance?: PerceivedPerformance;
|
|
5599
|
+
/**
|
|
5600
|
+
* If set, {@link QualityPrototype::mining_drill_mining_radius_bonus | prototype:QualityPrototype::mining_drill_mining_radius_bonus} will be added to resource_searching_radius.
|
|
5601
|
+
*/
|
|
5602
|
+
quality_affects_mining_radius?: boolean;
|
|
5603
|
+
/**
|
|
5604
|
+
* If set, {@link QualityPrototype::mining_drill_module_slots_bonus | prototype:QualityPrototype::mining_drill_module_slots_bonus} will be added to module slots count.
|
|
5605
|
+
*/
|
|
5606
|
+
quality_affects_module_slots?: boolean;
|
|
5558
5607
|
/**
|
|
5559
5608
|
* The sprite used to show the range of the mining drill.
|
|
5560
5609
|
*/
|
|
@@ -6293,12 +6342,70 @@ interface PumpPrototype extends EntityWithOwnerPrototype {
|
|
|
6293
6342
|
pumping_speed: FluidAmount;
|
|
6294
6343
|
}
|
|
6295
6344
|
interface QualityPrototype extends Prototype {
|
|
6345
|
+
/**
|
|
6346
|
+
* Must be >= 0.01.
|
|
6347
|
+
*/
|
|
6348
|
+
accumulator_capacity_multiplier?: double;
|
|
6349
|
+
/**
|
|
6350
|
+
* Must be >= 0.
|
|
6351
|
+
*
|
|
6352
|
+
* Performance warning: the navigation has to pre-calculate ranges for the highest tier collector possible, so you should keep this collection radius within reasonable values.
|
|
6353
|
+
*/
|
|
6354
|
+
asteroid_collector_collection_radius_bonus?: double;
|
|
6355
|
+
/**
|
|
6356
|
+
* Only affects beacons with {@link BeaconPrototype::quality_affects_module_slots | prototype:BeaconPrototype::quality_affects_module_slots} set.
|
|
6357
|
+
*/
|
|
6358
|
+
beacon_module_slots_bonus?: ItemStackIndex;
|
|
6296
6359
|
/**
|
|
6297
6360
|
* Must be >= 0.
|
|
6298
6361
|
*/
|
|
6299
6362
|
beacon_power_usage_multiplier?: float;
|
|
6363
|
+
/**
|
|
6364
|
+
* Only affects beacons with {@link BeaconPrototype::quality_affects_supply_area | prototype:BeaconPrototype::quality_affects_supply_area} set.
|
|
6365
|
+
*
|
|
6366
|
+
* Must be >= 0 and <= 64.
|
|
6367
|
+
*/
|
|
6368
|
+
beacon_supply_area_distance_bonus?: float;
|
|
6300
6369
|
color: Color;
|
|
6370
|
+
/**
|
|
6371
|
+
* Only affects crafting machines with {@link CraftingMachinePrototype::quality_affects_energy_usage | prototype:CraftingMachinePrototype::quality_affects_energy_usage} set.
|
|
6372
|
+
*
|
|
6373
|
+
* Must be >= 0.01.
|
|
6374
|
+
*/
|
|
6375
|
+
crafting_machine_energy_usage_multiplier?: double;
|
|
6376
|
+
/**
|
|
6377
|
+
* Only affects crafting machines with {@link CraftingMachinePrototype::quality_affects_module_slots | prototype:CraftingMachinePrototype::quality_affects_module_slots} set.
|
|
6378
|
+
*/
|
|
6379
|
+
crafting_machine_module_slots_bonus?: ItemStackIndex;
|
|
6380
|
+
/**
|
|
6381
|
+
* Must be >= 0.01.
|
|
6382
|
+
*/
|
|
6383
|
+
crafting_machine_speed_multiplier?: double;
|
|
6384
|
+
/**
|
|
6385
|
+
* Must be >= 0.01.
|
|
6386
|
+
*/
|
|
6387
|
+
default_multiplier?: double;
|
|
6301
6388
|
draw_sprite_by_default?: boolean;
|
|
6389
|
+
/**
|
|
6390
|
+
* Must be >= 0.
|
|
6391
|
+
*/
|
|
6392
|
+
electric_pole_supply_area_distance_bonus?: float;
|
|
6393
|
+
/**
|
|
6394
|
+
* Must be >= 0.
|
|
6395
|
+
*/
|
|
6396
|
+
electric_pole_wire_reach_bonus?: float;
|
|
6397
|
+
equipment_grid_height_bonus?: int16;
|
|
6398
|
+
equipment_grid_width_bonus?: int16;
|
|
6399
|
+
/**
|
|
6400
|
+
* Only affects fluid wagons with {@link FluidWagonPrototype::quality_affects_capacity | prototype:FluidWagonPrototype::quality_affects_capacity} set.
|
|
6401
|
+
*
|
|
6402
|
+
* Must be >= 0.01.
|
|
6403
|
+
*/
|
|
6404
|
+
fluid_wagon_capacity_multiplier?: double;
|
|
6405
|
+
/**
|
|
6406
|
+
* Must be >= 0.01.
|
|
6407
|
+
*/
|
|
6408
|
+
flying_robot_max_energy_multiplier?: double;
|
|
6302
6409
|
/**
|
|
6303
6410
|
* Path to the icon file.
|
|
6304
6411
|
*
|
|
@@ -6315,10 +6422,41 @@ interface QualityPrototype extends Prototype {
|
|
|
6315
6422
|
* Can't be an empty array.
|
|
6316
6423
|
*/
|
|
6317
6424
|
icons?: IconData[];
|
|
6425
|
+
/**
|
|
6426
|
+
* Must be >= 0.01.
|
|
6427
|
+
*/
|
|
6428
|
+
inserter_speed_multiplier?: double;
|
|
6429
|
+
/**
|
|
6430
|
+
* Must be >= 0.01.
|
|
6431
|
+
*/
|
|
6432
|
+
inventory_size_multiplier?: double;
|
|
6433
|
+
/**
|
|
6434
|
+
* Only affects labs with {@link LabPrototype::quality_affects_module_slots | prototype:LabPrototype::quality_affects_module_slots} set.
|
|
6435
|
+
*/
|
|
6436
|
+
lab_module_slots_bonus?: ItemStackIndex;
|
|
6437
|
+
/**
|
|
6438
|
+
* Must be >= 0.01.
|
|
6439
|
+
*/
|
|
6440
|
+
lab_research_speed_multiplier?: double;
|
|
6318
6441
|
/**
|
|
6319
6442
|
* Requires Space Age to use level greater than `0`.
|
|
6320
6443
|
*/
|
|
6321
6444
|
level: uint32;
|
|
6445
|
+
/**
|
|
6446
|
+
* Must be >= 0.01.
|
|
6447
|
+
*/
|
|
6448
|
+
logistic_cell_charging_energy_multiplier?: double;
|
|
6449
|
+
logistic_cell_charging_station_count_bonus?: uint32;
|
|
6450
|
+
/**
|
|
6451
|
+
* Only affects mining drills with {@link MiningDrillPrototype::quality_affects_mining_radius | prototype:MiningDrillPrototype::quality_affects_mining_radius} set.
|
|
6452
|
+
*
|
|
6453
|
+
* Must be >= 0.
|
|
6454
|
+
*/
|
|
6455
|
+
mining_drill_mining_radius_bonus?: float;
|
|
6456
|
+
/**
|
|
6457
|
+
* Only affects mining drills with {@link MiningDrillPrototype::quality_affects_module_slots | prototype:MiningDrillPrototype::quality_affects_module_slots} set.
|
|
6458
|
+
*/
|
|
6459
|
+
mining_drill_module_slots_bonus?: ItemStackIndex;
|
|
6322
6460
|
/**
|
|
6323
6461
|
* Must be in range `[0, 1]`.
|
|
6324
6462
|
*/
|
|
@@ -6334,10 +6472,18 @@ interface QualityPrototype extends Prototype {
|
|
|
6334
6472
|
* Must be in range [0, 1.0].
|
|
6335
6473
|
*/
|
|
6336
6474
|
next_probability?: double;
|
|
6475
|
+
/**
|
|
6476
|
+
* Must be within [1, 3].
|
|
6477
|
+
*/
|
|
6478
|
+
range_multiplier?: double;
|
|
6337
6479
|
/**
|
|
6338
6480
|
* Must be in range `[0, 1]`.
|
|
6339
6481
|
*/
|
|
6340
6482
|
science_pack_drain_multiplier?: float;
|
|
6483
|
+
/**
|
|
6484
|
+
* Must be >= 0.01.
|
|
6485
|
+
*/
|
|
6486
|
+
tool_durability_multiplier?: double;
|
|
6341
6487
|
}
|
|
6342
6488
|
/**
|
|
6343
6489
|
* A {@link radar | https://wiki.factorio.com/Radar}.
|
|
@@ -9925,6 +10071,7 @@ interface UtilityConstants extends PrototypeBase {
|
|
|
9925
10071
|
* Max radius where cargo pods will land.
|
|
9926
10072
|
*/
|
|
9927
10073
|
landing_area_max_radius: float;
|
|
10074
|
+
landing_squash_immunity: MapTick;
|
|
9928
10075
|
large_area_size: float;
|
|
9929
10076
|
large_blueprint_area_size: float;
|
|
9930
10077
|
/**
|
|
@@ -10239,6 +10386,7 @@ interface UtilitySprites extends PrototypeBase {
|
|
|
10239
10386
|
close_map_preview: Sprite;
|
|
10240
10387
|
clouds: Animation;
|
|
10241
10388
|
collapse: Sprite;
|
|
10389
|
+
collapse_dark: Sprite;
|
|
10242
10390
|
color_effect: Sprite;
|
|
10243
10391
|
color_picker: Sprite;
|
|
10244
10392
|
confirm_slot: Sprite;
|
|
@@ -10748,7 +10896,7 @@ interface ValvePrototype extends EntityWithOwnerPrototype {
|
|
|
10748
10896
|
*/
|
|
10749
10897
|
flow_rate: FluidAmount;
|
|
10750
10898
|
/**
|
|
10751
|
-
* Must have at least one `"output"` {@link FluidFlowDirection | prototype:FluidFlowDirection} and at least one `input-output` {@link FluidFlowDirection | prototype:FluidFlowDirection}.
|
|
10899
|
+
* Must have at least one `"output"` {@link FluidFlowDirection | prototype:FluidFlowDirection} and at least one `"input-output"` {@link FluidFlowDirection | prototype:FluidFlowDirection}.
|
|
10752
10900
|
*/
|
|
10753
10901
|
fluid_box: FluidBox;
|
|
10754
10902
|
frozen_patch?: Sprite4Way;
|
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.0.
|
|
5
|
+
// Factorio version 2.0.57
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -5424,6 +5424,25 @@ interface InterruptibleSound {
|
|
|
5424
5424
|
*/
|
|
5425
5425
|
stopped_sound?: Sound;
|
|
5426
5426
|
}
|
|
5427
|
+
interface InventoryWithCustomStackSizePrototype {
|
|
5428
|
+
/**
|
|
5429
|
+
* Must be >= stack_size_min.
|
|
5430
|
+
*/
|
|
5431
|
+
stack_size_max?: ItemCountType;
|
|
5432
|
+
/**
|
|
5433
|
+
* Must be >= 1.
|
|
5434
|
+
*/
|
|
5435
|
+
stack_size_min?: ItemCountType;
|
|
5436
|
+
/**
|
|
5437
|
+
* Must be >= 0.
|
|
5438
|
+
*/
|
|
5439
|
+
stack_size_multiplier?: double;
|
|
5440
|
+
/**
|
|
5441
|
+
* Each record value must be >= 1. For non-stackable items this value will be ignored.
|
|
5442
|
+
*/
|
|
5443
|
+
stack_size_override?: Record<ItemID, ItemCountType>;
|
|
5444
|
+
with_bar?: boolean;
|
|
5445
|
+
}
|
|
5427
5446
|
interface InvokeTileEffectTriggerEffectItem extends TriggerEffectItem {
|
|
5428
5447
|
tile_collision_mask?: CollisionMaskConnector;
|
|
5429
5448
|
type: 'invoke-tile-trigger';
|
|
@@ -5843,13 +5862,13 @@ interface LightningPriorityRule extends LightningRuleBaseBase {
|
|
|
5843
5862
|
priority_bonus: int32;
|
|
5844
5863
|
}
|
|
5845
5864
|
interface LightningProperties {
|
|
5846
|
-
exemption_rules
|
|
5865
|
+
exemption_rules?: LightningRuleBase[];
|
|
5847
5866
|
/**
|
|
5848
|
-
* Must be in range [0,1]
|
|
5867
|
+
* Must be in range `[0, 1]`.
|
|
5849
5868
|
*/
|
|
5850
5869
|
lightning_multiplier_at_day?: double;
|
|
5851
5870
|
/**
|
|
5852
|
-
* Must be in range [0,1]
|
|
5871
|
+
* Must be in range `[0, 1]`.
|
|
5853
5872
|
*/
|
|
5854
5873
|
lightning_multiplier_at_night?: double;
|
|
5855
5874
|
/**
|
|
@@ -5867,7 +5886,7 @@ interface LightningProperties {
|
|
|
5867
5886
|
* Value of that surface property is divided by {@link default_value | prototype:SurfacePropertyPrototype::default_value} which means a default value must be positive (cannot be 0). When surface property has value at default, then this additional multiplier has value of 1.
|
|
5868
5887
|
*/
|
|
5869
5888
|
multiplier_surface_property?: SurfacePropertyID;
|
|
5870
|
-
priority_rules
|
|
5889
|
+
priority_rules?: LightningPriorityRule[];
|
|
5871
5890
|
search_radius: double;
|
|
5872
5891
|
}
|
|
5873
5892
|
interface LightningRuleBaseBase {
|
|
@@ -9260,7 +9279,7 @@ interface SoundAccent {
|
|
|
9260
9279
|
}
|
|
9261
9280
|
type SoundDefinition = {
|
|
9262
9281
|
/**
|
|
9263
|
-
* Supported sound file formats are `.ogg` (Vorbis) and `.wav`.
|
|
9282
|
+
* Supported sound file formats are `.ogg` (Vorbis and Opus) and `.wav`.
|
|
9264
9283
|
*/
|
|
9265
9284
|
filename: FileName;
|
|
9266
9285
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "factorio-types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.40",
|
|
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.0.
|
|
26
|
+
"factorioVersion": "2.0.57",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"lua-types": "^2.13.1"
|
|
29
29
|
},
|