factorio-types 1.2.57 → 1.2.59
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 +1850 -448
- package/dist/concepts.d.ts +1992 -201
- package/dist/datacollection.d.ts +4 -1
- package/dist/defines.d.ts +766 -723
- package/dist/events.d.ts +584 -443
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +1162 -167
- package/dist/types.d.ts +1555 -249
- package/package.json +2 -2
package/dist/concepts.d.ts
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.
|
|
5
|
+
// Factorio version 2.1.7
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
9
9
|
interface AccumulatorBlueprintControlBehavior {
|
|
10
|
+
output_networks?: CircuitNetworkSelection;
|
|
10
11
|
output_signal: SignalID;
|
|
11
12
|
/**
|
|
12
13
|
* Defaults to `true`.
|
|
@@ -78,6 +79,8 @@ interface AdvancedMapGenSettings {
|
|
|
78
79
|
difficulty_settings: DifficultySettings;
|
|
79
80
|
}
|
|
80
81
|
interface AgriculturalTowerBlueprintControlBehavior {
|
|
82
|
+
input_networks?: CircuitNetworkSelection;
|
|
83
|
+
output_networks?: CircuitNetworkSelection;
|
|
81
84
|
/**
|
|
82
85
|
* Defaults to `false`.
|
|
83
86
|
*/
|
|
@@ -92,12 +95,22 @@ interface AgriculturalTowerBlueprintControlBehavior {
|
|
|
92
95
|
*/
|
|
93
96
|
connect_to_logistic_network?: boolean;
|
|
94
97
|
logistic_condition?: CircuitCondition;
|
|
98
|
+
/**
|
|
99
|
+
* Defaults to `false`.
|
|
100
|
+
*/
|
|
101
|
+
enable_harvesting_condition?: boolean;
|
|
102
|
+
harvesting_condition?: CircuitCondition;
|
|
103
|
+
/**
|
|
104
|
+
* Defaults to `false`.
|
|
105
|
+
*/
|
|
106
|
+
enable_planting_condition?: boolean;
|
|
107
|
+
planting_condition?: CircuitCondition;
|
|
95
108
|
}
|
|
96
109
|
interface Alert {
|
|
97
110
|
/**
|
|
98
111
|
* The tick this alert was created.
|
|
99
112
|
*/
|
|
100
|
-
tick:
|
|
113
|
+
tick: MapTick;
|
|
101
114
|
target?: LuaEntity;
|
|
102
115
|
prototype?: LuaEntityPrototype;
|
|
103
116
|
position?: MapPosition;
|
|
@@ -110,6 +123,15 @@ interface Alert {
|
|
|
110
123
|
*/
|
|
111
124
|
message?: LocalisedString;
|
|
112
125
|
}
|
|
126
|
+
interface AlertFilter {
|
|
127
|
+
entity?: LuaEntity;
|
|
128
|
+
prototype?: EntityID;
|
|
129
|
+
position?: MapPosition;
|
|
130
|
+
type?: defines.alert_type;
|
|
131
|
+
surface?: SurfaceIdentification;
|
|
132
|
+
icon?: SignalID;
|
|
133
|
+
message?: LocalisedString;
|
|
134
|
+
}
|
|
113
135
|
/**
|
|
114
136
|
* A string that specifies where a GUI element should be.
|
|
115
137
|
*/
|
|
@@ -123,6 +145,16 @@ type Alignment = 'top-left' | 'middle-left' | /**
|
|
|
123
145
|
* The same as `"middle-right"`
|
|
124
146
|
*/
|
|
125
147
|
'right' | 'bottom-right';
|
|
148
|
+
/**
|
|
149
|
+
* An ammo category may be specified in one of two ways.
|
|
150
|
+
*/
|
|
151
|
+
type AmmoCategoryID = /**
|
|
152
|
+
* By ammo category prototype.
|
|
153
|
+
*/
|
|
154
|
+
LuaAmmoCategoryPrototype | /**
|
|
155
|
+
* By name of the ammo category prototype.
|
|
156
|
+
*/
|
|
157
|
+
string;
|
|
126
158
|
interface AmmoType {
|
|
127
159
|
action?: TriggerItem[];
|
|
128
160
|
target_type: TargetType;
|
|
@@ -150,6 +182,10 @@ type Any = string | boolean | number | table | LuaObject;
|
|
|
150
182
|
* Any basic type (string, number, boolean) or table.
|
|
151
183
|
*/
|
|
152
184
|
type AnyBasic = string | boolean | number | table;
|
|
185
|
+
/**
|
|
186
|
+
* Refers to tints defined in {@link TilePrototype::particle_tints | prototype:TilePrototype::particle_tints}.
|
|
187
|
+
*/
|
|
188
|
+
type ApplyTileTint = 'primary' | 'secondary';
|
|
153
189
|
interface ArithmeticCombinatorBlueprintControlBehavior {
|
|
154
190
|
arithmetic_conditions: ArithmeticCombinatorParameters;
|
|
155
191
|
}
|
|
@@ -189,6 +225,8 @@ interface ArithmeticCombinatorParameters {
|
|
|
189
225
|
output_signal?: SignalID;
|
|
190
226
|
}
|
|
191
227
|
interface ArtilleryTurretBlueprintControlBehavior {
|
|
228
|
+
input_networks?: CircuitNetworkSelection;
|
|
229
|
+
output_networks?: CircuitNetworkSelection;
|
|
192
230
|
read_ammo?: boolean;
|
|
193
231
|
/**
|
|
194
232
|
* Defaults to `false`.
|
|
@@ -202,6 +240,8 @@ interface ArtilleryTurretBlueprintControlBehavior {
|
|
|
202
240
|
logistic_condition?: CircuitCondition;
|
|
203
241
|
}
|
|
204
242
|
interface AssemblingMachineBlueprintControlBehavior {
|
|
243
|
+
input_networks?: CircuitNetworkSelection;
|
|
244
|
+
output_networks?: CircuitNetworkSelection;
|
|
205
245
|
/**
|
|
206
246
|
* Defaults to `false`.
|
|
207
247
|
*/
|
|
@@ -217,7 +257,7 @@ interface AssemblingMachineBlueprintControlBehavior {
|
|
|
217
257
|
/**
|
|
218
258
|
* Defaults to `false`.
|
|
219
259
|
*/
|
|
220
|
-
|
|
260
|
+
read_fuel?: boolean;
|
|
221
261
|
/**
|
|
222
262
|
* Defaults to `false`.
|
|
223
263
|
*/
|
|
@@ -276,6 +316,8 @@ interface AsteroidChunkPrototypeFilter {
|
|
|
276
316
|
invert?: boolean;
|
|
277
317
|
}
|
|
278
318
|
interface AsteroidCollectorBlueprintControlBehavior {
|
|
319
|
+
input_networks?: CircuitNetworkSelection;
|
|
320
|
+
output_networks?: CircuitNetworkSelection;
|
|
279
321
|
/**
|
|
280
322
|
* Defaults to `false`.
|
|
281
323
|
*/
|
|
@@ -339,9 +381,13 @@ interface BaseAttackParameters {
|
|
|
339
381
|
*/
|
|
340
382
|
rotate_penalty: float;
|
|
341
383
|
/**
|
|
342
|
-
* When searching for an enemy to attack, a higher `health_penalty` will discourage targeting enemies with high health. A negative penalty will do the opposite.
|
|
384
|
+
* When searching for an enemy to attack, a higher `health_penalty` will discourage targeting enemies with high health ratio. A negative penalty will do the opposite.
|
|
343
385
|
*/
|
|
344
386
|
health_penalty: float;
|
|
387
|
+
/**
|
|
388
|
+
* When searching for an enemy to attack, a higher `threatening_asteroid_penalty` will discourage targeting asteroids that pose a threat. A negative penalty will do the opposite.
|
|
389
|
+
*/
|
|
390
|
+
threatening_asteroid_penalty: float;
|
|
345
391
|
/**
|
|
346
392
|
* If less than `range`, the entity will choose a random distance between `range` and `min_attack_distance` and attack from that distance. Used for spitters.
|
|
347
393
|
*/
|
|
@@ -520,7 +566,7 @@ interface BaseBlueprintEntity {
|
|
|
520
566
|
/**
|
|
521
567
|
* The representation of an entity inside of a blueprint.
|
|
522
568
|
*/
|
|
523
|
-
type BlueprintEntity = BaseBlueprintEntity | BlueprintEntityAccumulator | BlueprintEntityAgriculturalTower | BlueprintEntityAmmoTurret | BlueprintEntityArithmeticCombinator | BlueprintEntityArtilleryTurret | BlueprintEntityArtilleryWagon | BlueprintEntityAssemblingMachine | BlueprintEntityAsteroidCollector | BlueprintEntityCar | BlueprintEntityCargoLandingPad | BlueprintEntityCargoWagon | BlueprintEntityConstantCombinator | BlueprintEntityContainer | BlueprintEntityDeciderCombinator | BlueprintEntityDisplayPanel | BlueprintEntityElectricEnergyInterface | BlueprintEntityElectricTurret | BlueprintEntityFluidTurret | BlueprintEntityFluidWagon | BlueprintEntityFurnace | BlueprintEntityHeatInterface | BlueprintEntityInfinityCargoWagon | BlueprintEntityInfinityContainer | BlueprintEntityInfinityPipe | BlueprintEntityInserter | BlueprintEntityLamp | BlueprintEntityLaneSplitter | BlueprintEntityLinkedBelt | BlueprintEntityLinkedContainer | BlueprintEntityLoader | BlueprintEntityLoader1x1 | BlueprintEntityLocomotive | BlueprintEntityLogisticContainer | BlueprintEntityMiningDrill | BlueprintEntityPowerSwitch | BlueprintEntityProgrammableSpeaker | BlueprintEntityProxyContainer | BlueprintEntityPump | BlueprintEntityRailChainSignal | BlueprintEntityRailSignal | BlueprintEntityReactor | BlueprintEntityRoboport | BlueprintEntityRocketSilo | BlueprintEntitySelectorCombinator | BlueprintEntitySpacePlatformHub | BlueprintEntitySpiderVehicle | BlueprintEntitySplitter | BlueprintEntityStorageTank | BlueprintEntityTrainStop | BlueprintEntityTransportBelt | BlueprintEntityTurret | BlueprintEntityUndergroundBelt | BlueprintEntityValve | BlueprintEntityWall;
|
|
569
|
+
type BlueprintEntity = BaseBlueprintEntity | BlueprintEntityAccumulator | BlueprintEntityAgriculturalTower | BlueprintEntityAmmoTurret | BlueprintEntityArithmeticCombinator | BlueprintEntityArtilleryTurret | BlueprintEntityArtilleryWagon | BlueprintEntityAssemblingMachine | BlueprintEntityAsteroidCollector | BlueprintEntityBoiler | BlueprintEntityCar | BlueprintEntityCargoLandingPad | BlueprintEntityCargoWagon | BlueprintEntityConstantCombinator | BlueprintEntityContainer | BlueprintEntityDeciderCombinator | BlueprintEntityDisplayPanel | BlueprintEntityElectricEnergyInterface | BlueprintEntityElectricTurret | BlueprintEntityFluidTurret | BlueprintEntityFluidWagon | BlueprintEntityFurnace | BlueprintEntityHeatInterface | BlueprintEntityHeatPipe | BlueprintEntityInfinityCargoWagon | BlueprintEntityInfinityContainer | BlueprintEntityInfinityPipe | BlueprintEntityInserter | BlueprintEntityLab | BlueprintEntityLamp | BlueprintEntityLandMine | BlueprintEntityLaneSplitter | BlueprintEntityLinkedBelt | BlueprintEntityLinkedContainer | BlueprintEntityLoader | BlueprintEntityLoader1x1 | BlueprintEntityLocomotive | BlueprintEntityLogisticContainer | BlueprintEntityMiningDrill | BlueprintEntityOffshorePump | BlueprintEntityPipe | BlueprintEntityPipeToGround | BlueprintEntityPowerSwitch | BlueprintEntityProgrammableSpeaker | BlueprintEntityProxyContainer | BlueprintEntityPump | BlueprintEntityRadar | BlueprintEntityRailChainSignal | BlueprintEntityRailSignal | BlueprintEntityReactor | BlueprintEntityRoboport | BlueprintEntityRocketSilo | BlueprintEntitySelectorCombinator | BlueprintEntitySpacePlatformHub | BlueprintEntitySpiderVehicle | BlueprintEntitySplitter | BlueprintEntityStorageTank | BlueprintEntityTrainStop | BlueprintEntityTransportBelt | BlueprintEntityTurret | BlueprintEntityUndergroundBelt | BlueprintEntityValve | BlueprintEntityWall;
|
|
524
570
|
/**
|
|
525
571
|
*
|
|
526
572
|
* Applies to variant case `accumulator`
|
|
@@ -600,6 +646,13 @@ interface BlueprintEntityAsteroidCollector extends BaseBlueprintEntity {
|
|
|
600
646
|
'control_behavior'?: AsteroidCollectorBlueprintControlBehavior;
|
|
601
647
|
'result-inventory': BlueprintInventory;
|
|
602
648
|
}
|
|
649
|
+
/**
|
|
650
|
+
*
|
|
651
|
+
* Applies to variant case `boiler`
|
|
652
|
+
*/
|
|
653
|
+
interface BlueprintEntityBoiler extends BaseBlueprintEntity {
|
|
654
|
+
'control_behavior'?: BoilerBlueprintControlBehavior;
|
|
655
|
+
}
|
|
603
656
|
/**
|
|
604
657
|
*
|
|
605
658
|
* Applies to variant case `car`
|
|
@@ -649,7 +702,7 @@ interface BlueprintEntityConstantCombinator extends BaseBlueprintEntity {
|
|
|
649
702
|
* Applies to variant case `container`
|
|
650
703
|
*/
|
|
651
704
|
interface BlueprintEntityContainer extends BaseBlueprintEntity {
|
|
652
|
-
'bar'?:
|
|
705
|
+
'bar'?: ItemStackIndex;
|
|
653
706
|
'control_behavior'?: ContainerBlueprintControlBehavior;
|
|
654
707
|
'filters'?: BlueprintItemFilter[];
|
|
655
708
|
}
|
|
@@ -738,6 +791,13 @@ interface BlueprintEntityHeatInterface extends BaseBlueprintEntity {
|
|
|
738
791
|
'mode'?: HeatSettingMode;
|
|
739
792
|
'temperature'?: double;
|
|
740
793
|
}
|
|
794
|
+
/**
|
|
795
|
+
*
|
|
796
|
+
* Applies to variant case `heat-pipe`
|
|
797
|
+
*/
|
|
798
|
+
interface BlueprintEntityHeatPipe extends BaseBlueprintEntity {
|
|
799
|
+
'control_behavior'?: HeatPipeBlueprintControlBehavior;
|
|
800
|
+
}
|
|
741
801
|
/**
|
|
742
802
|
*
|
|
743
803
|
* Applies to variant case `infinity-cargo-wagon`
|
|
@@ -757,11 +817,16 @@ interface BlueprintEntityInfinityCargoWagon extends BaseBlueprintEntity {
|
|
|
757
817
|
* Applies to variant case `infinity-container`
|
|
758
818
|
*/
|
|
759
819
|
interface BlueprintEntityInfinityContainer extends BaseBlueprintEntity {
|
|
760
|
-
'bar'?:
|
|
820
|
+
'bar'?: ItemStackIndex;
|
|
761
821
|
'control_behavior'?: LogisticContainerBlueprintControlBehavior;
|
|
762
822
|
'filters'?: BlueprintItemFilter[];
|
|
763
823
|
'infinity_settings': BlueprintInfinityInventorySettings;
|
|
764
|
-
'
|
|
824
|
+
'override_logistic_mode'?: LogisticMode;
|
|
825
|
+
'request_filters'?: BlueprintLogisticSections;
|
|
826
|
+
'saved_request_filters'?: LogisticSections;
|
|
827
|
+
'saved_request_from_buffers'?: boolean;
|
|
828
|
+
'saved_set_requests'?: boolean;
|
|
829
|
+
'saved_storage_filters'?: LogisticSections;
|
|
765
830
|
}
|
|
766
831
|
/**
|
|
767
832
|
*
|
|
@@ -790,12 +855,19 @@ interface BlueprintEntityInserter extends BaseBlueprintEntity {
|
|
|
790
855
|
* Present if position is non-default.
|
|
791
856
|
*/
|
|
792
857
|
'pickup_position'?: Vector;
|
|
793
|
-
'spoil_priority'?:
|
|
858
|
+
'spoil_priority'?: BlueprintSpoilPriority;
|
|
794
859
|
/**
|
|
795
860
|
* Defaults to `false`.
|
|
796
861
|
*/
|
|
797
862
|
'use_filters'?: boolean;
|
|
798
863
|
}
|
|
864
|
+
/**
|
|
865
|
+
*
|
|
866
|
+
* Applies to variant case `lab`
|
|
867
|
+
*/
|
|
868
|
+
interface BlueprintEntityLab extends BaseBlueprintEntity {
|
|
869
|
+
'control_behavior'?: LabBlueprintControlBehavior;
|
|
870
|
+
}
|
|
799
871
|
/**
|
|
800
872
|
*
|
|
801
873
|
* Applies to variant case `lamp`
|
|
@@ -808,6 +880,13 @@ interface BlueprintEntityLamp extends BaseBlueprintEntity {
|
|
|
808
880
|
'color'?: Color;
|
|
809
881
|
'control_behavior'?: LampBlueprintControlBehavior;
|
|
810
882
|
}
|
|
883
|
+
/**
|
|
884
|
+
*
|
|
885
|
+
* Applies to variant case `land-mine`
|
|
886
|
+
*/
|
|
887
|
+
interface BlueprintEntityLandMine extends BaseBlueprintEntity {
|
|
888
|
+
'control_behavior'?: LandMineBlueprintControlBehavior;
|
|
889
|
+
}
|
|
811
890
|
/**
|
|
812
891
|
*
|
|
813
892
|
* Applies to variant case `lane-splitter`
|
|
@@ -878,7 +957,7 @@ interface BlueprintEntityLocomotive extends BaseBlueprintEntity {
|
|
|
878
957
|
* Applies to variant case `logistic-container`
|
|
879
958
|
*/
|
|
880
959
|
interface BlueprintEntityLogisticContainer extends BaseBlueprintEntity {
|
|
881
|
-
'bar'?:
|
|
960
|
+
'bar'?: ItemStackIndex;
|
|
882
961
|
'control_behavior'?: LogisticContainerBlueprintControlBehavior;
|
|
883
962
|
'filters'?: BlueprintItemFilter[];
|
|
884
963
|
'request_filters': BlueprintLogisticSections;
|
|
@@ -891,12 +970,33 @@ interface BlueprintEntityMiningDrill extends BaseBlueprintEntity {
|
|
|
891
970
|
'control_behavior'?: MiningDrillBlueprintControlBehavior;
|
|
892
971
|
'filter'?: BlueprintMiningDrillFilter;
|
|
893
972
|
}
|
|
973
|
+
/**
|
|
974
|
+
*
|
|
975
|
+
* Applies to variant case `offshore-pump`
|
|
976
|
+
*/
|
|
977
|
+
interface BlueprintEntityOffshorePump extends BaseBlueprintEntity {
|
|
978
|
+
'control_behavior'?: GenericOnOffBlueprintControlBehavior;
|
|
979
|
+
}
|
|
980
|
+
/**
|
|
981
|
+
*
|
|
982
|
+
* Applies to variant case `pipe`
|
|
983
|
+
*/
|
|
984
|
+
interface BlueprintEntityPipe extends BaseBlueprintEntity {
|
|
985
|
+
'control_behavior'?: SingleFluidBoxBlueprintControlBehavior;
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
*
|
|
989
|
+
* Applies to variant case `pipe-to-ground`
|
|
990
|
+
*/
|
|
991
|
+
interface BlueprintEntityPipeToGround extends BaseBlueprintEntity {
|
|
992
|
+
'control_behavior'?: SingleFluidBoxBlueprintControlBehavior;
|
|
993
|
+
}
|
|
894
994
|
/**
|
|
895
995
|
*
|
|
896
996
|
* Applies to variant case `power-switch`
|
|
897
997
|
*/
|
|
898
998
|
interface BlueprintEntityPowerSwitch extends BaseBlueprintEntity {
|
|
899
|
-
'control_behavior'?:
|
|
999
|
+
'control_behavior'?: GenericOnOffBlueprintControlBehavior;
|
|
900
1000
|
'switch_state'?: boolean;
|
|
901
1001
|
}
|
|
902
1002
|
/**
|
|
@@ -923,6 +1023,13 @@ interface BlueprintEntityPump extends BaseBlueprintEntity {
|
|
|
923
1023
|
'control_behavior'?: PumpBlueprintControlBehavior;
|
|
924
1024
|
'fluid_filter'?: string;
|
|
925
1025
|
}
|
|
1026
|
+
/**
|
|
1027
|
+
*
|
|
1028
|
+
* Applies to variant case `radar`
|
|
1029
|
+
*/
|
|
1030
|
+
interface BlueprintEntityRadar extends BaseBlueprintEntity {
|
|
1031
|
+
'control_behavior'?: RadarBlueprintControlBehavior;
|
|
1032
|
+
}
|
|
926
1033
|
/**
|
|
927
1034
|
*
|
|
928
1035
|
* Applies to variant case `rail-chain-signal`
|
|
@@ -986,6 +1093,7 @@ interface BlueprintEntitySelectorCombinator extends BaseBlueprintEntity {
|
|
|
986
1093
|
interface BlueprintEntitySpacePlatformHub extends BaseBlueprintEntity {
|
|
987
1094
|
'bar'?: uint32;
|
|
988
1095
|
'control_behavior'?: SpacePlatformHubBlueprintControlBehavior;
|
|
1096
|
+
'providing_to_other_platforms'?: boolean;
|
|
989
1097
|
'request_filters': BlueprintLogisticSections;
|
|
990
1098
|
'request_missing_construction_materials': boolean;
|
|
991
1099
|
}
|
|
@@ -1020,7 +1128,7 @@ interface BlueprintEntitySplitter extends BaseBlueprintEntity {
|
|
|
1020
1128
|
* Applies to variant case `storage-tank`
|
|
1021
1129
|
*/
|
|
1022
1130
|
interface BlueprintEntityStorageTank extends BaseBlueprintEntity {
|
|
1023
|
-
'control_behavior'?:
|
|
1131
|
+
'control_behavior'?: SingleFluidBoxBlueprintControlBehavior;
|
|
1024
1132
|
}
|
|
1025
1133
|
/**
|
|
1026
1134
|
*
|
|
@@ -1151,10 +1259,14 @@ interface BlueprintLogisticFilter {
|
|
|
1151
1259
|
count: int32;
|
|
1152
1260
|
max_count?: ItemCountType;
|
|
1153
1261
|
/**
|
|
1154
|
-
* Defaults to 0
|
|
1262
|
+
* Defaults to `0`.
|
|
1155
1263
|
*/
|
|
1156
1264
|
minimum_delivery_count?: ItemCountType;
|
|
1157
1265
|
import_from?: string;
|
|
1266
|
+
/**
|
|
1267
|
+
* From which sources items should be requested for space platforms. Defaults to `"planet"`.
|
|
1268
|
+
*/
|
|
1269
|
+
request_from?: RequestFromLocation;
|
|
1158
1270
|
}
|
|
1159
1271
|
interface BlueprintLogisticSections {
|
|
1160
1272
|
sections?: LogisticSection[];
|
|
@@ -1231,6 +1343,7 @@ interface BlueprintSignalIcon {
|
|
|
1231
1343
|
*/
|
|
1232
1344
|
index: uint32;
|
|
1233
1345
|
}
|
|
1346
|
+
type BlueprintSpoilPriority = 'fresh-first' | 'spoiled-first';
|
|
1234
1347
|
/**
|
|
1235
1348
|
* Describes a single wire in the blueprint. The members of the tuple are, in order:
|
|
1236
1349
|
*
|
|
@@ -1253,6 +1366,38 @@ interface BlueprintWireEnd {
|
|
|
1253
1366
|
surface_index?: uint32;
|
|
1254
1367
|
connector: defines.wire_connector_id;
|
|
1255
1368
|
}
|
|
1369
|
+
interface BoilerBlueprintControlBehavior {
|
|
1370
|
+
input_networks?: CircuitNetworkSelection;
|
|
1371
|
+
output_networks?: CircuitNetworkSelection;
|
|
1372
|
+
/**
|
|
1373
|
+
* Defaults to `false`.
|
|
1374
|
+
*/
|
|
1375
|
+
read_fuel?: boolean;
|
|
1376
|
+
/**
|
|
1377
|
+
* Defaults to `false`.
|
|
1378
|
+
*/
|
|
1379
|
+
circuit_enabled?: boolean;
|
|
1380
|
+
circuit_condition?: CircuitCondition;
|
|
1381
|
+
/**
|
|
1382
|
+
* Defaults to `false`.
|
|
1383
|
+
*/
|
|
1384
|
+
connect_to_logistic_network?: boolean;
|
|
1385
|
+
logistic_condition?: CircuitCondition;
|
|
1386
|
+
}
|
|
1387
|
+
interface BonusUtilityConstants {
|
|
1388
|
+
artillery_range: string;
|
|
1389
|
+
worker_robots: string;
|
|
1390
|
+
character: string;
|
|
1391
|
+
follower_robots: string;
|
|
1392
|
+
research_speed: string;
|
|
1393
|
+
beacon_distribution: string;
|
|
1394
|
+
inserter: string;
|
|
1395
|
+
stack_inserter: string;
|
|
1396
|
+
bulk_inserter: string;
|
|
1397
|
+
turret_attack: string;
|
|
1398
|
+
mining_productivity: string;
|
|
1399
|
+
train_braking_force: string;
|
|
1400
|
+
}
|
|
1256
1401
|
/**
|
|
1257
1402
|
* Two positions, specifying the top-left and bottom-right corner of the box respectively. Like with {@link MapPosition | runtime:MapPosition}, the names of the members may be omitted. When read from the game, the third member `orientation` is present if it is non-zero.
|
|
1258
1403
|
* @example ```
|
|
@@ -1365,11 +1510,29 @@ interface CargoDestination {
|
|
|
1365
1510
|
*/
|
|
1366
1511
|
space_platform?: LuaSpacePlatform;
|
|
1367
1512
|
}
|
|
1513
|
+
interface CargoHatchDefinition {
|
|
1514
|
+
busy_timeout_ticks: uint32;
|
|
1515
|
+
hatch_opening_ticks: uint32;
|
|
1516
|
+
cargo_unit_entity_to_spawn: EntityID;
|
|
1517
|
+
receiving_cargo_units: EntityID[];
|
|
1518
|
+
}
|
|
1368
1519
|
interface CargoLandingPadBlueprintControlBehavior {
|
|
1520
|
+
input_networks?: CircuitNetworkSelection;
|
|
1521
|
+
output_networks?: CircuitNetworkSelection;
|
|
1369
1522
|
/**
|
|
1370
|
-
* Defaults to `
|
|
1523
|
+
* Defaults to `true`.
|
|
1524
|
+
*/
|
|
1525
|
+
read_contents?: boolean;
|
|
1526
|
+
/**
|
|
1527
|
+
* Defaults to `false`.
|
|
1371
1528
|
*/
|
|
1372
|
-
|
|
1529
|
+
set_requests?: boolean;
|
|
1530
|
+
}
|
|
1531
|
+
interface CargoStationParameters {
|
|
1532
|
+
prefer_packed_cargo_units: boolean;
|
|
1533
|
+
is_input_station: boolean;
|
|
1534
|
+
is_output_station: boolean;
|
|
1535
|
+
hatch_definitions: CargoHatchDefinition[];
|
|
1373
1536
|
}
|
|
1374
1537
|
/**
|
|
1375
1538
|
* Either `icon`, `text`, or both must be provided.
|
|
@@ -1380,6 +1543,73 @@ interface ChartTagSpec {
|
|
|
1380
1543
|
text?: string;
|
|
1381
1544
|
last_user?: PlayerIdentification;
|
|
1382
1545
|
}
|
|
1546
|
+
interface ChartUtilityConstants {
|
|
1547
|
+
copper_wire_color: Color;
|
|
1548
|
+
electric_power_pole_color: Color;
|
|
1549
|
+
enabled_switch_color: Color;
|
|
1550
|
+
disabled_switch_color: Color;
|
|
1551
|
+
electric_line_width: float;
|
|
1552
|
+
electric_line_minimum_absolute_width: float;
|
|
1553
|
+
red_wire_color: Color;
|
|
1554
|
+
green_wire_color: Color;
|
|
1555
|
+
circuit_network_member_color: Color;
|
|
1556
|
+
turret_range_color: Color;
|
|
1557
|
+
artillery_range_color: Color;
|
|
1558
|
+
default_friendly_color: Color;
|
|
1559
|
+
default_enemy_color: Color;
|
|
1560
|
+
default_enemy_territory_color: Color;
|
|
1561
|
+
rail_color: Color;
|
|
1562
|
+
elevated_rail_color: Color;
|
|
1563
|
+
rail_ramp_color: Color;
|
|
1564
|
+
entity_ghost_color: Color;
|
|
1565
|
+
tile_ghost_color: Color;
|
|
1566
|
+
vehicle_outer_color: Color;
|
|
1567
|
+
vehicle_outer_color_selected: Color;
|
|
1568
|
+
vehicle_inner_color: Color;
|
|
1569
|
+
vehicle_wagon_connection_color: Color;
|
|
1570
|
+
resource_outline_selection_color: Color;
|
|
1571
|
+
chart_train_stop_text_color: Color;
|
|
1572
|
+
chart_train_stop_disabled_text_color: Color;
|
|
1573
|
+
chart_train_stop_full_text_color: Color;
|
|
1574
|
+
red_signal_color: Color;
|
|
1575
|
+
green_signal_color: Color;
|
|
1576
|
+
blue_signal_color: Color;
|
|
1577
|
+
yellow_signal_color: Color;
|
|
1578
|
+
chart_deconstruct_tint: Color;
|
|
1579
|
+
chart_deconstruct_active_color: Color;
|
|
1580
|
+
/**
|
|
1581
|
+
* The strings are entity types.
|
|
1582
|
+
*/
|
|
1583
|
+
default_friendly_color_by_type?: Record<string, Color>;
|
|
1584
|
+
/**
|
|
1585
|
+
* The strings are entity types.
|
|
1586
|
+
*/
|
|
1587
|
+
default_color_by_type?: Record<string, Color>;
|
|
1588
|
+
explosion_visualization_duration: MapTick;
|
|
1589
|
+
train_path_color: Color;
|
|
1590
|
+
train_preview_path_outline_color: Color;
|
|
1591
|
+
train_current_path_outline_color: Color;
|
|
1592
|
+
chart_logistic_robot_color: Color;
|
|
1593
|
+
chart_construction_robot_color: Color;
|
|
1594
|
+
chart_mobile_construction_robot_color: Color;
|
|
1595
|
+
chart_personal_construction_robot_color: Color;
|
|
1596
|
+
chart_delivery_to_me_logistic_robot_color: Color;
|
|
1597
|
+
zoom_threshold_to_draw_spider_path: double;
|
|
1598
|
+
chart_player_circle_size: float;
|
|
1599
|
+
/**
|
|
1600
|
+
* Defaults to `1.0`.
|
|
1601
|
+
*/
|
|
1602
|
+
custom_tag_scale?: float;
|
|
1603
|
+
/**
|
|
1604
|
+
* Defaults to `1.0`.
|
|
1605
|
+
*/
|
|
1606
|
+
custom_tag_max_scale?: float;
|
|
1607
|
+
custom_tag_selected_overlay_tint?: Color;
|
|
1608
|
+
/**
|
|
1609
|
+
* Must be larger than 0. This number is multiplied by the crafting machine's {@link radius | runtime:LuaEntityPrototype::radius} to get the final recipe icon scale for the chart.
|
|
1610
|
+
*/
|
|
1611
|
+
recipe_icon_scale: float;
|
|
1612
|
+
}
|
|
1383
1613
|
/**
|
|
1384
1614
|
* Coordinates of a chunk in a {@link LuaSurface | runtime:LuaSurface} where each integer `x`/`y` represents a different chunk. This uses the same format as {@link MapPosition | runtime:MapPosition}, meaning it can be specified either with or without explicit keys. A {@link MapPosition | runtime:MapPosition} can be translated to a ChunkPosition by dividing the `x`/`y` values by 32.
|
|
1385
1615
|
*/
|
|
@@ -1499,6 +1729,21 @@ interface CliffPlacementSettings {
|
|
|
1499
1729
|
*/
|
|
1500
1730
|
richness: MapGenSize;
|
|
1501
1731
|
}
|
|
1732
|
+
interface CloudsEffectProperties {
|
|
1733
|
+
scale: float;
|
|
1734
|
+
clouds_movement_speed_multiplier: float;
|
|
1735
|
+
shape_warp_strength: float;
|
|
1736
|
+
shape_warp_weight: float;
|
|
1737
|
+
opacity_at_day: float;
|
|
1738
|
+
opacity_at_night: float;
|
|
1739
|
+
density_at_day: float;
|
|
1740
|
+
density_at_night: float;
|
|
1741
|
+
detail_factor_at_day: float;
|
|
1742
|
+
detail_factor_at_night: float;
|
|
1743
|
+
shape_factor: float;
|
|
1744
|
+
detail_exponent: float;
|
|
1745
|
+
detail_morph_duration: uint32;
|
|
1746
|
+
}
|
|
1502
1747
|
/**
|
|
1503
1748
|
* The name of a {@link LuaCollisionLayerPrototype | runtime:LuaCollisionLayerPrototype}.
|
|
1504
1749
|
* @example ```
|
|
@@ -1552,6 +1797,19 @@ type Color = {
|
|
|
1552
1797
|
float,
|
|
1553
1798
|
float
|
|
1554
1799
|
];
|
|
1800
|
+
interface ColorFilterData {
|
|
1801
|
+
name: string;
|
|
1802
|
+
localised_name: LocalisedString;
|
|
1803
|
+
matrix: float[];
|
|
1804
|
+
}
|
|
1805
|
+
interface ColorHintSpecification {
|
|
1806
|
+
text: string;
|
|
1807
|
+
text_color: Color;
|
|
1808
|
+
}
|
|
1809
|
+
/**
|
|
1810
|
+
* Does not return the value at runtime.
|
|
1811
|
+
*/
|
|
1812
|
+
type ColorLookupTable = nil;
|
|
1555
1813
|
/**
|
|
1556
1814
|
* Same as {@link Color | runtime:Color}, but red, green, blue and alpha values can be any floating point number, without any special handling of the range [1, 255].
|
|
1557
1815
|
*/
|
|
@@ -1633,10 +1891,6 @@ interface CommandBuildBase extends BaseCommand {
|
|
|
1633
1891
|
* Defaults to `defines.distraction.by_enemy`.
|
|
1634
1892
|
*/
|
|
1635
1893
|
'distraction'?: defines.distraction;
|
|
1636
|
-
/**
|
|
1637
|
-
* Whether the units should ignore expansion candidate chunks. When `false`, they will obey and not build a base in a non-candidate chunk. Defaults to `false`.
|
|
1638
|
-
*/
|
|
1639
|
-
'ignore_planner'?: boolean;
|
|
1640
1894
|
}
|
|
1641
1895
|
/**
|
|
1642
1896
|
*
|
|
@@ -1740,9 +1994,9 @@ interface CommandStop extends BaseCommand {
|
|
|
1740
1994
|
*/
|
|
1741
1995
|
'distraction'?: defines.distraction;
|
|
1742
1996
|
/**
|
|
1743
|
-
* Ticks to wander before successfully completing the command. Default is max
|
|
1997
|
+
* Ticks to wander before successfully completing the command. Default is max uint64, which means stop forever.
|
|
1744
1998
|
*/
|
|
1745
|
-
'ticks_to_wait'?:
|
|
1999
|
+
'ticks_to_wait'?: MapTick;
|
|
1746
2000
|
}
|
|
1747
2001
|
/**
|
|
1748
2002
|
*
|
|
@@ -1827,6 +2081,10 @@ interface CompiledLogisticFilter {
|
|
|
1827
2081
|
* Defaults to 0.
|
|
1828
2082
|
*/
|
|
1829
2083
|
minimum_delivery_count?: ItemCountType;
|
|
2084
|
+
/**
|
|
2085
|
+
* From which sources items should be requested for space platforms.
|
|
2086
|
+
*/
|
|
2087
|
+
request_from?: RequestFromLocation;
|
|
1830
2088
|
}
|
|
1831
2089
|
interface ConfigurationChangedData {
|
|
1832
2090
|
/**
|
|
@@ -1850,7 +2108,7 @@ interface ConfigurationChangedData {
|
|
|
1850
2108
|
*/
|
|
1851
2109
|
migration_applied: boolean;
|
|
1852
2110
|
/**
|
|
1853
|
-
* Dictionary of prototype changes due to {@link migrations |
|
|
2111
|
+
* Dictionary of prototype changes due to {@link migrations | auxiliary:migrations}. The inner dictionary maps the old prototype name to the new prototype name. The new name will be an empty string if the prototype was removed. Entries are omitted if the old and new prototype name are the same.
|
|
1854
2112
|
*/
|
|
1855
2113
|
migrations: LuaTable<IDType, Record<string, string>>;
|
|
1856
2114
|
}
|
|
@@ -1862,6 +2120,7 @@ interface ConstantCombinatorBlueprintControlBehavior {
|
|
|
1862
2120
|
is_on?: boolean;
|
|
1863
2121
|
}
|
|
1864
2122
|
interface ContainerBlueprintControlBehavior {
|
|
2123
|
+
output_networks?: CircuitNetworkSelection;
|
|
1865
2124
|
/**
|
|
1866
2125
|
* Defaults to `true`.
|
|
1867
2126
|
*/
|
|
@@ -1885,6 +2144,15 @@ interface CraftingQueueItem {
|
|
|
1885
2144
|
*/
|
|
1886
2145
|
prerequisite: boolean;
|
|
1887
2146
|
}
|
|
2147
|
+
interface CraterPlacementDefinition {
|
|
2148
|
+
minimum_segments_to_place: uint32;
|
|
2149
|
+
segment_probability: float;
|
|
2150
|
+
segments: CraterSegment[];
|
|
2151
|
+
}
|
|
2152
|
+
interface CraterSegment {
|
|
2153
|
+
orientation: float;
|
|
2154
|
+
offset: Vector;
|
|
2155
|
+
}
|
|
1888
2156
|
type CursorBoxRenderType = /**
|
|
1889
2157
|
* The normal entity selection box. Yellow by default.
|
|
1890
2158
|
*/
|
|
@@ -1921,7 +2189,7 @@ interface CustomCommandData {
|
|
|
1921
2189
|
/**
|
|
1922
2190
|
* The tick the command was used in.
|
|
1923
2191
|
*/
|
|
1924
|
-
tick:
|
|
2192
|
+
tick: MapTick;
|
|
1925
2193
|
/**
|
|
1926
2194
|
* The player who issued the command, or `nil` if it was issued from the server console.
|
|
1927
2195
|
*/
|
|
@@ -1969,6 +2237,13 @@ interface CutsceneWaypoint {
|
|
|
1969
2237
|
*/
|
|
1970
2238
|
zoom?: double;
|
|
1971
2239
|
}
|
|
2240
|
+
/**
|
|
2241
|
+
* Used to specify what type of damage and how much damage something deals.
|
|
2242
|
+
*/
|
|
2243
|
+
interface DamageParameters {
|
|
2244
|
+
amount: float;
|
|
2245
|
+
type: string;
|
|
2246
|
+
}
|
|
1972
2247
|
interface DamageTypeFilters {
|
|
1973
2248
|
/**
|
|
1974
2249
|
* Whether this is a whitelist or a blacklist of damage types. `true` means whitelist.
|
|
@@ -1989,6 +2264,50 @@ LuaDamagePrototype | /**
|
|
|
1989
2264
|
* The prototype name.
|
|
1990
2265
|
*/
|
|
1991
2266
|
string;
|
|
2267
|
+
/**
|
|
2268
|
+
* Returns an empty table at runtime.
|
|
2269
|
+
*/
|
|
2270
|
+
type DaytimeColorLookupTable = '{}';
|
|
2271
|
+
/**
|
|
2272
|
+
* The supported subset of {@link DebugAdapter Variable | https://microsoft.github.io/debug-adapter-protocol/specification#Types_Variable}
|
|
2273
|
+
*/
|
|
2274
|
+
interface DebugVariable {
|
|
2275
|
+
name: string;
|
|
2276
|
+
value: string;
|
|
2277
|
+
type?: string;
|
|
2278
|
+
variablesReference?: int32;
|
|
2279
|
+
namedVariables?: int32;
|
|
2280
|
+
indexedVariables?: int32;
|
|
2281
|
+
presentationHint?: DebugVariablePresentationHint;
|
|
2282
|
+
}
|
|
2283
|
+
/**
|
|
2284
|
+
* The supported subset of {@link DebugAdapter VariablePresentationHint | https://microsoft.github.io/debug-adapter-protocol/specification#Types_VariablePresentationHint}
|
|
2285
|
+
*/
|
|
2286
|
+
interface DebugVariablePresentationHint {
|
|
2287
|
+
/**
|
|
2288
|
+
* The only supported kind is "virtual".
|
|
2289
|
+
*/
|
|
2290
|
+
kind?: 'virtual';
|
|
2291
|
+
/**
|
|
2292
|
+
* The only supported attribute is "readOnly".
|
|
2293
|
+
*/
|
|
2294
|
+
attributes?: ('readOnly')[];
|
|
2295
|
+
lazy?: boolean;
|
|
2296
|
+
}
|
|
2297
|
+
interface DebugVariablesFilter {
|
|
2298
|
+
/**
|
|
2299
|
+
* The kind of filter applied to this request. Default "all".
|
|
2300
|
+
*/
|
|
2301
|
+
filter?: 'indexed' | 'named' | 'all';
|
|
2302
|
+
/**
|
|
2303
|
+
* When `filter` is "indexed", the index to start at.
|
|
2304
|
+
*/
|
|
2305
|
+
start?: int32;
|
|
2306
|
+
/**
|
|
2307
|
+
* When `filter` is "indexed", the size of the requested page.
|
|
2308
|
+
*/
|
|
2309
|
+
count?: int32;
|
|
2310
|
+
}
|
|
1992
2311
|
interface DeciderCombinatorBlueprintControlBehavior {
|
|
1993
2312
|
decider_conditions: DeciderCombinatorParameters;
|
|
1994
2313
|
}
|
|
@@ -2117,6 +2436,10 @@ interface DetailedItemOnLine {
|
|
|
2117
2436
|
*/
|
|
2118
2437
|
unique_id: uint32;
|
|
2119
2438
|
}
|
|
2439
|
+
interface DeviatedValue {
|
|
2440
|
+
value: float;
|
|
2441
|
+
deviation: float;
|
|
2442
|
+
}
|
|
2120
2443
|
/**
|
|
2121
2444
|
* Technology difficulty settings. Updating any of the attributes will immediately take effect in the game engine.
|
|
2122
2445
|
*/
|
|
@@ -2158,6 +2481,24 @@ interface DragTarget {
|
|
|
2158
2481
|
*/
|
|
2159
2482
|
wire_connector_id: defines.wire_connector_id;
|
|
2160
2483
|
}
|
|
2484
|
+
interface EditorUtilityConstants {
|
|
2485
|
+
clone_editor_copy_source_color: Color;
|
|
2486
|
+
clone_editor_copy_destination_allowed_color: Color;
|
|
2487
|
+
clone_editor_copy_destination_not_allowed_color: Color;
|
|
2488
|
+
clone_editor_brush_source_color: Color;
|
|
2489
|
+
clone_editor_brush_destination_color: Color;
|
|
2490
|
+
clone_editor_brush_cursor_preview_tint: Color;
|
|
2491
|
+
clone_editor_brush_world_preview_tint: Color;
|
|
2492
|
+
script_editor_select_area_color: Color;
|
|
2493
|
+
script_editor_drag_area_color: Color;
|
|
2494
|
+
force_editor_select_area_color: Color;
|
|
2495
|
+
cliff_editor_remove_cliffs_color: Color;
|
|
2496
|
+
tile_editor_selection_preview_tint: Color;
|
|
2497
|
+
tile_editor_area_selection_color: Color;
|
|
2498
|
+
decorative_editor_selection_preview_tint: Color;
|
|
2499
|
+
tile_editor_selection_preview_radius: uint8;
|
|
2500
|
+
decorative_editor_selection_preview_radius: uint8;
|
|
2501
|
+
}
|
|
2161
2502
|
interface EffectReceiver {
|
|
2162
2503
|
base_effect: ModuleEffects;
|
|
2163
2504
|
uses_module_effects: boolean;
|
|
@@ -2166,6 +2507,15 @@ interface EffectReceiver {
|
|
|
2166
2507
|
* Controls whether {@link LuaSurface::global_effect | runtime:LuaSurface::global_effect} affects this receiver.
|
|
2167
2508
|
*/
|
|
2168
2509
|
uses_surface_effects: boolean;
|
|
2510
|
+
consumption_limits: EffectValueRange;
|
|
2511
|
+
speed_limits: EffectValueRange;
|
|
2512
|
+
productivity_limits: EffectValueRange;
|
|
2513
|
+
pollution_limits: EffectValueRange;
|
|
2514
|
+
quality_limits: EffectValueRange;
|
|
2515
|
+
}
|
|
2516
|
+
interface EffectValueRange {
|
|
2517
|
+
low: double;
|
|
2518
|
+
high: double;
|
|
2169
2519
|
}
|
|
2170
2520
|
/**
|
|
2171
2521
|
* An item thrown overboard on a space platform.
|
|
@@ -2197,6 +2547,20 @@ interface ElemID {
|
|
|
2197
2547
|
* A {@link string | runtime:string} specifying a type for {@link choose elem buttons | runtime:LuaGuiElement::elem_type}. It's also used by {@link ElemID | runtime:ElemID} for {@link LuaGuiElement::elem_tooltip | runtime:LuaGuiElement::elem_tooltip}.
|
|
2198
2548
|
*/
|
|
2199
2549
|
type ElemType = 'achievement' | 'decorative' | 'entity' | 'equipment' | 'fluid' | 'item' | 'item-group' | 'recipe' | 'signal' | 'technology' | 'tile' | 'asteroid-chunk' | 'space-location' | 'item-with-quality' | 'entity-with-quality' | 'recipe-with-quality' | 'equipment-with-quality';
|
|
2550
|
+
interface EmptySlotInfo {
|
|
2551
|
+
/**
|
|
2552
|
+
* The icon to use.
|
|
2553
|
+
*/
|
|
2554
|
+
sprite?: SpritePath;
|
|
2555
|
+
/**
|
|
2556
|
+
* The tooltip caption to use.
|
|
2557
|
+
*/
|
|
2558
|
+
caption?: LocalisedString;
|
|
2559
|
+
/**
|
|
2560
|
+
* The tooltip text to use.
|
|
2561
|
+
*/
|
|
2562
|
+
text?: LocalisedString;
|
|
2563
|
+
}
|
|
2200
2564
|
/**
|
|
2201
2565
|
* These values represent a percentual increase in evolution. This means a value of `0.1` would increase evolution by 10%.
|
|
2202
2566
|
*/
|
|
@@ -2219,21 +2583,21 @@ interface EnemyEvolutionMapSettings {
|
|
|
2219
2583
|
pollution_factor: double;
|
|
2220
2584
|
}
|
|
2221
2585
|
/**
|
|
2222
|
-
* Candidate chunks are given scores to determine which one of them should be expanded into. This score takes into account various settings noted below. The iteration is over a square region centered around the chunk for which the calculation is done, and includes the central chunk as well. Distances are calculated as {@link
|
|
2586
|
+
* Candidate chunks are given scores to determine which one of them should be expanded into. This score takes into account various settings noted below. The iteration is over a square region centered around the chunk for which the calculation is done, and includes the central chunk as well. Distances are calculated as {@link Euclidean distance | https://en.wikipedia.org/wiki/Euclidean_distance}.
|
|
2223
2587
|
*
|
|
2224
2588
|
* The pseudocode algorithm to determine a chunk's score is as follows:
|
|
2225
2589
|
*
|
|
2226
2590
|
* ```
|
|
2227
2591
|
* player = 0
|
|
2228
|
-
* for neighbour in all chunks within enemy_building_influence_radius from chunk:
|
|
2229
|
-
*
|
|
2230
|
-
*
|
|
2231
|
-
*
|
|
2592
|
+
* for neighbour in all chunks within enemy_building_influence_radius from chunk :
|
|
2593
|
+
* if neighbour has player buildings :
|
|
2594
|
+
* player += neighbouring_chunk_coefficient ^ distance(chunk, neighbour)
|
|
2595
|
+
* * building_coefficient
|
|
2232
2596
|
* base = 0
|
|
2233
|
-
* for neighbour in all
|
|
2234
|
-
*
|
|
2235
|
-
*
|
|
2236
|
-
*
|
|
2597
|
+
* for neighbour in all chunks within friendly_base_influence_radius from chunk :
|
|
2598
|
+
* if neighbour has enemy bases :
|
|
2599
|
+
* base += neighbouring_base_chunk_coefficient ^ distance(chunk, neighbour)
|
|
2600
|
+
* * other_base_coefficient
|
|
2237
2601
|
* score(chunk) = 1 / (1 + player + base)
|
|
2238
2602
|
* ```
|
|
2239
2603
|
*/
|
|
@@ -2243,23 +2607,27 @@ interface EnemyExpansionMapSettings {
|
|
|
2243
2607
|
*/
|
|
2244
2608
|
enabled: boolean;
|
|
2245
2609
|
/**
|
|
2246
|
-
* Distance in chunks from the furthest base around to prevent expansions from reaching too far into the player's territory. Defaults to `
|
|
2610
|
+
* Distance in chunks from the furthest base around to prevent expansions from reaching too far into the player's territory. Defaults to `5`.
|
|
2247
2611
|
*/
|
|
2248
2612
|
max_expansion_distance: uint32;
|
|
2249
2613
|
/**
|
|
2250
|
-
* Defaults to `
|
|
2614
|
+
* Distance in chunks from the furthest base around to prevent expansions from being too close to existing bases. Defaults to `3`.
|
|
2615
|
+
*/
|
|
2616
|
+
min_expansion_distance: uint32;
|
|
2617
|
+
/**
|
|
2618
|
+
* Defaults to `6`.
|
|
2251
2619
|
*/
|
|
2252
2620
|
friendly_base_influence_radius: uint32;
|
|
2253
2621
|
/**
|
|
2254
|
-
* Defaults to `
|
|
2622
|
+
* Defaults to `3`.
|
|
2255
2623
|
*/
|
|
2256
2624
|
enemy_building_influence_radius: uint32;
|
|
2257
2625
|
/**
|
|
2258
|
-
* Defaults to `0.
|
|
2626
|
+
* Defaults to `0.5`.
|
|
2259
2627
|
*/
|
|
2260
2628
|
building_coefficient: double;
|
|
2261
2629
|
/**
|
|
2262
|
-
* Defaults to `
|
|
2630
|
+
* Defaults to `3.0`.
|
|
2263
2631
|
*/
|
|
2264
2632
|
other_base_coefficient: double;
|
|
2265
2633
|
/**
|
|
@@ -2267,11 +2635,11 @@ interface EnemyExpansionMapSettings {
|
|
|
2267
2635
|
*/
|
|
2268
2636
|
neighbouring_chunk_coefficient: double;
|
|
2269
2637
|
/**
|
|
2270
|
-
* Defaults to `0.
|
|
2638
|
+
* Defaults to `0.5`.
|
|
2271
2639
|
*/
|
|
2272
2640
|
neighbouring_base_chunk_coefficient: double;
|
|
2273
2641
|
/**
|
|
2274
|
-
* A chunk has to have at most this high of a percentage of unbuildable tiles for it to be considered a candidate to avoid chunks full of water as candidates. Defaults to `0.
|
|
2642
|
+
* A chunk has to have at most this high of a percentage of unbuildable tiles for it to be considered a candidate to avoid chunks full of water as candidates. Defaults to `0.8`, or 80%.
|
|
2275
2643
|
*/
|
|
2276
2644
|
max_colliding_tiles_coefficient: double;
|
|
2277
2645
|
/**
|
|
@@ -2291,6 +2659,20 @@ interface EnemyExpansionMapSettings {
|
|
|
2291
2659
|
*/
|
|
2292
2660
|
max_expansion_cooldown: uint32;
|
|
2293
2661
|
}
|
|
2662
|
+
interface EnemySpawnerAbsorption {
|
|
2663
|
+
absolute: double;
|
|
2664
|
+
proportional: double;
|
|
2665
|
+
}
|
|
2666
|
+
interface EnergyAndCapacityPair {
|
|
2667
|
+
/**
|
|
2668
|
+
* Total energy stored inside of matching accumulators
|
|
2669
|
+
*/
|
|
2670
|
+
energy: double;
|
|
2671
|
+
/**
|
|
2672
|
+
* Total capacity of matching accumulators
|
|
2673
|
+
*/
|
|
2674
|
+
capacity: double;
|
|
2675
|
+
}
|
|
2294
2676
|
/**
|
|
2295
2677
|
* An entity prototype may be specified in one of three ways.
|
|
2296
2678
|
*/
|
|
@@ -2335,7 +2717,7 @@ interface BaseEntityPrototypeFilter {
|
|
|
2335
2717
|
/**
|
|
2336
2718
|
* The condition to filter on.
|
|
2337
2719
|
*/
|
|
2338
|
-
filter: 'flying-robot' | 'robot-with-logistics-interface' | 'rail' | 'ghost' | 'explosion' | 'vehicle' | 'crafting-machine' | 'rolling-stock' | 'turret' | 'transport-belt-connectable' | 'wall-connectable' | 'buildable' | 'placable-in-editor' | 'clonable' | 'selectable' | 'hidden' | 'entity-with-health' | 'building' | 'fast-replaceable' | 'uses-direction' | 'minable' | 'circuit-connectable' | 'autoplace' | 'blueprintable' | 'item-to-place' | 'name' | 'type' | 'collision-mask' | 'flag' | '
|
|
2720
|
+
filter: 'flying-robot' | 'robot-with-logistics-interface' | 'rail' | 'ghost' | 'explosion' | 'vehicle' | 'crafting-machine' | 'rolling-stock' | 'turret' | 'transport-belt-connectable' | 'wall-connectable' | 'buildable' | 'placable-in-editor' | 'clonable' | 'selectable' | 'hidden' | 'entity-with-health' | 'building' | 'fast-replaceable' | 'uses-direction' | 'minable' | 'circuit-connectable' | 'autoplace' | 'blueprintable' | 'item-to-place' | 'name' | 'type' | 'collision-mask' | 'flag' | 'selection-priority' | 'emissions-per-second' | 'crafting-category';
|
|
2339
2721
|
/**
|
|
2340
2722
|
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
2341
2723
|
*/
|
|
@@ -2345,22 +2727,7 @@ interface BaseEntityPrototypeFilter {
|
|
|
2345
2727
|
*/
|
|
2346
2728
|
invert?: boolean;
|
|
2347
2729
|
}
|
|
2348
|
-
type EntityPrototypeFilter = BaseEntityPrototypeFilter |
|
|
2349
|
-
/**
|
|
2350
|
-
*
|
|
2351
|
-
* Applies to variant case `build-base-evolution-requirement`
|
|
2352
|
-
*/
|
|
2353
|
-
interface EntityPrototypeFilterBuildBaseEvolutionRequirement extends BaseEntityPrototypeFilter {
|
|
2354
|
-
/**
|
|
2355
|
-
* The condition to filter on.
|
|
2356
|
-
*/
|
|
2357
|
-
'filter': 'build-base-evolution-requirement';
|
|
2358
|
-
'comparison': ComparatorString;
|
|
2359
|
-
/**
|
|
2360
|
-
* The value to compare against.
|
|
2361
|
-
*/
|
|
2362
|
-
'value': double;
|
|
2363
|
-
}
|
|
2730
|
+
type EntityPrototypeFilter = BaseEntityPrototypeFilter | EntityPrototypeFilterCollisionMask | EntityPrototypeFilterCraftingCategory | EntityPrototypeFilterEmissionsPerSecond | EntityPrototypeFilterFlag | EntityPrototypeFilterName | EntityPrototypeFilterSelectionPriority | EntityPrototypeFilterType;
|
|
2364
2731
|
/**
|
|
2365
2732
|
* Usage example:
|
|
2366
2733
|
*
|
|
@@ -2522,6 +2889,9 @@ type EntityPrototypeFlag = /**
|
|
|
2522
2889
|
* Prevents the entity from being part of a blueprint.
|
|
2523
2890
|
*/
|
|
2524
2891
|
'not-blueprintable' | /**
|
|
2892
|
+
* Always show the entity in selection lists/Factoriopedia.
|
|
2893
|
+
*/
|
|
2894
|
+
'always-show' | /**
|
|
2525
2895
|
* Hides the alt-info of this entity when in alt-mode.
|
|
2526
2896
|
*/
|
|
2527
2897
|
'hide-alt-info' | /**
|
|
@@ -2545,16 +2915,31 @@ type EntityPrototypeFlag = /**
|
|
|
2545
2915
|
'not-upgradable' | /**
|
|
2546
2916
|
* Prevents the entity from being shown in the kill statistics.
|
|
2547
2917
|
*/
|
|
2548
|
-
'not-in-kill-statistics' | 'building-direction-16-way' |
|
|
2549
|
-
*
|
|
2918
|
+
'not-in-kill-statistics' | 'building-direction-16-way' | /**
|
|
2919
|
+
* For entities with control behavior that supports logistic connection, if this flag is set then entity will not be able to connect to logistic network.
|
|
2920
|
+
*/
|
|
2921
|
+
'no-logistic-connection' | 'snap-to-rail-support-spot' | /**
|
|
2922
|
+
* Prevents the entity from being shown in the "made in" list in recipe tooltips and Factoriopedia.
|
|
2923
|
+
*/
|
|
2924
|
+
'not-in-made-in' | /**
|
|
2925
|
+
* Prevents the entity from being shown in the bonus GUI.
|
|
2926
|
+
*/
|
|
2927
|
+
'not-in-bonus-gui' | /**
|
|
2928
|
+
* Prevents the entity from being shown in the mined-by tooltip of resources.
|
|
2550
2929
|
*/
|
|
2551
|
-
'not-in-
|
|
2930
|
+
'not-in-mined-by';
|
|
2552
2931
|
/**
|
|
2553
2932
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
|
2554
2933
|
*
|
|
2555
2934
|
* By default, none of these flags are set.
|
|
2556
2935
|
*/
|
|
2557
2936
|
type EntityPrototypeFlags = Record<EntityPrototypeFlag, true>;
|
|
2937
|
+
interface EntityRendererSearchBoxLimits {
|
|
2938
|
+
left: uint8;
|
|
2939
|
+
top: uint8;
|
|
2940
|
+
right: uint8;
|
|
2941
|
+
bottom: uint8;
|
|
2942
|
+
}
|
|
2558
2943
|
interface EntitySearchFilters {
|
|
2559
2944
|
area?: BoundingBox;
|
|
2560
2945
|
/**
|
|
@@ -2733,7 +3118,7 @@ interface EventData {
|
|
|
2733
3118
|
/**
|
|
2734
3119
|
* The tick during which the event happened.
|
|
2735
3120
|
*/
|
|
2736
|
-
tick:
|
|
3121
|
+
tick: MapTick;
|
|
2737
3122
|
/**
|
|
2738
3123
|
* The name of the mod that raised the event if it was raised using {@link LuaBootstrap::raise_event | runtime:LuaBootstrap::raise_event}.
|
|
2739
3124
|
*/
|
|
@@ -2744,7 +3129,7 @@ interface EventData {
|
|
|
2744
3129
|
*
|
|
2745
3130
|
* Filters are always used as an array of filters of a specific type. Every filter can only be used with its corresponding event, and different types of event filters can not be mixed.
|
|
2746
3131
|
*/
|
|
2747
|
-
type EventFilter = (
|
|
3132
|
+
type EventFilter = (LuaEntityClonedEventFilter | LuaEntityDamagedEventFilter | LuaEntityDeconstructionCancelledEventFilter | LuaEntityDiedEventFilter | LuaEntityMarkedForDeconstructionEventFilter | LuaEntityMarkedForUpgradeEventFilter | LuaPlatformBuiltEntityEventFilter | LuaPlatformMinedEntityEventFilter | LuaPlayerBuiltEntityEventFilter | LuaPlayerMinedEntityEventFilter | LuaPlayerRepairedEntityEventFilter | LuaPostEntityDiedEventFilter | LuaPostSegmentedUnitDiedEventFilter | LuaPreGhostDeconstructedEventFilter | LuaPreGhostUpgradedEventFilter | LuaPrePlatformMinedEntityEventFilter | LuaPrePlayerMinedEntityEventFilter | LuaPreRobotMinedEntityEventFilter | LuaRobotBuiltEntityEventFilter | LuaRobotMinedEntityEventFilter | LuaScriptRaisedBuiltEventFilter | LuaScriptRaisedDestroyEventFilter | LuaScriptRaisedDestroySegmentedUnitEventFilter | LuaScriptRaisedReviveEventFilter | LuaScriptRaisedTeleportedEventFilter | LuaSectorScannedEventFilter | LuaSegmentedUnitCreatedEventFilter | LuaSegmentedUnitDamagedEventFilter | LuaSegmentedUnitDiedEventFilter | LuaUpgradeCancelledEventFilter)[];
|
|
2748
3133
|
interface ExplosionDefinition {
|
|
2749
3134
|
name: LuaEntityPrototype;
|
|
2750
3135
|
offset: Vector;
|
|
@@ -2779,7 +3164,7 @@ interface Fluid {
|
|
|
2779
3164
|
*/
|
|
2780
3165
|
amount: double;
|
|
2781
3166
|
/**
|
|
2782
|
-
* The temperature. When reading
|
|
3167
|
+
* The temperature. When reading this field will always be present. It is not necessary to specify it when writing, however. When not specified, the fluid will be set to the fluid's default temperature as specified in the fluid's prototype.
|
|
2783
3168
|
*/
|
|
2784
3169
|
temperature?: float;
|
|
2785
3170
|
}
|
|
@@ -2792,37 +3177,20 @@ interface FluidBoxConnectionRecord {
|
|
|
2792
3177
|
other_entity: LuaEntity;
|
|
2793
3178
|
other_linked_connection_id: uint32;
|
|
2794
3179
|
}
|
|
2795
|
-
interface
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
*/
|
|
2799
|
-
name: string;
|
|
2800
|
-
/**
|
|
2801
|
-
* The minimum temperature allowed into the fluidbox.
|
|
2802
|
-
*/
|
|
2803
|
-
minimum_temperature: float;
|
|
2804
|
-
/**
|
|
2805
|
-
* The maximum temperature allowed into the fluidbox.
|
|
2806
|
-
*/
|
|
2807
|
-
maximum_temperature: float;
|
|
3180
|
+
interface FluidBoxNeighbourRecord {
|
|
3181
|
+
entity: LuaEntity;
|
|
3182
|
+
index: FluidStorageIndex;
|
|
2808
3183
|
}
|
|
2809
|
-
interface
|
|
3184
|
+
interface FluidFilter {
|
|
3185
|
+
fluid?: FluidID;
|
|
2810
3186
|
/**
|
|
2811
|
-
*
|
|
2812
|
-
*/
|
|
2813
|
-
name: string;
|
|
2814
|
-
/**
|
|
2815
|
-
* The minimum temperature allowed into the fluidbox.
|
|
3187
|
+
* The minimum fluid temperature required.
|
|
2816
3188
|
*/
|
|
2817
3189
|
minimum_temperature?: float;
|
|
2818
3190
|
/**
|
|
2819
|
-
* The maximum temperature allowed
|
|
3191
|
+
* The maximum fluid temperature allowed.
|
|
2820
3192
|
*/
|
|
2821
3193
|
maximum_temperature?: float;
|
|
2822
|
-
/**
|
|
2823
|
-
* Force the filter to be set, regardless of current fluid content.
|
|
2824
|
-
*/
|
|
2825
|
-
force?: boolean;
|
|
2826
3194
|
}
|
|
2827
3195
|
type FluidFlowDirection = 'input-output' | 'input' | 'output';
|
|
2828
3196
|
/**
|
|
@@ -2867,7 +3235,8 @@ interface FluidProduct {
|
|
|
2867
3235
|
/**
|
|
2868
3236
|
* A value in range `[0, 1]`. Fluid is only given with this probability; otherwise no product is produced.
|
|
2869
3237
|
*/
|
|
2870
|
-
|
|
3238
|
+
independent_probability: double;
|
|
3239
|
+
shared_probability: SharedProbabilityDefinition;
|
|
2871
3240
|
/**
|
|
2872
3241
|
* How much of this product is ignored by statistics.
|
|
2873
3242
|
*/
|
|
@@ -3017,6 +3386,15 @@ interface FluidPrototypeFilterSubgroup extends BaseFluidPrototypeFilter {
|
|
|
3017
3386
|
*/
|
|
3018
3387
|
'subgroup': string;
|
|
3019
3388
|
}
|
|
3389
|
+
/**
|
|
3390
|
+
* Valid values are from 1 up to {@link LuaEntity::fluids_count | runtime:LuaEntity::fluids_count}.
|
|
3391
|
+
*/
|
|
3392
|
+
type FluidStorageIndex = uint32;
|
|
3393
|
+
interface FogEffectProperties {
|
|
3394
|
+
color1: Color;
|
|
3395
|
+
color2: Color;
|
|
3396
|
+
tick_factor: float;
|
|
3397
|
+
}
|
|
3020
3398
|
type ForceCondition = /**
|
|
3021
3399
|
* All forces pass.
|
|
3022
3400
|
*/
|
|
@@ -3063,6 +3441,8 @@ ForceID[] | /**
|
|
|
3063
3441
|
*/
|
|
3064
3442
|
ForceID;
|
|
3065
3443
|
interface FurnaceBlueprintControlBehavior {
|
|
3444
|
+
input_networks?: CircuitNetworkSelection;
|
|
3445
|
+
output_networks?: CircuitNetworkSelection;
|
|
3066
3446
|
/**
|
|
3067
3447
|
* Defaults to `false`.
|
|
3068
3448
|
*/
|
|
@@ -3074,7 +3454,7 @@ interface FurnaceBlueprintControlBehavior {
|
|
|
3074
3454
|
/**
|
|
3075
3455
|
* Defaults to `false`.
|
|
3076
3456
|
*/
|
|
3077
|
-
|
|
3457
|
+
read_fuel?: boolean;
|
|
3078
3458
|
/**
|
|
3079
3459
|
* Defaults to `false`.
|
|
3080
3460
|
*/
|
|
@@ -3104,6 +3484,10 @@ interface FurnaceBlueprintControlBehavior {
|
|
|
3104
3484
|
* Parameters that affect the look and control of the game. Updating any of the member attributes here will immediately take effect in the game engine.
|
|
3105
3485
|
*/
|
|
3106
3486
|
interface GameViewSettings {
|
|
3487
|
+
/**
|
|
3488
|
+
* Makes tall entities translucent and unselectable.
|
|
3489
|
+
*/
|
|
3490
|
+
hide_tall_entities: boolean;
|
|
3107
3491
|
/**
|
|
3108
3492
|
* Show the flashing alert icons next to the player's toolbar.
|
|
3109
3493
|
*/
|
|
@@ -3136,6 +3520,10 @@ interface GameViewSettings {
|
|
|
3136
3520
|
* Show the chart in the upper right-hand corner of the screen.
|
|
3137
3521
|
*/
|
|
3138
3522
|
show_minimap: boolean;
|
|
3523
|
+
/**
|
|
3524
|
+
* Shows or hides the pins GUI on the right side of the screen.
|
|
3525
|
+
*/
|
|
3526
|
+
show_pins_gui: boolean;
|
|
3139
3527
|
/**
|
|
3140
3528
|
* Shows or hides quickbar of shortcuts.
|
|
3141
3529
|
*/
|
|
@@ -3169,6 +3557,56 @@ interface GameViewSettings {
|
|
|
3169
3557
|
*/
|
|
3170
3558
|
update_entity_selection: boolean;
|
|
3171
3559
|
}
|
|
3560
|
+
interface GenericOnOffBlueprintControlBehavior {
|
|
3561
|
+
input_networks?: CircuitNetworkSelection;
|
|
3562
|
+
/**
|
|
3563
|
+
* Defaults to `false`.
|
|
3564
|
+
*/
|
|
3565
|
+
circuit_enabled?: boolean;
|
|
3566
|
+
circuit_condition?: CircuitCondition;
|
|
3567
|
+
/**
|
|
3568
|
+
* Defaults to `false`.
|
|
3569
|
+
*/
|
|
3570
|
+
connect_to_logistic_network?: boolean;
|
|
3571
|
+
logistic_condition?: CircuitCondition;
|
|
3572
|
+
}
|
|
3573
|
+
interface GhostShimmerConfig {
|
|
3574
|
+
tint: Color;
|
|
3575
|
+
distortion: float;
|
|
3576
|
+
blend_mode: int32;
|
|
3577
|
+
visualize_borders: boolean;
|
|
3578
|
+
proportional_distortion: boolean;
|
|
3579
|
+
world_uv_modulo: float;
|
|
3580
|
+
overlay_layers: GhostShimmerOverlayData[];
|
|
3581
|
+
distortion_layers: GhostShimmerDistortionData[];
|
|
3582
|
+
}
|
|
3583
|
+
interface GhostShimmerDistortionData {
|
|
3584
|
+
shape: int32;
|
|
3585
|
+
intensity: float;
|
|
3586
|
+
x: float;
|
|
3587
|
+
y: float;
|
|
3588
|
+
}
|
|
3589
|
+
interface GhostShimmerOverlayData {
|
|
3590
|
+
blend_mode: int32;
|
|
3591
|
+
shape: int32;
|
|
3592
|
+
x: float;
|
|
3593
|
+
y: float;
|
|
3594
|
+
tint: Color;
|
|
3595
|
+
cutoff: float;
|
|
3596
|
+
}
|
|
3597
|
+
interface GhostTintSet {
|
|
3598
|
+
ghost_tint: Color;
|
|
3599
|
+
ghost_delivery_tint: Color;
|
|
3600
|
+
tile_ghost_tint: Color;
|
|
3601
|
+
tile_ghost_delivery_tint: Color;
|
|
3602
|
+
wire_tint: Color;
|
|
3603
|
+
}
|
|
3604
|
+
interface GlobalTintEffectProperties {
|
|
3605
|
+
global_intensity: float;
|
|
3606
|
+
global_scale: float;
|
|
3607
|
+
zoom_factor: float;
|
|
3608
|
+
zoom_intensity: float;
|
|
3609
|
+
}
|
|
3172
3610
|
interface GuiAnchor {
|
|
3173
3611
|
gui: defines.relative_gui_type;
|
|
3174
3612
|
position: defines.relative_gui_position;
|
|
@@ -3350,7 +3788,7 @@ type GuiElementType = /**
|
|
|
3350
3788
|
'tab' | /**
|
|
3351
3789
|
* A switch with three possible states. Can have labels attached to either side. Relevant event: {@link on_gui_switch_state_changed | runtime:on_gui_switch_state_changed}
|
|
3352
3790
|
*/
|
|
3353
|
-
'switch';
|
|
3791
|
+
'switch' | 'inventory';
|
|
3354
3792
|
/**
|
|
3355
3793
|
* Screen coordinates of a GUI element in a {@link LuaGui | runtime:LuaGui}. This uses the same format as {@link TilePosition | runtime:TilePosition}, meaning it can be specified either with or without explicit keys.
|
|
3356
3794
|
*/
|
|
@@ -3367,10 +3805,18 @@ interface GunShift4Way {
|
|
|
3367
3805
|
south: Vector;
|
|
3368
3806
|
west: Vector;
|
|
3369
3807
|
}
|
|
3370
|
-
interface
|
|
3808
|
+
interface HeatConnectionDefinition {
|
|
3371
3809
|
position: Vector;
|
|
3372
3810
|
direction: defines.direction;
|
|
3373
3811
|
}
|
|
3812
|
+
interface HeatPipeBlueprintControlBehavior {
|
|
3813
|
+
output_networks?: CircuitNetworkSelection;
|
|
3814
|
+
/**
|
|
3815
|
+
* Defaults to `false`.
|
|
3816
|
+
*/
|
|
3817
|
+
read_temperature?: boolean;
|
|
3818
|
+
temperature_signal: SignalID;
|
|
3819
|
+
}
|
|
3374
3820
|
/**
|
|
3375
3821
|
* The settings used by a heat-interface type entity.
|
|
3376
3822
|
*/
|
|
@@ -3388,7 +3834,7 @@ type HeatSettingMode = 'at-least' | 'at-most' | 'exactly' | 'add' | 'remove';
|
|
|
3388
3834
|
/**
|
|
3389
3835
|
* All base prototype types.
|
|
3390
3836
|
*/
|
|
3391
|
-
type IDType = 'custom-input' | 'equipment-grid' | 'entity' | 'particle' | 'item' | 'collision-layer' | 'airborne-pollutant' | 'tile' | 'decorative' | 'recipe-category' | 'item-group' | 'item-subgroup' | 'recipe' | 'fluid' | 'ammo-category' | 'fuel-category' | 'resource-category' | 'technology' | 'noise-function' | 'noise-expression' | 'autoplace-control' | 'equipment' | 'damage-type' | 'virtual-signal' | 'achievement' | 'module-category' | 'equipment-category' | 'mod-setting' | 'trivial-smoke' | 'asteroid-chunk' | 'quality' | 'surface-property' | '
|
|
3837
|
+
type IDType = 'custom-input' | 'equipment-grid' | 'entity' | 'particle' | 'item' | 'collision-layer' | 'airborne-pollutant' | 'tile' | 'decorative' | 'recipe-category' | 'item-group' | 'item-subgroup' | 'recipe' | 'fluid' | 'ammo-category' | 'fuel-category' | 'resource-category' | 'technology' | 'noise-function' | 'noise-expression' | 'autoplace-control' | 'equipment' | 'damage-type' | 'virtual-signal' | 'achievement' | 'module-category' | 'equipment-category' | 'mod-setting' | 'trivial-smoke' | 'asteroid-chunk' | 'quality' | 'surface-property' | 'space-location' | 'space-connection' | 'procession-layer-inheritance-group' | 'procession' | 'active-trigger' | 'shortcut' | 'burner-usage' | 'surface' | 'mod-data' | 'custom-event';
|
|
3392
3838
|
interface IconDrawSpecification {
|
|
3393
3839
|
shift: Vector;
|
|
3394
3840
|
scale: float;
|
|
@@ -3465,7 +3911,7 @@ interface BaseIngredient {
|
|
|
3465
3911
|
*/
|
|
3466
3912
|
ignored_by_stats?: uint32 | double;
|
|
3467
3913
|
}
|
|
3468
|
-
type Ingredient = BaseIngredient | IngredientFluid;
|
|
3914
|
+
type Ingredient = BaseIngredient | IngredientFluid | IngredientItem;
|
|
3469
3915
|
/**
|
|
3470
3916
|
*
|
|
3471
3917
|
* Applies to variant case `fluid`
|
|
@@ -3487,7 +3933,20 @@ interface IngredientFluid extends BaseIngredient {
|
|
|
3487
3933
|
*/
|
|
3488
3934
|
'temperature'?: float;
|
|
3489
3935
|
}
|
|
3936
|
+
/**
|
|
3937
|
+
*
|
|
3938
|
+
* Applies to variant case `item`
|
|
3939
|
+
*/
|
|
3940
|
+
interface IngredientItem extends BaseIngredient {
|
|
3941
|
+
'type': 'item';
|
|
3942
|
+
'quality_change'?: int8;
|
|
3943
|
+
'quality_max'?: QualityID;
|
|
3944
|
+
'quality_min'?: QualityID;
|
|
3945
|
+
'spoil_weight'?: float;
|
|
3946
|
+
}
|
|
3490
3947
|
interface InserterBlueprintControlBehavior {
|
|
3948
|
+
input_networks?: CircuitNetworkSelection;
|
|
3949
|
+
output_networks?: CircuitNetworkSelection;
|
|
3491
3950
|
/**
|
|
3492
3951
|
* Defaults to `false`.
|
|
3493
3952
|
*/
|
|
@@ -3556,6 +4015,10 @@ type ItemFilter = {
|
|
|
3556
4015
|
*/
|
|
3557
4016
|
comparator?: ComparatorString;
|
|
3558
4017
|
} | string;
|
|
4018
|
+
interface ItemHealthColorData {
|
|
4019
|
+
color: Color;
|
|
4020
|
+
threshold: float;
|
|
4021
|
+
}
|
|
3559
4022
|
/**
|
|
3560
4023
|
* An item prototype may be specified in one of four ways.
|
|
3561
4024
|
*/
|
|
@@ -3648,7 +4111,8 @@ interface ItemProduct {
|
|
|
3648
4111
|
/**
|
|
3649
4112
|
* A value in range `[0, 1]`. Item is only given with this probability; otherwise no product is produced.
|
|
3650
4113
|
*/
|
|
3651
|
-
|
|
4114
|
+
independent_probability: double;
|
|
4115
|
+
shared_probability: SharedProbabilityDefinition;
|
|
3652
4116
|
/**
|
|
3653
4117
|
* How much of this product is ignored by statistics.
|
|
3654
4118
|
*/
|
|
@@ -3662,12 +4126,17 @@ interface ItemProduct {
|
|
|
3662
4126
|
*/
|
|
3663
4127
|
extra_count_fraction?: float;
|
|
3664
4128
|
percent_spoiled?: float;
|
|
4129
|
+
always_fresh?: boolean;
|
|
4130
|
+
quality_min?: QualityID;
|
|
4131
|
+
quality_max?: QualityID;
|
|
4132
|
+
quality_change?: int8;
|
|
4133
|
+
affected_by_quality: boolean;
|
|
3665
4134
|
}
|
|
3666
4135
|
interface BaseItemPrototypeFilter {
|
|
3667
4136
|
/**
|
|
3668
4137
|
* The condition to filter on.
|
|
3669
4138
|
*/
|
|
3670
|
-
filter: 'tool' | 'mergeable' | 'hidden' | 'hidden-in-factoriopedia' | 'is-parameter' | 'item-with-inventory' | 'selection-tool' | 'item-with-label' | 'has-rocket-launch-products' | 'fuel' | 'place-result' | 'burnt-result' | 'place-as-tile' | 'placed-as-equipment-result' | 'plant-result' | 'spoil-result' | 'name' | 'type' | 'flag' | 'subgroup' | 'fuel-category' | 'stack-size' | 'fuel-value' | 'fuel-acceleration-multiplier' | 'fuel-top-speed-multiplier' | 'fuel-emissions-multiplier';
|
|
4139
|
+
filter: 'tool' | 'mergeable' | 'hidden' | 'hidden-in-factoriopedia' | 'is-parameter' | 'item-with-inventory' | 'selection-tool' | 'item-with-label' | 'has-rocket-launch-products' | 'fuel' | 'used-by-labs' | 'place-result' | 'burnt-result' | 'place-as-tile' | 'placed-as-equipment-result' | 'plant-result' | 'spoil-result' | 'name' | 'type' | 'flag' | 'subgroup' | 'fuel-category' | 'stack-size' | 'fuel-value' | 'fuel-acceleration-multiplier' | 'fuel-top-speed-multiplier' | 'fuel-emissions-multiplier';
|
|
3671
4140
|
/**
|
|
3672
4141
|
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
3673
4142
|
*/
|
|
@@ -3923,6 +4392,9 @@ type ItemPrototypeFlag = /**
|
|
|
3923
4392
|
* If this item is skipped by the trash-unrequested logic.
|
|
3924
4393
|
*/
|
|
3925
4394
|
'excluded-from-trash-unrequested' | /**
|
|
4395
|
+
* Whether the rocket passenger feature skips this item when checking lift weight.
|
|
4396
|
+
*/
|
|
4397
|
+
'excluded-from-character-lift-weight' | /**
|
|
3926
4398
|
* Always shows the item in the logistic requests and filters GUIs (among others) even when the recipe for that item is locked.
|
|
3927
4399
|
*/
|
|
3928
4400
|
'always-show' | /**
|
|
@@ -3949,7 +4421,7 @@ type ItemPrototypeFlag = /**
|
|
|
3949
4421
|
'spawnable' | 'spoil-result' | /**
|
|
3950
4422
|
* Controls whether the spoil time ignores the spoil time modifier in the {@link DifficultySettings | runtime:DifficultySettings}.
|
|
3951
4423
|
*/
|
|
3952
|
-
'ignore-spoil-time-modifier';
|
|
4424
|
+
'ignore-spoil-time-modifier' | 'hide-health-bar-in-world' | 'hide-spoilage-bar-in-world';
|
|
3953
4425
|
/**
|
|
3954
4426
|
* A set of flags. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
|
3955
4427
|
*
|
|
@@ -3984,7 +4456,7 @@ interface ItemStackDefinition {
|
|
|
3984
4456
|
/**
|
|
3985
4457
|
* Tags of the items with tags in the stack.
|
|
3986
4458
|
*/
|
|
3987
|
-
tags?:
|
|
4459
|
+
tags?: Tags;
|
|
3988
4460
|
/**
|
|
3989
4461
|
* Description of the items with tags in the stack.
|
|
3990
4462
|
*/
|
|
@@ -4048,7 +4520,6 @@ interface ItemWithQualityCount {
|
|
|
4048
4520
|
*/
|
|
4049
4521
|
count: ItemCountType;
|
|
4050
4522
|
}
|
|
4051
|
-
type ItemWithQualityCounts = ItemWithQualityCount[];
|
|
4052
4523
|
/**
|
|
4053
4524
|
* An item prototype with optional quality specification. Can be specified in one of four ways.
|
|
4054
4525
|
*/
|
|
@@ -4065,7 +4536,29 @@ string | /**
|
|
|
4065
4536
|
* A table of item prototype and quality.
|
|
4066
4537
|
*/
|
|
4067
4538
|
ItemIDAndQualityIDPair;
|
|
4539
|
+
interface LabBlueprintControlBehavior {
|
|
4540
|
+
input_networks?: CircuitNetworkSelection;
|
|
4541
|
+
output_networks?: CircuitNetworkSelection;
|
|
4542
|
+
read_contents?: boolean;
|
|
4543
|
+
read_fuel?: boolean;
|
|
4544
|
+
read_research_cost?: boolean;
|
|
4545
|
+
set_research?: boolean;
|
|
4546
|
+
read_technology_level?: boolean;
|
|
4547
|
+
technology_level_signal: SignalID;
|
|
4548
|
+
conditions?: ResearchCondition[];
|
|
4549
|
+
}
|
|
4550
|
+
interface LabStoredDurability {
|
|
4551
|
+
/**
|
|
4552
|
+
* Quality of the currently consumed item.
|
|
4553
|
+
*/
|
|
4554
|
+
quality?: QualityID;
|
|
4555
|
+
/**
|
|
4556
|
+
* Amount of durability stored. Must be >= 0.
|
|
4557
|
+
*/
|
|
4558
|
+
durability: double;
|
|
4559
|
+
}
|
|
4068
4560
|
interface LampBlueprintControlBehavior {
|
|
4561
|
+
input_networks?: CircuitNetworkSelection;
|
|
4069
4562
|
/**
|
|
4070
4563
|
* Defaults to `false`.
|
|
4071
4564
|
*/
|
|
@@ -4089,14 +4582,29 @@ interface LampBlueprintControlBehavior {
|
|
|
4089
4582
|
connect_to_logistic_network?: boolean;
|
|
4090
4583
|
logistic_condition?: CircuitCondition;
|
|
4091
4584
|
}
|
|
4585
|
+
interface LandMineBlueprintControlBehavior {
|
|
4586
|
+
input_networks?: CircuitNetworkSelection;
|
|
4587
|
+
/**
|
|
4588
|
+
* Defaults to `false`.
|
|
4589
|
+
*/
|
|
4590
|
+
circuit_enabled?: boolean;
|
|
4591
|
+
circuit_condition?: CircuitCondition;
|
|
4592
|
+
/**
|
|
4593
|
+
* Defaults to `false`.
|
|
4594
|
+
*/
|
|
4595
|
+
connect_to_logistic_network?: boolean;
|
|
4596
|
+
logistic_condition?: CircuitCondition;
|
|
4597
|
+
}
|
|
4092
4598
|
/**
|
|
4093
4599
|
* The internal name of a game control (key binding).
|
|
4094
4600
|
*/
|
|
4095
|
-
type LinkedGameControl = 'move-up' | 'move-down' | 'move-left' | 'move-right' | 'alternative-gui-move-up' | 'alternative-gui-move-down' | 'alternative-gui-move-left' | 'alternative-gui-move-right' | 'open-character-gui' | 'open-gui' | 'confirm-gui' | 'toggle-free-cursor' | 'mine' | 'build' | 'build-ghost' | 'super-forced-build' | 'clear-cursor' | 'pipette' | 'rotate' | 'reverse-rotate' | 'flip-horizontal' | 'flip-vertical' | 'pick-items' | 'drop-cursor' | 'show-info' | 'shoot-enemy' | 'shoot-selected' | 'next-weapon' | 'toggle-driving' | 'zoom-in' | 'zoom-out' | 'use-item' | 'alternative-use-item' | 'toggle-console' | 'copy-entity-settings' | 'paste-entity-settings' | 'controller-gui-logistics-tab' | 'controller-gui-character-tab' | 'controller-gui-crafting-tab' | 'toggle-rail-layer' | 'select-for-blueprint' | 'select-for-cancel-deconstruct' | 'select-for-super-forced-deconstruct' | 'reverse-select' | 'alt-reverse-select' | 'deselect' | 'cycle-blueprint-forwards' | 'cycle-blueprint-backwards' | 'focus-search' | 'larger-terrain-building-area' | 'smaller-terrain-building-area' | 'remove-pole-cables' | 'build-with-obstacle-avoidance' | 'add-station' | 'add-temporary-station' | 'rename-all' | 'fast-wait-condition' | 'drag-map' | 'move-tag' | 'place-in-chat' | 'place-ping' | 'pin' | 'activate-tooltip' | 'next-surface' | 'previous-surface' | 'cycle-quality-up' | 'cycle-quality-down' | 'scroll-tooltip-up' | 'scroll-tooltip-down' | 'craft' | 'craft-5' | 'craft-all' | 'cancel-craft' | 'cancel-craft-5' | 'cancel-craft-all' | 'pick-item' | 'stack-transfer' | 'inventory-transfer' | 'fast-entity-transfer' | 'cursor-split' | 'stack-split' | 'inventory-split' | 'fast-entity-split' | 'toggle-filter' | 'open-item' | 'copy-inventory-filter' | 'paste-inventory-filter' | 'show-quick-panel' | 'next-quick-panel-page' | 'previous-quick-panel-page' | 'next-quick-panel-tab' | 'previous-quick-panel-tab' | 'rotate-active-quick-bars' | 'next-active-quick-bar' | 'previous-active-quick-bar' | 'quick-bar-button-1' | 'quick-bar-button-2' | 'quick-bar-button-3' | 'quick-bar-button-4' | 'quick-bar-button-5' | 'quick-bar-button-6' | 'quick-bar-button-7' | 'quick-bar-button-8' | 'quick-bar-button-9' | 'quick-bar-button-10' | 'quick-bar-button-1-secondary' | 'quick-bar-button-2-secondary' | 'quick-bar-button-3-secondary' | 'quick-bar-button-4-secondary' | 'quick-bar-button-5-secondary' | 'quick-bar-button-6-secondary' | 'quick-bar-button-7-secondary' | 'quick-bar-button-8-secondary' | 'quick-bar-button-9-secondary' | 'quick-bar-button-10-secondary' | 'action-bar-select-page-1' | 'action-bar-select-page-2' | 'action-bar-select-page-3' | 'action-bar-select-page-4' | 'action-bar-select-page-5' | 'action-bar-select-page-6' | 'action-bar-select-page-7' | 'action-bar-select-page-8' | 'action-bar-select-page-9' | 'action-bar-select-page-10' | 'copy' | 'cut' | 'paste' | 'cycle-clipboard-forwards' | 'cycle-clipboard-backwards' | 'undo' | 'redo' | 'toggle-menu' | 'toggle-map' | 'close-menu' | 'open-technology-gui' | 'production-statistics' | 'logistic-networks' | 'toggle-blueprint-library' | 'open-trains-gui' | 'open-factoriopedia' | 'back' | 'forward' | 'pause-game' | 'confirm-message' | 'previous-mod' | 'connect-train' | 'disconnect-train' | 'submit-feedback' | 'editor-next-variation' | 'editor-previous-variation' | 'editor-clone-item' | 'editor-delete-item' | 'editor-toggle-pause' | 'editor-tick-once' | 'editor-speed-up' | 'editor-speed-down' | 'editor-reset-speed' | 'editor-set-clone-brush-source' | 'editor-set-clone-brush-destination' | 'editor-switch-to-surface' | 'editor-remove-scripting-object' | 'debug-toggle-atlas-gui' | 'debug-toggle-gui-visibility' | 'debug-toggle-debug-settings' | 'debug-toggle-basic' | 'debug-reset-zoom' | 'debug-reset-zoom-2x' | 'toggle-gui-debug' | 'toggle-gui-style-view' | 'toggle-gui-shadows' | 'toggle-gui-glows' | 'open-prototypes-gui' | 'open-prototype-explorer-gui' | 'increase-ui-scale' | 'decrease-ui-scale' | 'reset-ui-scale' | 'slash-editor' | 'toggle-entity' | 'next-player-in-replay' | 'move-blueprint-absolute-grid-up' | 'move-blueprint-absolute-grid-down' | 'move-blueprint-absolute-grid-left' | 'move-blueprint-absolute-grid-right' | 'move-blueprint-entities-up' | 'move-blueprint-entities-down' | 'move-blueprint-entities-left' | 'move-blueprint-entities-right' | 'play-next-track' | 'play-previous-track' | 'pause-resume-music' | /**
|
|
4601
|
+
type LinkedGameControl = 'move-up' | 'move-down' | 'move-left' | 'move-right' | 'alternative-gui-move-up' | 'alternative-gui-move-down' | 'alternative-gui-move-left' | 'alternative-gui-move-right' | 'open-character-gui' | 'open-gui' | 'confirm-gui' | 'toggle-free-cursor' | 'mine' | 'build' | 'build-ghost' | 'super-forced-build' | 'clear-cursor' | 'pipette' | 'rotate' | 'reverse-rotate' | 'flip-horizontal' | 'flip-vertical' | 'pick-items' | 'drop-cursor' | 'show-info' | 'hide-tall-entities' | 'shoot-enemy' | 'shoot-selected' | 'next-weapon' | 'toggle-driving' | 'zoom-in' | 'zoom-out' | 'use-item' | 'alternative-use-item' | 'toggle-console' | 'copy-entity-settings' | 'paste-entity-settings' | 'controller-gui-logistics-tab' | 'controller-gui-character-tab' | 'controller-gui-crafting-tab' | 'toggle-rail-layer' | 'select-for-blueprint' | 'select-for-cancel-deconstruct' | 'select-for-super-forced-deconstruct' | 'reverse-select' | 'alt-reverse-select' | 'deselect' | 'cycle-blueprint-forwards' | 'cycle-blueprint-backwards' | 'focus-search' | 'larger-terrain-building-area' | 'smaller-terrain-building-area' | 'remove-pole-cables' | 'build-with-obstacle-avoidance' | 'add-station' | 'add-temporary-station' | 'rename-all' | 'fast-wait-condition' | 'drag-map' | 'move-tag' | 'place-in-chat' | 'place-ping' | 'pin' | 'activate-tooltip' | 'next-surface' | 'previous-surface' | 'cycle-quality-up' | 'cycle-quality-down' | 'scroll-tooltip-up' | 'scroll-tooltip-down' | 'visualize-entity-fluid-segments' | 'craft' | 'craft-5' | 'craft-all' | 'cancel-craft' | 'cancel-craft-5' | 'cancel-craft-all' | 'pick-item' | 'stack-transfer' | 'inventory-transfer' | 'fast-entity-transfer' | 'cursor-split' | 'stack-split' | 'inventory-split' | 'fast-entity-split' | 'toggle-filter' | 'open-item' | 'copy-inventory-filter' | 'paste-inventory-filter' | 'show-quick-panel' | 'next-quick-panel-page' | 'previous-quick-panel-page' | 'next-quick-panel-tab' | 'previous-quick-panel-tab' | 'rotate-active-quick-bars' | 'next-active-quick-bar' | 'previous-active-quick-bar' | 'quick-bar-button-1' | 'quick-bar-button-2' | 'quick-bar-button-3' | 'quick-bar-button-4' | 'quick-bar-button-5' | 'quick-bar-button-6' | 'quick-bar-button-7' | 'quick-bar-button-8' | 'quick-bar-button-9' | 'quick-bar-button-10' | 'quick-bar-button-1-secondary' | 'quick-bar-button-2-secondary' | 'quick-bar-button-3-secondary' | 'quick-bar-button-4-secondary' | 'quick-bar-button-5-secondary' | 'quick-bar-button-6-secondary' | 'quick-bar-button-7-secondary' | 'quick-bar-button-8-secondary' | 'quick-bar-button-9-secondary' | 'quick-bar-button-10-secondary' | 'action-bar-select-page-1' | 'action-bar-select-page-2' | 'action-bar-select-page-3' | 'action-bar-select-page-4' | 'action-bar-select-page-5' | 'action-bar-select-page-6' | 'action-bar-select-page-7' | 'action-bar-select-page-8' | 'action-bar-select-page-9' | 'action-bar-select-page-10' | 'copy' | 'cut' | 'paste' | 'cycle-clipboard-forwards' | 'cycle-clipboard-backwards' | 'undo' | 'redo' | 'toggle-menu' | 'toggle-map' | 'close-menu' | 'open-technology-gui' | 'production-statistics' | 'logistic-networks' | 'toggle-blueprint-library' | 'open-trains-gui' | 'open-factoriopedia' | 'back' | 'forward' | 'pause-game' | 'confirm-message' | 'previous-mod' | 'connect-train' | 'disconnect-train' | 'submit-feedback' | 'editor-next-variation' | 'editor-previous-variation' | 'editor-clone-item' | 'editor-delete-item' | 'editor-toggle-pause' | 'editor-tick-once' | 'editor-speed-up' | 'editor-speed-down' | 'editor-reset-speed' | 'editor-set-clone-brush-source' | 'editor-set-clone-brush-destination' | 'editor-switch-to-surface' | 'editor-remove-scripting-object' | 'debug-toggle-atlas-gui' | 'debug-toggle-gui-visibility' | 'debug-toggle-debug-settings' | 'debug-toggle-basic' | 'debug-reset-zoom' | 'debug-reset-zoom-2x' | 'toggle-gui-debug' | 'toggle-gui-style-view' | 'toggle-gui-shadows' | 'toggle-gui-glows' | 'open-prototypes-gui' | 'open-prototype-explorer-gui' | 'increase-ui-scale' | 'decrease-ui-scale' | 'reset-ui-scale' | 'slash-editor' | 'toggle-entity' | 'next-player-in-replay' | 'move-blueprint-absolute-grid-up' | 'move-blueprint-absolute-grid-down' | 'move-blueprint-absolute-grid-left' | 'move-blueprint-absolute-grid-right' | 'move-blueprint-entities-up' | 'move-blueprint-entities-down' | 'move-blueprint-entities-left' | 'move-blueprint-entities-right' | 'toggle-blueprint-snap-to-grid' | 'play-next-track' | 'play-previous-track' | 'pause-resume-music' | /**
|
|
4096
4602
|
* Indicates no linked game control.
|
|
4097
4603
|
*/
|
|
4098
4604
|
'';
|
|
4099
4605
|
interface LoaderBlueprintControlBehavior {
|
|
4606
|
+
input_networks?: CircuitNetworkSelection;
|
|
4607
|
+
output_networks?: CircuitNetworkSelection;
|
|
4100
4608
|
/**
|
|
4101
4609
|
* Defaults to `false`.
|
|
4102
4610
|
*/
|
|
@@ -4155,11 +4663,20 @@ game.print({"", {"item-name.iron-plate"}, ": ", 60})
|
|
|
4155
4663
|
*/
|
|
4156
4664
|
type LocalisedString = string | number | boolean | LuaObject | nil | LocalisedString[];
|
|
4157
4665
|
interface LogisticContainerBlueprintControlBehavior {
|
|
4666
|
+
input_networks?: CircuitNetworkSelection;
|
|
4667
|
+
output_networks?: CircuitNetworkSelection;
|
|
4158
4668
|
/**
|
|
4159
|
-
* Defaults to `
|
|
4669
|
+
* Defaults to `true`.
|
|
4160
4670
|
*/
|
|
4161
|
-
|
|
4162
|
-
|
|
4671
|
+
read_contents?: boolean;
|
|
4672
|
+
/**
|
|
4673
|
+
* Defaults to `false`.
|
|
4674
|
+
*/
|
|
4675
|
+
set_requests?: boolean;
|
|
4676
|
+
/**
|
|
4677
|
+
* Defaults to `false`.
|
|
4678
|
+
*/
|
|
4679
|
+
circuit_condition_enabled?: boolean;
|
|
4163
4680
|
circuit_condition?: CircuitCondition;
|
|
4164
4681
|
}
|
|
4165
4682
|
interface LogisticFilter {
|
|
@@ -4189,6 +4706,7 @@ interface LogisticGroup {
|
|
|
4189
4706
|
members: LuaLogisticSection[];
|
|
4190
4707
|
filters: LogisticFilter[];
|
|
4191
4708
|
}
|
|
4709
|
+
type LogisticMode = 'active-provider' | 'passive-provider' | 'requester' | 'storage' | 'buffer';
|
|
4192
4710
|
interface LogisticSection {
|
|
4193
4711
|
index: uint8;
|
|
4194
4712
|
filters?: BlueprintLogisticFilter[];
|
|
@@ -4233,35 +4751,17 @@ interface LogisticsNetworkSupplyPoints {
|
|
|
4233
4751
|
buffer: LuaLogisticPoint[];
|
|
4234
4752
|
'active-provider': LuaLogisticPoint[];
|
|
4235
4753
|
}
|
|
4236
|
-
interface
|
|
4237
|
-
/**
|
|
4238
|
-
* Item prototype name of the result.
|
|
4239
|
-
*/
|
|
4240
|
-
item: string;
|
|
4754
|
+
interface BaseLuaEntityClonedEventFilter {
|
|
4241
4755
|
/**
|
|
4242
|
-
*
|
|
4756
|
+
* The condition to filter on.
|
|
4243
4757
|
*/
|
|
4244
|
-
|
|
4758
|
+
filter: 'ghost' | 'rail' | 'rail-signal' | 'rolling-stock' | 'robot-with-logistics-interface' | 'vehicle' | 'turret' | 'crafting-machine' | 'wall-connectable' | 'transport-belt-connectable' | 'circuit-network-connectable' | 'type' | 'name' | 'ghost_type' | 'ghost_name';
|
|
4245
4759
|
/**
|
|
4246
|
-
*
|
|
4760
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
4247
4761
|
*/
|
|
4248
|
-
|
|
4762
|
+
mode?: 'or' | 'and';
|
|
4249
4763
|
/**
|
|
4250
|
-
*
|
|
4251
|
-
*/
|
|
4252
|
-
count_max: double;
|
|
4253
|
-
}
|
|
4254
|
-
interface BaseLuaEntityClonedEventFilter {
|
|
4255
|
-
/**
|
|
4256
|
-
* The condition to filter on.
|
|
4257
|
-
*/
|
|
4258
|
-
filter: 'ghost' | 'rail' | 'rail-signal' | 'rolling-stock' | 'robot-with-logistics-interface' | 'vehicle' | 'turret' | 'crafting-machine' | 'wall-connectable' | 'transport-belt-connectable' | 'circuit-network-connectable' | 'type' | 'name' | 'ghost_type' | 'ghost_name';
|
|
4259
|
-
/**
|
|
4260
|
-
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
4261
|
-
*/
|
|
4262
|
-
mode?: 'or' | 'and';
|
|
4263
|
-
/**
|
|
4264
|
-
* Inverts the condition. Default is `false`.
|
|
4764
|
+
* Inverts the condition. Default is `false`.
|
|
4265
4765
|
*/
|
|
4266
4766
|
invert?: boolean;
|
|
4267
4767
|
}
|
|
@@ -6330,7 +6830,6 @@ interface MapAndDifficultySettings {
|
|
|
6330
6830
|
enemy_evolution: EnemyEvolutionMapSettings;
|
|
6331
6831
|
enemy_expansion: EnemyExpansionMapSettings;
|
|
6332
6832
|
unit_group: UnitGroupMapSettings;
|
|
6333
|
-
steering: SteeringMapSettings;
|
|
6334
6833
|
path_finder: PathFinderMapSettings;
|
|
6335
6834
|
asteroids: AsteroidMapSettings;
|
|
6336
6835
|
/**
|
|
@@ -6369,6 +6868,7 @@ interface MapGenPreset {
|
|
|
6369
6868
|
advanced_settings?: AdvancedMapGenSettings;
|
|
6370
6869
|
}
|
|
6371
6870
|
/**
|
|
6871
|
+
* When reading MapGenSettings, all properties will always be present, but they can be omitted when writing.
|
|
6372
6872
|
* @example ```
|
|
6373
6873
|
-- Assuming a NamedNoiseExpression with the name "my-alternate-grass1-probability" is defined...
|
|
6374
6874
|
local surface = game.player.surface
|
|
@@ -6391,52 +6891,52 @@ interface MapGenSettings {
|
|
|
6391
6891
|
/**
|
|
6392
6892
|
* Indexed by autoplace control prototype name.
|
|
6393
6893
|
*/
|
|
6394
|
-
autoplace_controls
|
|
6894
|
+
autoplace_controls?: Record<string, AutoplaceControl>;
|
|
6395
6895
|
/**
|
|
6396
6896
|
* Whether undefined `autoplace_controls` should fall back to the default controls or not. Defaults to `true`.
|
|
6397
6897
|
*/
|
|
6398
|
-
default_enable_all_autoplace_controls
|
|
6898
|
+
default_enable_all_autoplace_controls?: boolean;
|
|
6399
6899
|
/**
|
|
6400
6900
|
* Each setting in this dictionary maps the string type to the settings for that type.
|
|
6401
6901
|
*/
|
|
6402
|
-
autoplace_settings
|
|
6902
|
+
autoplace_settings?: Record<'entity' | 'tile' | 'decorative', AutoplaceSettings>;
|
|
6403
6903
|
/**
|
|
6404
|
-
* The random seed used to generated this map.
|
|
6904
|
+
* ) The random seed used to generated this map.
|
|
6405
6905
|
*/
|
|
6406
|
-
seed
|
|
6906
|
+
seed?: uint32;
|
|
6407
6907
|
/**
|
|
6408
|
-
* Width in tiles. If `0`, the map has 'infinite' width, with the actual limitation being one million tiles in each direction from the center.
|
|
6908
|
+
* ) Width in tiles. If `0`, the map has 'infinite' width, with the actual limitation being one million tiles in each direction from the center.
|
|
6409
6909
|
*/
|
|
6410
|
-
width
|
|
6910
|
+
width?: uint32;
|
|
6411
6911
|
/**
|
|
6412
6912
|
* Height in tiles. If `0`, the map has 'infinite' height, with the actual limitation being one million tiles in each direction from the center.
|
|
6413
6913
|
*/
|
|
6414
|
-
height
|
|
6914
|
+
height?: uint32;
|
|
6415
6915
|
/**
|
|
6416
|
-
* Size of the starting area.
|
|
6916
|
+
* Size of the starting area. Defaults to `1`.
|
|
6417
6917
|
*/
|
|
6418
|
-
starting_area
|
|
6918
|
+
starting_area?: MapGenSize;
|
|
6419
6919
|
/**
|
|
6420
6920
|
* Positions of the starting areas.
|
|
6421
6921
|
*/
|
|
6422
|
-
starting_points
|
|
6922
|
+
starting_points?: MapPosition[];
|
|
6423
6923
|
/**
|
|
6424
6924
|
* Whether enemy creatures will not attack unless the player first attacks them.
|
|
6425
6925
|
*/
|
|
6426
|
-
peaceful_mode
|
|
6926
|
+
peaceful_mode?: boolean;
|
|
6427
6927
|
/**
|
|
6428
6928
|
* Whether enemy creatures will not naturally spawn from spawners, map gen, or trigger effects.
|
|
6429
6929
|
*/
|
|
6430
|
-
no_enemies_mode
|
|
6930
|
+
no_enemies_mode?: boolean;
|
|
6431
6931
|
/**
|
|
6432
6932
|
* Overrides for tile property value generators.
|
|
6433
6933
|
*/
|
|
6434
|
-
property_expression_names
|
|
6934
|
+
property_expression_names?: PropertyExpressionNames;
|
|
6435
6935
|
/**
|
|
6436
6936
|
* Map generation settings for entities of the type "cliff".
|
|
6437
6937
|
*/
|
|
6438
|
-
cliff_settings
|
|
6439
|
-
territory_settings
|
|
6938
|
+
cliff_settings?: CliffPlacementSettings;
|
|
6939
|
+
territory_settings?: TerritorySettings;
|
|
6440
6940
|
}
|
|
6441
6941
|
/**
|
|
6442
6942
|
* A floating point number specifying an amount.
|
|
@@ -6539,7 +7039,6 @@ interface MapSettings {
|
|
|
6539
7039
|
max_failed_behavior_count: uint32;
|
|
6540
7040
|
path_finder: PathFinderMapSettings;
|
|
6541
7041
|
pollution: PollutionMapSettings;
|
|
6542
|
-
steering: SteeringMapSetting;
|
|
6543
7042
|
unit_group: UnitGroupMapSettings;
|
|
6544
7043
|
}
|
|
6545
7044
|
/**
|
|
@@ -6644,6 +7143,8 @@ interface MineableProperties {
|
|
|
6644
7143
|
mining_trigger?: TriggerItem[];
|
|
6645
7144
|
}
|
|
6646
7145
|
interface MiningDrillBlueprintControlBehavior {
|
|
7146
|
+
input_networks?: CircuitNetworkSelection;
|
|
7147
|
+
output_networks?: CircuitNetworkSelection;
|
|
6647
7148
|
circuit_read_resources: boolean;
|
|
6648
7149
|
circuit_resource_read_mode: defines.control_behavior.mining_drill.resource_read_mode;
|
|
6649
7150
|
/**
|
|
@@ -6733,17 +7234,15 @@ interface ModSettingPrototypeFilterType extends BaseModSettingPrototypeFilter {
|
|
|
6733
7234
|
/**
|
|
6734
7235
|
* Used by {@link TechnologyModifier | runtime:TechnologyModifier}.
|
|
6735
7236
|
*/
|
|
6736
|
-
type ModifierType = 'inserter-stack-size-bonus' | 'bulk-inserter-capacity-bonus' | 'laboratory-speed' | 'character-logistic-trash-slots' | 'maximum-following-robots-count' | 'worker-robot-speed' | 'worker-robot-storage' | 'turret-attack' | 'ammo-damage' | 'give-item' | 'gun-speed' | 'unlock-recipe' | 'character-crafting-speed' | 'character-mining-speed' | 'character-running-speed' | 'character-build-distance' | 'character-item-drop-distance' | 'character-reach-distance' | 'character-resource-reach-distance' | 'character-item-pickup-distance' | 'character-loot-pickup-distance' | 'character-inventory-slots-bonus' | 'deconstruction-time-to-live' | 'max-failed-attempts-per-tick-per-construction-queue' | 'max-successful-attempts-per-tick-per-construction-queue' | 'character-health-bonus' | 'mining-drill-productivity-bonus' | 'train-braking-force-bonus' | 'worker-robot-battery' | 'laboratory-productivity' | 'follower-robot-lifetime' | 'artillery-range' | 'nothing' | 'character-logistic-requests' | 'unlock-space-location' | 'unlock-quality' | 'unlock-space-platforms' | 'unlock-circuit-network' | 'cargo-landing-pad-count' | 'change-recipe-productivity' | 'cliff-deconstruction-enabled' | 'mining-with-fluid' | 'rail-support-on-deep-oil-ocean' | 'rail-planner-allow-elevated-rails' | 'beacon-distribution' | 'create-ghost-on-entity-death' | 'belt-stack-size-bonus' | 'vehicle-logistics';
|
|
7237
|
+
type ModifierType = 'inserter-stack-size-bonus' | 'bulk-inserter-capacity-bonus' | 'laboratory-speed' | 'character-logistic-trash-slots' | 'maximum-following-robots-count' | 'worker-robot-speed' | 'worker-robot-storage' | 'turret-attack' | 'ammo-damage' | 'give-item' | 'gun-speed' | 'unlock-recipe' | 'character-crafting-speed' | 'character-mining-speed' | 'character-running-speed' | 'character-build-distance' | 'character-item-drop-distance' | 'character-reach-distance' | 'character-resource-reach-distance' | 'character-item-pickup-distance' | 'character-loot-pickup-distance' | 'character-inventory-slots-bonus' | 'deconstruction-time-to-live' | 'max-failed-attempts-per-tick-per-construction-queue' | 'max-successful-attempts-per-tick-per-construction-queue' | 'character-health-bonus' | 'mining-drill-productivity-bonus' | 'train-braking-force-bonus' | 'worker-robot-battery' | 'laboratory-productivity' | 'follower-robot-lifetime' | 'artillery-range' | 'nothing' | 'character-logistic-requests' | 'unlock-space-location' | 'unlock-quality' | 'unlock-space-platforms' | 'unlock-circuit-network' | 'cargo-landing-pad-count' | 'max-cargo-bay-unloading-distance' | 'change-recipe-productivity' | 'cliff-deconstruction-enabled' | 'mining-with-fluid' | 'rail-support-on-deep-oil-ocean' | 'rail-planner-allow-elevated-rails' | 'beacon-distribution' | 'create-ghost-on-entity-death' | 'belt-stack-size-bonus' | 'vehicle-logistics' | 'unlock-logistic-network' | 'unlock-travel-to-space-platforms';
|
|
6737
7238
|
/**
|
|
6738
7239
|
* The percentual increase of the attribute. A value of `0.6` means a 60% increase.
|
|
6739
|
-
*
|
|
6740
|
-
* Quality values are multiplied by {@link LuaQualityPrototype::next_probability | runtime:LuaQualityPrototype::next_probability}. For example, if a module's quality effect is 0.2 and the current quality's next_probability is 0.1, then the chance to get the next quality item is 2%.
|
|
6741
7240
|
*/
|
|
6742
7241
|
type ModuleEffectValue = float;
|
|
6743
7242
|
/**
|
|
6744
7243
|
* @example ```
|
|
6745
7244
|
-- These are the effects of the vanilla Speed Module 3
|
|
6746
|
-
{speed = 0.5, consumption = 0.7, quality = -0.
|
|
7245
|
+
{speed = 0.5, consumption = 0.7, quality = -0.025}
|
|
6747
7246
|
```
|
|
6748
7247
|
*/
|
|
6749
7248
|
interface ModuleEffects {
|
|
@@ -6764,6 +7263,22 @@ interface NeighbourConnectable {
|
|
|
6764
7263
|
neighbour_search_distance: float;
|
|
6765
7264
|
connections: NeighbourConnectableConnectionDefinition[];
|
|
6766
7265
|
}
|
|
7266
|
+
interface NeighbourConnectableConnection {
|
|
7267
|
+
position: MapPosition;
|
|
7268
|
+
direction: defines.direction;
|
|
7269
|
+
/**
|
|
7270
|
+
* Entity to which this connection is connected to, if any.
|
|
7271
|
+
*/
|
|
7272
|
+
target?: LuaEntity;
|
|
7273
|
+
/**
|
|
7274
|
+
* Whether connected entity is real or ghost.
|
|
7275
|
+
*/
|
|
7276
|
+
target_real?: boolean;
|
|
7277
|
+
/**
|
|
7278
|
+
* If multiple connections are connected to the same target, only one connection is marked as first and provides neighbour bonuses.
|
|
7279
|
+
*/
|
|
7280
|
+
first?: boolean;
|
|
7281
|
+
}
|
|
6767
7282
|
interface NeighbourConnectableConnectionDefinition {
|
|
6768
7283
|
location: MapLocation;
|
|
6769
7284
|
category: string;
|
|
@@ -6777,11 +7292,11 @@ interface NthTickEventData {
|
|
|
6777
7292
|
/**
|
|
6778
7293
|
* The tick during which the event happened.
|
|
6779
7294
|
*/
|
|
6780
|
-
tick:
|
|
7295
|
+
tick: MapTick;
|
|
6781
7296
|
/**
|
|
6782
7297
|
* The nth tick this handler was registered to.
|
|
6783
7298
|
*/
|
|
6784
|
-
nth_tick:
|
|
7299
|
+
nth_tick: MapTick;
|
|
6785
7300
|
}
|
|
6786
7301
|
/**
|
|
6787
7302
|
* A single offer on a market entity.
|
|
@@ -6800,6 +7315,28 @@ interface OldTileAndPosition {
|
|
|
6800
7315
|
old_tile: LuaTilePrototype;
|
|
6801
7316
|
position: TilePosition;
|
|
6802
7317
|
}
|
|
7318
|
+
interface OrientedCliffPrototypeSet {
|
|
7319
|
+
west_to_east: BoundingBox;
|
|
7320
|
+
north_to_south: BoundingBox;
|
|
7321
|
+
east_to_west: BoundingBox;
|
|
7322
|
+
south_to_north: BoundingBox;
|
|
7323
|
+
west_to_north: BoundingBox;
|
|
7324
|
+
north_to_east: BoundingBox;
|
|
7325
|
+
east_to_south: BoundingBox;
|
|
7326
|
+
south_to_west: BoundingBox;
|
|
7327
|
+
west_to_south: BoundingBox;
|
|
7328
|
+
north_to_west: BoundingBox;
|
|
7329
|
+
east_to_north: BoundingBox;
|
|
7330
|
+
south_to_east: BoundingBox;
|
|
7331
|
+
west_to_none: BoundingBox;
|
|
7332
|
+
none_to_east: BoundingBox;
|
|
7333
|
+
north_to_none: BoundingBox;
|
|
7334
|
+
none_to_south: BoundingBox;
|
|
7335
|
+
east_to_none: BoundingBox;
|
|
7336
|
+
none_to_west: BoundingBox;
|
|
7337
|
+
south_to_none: BoundingBox;
|
|
7338
|
+
none_to_north: BoundingBox;
|
|
7339
|
+
}
|
|
6803
7340
|
/**
|
|
6804
7341
|
* A particle prototype may be specified in one of two ways.
|
|
6805
7342
|
*/
|
|
@@ -7002,7 +7539,7 @@ interface PipeConnection {
|
|
|
7002
7539
|
/**
|
|
7003
7540
|
* The connected fluidbox, if any.
|
|
7004
7541
|
*/
|
|
7005
|
-
target?:
|
|
7542
|
+
target?: LuaEntity;
|
|
7006
7543
|
/**
|
|
7007
7544
|
* The index of the target fluidbox, if any.
|
|
7008
7545
|
*/
|
|
@@ -7025,10 +7562,19 @@ interface PipeConnectionDefinition {
|
|
|
7025
7562
|
flow_direction: FluidFlowDirection;
|
|
7026
7563
|
direction: defines.direction;
|
|
7027
7564
|
connection_category: string[];
|
|
7565
|
+
hide_connection_info: boolean;
|
|
7028
7566
|
/**
|
|
7029
|
-
* Only
|
|
7567
|
+
* Only provided if `connection_type` is `"linked"`.
|
|
7030
7568
|
*/
|
|
7031
7569
|
linked_connection_id?: uint32;
|
|
7570
|
+
/**
|
|
7571
|
+
* Only provided if different from `direction`.
|
|
7572
|
+
*/
|
|
7573
|
+
alt_direction?: defines.direction;
|
|
7574
|
+
/**
|
|
7575
|
+
* Only provided if different from first position inside of `positions`.
|
|
7576
|
+
*/
|
|
7577
|
+
alt_position?: MapPosition;
|
|
7032
7578
|
}
|
|
7033
7579
|
type PipeConnectionType = /**
|
|
7034
7580
|
* 2 connections are required to be adjacent tiles next to each other on their respective directions.
|
|
@@ -7051,6 +7597,49 @@ interface PlaceAsTileResult {
|
|
|
7051
7597
|
invert: boolean;
|
|
7052
7598
|
tile_condition: LuaTilePrototype[];
|
|
7053
7599
|
}
|
|
7600
|
+
interface PlatformBackdrop {
|
|
7601
|
+
position: Vector;
|
|
7602
|
+
radius: float;
|
|
7603
|
+
rotation_seconds: float;
|
|
7604
|
+
planet_axis: Vector;
|
|
7605
|
+
planet_axis_deviation_amplitude: Vector;
|
|
7606
|
+
planet_axis_deviation_seconds: Vector;
|
|
7607
|
+
parallax_strength: Vector;
|
|
7608
|
+
flight_approach_speed: float;
|
|
7609
|
+
emission_scales_with_shadow: boolean;
|
|
7610
|
+
hero_clouds_are_emissive: boolean;
|
|
7611
|
+
atmosphere_thickness: float;
|
|
7612
|
+
atmosphere_color: Color;
|
|
7613
|
+
specular_color: Color;
|
|
7614
|
+
light_color: Color;
|
|
7615
|
+
light_direction: Vector3D;
|
|
7616
|
+
atmosphere_ray_light_color_1: Color;
|
|
7617
|
+
atmosphere_ray_light_color_2: Color;
|
|
7618
|
+
surface_normal_intensity: float;
|
|
7619
|
+
cloud_normal_intensity: float;
|
|
7620
|
+
specular_intensity: float;
|
|
7621
|
+
cloudiness: float;
|
|
7622
|
+
emission_scalar: float;
|
|
7623
|
+
light_radius: float;
|
|
7624
|
+
light_intensity_contrast: float;
|
|
7625
|
+
surface_vertical_offset: float;
|
|
7626
|
+
cloud_vertical_offset: float;
|
|
7627
|
+
cloud_flow_intensity: float;
|
|
7628
|
+
cloud_flow_seconds: float;
|
|
7629
|
+
cloud_panning_rate: float;
|
|
7630
|
+
hero_clouds: PlatformBackdropHeroCloud[];
|
|
7631
|
+
}
|
|
7632
|
+
interface PlatformBackdropHeroCloud {
|
|
7633
|
+
sprite_index: uint8;
|
|
7634
|
+
rotation_speed: float;
|
|
7635
|
+
rotate_with_planet: boolean;
|
|
7636
|
+
size: Vector;
|
|
7637
|
+
positions: Vector[];
|
|
7638
|
+
starting_frame_offset: uint16;
|
|
7639
|
+
rotation_deviation: float;
|
|
7640
|
+
position_deviation: Vector;
|
|
7641
|
+
projection_style: 'none' | 'front-only' | 'front-and-back' | 'front-and-back-inverted';
|
|
7642
|
+
}
|
|
7054
7643
|
interface PlatformSchedule {
|
|
7055
7644
|
/**
|
|
7056
7645
|
* Index of the currently active record
|
|
@@ -7058,6 +7647,36 @@ interface PlatformSchedule {
|
|
|
7058
7647
|
current: uint32;
|
|
7059
7648
|
records: ScheduleRecord[];
|
|
7060
7649
|
}
|
|
7650
|
+
interface PlayMusicSpecification {
|
|
7651
|
+
/**
|
|
7652
|
+
* The name of ambient sound to play.
|
|
7653
|
+
*/
|
|
7654
|
+
name: string;
|
|
7655
|
+
/**
|
|
7656
|
+
* Skip the natural pause between music tracks. If there is currently a track playing, this has no effect. Defaults to `false`.
|
|
7657
|
+
*/
|
|
7658
|
+
skip_natural_pause?: boolean;
|
|
7659
|
+
/**
|
|
7660
|
+
* Don't transition from this music track on surface change. Defaults to `false`.
|
|
7661
|
+
*/
|
|
7662
|
+
dont_transition_from?: boolean;
|
|
7663
|
+
/**
|
|
7664
|
+
* Number of ticks for the music transition delay.
|
|
7665
|
+
*/
|
|
7666
|
+
delay_duration?: uint32;
|
|
7667
|
+
/**
|
|
7668
|
+
* Number of ticks for the music transition fade out.
|
|
7669
|
+
*/
|
|
7670
|
+
fade_out_duration?: uint32;
|
|
7671
|
+
/**
|
|
7672
|
+
* Number of ticks for the music transition pause.
|
|
7673
|
+
*/
|
|
7674
|
+
pause_duration?: uint32;
|
|
7675
|
+
/**
|
|
7676
|
+
* Number of ticks for the music transition fade in.
|
|
7677
|
+
*/
|
|
7678
|
+
fade_in_duration?: uint32;
|
|
7679
|
+
}
|
|
7061
7680
|
interface PlaySoundSpecification {
|
|
7062
7681
|
/**
|
|
7063
7682
|
* The sound to play.
|
|
@@ -7076,6 +7695,11 @@ interface PlaySoundSpecification {
|
|
|
7076
7695
|
*/
|
|
7077
7696
|
override_sound_type?: SoundType;
|
|
7078
7697
|
}
|
|
7698
|
+
interface PlayerColorData {
|
|
7699
|
+
name: string;
|
|
7700
|
+
player_color: Color;
|
|
7701
|
+
chat_color: Color;
|
|
7702
|
+
}
|
|
7079
7703
|
/**
|
|
7080
7704
|
* A player may be specified in one of three ways.
|
|
7081
7705
|
*/
|
|
@@ -7089,6 +7713,12 @@ string | /**
|
|
|
7089
7713
|
* A reference to {@link LuaPlayer | runtime:LuaPlayer} may be passed directly.
|
|
7090
7714
|
*/
|
|
7091
7715
|
LuaPlayer;
|
|
7716
|
+
interface Pollutant {
|
|
7717
|
+
/**
|
|
7718
|
+
* If nil, pollution is disabled.
|
|
7719
|
+
*/
|
|
7720
|
+
pollutant?: LuaAirbornePollutantPrototype;
|
|
7721
|
+
}
|
|
7092
7722
|
/**
|
|
7093
7723
|
* These values are for the time frame of one second (60 ticks).
|
|
7094
7724
|
*/
|
|
@@ -7155,18 +7785,6 @@ interface PostSegmentDiedData {
|
|
|
7155
7785
|
*/
|
|
7156
7786
|
orientation?: RealOrientation;
|
|
7157
7787
|
}
|
|
7158
|
-
interface PowerSwitchBlueprintControlBehavior {
|
|
7159
|
-
/**
|
|
7160
|
-
* Defaults to `false`.
|
|
7161
|
-
*/
|
|
7162
|
-
circuit_enabled?: boolean;
|
|
7163
|
-
circuit_condition?: CircuitCondition;
|
|
7164
|
-
/**
|
|
7165
|
-
* Defaults to `false`.
|
|
7166
|
-
*/
|
|
7167
|
-
connect_to_logistic_network?: boolean;
|
|
7168
|
-
logistic_condition?: CircuitCondition;
|
|
7169
|
-
}
|
|
7170
7788
|
interface PrintSettings {
|
|
7171
7789
|
/**
|
|
7172
7790
|
* Color of the message to print. Defaults to white.
|
|
@@ -7193,6 +7811,21 @@ interface PrintSettings {
|
|
|
7193
7811
|
*/
|
|
7194
7812
|
game_state?: boolean;
|
|
7195
7813
|
}
|
|
7814
|
+
/**
|
|
7815
|
+
* The name of a {@link ProcessionPrototype | prototype:ProcessionPrototype}.
|
|
7816
|
+
*/
|
|
7817
|
+
type ProcessionID = string;
|
|
7818
|
+
interface ProcessionSet {
|
|
7819
|
+
arrival: ProcessionID[];
|
|
7820
|
+
departure: ProcessionID[];
|
|
7821
|
+
}
|
|
7822
|
+
interface ProcessionTimeline {
|
|
7823
|
+
duration: MapTick;
|
|
7824
|
+
special_action_tick: MapTick;
|
|
7825
|
+
draw_switch_tick: MapTick;
|
|
7826
|
+
intermezzo_min_duration: MapTick;
|
|
7827
|
+
intermezzo_max_duration: MapTick;
|
|
7828
|
+
}
|
|
7196
7829
|
/**
|
|
7197
7830
|
* Returns one of the subtypes, depending on the value of `type`.
|
|
7198
7831
|
* @example ```
|
|
@@ -7285,9 +7918,9 @@ type PropertyExpressionNames = Record<string, string>;
|
|
|
7285
7918
|
/**
|
|
7286
7919
|
* Types `"signal"` and `"item-group"` do not support filters.
|
|
7287
7920
|
*
|
|
7288
|
-
* Filters are always used as an array of filters of a specific type. Every filter can only be used with its corresponding
|
|
7921
|
+
* Filters are always used as an array of filters of a specific type. Every filter can only be used with its corresponding prototype type, and different types of prototype filters can not be mixed.
|
|
7289
7922
|
*/
|
|
7290
|
-
type PrototypeFilter = (
|
|
7923
|
+
type PrototypeFilter = (AchievementPrototypeFilter | AsteroidChunkPrototypeFilter | DecorativePrototypeFilter | EquipmentPrototypeFilter | FluidPrototypeFilter | ModSettingPrototypeFilter | RecipePrototypeFilter | SpaceLocationPrototypeFilter | TechnologyPrototypeFilter | TilePrototypeFilter | VirtualSignalPrototypeFilter | EntityPrototypeFilter | ItemPrototypeFilter)[];
|
|
7291
7924
|
type PrototypeFilterMode = 'none' | 'whitelist' | 'blacklist';
|
|
7292
7925
|
interface PrototypeHistory {
|
|
7293
7926
|
/**
|
|
@@ -7299,6 +7932,16 @@ interface PrototypeHistory {
|
|
|
7299
7932
|
*/
|
|
7300
7933
|
changed: string[];
|
|
7301
7934
|
}
|
|
7935
|
+
interface PrototypeStrafeSettings {
|
|
7936
|
+
max_distance: double;
|
|
7937
|
+
ideal_distance: double;
|
|
7938
|
+
ideal_distance_tolerance: double;
|
|
7939
|
+
ideal_distance_variance: double;
|
|
7940
|
+
ideal_distance_importance: float;
|
|
7941
|
+
ideal_distance_importance_variance: float;
|
|
7942
|
+
clockwise_chance: float;
|
|
7943
|
+
face_target: boolean;
|
|
7944
|
+
}
|
|
7302
7945
|
interface PrototypeWithQuality {
|
|
7303
7946
|
/**
|
|
7304
7947
|
* Name of a prototype.
|
|
@@ -7310,12 +7953,14 @@ interface PrototypeWithQuality {
|
|
|
7310
7953
|
quality?: string;
|
|
7311
7954
|
}
|
|
7312
7955
|
interface ProxyContainerBlueprintControlBehavior {
|
|
7956
|
+
output_networks?: CircuitNetworkSelection;
|
|
7313
7957
|
/**
|
|
7314
7958
|
* Defaults to `true`.
|
|
7315
7959
|
*/
|
|
7316
7960
|
read_contents?: boolean;
|
|
7317
7961
|
}
|
|
7318
7962
|
interface PumpBlueprintControlBehavior {
|
|
7963
|
+
input_networks?: CircuitNetworkSelection;
|
|
7319
7964
|
/**
|
|
7320
7965
|
* Defaults to `false`.
|
|
7321
7966
|
*/
|
|
@@ -7354,11 +7999,41 @@ LuaQualityPrototype | /**
|
|
|
7354
7999
|
* The prototype name.
|
|
7355
8000
|
*/
|
|
7356
8001
|
string;
|
|
8002
|
+
interface QuickBarSlot {
|
|
8003
|
+
/**
|
|
8004
|
+
* Type of slot content
|
|
8005
|
+
*/
|
|
8006
|
+
type: 'record' | 'remote' | 'filter' | 'item';
|
|
8007
|
+
/**
|
|
8008
|
+
* Only present and mandatory when `type` is `record`.
|
|
8009
|
+
*/
|
|
8010
|
+
record?: LuaRecord;
|
|
8011
|
+
/**
|
|
8012
|
+
* Only present and mandatory when `type` is `remote` or `filter`. Name must be present (cannot be a quality only item filter).
|
|
8013
|
+
*/
|
|
8014
|
+
filter?: ItemFilter;
|
|
8015
|
+
/**
|
|
8016
|
+
* Only present and mandatory when `type` is `remote`. Entities must be spider-vehicles.
|
|
8017
|
+
*/
|
|
8018
|
+
selection?: LuaEntity[];
|
|
8019
|
+
/**
|
|
8020
|
+
* Only present and mandatory when `type` is `item`.
|
|
8021
|
+
*/
|
|
8022
|
+
item?: LuaItem;
|
|
8023
|
+
}
|
|
8024
|
+
interface RadarBlueprintControlBehavior {
|
|
8025
|
+
/**
|
|
8026
|
+
* Defaults to `defines.control_behavior.radar.mode.surface`.
|
|
8027
|
+
*/
|
|
8028
|
+
mode?: defines.control_behavior.radar.mode;
|
|
8029
|
+
universe_channel?: SignalID;
|
|
8030
|
+
}
|
|
7357
8031
|
interface RadiusVisualisationSpecification {
|
|
7358
8032
|
distance: double;
|
|
7359
8033
|
offset: Vector;
|
|
7360
8034
|
draw_in_cursor: boolean;
|
|
7361
8035
|
draw_on_selection: boolean;
|
|
8036
|
+
distance_quality_multiplier?: Record<string, double>;
|
|
7362
8037
|
}
|
|
7363
8038
|
interface RailEndGoal {
|
|
7364
8039
|
/**
|
|
@@ -7411,6 +8086,8 @@ interface RailLocation {
|
|
|
7411
8086
|
rail_layer: defines.rail_layer;
|
|
7412
8087
|
}
|
|
7413
8088
|
interface RailSignalBaseBlueprintControlBehavior {
|
|
8089
|
+
input_networks?: CircuitNetworkSelection;
|
|
8090
|
+
output_networks?: CircuitNetworkSelection;
|
|
7414
8091
|
circuit_close_signal: boolean;
|
|
7415
8092
|
circuit_read_signal: boolean;
|
|
7416
8093
|
red_output_signal?: SignalID;
|
|
@@ -7421,10 +8098,11 @@ interface RailSignalBaseBlueprintControlBehavior {
|
|
|
7421
8098
|
}
|
|
7422
8099
|
type RangeMode = 'center-to-center' | 'bounding-box-to-bounding-box' | 'center-to-bounding-box';
|
|
7423
8100
|
interface ReactorBlueprintControlBehavior {
|
|
8101
|
+
output_networks?: CircuitNetworkSelection;
|
|
7424
8102
|
/**
|
|
7425
8103
|
* Defaults to `false`.
|
|
7426
8104
|
*/
|
|
7427
|
-
|
|
8105
|
+
read_fuel?: boolean;
|
|
7428
8106
|
/**
|
|
7429
8107
|
* Defaults to `false`.
|
|
7430
8108
|
*/
|
|
@@ -7477,7 +8155,7 @@ interface BaseRecipePrototypeFilter {
|
|
|
7477
8155
|
/**
|
|
7478
8156
|
* The condition to filter on.
|
|
7479
8157
|
*/
|
|
7480
|
-
filter: 'enabled' | 'hidden' | 'hidden-from-flow-stats' | 'hidden-from-player-crafting' | 'allow-as-intermediate' | 'allow-intermediates' | 'allow-decomposition' | 'always-show-made-in' | '
|
|
8158
|
+
filter: 'enabled' | 'hidden' | 'hidden-from-flow-stats' | 'hidden-from-player-crafting' | 'allow-as-intermediate' | 'allow-intermediates' | 'allow-decomposition' | 'always-show-made-in' | 'has-ingredients' | 'has-products' | 'has-ingredient-item' | 'has-ingredient-fluid' | 'has-product-item' | 'has-product-fluid' | 'subgroup' | 'category' | 'energy' | 'emissions-multiplier' | 'request-paste-multiplier' | 'overload-multiplier';
|
|
7481
8159
|
/**
|
|
7482
8160
|
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
7483
8161
|
*/
|
|
@@ -7712,7 +8390,16 @@ LuaSchedule | /**
|
|
|
7712
8390
|
LuaTerritory | /**
|
|
7713
8391
|
* Target type {@link segmented_unit | runtime:defines.target_type.segmented_unit}; `useful_id` {@link LuaSegmentedUnit::unit_number | runtime:LuaSegmentedUnit::unit_number}
|
|
7714
8392
|
*/
|
|
7715
|
-
LuaSegmentedUnit
|
|
8393
|
+
LuaSegmentedUnit | /**
|
|
8394
|
+
* Target type {@link electric_network | runtime:defines.target_type.electric_network}
|
|
8395
|
+
*/
|
|
8396
|
+
LuaElectricNetwork | /**
|
|
8397
|
+
* Target type {@link electric_sub_network | runtime:defines.target_type.electric_sub_network}; `useful_id` {@link LuaElectricSubNetwork::id | runtime:LuaElectricSubNetwork::id}
|
|
8398
|
+
*/
|
|
8399
|
+
LuaElectricSubNetwork | /**
|
|
8400
|
+
* Target type {@link force | runtime:defines.target_type.force}; `useful_id` {@link LuaForce::index | runtime:LuaForce::index}
|
|
8401
|
+
*/
|
|
8402
|
+
LuaForce;
|
|
7716
8403
|
/**
|
|
7717
8404
|
* A number between 0 and 255 inclusive, represented by one of the following named strings or the string version of the number. For example `"10"` and `"decals"` are both valid. Higher values are rendered above lower values.
|
|
7718
8405
|
*/
|
|
@@ -7933,6 +8620,18 @@ string | /**
|
|
|
7933
8620
|
* 226
|
|
7934
8621
|
*/
|
|
7935
8622
|
'cursor';
|
|
8623
|
+
type RequestFromLocation = 'planet' | 'platforms' | 'all';
|
|
8624
|
+
interface ResearchCondition {
|
|
8625
|
+
condition?: CircuitCondition;
|
|
8626
|
+
/**
|
|
8627
|
+
* The technology to research when the condition passes.
|
|
8628
|
+
*/
|
|
8629
|
+
name?: string;
|
|
8630
|
+
/**
|
|
8631
|
+
* The technology level to research (only applicable for infinite technologies) defaults to 0.
|
|
8632
|
+
*/
|
|
8633
|
+
count?: uint32;
|
|
8634
|
+
}
|
|
7936
8635
|
interface ResearchIngredient {
|
|
7937
8636
|
/**
|
|
7938
8637
|
* Prototype name of the required item.
|
|
@@ -8020,6 +8719,7 @@ interface RidingState {
|
|
|
8020
8719
|
direction: defines.riding.direction;
|
|
8021
8720
|
}
|
|
8022
8721
|
interface RoboportBlueprintControlBehavior {
|
|
8722
|
+
output_networks?: CircuitNetworkSelection;
|
|
8023
8723
|
read_items_mode?: boolean;
|
|
8024
8724
|
read_robot_stats?: boolean;
|
|
8025
8725
|
available_logistic_output_signal?: SignalID;
|
|
@@ -8029,6 +8729,7 @@ interface RoboportBlueprintControlBehavior {
|
|
|
8029
8729
|
roboport_count_output_signal?: SignalID;
|
|
8030
8730
|
}
|
|
8031
8731
|
interface RocketSiloBlueprintControlBehavior {
|
|
8732
|
+
output_networks?: CircuitNetworkSelection;
|
|
8032
8733
|
/**
|
|
8033
8734
|
* Defaults to `logistic_inventory`.
|
|
8034
8735
|
*/
|
|
@@ -8040,6 +8741,22 @@ interface RollingStockDrawData {
|
|
|
8040
8741
|
slope: float;
|
|
8041
8742
|
height: float;
|
|
8042
8743
|
}
|
|
8744
|
+
interface RuntimeTooltipField {
|
|
8745
|
+
id?: uint32;
|
|
8746
|
+
name: LocalisedString;
|
|
8747
|
+
value: LocalisedString;
|
|
8748
|
+
order?: uint8;
|
|
8749
|
+
}
|
|
8750
|
+
interface SavedLogisticFilters {
|
|
8751
|
+
trash_not_requested: boolean;
|
|
8752
|
+
sections: SavedLogisticSection[];
|
|
8753
|
+
}
|
|
8754
|
+
interface SavedLogisticSection {
|
|
8755
|
+
group: string;
|
|
8756
|
+
filters: LogisticFilter[];
|
|
8757
|
+
multiplier: float;
|
|
8758
|
+
active: boolean;
|
|
8759
|
+
}
|
|
8043
8760
|
interface ScheduleInterrupt {
|
|
8044
8761
|
/**
|
|
8045
8762
|
* Defaults to an empty string.
|
|
@@ -8095,22 +8812,95 @@ interface ScriptPosition {
|
|
|
8095
8812
|
color: Color;
|
|
8096
8813
|
id: uint32;
|
|
8097
8814
|
}
|
|
8098
|
-
type ScriptRenderMode =
|
|
8815
|
+
type ScriptRenderMode = /**
|
|
8816
|
+
* Draw the object in the game world.
|
|
8817
|
+
*/
|
|
8818
|
+
'game' | /**
|
|
8819
|
+
* Draw the object on the map.
|
|
8820
|
+
*/
|
|
8821
|
+
'chart' | /**
|
|
8822
|
+
* Draw the object only when the player holds a buildable item trying to build an entity.
|
|
8823
|
+
*/
|
|
8824
|
+
'build-cursor';
|
|
8099
8825
|
/**
|
|
8100
8826
|
* When writing it is possible to give LuaEntity or MapPosition directly. However, reading always returns the full ScriptRenderTargetTable.
|
|
8827
|
+
*
|
|
8828
|
+
* The full ScriptRenderTargetTable allows specifying cursor targets and an offset for entity targets.
|
|
8829
|
+
*
|
|
8830
|
+
* If an entity target of an object (except its `orientation_target`) is destroyed or changes surface, then the object is also destroyed.
|
|
8831
|
+
* @example ```
|
|
8832
|
+
target = some_lua_entity
|
|
8833
|
+
```
|
|
8834
|
+
* @example ```
|
|
8835
|
+
target = {1, 4}
|
|
8836
|
+
```
|
|
8837
|
+
* @example ```
|
|
8838
|
+
target = {type = "entity", entity = another_lua_entity, offset = {-0.5, 1}}
|
|
8839
|
+
```
|
|
8840
|
+
* @example ```
|
|
8841
|
+
target = {type = "position", position = {2.5, 3}}
|
|
8842
|
+
```
|
|
8843
|
+
* @example ```
|
|
8844
|
+
target = {type = "cursor", offset = {6, 7}}
|
|
8845
|
+
```
|
|
8846
|
+
* @example ```
|
|
8847
|
+
target = {type = "build-cursor", offset = {3.2, -4.5}}
|
|
8848
|
+
```
|
|
8101
8849
|
*/
|
|
8102
8850
|
type ScriptRenderTarget = LuaEntity | MapPosition | ScriptRenderTargetTable;
|
|
8851
|
+
/**
|
|
8852
|
+
* If an entity target of an object (except its `orientation_target`) is destroyed or changes surface, then the object is also destroyed.
|
|
8853
|
+
*
|
|
8854
|
+
* Targets of type `"cursor"` draw at the position of the player's cursor.
|
|
8855
|
+
*
|
|
8856
|
+
* Targets of type `"build-cursor"` draw at the position of the player's build cursor, including snapping to the build position. The offset is rotated by the entity's direction and mirrored if the entity to be built is mirrored. Recommended to be combined with {@link ScriptRenderMode::build-cursor | runtime:ScriptRenderMode::build-cursor}.
|
|
8857
|
+
* @example ```
|
|
8858
|
+
{type = "entity", entity = some_lua_entity, offset = {-0.5, 1}}
|
|
8859
|
+
```
|
|
8860
|
+
* @example ```
|
|
8861
|
+
{entity = some_lua_entity, offset = {-0.5, 1}} -- same target as previous example
|
|
8862
|
+
```
|
|
8863
|
+
* @example ```
|
|
8864
|
+
{type = "position", position = {2.5, 3}}
|
|
8865
|
+
```
|
|
8866
|
+
* @example ```
|
|
8867
|
+
{position = {2.5, 3}} -- same target as previous example
|
|
8868
|
+
```
|
|
8869
|
+
* @example ```
|
|
8870
|
+
{type = "cursor", offset = {6, 7}}
|
|
8871
|
+
```
|
|
8872
|
+
* @example ```
|
|
8873
|
+
{type = "build-cursor", offset = {3.2, -4.5}}
|
|
8874
|
+
```
|
|
8875
|
+
*/
|
|
8103
8876
|
interface ScriptRenderTargetTable {
|
|
8877
|
+
/**
|
|
8878
|
+
* Defaults to `"entity"` if `entity` is given. Defaults to `"position"` if `position` is given.
|
|
8879
|
+
*/
|
|
8880
|
+
type?: 'entity' | 'position' | 'cursor' | 'build-cursor';
|
|
8881
|
+
/**
|
|
8882
|
+
* Only used, and mandatory if `type` is `entity`.
|
|
8883
|
+
*/
|
|
8104
8884
|
entity?: LuaEntity;
|
|
8105
8885
|
/**
|
|
8106
|
-
* Only used if `entity`
|
|
8886
|
+
* Only used if `type` is `entity`, `cursor` or `build-cursor`. Defaults to `{0, 0}`.
|
|
8107
8887
|
*/
|
|
8108
8888
|
offset?: Vector;
|
|
8109
8889
|
/**
|
|
8110
|
-
* Only used, and mandatory if `
|
|
8890
|
+
* Only used, and mandatory if `type` is `position`.
|
|
8111
8891
|
*/
|
|
8112
8892
|
position?: MapPosition;
|
|
8113
8893
|
}
|
|
8894
|
+
type ScriptSpriteLightMode = /**
|
|
8895
|
+
* Draw as a regular sprite which occludes light under it if this option is enabled in graphics settings.
|
|
8896
|
+
*/
|
|
8897
|
+
'occluder' | /**
|
|
8898
|
+
* Draw as light.
|
|
8899
|
+
*/
|
|
8900
|
+
'light' | /**
|
|
8901
|
+
* Draw as both occluder and light at once to make the sprite visible during the day and glow at night.
|
|
8902
|
+
*/
|
|
8903
|
+
'glow';
|
|
8114
8904
|
/**
|
|
8115
8905
|
* Scroll policy of a {@link scroll pane | runtime:LuaGuiElement}.
|
|
8116
8906
|
*/
|
|
@@ -8278,13 +9068,13 @@ interface SelectedPrototypeData {
|
|
|
8278
9068
|
* A set of flags on a selection tool that define how entities and tiles are selected. Active flags are in the dictionary as `true`, while inactive flags aren't present at all.
|
|
8279
9069
|
*/
|
|
8280
9070
|
type SelectionModeFlags = Record</**
|
|
8281
|
-
*
|
|
9071
|
+
* Excludes entities and tiles that can't be selected for blueprinting.
|
|
8282
9072
|
*/
|
|
8283
9073
|
'blueprint' | /**
|
|
8284
|
-
*
|
|
9074
|
+
* Excludes entities and tiles that can't be selected for deconstruction.
|
|
8285
9075
|
*/
|
|
8286
9076
|
'deconstruct' | /**
|
|
8287
|
-
*
|
|
9077
|
+
* Excludes entities that can't be selected for deconstruction cancellation.
|
|
8288
9078
|
*/
|
|
8289
9079
|
'cancel-deconstruct' | /**
|
|
8290
9080
|
* Selects items on the ground.
|
|
@@ -8320,13 +9110,13 @@ type SelectionModeFlags = Record</**
|
|
|
8320
9110
|
* Selects entities from an {@link enemy | runtime:LuaForce::is_enemy} force.
|
|
8321
9111
|
*/
|
|
8322
9112
|
'enemy' | /**
|
|
8323
|
-
*
|
|
9113
|
+
* Excludes entities that can't be selected for upgrading.
|
|
8324
9114
|
*/
|
|
8325
9115
|
'upgrade' | /**
|
|
8326
|
-
*
|
|
9116
|
+
* Excludes entities that can't be selected for upgrade cancellation.
|
|
8327
9117
|
*/
|
|
8328
9118
|
'cancel-upgrade' | /**
|
|
8329
|
-
*
|
|
9119
|
+
* Excludes entities that can't be selected for downgrading.
|
|
8330
9120
|
*/
|
|
8331
9121
|
'downgrade' | /**
|
|
8332
9122
|
* Selects entities that are {@link entities with health | runtime:LuaEntity::is_entity_with_health}.
|
|
@@ -8347,14 +9137,14 @@ type SelectionModeFlags = Record</**
|
|
|
8347
9137
|
* Selects entities that are `tile-ghost`s.
|
|
8348
9138
|
*/
|
|
8349
9139
|
'tile-ghost', true>;
|
|
8350
|
-
type SelectorCombinatorParameterOperation = 'select' | 'count' | 'random' | 'quality-transfer' | 'rocket-capacity' | 'stack-size' | 'quality-filter';
|
|
9140
|
+
type SelectorCombinatorParameterOperation = 'select' | 'count' | 'random' | 'quality-transfer' | 'rocket-capacity' | 'stack-size' | 'quality-filter' | 'time';
|
|
8351
9141
|
interface BaseSelectorCombinatorParameters {
|
|
8352
9142
|
/**
|
|
8353
9143
|
* Defaults to `"select"`.
|
|
8354
9144
|
*/
|
|
8355
9145
|
operation?: SelectorCombinatorParameterOperation;
|
|
8356
9146
|
}
|
|
8357
|
-
type SelectorCombinatorParameters = BaseSelectorCombinatorParameters | SelectorCombinatorParametersCount | SelectorCombinatorParametersQualityFilter | SelectorCombinatorParametersQualityTransfer | SelectorCombinatorParametersRandom | SelectorCombinatorParametersSelect;
|
|
9147
|
+
type SelectorCombinatorParameters = BaseSelectorCombinatorParameters | SelectorCombinatorParametersCount | SelectorCombinatorParametersQualityFilter | SelectorCombinatorParametersQualityTransfer | SelectorCombinatorParametersRandom | SelectorCombinatorParametersSelect | SelectorCombinatorParametersTime;
|
|
8358
9148
|
/**
|
|
8359
9149
|
*
|
|
8360
9150
|
* Applies to variant case `count`
|
|
@@ -8436,6 +9226,38 @@ interface SelectorCombinatorParametersSelect extends BaseSelectorCombinatorParam
|
|
|
8436
9226
|
*/
|
|
8437
9227
|
'select_max'?: boolean;
|
|
8438
9228
|
}
|
|
9229
|
+
/**
|
|
9230
|
+
*
|
|
9231
|
+
* Applies to variant case `time`
|
|
9232
|
+
*/
|
|
9233
|
+
interface SelectorCombinatorParametersTime extends BaseSelectorCombinatorParameters {
|
|
9234
|
+
/**
|
|
9235
|
+
* Defaults to `"select"`.
|
|
9236
|
+
*/
|
|
9237
|
+
'operation'?: 'time';
|
|
9238
|
+
/**
|
|
9239
|
+
* ;
|
|
9240
|
+
*/
|
|
9241
|
+
'day_length_signal'?: SignalID;
|
|
9242
|
+
/**
|
|
9243
|
+
* ;
|
|
9244
|
+
*/
|
|
9245
|
+
'day_tick_signal'?: SignalID;
|
|
9246
|
+
/**
|
|
9247
|
+
* ;
|
|
9248
|
+
*/
|
|
9249
|
+
'game_tick_signal'?: SignalID;
|
|
9250
|
+
}
|
|
9251
|
+
interface SharedProbabilityDefinition {
|
|
9252
|
+
/**
|
|
9253
|
+
* Lower end of the range of shared roll values that will allow product to be given. Must be >= `0` and <= `max`.
|
|
9254
|
+
*/
|
|
9255
|
+
min: double;
|
|
9256
|
+
/**
|
|
9257
|
+
* Upper end of the range of shared roll values that will allow product to be given. Must be >= `min` and <= `1`.
|
|
9258
|
+
*/
|
|
9259
|
+
max: double;
|
|
9260
|
+
}
|
|
8439
9261
|
/**
|
|
8440
9262
|
* An actual signal transmitted by the network.
|
|
8441
9263
|
*/
|
|
@@ -8456,7 +9278,7 @@ interface Signal {
|
|
|
8456
9278
|
*/
|
|
8457
9279
|
type SignalFilter = {
|
|
8458
9280
|
/**
|
|
8459
|
-
* The type of the signal filter.
|
|
9281
|
+
* The type of the signal filter. If not provided, and `name` is the name of a {@link SignalIDType | runtime:SignalIDType}-type prototype, its type is used. Defaults to `"item"` otherwise.
|
|
8460
9282
|
*/
|
|
8461
9283
|
type?: SignalIDType;
|
|
8462
9284
|
/**
|
|
@@ -8497,7 +9319,42 @@ interface SignalIDBase {
|
|
|
8497
9319
|
name?: string;
|
|
8498
9320
|
}
|
|
8499
9321
|
type SignalIDType = 'item' | 'fluid' | 'virtual' | 'entity' | 'recipe' | 'space-location' | 'asteroid-chunk' | 'quality';
|
|
9322
|
+
interface SimpleBoundingBox {
|
|
9323
|
+
left_top: MapPosition;
|
|
9324
|
+
right_bottom: MapPosition;
|
|
9325
|
+
}
|
|
9326
|
+
interface SimulationDefinition {
|
|
9327
|
+
planet: SpaceLocationID;
|
|
9328
|
+
game_view_settings: GameViewSettings;
|
|
9329
|
+
save: string;
|
|
9330
|
+
init: string;
|
|
9331
|
+
update: string;
|
|
9332
|
+
mods: string[];
|
|
9333
|
+
init_update_count: uint32;
|
|
9334
|
+
length: uint32;
|
|
9335
|
+
generate_map: boolean;
|
|
9336
|
+
checkboard: boolean;
|
|
9337
|
+
hide_health_bars: boolean;
|
|
9338
|
+
mute_technology_finished_sound: boolean;
|
|
9339
|
+
mute_alert_sounds: boolean;
|
|
9340
|
+
volume_modifier?: float;
|
|
9341
|
+
override_volume?: boolean;
|
|
9342
|
+
mute_wind_sounds?: boolean;
|
|
9343
|
+
hide_factoriopedia_gradient?: boolean;
|
|
9344
|
+
}
|
|
8500
9345
|
type SimulationWidgetType = 'signal-id' | 'signal-id-base' | 'signal-or-number' | 'simple-slot' | 'simple-item-slot' | 'recipe-slot' | 'quickbar-slot' | 'logistics-button' | 'logistics-button-space' | 'text-button-localised-substring' | 'text-button' | 'text-button-substring' | 'inventory-limit-slot-button' | 'train-schedule-action-button' | 'choose-button' | 'textfield' | 'item-group-tab' | 'drop-down' | 'check-box' | 'switch' | 'label';
|
|
9346
|
+
interface SingleFluidBoxBlueprintControlBehavior {
|
|
9347
|
+
output_networks?: CircuitNetworkSelection;
|
|
9348
|
+
/**
|
|
9349
|
+
* Defaults to `send_contents`.
|
|
9350
|
+
*/
|
|
9351
|
+
circuit_mode_of_operation?: defines.control_behavior.single_fluid_box.exclusive_mode;
|
|
9352
|
+
/**
|
|
9353
|
+
* Defaults to `false`.
|
|
9354
|
+
*/
|
|
9355
|
+
read_temperature?: boolean;
|
|
9356
|
+
temperature_signal: SignalID;
|
|
9357
|
+
}
|
|
8501
9358
|
interface SlotFilter {
|
|
8502
9359
|
/**
|
|
8503
9360
|
* Position of the corresponding filter slot.
|
|
@@ -8537,7 +9394,7 @@ interface SmokeSource {
|
|
|
8537
9394
|
* The utility and ambient types each contain general use sound prototypes defined by the game itself.
|
|
8538
9395
|
*
|
|
8539
9396
|
* - `"utility"` - Uses {@link UtilitySounds | prototype:UtilitySounds}. Example: `"utility/wire_connect_pole"`
|
|
8540
|
-
* - `"ambient"` - Uses {@link AmbientSound | prototype:AmbientSound}. Example: `"ambient/resource-deficiency"`
|
|
9397
|
+
* - `"ambient"` - Uses {@link AmbientSound::sound | prototype:AmbientSound::sound}. Variable sounds cannot be used. Example: `"ambient/resource-deficiency"`
|
|
8541
9398
|
* The following types can be combined with any tile name as long as its prototype defines the corresponding sound.
|
|
8542
9399
|
*
|
|
8543
9400
|
* - `"tile-walking"` - Uses {@link TilePrototype::walking_sound | prototype:TilePrototype::walking_sound}. Example: `"tile-walking/concrete"`
|
|
@@ -8592,6 +9449,9 @@ LuaSpaceConnectionPrototype | /**
|
|
|
8592
9449
|
* The prototype name.
|
|
8593
9450
|
*/
|
|
8594
9451
|
string;
|
|
9452
|
+
interface SpaceDustEffectProperties {
|
|
9453
|
+
animation_speed: float;
|
|
9454
|
+
}
|
|
8595
9455
|
interface SpaceLocationAsteroidSpawnDefinition {
|
|
8596
9456
|
/**
|
|
8597
9457
|
* `asteroid-chunk` or `entity`
|
|
@@ -8660,10 +9520,16 @@ interface SpaceLocationPrototypeFilterType extends BaseSpaceLocationPrototypeFil
|
|
|
8660
9520
|
'type': string | string[];
|
|
8661
9521
|
}
|
|
8662
9522
|
interface SpacePlatformHubBlueprintControlBehavior {
|
|
9523
|
+
input_networks?: CircuitNetworkSelection;
|
|
9524
|
+
output_networks?: CircuitNetworkSelection;
|
|
8663
9525
|
/**
|
|
8664
9526
|
* Defaults to `true`.
|
|
8665
9527
|
*/
|
|
8666
9528
|
read_contents?: boolean;
|
|
9529
|
+
/**
|
|
9530
|
+
* Defaults to `false`.
|
|
9531
|
+
*/
|
|
9532
|
+
set_requests?: boolean;
|
|
8667
9533
|
/**
|
|
8668
9534
|
* Defaults to `true`.
|
|
8669
9535
|
*/
|
|
@@ -8701,6 +9567,11 @@ interface SpawnPointDefinition {
|
|
|
8701
9567
|
*/
|
|
8702
9568
|
weight: double;
|
|
8703
9569
|
}
|
|
9570
|
+
interface SpentFluidSpecification {
|
|
9571
|
+
name: string;
|
|
9572
|
+
amount: double;
|
|
9573
|
+
temperature: float;
|
|
9574
|
+
}
|
|
8704
9575
|
interface SpiderEngineSpecification {
|
|
8705
9576
|
legs: SpiderLegSpecification[];
|
|
8706
9577
|
walking_group_overlap: float;
|
|
@@ -8717,6 +9588,7 @@ interface SpiderLegSpecification {
|
|
|
8717
9588
|
walking_group: uint8;
|
|
8718
9589
|
}
|
|
8719
9590
|
interface SplitterBlueprintControlBehavior {
|
|
9591
|
+
input_networks?: CircuitNetworkSelection;
|
|
8720
9592
|
/**
|
|
8721
9593
|
* Defaults to `false`.
|
|
8722
9594
|
*/
|
|
@@ -8735,7 +9607,7 @@ interface SplitterBlueprintControlBehavior {
|
|
|
8735
9607
|
set_filter?: boolean;
|
|
8736
9608
|
}
|
|
8737
9609
|
type SplitterPriority = 'left' | 'none' | 'right';
|
|
8738
|
-
type SpoilPriority = '
|
|
9610
|
+
type SpoilPriority = 'fresh-first' | 'none' | 'spoiled-first';
|
|
8739
9611
|
interface SpoilToTriggerResult {
|
|
8740
9612
|
/**
|
|
8741
9613
|
* The trigger items that are run.
|
|
@@ -8775,27 +9647,21 @@ interface SpoilToTriggerResult {
|
|
|
8775
9647
|
* - `"utility"` - sprite defined in the utility-sprites object, these are the pictures used by the game internally for the UI.
|
|
8776
9648
|
*/
|
|
8777
9649
|
type SpritePath = string;
|
|
8778
|
-
interface
|
|
9650
|
+
interface StateSteeringSettings {
|
|
8779
9651
|
/**
|
|
8780
|
-
*
|
|
9652
|
+
* Not including the radius of the unit.
|
|
8781
9653
|
*/
|
|
8782
9654
|
radius: double;
|
|
8783
9655
|
separation_factor: double;
|
|
8784
9656
|
separation_force: double;
|
|
8785
|
-
/**
|
|
8786
|
-
* Used to make steering look better for aesthetic purposes.
|
|
8787
|
-
*/
|
|
8788
|
-
force_unit_fuzzy_goto_behavior: boolean;
|
|
8789
|
-
}
|
|
8790
|
-
interface SteeringMapSettings {
|
|
8791
|
-
default: SteeringMapSetting;
|
|
8792
|
-
moving: SteeringMapSetting;
|
|
8793
9657
|
}
|
|
8794
|
-
interface
|
|
9658
|
+
interface SteeringSettings {
|
|
9659
|
+
stay: StateSteeringSettings;
|
|
9660
|
+
move: StateSteeringSettings;
|
|
8795
9661
|
/**
|
|
8796
|
-
*
|
|
9662
|
+
* Used only for special "to look good" purposes (like in trailer).
|
|
8797
9663
|
*/
|
|
8798
|
-
|
|
9664
|
+
force_unit_fuzzy_goto_behavior: boolean;
|
|
8799
9665
|
}
|
|
8800
9666
|
interface SurfaceCondition {
|
|
8801
9667
|
property: string;
|
|
@@ -8825,6 +9691,14 @@ LuaSurfacePropertyPrototype | /**
|
|
|
8825
9691
|
* The prototype name.
|
|
8826
9692
|
*/
|
|
8827
9693
|
string;
|
|
9694
|
+
interface SurfaceRenderParameters {
|
|
9695
|
+
clouds: CloudsEffectProperties;
|
|
9696
|
+
fog: FogEffectProperties;
|
|
9697
|
+
terrain_tint_effect: GlobalTintEffectProperties;
|
|
9698
|
+
space_dust_background: SpaceDustEffectProperties;
|
|
9699
|
+
space_dust_foreground: SpaceDustEffectProperties;
|
|
9700
|
+
platform_backdrop: PlatformBackdrop;
|
|
9701
|
+
}
|
|
8828
9702
|
/**
|
|
8829
9703
|
* State of a GUI {@link switch | runtime:LuaGuiElement::switch_state}.
|
|
8830
9704
|
*/
|
|
@@ -8882,7 +9756,7 @@ interface BaseTechnologyModifier {
|
|
|
8882
9756
|
/**
|
|
8883
9757
|
* The effect that is applied when a technology is researched.
|
|
8884
9758
|
*/
|
|
8885
|
-
type TechnologyModifier = BaseTechnologyModifier | TechnologyModifierAmmoDamage | TechnologyModifierArtilleryRange | TechnologyModifierBeaconDistribution | TechnologyModifierBeltStackSizeBonus | TechnologyModifierBulkInserterCapacityBonus | TechnologyModifierCargoLandingPadCount | TechnologyModifierChangeRecipeProductivity | TechnologyModifierCharacterBuildDistance | TechnologyModifierCharacterCraftingSpeed | TechnologyModifierCharacterHealthBonus | TechnologyModifierCharacterInventorySlotsBonus | TechnologyModifierCharacterItemDropDistance | TechnologyModifierCharacterItemPickupDistance | TechnologyModifierCharacterLogisticRequests | TechnologyModifierCharacterLogisticTrashSlots | TechnologyModifierCharacterLootPickupDistance | TechnologyModifierCharacterMiningSpeed | TechnologyModifierCharacterReachDistance | TechnologyModifierCharacterResourceReachDistance | TechnologyModifierCharacterRunningSpeed | TechnologyModifierCliffDeconstructionEnabled | TechnologyModifierCreateGhostOnEntityDeath | TechnologyModifierDeconstructionTimeToLive | TechnologyModifierFollowerRobotLifetime | TechnologyModifierGiveItem | TechnologyModifierGunSpeed | TechnologyModifierInserterStackSizeBonus | TechnologyModifierLaboratoryProductivity | TechnologyModifierLaboratorySpeed | TechnologyModifierMaxFailedAttemptsPerTickPerConstructionQueue | TechnologyModifierMaxSuccessfulAttemptsPerTickPerConstructionQueue | TechnologyModifierMaximumFollowingRobotsCount | TechnologyModifierMiningDrillProductivityBonus | TechnologyModifierMiningWithFluid | TechnologyModifierNothing | TechnologyModifierRailPlannerAllowElevatedRails | TechnologyModifierRailSupportOnDeepOilOcean | TechnologyModifierTrainBrakingForceBonus | TechnologyModifierTurretAttack | TechnologyModifierUnlockCircuitNetwork | TechnologyModifierUnlockQuality | TechnologyModifierUnlockRecipe | TechnologyModifierUnlockSpaceLocation | TechnologyModifierUnlockSpacePlatforms | TechnologyModifierVehicleLogistics | TechnologyModifierWorkerRobotBattery | TechnologyModifierWorkerRobotSpeed | TechnologyModifierWorkerRobotStorage;
|
|
9759
|
+
type TechnologyModifier = BaseTechnologyModifier | TechnologyModifierAmmoDamage | TechnologyModifierArtilleryRange | TechnologyModifierBeaconDistribution | TechnologyModifierBeltStackSizeBonus | TechnologyModifierBulkInserterCapacityBonus | TechnologyModifierCargoLandingPadCount | TechnologyModifierChangeRecipeProductivity | TechnologyModifierCharacterBuildDistance | TechnologyModifierCharacterCraftingSpeed | TechnologyModifierCharacterHealthBonus | TechnologyModifierCharacterInventorySlotsBonus | TechnologyModifierCharacterItemDropDistance | TechnologyModifierCharacterItemPickupDistance | TechnologyModifierCharacterLogisticRequests | TechnologyModifierCharacterLogisticTrashSlots | TechnologyModifierCharacterLootPickupDistance | TechnologyModifierCharacterMiningSpeed | TechnologyModifierCharacterReachDistance | TechnologyModifierCharacterResourceReachDistance | TechnologyModifierCharacterRunningSpeed | TechnologyModifierCliffDeconstructionEnabled | TechnologyModifierCreateGhostOnEntityDeath | TechnologyModifierDeconstructionTimeToLive | TechnologyModifierFollowerRobotLifetime | TechnologyModifierGiveItem | TechnologyModifierGunSpeed | TechnologyModifierInserterStackSizeBonus | TechnologyModifierLaboratoryProductivity | TechnologyModifierLaboratorySpeed | TechnologyModifierMaxCargoBayUnloadingDistance | TechnologyModifierMaxFailedAttemptsPerTickPerConstructionQueue | TechnologyModifierMaxSuccessfulAttemptsPerTickPerConstructionQueue | TechnologyModifierMaximumFollowingRobotsCount | TechnologyModifierMiningDrillProductivityBonus | TechnologyModifierMiningWithFluid | TechnologyModifierNothing | TechnologyModifierRailPlannerAllowElevatedRails | TechnologyModifierRailSupportOnDeepOilOcean | TechnologyModifierTrainBrakingForceBonus | TechnologyModifierTurretAttack | TechnologyModifierUnlockCircuitNetwork | TechnologyModifierUnlockLogisticNetwork | TechnologyModifierUnlockQuality | TechnologyModifierUnlockRecipe | TechnologyModifierUnlockSpaceLocation | TechnologyModifierUnlockSpacePlatforms | TechnologyModifierUnlockTravelToSpacePlatforms | TechnologyModifierVehicleLogistics | TechnologyModifierWorkerRobotBattery | TechnologyModifierWorkerRobotSpeed | TechnologyModifierWorkerRobotStorage;
|
|
8886
9760
|
/**
|
|
8887
9761
|
*
|
|
8888
9762
|
* Applies to variant case `ammo-damage`
|
|
@@ -9309,6 +10183,20 @@ interface TechnologyModifierLaboratorySpeed extends BaseTechnologyModifier {
|
|
|
9309
10183
|
*/
|
|
9310
10184
|
'modifier': double;
|
|
9311
10185
|
}
|
|
10186
|
+
/**
|
|
10187
|
+
*
|
|
10188
|
+
* Applies to variant case `max-cargo-bay-unloading-distance`
|
|
10189
|
+
*/
|
|
10190
|
+
interface TechnologyModifierMaxCargoBayUnloadingDistance extends BaseTechnologyModifier {
|
|
10191
|
+
/**
|
|
10192
|
+
* Modifier type. Specifies which of the other fields will be available.
|
|
10193
|
+
*/
|
|
10194
|
+
'type': 'max-cargo-bay-unloading-distance';
|
|
10195
|
+
/**
|
|
10196
|
+
* The amount to increase the current max cargo bay unloading distance by upon researching.
|
|
10197
|
+
*/
|
|
10198
|
+
'modifier': double;
|
|
10199
|
+
}
|
|
9312
10200
|
/**
|
|
9313
10201
|
*
|
|
9314
10202
|
* Applies to variant case `max-failed-attempts-per-tick-per-construction-queue`
|
|
@@ -9467,6 +10355,20 @@ interface TechnologyModifierUnlockCircuitNetwork extends BaseTechnologyModifier
|
|
|
9467
10355
|
*/
|
|
9468
10356
|
'modifier': boolean;
|
|
9469
10357
|
}
|
|
10358
|
+
/**
|
|
10359
|
+
*
|
|
10360
|
+
* Applies to variant case `unlock-logistic-network`
|
|
10361
|
+
*/
|
|
10362
|
+
interface TechnologyModifierUnlockLogisticNetwork extends BaseTechnologyModifier {
|
|
10363
|
+
/**
|
|
10364
|
+
* Modifier type. Specifies which of the other fields will be available.
|
|
10365
|
+
*/
|
|
10366
|
+
'type': 'unlock-logistic-network';
|
|
10367
|
+
/**
|
|
10368
|
+
* The state this modifier will be in upon researching.
|
|
10369
|
+
*/
|
|
10370
|
+
'modifier': boolean;
|
|
10371
|
+
}
|
|
9470
10372
|
/**
|
|
9471
10373
|
*
|
|
9472
10374
|
* Applies to variant case `unlock-quality`
|
|
@@ -9523,6 +10425,20 @@ interface TechnologyModifierUnlockSpacePlatforms extends BaseTechnologyModifier
|
|
|
9523
10425
|
*/
|
|
9524
10426
|
'modifier': boolean;
|
|
9525
10427
|
}
|
|
10428
|
+
/**
|
|
10429
|
+
*
|
|
10430
|
+
* Applies to variant case `unlock-travel-to-space-platforms`
|
|
10431
|
+
*/
|
|
10432
|
+
interface TechnologyModifierUnlockTravelToSpacePlatforms extends BaseTechnologyModifier {
|
|
10433
|
+
/**
|
|
10434
|
+
* Modifier type. Specifies which of the other fields will be available.
|
|
10435
|
+
*/
|
|
10436
|
+
'type': 'unlock-travel-to-space-platforms';
|
|
10437
|
+
/**
|
|
10438
|
+
* The state this modifier will be in upon researching.
|
|
10439
|
+
*/
|
|
10440
|
+
'modifier': boolean;
|
|
10441
|
+
}
|
|
9526
10442
|
/**
|
|
9527
10443
|
*
|
|
9528
10444
|
* Applies to variant case `vehicle-logistics`
|
|
@@ -9673,6 +10589,7 @@ interface TerritorySettings {
|
|
|
9673
10589
|
territory_variation_expression: string;
|
|
9674
10590
|
minimum_territory_size: uint32;
|
|
9675
10591
|
}
|
|
10592
|
+
type TerritoryVisibilityCondition = 'never' | 'has-unit' | 'always';
|
|
9676
10593
|
/**
|
|
9677
10594
|
* The text is aligned so that the target position is at the given side of the text.
|
|
9678
10595
|
*
|
|
@@ -9715,6 +10632,12 @@ interface TileBuildabilityRule {
|
|
|
9715
10632
|
*/
|
|
9716
10633
|
remove_on_collision: boolean;
|
|
9717
10634
|
}
|
|
10635
|
+
interface TileCollisionMask {
|
|
10636
|
+
/**
|
|
10637
|
+
* Every key in the dictionary is the name of one {@link layer | runtime:LuaCollisionLayerPrototype} the object collides with. The value is meaningless and always `true`. An empty table means that no layers are set.
|
|
10638
|
+
*/
|
|
10639
|
+
layers: Record<string, true>;
|
|
10640
|
+
}
|
|
9718
10641
|
/**
|
|
9719
10642
|
* A tile may be specified in one of three ways.
|
|
9720
10643
|
*/
|
|
@@ -9930,6 +10853,20 @@ interface TrainPathAllGoalsResult {
|
|
|
9930
10853
|
*/
|
|
9931
10854
|
steps_count: uint32;
|
|
9932
10855
|
}
|
|
10856
|
+
interface TrainPathFinderConstants {
|
|
10857
|
+
train_stop_penalty: uint32;
|
|
10858
|
+
stopped_manually_controlled_train_penalty: uint32;
|
|
10859
|
+
stopped_manually_controlled_train_without_passenger_penalty: uint32;
|
|
10860
|
+
signal_reserved_by_circuit_network_penalty: uint32;
|
|
10861
|
+
train_in_station_penalty: uint32;
|
|
10862
|
+
train_in_station_with_no_other_valid_stops_in_schedule: uint32;
|
|
10863
|
+
train_arriving_to_station_penalty: uint32;
|
|
10864
|
+
train_arriving_to_signal_penalty: uint32;
|
|
10865
|
+
train_waiting_at_signal_penalty: uint32;
|
|
10866
|
+
train_waiting_at_signal_tick_multiplier_penalty: float;
|
|
10867
|
+
train_with_no_path_penalty: uint32;
|
|
10868
|
+
train_auto_without_schedule_penalty: uint32;
|
|
10869
|
+
}
|
|
9933
10870
|
type TrainPathFinderGoal = TrainStopGoal | RailEndGoal | LuaRailEnd | /**
|
|
9934
10871
|
* Only if it points at train-stop that is connected to a rail.
|
|
9935
10872
|
*/
|
|
@@ -9992,6 +10929,8 @@ interface TrainSchedule {
|
|
|
9992
10929
|
records: ScheduleRecord[];
|
|
9993
10930
|
}
|
|
9994
10931
|
interface TrainStopBlueprintControlBehavior {
|
|
10932
|
+
input_networks?: CircuitNetworkSelection;
|
|
10933
|
+
output_networks?: CircuitNetworkSelection;
|
|
9995
10934
|
/**
|
|
9996
10935
|
* Defaults to `true`.
|
|
9997
10936
|
*/
|
|
@@ -10075,7 +11014,21 @@ interface TrainStopGoal {
|
|
|
10075
11014
|
*/
|
|
10076
11015
|
priority?: uint8;
|
|
10077
11016
|
}
|
|
11017
|
+
interface TrainVisualizationConstants {
|
|
11018
|
+
not_last_box_color: Color;
|
|
11019
|
+
last_box_color: Color;
|
|
11020
|
+
reverse_box_color: Color;
|
|
11021
|
+
last_reverse_box_color: Color;
|
|
11022
|
+
box_width: float;
|
|
11023
|
+
box_length: float;
|
|
11024
|
+
joint_distance: float;
|
|
11025
|
+
connection_distance: float;
|
|
11026
|
+
final_margin: float;
|
|
11027
|
+
stock_number_scale: float;
|
|
11028
|
+
}
|
|
10078
11029
|
interface TransportBeltBlueprintControlBehavior {
|
|
11030
|
+
input_networks?: CircuitNetworkSelection;
|
|
11031
|
+
output_networks?: CircuitNetworkSelection;
|
|
10079
11032
|
circuit_read_hand_contents: boolean;
|
|
10080
11033
|
circuit_contents_read_mode: defines.control_behavior.transport_belt.content_read_mode;
|
|
10081
11034
|
/**
|
|
@@ -10089,12 +11042,79 @@ interface TransportBeltBlueprintControlBehavior {
|
|
|
10089
11042
|
connect_to_logistic_network?: boolean;
|
|
10090
11043
|
logistic_condition?: CircuitCondition;
|
|
10091
11044
|
}
|
|
10092
|
-
interface
|
|
11045
|
+
interface BaseTriggerDelivery {
|
|
10093
11046
|
type: 'instant' | 'projectile' | 'beam' | 'stream' | 'artillery' | 'chain' | 'delayed';
|
|
10094
11047
|
source_effects: TriggerEffectItem[];
|
|
10095
11048
|
target_effects: TriggerEffectItem[];
|
|
10096
11049
|
}
|
|
10097
|
-
|
|
11050
|
+
type TriggerDelivery = BaseTriggerDelivery | TriggerDeliveryArtillery | TriggerDeliveryBeam | TriggerDeliveryChain | TriggerDeliveryDelayed | TriggerDeliveryProjectile | TriggerDeliveryStream;
|
|
11051
|
+
/**
|
|
11052
|
+
*
|
|
11053
|
+
* Applies to variant case `artillery`
|
|
11054
|
+
*/
|
|
11055
|
+
interface TriggerDeliveryArtillery extends BaseTriggerDelivery {
|
|
11056
|
+
'type': 'artillery';
|
|
11057
|
+
'direction_deviation': float;
|
|
11058
|
+
'projectile': string;
|
|
11059
|
+
'range_deviation': float;
|
|
11060
|
+
'starting_speed': float;
|
|
11061
|
+
'starting_speed_deviation': float;
|
|
11062
|
+
'trigger_fired_artillery': boolean;
|
|
11063
|
+
}
|
|
11064
|
+
/**
|
|
11065
|
+
*
|
|
11066
|
+
* Applies to variant case `beam`
|
|
11067
|
+
*/
|
|
11068
|
+
interface TriggerDeliveryBeam extends BaseTriggerDelivery {
|
|
11069
|
+
'type': 'beam';
|
|
11070
|
+
'add_to_shooter': boolean;
|
|
11071
|
+
'beam': string;
|
|
11072
|
+
'destroy_with_source_or_target': boolean;
|
|
11073
|
+
'duration': uint32;
|
|
11074
|
+
'max_length': uint32;
|
|
11075
|
+
'source_offset': Vector;
|
|
11076
|
+
}
|
|
11077
|
+
/**
|
|
11078
|
+
*
|
|
11079
|
+
* Applies to variant case `chain`
|
|
11080
|
+
*/
|
|
11081
|
+
interface TriggerDeliveryChain extends BaseTriggerDelivery {
|
|
11082
|
+
'type': 'chain';
|
|
11083
|
+
'chain': string;
|
|
11084
|
+
}
|
|
11085
|
+
/**
|
|
11086
|
+
*
|
|
11087
|
+
* Applies to variant case `delayed`
|
|
11088
|
+
*/
|
|
11089
|
+
interface TriggerDeliveryDelayed extends BaseTriggerDelivery {
|
|
11090
|
+
'type': 'delayed';
|
|
11091
|
+
'delayed_trigger': string;
|
|
11092
|
+
}
|
|
11093
|
+
/**
|
|
11094
|
+
*
|
|
11095
|
+
* Applies to variant case `projectile`
|
|
11096
|
+
*/
|
|
11097
|
+
interface TriggerDeliveryProjectile extends BaseTriggerDelivery {
|
|
11098
|
+
'type': 'projectile';
|
|
11099
|
+
'direction_deviation': float;
|
|
11100
|
+
'inherit_speed': boolean;
|
|
11101
|
+
'max_range': double;
|
|
11102
|
+
'min_range': double;
|
|
11103
|
+
'projectile': string;
|
|
11104
|
+
'range_deviation': float;
|
|
11105
|
+
'starting_speed': float;
|
|
11106
|
+
'starting_speed_deviation': float;
|
|
11107
|
+
}
|
|
11108
|
+
/**
|
|
11109
|
+
*
|
|
11110
|
+
* Applies to variant case `stream`
|
|
11111
|
+
*/
|
|
11112
|
+
interface TriggerDeliveryStream extends BaseTriggerDelivery {
|
|
11113
|
+
'type': 'stream';
|
|
11114
|
+
'source_offset': Vector;
|
|
11115
|
+
'stream': string;
|
|
11116
|
+
}
|
|
11117
|
+
interface BaseTriggerEffectItem {
|
|
10098
11118
|
type: TriggerEffectItemType;
|
|
10099
11119
|
repeat_count: uint16;
|
|
10100
11120
|
repeat_count_deviation: uint16;
|
|
@@ -10103,10 +11123,342 @@ interface TriggerEffectItem {
|
|
|
10103
11123
|
show_in_tooltip: boolean;
|
|
10104
11124
|
damage_type_filters?: DamageTypeFilters;
|
|
10105
11125
|
}
|
|
11126
|
+
type TriggerEffectItem = BaseTriggerEffectItem | TriggerEffectItemActivateImpact | TriggerEffectItemCameraEffect | TriggerEffectItemCreateAsteroidChunk | TriggerEffectItemCreateDecorative | TriggerEffectItemCreateEntity | TriggerEffectItemCreateExplosion | TriggerEffectItemCreateFire | TriggerEffectItemCreateParticle | TriggerEffectItemCreatePollution | TriggerEffectItemCreateSmoke | TriggerEffectItemCreateSticker | TriggerEffectItemCreateTrivialSmoke | TriggerEffectItemDamage | TriggerEffectItemDamageTile | TriggerEffectItemDestroyCliffs | TriggerEffectItemDestroyDecoratives | TriggerEffectItemInsertItem | TriggerEffectItemInvokeTileTrigger | TriggerEffectItemNestedResult | TriggerEffectItemPlaySound | TriggerEffectItemPushBack | TriggerEffectItemScript | TriggerEffectItemSetTile | TriggerEffectItemShowExplosionOnChart;
|
|
11127
|
+
/**
|
|
11128
|
+
*
|
|
11129
|
+
* Applies to variant case `activate-impact`
|
|
11130
|
+
*/
|
|
11131
|
+
interface TriggerEffectItemActivateImpact extends BaseTriggerEffectItem {
|
|
11132
|
+
'type': 'activate-impact';
|
|
11133
|
+
'deliver_category': string;
|
|
11134
|
+
}
|
|
11135
|
+
/**
|
|
11136
|
+
*
|
|
11137
|
+
* Applies to variant case `camera-effect`
|
|
11138
|
+
*/
|
|
11139
|
+
interface TriggerEffectItemCameraEffect extends BaseTriggerEffectItem {
|
|
11140
|
+
'type': 'camera-effect';
|
|
11141
|
+
'delay': uint8;
|
|
11142
|
+
'duration': uint8;
|
|
11143
|
+
'ease_in_duration': uint8;
|
|
11144
|
+
'ease_out_duration': uint8;
|
|
11145
|
+
'full_strength_max_distance': uint16;
|
|
11146
|
+
'max_distance': uint16;
|
|
11147
|
+
'strength': float;
|
|
11148
|
+
}
|
|
11149
|
+
/**
|
|
11150
|
+
*
|
|
11151
|
+
* Applies to variant case `create-asteroid-chunk`
|
|
11152
|
+
*/
|
|
11153
|
+
interface TriggerEffectItemCreateAsteroidChunk extends BaseTriggerEffectItem {
|
|
11154
|
+
'type': 'create-asteroid-chunk';
|
|
11155
|
+
'asteroid_name': string;
|
|
11156
|
+
'offset_deviation': BoundingBox;
|
|
11157
|
+
'offsets': Vector[];
|
|
11158
|
+
}
|
|
11159
|
+
/**
|
|
11160
|
+
*
|
|
11161
|
+
* Applies to variant case `create-decorative`
|
|
11162
|
+
*/
|
|
11163
|
+
interface TriggerEffectItemCreateDecorative extends BaseTriggerEffectItem {
|
|
11164
|
+
'type': 'create-decorative';
|
|
11165
|
+
'apply_projection': boolean;
|
|
11166
|
+
'decorative': string;
|
|
11167
|
+
'radius_curve': float;
|
|
11168
|
+
'spawn_max': uint16;
|
|
11169
|
+
'spawn_max_radius': float;
|
|
11170
|
+
'spawn_min': uint16;
|
|
11171
|
+
'spawn_min_radius': float;
|
|
11172
|
+
'spread_evenly': boolean;
|
|
11173
|
+
}
|
|
11174
|
+
/**
|
|
11175
|
+
*
|
|
11176
|
+
* Applies to variant case `create-entity`
|
|
11177
|
+
*/
|
|
11178
|
+
interface TriggerEffectItemCreateEntity extends BaseTriggerEffectItem {
|
|
11179
|
+
'type': 'create-entity';
|
|
11180
|
+
'abort_if_over_space': boolean;
|
|
11181
|
+
'as_enemy': boolean;
|
|
11182
|
+
'check_buildability': boolean;
|
|
11183
|
+
'entity_name': string;
|
|
11184
|
+
'find_non_colliding_position': boolean;
|
|
11185
|
+
'ignore_no_enemies_mode': boolean;
|
|
11186
|
+
'non_colliding_fail_result'?: TriggerItem[];
|
|
11187
|
+
'non_colliding_search_precision': double;
|
|
11188
|
+
'non_colliding_search_radius': double;
|
|
11189
|
+
'offset_deviation': BoundingBox;
|
|
11190
|
+
'offsets': Vector[];
|
|
11191
|
+
'only_when_visible': boolean;
|
|
11192
|
+
'protected': boolean;
|
|
11193
|
+
'tile_collision_mask': CollisionMask;
|
|
11194
|
+
'trigger_created_entity': boolean;
|
|
11195
|
+
}
|
|
11196
|
+
/**
|
|
11197
|
+
*
|
|
11198
|
+
* Applies to variant case `create-explosion`
|
|
11199
|
+
*/
|
|
11200
|
+
interface TriggerEffectItemCreateExplosion extends BaseTriggerEffectItem {
|
|
11201
|
+
'type': 'create-explosion';
|
|
11202
|
+
'abort_if_over_space': boolean;
|
|
11203
|
+
'as_enemy': boolean;
|
|
11204
|
+
'check_buildability': boolean;
|
|
11205
|
+
'cycle_while_moving': boolean;
|
|
11206
|
+
'entity_name': string;
|
|
11207
|
+
'find_non_colliding_position': boolean;
|
|
11208
|
+
'ignore_no_enemies_mode': boolean;
|
|
11209
|
+
'inherit_movement_distance_from_projectile': boolean;
|
|
11210
|
+
'max_movement_distance': float;
|
|
11211
|
+
'max_movement_distance_deviation': float;
|
|
11212
|
+
'non_colliding_fail_result'?: TriggerItem[];
|
|
11213
|
+
'non_colliding_search_precision': double;
|
|
11214
|
+
'non_colliding_search_radius': double;
|
|
11215
|
+
'offset_deviation': BoundingBox;
|
|
11216
|
+
'offsets': Vector[];
|
|
11217
|
+
'only_when_visible': boolean;
|
|
11218
|
+
'protected': boolean;
|
|
11219
|
+
'tile_collision_mask': CollisionMask;
|
|
11220
|
+
'trigger_created_entity': boolean;
|
|
11221
|
+
}
|
|
11222
|
+
/**
|
|
11223
|
+
*
|
|
11224
|
+
* Applies to variant case `create-fire`
|
|
11225
|
+
*/
|
|
11226
|
+
interface TriggerEffectItemCreateFire extends BaseTriggerEffectItem {
|
|
11227
|
+
'type': 'create-fire';
|
|
11228
|
+
'abort_if_over_space': boolean;
|
|
11229
|
+
'as_enemy': boolean;
|
|
11230
|
+
'check_buildability': boolean;
|
|
11231
|
+
'entity_name': string;
|
|
11232
|
+
'find_non_colliding_position': boolean;
|
|
11233
|
+
'ignore_no_enemies_mode': boolean;
|
|
11234
|
+
'initial_ground_flame_count'?: uint8;
|
|
11235
|
+
'non_colliding_fail_result'?: TriggerItem[];
|
|
11236
|
+
'non_colliding_search_precision': double;
|
|
11237
|
+
'non_colliding_search_radius': double;
|
|
11238
|
+
'offset_deviation': BoundingBox;
|
|
11239
|
+
'offsets': Vector[];
|
|
11240
|
+
'only_when_visible': boolean;
|
|
11241
|
+
'protected': boolean;
|
|
11242
|
+
'tile_collision_mask': CollisionMask;
|
|
11243
|
+
'trigger_created_entity': boolean;
|
|
11244
|
+
}
|
|
11245
|
+
/**
|
|
11246
|
+
*
|
|
11247
|
+
* Applies to variant case `create-particle`
|
|
11248
|
+
*/
|
|
11249
|
+
interface TriggerEffectItemCreateParticle extends BaseTriggerEffectItem {
|
|
11250
|
+
'type': 'create-particle';
|
|
11251
|
+
'apply_tile_tint'?: ApplyTileTint;
|
|
11252
|
+
'frame_speed': float;
|
|
11253
|
+
'frame_speed_deviation': float;
|
|
11254
|
+
'initial_height': float;
|
|
11255
|
+
'initial_height_deviation': float;
|
|
11256
|
+
'initial_vertical_speed': float;
|
|
11257
|
+
'initial_vertical_speed_deviation': float;
|
|
11258
|
+
'movement_multiplier': float;
|
|
11259
|
+
'offset_deviation': BoundingBox;
|
|
11260
|
+
'offsets': Vector[];
|
|
11261
|
+
'only_when_visible': boolean;
|
|
11262
|
+
'particle_name': string;
|
|
11263
|
+
'rotate_offsets': boolean;
|
|
11264
|
+
'speed_from_center': float;
|
|
11265
|
+
'speed_from_center_deviation': float;
|
|
11266
|
+
'tail_length'?: uint8;
|
|
11267
|
+
'tail_length_deviation'?: uint8;
|
|
11268
|
+
'tail_width'?: float;
|
|
11269
|
+
'tile_collision_mask': CollisionMask;
|
|
11270
|
+
'tint'?: Color;
|
|
11271
|
+
}
|
|
11272
|
+
/**
|
|
11273
|
+
*
|
|
11274
|
+
* Applies to variant case `create-pollution`
|
|
11275
|
+
*/
|
|
11276
|
+
interface TriggerEffectItemCreatePollution extends BaseTriggerEffectItem {
|
|
11277
|
+
'type': 'create-pollution';
|
|
11278
|
+
'amount': double;
|
|
11279
|
+
'entity'?: string;
|
|
11280
|
+
'use_entity_from_trigger': boolean;
|
|
11281
|
+
}
|
|
11282
|
+
/**
|
|
11283
|
+
*
|
|
11284
|
+
* Applies to variant case `create-smoke`
|
|
11285
|
+
*/
|
|
11286
|
+
interface TriggerEffectItemCreateSmoke extends BaseTriggerEffectItem {
|
|
11287
|
+
'type': 'create-smoke';
|
|
11288
|
+
'abort_if_over_space': boolean;
|
|
11289
|
+
'as_enemy': boolean;
|
|
11290
|
+
'check_buildability': boolean;
|
|
11291
|
+
'entity_name': string;
|
|
11292
|
+
'find_non_colliding_position': boolean;
|
|
11293
|
+
'ignore_no_enemies_mode': boolean;
|
|
11294
|
+
'initial_height': float;
|
|
11295
|
+
'non_colliding_fail_result'?: TriggerItem[];
|
|
11296
|
+
'non_colliding_search_precision': double;
|
|
11297
|
+
'non_colliding_search_radius': double;
|
|
11298
|
+
'offset_deviation': BoundingBox;
|
|
11299
|
+
'offsets': Vector[];
|
|
11300
|
+
'only_when_visible': boolean;
|
|
11301
|
+
'protected': boolean;
|
|
11302
|
+
'speed': Vector;
|
|
11303
|
+
'speed_from_center': float;
|
|
11304
|
+
'speed_from_center_deviation': float;
|
|
11305
|
+
'speed_multiplier': float;
|
|
11306
|
+
'speed_multiplier_deviation': float;
|
|
11307
|
+
'starting_frame': float;
|
|
11308
|
+
'starting_frame_deviation': float;
|
|
11309
|
+
'tile_collision_mask': CollisionMask;
|
|
11310
|
+
'trigger_created_entity': boolean;
|
|
11311
|
+
}
|
|
11312
|
+
/**
|
|
11313
|
+
*
|
|
11314
|
+
* Applies to variant case `create-sticker`
|
|
11315
|
+
*/
|
|
11316
|
+
interface TriggerEffectItemCreateSticker extends BaseTriggerEffectItem {
|
|
11317
|
+
'type': 'create-sticker';
|
|
11318
|
+
'sticker': string;
|
|
11319
|
+
'trigger_created_entity': boolean;
|
|
11320
|
+
}
|
|
11321
|
+
/**
|
|
11322
|
+
*
|
|
11323
|
+
* Applies to variant case `create-trivial-smoke`
|
|
11324
|
+
*/
|
|
11325
|
+
interface TriggerEffectItemCreateTrivialSmoke extends BaseTriggerEffectItem {
|
|
11326
|
+
'type': 'create-trivial-smoke';
|
|
11327
|
+
'initial_height': float;
|
|
11328
|
+
'max_radius'?: float;
|
|
11329
|
+
'offset_deviation': BoundingBox;
|
|
11330
|
+
'offsets': Vector[];
|
|
11331
|
+
'smoke_name': string;
|
|
11332
|
+
'speed': Vector;
|
|
11333
|
+
'speed_from_center': float;
|
|
11334
|
+
'speed_from_center_deviation': float;
|
|
11335
|
+
'speed_multiplier': float;
|
|
11336
|
+
'speed_multiplier_deviation': float;
|
|
11337
|
+
'starting_frame': float;
|
|
11338
|
+
'starting_frame_deviation': float;
|
|
11339
|
+
}
|
|
11340
|
+
/**
|
|
11341
|
+
*
|
|
11342
|
+
* Applies to variant case `damage`
|
|
11343
|
+
*/
|
|
11344
|
+
interface TriggerEffectItemDamage extends BaseTriggerEffectItem {
|
|
11345
|
+
'type': 'damage';
|
|
11346
|
+
'apply_damage_to_trees': boolean;
|
|
11347
|
+
'damage': DamageParameters;
|
|
11348
|
+
'lower_damage_modifier': float;
|
|
11349
|
+
'lower_distance_threshold': uint16;
|
|
11350
|
+
'upper_damage_modifier': float;
|
|
11351
|
+
'upper_distance_threshold': uint16;
|
|
11352
|
+
'use_substitute': boolean;
|
|
11353
|
+
'vaporize': boolean;
|
|
11354
|
+
}
|
|
11355
|
+
/**
|
|
11356
|
+
*
|
|
11357
|
+
* Applies to variant case `damage-tile`
|
|
11358
|
+
*/
|
|
11359
|
+
interface TriggerEffectItemDamageTile extends BaseTriggerEffectItem {
|
|
11360
|
+
'type': 'damage-tile';
|
|
11361
|
+
'damage': DamageParameters;
|
|
11362
|
+
'radius': float;
|
|
11363
|
+
}
|
|
11364
|
+
/**
|
|
11365
|
+
*
|
|
11366
|
+
* Applies to variant case `destroy-cliffs`
|
|
11367
|
+
*/
|
|
11368
|
+
interface TriggerEffectItemDestroyCliffs extends BaseTriggerEffectItem {
|
|
11369
|
+
'type': 'destroy-cliffs';
|
|
11370
|
+
'radius': float;
|
|
11371
|
+
}
|
|
11372
|
+
/**
|
|
11373
|
+
*
|
|
11374
|
+
* Applies to variant case `destroy-decoratives`
|
|
11375
|
+
*/
|
|
11376
|
+
interface TriggerEffectItemDestroyDecoratives extends BaseTriggerEffectItem {
|
|
11377
|
+
'type': 'destroy-decoratives';
|
|
11378
|
+
'decoratives_with_trigger_only': boolean;
|
|
11379
|
+
'from_render_layer': RenderLayer;
|
|
11380
|
+
'include_decals': boolean;
|
|
11381
|
+
'include_soft_decoratives': boolean;
|
|
11382
|
+
'invoke_decorative_trigger': boolean;
|
|
11383
|
+
'radius': float;
|
|
11384
|
+
'to_render_layer': RenderLayer;
|
|
11385
|
+
}
|
|
11386
|
+
/**
|
|
11387
|
+
*
|
|
11388
|
+
* Applies to variant case `insert-item`
|
|
11389
|
+
*/
|
|
11390
|
+
interface TriggerEffectItemInsertItem extends BaseTriggerEffectItem {
|
|
11391
|
+
'type': 'insert-item';
|
|
11392
|
+
'count': ItemCountType;
|
|
11393
|
+
'item': string;
|
|
11394
|
+
'quality': string;
|
|
11395
|
+
}
|
|
11396
|
+
/**
|
|
11397
|
+
*
|
|
11398
|
+
* Applies to variant case `invoke-tile-trigger`
|
|
11399
|
+
*/
|
|
11400
|
+
interface TriggerEffectItemInvokeTileTrigger extends BaseTriggerEffectItem {
|
|
11401
|
+
'type': 'invoke-tile-trigger';
|
|
11402
|
+
'tile_collision_mask': CollisionMask;
|
|
11403
|
+
}
|
|
11404
|
+
/**
|
|
11405
|
+
*
|
|
11406
|
+
* Applies to variant case `nested-result`
|
|
11407
|
+
*/
|
|
11408
|
+
interface TriggerEffectItemNestedResult extends BaseTriggerEffectItem {
|
|
11409
|
+
'type': 'nested-result';
|
|
11410
|
+
'action': TriggerItem[];
|
|
11411
|
+
}
|
|
11412
|
+
/**
|
|
11413
|
+
*
|
|
11414
|
+
* Applies to variant case `play-sound`
|
|
11415
|
+
*/
|
|
11416
|
+
interface TriggerEffectItemPlaySound extends BaseTriggerEffectItem {
|
|
11417
|
+
'type': 'play-sound';
|
|
11418
|
+
'max_distance': float;
|
|
11419
|
+
'min_distance': float;
|
|
11420
|
+
'play_on_target_position': boolean;
|
|
11421
|
+
}
|
|
11422
|
+
/**
|
|
11423
|
+
*
|
|
11424
|
+
* Applies to variant case `push-back`
|
|
11425
|
+
*/
|
|
11426
|
+
interface TriggerEffectItemPushBack extends BaseTriggerEffectItem {
|
|
11427
|
+
'type': 'push-back';
|
|
11428
|
+
'distance': float;
|
|
11429
|
+
}
|
|
11430
|
+
/**
|
|
11431
|
+
*
|
|
11432
|
+
* Applies to variant case `script`
|
|
11433
|
+
*/
|
|
11434
|
+
interface TriggerEffectItemScript extends BaseTriggerEffectItem {
|
|
11435
|
+
'type': 'script';
|
|
11436
|
+
'effect_id': string;
|
|
11437
|
+
}
|
|
11438
|
+
/**
|
|
11439
|
+
*
|
|
11440
|
+
* Applies to variant case `set-tile`
|
|
11441
|
+
*/
|
|
11442
|
+
interface TriggerEffectItemSetTile extends BaseTriggerEffectItem {
|
|
11443
|
+
'type': 'set-tile';
|
|
11444
|
+
'apply_on_space_platform': boolean;
|
|
11445
|
+
'apply_projection': boolean;
|
|
11446
|
+
'radius': float;
|
|
11447
|
+
'tile_collision_mask': CollisionMask;
|
|
11448
|
+
'tile_name': string;
|
|
11449
|
+
}
|
|
11450
|
+
/**
|
|
11451
|
+
*
|
|
11452
|
+
* Applies to variant case `show-explosion-on-chart`
|
|
11453
|
+
*/
|
|
11454
|
+
interface TriggerEffectItemShowExplosionOnChart extends BaseTriggerEffectItem {
|
|
11455
|
+
'type': 'show-explosion-on-chart';
|
|
11456
|
+
'scale': float;
|
|
11457
|
+
}
|
|
10106
11458
|
/**
|
|
10107
11459
|
* Used by {@link TriggerEffectItem | runtime:TriggerEffectItem}.
|
|
10108
11460
|
*/
|
|
10109
|
-
type TriggerEffectItemType = 'damage' | 'damage-tile' | 'create-entity' | 'create-explosion' | 'create-fire' | 'create-smoke' | 'create-trivial-smoke' | 'create-asteroid-chunk' | 'create-particle' | 'create-sticker' | 'create-decorative' | 'nested-result' | 'play-sound' | 'push-back' | 'destroy-cliffs' | 'show-explosion-on-chart' | 'insert-item' | 'script' | 'set-tile' | 'invoke-tile-trigger' | 'destroy-decoratives' | 'camera-effect' | 'activate-impact';
|
|
11461
|
+
type TriggerEffectItemType = 'damage' | 'damage-tile' | 'create-entity' | 'create-explosion' | 'create-fire' | 'create-smoke' | 'create-trivial-smoke' | 'create-asteroid-chunk' | 'create-particle' | 'create-sticker' | 'create-decorative' | 'nested-result' | 'play-sound' | 'push-back' | 'destroy-cliffs' | 'show-explosion-on-chart' | 'insert-item' | 'script' | 'set-tile' | 'invoke-tile-trigger' | 'destroy-decoratives' | 'camera-effect' | 'activate-impact' | 'create-pollution';
|
|
10110
11462
|
interface TriggerEffectWithCooldown {
|
|
10111
11463
|
/**
|
|
10112
11464
|
* The travel distance between triggers that the triggerer must travel between effects.
|
|
@@ -10126,7 +11478,7 @@ interface TriggerEffectWithCooldown {
|
|
|
10126
11478
|
initial_time_cooldown: MapTick;
|
|
10127
11479
|
effect: TriggerEffectItem[];
|
|
10128
11480
|
}
|
|
10129
|
-
interface
|
|
11481
|
+
interface BaseTriggerItem {
|
|
10130
11482
|
type: 'direct' | 'area' | 'line' | 'cluster';
|
|
10131
11483
|
action_delivery?: TriggerDelivery[];
|
|
10132
11484
|
/**
|
|
@@ -10146,6 +11498,48 @@ interface TriggerItem {
|
|
|
10146
11498
|
repeat_count: uint32;
|
|
10147
11499
|
probability: float;
|
|
10148
11500
|
}
|
|
11501
|
+
type TriggerItem = BaseTriggerItem | TriggerItemArea | TriggerItemCluster | TriggerItemDirect | TriggerItemLine;
|
|
11502
|
+
/**
|
|
11503
|
+
*
|
|
11504
|
+
* Applies to variant case `area`
|
|
11505
|
+
*/
|
|
11506
|
+
interface TriggerItemArea extends BaseTriggerItem {
|
|
11507
|
+
'type': 'area';
|
|
11508
|
+
'collision_mode': 'distance-from-collision-box' | 'distance-from-center';
|
|
11509
|
+
'radius': double;
|
|
11510
|
+
'show_in_tooltip': boolean;
|
|
11511
|
+
'target_enemies': boolean;
|
|
11512
|
+
'target_entities': boolean;
|
|
11513
|
+
'trigger_from_target': boolean;
|
|
11514
|
+
}
|
|
11515
|
+
/**
|
|
11516
|
+
*
|
|
11517
|
+
* Applies to variant case `cluster`
|
|
11518
|
+
*/
|
|
11519
|
+
interface TriggerItemCluster extends BaseTriggerItem {
|
|
11520
|
+
'type': 'cluster';
|
|
11521
|
+
'cluster_count': uint32;
|
|
11522
|
+
'distance': float;
|
|
11523
|
+
'distance_deviation': float;
|
|
11524
|
+
}
|
|
11525
|
+
/**
|
|
11526
|
+
*
|
|
11527
|
+
* Applies to variant case `direct`
|
|
11528
|
+
*/
|
|
11529
|
+
interface TriggerItemDirect extends BaseTriggerItem {
|
|
11530
|
+
'type': 'direct';
|
|
11531
|
+
'filter_enabled': boolean;
|
|
11532
|
+
}
|
|
11533
|
+
/**
|
|
11534
|
+
*
|
|
11535
|
+
* Applies to variant case `line`
|
|
11536
|
+
*/
|
|
11537
|
+
interface TriggerItemLine extends BaseTriggerItem {
|
|
11538
|
+
'type': 'line';
|
|
11539
|
+
'range': double;
|
|
11540
|
+
'range_effects': TriggerEffectItem[];
|
|
11541
|
+
'width': double;
|
|
11542
|
+
}
|
|
10149
11543
|
interface TriggerModifierData {
|
|
10150
11544
|
damage_modifier?: float;
|
|
10151
11545
|
damage_addition?: float;
|
|
@@ -10166,6 +11560,8 @@ LuaTrivialSmokePrototype | /**
|
|
|
10166
11560
|
*/
|
|
10167
11561
|
string;
|
|
10168
11562
|
interface TurretBlueprintControlBehavior {
|
|
11563
|
+
input_networks?: CircuitNetworkSelection;
|
|
11564
|
+
output_networks?: CircuitNetworkSelection;
|
|
10169
11565
|
/**
|
|
10170
11566
|
* Defaults to `false`.
|
|
10171
11567
|
*/
|
|
@@ -10407,6 +11803,33 @@ interface UndoRedoActionWireRemoved extends BaseUndoRedoAction {
|
|
|
10407
11803
|
'a': BlueprintWireEnd;
|
|
10408
11804
|
'b': BlueprintWireEnd;
|
|
10409
11805
|
}
|
|
11806
|
+
interface UnitAISettings {
|
|
11807
|
+
/**
|
|
11808
|
+
* If enabled, units that repeatedly fail to succeed at commands will be destroyed.
|
|
11809
|
+
*/
|
|
11810
|
+
destroy_when_commands_fail: boolean;
|
|
11811
|
+
/**
|
|
11812
|
+
* If enabled, units that have nothing else to do will attempt to return to a spawner.
|
|
11813
|
+
*/
|
|
11814
|
+
allow_try_return_to_spawner: boolean;
|
|
11815
|
+
/**
|
|
11816
|
+
* If enabled, units will try to separate themselves from nearby friendly units.
|
|
11817
|
+
*/
|
|
11818
|
+
do_separation: boolean;
|
|
11819
|
+
/**
|
|
11820
|
+
* Must be between -8 and 8.
|
|
11821
|
+
*/
|
|
11822
|
+
path_resolution_modifier: int8;
|
|
11823
|
+
strafe_settings?: PrototypeStrafeSettings;
|
|
11824
|
+
/**
|
|
11825
|
+
* The amount of slots in a unit group this unit takes up. For example, a unit with `groupingSize` of 2 will count as 2 normal-sized units when filling up a unit group. Must be greater than 0.
|
|
11826
|
+
*/
|
|
11827
|
+
size_in_group: float;
|
|
11828
|
+
/**
|
|
11829
|
+
* If enabled, the unit is permitted to join attack groups.
|
|
11830
|
+
*/
|
|
11831
|
+
join_attacks: boolean;
|
|
11832
|
+
}
|
|
10410
11833
|
interface UnitGroupMapSettings {
|
|
10411
11834
|
/**
|
|
10412
11835
|
* The minimum amount of time in ticks a group will spend gathering before setting off. The actual time is a random time between the minimum and maximum times. Defaults to `3 600` ticks.
|
|
@@ -10468,6 +11891,14 @@ interface UnitSpawnDefinition {
|
|
|
10468
11891
|
*/
|
|
10469
11892
|
spawn_points: SpawnPointDefinition[];
|
|
10470
11893
|
}
|
|
11894
|
+
interface UnlockableID {
|
|
11895
|
+
type: UnlockableIDType;
|
|
11896
|
+
/**
|
|
11897
|
+
* Name of a prototype as defined by `type`. Only used if the type is one of `"space-location"`, `"recipe"`, `"quality"`, `"item"`, `"entity"`, `"fluid"`, `"asteroid-chunk"`, `"tile"`, `"ammo-category"`
|
|
11898
|
+
*/
|
|
11899
|
+
name?: string;
|
|
11900
|
+
}
|
|
11901
|
+
type UnlockableIDType = 'space-location' | 'recipe' | 'quality' | 'item' | 'entity' | 'fluid' | 'asteroid-chunk' | 'tile' | 'ammo-category' | 'mining-with-fluid' | 'space-platform-unlocked' | 'space-platforms-buildable' | 'space-platform-travel' | 'asteroid-collectors' | 'silo-unlocked' | 'starter-packs-available' | 'thrusters-available' | 'capture-robots-available';
|
|
10471
11902
|
interface UpgradeMapperDestination {
|
|
10472
11903
|
type: 'item' | 'entity';
|
|
10473
11904
|
/**
|
|
@@ -10506,6 +11937,350 @@ interface UpgradeMapperSource {
|
|
|
10506
11937
|
*/
|
|
10507
11938
|
module_filter?: EntityIDFilter;
|
|
10508
11939
|
}
|
|
11940
|
+
/**
|
|
11941
|
+
* Constants used by the game that are not specific to certain prototypes. See {@link utility-constants.lua | https://github.com/wube/factorio-data/blob/master/core/prototypes/utility-constants.lua} for the values used by the base game.
|
|
11942
|
+
*
|
|
11943
|
+
* Note that this is actually implemented as a {@link LuaCustomTable | runtime:LuaCustomTable}, not a regular table.
|
|
11944
|
+
*/
|
|
11945
|
+
interface UtilityConstants {
|
|
11946
|
+
/**
|
|
11947
|
+
* Chart means map and minimap.
|
|
11948
|
+
*/
|
|
11949
|
+
chart: ChartUtilityConstants;
|
|
11950
|
+
/**
|
|
11951
|
+
* The base game uses more entries here that are applied via the `ammo-category.lua` file.
|
|
11952
|
+
*/
|
|
11953
|
+
bonus_gui_ordering: BonusUtilityConstants;
|
|
11954
|
+
map_editor: EditorUtilityConstants;
|
|
11955
|
+
entity_button_background_color: Color;
|
|
11956
|
+
building_buildable_too_far_tint: Color;
|
|
11957
|
+
building_buildable_tint: Color;
|
|
11958
|
+
building_not_buildable_tint: Color;
|
|
11959
|
+
building_ignorable_tint: Color;
|
|
11960
|
+
building_no_tint: Color;
|
|
11961
|
+
/**
|
|
11962
|
+
* Tall entities will be tinted with this value when "Hide tall entities" mode is active.
|
|
11963
|
+
*/
|
|
11964
|
+
tall_entity_tint: Color;
|
|
11965
|
+
/**
|
|
11966
|
+
* All trivial smoke will be tinted with this value when "Hide tall entities" mode is active.
|
|
11967
|
+
*/
|
|
11968
|
+
tall_entity_smoke_tint: Color;
|
|
11969
|
+
underground_belt_max_distance_tint: Color;
|
|
11970
|
+
underground_pipe_max_distance_tint: Color;
|
|
11971
|
+
ghost_shader_tint: GhostTintSet;
|
|
11972
|
+
ghost_shaderless_tint: GhostTintSet;
|
|
11973
|
+
ghost_shimmer_settings: GhostShimmerConfig;
|
|
11974
|
+
probability_product_count_tint: Color;
|
|
11975
|
+
ghost_product_count_tint: Color;
|
|
11976
|
+
zero_count_value_tint: Color;
|
|
11977
|
+
equipment_default_background_color: Color;
|
|
11978
|
+
equipment_default_background_border_color: Color;
|
|
11979
|
+
equipment_default_grabbed_background_color: Color;
|
|
11980
|
+
equipment_disabled_background_tint: Color;
|
|
11981
|
+
equipment_disabled_tint: Color;
|
|
11982
|
+
turret_range_visualization_color: Color;
|
|
11983
|
+
capsule_range_visualization_color: Color;
|
|
11984
|
+
agricultural_range_visualization_color: Color;
|
|
11985
|
+
artillery_range_visualization_color: Color;
|
|
11986
|
+
gui_remark_color: Color;
|
|
11987
|
+
gui_search_match_foreground_color: Color;
|
|
11988
|
+
gui_search_match_background_color: Color;
|
|
11989
|
+
default_player_force_color: Color;
|
|
11990
|
+
default_enemy_force_color: Color;
|
|
11991
|
+
default_other_force_color: Color;
|
|
11992
|
+
deconstruct_mark_tint: Color;
|
|
11993
|
+
rail_planner_count_button_color: Color;
|
|
11994
|
+
count_button_size: int32;
|
|
11995
|
+
logistic_gui_unselected_network_highlight_tint: Color;
|
|
11996
|
+
logistic_gui_selected_network_highlight_tint: Color;
|
|
11997
|
+
chart_search_highlight: Color;
|
|
11998
|
+
selected_chart_search_highlight: Color;
|
|
11999
|
+
zoom_to_world_can_use_nightvision: boolean;
|
|
12000
|
+
zoom_to_world_effect_strength: float;
|
|
12001
|
+
max_logistic_filter_count: LogisticFilterIndex;
|
|
12002
|
+
/**
|
|
12003
|
+
* Will be clamped to the range [1, 100].
|
|
12004
|
+
*/
|
|
12005
|
+
select_group_row_count: uint8;
|
|
12006
|
+
/**
|
|
12007
|
+
* Will be clamped to the range [1, 100].
|
|
12008
|
+
*/
|
|
12009
|
+
select_slot_row_count: uint8;
|
|
12010
|
+
/**
|
|
12011
|
+
* Will be clamped to the range [2, 100].
|
|
12012
|
+
*/
|
|
12013
|
+
logistic_slots_per_row: uint8;
|
|
12014
|
+
/**
|
|
12015
|
+
* Will be clamped to the range [1, 100].
|
|
12016
|
+
*/
|
|
12017
|
+
crafting_queue_slots_per_row: uint8;
|
|
12018
|
+
/**
|
|
12019
|
+
* Will be clamped to the range [2, 100].
|
|
12020
|
+
*/
|
|
12021
|
+
blueprint_big_slots_per_row: uint8;
|
|
12022
|
+
/**
|
|
12023
|
+
* Will be clamped to the range [2, 100].
|
|
12024
|
+
*/
|
|
12025
|
+
blueprint_small_slots_per_row: uint8;
|
|
12026
|
+
/**
|
|
12027
|
+
* Will be clamped to the range [1, 100].
|
|
12028
|
+
*/
|
|
12029
|
+
inventory_width: uint8;
|
|
12030
|
+
/**
|
|
12031
|
+
* Will be clamped to the range [1, 100].
|
|
12032
|
+
*/
|
|
12033
|
+
module_inventory_width: uint8;
|
|
12034
|
+
/**
|
|
12035
|
+
* Will be clamped to the range [1, 100].
|
|
12036
|
+
*/
|
|
12037
|
+
trash_inventory_width: uint8;
|
|
12038
|
+
max_terrain_building_size: uint8;
|
|
12039
|
+
small_area_size: float;
|
|
12040
|
+
medium_area_size: float;
|
|
12041
|
+
large_area_size: float;
|
|
12042
|
+
huge_area_size: float;
|
|
12043
|
+
huge_platform_animation_sound_area: float;
|
|
12044
|
+
small_blueprint_area_size: float;
|
|
12045
|
+
medium_blueprint_area_size: float;
|
|
12046
|
+
large_blueprint_area_size: float;
|
|
12047
|
+
enabled_recipe_slot_tint: Color;
|
|
12048
|
+
disabled_recipe_slot_tint: Color;
|
|
12049
|
+
disabled_recipe_slot_background_tint: Color;
|
|
12050
|
+
forced_enabled_recipe_slot_background_tint: Color;
|
|
12051
|
+
rail_segment_colors: Color[];
|
|
12052
|
+
/**
|
|
12053
|
+
* The table with `name = "default"` must exist and be the first member of the array.
|
|
12054
|
+
*/
|
|
12055
|
+
player_colors: PlayerColorData[];
|
|
12056
|
+
server_command_console_chat_color: Color;
|
|
12057
|
+
script_command_console_chat_color: Color;
|
|
12058
|
+
default_alert_icon_scale: float;
|
|
12059
|
+
default_alert_icon_shift_by_type?: Record<string, Vector>;
|
|
12060
|
+
default_alert_icon_scale_by_type?: Record<string, float>;
|
|
12061
|
+
/**
|
|
12062
|
+
* If not set, defaults to `true` when modded and `false` when vanilla.
|
|
12063
|
+
*/
|
|
12064
|
+
merge_bonus_gui_production_bonuses?: boolean;
|
|
12065
|
+
daytime_color_lookup: DaytimeColorLookupTable;
|
|
12066
|
+
zoom_to_world_daytime_color_lookup: DaytimeColorLookupTable;
|
|
12067
|
+
frozen_color_lookup: ColorLookupTable;
|
|
12068
|
+
default_platform_surface_render_parameters: SurfaceRenderParameters;
|
|
12069
|
+
drop_item_radius: double;
|
|
12070
|
+
checkerboard_white: Color;
|
|
12071
|
+
checkerboard_black: Color;
|
|
12072
|
+
item_outline_color: Color;
|
|
12073
|
+
item_outline_radius: float;
|
|
12074
|
+
item_outline_inset: float;
|
|
12075
|
+
item_outline_sharpness: float;
|
|
12076
|
+
item_default_random_tint_strength: Color;
|
|
12077
|
+
spawner_evolution_factor_health_modifier: float;
|
|
12078
|
+
/**
|
|
12079
|
+
* There must be one array item with a threshold of `0`.
|
|
12080
|
+
*/
|
|
12081
|
+
item_health_bar_colors: ItemHealthColorData[];
|
|
12082
|
+
item_ammo_magazine_left_bar_color: Color;
|
|
12083
|
+
item_tool_durability_bar_color: Color;
|
|
12084
|
+
filter_outline_color: Color;
|
|
12085
|
+
icon_shadow_radius: float;
|
|
12086
|
+
icon_shadow_inset: float;
|
|
12087
|
+
icon_shadow_sharpness: float;
|
|
12088
|
+
icon_shadow_color: Color;
|
|
12089
|
+
clipboard_history_size: uint32;
|
|
12090
|
+
recipe_step_limit: uint32;
|
|
12091
|
+
manual_rail_building_reach_modifier: double;
|
|
12092
|
+
train_temporary_stop_wait_time: uint32;
|
|
12093
|
+
train_time_wait_condition_default: uint32;
|
|
12094
|
+
train_inactivity_wait_condition_default: uint32;
|
|
12095
|
+
/**
|
|
12096
|
+
* The strings are entity types.
|
|
12097
|
+
*/
|
|
12098
|
+
default_trigger_target_mask_by_type?: Record<string, TriggerTargetMask>;
|
|
12099
|
+
unit_group_pathfind_resolution: int8;
|
|
12100
|
+
unit_group_max_pursue_distance: double;
|
|
12101
|
+
dynamic_recipe_overload_factor: double;
|
|
12102
|
+
minimum_recipe_overload_multiplier: uint32;
|
|
12103
|
+
maximum_recipe_overload_multiplier: uint32;
|
|
12104
|
+
entity_renderer_search_box_limits: EntityRendererSearchBoxLimits;
|
|
12105
|
+
/**
|
|
12106
|
+
* Can be set to anything from range 0 to 255, but larger values will be clamped to 160. Setting it to larger values can have performance impact (growing geometrically).
|
|
12107
|
+
*/
|
|
12108
|
+
light_renderer_search_distance_limit: uint8;
|
|
12109
|
+
far_away_chunk_generation_radius: uint8;
|
|
12110
|
+
tree_leaf_distortion_strength_far: Vector;
|
|
12111
|
+
tree_leaf_distortion_distortion_far: Vector;
|
|
12112
|
+
tree_leaf_distortion_speed_far: Vector;
|
|
12113
|
+
tree_leaf_distortion_strength_near: Vector;
|
|
12114
|
+
tree_leaf_distortion_distortion_near: Vector;
|
|
12115
|
+
tree_leaf_distortion_speed_near: Vector;
|
|
12116
|
+
tree_shadow_roughness: float;
|
|
12117
|
+
tree_shadow_speed: float;
|
|
12118
|
+
missing_preview_sprite_location: string;
|
|
12119
|
+
main_menu_background_image_location: string;
|
|
12120
|
+
/**
|
|
12121
|
+
* The strings represent the names of the simulations.
|
|
12122
|
+
*/
|
|
12123
|
+
main_menu_simulations?: Record<string, SimulationDefinition>;
|
|
12124
|
+
main_menu_background_vignette_intensity: float;
|
|
12125
|
+
main_menu_background_vignette_sharpness: float;
|
|
12126
|
+
feedback_screenshot_subfolder_name: string;
|
|
12127
|
+
feedback_screenshot_file_name: string;
|
|
12128
|
+
default_scorch_mark_color: Color;
|
|
12129
|
+
color_filters?: ColorFilterData[];
|
|
12130
|
+
clear_cursor_volume_modifier: float;
|
|
12131
|
+
weapons_in_simulation_volume_modifier: float;
|
|
12132
|
+
explosions_in_simulation_volume_modifier: float;
|
|
12133
|
+
enemies_in_simulation_volume_modifier: float;
|
|
12134
|
+
low_energy_robot_estimate_multiplier: double;
|
|
12135
|
+
asteroid_spawning_offset: SimpleBoundingBox;
|
|
12136
|
+
asteroid_fading_range: float;
|
|
12137
|
+
asteroid_spawning_with_random_orientation_max_speed: double;
|
|
12138
|
+
asteroid_position_offset_to_speed_coefficient: double;
|
|
12139
|
+
asteroid_collector_navmesh_refresh_tick_interval: uint32;
|
|
12140
|
+
asteroid_collector_blockage_update_tile_distance: uint32;
|
|
12141
|
+
asteroid_collector_max_nurbs_control_point_separation: double;
|
|
12142
|
+
asteroid_collector_static_head_swing_strength_scale: float;
|
|
12143
|
+
asteroid_collector_static_head_swing_segment_count: uint32;
|
|
12144
|
+
/**
|
|
12145
|
+
* Variables: `speed, thrust, weight, width, height`
|
|
12146
|
+
*/
|
|
12147
|
+
space_platform_acceleration_expression: MathExpression;
|
|
12148
|
+
space_platform_relative_speed_factor: double;
|
|
12149
|
+
space_platform_starfield_movement_vector: Vector;
|
|
12150
|
+
space_platform_max_size: SimpleBoundingBox;
|
|
12151
|
+
/**
|
|
12152
|
+
* Determines how fast space platforms will send items in drop slots to the surface. Each item type has its own cooldown.
|
|
12153
|
+
*/
|
|
12154
|
+
space_platform_dump_cooldown: uint32;
|
|
12155
|
+
/**
|
|
12156
|
+
* Delay after manual transfer until space platform sends items in drop slots to the surface. Overrides remaining space_platform_dump_cooldown in this instance.
|
|
12157
|
+
*/
|
|
12158
|
+
space_platform_manual_dump_cooldown: uint32;
|
|
12159
|
+
/**
|
|
12160
|
+
* Space platform remembers relative speed range which asteroids use while it moves. When the range is larger than the specified deviation, the platform will start updating cached trajectories of all asteroid chunks over multiple ticks.
|
|
12161
|
+
*/
|
|
12162
|
+
space_platform_max_relative_speed_deviation_for_asteroid_chunks_update: float;
|
|
12163
|
+
/**
|
|
12164
|
+
* How many asteroid chunks should be processed per tick, see {@link space_platform_max_relative_speed_deviation_for_asteroid_chunks_update | prototype:UtilityConstants::space_platform_max_relative_speed_deviation_for_asteroid_chunks_update}.
|
|
12165
|
+
*/
|
|
12166
|
+
space_platform_asteroid_chunk_trajectory_updates_per_tick: uint32;
|
|
12167
|
+
default_item_weight: Weight;
|
|
12168
|
+
/**
|
|
12169
|
+
* Used for "Rocket capacity" item tooltip and for comparing rocket silo lift weight in GUI to this value.
|
|
12170
|
+
*/
|
|
12171
|
+
default_rocket_lift_weight: Weight;
|
|
12172
|
+
factoriopedia_recycling_recipe_categories: RecipeCategoryID[];
|
|
12173
|
+
/**
|
|
12174
|
+
* The default value of {@link FluidBox::max_pipeline_extent | prototype:FluidBox::max_pipeline_extent}.
|
|
12175
|
+
*/
|
|
12176
|
+
default_pipeline_extent: double;
|
|
12177
|
+
/**
|
|
12178
|
+
* Must contain arrival and departure with {@link procession_style | prototype:ProcessionPrototype::procession_style} containing 0.
|
|
12179
|
+
*/
|
|
12180
|
+
default_platform_procession_set: ProcessionSet;
|
|
12181
|
+
/**
|
|
12182
|
+
* Must contain arrival and departure with {@link procession_style | prototype:ProcessionPrototype::procession_style} containing 0.
|
|
12183
|
+
*/
|
|
12184
|
+
default_planet_procession_set: ProcessionSet;
|
|
12185
|
+
/**
|
|
12186
|
+
* Radius of area where cargo pods won't land.
|
|
12187
|
+
*/
|
|
12188
|
+
landing_area_clear_zone_radius: float;
|
|
12189
|
+
/**
|
|
12190
|
+
* Max radius where cargo pods will land.
|
|
12191
|
+
*/
|
|
12192
|
+
landing_area_max_radius: float;
|
|
12193
|
+
lightning_attractor_collection_range_color: Color;
|
|
12194
|
+
lightning_attractor_protection_range_color: Color;
|
|
12195
|
+
landing_squash_immunity: MapTick;
|
|
12196
|
+
/**
|
|
12197
|
+
* Silently clamped to be between 1 tick and 5 minutes (`5 * 60 * 60` ticks).
|
|
12198
|
+
*/
|
|
12199
|
+
ejected_item_lifetime: MapTick;
|
|
12200
|
+
/**
|
|
12201
|
+
* Silently clamped to be between 0 and 1/60.
|
|
12202
|
+
*/
|
|
12203
|
+
ejected_item_speed: double;
|
|
12204
|
+
/**
|
|
12205
|
+
* Silently clamped to be between 0 and 0.99.
|
|
12206
|
+
*/
|
|
12207
|
+
ejected_item_direction_variation: double;
|
|
12208
|
+
/**
|
|
12209
|
+
* Silently clamped to be between 0 and 1.
|
|
12210
|
+
*/
|
|
12211
|
+
ejected_item_friction: double;
|
|
12212
|
+
train_visualization: TrainVisualizationConstants;
|
|
12213
|
+
/**
|
|
12214
|
+
* The strings can be entity types or custom strings.
|
|
12215
|
+
*/
|
|
12216
|
+
default_collision_masks: Record<string, CollisionMask>;
|
|
12217
|
+
show_chunk_components_collision_mask: CollisionMask;
|
|
12218
|
+
building_collision_mask: CollisionMask;
|
|
12219
|
+
water_collision_mask: TileCollisionMask;
|
|
12220
|
+
ghost_layer: CollisionLayerID;
|
|
12221
|
+
train_pushed_by_player_max_speed: double;
|
|
12222
|
+
train_pushed_by_player_max_acceleration: double;
|
|
12223
|
+
train_pushed_by_player_ignores_friction: boolean;
|
|
12224
|
+
/**
|
|
12225
|
+
* Must be >= 1.
|
|
12226
|
+
*/
|
|
12227
|
+
tooltip_monitor_edge_border: int32;
|
|
12228
|
+
/**
|
|
12229
|
+
* Must be >= 1.
|
|
12230
|
+
*/
|
|
12231
|
+
flying_text_ttl: int32;
|
|
12232
|
+
train_path_finding: TrainPathFinderConstants;
|
|
12233
|
+
/**
|
|
12234
|
+
* Will be clamped to a positive number, starting at 0.
|
|
12235
|
+
*/
|
|
12236
|
+
freezing_temperature: double;
|
|
12237
|
+
train_on_elevated_rail_shadow_shift_multiplier: Vector;
|
|
12238
|
+
/**
|
|
12239
|
+
* Must be >= 1.
|
|
12240
|
+
*/
|
|
12241
|
+
max_belt_stack_size: uint8;
|
|
12242
|
+
/**
|
|
12243
|
+
* Must be >= 1.
|
|
12244
|
+
*/
|
|
12245
|
+
inserter_hand_stack_items_per_sprite: ItemCountType;
|
|
12246
|
+
/**
|
|
12247
|
+
* Must be >= 1.
|
|
12248
|
+
*/
|
|
12249
|
+
inserter_hand_stack_max_sprites: ItemCountType;
|
|
12250
|
+
remote_view_LPF_min_cutoff_frequency: float;
|
|
12251
|
+
remote_view_LPF_max_cutoff_frequency: float;
|
|
12252
|
+
space_LPF_min_cutoff_frequency: float;
|
|
12253
|
+
space_LPF_max_cutoff_frequency: float;
|
|
12254
|
+
/**
|
|
12255
|
+
* Silently clamped to be between 0 and 1.
|
|
12256
|
+
*/
|
|
12257
|
+
walking_sound_count_reduction_rate: float;
|
|
12258
|
+
/**
|
|
12259
|
+
* Silently clamped to be between 0 and 1.
|
|
12260
|
+
*/
|
|
12261
|
+
moving_sound_count_reduction_rate: float;
|
|
12262
|
+
environment_sounds_transition_fade_in_ticks: uint32;
|
|
12263
|
+
sound_fade_ticks: uint32;
|
|
12264
|
+
starmap_orbit_default_color: Color;
|
|
12265
|
+
starmap_orbit_hovered_color: Color;
|
|
12266
|
+
starmap_orbit_clicked_color: Color;
|
|
12267
|
+
starmap_orbit_disabled_color: Color;
|
|
12268
|
+
/**
|
|
12269
|
+
* The number of ticks to show a segmented unit's health bar after fully regenerating.
|
|
12270
|
+
*/
|
|
12271
|
+
time_to_show_full_health_bar: MapTick;
|
|
12272
|
+
/**
|
|
12273
|
+
* Layer within `ground-natural` {@link tile render layer | prototype:TileRenderLayer} group, before which terrain lightmap alpha channel is copied into water mask. Decals, which need to be masked by water should have their {@link DecorativePrototype::tile_layer | prototype:DecorativePrototype::tile_layer} set to only slightly larger value than `capture_water_mask_at_layer`, to avoid risk of undefined behavior caused by rendering tiles into layers between `capture_water_mask_at_layer` and decal's `tile_layer`.
|
|
12274
|
+
*/
|
|
12275
|
+
capture_water_mask_at_layer: uint8;
|
|
12276
|
+
logistic_robots_use_busy_robots_queue: boolean;
|
|
12277
|
+
construction_robots_use_busy_robots_queue: boolean;
|
|
12278
|
+
quality_selector_dropdown_threshold: uint8;
|
|
12279
|
+
/**
|
|
12280
|
+
* Cap for how many steps of quality the output of something (miner/crafter) may be higher than the input (resource/ingredients). Must be >= 1.
|
|
12281
|
+
*/
|
|
12282
|
+
maximum_quality_jump: uint8;
|
|
12283
|
+
}
|
|
10509
12284
|
/**
|
|
10510
12285
|
* Defines the mode of operation for a {@link ValvePrototype | prototype:ValvePrototype}.
|
|
10511
12286
|
*/
|
|
@@ -10566,6 +12341,20 @@ LuaVirtualSignalPrototype | /**
|
|
|
10566
12341
|
* The prototype name.
|
|
10567
12342
|
*/
|
|
10568
12343
|
string;
|
|
12344
|
+
interface VirtualSignalPrototypeFilter {
|
|
12345
|
+
/**
|
|
12346
|
+
* The condition to filter on.
|
|
12347
|
+
*/
|
|
12348
|
+
filter: 'special-signal';
|
|
12349
|
+
/**
|
|
12350
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
12351
|
+
*/
|
|
12352
|
+
mode?: 'or' | 'and';
|
|
12353
|
+
/**
|
|
12354
|
+
* Inverts the condition. Default is `false`.
|
|
12355
|
+
*/
|
|
12356
|
+
invert?: boolean;
|
|
12357
|
+
}
|
|
10569
12358
|
interface WaitCondition {
|
|
10570
12359
|
type: WaitConditionType;
|
|
10571
12360
|
/**
|
|
@@ -10598,6 +12387,8 @@ interface WaitCondition {
|
|
|
10598
12387
|
*/
|
|
10599
12388
|
type WaitConditionType = 'time' | 'full' | 'empty' | 'not_empty' | 'item_count' | 'circuit' | 'inactivity' | 'robots_inactive' | 'fluid_count' | 'passenger_present' | 'passenger_not_present' | 'fuel_item_count_all' | 'fuel_item_count_any' | 'fuel_full' | 'destination_full_or_no_path' | 'request_satisfied' | 'request_not_satisfied' | 'all_requests_satisfied' | 'any_request_not_satisfied' | 'any_request_zero' | 'any_planet_import_zero' | 'specific_destination_full' | 'specific_destination_not_full' | 'at_station' | 'not_at_station' | 'damage_taken';
|
|
10600
12389
|
interface WallBlueprintControlBehavior {
|
|
12390
|
+
input_networks?: CircuitNetworkSelection;
|
|
12391
|
+
output_networks?: CircuitNetworkSelection;
|
|
10601
12392
|
circuit_open_gate: boolean;
|
|
10602
12393
|
circuit_read_sensor: boolean;
|
|
10603
12394
|
output_signal?: SignalID;
|
|
@@ -10731,7 +12522,7 @@ type nil = null;
|
|
|
10731
12522
|
/**
|
|
10732
12523
|
* Tables are enclosed in curly brackets, like this `{}`.
|
|
10733
12524
|
*
|
|
10734
|
-
* Throughout the API docs, the terms "array" and "dictionary" are used. These are fundamentally just {@link Lua tables |
|
|
12525
|
+
* Throughout the API docs, the terms "array" and "dictionary" are used. These are fundamentally just {@link Lua tables | https://www.lua.org/pil/2.5.html}, but have a limitation on which kind of table keys can be used. An array is a table that uses continuous integer keys starting at `1`, while a dictionary can use numeric or string keys in any order or combination.
|
|
10735
12526
|
*/
|
|
10736
12527
|
type table = Table;
|
|
10737
12528
|
/**
|