factorio-types 1.2.27 → 1.2.28
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 +2 -1
- package/dist/concepts.d.ts +1 -1
- 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 +390 -385
- package/dist/types.d.ts +379 -383
- package/package.json +2 -2
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.41
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -71,7 +71,7 @@ interface ActivityBarStyleSpecification extends BaseStyleSpecification {
|
|
|
71
71
|
type: 'activity_bar_style';
|
|
72
72
|
}
|
|
73
73
|
interface ActivityMatchingModifiers {
|
|
74
|
-
inverted?:
|
|
74
|
+
inverted?: boolean;
|
|
75
75
|
maximum?: float;
|
|
76
76
|
/**
|
|
77
77
|
* Cannot be larger than `maximum`.
|
|
@@ -109,7 +109,7 @@ interface AggregationSpecification {
|
|
|
109
109
|
/**
|
|
110
110
|
* If `true`, already playing sounds are taken into account when checking `max_count`.
|
|
111
111
|
*/
|
|
112
|
-
count_already_playing?:
|
|
112
|
+
count_already_playing?: boolean;
|
|
113
113
|
max_count: uint32;
|
|
114
114
|
priority?: 'closest' | 'farthest' | 'newest' | 'oldest';
|
|
115
115
|
/**
|
|
@@ -121,7 +121,7 @@ interface AggregationSpecification {
|
|
|
121
121
|
*
|
|
122
122
|
* If `true`, sound instances above `max_count` are removed.
|
|
123
123
|
*/
|
|
124
|
-
remove:
|
|
124
|
+
remove: boolean;
|
|
125
125
|
/**
|
|
126
126
|
* Has to be greater than or equal to 0.0.
|
|
127
127
|
*/
|
|
@@ -155,7 +155,7 @@ interface AgriculturalCraneSpeedArm {
|
|
|
155
155
|
turn_rate?: double;
|
|
156
156
|
}
|
|
157
157
|
interface AgriculturalCraneSpeedGrappler {
|
|
158
|
-
allow_transpolar_movement?:
|
|
158
|
+
allow_transpolar_movement?: boolean;
|
|
159
159
|
/**
|
|
160
160
|
* Must be positive.
|
|
161
161
|
*/
|
|
@@ -216,7 +216,7 @@ interface AmmoDamageModifier extends BaseModifier {
|
|
|
216
216
|
/**
|
|
217
217
|
* If set to `false`, use the icon from {@link UtilitySprites | prototype:UtilitySprites} for this technology effect icon.
|
|
218
218
|
*/
|
|
219
|
-
infer_icon?:
|
|
219
|
+
infer_icon?: boolean;
|
|
220
220
|
/**
|
|
221
221
|
* Modification value, which will be added to the current ammo damage modifier upon researching.
|
|
222
222
|
*/
|
|
@@ -225,7 +225,7 @@ interface AmmoDamageModifier extends BaseModifier {
|
|
|
225
225
|
/**
|
|
226
226
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
227
227
|
*/
|
|
228
|
-
use_icon_overlay_constant?:
|
|
228
|
+
use_icon_overlay_constant?: boolean;
|
|
229
229
|
}
|
|
230
230
|
/**
|
|
231
231
|
* Used to allow specifying different ammo effects depending on which kind of entity the ammo is used in.
|
|
@@ -244,7 +244,7 @@ interface AmmoType {
|
|
|
244
244
|
/**
|
|
245
245
|
* When true, the gun will be able to shoot even when the target is out of range. Only applies when `target_type` equals `"position"`. The gun will fire at the maximum range in the direction of the target position.
|
|
246
246
|
*/
|
|
247
|
-
clamp_position?:
|
|
247
|
+
clamp_position?: boolean;
|
|
248
248
|
consumption_modifier?: float;
|
|
249
249
|
cooldown_modifier?: double;
|
|
250
250
|
/**
|
|
@@ -378,9 +378,9 @@ type Animation4Way = {
|
|
|
378
378
|
west?: Animation;
|
|
379
379
|
} | Animation;
|
|
380
380
|
interface AnimationElement {
|
|
381
|
-
always_draw?:
|
|
381
|
+
always_draw?: boolean;
|
|
382
382
|
animation?: Animation;
|
|
383
|
-
apply_tint?:
|
|
383
|
+
apply_tint?: boolean;
|
|
384
384
|
render_layer?: RenderLayer;
|
|
385
385
|
/**
|
|
386
386
|
* Used to determine render order for sprites with the same `render_layer` in the same position. Sprites with a higher `secondary_draw_order` are drawn on top.
|
|
@@ -450,7 +450,7 @@ interface AnimationParameters extends SpriteParameters {
|
|
|
450
450
|
/**
|
|
451
451
|
* Unused.
|
|
452
452
|
*/
|
|
453
|
-
generate_sdf?:
|
|
453
|
+
generate_sdf?: boolean;
|
|
454
454
|
/**
|
|
455
455
|
* Mandatory if `size` is not defined.
|
|
456
456
|
*
|
|
@@ -1349,29 +1349,29 @@ interface ApplyStarterPackTipTrigger extends CountBasedTipTrigger {
|
|
|
1349
1349
|
interface AreaTriggerItem extends TriggerItem {
|
|
1350
1350
|
collision_mode?: 'distance-from-collision-box' | 'distance-from-center';
|
|
1351
1351
|
radius: double;
|
|
1352
|
-
show_in_tooltip?:
|
|
1353
|
-
target_enemies?:
|
|
1354
|
-
target_entities?:
|
|
1355
|
-
trigger_from_target?:
|
|
1352
|
+
show_in_tooltip?: boolean;
|
|
1353
|
+
target_enemies?: boolean;
|
|
1354
|
+
target_entities?: boolean;
|
|
1355
|
+
trigger_from_target?: boolean;
|
|
1356
1356
|
type: 'area';
|
|
1357
1357
|
}
|
|
1358
1358
|
interface ArtilleryRangeModifier extends SimpleModifier {
|
|
1359
1359
|
/**
|
|
1360
1360
|
* If set to `false`, use the icon from {@link UtilitySprites | prototype:UtilitySprites} for this technology effect icon.
|
|
1361
1361
|
*/
|
|
1362
|
-
infer_icon?:
|
|
1362
|
+
infer_icon?: boolean;
|
|
1363
1363
|
type: 'artillery-range';
|
|
1364
1364
|
/**
|
|
1365
1365
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
1366
1366
|
*/
|
|
1367
|
-
use_icon_overlay_constant?:
|
|
1367
|
+
use_icon_overlay_constant?: boolean;
|
|
1368
1368
|
}
|
|
1369
1369
|
interface ArtilleryRemoteCapsuleAction {
|
|
1370
1370
|
/**
|
|
1371
1371
|
* Name of an {@link ArtilleryFlarePrototype | prototype:ArtilleryFlarePrototype}.
|
|
1372
1372
|
*/
|
|
1373
1373
|
flare: EntityID;
|
|
1374
|
-
play_sound_on_failure?:
|
|
1374
|
+
play_sound_on_failure?: boolean;
|
|
1375
1375
|
type: 'artillery-remote';
|
|
1376
1376
|
}
|
|
1377
1377
|
interface ArtilleryTriggerDelivery extends TriggerDeliveryItem {
|
|
@@ -1386,7 +1386,7 @@ interface ArtilleryTriggerDelivery extends TriggerDeliveryItem {
|
|
|
1386
1386
|
range_deviation?: float;
|
|
1387
1387
|
starting_speed: float;
|
|
1388
1388
|
starting_speed_deviation?: float;
|
|
1389
|
-
trigger_fired_artillery?:
|
|
1389
|
+
trigger_fired_artillery?: boolean;
|
|
1390
1390
|
type: 'artillery';
|
|
1391
1391
|
}
|
|
1392
1392
|
/**
|
|
@@ -1491,7 +1491,7 @@ interface AutoplaceSettings {
|
|
|
1491
1491
|
/**
|
|
1492
1492
|
* Whether missing autoplace names for this type should be default enabled.
|
|
1493
1493
|
*/
|
|
1494
|
-
treat_missing_as_default?:
|
|
1494
|
+
treat_missing_as_default?: boolean;
|
|
1495
1495
|
}
|
|
1496
1496
|
/**
|
|
1497
1497
|
* Autoplace specification is used to determine which entities are placed when generating map. Currently it is used for enemy bases, tiles, resources and other entities (trees, fishes, etc.).
|
|
@@ -1508,7 +1508,7 @@ interface AutoplaceSpecification {
|
|
|
1508
1508
|
*
|
|
1509
1509
|
* If true, normal frequency/size/richness (`value=1`) are used in that case. Otherwise it is treated as if 'none' were selected.
|
|
1510
1510
|
*/
|
|
1511
|
-
default_enabled?:
|
|
1511
|
+
default_enabled?: boolean;
|
|
1512
1512
|
/**
|
|
1513
1513
|
* Force of the placed entity. Can be a custom force name. Only relevant for {@link EntityWithOwnerPrototype | prototype:EntityWithOwnerPrototype}.
|
|
1514
1514
|
*/
|
|
@@ -1632,12 +1632,12 @@ interface BaseAttackParameters {
|
|
|
1632
1632
|
/**
|
|
1633
1633
|
* Projectile will be creation position and orientation will be collinear with shooter and target (unless offset projectile center is specified). Used for railgun turrets to avoid unexpected friendly fire incidents.
|
|
1634
1634
|
*/
|
|
1635
|
-
true_collinear_ejection?:
|
|
1635
|
+
true_collinear_ejection?: boolean;
|
|
1636
1636
|
/**
|
|
1637
1637
|
* If this is <= 0, it is set to 1. Arc from 0 to 1, so for example 0.25 is 90°. Used by the {@link flamethrower turret | https://wiki.factorio.com/Flamethrower_turret} in the base game. Arcs greater than 0.5 but less than 1 will be clamped to 0.5 as targeting in arcs larger than half circle is {@link not implemented | https://forums.factorio.com/94654}.
|
|
1638
1638
|
*/
|
|
1639
1639
|
turn_range?: float;
|
|
1640
|
-
use_shooter_direction?:
|
|
1640
|
+
use_shooter_direction?: boolean;
|
|
1641
1641
|
/**
|
|
1642
1642
|
* Number of ticks it takes for the weapon to actually shoot after the order for shooting has been made. This also allows to "adjust" the shooting animation to the effect of shooting.
|
|
1643
1643
|
*
|
|
@@ -1656,17 +1656,17 @@ interface BaseEnergySource {
|
|
|
1656
1656
|
/**
|
|
1657
1657
|
* Whether to render the "no network" icon if the entity is not connected to an electric network.
|
|
1658
1658
|
*/
|
|
1659
|
-
render_no_network_icon?:
|
|
1659
|
+
render_no_network_icon?: boolean;
|
|
1660
1660
|
/**
|
|
1661
1661
|
* Whether to render the "no power" icon if the entity is low on power. Also applies to the "no fuel" icon when using burner energy sources.
|
|
1662
1662
|
*/
|
|
1663
|
-
render_no_power_icon?:
|
|
1663
|
+
render_no_power_icon?: boolean;
|
|
1664
1664
|
}
|
|
1665
1665
|
/**
|
|
1666
1666
|
* The abstract base of all {@link Modifiers | prototype:Modifier}.
|
|
1667
1667
|
*/
|
|
1668
1668
|
interface BaseModifier {
|
|
1669
|
-
hidden?:
|
|
1669
|
+
hidden?: boolean;
|
|
1670
1670
|
/**
|
|
1671
1671
|
* Path to the icon file.
|
|
1672
1672
|
*
|
|
@@ -1712,7 +1712,7 @@ interface BaseStyleSpecification {
|
|
|
1712
1712
|
horizontal_align?: HorizontalAlign;
|
|
1713
1713
|
horizontally_squashable?: StretchRule;
|
|
1714
1714
|
horizontally_stretchable?: StretchRule;
|
|
1715
|
-
ignored_by_search?:
|
|
1715
|
+
ignored_by_search?: boolean;
|
|
1716
1716
|
left_margin?: int16;
|
|
1717
1717
|
left_padding?: int16;
|
|
1718
1718
|
/**
|
|
@@ -1750,7 +1750,7 @@ interface BaseStyleSpecification {
|
|
|
1750
1750
|
* Natural width specifies the width of the element tries to have, but it can still be squashed/stretched to have a different size.
|
|
1751
1751
|
*/
|
|
1752
1752
|
natural_width?: uint32;
|
|
1753
|
-
never_hide_by_search?:
|
|
1753
|
+
never_hide_by_search?: boolean;
|
|
1754
1754
|
/**
|
|
1755
1755
|
* Sets `top_padding`, `right_padding`, `bottom_padding` and `left_padding` to the same value.
|
|
1756
1756
|
*/
|
|
@@ -1785,12 +1785,12 @@ interface BeaconDistributionModifier extends SimpleModifier {
|
|
|
1785
1785
|
/**
|
|
1786
1786
|
* If set to `false`, use the icon from {@link UtilitySprites | prototype:UtilitySprites} for this technology effect icon.
|
|
1787
1787
|
*/
|
|
1788
|
-
infer_icon?:
|
|
1788
|
+
infer_icon?: boolean;
|
|
1789
1789
|
type: 'beacon-distribution';
|
|
1790
1790
|
/**
|
|
1791
1791
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
1792
1792
|
*/
|
|
1793
|
-
use_icon_overlay_constant?:
|
|
1793
|
+
use_icon_overlay_constant?: boolean;
|
|
1794
1794
|
}
|
|
1795
1795
|
interface BeaconGraphicsSet {
|
|
1796
1796
|
animation_layer?: RenderLayer;
|
|
@@ -1801,19 +1801,19 @@ interface BeaconGraphicsSet {
|
|
|
1801
1801
|
*/
|
|
1802
1802
|
apply_module_tint?: ModuleTint;
|
|
1803
1803
|
base_layer?: RenderLayer;
|
|
1804
|
-
draw_animation_when_idle?:
|
|
1805
|
-
draw_light_when_idle?:
|
|
1804
|
+
draw_animation_when_idle?: boolean;
|
|
1805
|
+
draw_light_when_idle?: boolean;
|
|
1806
1806
|
frozen_patch?: Sprite;
|
|
1807
1807
|
light?: LightDefinition;
|
|
1808
|
-
module_icons_suppressed?:
|
|
1808
|
+
module_icons_suppressed?: boolean;
|
|
1809
1809
|
module_tint_mode?: 'single-module' | 'mix';
|
|
1810
1810
|
/**
|
|
1811
1811
|
* The visualisations available for displaying the modules in the beacon. The visualisation is chosen based on art style, see {@link BeaconModuleVisualizations::art_style | prototype:BeaconModuleVisualizations::art_style} and {@link ModulePrototype::art_style | prototype:ModulePrototype::art_style}.
|
|
1812
1812
|
*/
|
|
1813
1813
|
module_visualisations?: BeaconModuleVisualizations[];
|
|
1814
1814
|
no_modules_tint?: Color;
|
|
1815
|
-
random_animation_offset?:
|
|
1816
|
-
reset_animation_when_frozen?:
|
|
1815
|
+
random_animation_offset?: boolean;
|
|
1816
|
+
reset_animation_when_frozen?: boolean;
|
|
1817
1817
|
top_layer?: RenderLayer;
|
|
1818
1818
|
}
|
|
1819
1819
|
interface BeaconModuleVisualization {
|
|
@@ -1821,7 +1821,7 @@ interface BeaconModuleVisualization {
|
|
|
1821
1821
|
* Which tint set in {@link ModulePrototype::beacon_tint | prototype:ModulePrototype::beacon_tint} should be applied to this, if any.
|
|
1822
1822
|
*/
|
|
1823
1823
|
apply_module_tint?: ModuleTint;
|
|
1824
|
-
has_empty_slot?:
|
|
1824
|
+
has_empty_slot?: boolean;
|
|
1825
1825
|
pictures?: SpriteVariations;
|
|
1826
1826
|
render_layer?: RenderLayer;
|
|
1827
1827
|
/**
|
|
@@ -1863,7 +1863,7 @@ interface BeaconModuleVisualizations {
|
|
|
1863
1863
|
*/
|
|
1864
1864
|
slots?: BeaconModuleVisualization[][];
|
|
1865
1865
|
tier_offset?: int32;
|
|
1866
|
-
use_for_empty_slots?:
|
|
1866
|
+
use_for_empty_slots?: boolean;
|
|
1867
1867
|
}
|
|
1868
1868
|
interface BeaconVisualizationTints {
|
|
1869
1869
|
primary?: Color;
|
|
@@ -1906,17 +1906,17 @@ interface BeamGraphicsSet {
|
|
|
1906
1906
|
*/
|
|
1907
1907
|
desired_segment_length?: float;
|
|
1908
1908
|
ground?: BeamAnimationSet;
|
|
1909
|
-
random_end_animation_rotation?:
|
|
1910
|
-
randomize_animation_per_segment?:
|
|
1911
|
-
transparent_start_end_animations?:
|
|
1909
|
+
random_end_animation_rotation?: boolean;
|
|
1910
|
+
randomize_animation_per_segment?: boolean;
|
|
1911
|
+
transparent_start_end_animations?: boolean;
|
|
1912
1912
|
}
|
|
1913
1913
|
interface BeamTriggerDelivery extends TriggerDeliveryItem {
|
|
1914
|
-
add_to_shooter?:
|
|
1914
|
+
add_to_shooter?: boolean;
|
|
1915
1915
|
/**
|
|
1916
1916
|
* Name of a {@link BeamPrototype | prototype:BeamPrototype}.
|
|
1917
1917
|
*/
|
|
1918
1918
|
beam: EntityID;
|
|
1919
|
-
destroy_with_source_or_target?:
|
|
1919
|
+
destroy_with_source_or_target?: boolean;
|
|
1920
1920
|
duration?: uint32;
|
|
1921
1921
|
max_length?: uint32;
|
|
1922
1922
|
source_offset?: Vector;
|
|
@@ -1934,7 +1934,7 @@ interface BeltStackSizeBonusModifier extends SimpleModifier {
|
|
|
1934
1934
|
/**
|
|
1935
1935
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
1936
1936
|
*/
|
|
1937
|
-
use_icon_overlay_constant?:
|
|
1937
|
+
use_icon_overlay_constant?: boolean;
|
|
1938
1938
|
}
|
|
1939
1939
|
interface BeltTraverseTipTrigger extends CountBasedTipTrigger {
|
|
1940
1940
|
type: 'belt-traverse';
|
|
@@ -2006,7 +2006,7 @@ interface BoolModifier extends BaseModifier {
|
|
|
2006
2006
|
/**
|
|
2007
2007
|
* The value this modifier will have upon researching.
|
|
2008
2008
|
*/
|
|
2009
|
-
modifier:
|
|
2009
|
+
modifier: boolean;
|
|
2010
2010
|
}
|
|
2011
2011
|
interface BorderImageSet {
|
|
2012
2012
|
border_width?: int32;
|
|
@@ -2061,7 +2061,7 @@ interface BoxSpecification {
|
|
|
2061
2061
|
/**
|
|
2062
2062
|
* Whether this is a complete box or just the top left corner. If this is true, `side_length` and `side_height` must be present. Otherwise `max_side_length` must be present.
|
|
2063
2063
|
*/
|
|
2064
|
-
is_whole_box?:
|
|
2064
|
+
is_whole_box?: boolean;
|
|
2065
2065
|
/**
|
|
2066
2066
|
* Only loaded, and mandatory if `is_whole_box` is `false`.
|
|
2067
2067
|
*/
|
|
@@ -2084,15 +2084,15 @@ interface BuildEntityTechnologyTrigger {
|
|
|
2084
2084
|
type: 'build-entity';
|
|
2085
2085
|
}
|
|
2086
2086
|
interface BuildEntityTipTrigger extends CountBasedTipTrigger {
|
|
2087
|
-
build_by_dragging?:
|
|
2088
|
-
build_in_line?:
|
|
2087
|
+
build_by_dragging?: boolean;
|
|
2088
|
+
build_in_line?: boolean;
|
|
2089
2089
|
/**
|
|
2090
2090
|
* Building is considered consecutive when the built entity is the same as the last built entity.
|
|
2091
2091
|
*/
|
|
2092
|
-
consecutive?:
|
|
2092
|
+
consecutive?: boolean;
|
|
2093
2093
|
entity?: EntityID;
|
|
2094
|
-
linear_power_pole_line?:
|
|
2095
|
-
match_type_only?:
|
|
2094
|
+
linear_power_pole_line?: boolean;
|
|
2095
|
+
match_type_only?: boolean;
|
|
2096
2096
|
quality?: QualityID;
|
|
2097
2097
|
type: 'build-entity';
|
|
2098
2098
|
}
|
|
@@ -2101,12 +2101,12 @@ interface BulkInserterCapacityBonusModifier extends SimpleModifier {
|
|
|
2101
2101
|
/**
|
|
2102
2102
|
* If set to `false`, use the icon from {@link UtilitySprites | prototype:UtilitySprites} for this technology effect icon.
|
|
2103
2103
|
*/
|
|
2104
|
-
infer_icon?:
|
|
2104
|
+
infer_icon?: boolean;
|
|
2105
2105
|
type: 'bulk-inserter-capacity-bonus';
|
|
2106
2106
|
/**
|
|
2107
2107
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2108
2108
|
*/
|
|
2109
|
-
use_icon_overlay_constant?:
|
|
2109
|
+
use_icon_overlay_constant?: boolean;
|
|
2110
2110
|
}
|
|
2111
2111
|
interface BurnerEnergySource extends BaseEnergySource {
|
|
2112
2112
|
burner_usage?: BurnerUsageID;
|
|
@@ -2141,16 +2141,16 @@ interface ButtonStyleSpecificationBase extends StyleWithClickableGraphicalSetSpe
|
|
|
2141
2141
|
clicked_vertical_offset?: uint32;
|
|
2142
2142
|
default_font_color?: Color;
|
|
2143
2143
|
disabled_font_color?: Color;
|
|
2144
|
-
draw_grayscale_picture?:
|
|
2145
|
-
draw_shadow_under_picture?:
|
|
2144
|
+
draw_grayscale_picture?: boolean;
|
|
2145
|
+
draw_shadow_under_picture?: boolean;
|
|
2146
2146
|
/**
|
|
2147
2147
|
* Name of a {@link FontPrototype | prototype:FontPrototype}.
|
|
2148
2148
|
*/
|
|
2149
2149
|
font?: string;
|
|
2150
2150
|
hovered_font_color?: Color;
|
|
2151
2151
|
icon_horizontal_align?: HorizontalAlign;
|
|
2152
|
-
invert_colors_of_picture_when_disabled?:
|
|
2153
|
-
invert_colors_of_picture_when_hovered_or_toggled?:
|
|
2152
|
+
invert_colors_of_picture_when_disabled?: boolean;
|
|
2153
|
+
invert_colors_of_picture_when_hovered_or_toggled?: boolean;
|
|
2154
2154
|
pie_progress_color?: Color;
|
|
2155
2155
|
selected_clicked_font_color?: Color;
|
|
2156
2156
|
selected_font_color?: Color;
|
|
@@ -2268,7 +2268,7 @@ interface CargoLandingPadLimitModifier extends SimpleModifier {
|
|
|
2268
2268
|
/**
|
|
2269
2269
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2270
2270
|
*/
|
|
2271
|
-
use_icon_overlay_constant?:
|
|
2271
|
+
use_icon_overlay_constant?: boolean;
|
|
2272
2272
|
}
|
|
2273
2273
|
/**
|
|
2274
2274
|
* A cargo station is any entity that has the capacity to send cargo units. In Space Age those are {@link RocketSiloPrototype | prototype:RocketSiloPrototype}, {@link SpacePlatformHubPrototype | prototype:SpacePlatformHubPrototype} and {@link CargoLandingPadPrototype | prototype:CargoLandingPadPrototype}. {@link Cargo bays | prototype:CargoBayPrototype} may provide additional cargo hatches to cargo stations which are cargo bay connectable.
|
|
@@ -2282,7 +2282,7 @@ interface CargoStationParameters {
|
|
|
2282
2282
|
/**
|
|
2283
2283
|
* Packed cargo units will wait for the full order to be completed. This is useful to save rockets in rocket silos when items trickle in slowly. The platform hub has immediate access to items so false is better to allow partial fulfillments.
|
|
2284
2284
|
*/
|
|
2285
|
-
prefer_packed_cargo_units?:
|
|
2285
|
+
prefer_packed_cargo_units?: boolean;
|
|
2286
2286
|
}
|
|
2287
2287
|
interface ChainTriggerDelivery extends TriggerDeliveryItem {
|
|
2288
2288
|
chain: ActiveTriggerID;
|
|
@@ -2295,7 +2295,7 @@ interface ChangeRecipeProductivityModifier extends BaseModifier {
|
|
|
2295
2295
|
/**
|
|
2296
2296
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2297
2297
|
*/
|
|
2298
|
-
use_icon_overlay_constant?:
|
|
2298
|
+
use_icon_overlay_constant?: boolean;
|
|
2299
2299
|
}
|
|
2300
2300
|
interface ChangeSurfaceTipTrigger extends CountBasedTipTrigger {
|
|
2301
2301
|
surface: string;
|
|
@@ -2354,95 +2354,95 @@ interface CharacterBuildDistanceModifier extends SimpleModifier {
|
|
|
2354
2354
|
/**
|
|
2355
2355
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2356
2356
|
*/
|
|
2357
|
-
use_icon_overlay_constant?:
|
|
2357
|
+
use_icon_overlay_constant?: boolean;
|
|
2358
2358
|
}
|
|
2359
2359
|
interface CharacterCraftingSpeedModifier extends SimpleModifier {
|
|
2360
2360
|
type: 'character-crafting-speed';
|
|
2361
2361
|
/**
|
|
2362
2362
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2363
2363
|
*/
|
|
2364
|
-
use_icon_overlay_constant?:
|
|
2364
|
+
use_icon_overlay_constant?: boolean;
|
|
2365
2365
|
}
|
|
2366
2366
|
interface CharacterHealthBonusModifier extends SimpleModifier {
|
|
2367
2367
|
type: 'character-health-bonus';
|
|
2368
2368
|
/**
|
|
2369
2369
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2370
2370
|
*/
|
|
2371
|
-
use_icon_overlay_constant?:
|
|
2371
|
+
use_icon_overlay_constant?: boolean;
|
|
2372
2372
|
}
|
|
2373
2373
|
interface CharacterInventorySlotsBonusModifier extends SimpleModifier {
|
|
2374
2374
|
type: 'character-inventory-slots-bonus';
|
|
2375
2375
|
/**
|
|
2376
2376
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2377
2377
|
*/
|
|
2378
|
-
use_icon_overlay_constant?:
|
|
2378
|
+
use_icon_overlay_constant?: boolean;
|
|
2379
2379
|
}
|
|
2380
2380
|
interface CharacterItemDropDistanceModifier extends SimpleModifier {
|
|
2381
2381
|
type: 'character-item-drop-distance';
|
|
2382
2382
|
/**
|
|
2383
2383
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2384
2384
|
*/
|
|
2385
|
-
use_icon_overlay_constant?:
|
|
2385
|
+
use_icon_overlay_constant?: boolean;
|
|
2386
2386
|
}
|
|
2387
2387
|
interface CharacterItemPickupDistanceModifier extends SimpleModifier {
|
|
2388
2388
|
type: 'character-item-pickup-distance';
|
|
2389
2389
|
/**
|
|
2390
2390
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2391
2391
|
*/
|
|
2392
|
-
use_icon_overlay_constant?:
|
|
2392
|
+
use_icon_overlay_constant?: boolean;
|
|
2393
2393
|
}
|
|
2394
2394
|
interface CharacterLogisticRequestsModifier extends BoolModifier {
|
|
2395
2395
|
type: 'character-logistic-requests';
|
|
2396
2396
|
/**
|
|
2397
2397
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2398
2398
|
*/
|
|
2399
|
-
use_icon_overlay_constant?:
|
|
2399
|
+
use_icon_overlay_constant?: boolean;
|
|
2400
2400
|
}
|
|
2401
2401
|
interface CharacterLogisticTrashSlotsModifier extends SimpleModifier {
|
|
2402
2402
|
type: 'character-logistic-trash-slots';
|
|
2403
2403
|
/**
|
|
2404
2404
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2405
2405
|
*/
|
|
2406
|
-
use_icon_overlay_constant?:
|
|
2406
|
+
use_icon_overlay_constant?: boolean;
|
|
2407
2407
|
}
|
|
2408
2408
|
interface CharacterLootPickupDistanceModifier extends SimpleModifier {
|
|
2409
2409
|
type: 'character-loot-pickup-distance';
|
|
2410
2410
|
/**
|
|
2411
2411
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2412
2412
|
*/
|
|
2413
|
-
use_icon_overlay_constant?:
|
|
2413
|
+
use_icon_overlay_constant?: boolean;
|
|
2414
2414
|
}
|
|
2415
2415
|
interface CharacterMiningSpeedModifier extends SimpleModifier {
|
|
2416
2416
|
type: 'character-mining-speed';
|
|
2417
2417
|
/**
|
|
2418
2418
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2419
2419
|
*/
|
|
2420
|
-
use_icon_overlay_constant?:
|
|
2420
|
+
use_icon_overlay_constant?: boolean;
|
|
2421
2421
|
}
|
|
2422
2422
|
interface CharacterReachDistanceModifier extends SimpleModifier {
|
|
2423
2423
|
type: 'character-reach-distance';
|
|
2424
2424
|
/**
|
|
2425
2425
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2426
2426
|
*/
|
|
2427
|
-
use_icon_overlay_constant?:
|
|
2427
|
+
use_icon_overlay_constant?: boolean;
|
|
2428
2428
|
}
|
|
2429
2429
|
interface CharacterResourceReachDistanceModifier extends SimpleModifier {
|
|
2430
2430
|
type: 'character-resource-reach-distance';
|
|
2431
2431
|
/**
|
|
2432
2432
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2433
2433
|
*/
|
|
2434
|
-
use_icon_overlay_constant?:
|
|
2434
|
+
use_icon_overlay_constant?: boolean;
|
|
2435
2435
|
}
|
|
2436
2436
|
interface CharacterRunningSpeedModifier extends SimpleModifier {
|
|
2437
2437
|
type: 'character-running-speed';
|
|
2438
2438
|
/**
|
|
2439
2439
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2440
2440
|
*/
|
|
2441
|
-
use_icon_overlay_constant?:
|
|
2441
|
+
use_icon_overlay_constant?: boolean;
|
|
2442
2442
|
}
|
|
2443
2443
|
interface ChargableGraphics {
|
|
2444
2444
|
charge_animation?: Animation;
|
|
2445
|
-
charge_animation_is_looped?:
|
|
2445
|
+
charge_animation_is_looped?: boolean;
|
|
2446
2446
|
charge_cooldown?: uint16;
|
|
2447
2447
|
charge_light?: LightDefinition;
|
|
2448
2448
|
discharge_animation?: Animation;
|
|
@@ -2575,7 +2575,7 @@ interface CircuitNetworkModifier extends BoolModifier {
|
|
|
2575
2575
|
/**
|
|
2576
2576
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2577
2577
|
*/
|
|
2578
|
-
use_icon_overlay_constant?:
|
|
2578
|
+
use_icon_overlay_constant?: boolean;
|
|
2579
2579
|
}
|
|
2580
2580
|
interface CircularParticleCreationSpecification {
|
|
2581
2581
|
center?: Vector;
|
|
@@ -2590,7 +2590,7 @@ interface CircularParticleCreationSpecification {
|
|
|
2590
2590
|
speed_deviation?: float;
|
|
2591
2591
|
starting_frame_speed: float;
|
|
2592
2592
|
starting_frame_speed_deviation?: float;
|
|
2593
|
-
use_source_position?:
|
|
2593
|
+
use_source_position?: boolean;
|
|
2594
2594
|
vertical_speed?: float;
|
|
2595
2595
|
vertical_speed_deviation?: float;
|
|
2596
2596
|
}
|
|
@@ -2606,7 +2606,7 @@ interface CliffDeconstructionEnabledModifier extends BoolModifier {
|
|
|
2606
2606
|
/**
|
|
2607
2607
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
2608
2608
|
*/
|
|
2609
|
-
use_icon_overlay_constant?:
|
|
2609
|
+
use_icon_overlay_constant?: boolean;
|
|
2610
2610
|
}
|
|
2611
2611
|
interface CliffPlacementSettings {
|
|
2612
2612
|
/**
|
|
@@ -2722,11 +2722,11 @@ interface CollisionMaskConnector {
|
|
|
2722
2722
|
/**
|
|
2723
2723
|
* Any prototype with this collision option will only be checked for collision with other prototype's collision masks if they are a tile.
|
|
2724
2724
|
*/
|
|
2725
|
-
colliding_with_tiles_only?:
|
|
2725
|
+
colliding_with_tiles_only?: boolean;
|
|
2726
2726
|
/**
|
|
2727
2727
|
* Uses the prototypes position rather than its collision box when doing collision checks with tile prototypes. Allows the prototype to overlap colliding tiles up until its center point. This is only respected for character movement and cars driven by players.
|
|
2728
2728
|
*/
|
|
2729
|
-
consider_tile_transitions?:
|
|
2729
|
+
consider_tile_transitions?: boolean;
|
|
2730
2730
|
/**
|
|
2731
2731
|
* Every key in the dictionary is the name of one {@link layer | prototype:CollisionLayerPrototype} the object collides with. The value is meaningless and always `true`. An empty table means that no layers are set.
|
|
2732
2732
|
*/
|
|
@@ -2734,7 +2734,7 @@ interface CollisionMaskConnector {
|
|
|
2734
2734
|
/**
|
|
2735
2735
|
* Any two entities that both have this option enabled on their prototype and have an identical collision mask layers list will not collide. Other collision mask options are not included in the identical layer list check. This does mean that two different prototypes with the same collision mask layers and this option enabled will not collide.
|
|
2736
2736
|
*/
|
|
2737
|
-
not_colliding_with_itself?:
|
|
2737
|
+
not_colliding_with_itself?: boolean;
|
|
2738
2738
|
}
|
|
2739
2739
|
/**
|
|
2740
2740
|
* Table of red, green, blue, and alpha float values between 0 and 1. Alternatively, values can be from 0-255, they are interpreted as such if at least one value is `> 1`.
|
|
@@ -2978,11 +2978,11 @@ interface CoverGraphicProcessionLayer {
|
|
|
2978
2978
|
/**
|
|
2979
2979
|
* Advanced cloud effect mask modifies the regular mask thresholds instead of being a flat multiplication of the resulting opacity.
|
|
2980
2980
|
*/
|
|
2981
|
-
is_cloud_effect_advanced?:
|
|
2981
|
+
is_cloud_effect_advanced?: boolean;
|
|
2982
2982
|
/**
|
|
2983
2983
|
* The texture and mask are interpreted as four smaller textures that are randomly tiled.
|
|
2984
2984
|
*/
|
|
2985
|
-
is_quad_texture?:
|
|
2985
|
+
is_quad_texture?: boolean;
|
|
2986
2986
|
/**
|
|
2987
2987
|
* Opacity gradient of the layer.
|
|
2988
2988
|
*/
|
|
@@ -2999,7 +2999,7 @@ interface CoverGraphicProcessionLayer {
|
|
|
2999
2999
|
/**
|
|
3000
3000
|
* Add rotation of the pod to the cloud rotation.
|
|
3001
3001
|
*/
|
|
3002
|
-
rotate_with_pod?:
|
|
3002
|
+
rotate_with_pod?: boolean;
|
|
3003
3003
|
secondary_draw_order?: int8;
|
|
3004
3004
|
/**
|
|
3005
3005
|
* Where the tiled texture is centered and rotated.
|
|
@@ -3136,7 +3136,7 @@ interface CraftItemTipTrigger extends CountBasedTipTrigger {
|
|
|
3136
3136
|
/**
|
|
3137
3137
|
* Can only be used when `event_type` is `"crafting-finished"`.
|
|
3138
3138
|
*/
|
|
3139
|
-
consecutive?:
|
|
3139
|
+
consecutive?: boolean;
|
|
3140
3140
|
event_type: 'crafting-of-single-item-ordered' | 'crafting-of-multiple-items-ordered' | 'crafting-finished';
|
|
3141
3141
|
item?: ItemID;
|
|
3142
3142
|
type: 'craft-item';
|
|
@@ -3152,14 +3152,14 @@ interface CraftingMachineGraphicsSet extends WorkingVisualisations {
|
|
|
3152
3152
|
*/
|
|
3153
3153
|
circuit_connector_secondary_draw_order?: int8 | CircuitConnectorSecondaryDrawOrder;
|
|
3154
3154
|
frozen_patch?: Sprite4Way;
|
|
3155
|
-
reset_animation_when_frozen?:
|
|
3155
|
+
reset_animation_when_frozen?: boolean;
|
|
3156
3156
|
}
|
|
3157
3157
|
interface CranePart {
|
|
3158
|
-
allow_sprite_rotation?:
|
|
3158
|
+
allow_sprite_rotation?: boolean;
|
|
3159
3159
|
dying_effect?: CranePartDyingEffect;
|
|
3160
3160
|
extendable_length?: Vector3D;
|
|
3161
3161
|
extendable_length_grappler?: Vector3D;
|
|
3162
|
-
is_contractible_by_cropping?:
|
|
3162
|
+
is_contractible_by_cropping?: boolean;
|
|
3163
3163
|
layer?: int8;
|
|
3164
3164
|
name?: string;
|
|
3165
3165
|
/**
|
|
@@ -3180,8 +3180,8 @@ interface CranePart {
|
|
|
3180
3180
|
* Only loaded if `sprite_shadow` is not defined.
|
|
3181
3181
|
*/
|
|
3182
3182
|
rotated_sprite_shadow?: RotatedSprite;
|
|
3183
|
-
scale_to_fit_model?:
|
|
3184
|
-
should_scale_for_perspective?:
|
|
3183
|
+
scale_to_fit_model?: boolean;
|
|
3184
|
+
should_scale_for_perspective?: boolean;
|
|
3185
3185
|
snap_end?: float;
|
|
3186
3186
|
snap_end_arm_extent_multiplier?: float;
|
|
3187
3187
|
snap_start?: float;
|
|
@@ -3213,7 +3213,7 @@ interface CreateAsteroidChunkEffectItem extends TriggerEffectItem {
|
|
|
3213
3213
|
type: 'create-asteroid-chunk';
|
|
3214
3214
|
}
|
|
3215
3215
|
interface CreateDecorativesTriggerEffectItem extends TriggerEffectItem {
|
|
3216
|
-
apply_projection?:
|
|
3216
|
+
apply_projection?: boolean;
|
|
3217
3217
|
decorative: DecorativeID;
|
|
3218
3218
|
radius_curve?: float;
|
|
3219
3219
|
spawn_max: uint16;
|
|
@@ -3223,24 +3223,24 @@ interface CreateDecorativesTriggerEffectItem extends TriggerEffectItem {
|
|
|
3223
3223
|
spawn_max_radius: float;
|
|
3224
3224
|
spawn_min?: uint16;
|
|
3225
3225
|
spawn_min_radius: float;
|
|
3226
|
-
spread_evenly?:
|
|
3226
|
+
spread_evenly?: boolean;
|
|
3227
3227
|
type: 'create-decorative';
|
|
3228
3228
|
}
|
|
3229
3229
|
interface CreateEntityTriggerEffectItemBase extends TriggerEffectItem {
|
|
3230
3230
|
/**
|
|
3231
3231
|
* If true, creates the entity as a member of the enemy force. If the surface.no_enemies_mode is true, the entity will not be created.
|
|
3232
3232
|
*/
|
|
3233
|
-
as_enemy?:
|
|
3234
|
-
check_buildability?:
|
|
3233
|
+
as_enemy?: boolean;
|
|
3234
|
+
check_buildability?: boolean;
|
|
3235
3235
|
/**
|
|
3236
3236
|
* The name of the entity that should be created.
|
|
3237
3237
|
*/
|
|
3238
3238
|
entity_name: EntityID;
|
|
3239
|
-
find_non_colliding_position?:
|
|
3239
|
+
find_non_colliding_position?: boolean;
|
|
3240
3240
|
/**
|
|
3241
3241
|
* If true and `as_enemy` is true, allows the entity to be created even if the current surface.no_enemies_mode is true.
|
|
3242
3242
|
*/
|
|
3243
|
-
ignore_no_enemies_mode?:
|
|
3243
|
+
ignore_no_enemies_mode?: boolean;
|
|
3244
3244
|
/**
|
|
3245
3245
|
* Only loaded if `find_non_colliding_position` is defined.
|
|
3246
3246
|
*/
|
|
@@ -3255,8 +3255,8 @@ interface CreateEntityTriggerEffectItemBase extends TriggerEffectItem {
|
|
|
3255
3255
|
/**
|
|
3256
3256
|
* The result entity will be protected from automated attacks of enemies.
|
|
3257
3257
|
*/
|
|
3258
|
-
protected?:
|
|
3259
|
-
show_in_tooltip?:
|
|
3258
|
+
protected?: boolean;
|
|
3259
|
+
show_in_tooltip?: boolean;
|
|
3260
3260
|
/**
|
|
3261
3261
|
* Entity creation will not occur if any tile matches the collision condition. Defaults to no collisions.
|
|
3262
3262
|
*/
|
|
@@ -3264,12 +3264,12 @@ interface CreateEntityTriggerEffectItemBase extends TriggerEffectItem {
|
|
|
3264
3264
|
/**
|
|
3265
3265
|
* If `true`, the {@link on_trigger_created_entity | runtime:on_trigger_created_entity} event will be raised.
|
|
3266
3266
|
*/
|
|
3267
|
-
trigger_created_entity?:
|
|
3267
|
+
trigger_created_entity?: boolean;
|
|
3268
3268
|
type: string;
|
|
3269
3269
|
}
|
|
3270
3270
|
interface CreateExplosionTriggerEffectItem extends CreateEntityTriggerEffectItemBase {
|
|
3271
|
-
cycle_while_moving?:
|
|
3272
|
-
inherit_movement_distance_from_projectile?:
|
|
3271
|
+
cycle_while_moving?: boolean;
|
|
3272
|
+
inherit_movement_distance_from_projectile?: boolean;
|
|
3273
3273
|
max_movement_distance?: float;
|
|
3274
3274
|
max_movement_distance_deviation?: float;
|
|
3275
3275
|
type: 'create-explosion';
|
|
@@ -3283,7 +3283,7 @@ interface CreateGhostOnEntityDeathModifier extends BoolModifier {
|
|
|
3283
3283
|
/**
|
|
3284
3284
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
3285
3285
|
*/
|
|
3286
|
-
use_icon_overlay_constant?:
|
|
3286
|
+
use_icon_overlay_constant?: boolean;
|
|
3287
3287
|
}
|
|
3288
3288
|
interface CreateParticleTriggerEffectItemBase extends TriggerEffectItem {
|
|
3289
3289
|
apply_tile_tint?: 'primary' | 'secondary';
|
|
@@ -3299,10 +3299,10 @@ interface CreateParticleTriggerEffectItemBase extends TriggerEffectItem {
|
|
|
3299
3299
|
/**
|
|
3300
3300
|
* Create particles only when they are in 200 tiles range of any connected player.
|
|
3301
3301
|
*/
|
|
3302
|
-
only_when_visible?:
|
|
3302
|
+
only_when_visible?: boolean;
|
|
3303
3303
|
particle_name: ParticleID;
|
|
3304
|
-
rotate_offsets?:
|
|
3305
|
-
show_in_tooltip?:
|
|
3304
|
+
rotate_offsets?: boolean;
|
|
3305
|
+
show_in_tooltip?: boolean;
|
|
3306
3306
|
speed_from_center?: float;
|
|
3307
3307
|
speed_from_center_deviation?: float;
|
|
3308
3308
|
/**
|
|
@@ -3336,7 +3336,7 @@ interface CreateSpacePlatformTechnologyTrigger {
|
|
|
3336
3336
|
type: 'create-space-platform';
|
|
3337
3337
|
}
|
|
3338
3338
|
interface CreateStickerTriggerEffectItem extends TriggerEffectItem {
|
|
3339
|
-
show_in_tooltip?:
|
|
3339
|
+
show_in_tooltip?: boolean;
|
|
3340
3340
|
/**
|
|
3341
3341
|
* Name of a {@link StickerPrototype | prototype:StickerPrototype} that should be created.
|
|
3342
3342
|
*/
|
|
@@ -3344,7 +3344,7 @@ interface CreateStickerTriggerEffectItem extends TriggerEffectItem {
|
|
|
3344
3344
|
/**
|
|
3345
3345
|
* If `true`, {@link on_trigger_created_entity | runtime:on_trigger_created_entity} will be triggered when the sticker is created.
|
|
3346
3346
|
*/
|
|
3347
|
-
trigger_created_entity?:
|
|
3347
|
+
trigger_created_entity?: boolean;
|
|
3348
3348
|
type: 'create-sticker';
|
|
3349
3349
|
}
|
|
3350
3350
|
interface CreateTrivialSmokeEffectItem extends TriggerEffectItem {
|
|
@@ -3440,18 +3440,18 @@ interface DamageTileTriggerEffectItem extends TriggerEffectItem {
|
|
|
3440
3440
|
type: 'damage';
|
|
3441
3441
|
}
|
|
3442
3442
|
interface DamageTriggerEffectItem extends TriggerEffectItem {
|
|
3443
|
-
apply_damage_to_trees?:
|
|
3443
|
+
apply_damage_to_trees?: boolean;
|
|
3444
3444
|
damage: DamageParameters;
|
|
3445
3445
|
lower_damage_modifier?: float;
|
|
3446
3446
|
lower_distance_threshold?: uint16;
|
|
3447
3447
|
type: 'damage';
|
|
3448
3448
|
upper_damage_modifier?: float;
|
|
3449
3449
|
upper_distance_threshold?: uint16;
|
|
3450
|
-
use_substitute?:
|
|
3450
|
+
use_substitute?: boolean;
|
|
3451
3451
|
/**
|
|
3452
3452
|
* If `true`, no corpse for killed entities will be created.
|
|
3453
3453
|
*/
|
|
3454
|
-
vaporize?:
|
|
3454
|
+
vaporize?: boolean;
|
|
3455
3455
|
}
|
|
3456
3456
|
/**
|
|
3457
3457
|
* @example ```
|
|
@@ -3483,7 +3483,7 @@ type DamageTypeFilters = {
|
|
|
3483
3483
|
/**
|
|
3484
3484
|
* Whether this is a whitelist or a blacklist of damage types. Defaults to being a blacklist.
|
|
3485
3485
|
*/
|
|
3486
|
-
whitelist?:
|
|
3486
|
+
whitelist?: boolean;
|
|
3487
3487
|
} | DamageTypeID | DamageTypeID[];
|
|
3488
3488
|
/**
|
|
3489
3489
|
* The name of a {@link DamageType | prototype:DamageType}.
|
|
@@ -3526,7 +3526,7 @@ interface Data {
|
|
|
3526
3526
|
/**
|
|
3527
3527
|
* Set by the game based on whether the demo or retail version is running. Should not be used by mods.
|
|
3528
3528
|
*/
|
|
3529
|
-
is_demo:
|
|
3529
|
+
is_demo: boolean;
|
|
3530
3530
|
/**
|
|
3531
3531
|
* A dictionary of prototype types to values that themselves are dictionaries of prototype names to specific prototypes.
|
|
3532
3532
|
*
|
|
@@ -3573,7 +3573,7 @@ interface DeconstructionTimeToLiveModifier extends SimpleModifier {
|
|
|
3573
3573
|
/**
|
|
3574
3574
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
3575
3575
|
*/
|
|
3576
|
-
use_icon_overlay_constant?:
|
|
3576
|
+
use_icon_overlay_constant?: boolean;
|
|
3577
3577
|
}
|
|
3578
3578
|
/**
|
|
3579
3579
|
* The name of a {@link DecorativePrototype | prototype:DecorativePrototype}.
|
|
@@ -3597,14 +3597,14 @@ interface DependenciesMetTipTrigger {
|
|
|
3597
3597
|
}
|
|
3598
3598
|
interface DestroyCliffsCapsuleAction {
|
|
3599
3599
|
attack_parameters: AttackParameters;
|
|
3600
|
-
play_sound_on_failure?:
|
|
3600
|
+
play_sound_on_failure?: boolean;
|
|
3601
3601
|
radius: float;
|
|
3602
3602
|
timeout?: uint32;
|
|
3603
3603
|
type: 'destroy-cliffs';
|
|
3604
3604
|
/**
|
|
3605
3605
|
* Whether using the capsule consumes an item from the stack.
|
|
3606
3606
|
*/
|
|
3607
|
-
uses_stack?:
|
|
3607
|
+
uses_stack?: boolean;
|
|
3608
3608
|
}
|
|
3609
3609
|
interface DestroyCliffsTriggerEffectItem extends TriggerEffectItem {
|
|
3610
3610
|
/**
|
|
@@ -3622,14 +3622,14 @@ interface DestroyDecorativesTriggerEffectItem extends TriggerEffectItem {
|
|
|
3622
3622
|
/**
|
|
3623
3623
|
* If `true`, only decoratives with a {@link DecorativePrototype::trigger_effect | prototype:DecorativePrototype::trigger_effect} will be destroyed.
|
|
3624
3624
|
*/
|
|
3625
|
-
decoratives_with_trigger_only?:
|
|
3625
|
+
decoratives_with_trigger_only?: boolean;
|
|
3626
3626
|
from_render_layer?: RenderLayer;
|
|
3627
|
-
include_decals?:
|
|
3627
|
+
include_decals?: boolean;
|
|
3628
3628
|
/**
|
|
3629
3629
|
* Soft decoratives are those where {@link DecorativePrototype::grows_through_rail_path | prototype:DecorativePrototype::grows_through_rail_path} is `true`.
|
|
3630
3630
|
*/
|
|
3631
|
-
include_soft_decoratives?:
|
|
3632
|
-
invoke_decorative_trigger?:
|
|
3631
|
+
include_soft_decoratives?: boolean;
|
|
3632
|
+
invoke_decorative_trigger?: boolean;
|
|
3633
3633
|
radius: float;
|
|
3634
3634
|
to_render_layer?: RenderLayer;
|
|
3635
3635
|
type: 'destroy-decoratives';
|
|
@@ -3645,7 +3645,7 @@ interface DifficultySettings {
|
|
|
3645
3645
|
technology_price_multiplier?: double;
|
|
3646
3646
|
}
|
|
3647
3647
|
interface DirectTriggerItem extends TriggerItem {
|
|
3648
|
-
filter_enabled?:
|
|
3648
|
+
filter_enabled?: boolean;
|
|
3649
3649
|
type: 'direct';
|
|
3650
3650
|
}
|
|
3651
3651
|
/**
|
|
@@ -3722,7 +3722,7 @@ interface DropDownStyleSpecification extends BaseStyleSpecification {
|
|
|
3722
3722
|
type: 'dropdown_style';
|
|
3723
3723
|
}
|
|
3724
3724
|
interface DropItemTipTrigger extends CountBasedTipTrigger {
|
|
3725
|
-
drop_into_entity?:
|
|
3725
|
+
drop_into_entity?: boolean;
|
|
3726
3726
|
type: 'drop-item';
|
|
3727
3727
|
}
|
|
3728
3728
|
/**
|
|
@@ -3756,9 +3756,9 @@ interface Effect {
|
|
|
3756
3756
|
}
|
|
3757
3757
|
interface EffectReceiver {
|
|
3758
3758
|
base_effect?: Effect;
|
|
3759
|
-
uses_beacon_effects?:
|
|
3760
|
-
uses_module_effects?:
|
|
3761
|
-
uses_surface_effects?:
|
|
3759
|
+
uses_beacon_effects?: boolean;
|
|
3760
|
+
uses_module_effects?: boolean;
|
|
3761
|
+
uses_surface_effects?: boolean;
|
|
3762
3762
|
}
|
|
3763
3763
|
/**
|
|
3764
3764
|
* Identifies what {@link CloudEffectStyle | prototype:CloudEffectStyle} refers to.
|
|
@@ -3940,7 +3940,7 @@ type ElementImageSet = {
|
|
|
3940
3940
|
* If this is loaded as a Sprite, it gets used as `center`.
|
|
3941
3941
|
*/
|
|
3942
3942
|
type ElementImageSetLayer = {
|
|
3943
|
-
background_blur?:
|
|
3943
|
+
background_blur?: boolean;
|
|
3944
3944
|
background_blur_sigma?: float;
|
|
3945
3945
|
/**
|
|
3946
3946
|
* Sets `top_border`, `right_border`, `bottom_border` and `left_border`.
|
|
@@ -3957,7 +3957,7 @@ type ElementImageSetLayer = {
|
|
|
3957
3957
|
*/
|
|
3958
3958
|
bottom_border?: int32;
|
|
3959
3959
|
bottom_outer_border_shift?: int32;
|
|
3960
|
-
bottom_tiling?:
|
|
3960
|
+
bottom_tiling?: boolean;
|
|
3961
3961
|
/**
|
|
3962
3962
|
* Only loaded if `corner_size` is defined. Only loaded if `type` is `"composition"`.
|
|
3963
3963
|
*/
|
|
@@ -3970,8 +3970,8 @@ type ElementImageSetLayer = {
|
|
|
3970
3970
|
* Only loaded if `corner_size` is defined. Only loaded if `type` is `"composition"`.
|
|
3971
3971
|
*/
|
|
3972
3972
|
center_height?: SpriteSizeType;
|
|
3973
|
-
center_tiling_horizontal?:
|
|
3974
|
-
center_tiling_vertical?:
|
|
3973
|
+
center_tiling_horizontal?: boolean;
|
|
3974
|
+
center_tiling_vertical?: boolean;
|
|
3975
3975
|
/**
|
|
3976
3976
|
* Only loaded if `corner_size` is defined. Only loaded if `type` is `"composition"`.
|
|
3977
3977
|
*/
|
|
@@ -4020,7 +4020,7 @@ type ElementImageSetLayer = {
|
|
|
4020
4020
|
/**
|
|
4021
4021
|
* Tiling is used to make a side (not corner) texture repeat instead of being stretched.
|
|
4022
4022
|
*/
|
|
4023
|
-
left_tiling?:
|
|
4023
|
+
left_tiling?: boolean;
|
|
4024
4024
|
/**
|
|
4025
4025
|
* Only loaded if `type` is `"composition"`.
|
|
4026
4026
|
*/
|
|
@@ -4028,7 +4028,7 @@ type ElementImageSetLayer = {
|
|
|
4028
4028
|
/**
|
|
4029
4029
|
* Only loaded if `corner_size` is defined. Only loaded if `type` is `"composition"`.
|
|
4030
4030
|
*/
|
|
4031
|
-
load_in_minimal_mode?:
|
|
4031
|
+
load_in_minimal_mode?: boolean;
|
|
4032
4032
|
opacity?: double;
|
|
4033
4033
|
overall_tiling_horizontal_padding?: uint16;
|
|
4034
4034
|
/**
|
|
@@ -4060,7 +4060,7 @@ type ElementImageSetLayer = {
|
|
|
4060
4060
|
*/
|
|
4061
4061
|
right_height?: SpriteSizeType;
|
|
4062
4062
|
right_outer_border_shift?: int32;
|
|
4063
|
-
right_tiling?:
|
|
4063
|
+
right_tiling?: boolean;
|
|
4064
4064
|
/**
|
|
4065
4065
|
* Only loaded if `type` is `"composition"`.
|
|
4066
4066
|
*/
|
|
@@ -4072,7 +4072,7 @@ type ElementImageSetLayer = {
|
|
|
4072
4072
|
/**
|
|
4073
4073
|
* Only loaded if `type` is `"composition"`.
|
|
4074
4074
|
*/
|
|
4075
|
-
stretch_monolith_image_to_size?:
|
|
4075
|
+
stretch_monolith_image_to_size?: boolean;
|
|
4076
4076
|
/**
|
|
4077
4077
|
* Only loaded if `type` is `"composition"`.
|
|
4078
4078
|
*/
|
|
@@ -4086,7 +4086,7 @@ type ElementImageSetLayer = {
|
|
|
4086
4086
|
*/
|
|
4087
4087
|
top_border?: int32;
|
|
4088
4088
|
top_outer_border_shift?: int32;
|
|
4089
|
-
top_tiling?:
|
|
4089
|
+
top_tiling?: boolean;
|
|
4090
4090
|
/**
|
|
4091
4091
|
* Only loaded if `corner_size` is defined. Only loaded if `type` is `"composition"`.
|
|
4092
4092
|
*/
|
|
@@ -4102,7 +4102,7 @@ interface EnemyEvolutionSettings {
|
|
|
4102
4102
|
* Percentual increase in the evolution factor for every destroyed spawner
|
|
4103
4103
|
*/
|
|
4104
4104
|
destroy_factor: double;
|
|
4105
|
-
enabled:
|
|
4105
|
+
enabled: boolean;
|
|
4106
4106
|
/**
|
|
4107
4107
|
* Percentual increase in the evolution factor for 1 pollution unit
|
|
4108
4108
|
*/
|
|
@@ -4114,7 +4114,7 @@ interface EnemyEvolutionSettings {
|
|
|
4114
4114
|
}
|
|
4115
4115
|
interface EnemyExpansionSettings {
|
|
4116
4116
|
building_coefficient: double;
|
|
4117
|
-
enabled:
|
|
4117
|
+
enabled: boolean;
|
|
4118
4118
|
enemy_building_influence_radius: uint32;
|
|
4119
4119
|
friendly_base_influence_radius: uint32;
|
|
4120
4120
|
/**
|
|
@@ -4146,7 +4146,7 @@ interface EnemySpawnerAbsorption {
|
|
|
4146
4146
|
interface EnemySpawnerGraphicsSet {
|
|
4147
4147
|
animations?: AnimationVariations;
|
|
4148
4148
|
integration?: SpriteVariations;
|
|
4149
|
-
random_animation_offset?:
|
|
4149
|
+
random_animation_offset?: boolean;
|
|
4150
4150
|
underwater_animations?: AnimationVariations;
|
|
4151
4151
|
underwater_layer_offset?: int8;
|
|
4152
4152
|
water_effect_map_animations?: AnimationVariations;
|
|
@@ -4206,7 +4206,7 @@ FluidEnergySource | /**
|
|
|
4206
4206
|
*/
|
|
4207
4207
|
VoidEnergySource;
|
|
4208
4208
|
interface EnterVehicleTipTrigger extends CountBasedTipTrigger {
|
|
4209
|
-
match_type_only?:
|
|
4209
|
+
match_type_only?: boolean;
|
|
4210
4210
|
type: 'enter-vehicle';
|
|
4211
4211
|
vehicle?: EntityID;
|
|
4212
4212
|
}
|
|
@@ -4432,7 +4432,7 @@ interface FastBeltBendTipTrigger extends CountBasedTipTrigger {
|
|
|
4432
4432
|
type: 'fast-belt-bend';
|
|
4433
4433
|
}
|
|
4434
4434
|
interface FastReplaceTipTrigger extends CountBasedTipTrigger {
|
|
4435
|
-
match_type_only?:
|
|
4435
|
+
match_type_only?: boolean;
|
|
4436
4436
|
source?: EntityID;
|
|
4437
4437
|
target?: EntityID;
|
|
4438
4438
|
type: 'fast-replace';
|
|
@@ -4447,13 +4447,13 @@ end
|
|
|
4447
4447
|
```
|
|
4448
4448
|
*/
|
|
4449
4449
|
interface FeatureFlags {
|
|
4450
|
-
expansion_shaders:
|
|
4451
|
-
freezing:
|
|
4452
|
-
quality:
|
|
4453
|
-
rail_bridges:
|
|
4454
|
-
segmented_units:
|
|
4455
|
-
space_travel:
|
|
4456
|
-
spoiling:
|
|
4450
|
+
expansion_shaders: boolean;
|
|
4451
|
+
freezing: boolean;
|
|
4452
|
+
quality: boolean;
|
|
4453
|
+
rail_bridges: boolean;
|
|
4454
|
+
segmented_units: boolean;
|
|
4455
|
+
space_travel: boolean;
|
|
4456
|
+
spoiling: boolean;
|
|
4457
4457
|
}
|
|
4458
4458
|
/**
|
|
4459
4459
|
* A slash `"/"` is always used as the directory delimiter. A path always begins with the specification of a root, which can be one of three formats:
|
|
@@ -4509,8 +4509,8 @@ interface FluidBox {
|
|
|
4509
4509
|
/**
|
|
4510
4510
|
* Defaults to true if `pipe_picture` is not defined, otherwise defaults to false.
|
|
4511
4511
|
*/
|
|
4512
|
-
always_draw_covers?:
|
|
4513
|
-
draw_only_when_connected?:
|
|
4512
|
+
always_draw_covers?: boolean;
|
|
4513
|
+
draw_only_when_connected?: boolean;
|
|
4514
4514
|
/**
|
|
4515
4515
|
* Array of the {@link WorkingVisualisation::name | prototype:WorkingVisualisation::name} of working visualisations to enable when this fluidbox is present.
|
|
4516
4516
|
*
|
|
@@ -4524,7 +4524,7 @@ interface FluidBox {
|
|
|
4524
4524
|
/**
|
|
4525
4525
|
* Hides the blue input/output arrows and icons at each connection point.
|
|
4526
4526
|
*/
|
|
4527
|
-
hide_connection_info?:
|
|
4527
|
+
hide_connection_info?: boolean;
|
|
4528
4528
|
/**
|
|
4529
4529
|
* The max extent that a pipeline with this fluidbox can span. A given pipeline's extent is calculated as the min extent of all the fluidboxes that comprise it.
|
|
4530
4530
|
*/
|
|
@@ -4594,13 +4594,13 @@ interface FluidEnergySource extends BaseEnergySource {
|
|
|
4594
4594
|
/**
|
|
4595
4595
|
* If set to `true`, the energy source will calculate power based on the fluid's `fuel_value`, else it will calculate based on fluid temperature.
|
|
4596
4596
|
*/
|
|
4597
|
-
burns_fluid?:
|
|
4597
|
+
burns_fluid?: boolean;
|
|
4598
4598
|
/**
|
|
4599
4599
|
* Property is only used when `burns_fluid` is `true` and the fluid has a {@link fuel_value | prototype:FluidPrototype::fuel_value} of `0`, or when `burns_fluid` is `false` and the fluid is at its `default_temperature`.
|
|
4600
4600
|
*
|
|
4601
4601
|
* In those cases, this property determines whether the fluid should be destroyed, meaning that the fluid is consumed at the rate of `fluid_usage_per_tick`, without producing any power.
|
|
4602
4602
|
*/
|
|
4603
|
-
destroy_non_fuel_fluid?:
|
|
4603
|
+
destroy_non_fuel_fluid?: boolean;
|
|
4604
4604
|
/**
|
|
4605
4605
|
* `1` means 100% effectivity. Must be greater than `0`. Multiplier of the energy output.
|
|
4606
4606
|
*/
|
|
@@ -4623,7 +4623,7 @@ interface FluidEnergySource extends BaseEnergySource {
|
|
|
4623
4623
|
/**
|
|
4624
4624
|
* If set to `true`, the energy source will consume as much fluid as required to produce the desired power, otherwise it will consume as much as it is allowed to, wasting any excess.
|
|
4625
4625
|
*/
|
|
4626
|
-
scale_fluid_usage?:
|
|
4626
|
+
scale_fluid_usage?: boolean;
|
|
4627
4627
|
smoke?: SmokeSource[];
|
|
4628
4628
|
type: 'fluid';
|
|
4629
4629
|
}
|
|
@@ -4733,7 +4733,7 @@ interface FluidProductPrototype {
|
|
|
4733
4733
|
/**
|
|
4734
4734
|
* When hovering over a recipe in the crafting menu the recipe tooltip will be shown. An additional item tooltip will be shown for every product, as a separate tooltip, if the item tooltip has a description and/or properties to show and if `show_details_in_recipe_tooltip` is `true`.
|
|
4735
4735
|
*/
|
|
4736
|
-
show_details_in_recipe_tooltip?:
|
|
4736
|
+
show_details_in_recipe_tooltip?: boolean;
|
|
4737
4737
|
/**
|
|
4738
4738
|
* The temperature of the fluid product.
|
|
4739
4739
|
*/
|
|
@@ -4763,12 +4763,12 @@ interface FollowerRobotLifetimeModifier extends SimpleModifier {
|
|
|
4763
4763
|
/**
|
|
4764
4764
|
* If set to `false`, use the icon from {@link UtilitySprites | prototype:UtilitySprites} for this technology effect icon.
|
|
4765
4765
|
*/
|
|
4766
|
-
infer_icon?:
|
|
4766
|
+
infer_icon?: boolean;
|
|
4767
4767
|
type: 'follower-robot-lifetime';
|
|
4768
4768
|
/**
|
|
4769
4769
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
4770
4770
|
*/
|
|
4771
|
-
use_icon_overlay_constant?:
|
|
4771
|
+
use_icon_overlay_constant?: boolean;
|
|
4772
4772
|
}
|
|
4773
4773
|
interface FootprintParticle {
|
|
4774
4774
|
/**
|
|
@@ -4782,7 +4782,7 @@ interface FootprintParticle {
|
|
|
4782
4782
|
/**
|
|
4783
4783
|
* Whether this footprint particle should be the default particle that is used for `tiles` that don't have an associated footprint particle.
|
|
4784
4784
|
*/
|
|
4785
|
-
use_as_default?:
|
|
4785
|
+
use_as_default?: boolean;
|
|
4786
4786
|
}
|
|
4787
4787
|
interface FootstepTriggerEffectItem extends CreateParticleTriggerEffectItemBase {
|
|
4788
4788
|
/**
|
|
@@ -4793,7 +4793,7 @@ interface FootstepTriggerEffectItem extends CreateParticleTriggerEffectItemBase
|
|
|
4793
4793
|
/**
|
|
4794
4794
|
* When `true`, the trigger(s) defined in `actions` are the default triggers for tiles that don't have an associated footstep particle trigger. (ie. don't show up in one of the "tiles" lists).
|
|
4795
4795
|
*/
|
|
4796
|
-
use_as_default?:
|
|
4796
|
+
use_as_default?: boolean;
|
|
4797
4797
|
}
|
|
4798
4798
|
/**
|
|
4799
4799
|
* @example ```
|
|
@@ -4862,7 +4862,7 @@ type ForceCondition = 'all' | 'enemy' | 'ally' | 'friend' | 'not-friend' | 'same
|
|
|
4862
4862
|
interface FrameStyleSpecification extends BaseStyleSpecification {
|
|
4863
4863
|
background_graphical_set?: ElementImageSet;
|
|
4864
4864
|
border?: BorderImageSet;
|
|
4865
|
-
drag_by_title?:
|
|
4865
|
+
drag_by_title?: boolean;
|
|
4866
4866
|
graphical_set?: ElementImageSet;
|
|
4867
4867
|
header_background?: ElementImageSet;
|
|
4868
4868
|
header_filler_style?: EmptyWidgetStyleSpecification;
|
|
@@ -4870,7 +4870,7 @@ interface FrameStyleSpecification extends BaseStyleSpecification {
|
|
|
4870
4870
|
horizontal_flow_style?: HorizontalFlowStyleSpecification;
|
|
4871
4871
|
title_style?: LabelStyleSpecification;
|
|
4872
4872
|
type: 'frame_style';
|
|
4873
|
-
use_header_filler?:
|
|
4873
|
+
use_header_filler?: boolean;
|
|
4874
4874
|
vertical_flow_style?: VerticalFlowStyleSpecification;
|
|
4875
4875
|
}
|
|
4876
4876
|
interface FrequencySizeRichness {
|
|
@@ -4925,7 +4925,7 @@ interface FusionReactorGraphicsSet {
|
|
|
4925
4925
|
plasma_category: NeighbourConnectableConnectionCategory;
|
|
4926
4926
|
render_layer?: RenderLayer;
|
|
4927
4927
|
structure?: Sprite4Way;
|
|
4928
|
-
use_fuel_glow_color?:
|
|
4928
|
+
use_fuel_glow_color?: boolean;
|
|
4929
4929
|
working_light_pictures?: Sprite4Way;
|
|
4930
4930
|
}
|
|
4931
4931
|
interface GameControllerVibrationData {
|
|
@@ -4947,23 +4947,23 @@ interface GameViewSettings {
|
|
|
4947
4947
|
/**
|
|
4948
4948
|
* If this is defined then it sets the default value for all other properties.
|
|
4949
4949
|
*/
|
|
4950
|
-
default_show_value?:
|
|
4951
|
-
show_alert_gui?:
|
|
4952
|
-
show_controller_gui?:
|
|
4953
|
-
show_crafting_queue?:
|
|
4954
|
-
show_entity_info?:
|
|
4955
|
-
show_entity_tooltip?:
|
|
4956
|
-
show_hotkey_suggestions?:
|
|
4957
|
-
show_map_view_options?:
|
|
4958
|
-
show_minimap?:
|
|
4959
|
-
show_quickbar?:
|
|
4960
|
-
show_rail_block_visualisation?:
|
|
4961
|
-
show_research_info?:
|
|
4962
|
-
show_shortcut_bar?:
|
|
4963
|
-
show_side_menu?:
|
|
4964
|
-
show_surface_list?:
|
|
4965
|
-
show_tool_bar?:
|
|
4966
|
-
update_entity_selection?:
|
|
4950
|
+
default_show_value?: boolean;
|
|
4951
|
+
show_alert_gui?: boolean;
|
|
4952
|
+
show_controller_gui?: boolean;
|
|
4953
|
+
show_crafting_queue?: boolean;
|
|
4954
|
+
show_entity_info?: boolean;
|
|
4955
|
+
show_entity_tooltip?: boolean;
|
|
4956
|
+
show_hotkey_suggestions?: boolean;
|
|
4957
|
+
show_map_view_options?: boolean;
|
|
4958
|
+
show_minimap?: boolean;
|
|
4959
|
+
show_quickbar?: boolean;
|
|
4960
|
+
show_rail_block_visualisation?: boolean;
|
|
4961
|
+
show_research_info?: boolean;
|
|
4962
|
+
show_shortcut_bar?: boolean;
|
|
4963
|
+
show_side_menu?: boolean;
|
|
4964
|
+
show_surface_list?: boolean;
|
|
4965
|
+
show_tool_bar?: boolean;
|
|
4966
|
+
update_entity_selection?: boolean;
|
|
4967
4967
|
}
|
|
4968
4968
|
interface GateOverRailBuildTipTrigger extends CountBasedTipTrigger {
|
|
4969
4969
|
type: 'gate-over-rail-build';
|
|
@@ -4982,9 +4982,9 @@ interface GhostShimmerConfig {
|
|
|
4982
4982
|
* The array must have at least 6 elements.
|
|
4983
4983
|
*/
|
|
4984
4984
|
overlay_layers: GhostShimmerOverlayData[];
|
|
4985
|
-
proportional_distortion:
|
|
4985
|
+
proportional_distortion: boolean;
|
|
4986
4986
|
tint: Color;
|
|
4987
|
-
visualize_borders:
|
|
4987
|
+
visualize_borders: boolean;
|
|
4988
4988
|
world_uv_modulo: int32;
|
|
4989
4989
|
}
|
|
4990
4990
|
interface GhostShimmerDistortionData {
|
|
@@ -5007,7 +5007,7 @@ interface GhostTintSet {
|
|
|
5007
5007
|
tile_ghost_delivery_tint: Color;
|
|
5008
5008
|
tile_ghost_tint: Color;
|
|
5009
5009
|
/**
|
|
5010
|
-
* Wires are hard to read when the ghost_tint is very
|
|
5010
|
+
* Wires are hard to read when the ghost_tint is very saturated, so they use a separate tint color for better fine tuning.
|
|
5011
5011
|
*/
|
|
5012
5012
|
wire_tint: Color;
|
|
5013
5013
|
}
|
|
@@ -5034,7 +5034,7 @@ interface GiveItemModifier extends BaseModifier {
|
|
|
5034
5034
|
/**
|
|
5035
5035
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
5036
5036
|
*/
|
|
5037
|
-
use_icon_overlay_constant?:
|
|
5037
|
+
use_icon_overlay_constant?: boolean;
|
|
5038
5038
|
}
|
|
5039
5039
|
interface GlobalRecipeTints {
|
|
5040
5040
|
primary?: Color;
|
|
@@ -5095,7 +5095,7 @@ interface GunSpeedModifier extends BaseModifier {
|
|
|
5095
5095
|
/**
|
|
5096
5096
|
* If set to `false`, use the icon from {@link UtilitySprites | prototype:UtilitySprites} for this technology effect icon.
|
|
5097
5097
|
*/
|
|
5098
|
-
infer_icon?:
|
|
5098
|
+
infer_icon?: boolean;
|
|
5099
5099
|
/**
|
|
5100
5100
|
* Modification value, which will be added to the current gun speed modifier upon researching.
|
|
5101
5101
|
*/
|
|
@@ -5104,7 +5104,7 @@ interface GunSpeedModifier extends BaseModifier {
|
|
|
5104
5104
|
/**
|
|
5105
5105
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
5106
5106
|
*/
|
|
5107
|
-
use_icon_overlay_constant?:
|
|
5107
|
+
use_icon_overlay_constant?: boolean;
|
|
5108
5108
|
}
|
|
5109
5109
|
/**
|
|
5110
5110
|
* Used to specify heat capacity properties without a {@link heat energy source | prototype:HeatEnergySource}.
|
|
@@ -5237,11 +5237,11 @@ interface IconData {
|
|
|
5237
5237
|
/**
|
|
5238
5238
|
* Outline is drawn using signed distance field generated on load. One icon image, will have only one SDF generated. But if the image is used in multiple icon with different scales, outline width won't match the desired width in all the scales but the largest one.
|
|
5239
5239
|
*/
|
|
5240
|
-
draw_background?:
|
|
5240
|
+
draw_background?: boolean;
|
|
5241
5241
|
/**
|
|
5242
5242
|
* When `true` the layer is not considered for calculating bounds of the icon, so it can go out of bounds of rectangle into which the icon is drawn in GUI.
|
|
5243
5243
|
*/
|
|
5244
|
-
floating?:
|
|
5244
|
+
floating?: boolean;
|
|
5245
5245
|
/**
|
|
5246
5246
|
* Path to the icon file.
|
|
5247
5247
|
*/
|
|
@@ -5317,8 +5317,8 @@ data.raw["gui-style"]["default"]["stretchy-sprite"] =
|
|
|
5317
5317
|
*/
|
|
5318
5318
|
interface ImageStyleSpecification extends BaseStyleSpecification {
|
|
5319
5319
|
graphical_set?: ElementImageSet;
|
|
5320
|
-
invert_colors_of_picture_when_hovered_or_toggled?:
|
|
5321
|
-
stretch_image_to_widget_size?:
|
|
5320
|
+
invert_colors_of_picture_when_hovered_or_toggled?: boolean;
|
|
5321
|
+
stretch_image_to_widget_size?: boolean;
|
|
5322
5322
|
type: 'image_style';
|
|
5323
5323
|
}
|
|
5324
5324
|
/**
|
|
@@ -5350,12 +5350,12 @@ interface InserterStackSizeBonusModifier extends SimpleModifier {
|
|
|
5350
5350
|
/**
|
|
5351
5351
|
* If set to `false`, use the icon from {@link UtilitySprites | prototype:UtilitySprites} for this technology effect icon.
|
|
5352
5352
|
*/
|
|
5353
|
-
infer_icon?:
|
|
5353
|
+
infer_icon?: boolean;
|
|
5354
5354
|
type: 'inserter-stack-size-bonus';
|
|
5355
5355
|
/**
|
|
5356
5356
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
5357
5357
|
*/
|
|
5358
|
-
use_icon_overlay_constant?:
|
|
5358
|
+
use_icon_overlay_constant?: boolean;
|
|
5359
5359
|
}
|
|
5360
5360
|
interface InstantTriggerDelivery extends TriggerDeliveryItem {
|
|
5361
5361
|
type: 'instant';
|
|
@@ -5491,7 +5491,7 @@ interface ItemProductPrototype {
|
|
|
5491
5491
|
/**
|
|
5492
5492
|
* When hovering over a recipe in the crafting menu the recipe tooltip will be shown. An additional item tooltip will be shown for every product, as a separate tooltip, if the item tooltip has a description and/or properties to show and if `show_details_in_recipe_tooltip` is `true`.
|
|
5493
5493
|
*/
|
|
5494
|
-
show_details_in_recipe_tooltip?:
|
|
5494
|
+
show_details_in_recipe_tooltip?: boolean;
|
|
5495
5495
|
type: 'item';
|
|
5496
5496
|
}
|
|
5497
5497
|
/**
|
|
@@ -5561,7 +5561,7 @@ interface ItemToPlace {
|
|
|
5561
5561
|
interface KillTipTrigger extends CountBasedTipTrigger {
|
|
5562
5562
|
damage_type?: DamageTypeID;
|
|
5563
5563
|
entity?: EntityID;
|
|
5564
|
-
match_type_only?:
|
|
5564
|
+
match_type_only?: boolean;
|
|
5565
5565
|
type: 'kill';
|
|
5566
5566
|
}
|
|
5567
5567
|
interface LabelStyleSpecification extends BaseStyleSpecification {
|
|
@@ -5579,31 +5579,31 @@ interface LabelStyleSpecification extends BaseStyleSpecification {
|
|
|
5579
5579
|
rich_text_highlight_ok_color?: Color;
|
|
5580
5580
|
rich_text_highlight_warning_color?: Color;
|
|
5581
5581
|
rich_text_setting?: RichTextSetting;
|
|
5582
|
-
single_line?:
|
|
5582
|
+
single_line?: boolean;
|
|
5583
5583
|
type: 'label_style';
|
|
5584
|
-
underlined?:
|
|
5584
|
+
underlined?: boolean;
|
|
5585
5585
|
}
|
|
5586
5586
|
interface LaboratoryProductivityModifier extends SimpleModifier {
|
|
5587
5587
|
/**
|
|
5588
5588
|
* If set to `false`, use the icon from {@link UtilitySprites | prototype:UtilitySprites} for this technology effect icon.
|
|
5589
5589
|
*/
|
|
5590
|
-
infer_icon?:
|
|
5590
|
+
infer_icon?: boolean;
|
|
5591
5591
|
type: 'laboratory-productivity';
|
|
5592
5592
|
/**
|
|
5593
5593
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
5594
5594
|
*/
|
|
5595
|
-
use_icon_overlay_constant?:
|
|
5595
|
+
use_icon_overlay_constant?: boolean;
|
|
5596
5596
|
}
|
|
5597
5597
|
interface LaboratorySpeedModifier extends SimpleModifier {
|
|
5598
5598
|
/**
|
|
5599
5599
|
* If set to `false`, use the icon from {@link UtilitySprites | prototype:UtilitySprites} for this technology effect icon.
|
|
5600
5600
|
*/
|
|
5601
|
-
infer_icon?:
|
|
5601
|
+
infer_icon?: boolean;
|
|
5602
5602
|
type: 'laboratory-speed';
|
|
5603
5603
|
/**
|
|
5604
5604
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
5605
5605
|
*/
|
|
5606
|
-
use_icon_overlay_constant?:
|
|
5606
|
+
use_icon_overlay_constant?: boolean;
|
|
5607
5607
|
}
|
|
5608
5608
|
type LayeredSound = {
|
|
5609
5609
|
layers: Sound[];
|
|
@@ -5660,7 +5660,7 @@ light =
|
|
|
5660
5660
|
```
|
|
5661
5661
|
*/
|
|
5662
5662
|
type LightDefinition = {
|
|
5663
|
-
add_perspective?:
|
|
5663
|
+
add_perspective?: boolean;
|
|
5664
5664
|
/**
|
|
5665
5665
|
* Color of the light.
|
|
5666
5666
|
*/
|
|
@@ -5676,7 +5676,7 @@ type LightDefinition = {
|
|
|
5676
5676
|
/**
|
|
5677
5677
|
* Offsets tick used to calculate flicker by position hash. Useful to desynchronize flickering of multiple stationary lights.
|
|
5678
5678
|
*/
|
|
5679
|
-
offset_flicker?:
|
|
5679
|
+
offset_flicker?: boolean;
|
|
5680
5680
|
/**
|
|
5681
5681
|
* Only loaded, and mandatory if `type` is `"oriented"`.
|
|
5682
5682
|
*/
|
|
@@ -5693,7 +5693,7 @@ type LightDefinition = {
|
|
|
5693
5693
|
source_orientation_offset?: RealOrientation;
|
|
5694
5694
|
type?: 'basic' | 'oriented';
|
|
5695
5695
|
} | {
|
|
5696
|
-
add_perspective?:
|
|
5696
|
+
add_perspective?: boolean;
|
|
5697
5697
|
/**
|
|
5698
5698
|
* Color of the light.
|
|
5699
5699
|
*/
|
|
@@ -5709,7 +5709,7 @@ type LightDefinition = {
|
|
|
5709
5709
|
/**
|
|
5710
5710
|
* Offsets tick used to calculate flicker by position hash. Useful to desynchronize flickering of multiple stationary lights.
|
|
5711
5711
|
*/
|
|
5712
|
-
offset_flicker?:
|
|
5712
|
+
offset_flicker?: boolean;
|
|
5713
5713
|
/**
|
|
5714
5714
|
* Only loaded, and mandatory if `type` is `"oriented"`.
|
|
5715
5715
|
*/
|
|
@@ -5951,9 +5951,9 @@ interface MainSound {
|
|
|
5951
5951
|
* Can't be used when `match_progress_to_activity` is `true`.
|
|
5952
5952
|
*/
|
|
5953
5953
|
fade_out_ticks?: uint32;
|
|
5954
|
-
match_progress_to_activity?:
|
|
5955
|
-
match_speed_to_activity?:
|
|
5956
|
-
match_volume_to_activity?:
|
|
5954
|
+
match_progress_to_activity?: boolean;
|
|
5955
|
+
match_speed_to_activity?: boolean;
|
|
5956
|
+
match_volume_to_activity?: boolean;
|
|
5957
5957
|
/**
|
|
5958
5958
|
* Array of {@link WorkingVisualisation::name | prototype:WorkingVisualisation::name}s, individual names cannot be empty.
|
|
5959
5959
|
*
|
|
@@ -5982,7 +5982,7 @@ interface ManualTransferTipTrigger extends CountBasedTipTrigger {
|
|
|
5982
5982
|
type: 'manual-transfer';
|
|
5983
5983
|
}
|
|
5984
5984
|
interface ManualWireDragTipTrigger extends CountBasedTipTrigger {
|
|
5985
|
-
match_type_only?:
|
|
5985
|
+
match_type_only?: boolean;
|
|
5986
5986
|
source?: EntityID;
|
|
5987
5987
|
target?: EntityID;
|
|
5988
5988
|
type: 'manual-wire-drag';
|
|
@@ -6020,7 +6020,7 @@ interface MapGenPreset {
|
|
|
6020
6020
|
*
|
|
6021
6021
|
* If no MapGenPreset has `default = true`, the preset selector will have a blank preset label, with default settings. The "blank" preset goes away when another preset is selected.
|
|
6022
6022
|
*/
|
|
6023
|
-
default?:
|
|
6023
|
+
default?: boolean;
|
|
6024
6024
|
/**
|
|
6025
6025
|
* Specifies the ordering in the {@link map generator GUI | https://wiki.factorio.com/Map_generator}.
|
|
6026
6026
|
*/
|
|
@@ -6038,7 +6038,7 @@ interface MapGenPresetEnemyEvolutionSettings {
|
|
|
6038
6038
|
* Percentual increase in the evolution factor for every destroyed spawner
|
|
6039
6039
|
*/
|
|
6040
6040
|
destroy_factor?: double;
|
|
6041
|
-
enabled?:
|
|
6041
|
+
enabled?: boolean;
|
|
6042
6042
|
/**
|
|
6043
6043
|
* Percentual increase in the evolution factor for 1 pollution unit
|
|
6044
6044
|
*/
|
|
@@ -6049,7 +6049,7 @@ interface MapGenPresetEnemyEvolutionSettings {
|
|
|
6049
6049
|
time_factor?: double;
|
|
6050
6050
|
}
|
|
6051
6051
|
interface MapGenPresetEnemyExpansionSettings {
|
|
6052
|
-
enabled?:
|
|
6052
|
+
enabled?: boolean;
|
|
6053
6053
|
/**
|
|
6054
6054
|
* In ticks.
|
|
6055
6055
|
*/
|
|
@@ -6080,7 +6080,7 @@ interface MapGenPresetPollutionSettings {
|
|
|
6080
6080
|
* Must be <= 0.25. Amount that is diffused to neighboring chunks.
|
|
6081
6081
|
*/
|
|
6082
6082
|
diffusion_ratio?: double;
|
|
6083
|
-
enabled?:
|
|
6083
|
+
enabled?: boolean;
|
|
6084
6084
|
/**
|
|
6085
6085
|
* Must be >= 0.1.
|
|
6086
6086
|
*/
|
|
@@ -6098,7 +6098,7 @@ interface MapGenSettings {
|
|
|
6098
6098
|
/**
|
|
6099
6099
|
* Whether undefined `autoplace_controls` should fall back to the default controls or not.
|
|
6100
6100
|
*/
|
|
6101
|
-
default_enable_all_autoplace_controls?:
|
|
6101
|
+
default_enable_all_autoplace_controls?: boolean;
|
|
6102
6102
|
/**
|
|
6103
6103
|
* Height of the map in tiles. Silently limited to 2 000 000, ie. +/- 1 million tiles from the center in both directions.
|
|
6104
6104
|
*/
|
|
@@ -6106,15 +6106,15 @@ interface MapGenSettings {
|
|
|
6106
6106
|
/**
|
|
6107
6107
|
* If true, enemy creatures will not naturally spawn from spawners, map gen, or trigger effects.
|
|
6108
6108
|
*/
|
|
6109
|
-
no_enemies_mode?:
|
|
6109
|
+
no_enemies_mode?: boolean;
|
|
6110
6110
|
/**
|
|
6111
6111
|
* If true, enemy creatures will not attack unless the player first attacks them.
|
|
6112
6112
|
*/
|
|
6113
|
-
peaceful_mode?:
|
|
6113
|
+
peaceful_mode?: boolean;
|
|
6114
6114
|
/**
|
|
6115
6115
|
* Map of property name (`"elevation"`, etc) to name of noise expression that will provide it. Entries may be omitted. A notable usage is changing autoplace behavior of an entity based on the preset, which cannot be read from a noise expression.
|
|
6116
6116
|
*/
|
|
6117
|
-
property_expression_names?: Record<string, string |
|
|
6117
|
+
property_expression_names?: Record<string, string | boolean | double>;
|
|
6118
6118
|
/**
|
|
6119
6119
|
* Read by the game, but not used or set in the GUI.
|
|
6120
6120
|
*/
|
|
@@ -6290,25 +6290,25 @@ interface MaxFailedAttemptsPerTickPerConstructionQueueModifier extends SimpleMod
|
|
|
6290
6290
|
/**
|
|
6291
6291
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
6292
6292
|
*/
|
|
6293
|
-
use_icon_overlay_constant?:
|
|
6293
|
+
use_icon_overlay_constant?: boolean;
|
|
6294
6294
|
}
|
|
6295
6295
|
interface MaxSuccessfulAttemptsPerTickPerConstructionQueueModifier extends SimpleModifier {
|
|
6296
6296
|
type: 'max-successful-attempts-per-tick-per-construction-queue';
|
|
6297
6297
|
/**
|
|
6298
6298
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
6299
6299
|
*/
|
|
6300
|
-
use_icon_overlay_constant?:
|
|
6300
|
+
use_icon_overlay_constant?: boolean;
|
|
6301
6301
|
}
|
|
6302
6302
|
interface MaximumFollowingRobotsCountModifier extends SimpleModifier {
|
|
6303
6303
|
/**
|
|
6304
6304
|
* If set to `false`, use the icon from {@link UtilitySprites | prototype:UtilitySprites} for this technology effect icon.
|
|
6305
6305
|
*/
|
|
6306
|
-
infer_icon?:
|
|
6306
|
+
infer_icon?: boolean;
|
|
6307
6307
|
type: 'maximum-following-robots-count';
|
|
6308
6308
|
/**
|
|
6309
6309
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
6310
6310
|
*/
|
|
6311
|
-
use_icon_overlay_constant?:
|
|
6311
|
+
use_icon_overlay_constant?: boolean;
|
|
6312
6312
|
}
|
|
6313
6313
|
/**
|
|
6314
6314
|
* The mining properties of objects. For formulas for the mining time, see {@link mining | https://wiki.factorio.com/Mining}.
|
|
@@ -6341,7 +6341,7 @@ interface MinableProperties {
|
|
|
6341
6341
|
* The amount of fluid that is used up when this object is mined. If this is > 0, this object cannot be mined by hand.
|
|
6342
6342
|
*/
|
|
6343
6343
|
fluid_amount?: FluidAmount;
|
|
6344
|
-
include_in_show_counts?:
|
|
6344
|
+
include_in_show_counts?: boolean;
|
|
6345
6345
|
/**
|
|
6346
6346
|
* Name of a {@link ParticlePrototype | prototype:ParticlePrototype}. Which set of particles to use.
|
|
6347
6347
|
*/
|
|
@@ -6365,7 +6365,7 @@ interface MinableProperties {
|
|
|
6365
6365
|
* The items or fluids that are returned when this object is mined.
|
|
6366
6366
|
*/
|
|
6367
6367
|
results?: ProductPrototype[];
|
|
6368
|
-
transfer_entity_health_to_products?:
|
|
6368
|
+
transfer_entity_health_to_products?: boolean;
|
|
6369
6369
|
}
|
|
6370
6370
|
interface MineEntityTechnologyTrigger {
|
|
6371
6371
|
entity: EntityID;
|
|
@@ -6392,25 +6392,25 @@ interface MiningDrillGraphicsSet extends WorkingVisualisations {
|
|
|
6392
6392
|
circuit_connector_secondary_draw_order?: int8 | CircuitConnectorSecondaryDrawOrder;
|
|
6393
6393
|
drilling_vertical_movement_duration?: uint16;
|
|
6394
6394
|
frozen_patch?: Sprite4Way;
|
|
6395
|
-
reset_animation_when_frozen?:
|
|
6395
|
+
reset_animation_when_frozen?: boolean;
|
|
6396
6396
|
}
|
|
6397
6397
|
interface MiningDrillProductivityBonusModifier extends SimpleModifier {
|
|
6398
6398
|
/**
|
|
6399
6399
|
* If set to `false`, use the icon from {@link UtilitySprites | prototype:UtilitySprites} for this technology effect icon.
|
|
6400
6400
|
*/
|
|
6401
|
-
infer_icon?:
|
|
6401
|
+
infer_icon?: boolean;
|
|
6402
6402
|
type: 'mining-drill-productivity-bonus';
|
|
6403
6403
|
/**
|
|
6404
6404
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
6405
6405
|
*/
|
|
6406
|
-
use_icon_overlay_constant?:
|
|
6406
|
+
use_icon_overlay_constant?: boolean;
|
|
6407
6407
|
}
|
|
6408
6408
|
interface MiningWithFluidModifier extends BoolModifier {
|
|
6409
6409
|
type: 'mining-with-fluid';
|
|
6410
6410
|
/**
|
|
6411
6411
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
6412
6412
|
*/
|
|
6413
|
-
use_icon_overlay_constant?:
|
|
6413
|
+
use_icon_overlay_constant?: boolean;
|
|
6414
6414
|
}
|
|
6415
6415
|
type Mirroring = 'horizontal' | 'vertical' | 'diagonal-pos' | 'diagonal-neg';
|
|
6416
6416
|
/**
|
|
@@ -6420,7 +6420,7 @@ interface ModSetting {
|
|
|
6420
6420
|
/**
|
|
6421
6421
|
* The value of the mod setting. The type depends on the kind of setting.
|
|
6422
6422
|
*/
|
|
6423
|
-
value: int32 | double |
|
|
6423
|
+
value: int32 | double | boolean | string | Color;
|
|
6424
6424
|
}
|
|
6425
6425
|
/**
|
|
6426
6426
|
* The effect that is applied when a {@link TechnologyPrototype | prototype:TechnologyPrototype} is researched.
|
|
@@ -6618,7 +6618,7 @@ interface NeighbourConnectable {
|
|
|
6618
6618
|
/**
|
|
6619
6619
|
* If the connection positions and directions will be affected by entity's direction.
|
|
6620
6620
|
*/
|
|
6621
|
-
affected_by_direction?:
|
|
6621
|
+
affected_by_direction?: boolean;
|
|
6622
6622
|
/**
|
|
6623
6623
|
* Definitions of the connection points.
|
|
6624
6624
|
*/
|
|
@@ -6698,7 +6698,7 @@ interface NestedTriggerEffectItem extends TriggerEffectItem {
|
|
|
6698
6698
|
"clamp(x, -1, 1)"
|
|
6699
6699
|
```
|
|
6700
6700
|
*/
|
|
6701
|
-
type NoiseExpression = string |
|
|
6701
|
+
type NoiseExpression = string | boolean | double;
|
|
6702
6702
|
/**
|
|
6703
6703
|
* The advantage of noise functions over {@link noise expressions | prototype:NoiseExpression} is that they have parameters.
|
|
6704
6704
|
*/
|
|
@@ -6729,7 +6729,7 @@ interface NothingModifier extends BaseModifier {
|
|
|
6729
6729
|
/**
|
|
6730
6730
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
6731
6731
|
*/
|
|
6732
|
-
use_icon_overlay_constant?:
|
|
6732
|
+
use_icon_overlay_constant?: boolean;
|
|
6733
6733
|
}
|
|
6734
6734
|
interface OffshorePumpGraphicsSet {
|
|
6735
6735
|
/**
|
|
@@ -6846,7 +6846,7 @@ interface OtherColors {
|
|
|
6846
6846
|
*/
|
|
6847
6847
|
type ParticleID = string;
|
|
6848
6848
|
interface PasteEntitySettingsTipTrigger extends CountBasedTipTrigger {
|
|
6849
|
-
match_type_only?:
|
|
6849
|
+
match_type_only?: boolean;
|
|
6850
6850
|
source?: EntityID;
|
|
6851
6851
|
target?: EntityID;
|
|
6852
6852
|
type: 'paste-entity-settings';
|
|
@@ -6965,7 +6965,7 @@ interface PathFinderSettings {
|
|
|
6965
6965
|
* If the current actual cost from start is higher than this times estimate of start to goal then path finding is terminated.
|
|
6966
6966
|
*/
|
|
6967
6967
|
start_to_goal_cost_multiplier_to_terminate_path_find: double;
|
|
6968
|
-
use_path_cache:
|
|
6968
|
+
use_path_cache: boolean;
|
|
6969
6969
|
}
|
|
6970
6970
|
/**
|
|
6971
6971
|
* Not all prototypes that use this type are affected by all properties.
|
|
@@ -7188,7 +7188,7 @@ interface PipePictures {
|
|
|
7188
7188
|
interface PlaceAsTile {
|
|
7189
7189
|
condition: CollisionMaskConnector;
|
|
7190
7190
|
condition_size: uint32;
|
|
7191
|
-
invert?:
|
|
7191
|
+
invert?: boolean;
|
|
7192
7192
|
result: TileID;
|
|
7193
7193
|
tile_condition?: TileID[];
|
|
7194
7194
|
}
|
|
@@ -7209,16 +7209,16 @@ interface PlanetPrototypeMapGenSettings {
|
|
|
7209
7209
|
/**
|
|
7210
7210
|
* Used for showing the planet icon in map generator GUI next to aux climate control.
|
|
7211
7211
|
*/
|
|
7212
|
-
aux_climate_control?:
|
|
7212
|
+
aux_climate_control?: boolean;
|
|
7213
7213
|
cliff_settings?: CliffPlacementSettings;
|
|
7214
7214
|
/**
|
|
7215
7215
|
* Used for showing the planet icon in map generator GUI next to moisture climate control.
|
|
7216
7216
|
*/
|
|
7217
|
-
moisture_climate_control?:
|
|
7217
|
+
moisture_climate_control?: boolean;
|
|
7218
7218
|
/**
|
|
7219
7219
|
* Map of property name (e.g. "elevation") to name of noise expression that will provide it. Entries may be omitted. A notable usage is changing autoplace behavior of an entity based on the preset, which cannot be read from a noise expression.
|
|
7220
7220
|
*/
|
|
7221
|
-
property_expression_names?: Record<string, string |
|
|
7221
|
+
property_expression_names?: Record<string, string | boolean | double>;
|
|
7222
7222
|
territory_settings?: TerritorySettings;
|
|
7223
7223
|
}
|
|
7224
7224
|
/**
|
|
@@ -7240,7 +7240,7 @@ interface PlaySoundTriggerEffectItem extends TriggerEffectItem {
|
|
|
7240
7240
|
* Negative values are silently clamped to 0.
|
|
7241
7241
|
*/
|
|
7242
7242
|
min_distance?: float;
|
|
7243
|
-
play_on_target_position?:
|
|
7243
|
+
play_on_target_position?: boolean;
|
|
7244
7244
|
sound: Sound;
|
|
7245
7245
|
type: 'play-sound';
|
|
7246
7246
|
}
|
|
@@ -7302,7 +7302,7 @@ interface PodDistanceTraveledProcessionBezierControlPoint {
|
|
|
7302
7302
|
timestamp?: MapTick;
|
|
7303
7303
|
}
|
|
7304
7304
|
interface PodDistanceTraveledProcessionLayer {
|
|
7305
|
-
contribute_to_distance_traveled?:
|
|
7305
|
+
contribute_to_distance_traveled?: boolean;
|
|
7306
7306
|
distance_traveled_contribution?: float;
|
|
7307
7307
|
frames: PodDistanceTraveledProcessionBezierControlPoint[];
|
|
7308
7308
|
/**
|
|
@@ -7367,7 +7367,7 @@ interface PodMovementProcessionBezierControlPoint {
|
|
|
7367
7367
|
```
|
|
7368
7368
|
*/
|
|
7369
7369
|
interface PodMovementProcessionLayer {
|
|
7370
|
-
contribute_to_distance_traveled?:
|
|
7370
|
+
contribute_to_distance_traveled?: boolean;
|
|
7371
7371
|
distance_traveled_contribution?: float;
|
|
7372
7372
|
frames: PodMovementProcessionBezierControlPoint[];
|
|
7373
7373
|
/**
|
|
@@ -7445,7 +7445,7 @@ interface PollutionSettings {
|
|
|
7445
7445
|
* Amount that is diffused to neighboring chunks.
|
|
7446
7446
|
*/
|
|
7447
7447
|
diffusion_ratio: double;
|
|
7448
|
-
enabled:
|
|
7448
|
+
enabled: boolean;
|
|
7449
7449
|
enemy_attack_pollution_consumption_modifier: double;
|
|
7450
7450
|
/**
|
|
7451
7451
|
* Anything bigger than this is visualized as this value.
|
|
@@ -7763,7 +7763,7 @@ interface ProgressBarStyleSpecification extends BaseStyleSpecification {
|
|
|
7763
7763
|
bar_background?: ElementImageSet;
|
|
7764
7764
|
bar_width?: uint32;
|
|
7765
7765
|
color?: Color;
|
|
7766
|
-
embed_text_in_bar?:
|
|
7766
|
+
embed_text_in_bar?: boolean;
|
|
7767
7767
|
filled_font_color?: Color;
|
|
7768
7768
|
/**
|
|
7769
7769
|
* Name of a {@link FontPrototype | prototype:FontPrototype}.
|
|
@@ -7775,7 +7775,7 @@ interface ProgressBarStyleSpecification extends BaseStyleSpecification {
|
|
|
7775
7775
|
type: 'progressbar_style';
|
|
7776
7776
|
}
|
|
7777
7777
|
interface ProjectileAttackParameters extends BaseAttackParameters {
|
|
7778
|
-
apply_projection_to_projectile_creation_position?:
|
|
7778
|
+
apply_projection_to_projectile_creation_position?: boolean;
|
|
7779
7779
|
/**
|
|
7780
7780
|
* When used with `projectile_creation_parameters`, this offsets what the turret's sprite looks at. Setting to `{0,1}` will cause the turret to aim one tile up from the target but the projectile will still aim for the entity. Can be used to give the illusion of height but can also confuse aim logic when set too high.
|
|
7781
7781
|
*
|
|
@@ -7831,7 +7831,7 @@ interface PrototypeStrafeSettings {
|
|
|
7831
7831
|
* Must be between 0 and 1 inclusive.
|
|
7832
7832
|
*/
|
|
7833
7833
|
clockwise_chance?: float;
|
|
7834
|
-
face_target?:
|
|
7834
|
+
face_target?: boolean;
|
|
7835
7835
|
/**
|
|
7836
7836
|
* Must be between 0 and max_distance inclusive.
|
|
7837
7837
|
*/
|
|
@@ -7974,8 +7974,8 @@ interface RadiusVisualisationSpecification {
|
|
|
7974
7974
|
* Must be greater than or equal to 0.
|
|
7975
7975
|
*/
|
|
7976
7976
|
distance?: double;
|
|
7977
|
-
draw_in_cursor?:
|
|
7978
|
-
draw_on_selection?:
|
|
7977
|
+
draw_in_cursor?: boolean;
|
|
7978
|
+
draw_on_selection?: boolean;
|
|
7979
7979
|
offset?: Vector;
|
|
7980
7980
|
sprite?: Sprite;
|
|
7981
7981
|
}
|
|
@@ -8081,7 +8081,7 @@ interface RailPlannerAllowElevatedRailsModifier extends BoolModifier {
|
|
|
8081
8081
|
/**
|
|
8082
8082
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
8083
8083
|
*/
|
|
8084
|
-
use_icon_overlay_constant?:
|
|
8084
|
+
use_icon_overlay_constant?: boolean;
|
|
8085
8085
|
}
|
|
8086
8086
|
interface RailRenderLayers {
|
|
8087
8087
|
back_end?: RenderLayer;
|
|
@@ -8124,8 +8124,8 @@ interface RailSignalPictureSet {
|
|
|
8124
8124
|
}
|
|
8125
8125
|
interface RailSignalStaticSpriteLayer {
|
|
8126
8126
|
align_to_frame_index?: uint8[];
|
|
8127
|
-
hide_if_not_connected_to_rails?:
|
|
8128
|
-
hide_if_simulation?:
|
|
8127
|
+
hide_if_not_connected_to_rails?: boolean;
|
|
8128
|
+
hide_if_simulation?: boolean;
|
|
8129
8129
|
render_layer?: RenderLayer;
|
|
8130
8130
|
/**
|
|
8131
8131
|
* Must be an empty array or contain exactly 16 values.
|
|
@@ -8144,7 +8144,7 @@ interface RailSupportOnDeepOilOceanModifier extends BoolModifier {
|
|
|
8144
8144
|
/**
|
|
8145
8145
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
8146
8146
|
*/
|
|
8147
|
-
use_icon_overlay_constant?:
|
|
8147
|
+
use_icon_overlay_constant?: boolean;
|
|
8148
8148
|
}
|
|
8149
8149
|
interface RailsFogMaskDefinitions {
|
|
8150
8150
|
east?: FogMaskShapeDefinition;
|
|
@@ -8296,7 +8296,7 @@ type RichTextSetting = 'enabled' | 'disabled' | 'highlight';
|
|
|
8296
8296
|
interface RollingStockRotatedSlopedGraphics {
|
|
8297
8297
|
rotated: RotatedSprite;
|
|
8298
8298
|
slope_angle_between_frames?: double;
|
|
8299
|
-
slope_back_equals_front?:
|
|
8299
|
+
slope_back_equals_front?: boolean;
|
|
8300
8300
|
sloped?: RotatedSprite;
|
|
8301
8301
|
}
|
|
8302
8302
|
interface RotateEntityTipTrigger extends CountBasedTipTrigger {
|
|
@@ -8306,17 +8306,17 @@ interface RotatedAnimation extends AnimationParameters {
|
|
|
8306
8306
|
/**
|
|
8307
8307
|
* Only loaded if `layers` is not defined.
|
|
8308
8308
|
*/
|
|
8309
|
-
apply_projection?:
|
|
8309
|
+
apply_projection?: boolean;
|
|
8310
8310
|
/**
|
|
8311
8311
|
* Only loaded if `layers` is not defined.
|
|
8312
8312
|
*
|
|
8313
8313
|
* If `true`, `direction_count` must be greater than `1`.
|
|
8314
8314
|
*/
|
|
8315
|
-
axially_symmetrical?:
|
|
8315
|
+
axially_symmetrical?: boolean;
|
|
8316
8316
|
/**
|
|
8317
8317
|
* Only loaded if `layers` is not defined.
|
|
8318
8318
|
*/
|
|
8319
|
-
counterclockwise?:
|
|
8319
|
+
counterclockwise?: boolean;
|
|
8320
8320
|
/**
|
|
8321
8321
|
* Only loaded if `layers` is not defined.
|
|
8322
8322
|
*
|
|
@@ -8430,29 +8430,29 @@ interface RotatedSprite extends SpriteParameters {
|
|
|
8430
8430
|
/**
|
|
8431
8431
|
* Only loaded if `layers` is not defined.
|
|
8432
8432
|
*/
|
|
8433
|
-
allow_low_quality_rotation?:
|
|
8433
|
+
allow_low_quality_rotation?: boolean;
|
|
8434
8434
|
/**
|
|
8435
8435
|
* Only loaded if `layers` is not defined.
|
|
8436
8436
|
*
|
|
8437
8437
|
* Used to fix the inconsistency of direction of the entity in 3d when rendered and direction on the screen (where the 45 degree angle for projection is used).
|
|
8438
8438
|
*/
|
|
8439
|
-
apply_projection?:
|
|
8439
|
+
apply_projection?: boolean;
|
|
8440
8440
|
/**
|
|
8441
8441
|
* Only loaded if `layers` is not defined.
|
|
8442
8442
|
*
|
|
8443
8443
|
* When `true`, the same picture is used for left/right direction, just flipped, which can save half of the space required, but is not usable once the picture contains shadows, etc.
|
|
8444
8444
|
*/
|
|
8445
|
-
axially_symmetrical?:
|
|
8445
|
+
axially_symmetrical?: boolean;
|
|
8446
8446
|
/**
|
|
8447
8447
|
* Only loaded if `layers` is not defined.
|
|
8448
8448
|
*/
|
|
8449
|
-
back_equals_front?:
|
|
8449
|
+
back_equals_front?: boolean;
|
|
8450
8450
|
/**
|
|
8451
8451
|
* Only loaded if `layers` is not defined.
|
|
8452
8452
|
*
|
|
8453
8453
|
* Set to `true` to indicate sprites in the spritesheet are in counterclockwise order.
|
|
8454
8454
|
*/
|
|
8455
|
-
counterclockwise?:
|
|
8455
|
+
counterclockwise?: boolean;
|
|
8456
8456
|
/**
|
|
8457
8457
|
* Only loaded if `layers` is not defined.
|
|
8458
8458
|
*
|
|
@@ -8496,7 +8496,7 @@ interface RotatedSprite extends SpriteParameters {
|
|
|
8496
8496
|
*
|
|
8497
8497
|
* Unused.
|
|
8498
8498
|
*/
|
|
8499
|
-
generate_sdf?:
|
|
8499
|
+
generate_sdf?: boolean;
|
|
8500
8500
|
/**
|
|
8501
8501
|
* If this property is present, all RotatedSprite definitions have to be placed as entries in the array, and they will all be loaded from there. `layers` may not be an empty table. Each definition in the array may also have the `layers` property.
|
|
8502
8502
|
*
|
|
@@ -8551,9 +8551,9 @@ interface ScrollBarStyleSpecification extends BaseStyleSpecification {
|
|
|
8551
8551
|
thumb_button_style?: ButtonStyleSpecification;
|
|
8552
8552
|
}
|
|
8553
8553
|
interface ScrollPaneStyleSpecification extends BaseStyleSpecification {
|
|
8554
|
-
always_draw_borders?:
|
|
8554
|
+
always_draw_borders?: boolean;
|
|
8555
8555
|
background_graphical_set?: ElementImageSet;
|
|
8556
|
-
dont_force_clipping_rect_for_contents?:
|
|
8556
|
+
dont_force_clipping_rect_for_contents?: boolean;
|
|
8557
8557
|
extra_bottom_margin_when_activated?: int32;
|
|
8558
8558
|
extra_bottom_padding_when_activated?: int32;
|
|
8559
8559
|
extra_left_margin_when_activated?: int32;
|
|
@@ -8572,7 +8572,7 @@ interface ScrollPaneStyleSpecification extends BaseStyleSpecification {
|
|
|
8572
8572
|
extra_top_padding_when_activated?: int32;
|
|
8573
8573
|
graphical_set?: ElementImageSet;
|
|
8574
8574
|
horizontal_scrollbar_style?: HorizontalScrollBarStyleSpecification;
|
|
8575
|
-
scrollbars_go_outside?:
|
|
8575
|
+
scrollbars_go_outside?: boolean;
|
|
8576
8576
|
type: 'scroll_pane_style';
|
|
8577
8577
|
vertical_flow_style?: VerticalFlowStyleSpecification;
|
|
8578
8578
|
vertical_scrollbar_style?: VerticalScrollBarStyleSpecification;
|
|
@@ -8605,7 +8605,7 @@ interface SelectionModeData {
|
|
|
8605
8605
|
entity_filters?: EntityID[];
|
|
8606
8606
|
entity_type_filters?: string[];
|
|
8607
8607
|
mode: SelectionModeFlags;
|
|
8608
|
-
play_ended_sound_when_nothing_selected?:
|
|
8608
|
+
play_ended_sound_when_nothing_selected?: boolean;
|
|
8609
8609
|
started_sound?: Sound;
|
|
8610
8610
|
tile_filter_mode?: 'whitelist' | 'blacklist';
|
|
8611
8611
|
tile_filters?: TileID[];
|
|
@@ -8762,7 +8762,7 @@ interface SendItemToOrbitTechnologyTrigger {
|
|
|
8762
8762
|
type: 'send-item-to-orbit';
|
|
8763
8763
|
}
|
|
8764
8764
|
interface SendSpidertronTipTrigger extends CountBasedTipTrigger {
|
|
8765
|
-
append?:
|
|
8765
|
+
append?: boolean;
|
|
8766
8766
|
type: 'send-spidertron';
|
|
8767
8767
|
}
|
|
8768
8768
|
type SendToOrbitMode = 'not-sendable' | 'manual' | 'automated';
|
|
@@ -8774,27 +8774,27 @@ interface SequenceTipTrigger {
|
|
|
8774
8774
|
type: 'sequence';
|
|
8775
8775
|
}
|
|
8776
8776
|
interface SetFilterTipTrigger extends CountBasedTipTrigger {
|
|
8777
|
-
consecutive?:
|
|
8777
|
+
consecutive?: boolean;
|
|
8778
8778
|
entity?: EntityID;
|
|
8779
|
-
match_type_only?:
|
|
8779
|
+
match_type_only?: boolean;
|
|
8780
8780
|
type: 'set-filter';
|
|
8781
8781
|
}
|
|
8782
8782
|
interface SetLogisticRequestTipTrigger extends CountBasedTipTrigger {
|
|
8783
8783
|
entity?: EntityID;
|
|
8784
|
-
logistic_chest_only?:
|
|
8784
|
+
logistic_chest_only?: boolean;
|
|
8785
8785
|
type: 'set-logistic-request';
|
|
8786
8786
|
}
|
|
8787
8787
|
interface SetRecipeTipTrigger extends CountBasedTipTrigger {
|
|
8788
|
-
any_quality?:
|
|
8789
|
-
consecutive?:
|
|
8788
|
+
any_quality?: boolean;
|
|
8789
|
+
consecutive?: boolean;
|
|
8790
8790
|
machine?: EntityID;
|
|
8791
8791
|
recipe?: RecipeID;
|
|
8792
8792
|
type: 'set-recipe';
|
|
8793
|
-
uses_fluid?:
|
|
8793
|
+
uses_fluid?: boolean;
|
|
8794
8794
|
}
|
|
8795
8795
|
interface SetTileTriggerEffectItem extends TriggerEffectItem {
|
|
8796
|
-
apply_on_space_platform?:
|
|
8797
|
-
apply_projection?:
|
|
8796
|
+
apply_on_space_platform?: boolean;
|
|
8797
|
+
apply_projection?: boolean;
|
|
8798
8798
|
radius: float;
|
|
8799
8799
|
tile_collision_mask?: CollisionMaskConnector;
|
|
8800
8800
|
tile_name: TileID;
|
|
@@ -8871,14 +8871,14 @@ interface SimulationDefinition {
|
|
|
8871
8871
|
/**
|
|
8872
8872
|
* If this is true, the map of the simulation is set to be a lab-tile checkerboard in the area of `{{-20, -15},{20, 15}}` when the scenario is first initialized (before init/init_file run).
|
|
8873
8873
|
*/
|
|
8874
|
-
checkboard?:
|
|
8874
|
+
checkboard?: boolean;
|
|
8875
8875
|
game_view_settings?: GameViewSettings;
|
|
8876
8876
|
/**
|
|
8877
8877
|
* If `save` is not given and this is true, a map gets generated by the game for use in the simulation.
|
|
8878
8878
|
*/
|
|
8879
|
-
generate_map?:
|
|
8880
|
-
hide_factoriopedia_gradient?:
|
|
8881
|
-
hide_health_bars?:
|
|
8879
|
+
generate_map?: boolean;
|
|
8880
|
+
hide_factoriopedia_gradient?: boolean;
|
|
8881
|
+
hide_health_bars?: boolean;
|
|
8882
8882
|
/**
|
|
8883
8883
|
* Only loaded if `init_file` is not defined.
|
|
8884
8884
|
*
|
|
@@ -8901,18 +8901,18 @@ interface SimulationDefinition {
|
|
|
8901
8901
|
* An array of mods that will be run in this simulation if they are present and enabled.
|
|
8902
8902
|
*/
|
|
8903
8903
|
mods?: string[];
|
|
8904
|
-
mute_alert_sounds?:
|
|
8905
|
-
mute_technology_finished_sound?:
|
|
8904
|
+
mute_alert_sounds?: boolean;
|
|
8905
|
+
mute_technology_finished_sound?: boolean;
|
|
8906
8906
|
/**
|
|
8907
8907
|
* Overrides whether a simulation has its wind sounds muted.
|
|
8908
8908
|
*
|
|
8909
8909
|
* Tips and Tricks simulations and Factoriopedia simulations have their wind sounds muted by default, other simulations don't.
|
|
8910
8910
|
*/
|
|
8911
|
-
mute_wind_sounds?:
|
|
8911
|
+
mute_wind_sounds?: boolean;
|
|
8912
8912
|
/**
|
|
8913
8913
|
* If true, overrides the simulation volume set by the player in the sound settings, simply setting the volume modifier to `1`.
|
|
8914
8914
|
*/
|
|
8915
|
-
override_volume?:
|
|
8915
|
+
override_volume?: boolean;
|
|
8916
8916
|
planet?: SpaceLocationID;
|
|
8917
8917
|
/**
|
|
8918
8918
|
* The save file that is used for this simulation. If not given and `generate_map` is `true`, a map is generated by the game.
|
|
@@ -8997,12 +8997,12 @@ interface SingleGraphicLayerProcessionBezierControlPoint {
|
|
|
8997
8997
|
tint_t?: Color;
|
|
8998
8998
|
}
|
|
8999
8999
|
interface SingleGraphicProcessionLayer {
|
|
9000
|
-
animation_driven_by_curve?:
|
|
9001
|
-
clip_with_hatches?:
|
|
9000
|
+
animation_driven_by_curve?: boolean;
|
|
9001
|
+
clip_with_hatches?: boolean;
|
|
9002
9002
|
/**
|
|
9003
9003
|
* Swaps the order of sprite shift and rotation.
|
|
9004
9004
|
*/
|
|
9005
|
-
compensated_pivot?:
|
|
9005
|
+
compensated_pivot?: boolean;
|
|
9006
9006
|
/**
|
|
9007
9007
|
* Default values if unspecified:
|
|
9008
9008
|
*
|
|
@@ -9020,23 +9020,23 @@ interface SingleGraphicProcessionLayer {
|
|
|
9020
9020
|
*/
|
|
9021
9021
|
frames: SingleGraphicLayerProcessionBezierControlPoint[];
|
|
9022
9022
|
graphic: ProcessionGraphic;
|
|
9023
|
-
is_passenger_only?:
|
|
9023
|
+
is_passenger_only?: boolean;
|
|
9024
9024
|
/**
|
|
9025
9025
|
* Where the sprite is centered.
|
|
9026
9026
|
*/
|
|
9027
9027
|
relative_to?: EffectRelativeTo;
|
|
9028
9028
|
render_layer?: RenderLayer;
|
|
9029
|
-
rotates_with_pod?:
|
|
9029
|
+
rotates_with_pod?: boolean;
|
|
9030
9030
|
secondary_draw_order?: int8;
|
|
9031
9031
|
/**
|
|
9032
9032
|
* Only applied when the `relative_to` is `pod`.
|
|
9033
9033
|
*/
|
|
9034
|
-
shift_rotates_with_pod?:
|
|
9034
|
+
shift_rotates_with_pod?: boolean;
|
|
9035
9035
|
type: 'single-graphic';
|
|
9036
9036
|
}
|
|
9037
9037
|
interface SliderStyleSpecificationBase extends BaseStyleSpecification {
|
|
9038
9038
|
button?: ButtonStyleSpecification;
|
|
9039
|
-
draw_notches?:
|
|
9039
|
+
draw_notches?: boolean;
|
|
9040
9040
|
empty_bar?: ElementImageSet;
|
|
9041
9041
|
empty_bar_disabled?: ElementImageSet;
|
|
9042
9042
|
full_bar?: ElementImageSet;
|
|
@@ -9055,7 +9055,7 @@ interface SmokeSource {
|
|
|
9055
9055
|
* Number of smokes generated per entity animation cycle (or per tick for some entities). Can't be negative or infinite.
|
|
9056
9056
|
*/
|
|
9057
9057
|
frequency: float;
|
|
9058
|
-
has_8_directions?:
|
|
9058
|
+
has_8_directions?: boolean;
|
|
9059
9059
|
height?: float;
|
|
9060
9060
|
height_deviation?: float;
|
|
9061
9061
|
name: TrivialSmokeID;
|
|
@@ -9108,7 +9108,7 @@ interface SmokeSource {
|
|
|
9108
9108
|
type Sound = {
|
|
9109
9109
|
advanced_volume_control?: AdvancedVolumeControl;
|
|
9110
9110
|
aggregation?: AggregationSpecification;
|
|
9111
|
-
allow_random_repeat?:
|
|
9111
|
+
allow_random_repeat?: boolean;
|
|
9112
9112
|
/**
|
|
9113
9113
|
* Modifies how far a sound can be heard. Cannot be less than zero.
|
|
9114
9114
|
*/
|
|
@@ -9154,7 +9154,7 @@ type Sound = {
|
|
|
9154
9154
|
/**
|
|
9155
9155
|
* Only loaded if `variations` is not defined.
|
|
9156
9156
|
*/
|
|
9157
|
-
preload?:
|
|
9157
|
+
preload?: boolean;
|
|
9158
9158
|
/**
|
|
9159
9159
|
* Sounds with higher priority will replace a sound with lower priority if the maximum sounds limit is reached.
|
|
9160
9160
|
*
|
|
@@ -9218,7 +9218,7 @@ type SoundDefinition = {
|
|
|
9218
9218
|
*/
|
|
9219
9219
|
min_volume?: float;
|
|
9220
9220
|
modifiers?: SoundModifier | SoundModifier[];
|
|
9221
|
-
preload?:
|
|
9221
|
+
preload?: boolean;
|
|
9222
9222
|
/**
|
|
9223
9223
|
* Speed must be `>= 1 / 64`. This sets both min and max speeds.
|
|
9224
9224
|
*/
|
|
@@ -9295,7 +9295,7 @@ interface SpacePlatformsModifier extends BoolModifier {
|
|
|
9295
9295
|
/**
|
|
9296
9296
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
9297
9297
|
*/
|
|
9298
|
-
use_icon_overlay_constant?:
|
|
9298
|
+
use_icon_overlay_constant?: boolean;
|
|
9299
9299
|
}
|
|
9300
9300
|
/**
|
|
9301
9301
|
* Nebulae are rendered only behind tiles with the effect, but stars are rendered behind entire terrain. For that reason using two or more tile types with different space effect on one surface is not supported. The game will allow this to happen, but rendering will chose one star configuration for entire screen.
|
|
@@ -9350,7 +9350,7 @@ interface SpeechBubbleStyleSpecification extends BaseStyleSpecification {
|
|
|
9350
9350
|
close_color?: Color;
|
|
9351
9351
|
frame_style?: FrameStyleSpecification;
|
|
9352
9352
|
label_style?: LabelStyleSpecification;
|
|
9353
|
-
pass_through_mouse?:
|
|
9353
|
+
pass_through_mouse?: boolean;
|
|
9354
9354
|
type: 'speech_bubble_style';
|
|
9355
9355
|
}
|
|
9356
9356
|
/**
|
|
@@ -9751,34 +9751,34 @@ interface SpriteNWaySheet extends SpriteParameters {
|
|
|
9751
9751
|
/**
|
|
9752
9752
|
* Unused.
|
|
9753
9753
|
*/
|
|
9754
|
-
generate_sdf?:
|
|
9754
|
+
generate_sdf?: boolean;
|
|
9755
9755
|
}
|
|
9756
9756
|
interface SpriteParameters extends SpriteSource {
|
|
9757
|
-
apply_runtime_tint?:
|
|
9758
|
-
apply_special_effect?:
|
|
9757
|
+
apply_runtime_tint?: boolean;
|
|
9758
|
+
apply_special_effect?: boolean;
|
|
9759
9759
|
blend_mode?: BlendMode;
|
|
9760
9760
|
/**
|
|
9761
9761
|
* Only one of `draw_as_shadow`, `draw_as_glow` and `draw_as_light` can be true. This takes precedence over `draw_as_light`.
|
|
9762
9762
|
*
|
|
9763
9763
|
* Draws first as a normal sprite, then again as a light layer. See {@link https://forums.factorio.com/91682 | https://forums.factorio.com/91682}.
|
|
9764
9764
|
*/
|
|
9765
|
-
draw_as_glow?:
|
|
9765
|
+
draw_as_glow?: boolean;
|
|
9766
9766
|
/**
|
|
9767
9767
|
* Only one of `draw_as_shadow`, `draw_as_glow` and `draw_as_light` can be true.
|
|
9768
9768
|
*/
|
|
9769
|
-
draw_as_light?:
|
|
9769
|
+
draw_as_light?: boolean;
|
|
9770
9770
|
/**
|
|
9771
9771
|
* Only one of `draw_as_shadow`, `draw_as_glow` and `draw_as_light` can be true. This takes precedence over `draw_as_glow` and `draw_as_light`.
|
|
9772
9772
|
*/
|
|
9773
|
-
draw_as_shadow?:
|
|
9773
|
+
draw_as_shadow?: boolean;
|
|
9774
9774
|
flags?: SpriteFlags;
|
|
9775
9775
|
/**
|
|
9776
9776
|
* This property is only used by sprites used in {@link UtilitySprites | prototype:UtilitySprites} that have the `"icon"` flag set.
|
|
9777
9777
|
*
|
|
9778
9778
|
* If this is set to `true`, the game will generate an icon shadow (using signed distance fields) for the sprite.
|
|
9779
9779
|
*/
|
|
9780
|
-
generate_sdf?:
|
|
9781
|
-
invert_colors?:
|
|
9780
|
+
generate_sdf?: boolean;
|
|
9781
|
+
invert_colors?: boolean;
|
|
9782
9782
|
/**
|
|
9783
9783
|
* Only loaded if this is an icon, that is it has the flag `"group=icon"` or `"group=gui"`. Will be clamped to range `[0, 5]`.
|
|
9784
9784
|
*/
|
|
@@ -9787,7 +9787,7 @@ interface SpriteParameters extends SpriteSource {
|
|
|
9787
9787
|
/**
|
|
9788
9788
|
* Whether to rotate the `shift` alongside the sprite's rotation. This only applies to sprites which are procedurally rotated by the game engine (like projectiles, wires, inserter hands, etc).
|
|
9789
9789
|
*/
|
|
9790
|
-
rotate_shift?:
|
|
9790
|
+
rotate_shift?: boolean;
|
|
9791
9791
|
/**
|
|
9792
9792
|
* Values other than `1` specify the scale of the sprite on default zoom. A scale of `2` means that the picture will be two times bigger on screen (and thus more pixelated).
|
|
9793
9793
|
*/
|
|
@@ -9801,7 +9801,7 @@ interface SpriteParameters extends SpriteSource {
|
|
|
9801
9801
|
*/
|
|
9802
9802
|
surface?: SpriteUsageSurfaceHint;
|
|
9803
9803
|
tint?: Color;
|
|
9804
|
-
tint_as_overlay?:
|
|
9804
|
+
tint_as_overlay?: boolean;
|
|
9805
9805
|
/**
|
|
9806
9806
|
* Provides hint to sprite atlas system, so it can pack sprites that are related to each other to the same sprite atlas.
|
|
9807
9807
|
*/
|
|
@@ -9844,7 +9844,7 @@ interface SpriteSource {
|
|
|
9844
9844
|
/**
|
|
9845
9845
|
* If `true`, the sprite may be downsampled to half its size on load even when 'Sprite quality' graphics setting is set to 'High'. Whether downsampling happens depends on detected hardware and other graphics settings.
|
|
9846
9846
|
*/
|
|
9847
|
-
allow_forced_downscale?:
|
|
9847
|
+
allow_forced_downscale?: boolean;
|
|
9848
9848
|
/**
|
|
9849
9849
|
* The path to the sprite file to use.
|
|
9850
9850
|
* This property is required, but marked as optional due to typescript inheritance limitations
|
|
@@ -9859,7 +9859,7 @@ interface SpriteSource {
|
|
|
9859
9859
|
/**
|
|
9860
9860
|
* Minimal mode is entered when mod loading fails. You are in it when you see the gray box after (part of) the loading screen that tells you a mod error. Modders can ignore this property.
|
|
9861
9861
|
*/
|
|
9862
|
-
load_in_minimal_mode?:
|
|
9862
|
+
load_in_minimal_mode?: boolean;
|
|
9863
9863
|
/**
|
|
9864
9864
|
* Loaded only when `x` and `y` are both `0`. The first member of the tuple is `x` and the second is `y`.
|
|
9865
9865
|
*/
|
|
@@ -9870,7 +9870,7 @@ interface SpriteSource {
|
|
|
9870
9870
|
/**
|
|
9871
9871
|
* Whether alpha should be pre-multiplied.
|
|
9872
9872
|
*/
|
|
9873
|
-
premul_alpha?:
|
|
9873
|
+
premul_alpha?: boolean;
|
|
9874
9874
|
/**
|
|
9875
9875
|
* The width and height of the sprite. If this is a tuple, the first member of the tuple is the width and the second is the height. Otherwise the size is both width and height. Width and height may only be in the range of 0-4096.
|
|
9876
9876
|
*/
|
|
@@ -9938,7 +9938,7 @@ interface StateSteeringSettings {
|
|
|
9938
9938
|
/**
|
|
9939
9939
|
* Used only for special "to look good" purposes (like in trailer).
|
|
9940
9940
|
*/
|
|
9941
|
-
force_unit_fuzzy_goto_behavior:
|
|
9941
|
+
force_unit_fuzzy_goto_behavior: boolean;
|
|
9942
9942
|
/**
|
|
9943
9943
|
* Not including the radius of the unit.
|
|
9944
9944
|
*/
|
|
@@ -9950,14 +9950,14 @@ interface StatelessVisualisation {
|
|
|
9950
9950
|
acceleration_x?: float;
|
|
9951
9951
|
acceleration_y?: float;
|
|
9952
9952
|
acceleration_z?: float;
|
|
9953
|
-
adjust_animation_speed_by_base_scale?:
|
|
9954
|
-
affected_by_wind?:
|
|
9953
|
+
adjust_animation_speed_by_base_scale?: boolean;
|
|
9954
|
+
affected_by_wind?: boolean;
|
|
9955
9955
|
/**
|
|
9956
9956
|
* One of `nested_visualisations`, `animation` and `light` needs to be defined.
|
|
9957
9957
|
*/
|
|
9958
9958
|
animation?: AnimationVariations;
|
|
9959
9959
|
begin_scale?: float;
|
|
9960
|
-
can_lay_on_the_ground?:
|
|
9960
|
+
can_lay_on_the_ground?: boolean;
|
|
9961
9961
|
count?: uint16;
|
|
9962
9962
|
end_scale?: float;
|
|
9963
9963
|
fade_in_progress_duration?: float;
|
|
@@ -10232,7 +10232,7 @@ interface SurfaceRenderParameters {
|
|
|
10232
10232
|
/**
|
|
10233
10233
|
* When set to `true` and `clouds` property is not set, the legacy sprite clouds will be rendered on the surface.
|
|
10234
10234
|
*/
|
|
10235
|
-
draw_sprite_clouds?:
|
|
10235
|
+
draw_sprite_clouds?: boolean;
|
|
10236
10236
|
fog?: FogEffectProperties;
|
|
10237
10237
|
shadow_opacity?: float;
|
|
10238
10238
|
space_dust_background?: SpaceDustEffectProperties;
|
|
@@ -10263,15 +10263,15 @@ interface TabStyleSpecification extends StyleWithClickableGraphicalSetSpecificat
|
|
|
10263
10263
|
disabled_badge_font_color?: Color;
|
|
10264
10264
|
disabled_badge_graphical_set?: ElementImageSet;
|
|
10265
10265
|
disabled_font_color?: Color;
|
|
10266
|
-
draw_grayscale_picture?:
|
|
10266
|
+
draw_grayscale_picture?: boolean;
|
|
10267
10267
|
/**
|
|
10268
10268
|
* Name of a {@link FontPrototype | prototype:FontPrototype}.
|
|
10269
10269
|
*/
|
|
10270
10270
|
font?: string;
|
|
10271
10271
|
hover_badge_graphical_set?: ElementImageSet;
|
|
10272
|
-
increase_height_when_selected?:
|
|
10272
|
+
increase_height_when_selected?: boolean;
|
|
10273
10273
|
left_edge_selected_graphical_set?: ElementImageSet;
|
|
10274
|
-
override_graphics_on_edges?:
|
|
10274
|
+
override_graphics_on_edges?: boolean;
|
|
10275
10275
|
press_badge_graphical_set?: ElementImageSet;
|
|
10276
10276
|
right_edge_selected_graphical_set?: ElementImageSet;
|
|
10277
10277
|
selected_badge_font_color?: Color;
|
|
@@ -10286,7 +10286,7 @@ interface TabbedPaneStyleSpecification extends BaseStyleSpecification {
|
|
|
10286
10286
|
vertical_spacing?: uint32;
|
|
10287
10287
|
}
|
|
10288
10288
|
interface TableStyleSpecification extends BaseStyleSpecification {
|
|
10289
|
-
apply_row_graphical_set_per_column?:
|
|
10289
|
+
apply_row_graphical_set_per_column?: boolean;
|
|
10290
10290
|
background_graphical_set?: ElementImageSet;
|
|
10291
10291
|
border?: BorderImageSet;
|
|
10292
10292
|
bottom_cell_padding?: int16;
|
|
@@ -10319,7 +10319,7 @@ interface TableStyleSpecification extends BaseStyleSpecification {
|
|
|
10319
10319
|
type: 'table_style';
|
|
10320
10320
|
vertical_line_color?: Color;
|
|
10321
10321
|
vertical_spacing?: int32 | SpacingItem[];
|
|
10322
|
-
wide_as_column_count?:
|
|
10322
|
+
wide_as_column_count?: boolean;
|
|
10323
10323
|
}
|
|
10324
10324
|
/**
|
|
10325
10325
|
* The name of a {@link TechnologyPrototype | prototype:TechnologyPrototype}.
|
|
@@ -10492,7 +10492,7 @@ interface ThrowCapsuleAction {
|
|
|
10492
10492
|
/**
|
|
10493
10493
|
* Whether using the capsule consumes an item from the stack.
|
|
10494
10494
|
*/
|
|
10495
|
-
uses_stack?:
|
|
10495
|
+
uses_stack?: boolean;
|
|
10496
10496
|
}
|
|
10497
10497
|
interface ThrusterGraphicsSet extends WorkingVisualisations {
|
|
10498
10498
|
flame?: Sprite;
|
|
@@ -10532,7 +10532,7 @@ interface TileBuildSound {
|
|
|
10532
10532
|
interface TileBuildabilityRule {
|
|
10533
10533
|
area: SimpleBoundingBox;
|
|
10534
10534
|
colliding_tiles?: CollisionMaskConnector;
|
|
10535
|
-
remove_on_collision?:
|
|
10535
|
+
remove_on_collision?: boolean;
|
|
10536
10536
|
required_tiles?: CollisionMaskConnector;
|
|
10537
10537
|
}
|
|
10538
10538
|
/**
|
|
@@ -10946,10 +10946,10 @@ interface TileTransitionVariantLayout extends TileSpriteLayoutVariant {
|
|
|
10946
10946
|
* Use `layout` with `spritesheet` to define all the tile layers inside the `layout` property. The `*_enabled`, `*_layout` and `*_spritesheet` properties can be used to override specific layers of a reused layout.
|
|
10947
10947
|
*/
|
|
10948
10948
|
interface TileTransitions {
|
|
10949
|
-
apply_effect_color_to_overlay?:
|
|
10950
|
-
apply_waving_effect_on_background_mask?:
|
|
10951
|
-
apply_waving_effect_on_masks?:
|
|
10952
|
-
auxiliary_effect_mask_enabled?:
|
|
10949
|
+
apply_effect_color_to_overlay?: boolean;
|
|
10950
|
+
apply_waving_effect_on_background_mask?: boolean;
|
|
10951
|
+
apply_waving_effect_on_masks?: boolean;
|
|
10952
|
+
auxiliary_effect_mask_enabled?: boolean;
|
|
10953
10953
|
/**
|
|
10954
10954
|
* Overrides the `auxiliary_effect_mask` definition inside `layout`.
|
|
10955
10955
|
*/
|
|
@@ -10960,14 +10960,14 @@ interface TileTransitions {
|
|
|
10960
10960
|
* Default spritesheet for `auxiliary_effect_mask_layout` and `layout.auxiliary_effect_mask`.
|
|
10961
10961
|
*/
|
|
10962
10962
|
auxiliary_effect_mask_spritesheet?: FileName;
|
|
10963
|
-
background_enabled?:
|
|
10963
|
+
background_enabled?: boolean;
|
|
10964
10964
|
background_layer_group?: TileRenderLayer;
|
|
10965
10965
|
background_layer_offset?: int8;
|
|
10966
10966
|
/**
|
|
10967
10967
|
* Overrides the `background` definition inside `layout`.
|
|
10968
10968
|
*/
|
|
10969
10969
|
background_layout?: TileTransitionVariantLayout;
|
|
10970
|
-
background_mask_enabled?:
|
|
10970
|
+
background_mask_enabled?: boolean;
|
|
10971
10971
|
/**
|
|
10972
10972
|
* Overrides the `background_mask` definition inside `layout`.
|
|
10973
10973
|
*/
|
|
@@ -10986,9 +10986,9 @@ interface TileTransitions {
|
|
|
10986
10986
|
background_spritesheet?: FileName;
|
|
10987
10987
|
double_side_variations_in_group?: uint8;
|
|
10988
10988
|
double_side_weights?: float[];
|
|
10989
|
-
draw_background_layer_under_tiles?:
|
|
10990
|
-
draw_simple_outer_corner_over_diagonal?:
|
|
10991
|
-
effect_map_enabled?:
|
|
10989
|
+
draw_background_layer_under_tiles?: boolean;
|
|
10990
|
+
draw_simple_outer_corner_over_diagonal?: boolean;
|
|
10991
|
+
effect_map_enabled?: boolean;
|
|
10992
10992
|
/**
|
|
10993
10993
|
* Overrides the `effect_map` definition inside `layout`.
|
|
10994
10994
|
*/
|
|
@@ -11001,7 +11001,7 @@ interface TileTransitions {
|
|
|
11001
11001
|
effect_map_spritesheet?: FileName;
|
|
11002
11002
|
inner_corner_weights?: float[];
|
|
11003
11003
|
layout?: TileTransitionSpritesheetLayout;
|
|
11004
|
-
lightmap_enabled?:
|
|
11004
|
+
lightmap_enabled?: boolean;
|
|
11005
11005
|
/**
|
|
11006
11006
|
* Overrides the `lightmap` definition inside `layout`.
|
|
11007
11007
|
*/
|
|
@@ -11012,7 +11012,7 @@ interface TileTransitions {
|
|
|
11012
11012
|
* Default spritesheet for `lightmap_layout` and `layout.lightmap`.
|
|
11013
11013
|
*/
|
|
11014
11014
|
lightmap_spritesheet?: FileName;
|
|
11015
|
-
mask_enabled?:
|
|
11015
|
+
mask_enabled?: boolean;
|
|
11016
11016
|
/**
|
|
11017
11017
|
* Overrides the `mask` definition inside `layout`.
|
|
11018
11018
|
*/
|
|
@@ -11025,9 +11025,9 @@ interface TileTransitions {
|
|
|
11025
11025
|
mask_spritesheet?: FileName;
|
|
11026
11026
|
masked_background_layer_offset?: int8;
|
|
11027
11027
|
masked_overlay_layer_offset?: int8;
|
|
11028
|
-
offset_background_layer_by_tile_layer?:
|
|
11028
|
+
offset_background_layer_by_tile_layer?: boolean;
|
|
11029
11029
|
outer_corner_weights?: float[];
|
|
11030
|
-
overlay_enabled?:
|
|
11030
|
+
overlay_enabled?: boolean;
|
|
11031
11031
|
overlay_layer_group?: TileRenderLayer;
|
|
11032
11032
|
overlay_layer_offset?: int8;
|
|
11033
11033
|
/**
|
|
@@ -11053,7 +11053,7 @@ interface TileTransitionsToTiles extends TileTransitions {
|
|
|
11053
11053
|
transition_group: uint8;
|
|
11054
11054
|
}
|
|
11055
11055
|
interface TileTransitionsVariants {
|
|
11056
|
-
empty_transitions?:
|
|
11056
|
+
empty_transitions?: boolean;
|
|
11057
11057
|
light?: TileLightPictures[];
|
|
11058
11058
|
main?: TileMainPictures[];
|
|
11059
11059
|
material_background?: MaterialTextureParameters;
|
|
@@ -11303,12 +11303,12 @@ interface TrainBrakingForceBonusModifier extends SimpleModifier {
|
|
|
11303
11303
|
/**
|
|
11304
11304
|
* If set to `false`, use the icon from {@link UtilitySprites | prototype:UtilitySprites} for this technology effect icon.
|
|
11305
11305
|
*/
|
|
11306
|
-
infer_icon?:
|
|
11306
|
+
infer_icon?: boolean;
|
|
11307
11307
|
type: 'train-braking-force-bonus';
|
|
11308
11308
|
/**
|
|
11309
11309
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
11310
11310
|
*/
|
|
11311
|
-
use_icon_overlay_constant?:
|
|
11311
|
+
use_icon_overlay_constant?: boolean;
|
|
11312
11312
|
}
|
|
11313
11313
|
interface TrainPathFinderConstants {
|
|
11314
11314
|
signal_reserved_by_circuit_network_penalty: uint32;
|
|
@@ -11349,12 +11349,12 @@ interface TrainVisualizationConstants {
|
|
|
11349
11349
|
stock_number_scale: float;
|
|
11350
11350
|
}
|
|
11351
11351
|
interface TransitionApplication {
|
|
11352
|
-
offset?:
|
|
11353
|
-
pod_offset?:
|
|
11354
|
-
rotation?:
|
|
11352
|
+
offset?: boolean;
|
|
11353
|
+
pod_offset?: boolean;
|
|
11354
|
+
rotation?: boolean;
|
|
11355
11355
|
}
|
|
11356
11356
|
interface TransportBeltAnimationSet {
|
|
11357
|
-
alternate?:
|
|
11357
|
+
alternate?: boolean;
|
|
11358
11358
|
animation_set: RotatedAnimation;
|
|
11359
11359
|
belt_reader?: BeltReaderLayer[];
|
|
11360
11360
|
east_index?: uint8;
|
|
@@ -11730,7 +11730,7 @@ ActivateImpactTriggerEffectItem)[];
|
|
|
11730
11730
|
* The abstract base of all {@link TriggerEffects | prototype:TriggerEffect}.
|
|
11731
11731
|
*/
|
|
11732
11732
|
interface TriggerEffectItem {
|
|
11733
|
-
affects_target?:
|
|
11733
|
+
affects_target?: boolean;
|
|
11734
11734
|
/**
|
|
11735
11735
|
* Guaranteed to work with {@link EntityWithHealthPrototype::damaged_trigger_effect | prototype:EntityWithHealthPrototype::damaged_trigger_effect} and {@link EntityWithHealthPrototype::dying_trigger_effect | prototype:EntityWithHealthPrototype::dying_trigger_effect}. Unknown if it works with other properties that use {@link TriggerEffect | prototype:TriggerEffect}.
|
|
11736
11736
|
*/
|
|
@@ -11741,7 +11741,7 @@ interface TriggerEffectItem {
|
|
|
11741
11741
|
probability?: float;
|
|
11742
11742
|
repeat_count?: uint16;
|
|
11743
11743
|
repeat_count_deviation?: uint16;
|
|
11744
|
-
show_in_tooltip?:
|
|
11744
|
+
show_in_tooltip?: boolean;
|
|
11745
11745
|
}
|
|
11746
11746
|
/**
|
|
11747
11747
|
* A {@link TriggerEffect | prototype:TriggerEffect} with cooldown conditions, used to limit the frequency of trigger effects that would otherwise fire every single tick. If multiple cooldown conditions are defined, then all cooldowns must be satisfied before the effect can be triggered.
|
|
@@ -11782,7 +11782,7 @@ interface TriggerItem {
|
|
|
11782
11782
|
* Only entities meeting the force condition are affected by the trigger item.
|
|
11783
11783
|
*/
|
|
11784
11784
|
force?: ForceCondition;
|
|
11785
|
-
ignore_collision_condition?:
|
|
11785
|
+
ignore_collision_condition?: boolean;
|
|
11786
11786
|
/**
|
|
11787
11787
|
* Must be greater than 0 and less than or equal to 1.
|
|
11788
11788
|
*/
|
|
@@ -11811,7 +11811,7 @@ interface TurretAttackModifier extends BaseModifier {
|
|
|
11811
11811
|
/**
|
|
11812
11812
|
* If set to `false`, use the icon from {@link UtilitySprites | prototype:UtilitySprites} for this technology effect icon.
|
|
11813
11813
|
*/
|
|
11814
|
-
infer_icon?:
|
|
11814
|
+
infer_icon?: boolean;
|
|
11815
11815
|
/**
|
|
11816
11816
|
* Modification value, which will be added to the current turret attack modifier upon researching.
|
|
11817
11817
|
*/
|
|
@@ -11824,16 +11824,16 @@ interface TurretAttackModifier extends BaseModifier {
|
|
|
11824
11824
|
/**
|
|
11825
11825
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
11826
11826
|
*/
|
|
11827
|
-
use_icon_overlay_constant?:
|
|
11827
|
+
use_icon_overlay_constant?: boolean;
|
|
11828
11828
|
}
|
|
11829
11829
|
interface TurretBaseVisualisation {
|
|
11830
11830
|
animation: Animation4Way;
|
|
11831
|
-
draw_when_frozen?:
|
|
11832
|
-
draw_when_has_ammo?:
|
|
11833
|
-
draw_when_has_energy?:
|
|
11834
|
-
draw_when_no_ammo?:
|
|
11835
|
-
draw_when_no_energy?:
|
|
11836
|
-
draw_when_not_frozen?:
|
|
11831
|
+
draw_when_frozen?: boolean;
|
|
11832
|
+
draw_when_has_ammo?: boolean;
|
|
11833
|
+
draw_when_has_energy?: boolean;
|
|
11834
|
+
draw_when_no_ammo?: boolean;
|
|
11835
|
+
draw_when_no_energy?: boolean;
|
|
11836
|
+
draw_when_not_frozen?: boolean;
|
|
11837
11837
|
/**
|
|
11838
11838
|
* If not defined, visualisation will be drawn in all states.
|
|
11839
11839
|
*/
|
|
@@ -11904,19 +11904,19 @@ interface UnitAISettings {
|
|
|
11904
11904
|
/**
|
|
11905
11905
|
* If enabled, units that have nothing else to do will attempt to return to a spawner.
|
|
11906
11906
|
*/
|
|
11907
|
-
allow_try_return_to_spawner?:
|
|
11907
|
+
allow_try_return_to_spawner?: boolean;
|
|
11908
11908
|
/**
|
|
11909
11909
|
* If enabled, units that repeatedly fail to succeed at commands will be destroyed.
|
|
11910
11910
|
*/
|
|
11911
|
-
destroy_when_commands_fail?:
|
|
11911
|
+
destroy_when_commands_fail?: boolean;
|
|
11912
11912
|
/**
|
|
11913
11913
|
* If enabled, units will try to separate themselves from nearby friendly units.
|
|
11914
11914
|
*/
|
|
11915
|
-
do_separation?:
|
|
11915
|
+
do_separation?: boolean;
|
|
11916
11916
|
/**
|
|
11917
11917
|
* If enabled, the unit is permitted to join attack groups.
|
|
11918
11918
|
*/
|
|
11919
|
-
join_attacks?:
|
|
11919
|
+
join_attacks?: boolean;
|
|
11920
11920
|
/**
|
|
11921
11921
|
* Must be between -8 and 8.
|
|
11922
11922
|
*/
|
|
@@ -12030,7 +12030,7 @@ interface UnlockQualityModifier extends BaseModifier {
|
|
|
12030
12030
|
/**
|
|
12031
12031
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
12032
12032
|
*/
|
|
12033
|
-
use_icon_overlay_constant?:
|
|
12033
|
+
use_icon_overlay_constant?: boolean;
|
|
12034
12034
|
}
|
|
12035
12035
|
interface UnlockRecipeModifier extends BaseModifier {
|
|
12036
12036
|
/**
|
|
@@ -12041,7 +12041,7 @@ interface UnlockRecipeModifier extends BaseModifier {
|
|
|
12041
12041
|
/**
|
|
12042
12042
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
12043
12043
|
*/
|
|
12044
|
-
use_icon_overlay_constant?:
|
|
12044
|
+
use_icon_overlay_constant?: boolean;
|
|
12045
12045
|
}
|
|
12046
12046
|
interface UnlockRecipeTipTrigger {
|
|
12047
12047
|
recipe: RecipeID;
|
|
@@ -12053,7 +12053,7 @@ interface UnlockSpaceLocationModifier extends BaseModifier {
|
|
|
12053
12053
|
/**
|
|
12054
12054
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
12055
12055
|
*/
|
|
12056
|
-
use_icon_overlay_constant?:
|
|
12056
|
+
use_icon_overlay_constant?: boolean;
|
|
12057
12057
|
}
|
|
12058
12058
|
interface UseConfirmTipTrigger extends CountBasedTipTrigger {
|
|
12059
12059
|
type: 'use-confirm';
|
|
@@ -12064,7 +12064,7 @@ interface UseOnSelfCapsuleAction {
|
|
|
12064
12064
|
/**
|
|
12065
12065
|
* Whether using the capsule consumes an item from the stack.
|
|
12066
12066
|
*/
|
|
12067
|
-
uses_stack?:
|
|
12067
|
+
uses_stack?: boolean;
|
|
12068
12068
|
}
|
|
12069
12069
|
interface UsePipetteTipTrigger extends CountBasedTipTrigger {
|
|
12070
12070
|
type: 'use-pipette';
|
|
@@ -12106,11 +12106,11 @@ interface VariableAmbientSoundLayer {
|
|
|
12106
12106
|
/**
|
|
12107
12107
|
* If `true`, the last of {@link Sound::variations | prototype:Sound::variations} is played at the end of a sequence (if the sequence is long enough). The end sample counts towards the {@link VariableAmbientSoundLayerStateProperties::sequence_length | prototype:VariableAmbientSoundLayerStateProperties::sequence_length}.
|
|
12108
12108
|
*/
|
|
12109
|
-
has_end_sample?:
|
|
12109
|
+
has_end_sample?: boolean;
|
|
12110
12110
|
/**
|
|
12111
12111
|
* If `true`, the first of {@link Sound::variations | prototype:Sound::variations} is played at the start of a sequence. The start sample counts towards the {@link VariableAmbientSoundLayerStateProperties::sequence_length | prototype:VariableAmbientSoundLayerStateProperties::sequence_length}
|
|
12112
12112
|
*/
|
|
12113
|
-
has_start_sample?:
|
|
12113
|
+
has_start_sample?: boolean;
|
|
12114
12114
|
/**
|
|
12115
12115
|
* Name has to be unique across all layers.
|
|
12116
12116
|
*/
|
|
@@ -12176,7 +12176,7 @@ type VariableAmbientSoundLayerSample = [
|
|
|
12176
12176
|
uint32
|
|
12177
12177
|
];
|
|
12178
12178
|
interface VariableAmbientSoundLayerStateProperties {
|
|
12179
|
-
enabled?:
|
|
12179
|
+
enabled?: boolean;
|
|
12180
12180
|
/**
|
|
12181
12181
|
* Pause before a layer finishes playing. The last repetition and consequently the layer being finished is not counted until the pause finishes.
|
|
12182
12182
|
*/
|
|
@@ -12425,7 +12425,7 @@ interface VehicleLogisticsModifier extends BoolModifier {
|
|
|
12425
12425
|
/**
|
|
12426
12426
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
12427
12427
|
*/
|
|
12428
|
-
use_icon_overlay_constant?:
|
|
12428
|
+
use_icon_overlay_constant?: boolean;
|
|
12429
12429
|
}
|
|
12430
12430
|
type VerticalAlign = 'top' | 'center' | 'bottom';
|
|
12431
12431
|
interface VerticalFlowStyleSpecification extends BaseStyleSpecification {
|
|
@@ -12478,9 +12478,9 @@ interface WallPictures {
|
|
|
12478
12478
|
* Entity water reflection. {@link Currently only renders | https://forums.factorio.com/100703} for {@link EntityWithHealthPrototype | prototype:EntityWithHealthPrototype}.
|
|
12479
12479
|
*/
|
|
12480
12480
|
interface WaterReflectionDefinition {
|
|
12481
|
-
orientation_to_variation?:
|
|
12481
|
+
orientation_to_variation?: boolean;
|
|
12482
12482
|
pictures?: SpriteVariations;
|
|
12483
|
-
rotate?:
|
|
12483
|
+
rotate?: boolean;
|
|
12484
12484
|
}
|
|
12485
12485
|
interface WaterTileEffectParameters {
|
|
12486
12486
|
animation_scale: float | [
|
|
@@ -12539,34 +12539,34 @@ interface WorkerRobotBatteryModifier extends SimpleModifier {
|
|
|
12539
12539
|
/**
|
|
12540
12540
|
* If set to `false`, use the icon from {@link UtilitySprites | prototype:UtilitySprites} for this technology effect icon.
|
|
12541
12541
|
*/
|
|
12542
|
-
infer_icon?:
|
|
12542
|
+
infer_icon?: boolean;
|
|
12543
12543
|
type: 'worker-robot-battery';
|
|
12544
12544
|
/**
|
|
12545
12545
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
12546
12546
|
*/
|
|
12547
|
-
use_icon_overlay_constant?:
|
|
12547
|
+
use_icon_overlay_constant?: boolean;
|
|
12548
12548
|
}
|
|
12549
12549
|
interface WorkerRobotSpeedModifier extends SimpleModifier {
|
|
12550
12550
|
/**
|
|
12551
12551
|
* If set to `false`, use the icon from {@link UtilitySprites | prototype:UtilitySprites} for this technology effect icon.
|
|
12552
12552
|
*/
|
|
12553
|
-
infer_icon?:
|
|
12553
|
+
infer_icon?: boolean;
|
|
12554
12554
|
type: 'worker-robot-speed';
|
|
12555
12555
|
/**
|
|
12556
12556
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
12557
12557
|
*/
|
|
12558
|
-
use_icon_overlay_constant?:
|
|
12558
|
+
use_icon_overlay_constant?: boolean;
|
|
12559
12559
|
}
|
|
12560
12560
|
interface WorkerRobotStorageModifier extends SimpleModifier {
|
|
12561
12561
|
/**
|
|
12562
12562
|
* If set to `false`, use the icon from {@link UtilitySprites | prototype:UtilitySprites} for this technology effect icon.
|
|
12563
12563
|
*/
|
|
12564
|
-
infer_icon?:
|
|
12564
|
+
infer_icon?: boolean;
|
|
12565
12565
|
type: 'worker-robot-storage';
|
|
12566
12566
|
/**
|
|
12567
12567
|
* If `false`, do not draw the small "constant" icon over the technology effect icon.
|
|
12568
12568
|
*/
|
|
12569
|
-
use_icon_overlay_constant?:
|
|
12569
|
+
use_icon_overlay_constant?: boolean;
|
|
12570
12570
|
}
|
|
12571
12571
|
/**
|
|
12572
12572
|
* This type is used to produce sound from in-game entities when they are working/idle.
|
|
@@ -12600,7 +12600,7 @@ type WorkingSound = {
|
|
|
12600
12600
|
/**
|
|
12601
12601
|
* If `true`, `max_sounds_per_prototype` is ignored. 'extra sound' refers to `idle_sound`, `activate_sound` or `deactivate_sound`.
|
|
12602
12602
|
*/
|
|
12603
|
-
extra_sounds_ignore_limit?:
|
|
12603
|
+
extra_sounds_ignore_limit?: boolean;
|
|
12604
12604
|
/**
|
|
12605
12605
|
* The sound to be played when the entity is idle. Might not work with all entities that use working_sound.
|
|
12606
12606
|
*/
|
|
@@ -12620,17 +12620,17 @@ type WorkingSound = {
|
|
|
12620
12620
|
/**
|
|
12621
12621
|
* When `true`, working sounds for all entities of the same prototype are combined into one and some (most) properties of this are ignored or unused.
|
|
12622
12622
|
*/
|
|
12623
|
-
persistent?:
|
|
12623
|
+
persistent?: boolean;
|
|
12624
12624
|
sound_accents?: SoundAccent | SoundAccent[];
|
|
12625
|
-
use_doppler_shift?:
|
|
12625
|
+
use_doppler_shift?: boolean;
|
|
12626
12626
|
} | Sound;
|
|
12627
12627
|
/**
|
|
12628
12628
|
* Used by crafting machines to display different graphics when the machine is running.
|
|
12629
12629
|
*/
|
|
12630
12630
|
interface WorkingVisualisation {
|
|
12631
|
-
align_to_waypoint?:
|
|
12632
|
-
always_draw?:
|
|
12633
|
-
animated_shift?:
|
|
12631
|
+
align_to_waypoint?: boolean;
|
|
12632
|
+
always_draw?: boolean;
|
|
12633
|
+
animated_shift?: boolean;
|
|
12634
12634
|
animation?: Animation;
|
|
12635
12635
|
/**
|
|
12636
12636
|
* Used by {@link CraftingMachinePrototype | prototype:CraftingMachinePrototype}. Has precedence over `apply_tint`.
|
|
@@ -12645,7 +12645,7 @@ interface WorkingVisualisation {
|
|
|
12645
12645
|
/**
|
|
12646
12646
|
* Whether the animations are always played at the same speed, not adjusted to the machine speed.
|
|
12647
12647
|
*/
|
|
12648
|
-
constant_speed?:
|
|
12648
|
+
constant_speed?: boolean;
|
|
12649
12649
|
/**
|
|
12650
12650
|
* Only loaded if {@link WorkingVisualisations::states | prototype:WorkingVisualisations::states} is defined in the WorkingVisualisations that loads this.
|
|
12651
12651
|
*/
|
|
@@ -12653,7 +12653,7 @@ interface WorkingVisualisation {
|
|
|
12653
12653
|
/**
|
|
12654
12654
|
* Only loaded if {@link WorkingVisualisations::states | prototype:WorkingVisualisations::states} is defined in the WorkingVisualisations that loads this.
|
|
12655
12655
|
*/
|
|
12656
|
-
draw_when_state_filter_matches?:
|
|
12656
|
+
draw_when_state_filter_matches?: boolean;
|
|
12657
12657
|
east_animation?: Animation;
|
|
12658
12658
|
/**
|
|
12659
12659
|
* If defined, animation in this visualisation layer will be used only as mask for fog effect and will not render in world.
|
|
@@ -12662,19 +12662,19 @@ interface WorkingVisualisation {
|
|
|
12662
12662
|
east_position?: Vector;
|
|
12663
12663
|
east_secondary_draw_order?: int8;
|
|
12664
12664
|
effect?: 'flicker' | 'uranium-glow' | 'none';
|
|
12665
|
-
enabled_by_name?:
|
|
12666
|
-
enabled_in_animated_shift_during_transition?:
|
|
12667
|
-
enabled_in_animated_shift_during_waypoint_stop?:
|
|
12668
|
-
fadeout?:
|
|
12665
|
+
enabled_by_name?: boolean;
|
|
12666
|
+
enabled_in_animated_shift_during_transition?: boolean;
|
|
12667
|
+
enabled_in_animated_shift_during_waypoint_stop?: boolean;
|
|
12668
|
+
fadeout?: boolean;
|
|
12669
12669
|
/**
|
|
12670
12670
|
* Loaded only if at least one of north_fog_mask, east_fog_mask, south_fog_mask, west_fog_mask is not specified.
|
|
12671
12671
|
*
|
|
12672
12672
|
* If defined, animation in this visualisation layer will be used only as mask for fog effect and will not render in world.
|
|
12673
12673
|
*/
|
|
12674
12674
|
fog_mask?: FogMaskShapeDefinition;
|
|
12675
|
-
frame_based_on_shift_animation_progress?:
|
|
12675
|
+
frame_based_on_shift_animation_progress?: boolean;
|
|
12676
12676
|
light?: LightDefinition;
|
|
12677
|
-
mining_drill_scorch_mark?:
|
|
12677
|
+
mining_drill_scorch_mark?: boolean;
|
|
12678
12678
|
name?: string;
|
|
12679
12679
|
north_animation?: Animation;
|
|
12680
12680
|
/**
|
|
@@ -12707,7 +12707,7 @@ interface WorkingVisualisation {
|
|
|
12707
12707
|
south_fog_mask?: FogMaskShapeDefinition;
|
|
12708
12708
|
south_position?: Vector;
|
|
12709
12709
|
south_secondary_draw_order?: int8;
|
|
12710
|
-
synced_fadeout?:
|
|
12710
|
+
synced_fadeout?: boolean;
|
|
12711
12711
|
west_animation?: Animation;
|
|
12712
12712
|
/**
|
|
12713
12713
|
* If defined, animation in this visualisation layer will be used only as mask for fog effect and will not render in world.
|
|
@@ -12720,7 +12720,7 @@ interface WorkingVisualisations {
|
|
|
12720
12720
|
/**
|
|
12721
12721
|
* Only loaded if `idle_animation` is defined.
|
|
12722
12722
|
*/
|
|
12723
|
-
always_draw_idle_animation?:
|
|
12723
|
+
always_draw_idle_animation?: boolean;
|
|
12724
12724
|
animation?: Animation4Way;
|
|
12725
12725
|
default_recipe_tint?: GlobalRecipeTints;
|
|
12726
12726
|
/**
|
|
@@ -12764,10 +12764,6 @@ type WorldAmbientSoundDefinition = {
|
|
|
12764
12764
|
radius?: double;
|
|
12765
12765
|
sound?: Sound;
|
|
12766
12766
|
} | Sound;
|
|
12767
|
-
/**
|
|
12768
|
-
* A variable type which can have one of two values: `true` or `false`. Wikipedia has a {@link comprehensive article | https://en.wikipedia.org/wiki/Boolean} on Booleans.
|
|
12769
|
-
*/
|
|
12770
|
-
type bool = boolean;
|
|
12771
12767
|
/**
|
|
12772
12768
|
* Format uses a dot as its decimal delimiter. Doubles are stored in the {@link double precision | http://en.wikipedia.org/wiki/Double-precision_floating-point_format} floating point format.
|
|
12773
12769
|
*
|