factorio-types 1.2.46 → 1.2.47
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 +7 -6
- package/dist/concepts.d.ts +4 -4
- package/dist/datacollection.d.ts +1 -1
- 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 +14 -3
- package/dist/types.d.ts +4 -4
- package/package.json +2 -2
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 2.0.
|
|
5
|
+
// Factorio version 2.0.65
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -5878,7 +5878,7 @@ interface LuaDecorativePrototype extends LuaPrototypeBase {
|
|
|
5878
5878
|
*/
|
|
5879
5879
|
readonly object_name: string;
|
|
5880
5880
|
readonly placed_effect?: TriggerEffectItem[];
|
|
5881
|
-
readonly render_layer:
|
|
5881
|
+
readonly render_layer: RenderLayer;
|
|
5882
5882
|
readonly target_count: uint;
|
|
5883
5883
|
readonly trigger_effect?: TriggerEffectItem[];
|
|
5884
5884
|
/**
|
|
@@ -7059,7 +7059,7 @@ interface LuaEntity extends LuaControl {
|
|
|
7059
7059
|
/**
|
|
7060
7060
|
* Icon visible on the display panel. Can be written only when it is not set by control behavior.
|
|
7061
7061
|
*/
|
|
7062
|
-
display_panel_icon
|
|
7062
|
+
display_panel_icon?: SignalID;
|
|
7063
7063
|
display_panel_show_in_chart: boolean;
|
|
7064
7064
|
/**
|
|
7065
7065
|
* Text visible on the display panel. Can be written only when it is not set by control behavior.
|
|
@@ -7372,9 +7372,9 @@ interface LuaEntity extends LuaControl {
|
|
|
7372
7372
|
/**
|
|
7373
7373
|
* Not minable entities can still be destroyed.
|
|
7374
7374
|
*
|
|
7375
|
-
* Tells if entity reports as being minable right now. This takes into account minable_flag and entity specific conditions (for example rail under rolling stocks is not minable, vehicle with passenger is not minable).
|
|
7375
|
+
* Tells if entity reports as being minable right now. This takes into account `minable_flag` and entity specific conditions (for example rail under rolling stocks is not minable, vehicle with passenger is not minable).
|
|
7376
7376
|
*
|
|
7377
|
-
* Write to this field since 2.0.26 is deprecated and it will result in write to minable_flag instead.
|
|
7377
|
+
* Write to this field since 2.0.26 is deprecated and it will result in write to `minable_flag` instead.
|
|
7378
7378
|
*/
|
|
7379
7379
|
minable: boolean;
|
|
7380
7380
|
/**
|
|
@@ -8538,6 +8538,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
|
|
|
8538
8538
|
* The max belt stack size for this loader.
|
|
8539
8539
|
*/
|
|
8540
8540
|
readonly loader_max_belt_stack_size?: uint8;
|
|
8541
|
+
readonly loader_respect_insert_limits?: boolean;
|
|
8541
8542
|
/**
|
|
8542
8543
|
* True if this loader will not drop items for which total amount is less than a full belt stack.
|
|
8543
8544
|
*/
|
|
@@ -9654,7 +9655,7 @@ interface LuaFluidBoxPrototype {
|
|
|
9654
9655
|
/**
|
|
9655
9656
|
* The render layer.
|
|
9656
9657
|
*/
|
|
9657
|
-
readonly render_layer:
|
|
9658
|
+
readonly render_layer: RenderLayer;
|
|
9658
9659
|
/**
|
|
9659
9660
|
* The secondary draw orders for the 4 possible connection directions.
|
|
9660
9661
|
*/
|
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 2.0.
|
|
5
|
+
// Factorio version 2.0.65
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -8264,9 +8264,9 @@ interface SelectorCombinatorParametersQualityTransfer extends BaseSelectorCombin
|
|
|
8264
8264
|
'quality_destination_signal': SignalID;
|
|
8265
8265
|
'quality_source_signal'?: SignalIDBase;
|
|
8266
8266
|
/**
|
|
8267
|
-
* Defaults to normal
|
|
8267
|
+
* The name of the quality prototype. Defaults to `"normal"`.
|
|
8268
8268
|
*/
|
|
8269
|
-
'quality_source_static'?:
|
|
8269
|
+
'quality_source_static'?: string;
|
|
8270
8270
|
/**
|
|
8271
8271
|
* Defaults to `false`.
|
|
8272
8272
|
*/
|
|
@@ -8298,7 +8298,7 @@ interface SelectorCombinatorParametersSelect extends BaseSelectorCombinatorParam
|
|
|
8298
8298
|
/**
|
|
8299
8299
|
* The signal index to use if not using a specific `index_signal`. Defaults to `0`.
|
|
8300
8300
|
*/
|
|
8301
|
-
'index_constant'?:
|
|
8301
|
+
'index_constant'?: int;
|
|
8302
8302
|
/**
|
|
8303
8303
|
* The signal to use, if any.
|
|
8304
8304
|
*/
|
package/dist/datacollection.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.65
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
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.0.
|
|
5
|
+
// Factorio version 2.0.65
|
|
6
6
|
// API version 6
|
|
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 2.0.
|
|
5
|
+
// Factorio version 2.0.65
|
|
6
6
|
// API version 6
|
|
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 2.0.
|
|
5
|
+
// Factorio version 2.0.65
|
|
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.65
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -1906,7 +1906,11 @@ interface CorpsePrototype extends EntityPrototype {
|
|
|
1906
1906
|
decay_animation?: RotatedAnimationVariations;
|
|
1907
1907
|
decay_frame_transition_duration?: float;
|
|
1908
1908
|
/**
|
|
1909
|
-
*
|
|
1909
|
+
* May not be an empty array. May not be used if there is no `animation` defined.
|
|
1910
|
+
*
|
|
1911
|
+
* The inner arrays are called "groups" and must all have the same size.
|
|
1912
|
+
*
|
|
1913
|
+
* The indices map to the directions of `animation` and they are 1-indexed. After the `shuffle_directions_at_frame` frame of the `animation`, these indices are used as the direction when choosing which frame to render. The chosen shuffled direction can be any direction in the same group as the non-shuffled direction. Which direction is chosen from the group depends on the shuffle variation which is `dying_graphics_variation % group_size`.
|
|
1910
1914
|
*/
|
|
1911
1915
|
direction_shuffle?: uint16[][];
|
|
1912
1916
|
/**
|
|
@@ -1927,6 +1931,9 @@ interface CorpsePrototype extends EntityPrototype {
|
|
|
1927
1931
|
ground_patch_render_layer?: RenderLayer;
|
|
1928
1932
|
remove_on_entity_placement?: boolean;
|
|
1929
1933
|
remove_on_tile_placement?: boolean;
|
|
1934
|
+
/**
|
|
1935
|
+
* Defines after which frame in the `animation` the `direction_shuffle` should be applied. Can be set to `0`, frames are 1-indexed.
|
|
1936
|
+
*/
|
|
1930
1937
|
shuffle_directions_at_frame?: uint8;
|
|
1931
1938
|
splash?: AnimationVariations;
|
|
1932
1939
|
splash_render_layer?: RenderLayer;
|
|
@@ -3180,6 +3187,7 @@ interface EntityPrototype extends Prototype {
|
|
|
3180
3187
|
*/
|
|
3181
3188
|
deconstruction_alternative?: EntityID;
|
|
3182
3189
|
diagonal_tile_grid_size?: TilePosition;
|
|
3190
|
+
draw_stateless_visualisations_in_ghost?: boolean;
|
|
3183
3191
|
/**
|
|
3184
3192
|
* Specification of extra vertical space needed to see the whole entity in GUIs. This is used to calculate the correct zoom and positioning in the entity info gui, for example in the entity tooltip.
|
|
3185
3193
|
* @example ```
|
|
@@ -5408,6 +5416,7 @@ interface LoaderPrototype extends TransportBeltConnectablePrototype {
|
|
|
5408
5416
|
* If filters are per lane. Can only be set to true if filter_count is equal to 2.
|
|
5409
5417
|
*/
|
|
5410
5418
|
per_lane_filters?: boolean;
|
|
5419
|
+
respect_insert_limits?: boolean;
|
|
5411
5420
|
structure?: LoaderStructure;
|
|
5412
5421
|
structure_render_layer?: RenderLayer;
|
|
5413
5422
|
/**
|
|
@@ -6570,6 +6579,8 @@ interface QualityPrototype extends Prototype {
|
|
|
6570
6579
|
science_pack_drain_multiplier?: float;
|
|
6571
6580
|
/**
|
|
6572
6581
|
* Must be >= 0.01.
|
|
6582
|
+
*
|
|
6583
|
+
* Affects the durability of {@link tool items | prototype:ToolPrototype} like science packs, repair tools and armor.
|
|
6573
6584
|
*/
|
|
6574
6585
|
tool_durability_multiplier?: double;
|
|
6575
6586
|
}
|
|
@@ -9846,7 +9857,7 @@ interface TutorialDefinition extends PrototypeBase {
|
|
|
9846
9857
|
*/
|
|
9847
9858
|
order?: Order;
|
|
9848
9859
|
/**
|
|
9849
|
-
* Name of the folder for this tutorial scenario in the {@link `tutorials` folder |
|
|
9860
|
+
* Name of the folder for this tutorial scenario in the {@link `tutorials` folder | runtime:mod-structure}.
|
|
9850
9861
|
*/
|
|
9851
9862
|
scenario: string;
|
|
9852
9863
|
}
|
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.65
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -4961,6 +4961,9 @@ interface FrequencySizeRichness {
|
|
|
4961
4961
|
type FuelCategoryID = string;
|
|
4962
4962
|
interface FusionGeneratorDirectionGraphicsSet {
|
|
4963
4963
|
animation?: Animation;
|
|
4964
|
+
/**
|
|
4965
|
+
* The amount of items in this array has to match the amount of {@link input fluid connections | prototype:FusionGeneratorPrototype::input_fluid_box}. Empty tables can be used as items to fulfill this requirement without defining graphics.
|
|
4966
|
+
*/
|
|
4964
4967
|
fluid_input_graphics?: FusionGeneratorFluidInputGraphics[];
|
|
4965
4968
|
fusion_effect_uv_map?: Sprite;
|
|
4966
4969
|
working_light?: Animation;
|
|
@@ -5225,9 +5228,6 @@ interface HeatEnergySource extends BaseEnergySource {
|
|
|
5225
5228
|
*/
|
|
5226
5229
|
connections?: HeatConnection[];
|
|
5227
5230
|
default_temperature?: double;
|
|
5228
|
-
/**
|
|
5229
|
-
* Heat energy sources do not support producing pollution.
|
|
5230
|
-
*/
|
|
5231
5231
|
emissions_per_minute?: Record<AirbornePollutantID, double>;
|
|
5232
5232
|
heat_glow?: Sprite4Way;
|
|
5233
5233
|
heat_picture?: Sprite4Way;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "factorio-types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.47",
|
|
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.65",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"lua-types": "^2.13.1"
|
|
29
29
|
},
|