factorio-types 0.0.41 → 0.0.42
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 +3 -3
- package/dist/concepts.d.ts +8 -8
- package/dist/defines.d.ts +1 -1
- package/dist/events.d.ts +1 -1
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +11 -6
- package/dist/types.d.ts +7 -7
- package/package.json +1 -1
package/dist/classes.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 1.1.
|
|
5
|
+
// Factorio version 1.1.92
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -4217,7 +4217,7 @@ interface LuaEntity extends LuaControl {
|
|
|
4217
4217
|
/**
|
|
4218
4218
|
* The ticks left before a ghost, combat robot, highlight box or smoke with trigger is destroyed.
|
|
4219
4219
|
*
|
|
4220
|
-
* - for ghosts set to uint32 max (4
|
|
4220
|
+
* - for ghosts set to uint32 max (4 294 967 295) to never expire.
|
|
4221
4221
|
* - for ghosts can not be set higher than {@link LuaForce::ghost_time_to_live | runtime:LuaForce::ghost_time_to_live} of the entity's force.
|
|
4222
4222
|
*/
|
|
4223
4223
|
time_to_live: number
|
|
@@ -7921,7 +7921,7 @@ interface LuaGameScript {
|
|
|
7921
7921
|
/**
|
|
7922
7922
|
* Create a new surface.
|
|
7923
7923
|
* @remarks
|
|
7924
|
-
* The game currently supports a maximum of 4
|
|
7924
|
+
* The game currently supports a maximum of 4 294 967 295 surfaces, including the default surface.
|
|
7925
7925
|
* Surface names must be unique.
|
|
7926
7926
|
*
|
|
7927
7927
|
* @param name - Name of the new surface.
|
package/dist/concepts.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 1.1.
|
|
5
|
+
// Factorio version 1.1.92
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -847,7 +847,7 @@ interface EnemyExpansionMapSettings {
|
|
|
847
847
|
max_colliding_tiles_coefficient: number,
|
|
848
848
|
|
|
849
849
|
/**
|
|
850
|
-
* The maximum time between expansions in ticks. The actual cooldown is adjusted to the current evolution levels. Defaults to `60*3
|
|
850
|
+
* The maximum time between expansions in ticks. The actual cooldown is adjusted to the current evolution levels. Defaults to `60*3 600=216 000` ticks.
|
|
851
851
|
*/
|
|
852
852
|
max_expansion_cooldown: number,
|
|
853
853
|
|
|
@@ -857,7 +857,7 @@ interface EnemyExpansionMapSettings {
|
|
|
857
857
|
max_expansion_distance: number,
|
|
858
858
|
|
|
859
859
|
/**
|
|
860
|
-
* The minimum time between expansions in ticks. The actual cooldown is adjusted to the current evolution levels. Defaults to `4*3
|
|
860
|
+
* The minimum time between expansions in ticks. The actual cooldown is adjusted to the current evolution levels. Defaults to `4*3 600=14 400` ticks.
|
|
861
861
|
*/
|
|
862
862
|
min_expansion_cooldown: number,
|
|
863
863
|
|
|
@@ -2058,12 +2058,12 @@ interface PathFinderMapSettings {
|
|
|
2058
2058
|
max_clients_to_accept_short_new_request: number,
|
|
2059
2059
|
|
|
2060
2060
|
/**
|
|
2061
|
-
* The maximum number of nodes that are expanded per tick. Defaults to `1
|
|
2061
|
+
* The maximum number of nodes that are expanded per tick. Defaults to `1 000`.
|
|
2062
2062
|
*/
|
|
2063
2063
|
max_steps_worked_per_tick: number,
|
|
2064
2064
|
|
|
2065
2065
|
/**
|
|
2066
|
-
* The maximum amount of work each pathfinding job is allowed to do per tick. Defaults to `8
|
|
2066
|
+
* The maximum amount of work each pathfinding job is allowed to do per tick. Defaults to `8 000`.
|
|
2067
2067
|
*/
|
|
2068
2068
|
max_work_done_per_tick: number,
|
|
2069
2069
|
|
|
@@ -2823,7 +2823,7 @@ interface UnitGroupMapSettings {
|
|
|
2823
2823
|
max_gathering_unit_groups: number,
|
|
2824
2824
|
|
|
2825
2825
|
/**
|
|
2826
|
-
* The maximum amount of time in ticks a group will spend gathering before setting off. The actual time is a random time between the minimum and maximum times. Defaults to `10*3
|
|
2826
|
+
* The maximum amount of time in ticks a group will spend gathering before setting off. The actual time is a random time between the minimum and maximum times. Defaults to `10*3 600=36 000` ticks.
|
|
2827
2827
|
*/
|
|
2828
2828
|
max_group_gathering_time: number,
|
|
2829
2829
|
|
|
@@ -2858,7 +2858,7 @@ interface UnitGroupMapSettings {
|
|
|
2858
2858
|
max_unit_group_size: number,
|
|
2859
2859
|
|
|
2860
2860
|
/**
|
|
2861
|
-
* After gathering has finished, the group is allowed to wait this long in ticks for delayed members. New members are not accepted anymore however. Defaults to `2*3
|
|
2861
|
+
* After gathering has finished, the group is allowed to wait this long in ticks for delayed members. New members are not accepted anymore however. Defaults to `2*3 600=7 200` ticks.
|
|
2862
2862
|
*/
|
|
2863
2863
|
max_wait_time_for_late_members: number,
|
|
2864
2864
|
|
|
@@ -2868,7 +2868,7 @@ interface UnitGroupMapSettings {
|
|
|
2868
2868
|
member_disown_distance: number,
|
|
2869
2869
|
|
|
2870
2870
|
/**
|
|
2871
|
-
* The minimum amount of time in ticks a group will spend gathering before setting off. The actual time is a random time between the minimum and maximum times. Defaults to `3
|
|
2871
|
+
* The minimum amount of time in ticks a group will spend gathering before setting off. The actual time is a random time between the minimum and maximum times. Defaults to `3 600` ticks.
|
|
2872
2872
|
*/
|
|
2873
2873
|
min_group_gathering_time: number,
|
|
2874
2874
|
|
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 1.1.
|
|
5
|
+
// Factorio version 1.1.92
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
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 1.1.
|
|
5
|
+
// Factorio version 1.1.92
|
|
6
6
|
// API version 4
|
|
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 1.1.
|
|
5
|
+
// Factorio version 1.1.92
|
|
6
6
|
// API version 4
|
|
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 1.1.
|
|
5
|
+
// Factorio version 1.1.92
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -1255,7 +1255,7 @@ interface BlueprintItemPrototype extends SelectionToolPrototype{
|
|
|
1255
1255
|
}
|
|
1256
1256
|
|
|
1257
1257
|
/**
|
|
1258
|
-
* A {@link boiler | https://wiki.factorio.com/Boiler}.
|
|
1258
|
+
* A {@link boiler | https://wiki.factorio.com/Boiler}. It heats fluid and optionally outputs it as a different fluid.
|
|
1259
1259
|
*/
|
|
1260
1260
|
interface BoilerPrototype extends EntityWithOwnerPrototype{
|
|
1261
1261
|
|
|
@@ -1302,14 +1302,14 @@ If `mode` is `"heat-water-inside"`, the fluid is heated up directly in this flui
|
|
|
1302
1302
|
/**
|
|
1303
1303
|
* In the `"heat-water-inside"` mode, fluid in the `fluid_box` is continuously heated from the input temperature up to its {@link FluidPrototype::max_temperature | prototype:FluidPrototype::max_temperature}.
|
|
1304
1304
|
|
|
1305
|
-
In the `"output-to-separate-pipe"` mode, fluid is transferred from the `fluid_box` to the `output_fluid_box` when enough energy is available to {@link heat | prototype:FluidPrototype::heat_capacity} the fluid to the `target_temperature`. Setting a filter on the `output_fluid_box`
|
|
1305
|
+
In the `"output-to-separate-pipe"` mode, fluid is transferred from the `fluid_box` to the `output_fluid_box` when enough energy is available to {@link heat | prototype:FluidPrototype::heat_capacity} the input fluid to the `target_temperature`. Setting a filter on the `output_fluid_box` means that instead of the heated input fluid getting moved to the output, it is converted to the filtered fluid in a 1:1 ratio.
|
|
1306
1306
|
*/
|
|
1307
1307
|
mode?: 'heat-water-inside' | 'output-to-separate-pipe',
|
|
1308
1308
|
|
|
1309
1309
|
/**
|
|
1310
1310
|
* The output fluid box.
|
|
1311
1311
|
|
|
1312
|
-
If `mode` is `"output-to-separate-pipe"` and this has a {@link filter | prototype:FluidBox::filter}, the input fluid is converted to the output fluid that is set in the filter (in a 1:1 ratio).
|
|
1312
|
+
If `mode` is `"output-to-separate-pipe"` and this has a {@link filter | prototype:FluidBox::filter}, the heated input fluid is converted to the output fluid that is set in the filter (in a 1:1 ratio).
|
|
1313
1313
|
|
|
1314
1314
|
If `mode` is `"heat-water-inside"`, this fluidbox is unused.
|
|
1315
1315
|
*/
|
|
@@ -1322,7 +1322,7 @@ If `mode` is `"heat-water-inside"`, this fluidbox is unused.
|
|
|
1322
1322
|
structure: BoilerStructure,
|
|
1323
1323
|
|
|
1324
1324
|
/**
|
|
1325
|
-
* When `mode` is `"output-to-separate-pipe"`, this is the temperature that the input fluid must reach to be moved to output fluid box.
|
|
1325
|
+
* When `mode` is `"output-to-separate-pipe"`, this is the temperature that the input fluid must reach to be moved to the output fluid box.
|
|
1326
1326
|
|
|
1327
1327
|
When `mode` is `"heat-water-inside"` this is unused. Instead, the fluid {@link max_temperature | prototype:FluidPrototype::max_temperature} is the target temperature for heating the fluid.
|
|
1328
1328
|
*/
|
|
@@ -6244,7 +6244,7 @@ Mandatory if `icons` is not defined, or if `icon_size` is not specified for all
|
|
|
6244
6244
|
/**
|
|
6245
6245
|
* A table containing ingredient names and counts. Can also contain information about fluid temperature and catalyst amounts. The catalyst amounts are automatically calculated from the recipe, or can be set manually in the IngredientPrototype (see {@link here | https://factorio.com/blog/post/fff-256}).
|
|
6246
6246
|
|
|
6247
|
-
The maximum ingredient amount is
|
|
6247
|
+
The maximum ingredient amount is 65 535. Can be set to an empty table to create a recipe that needs no ingredients.
|
|
6248
6248
|
|
|
6249
6249
|
Duplicate ingredients, e.g. two entries with the same name, are *not* allowed. In-game, the item ingredients are ordered by {@link ItemGroup::order_in_recipe | prototype:ItemGroup::order_in_recipe}.
|
|
6250
6250
|
|
|
@@ -6441,6 +6441,11 @@ interface ResourceEntityPrototype extends EntityPrototype{
|
|
|
6441
6441
|
*/
|
|
6442
6442
|
category?: ResourceCategoryID,
|
|
6443
6443
|
|
|
6444
|
+
/**
|
|
6445
|
+
* Must be positive.
|
|
6446
|
+
*/
|
|
6447
|
+
cliff_removal_probability?: number,
|
|
6448
|
+
|
|
6444
6449
|
/**
|
|
6445
6450
|
* Two entities can collide only if they share a layer from the collision mask.
|
|
6446
6451
|
*/
|
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 1.1.
|
|
5
|
+
// Factorio version 1.1.92
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -2688,7 +2688,7 @@ interface EnemyExpansionSettings {
|
|
|
2688
2688
|
*
|
|
2689
2689
|
* Supported Multipliers:
|
|
2690
2690
|
*
|
|
2691
|
-
* - `k/K`: 10^3, or 1
|
|
2691
|
+
* - `k/K`: 10^3, or 1 000
|
|
2692
2692
|
*
|
|
2693
2693
|
* - `M`: 10^6
|
|
2694
2694
|
*
|
|
@@ -2850,7 +2850,7 @@ interface FactorioBasisNoiseArguments {
|
|
|
2850
2850
|
output_scale?: ConstantNoiseNumber,
|
|
2851
2851
|
|
|
2852
2852
|
/**
|
|
2853
|
-
* Integer between 0 and 4
|
|
2853
|
+
* Integer between 0 and 4 294 967 295 (inclusive) used to populate the backing random noise.
|
|
2854
2854
|
*/
|
|
2855
2855
|
seed0: ConstantNoiseNumber,
|
|
2856
2856
|
|
|
@@ -2885,7 +2885,7 @@ interface FactorioMultioctaveNoiseArguments {
|
|
|
2885
2885
|
persistence: ConstantNoiseNumber,
|
|
2886
2886
|
|
|
2887
2887
|
/**
|
|
2888
|
-
* Integer between 0 and 4
|
|
2888
|
+
* Integer between 0 and 4 294 967 295 (inclusive) used to populate the backing random noise.
|
|
2889
2889
|
*/
|
|
2890
2890
|
seed0: ConstantNoiseNumber,
|
|
2891
2891
|
|
|
@@ -4412,7 +4412,7 @@ interface MapGenSettings {
|
|
|
4412
4412
|
default_enable_all_autoplace_controls?: boolean,
|
|
4413
4413
|
|
|
4414
4414
|
/**
|
|
4415
|
-
* Height of the map in tiles. Silently limited to 2
|
|
4415
|
+
* Height of the map in tiles. Silently limited to 2 000 000, ie. +/- 1 million tiles from the center in both directions.
|
|
4416
4416
|
*/
|
|
4417
4417
|
height?: number,
|
|
4418
4418
|
peaceful_mode?: boolean,
|
|
@@ -4448,7 +4448,7 @@ interface MapGenSettings {
|
|
|
4448
4448
|
water?: MapGenSize,
|
|
4449
4449
|
|
|
4450
4450
|
/**
|
|
4451
|
-
* Width of the map in tiles. Silently limited to 2
|
|
4451
|
+
* Width of the map in tiles. Silently limited to 2 000 000, ie. +/- 1 million tiles from the center in both directions.
|
|
4452
4452
|
*/
|
|
4453
4453
|
width?: number
|
|
4454
4454
|
}
|
|
@@ -6252,7 +6252,7 @@ If a recipe is unlocked via technology, this should be set to `false`.
|
|
|
6252
6252
|
/**
|
|
6253
6253
|
* A table containing ingredient names and counts. Can also contain information about fluid temperature and catalyst amounts. The catalyst amounts are automatically calculated from the recipe, or can be set manually in the IngredientPrototype (see {@link here | https://factorio.com/blog/post/fff-256}).
|
|
6254
6254
|
|
|
6255
|
-
The maximum ingredient amount is
|
|
6255
|
+
The maximum ingredient amount is 65 535. Can be set to an empty table to create a recipe that needs no ingredients.
|
|
6256
6256
|
|
|
6257
6257
|
Duplicate ingredients, e.g. two entries with the same name, are *not* allowed. In-game, the item ingredients are ordered by {@link ItemGroup::order_in_recipe | prototype:ItemGroup::order_in_recipe}.
|
|
6258
6258
|
*/
|