factorio-types 1.2.30 → 1.2.32
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 +28 -8
- package/dist/concepts.d.ts +7 -3
- package/dist/datacollection.d.ts +1 -1
- package/dist/defines.d.ts +258 -246
- package/dist/events.d.ts +1 -1
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +29 -3
- package/dist/types.d.ts +13 -1
- package/package.json +2 -2
package/dist/classes.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.0.
|
|
5
|
+
// Factorio version 2.0.45
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -4870,12 +4870,20 @@ interface LuaControl {
|
|
|
4870
4870
|
* Unselect any selected entity.
|
|
4871
4871
|
*/
|
|
4872
4872
|
clear_selected_entity(this: void): void;
|
|
4873
|
+
/**
|
|
4874
|
+
* Closes the Factoriopedia GUI if it's open.
|
|
4875
|
+
*/
|
|
4876
|
+
close_factoriopedia_gui(this: void): void;
|
|
4873
4877
|
/**
|
|
4874
4878
|
* Disable the flashlight.
|
|
4879
|
+
*
|
|
4880
|
+
* Applied per controller. Only supported by {@link defines.controllers.character | runtime:defines.controllers.character} and {@link defines.controllers.remote | runtime:defines.controllers.remote}.
|
|
4875
4881
|
*/
|
|
4876
4882
|
disable_flashlight(this: void): void;
|
|
4877
4883
|
/**
|
|
4878
4884
|
* Enable the flashlight.
|
|
4885
|
+
*
|
|
4886
|
+
* Applied per controller. Only supported by {@link defines.controllers.character | runtime:defines.controllers.character} and {@link defines.controllers.remote | runtime:defines.controllers.remote}.
|
|
4879
4887
|
*/
|
|
4880
4888
|
enable_flashlight(this: void): void;
|
|
4881
4889
|
/**
|
|
@@ -4933,7 +4941,7 @@ interface LuaControl {
|
|
|
4933
4941
|
*/
|
|
4934
4942
|
is_cursor_empty(this: void): boolean;
|
|
4935
4943
|
/**
|
|
4936
|
-
* Is the flashlight enabled.
|
|
4944
|
+
* Is the flashlight enabled for the current controller. Only supported by {@link defines.controllers.character | runtime:defines.controllers.character} and {@link defines.controllers.remote | runtime:defines.controllers.remote}.
|
|
4937
4945
|
*/
|
|
4938
4946
|
is_flashlight_enabled(this: void): boolean;
|
|
4939
4947
|
/**
|
|
@@ -4953,6 +4961,10 @@ interface LuaControl {
|
|
|
4953
4961
|
* @returns Whether the mining succeeded.
|
|
4954
4962
|
*/
|
|
4955
4963
|
mine_tile(this: void, tile: LuaTile): boolean;
|
|
4964
|
+
/**
|
|
4965
|
+
* Open the Factoriopedia GUI and select a given entry, if any valid ID is given.
|
|
4966
|
+
*/
|
|
4967
|
+
open_factoriopedia_gui(this: void, prototype?: FactoriopediaID): void;
|
|
4956
4968
|
/**
|
|
4957
4969
|
* Open the technology GUI and select a given technology.
|
|
4958
4970
|
* @param technology The technology to select after opening the GUI.
|
|
@@ -5174,9 +5186,9 @@ interface LuaControl {
|
|
|
5174
5186
|
*
|
|
5175
5187
|
* This is the GUI that will asked to close (by firing the {@link on_gui_closed | runtime:on_gui_closed} event) when the `Esc` or `E` keys are pressed. If this attribute is non-nil, then writing `nil` or a new GUI to it will ask the existing GUI to close.
|
|
5176
5188
|
*
|
|
5177
|
-
* Write supports any of the types. Read will return the `entity`, `equipment`, `equipment-grid`, `player`, `element`, `inventory` or `nil`.
|
|
5189
|
+
* Write supports any of the types. Read will return the `entity`, `equipment`, `equipment-grid`, `player`, `element`, `inventory`, `item` or `nil`.
|
|
5178
5190
|
*/
|
|
5179
|
-
opened?: LuaEntity | LuaItemStack | LuaEquipment | LuaEquipmentGrid | LuaPlayer | LuaGuiElement | LuaInventory | LuaLogisticNetwork | defines.gui_type;
|
|
5191
|
+
opened?: LuaEntity | LuaItemStack | LuaEquipment | LuaEquipmentGrid | LuaPlayer | LuaGuiElement | LuaInventory | LuaLogisticNetwork | LuaItemStack | defines.gui_type;
|
|
5180
5192
|
readonly opened_gui_type?: defines.gui_type;
|
|
5181
5193
|
/**
|
|
5182
5194
|
* Current item-picking state.
|
|
@@ -6229,7 +6241,7 @@ interface LuaEntity extends LuaControl {
|
|
|
6229
6241
|
/**
|
|
6230
6242
|
* @returns `true` if the rocket was successfully launched. Return value of `false` means the silo is not ready for launch.
|
|
6231
6243
|
*/
|
|
6232
|
-
launch_rocket(this: void): boolean;
|
|
6244
|
+
launch_rocket(this: void, destination?: CargoDestination): boolean;
|
|
6233
6245
|
/**
|
|
6234
6246
|
* Mines this entity.
|
|
6235
6247
|
*
|
|
@@ -7855,6 +7867,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
|
|
|
7855
7867
|
* The flags for this entity prototype.
|
|
7856
7868
|
*/
|
|
7857
7869
|
readonly flags: EntityPrototypeFlags;
|
|
7870
|
+
readonly flow_scaling?: boolean;
|
|
7858
7871
|
/**
|
|
7859
7872
|
* The fluid capacity of this entity or 0 if this entity doesn't support fluids.
|
|
7860
7873
|
*
|
|
@@ -8365,9 +8378,9 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
|
|
|
8365
8378
|
*/
|
|
8366
8379
|
readonly tank_driving?: boolean;
|
|
8367
8380
|
/**
|
|
8368
|
-
* The target temperature of this boiler prototype.
|
|
8381
|
+
* The target temperature of this boiler or fusion reactor prototype. If `nil` on a fusion reactor, the target temperature is the default temperature of the output fluid.
|
|
8369
8382
|
*/
|
|
8370
|
-
readonly target_temperature?:
|
|
8383
|
+
readonly target_temperature?: float;
|
|
8371
8384
|
/**
|
|
8372
8385
|
* The terrain friction modifier for this vehicle.
|
|
8373
8386
|
*/
|
|
@@ -8425,6 +8438,10 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
|
|
|
8425
8438
|
* Whether this logistic container prototype uses exact mode
|
|
8426
8439
|
*/
|
|
8427
8440
|
readonly use_exact_mode?: boolean;
|
|
8441
|
+
/**
|
|
8442
|
+
* If this drill uses force productivity bonus
|
|
8443
|
+
*/
|
|
8444
|
+
readonly uses_force_mining_productivity_bonus?: bool;
|
|
8428
8445
|
/**
|
|
8429
8446
|
* Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be `false`. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
|
|
8430
8447
|
*/
|
|
@@ -13547,6 +13564,9 @@ interface LuaPlayer extends LuaControl {
|
|
|
13547
13564
|
* @param table.position Where to create the pin. Required when surface is defined.
|
|
13548
13565
|
*/
|
|
13549
13566
|
add_pin(this: void, table: {
|
|
13567
|
+
label?: string;
|
|
13568
|
+
preview_distance?: uint16;
|
|
13569
|
+
always_visible?: boolean;
|
|
13550
13570
|
entity?: LuaEntity;
|
|
13551
13571
|
player?: PlayerIdentification;
|
|
13552
13572
|
surface?: SurfaceIdentification;
|
|
@@ -14982,7 +15002,7 @@ interface LuaRecipePrototype extends LuaPrototypeBase {
|
|
|
14982
15002
|
*/
|
|
14983
15003
|
readonly allowed_module_categories?: Record<string, true>;
|
|
14984
15004
|
/**
|
|
14985
|
-
*
|
|
15005
|
+
* Additional technologies listed under "Unlocked by" on a recipe's Factoriopedia page.
|
|
14986
15006
|
*/
|
|
14987
15007
|
readonly alternative_unlock_methods?: LuaTechnologyPrototype[];
|
|
14988
15008
|
/**
|
package/dist/concepts.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.0.
|
|
5
|
+
// Factorio version 2.0.45
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -1851,7 +1851,11 @@ interface EventData {
|
|
|
1851
1851
|
*
|
|
1852
1852
|
* 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.
|
|
1853
1853
|
*/
|
|
1854
|
-
type EventFilter = (
|
|
1854
|
+
type EventFilter = (LuaScriptRaisedTeleportedEventFilter | LuaPreRobotMinedEntityEventFilter | LuaScriptRaisedBuiltEventFilter | LuaPlatformMinedEntityEventFilter | LuaRobotBuiltEntityEventFilter | LuaPrePlayerMinedEntityEventFilter | LuaEntityDeconstructionCancelledEventFilter | LuaPreGhostUpgradedEventFilter | LuaPlatformBuiltEntityEventFilter | LuaPrePlatformMinedEntityEventFilter | LuaEntityClonedEventFilter | LuaPlayerRepairedEntityEventFilter | LuaPostEntityDiedEventFilter | LuaPreGhostDeconstructedEventFilter | LuaPlayerMinedEntityEventFilter | LuaSectorScannedEventFilter | LuaRobotMinedEntityEventFilter | LuaEntityMarkedForDeconstructionEventFilter | LuaScriptRaisedReviveEventFilter | LuaPlayerBuiltEntityEventFilter | LuaUpgradeCancelledEventFilter | LuaEntityDamagedEventFilter | LuaEntityDiedEventFilter | LuaEntityMarkedForUpgradeEventFilter | LuaScriptRaisedDestroyEventFilter)[];
|
|
1855
|
+
type FactoriopediaID = LuaItemPrototype | LuaFluidPrototype | LuaRecipePrototype | LuaEntityPrototype | LuaTilePrototype | LuaSpaceLocationPrototype | /**
|
|
1856
|
+
* Does not actually have an entry in Factoriopedia.
|
|
1857
|
+
*/
|
|
1858
|
+
LuaTechnologyPrototype | LuaAmmoCategoryPrototype | LuaSpaceConnectionPrototype | LuaAsteroidChunkPrototype | LuaVirtualSignalPrototype | LuaSurfacePrototype;
|
|
1855
1859
|
/**
|
|
1856
1860
|
* Identifies a statistics prototype, depending on the statistics type.
|
|
1857
1861
|
*/
|
|
@@ -5869,7 +5873,7 @@ type PropertyExpressionNames = Record<string, string>;
|
|
|
5869
5873
|
*
|
|
5870
5874
|
* 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.
|
|
5871
5875
|
*/
|
|
5872
|
-
type PrototypeFilter = (ModSettingPrototypeFilter |
|
|
5876
|
+
type PrototypeFilter = (ModSettingPrototypeFilter | SpaceLocationPrototypeFilter | DecorativePrototypeFilter | TilePrototypeFilter | AsteroidChunkPrototypeFilter | ItemPrototypeFilter | TechnologyPrototypeFilter | RecipePrototypeFilter | AchievementPrototypeFilter | EquipmentPrototypeFilter | FluidPrototypeFilter | EntityPrototypeFilter)[];
|
|
5873
5877
|
type PrototypeFilterMode = 'none' | 'whitelist' | 'blacklist';
|
|
5874
5878
|
interface PrototypeHistory {
|
|
5875
5879
|
/**
|
package/dist/datacollection.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/prototype-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.0.
|
|
5
|
+
// Factorio version 2.0.45
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
package/dist/defines.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.0.
|
|
5
|
+
// Factorio version 2.0.45
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
|
@@ -65,7 +65,7 @@ enum cargo_destination {
|
|
|
65
65
|
*/
|
|
66
66
|
station = 2,
|
|
67
67
|
/**
|
|
68
|
-
* Cargo pods will switch destination type from surface to station before starting descent if there is a station available and {@link CargoDestination::position | runtime:CargoDestination::position} has not been specified.
|
|
68
|
+
* Cargo pods will switch destination type from surface to station before starting descent if there is a station available and {@link CargoDestination::position | runtime:CargoDestination::position} has not been specified. Note, setting the destination to "surface" when the surface is the same as the one the pod is on forces it to find and set a landing position.
|
|
69
69
|
*/
|
|
70
70
|
surface = 3
|
|
71
71
|
}
|
|
@@ -982,244 +982,245 @@ enum input_action {
|
|
|
982
982
|
change_programmable_speaker_alert_parameters = 36,
|
|
983
983
|
change_programmable_speaker_circuit_parameters = 37,
|
|
984
984
|
change_programmable_speaker_parameters = 38,
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
985
|
+
change_relative_riding_state = 39,
|
|
986
|
+
change_riding_state = 40,
|
|
987
|
+
change_selector_combinator_parameters = 41,
|
|
988
|
+
change_shooting_state = 42,
|
|
989
|
+
change_train_name = 43,
|
|
990
|
+
change_train_stop_station = 44,
|
|
991
|
+
change_train_wait_condition = 45,
|
|
992
|
+
change_train_wait_condition_data = 46,
|
|
993
|
+
clear_cursor = 47,
|
|
994
|
+
connect_rolling_stock = 48,
|
|
995
|
+
copy = 49,
|
|
996
|
+
copy_entity_settings = 50,
|
|
997
|
+
copy_large_opened_blueprint = 51,
|
|
998
|
+
copy_large_opened_item = 52,
|
|
999
|
+
copy_opened_blueprint = 53,
|
|
1000
|
+
copy_opened_item = 54,
|
|
1001
|
+
craft = 55,
|
|
1002
|
+
create_space_platform = 56,
|
|
1003
|
+
cursor_split = 57,
|
|
1004
|
+
cursor_transfer = 58,
|
|
1005
|
+
custom_input = 59,
|
|
1006
|
+
cycle_blueprint_book_backwards = 60,
|
|
1007
|
+
cycle_blueprint_book_forwards = 61,
|
|
1008
|
+
cycle_quality_down = 62,
|
|
1009
|
+
cycle_quality_up = 63,
|
|
1010
|
+
deconstruct = 64,
|
|
1011
|
+
delete_blueprint_library = 65,
|
|
1012
|
+
delete_blueprint_record = 66,
|
|
1013
|
+
delete_custom_tag = 67,
|
|
1014
|
+
delete_logistic_group = 68,
|
|
1015
|
+
delete_permission_group = 69,
|
|
1016
|
+
delete_space_platform = 70,
|
|
1017
|
+
destroy_item = 71,
|
|
1018
|
+
destroy_opened_item = 72,
|
|
1019
|
+
disconnect_rolling_stock = 73,
|
|
1020
|
+
drag_decider_combinator_condition = 74,
|
|
1021
|
+
drag_decider_combinator_output = 75,
|
|
1022
|
+
drag_train_schedule = 76,
|
|
1023
|
+
drag_train_schedule_interrupt = 77,
|
|
1024
|
+
drag_train_wait_condition = 78,
|
|
1025
|
+
drop_blueprint_record = 79,
|
|
1026
|
+
drop_item = 80,
|
|
1027
|
+
edit_blueprint_tool_preview = 81,
|
|
1028
|
+
edit_custom_tag = 82,
|
|
1029
|
+
edit_display_panel = 83,
|
|
1030
|
+
edit_display_panel_always_show = 84,
|
|
1031
|
+
edit_display_panel_icon = 85,
|
|
1032
|
+
edit_display_panel_parameters = 86,
|
|
1033
|
+
edit_display_panel_show_in_chart = 87,
|
|
1034
|
+
edit_interrupt = 88,
|
|
1035
|
+
edit_permission_group = 89,
|
|
1036
|
+
edit_pin = 90,
|
|
1037
|
+
enable_transitional_requests = 91,
|
|
1038
|
+
export_blueprint = 92,
|
|
1039
|
+
fast_entity_split = 93,
|
|
1040
|
+
fast_entity_transfer = 94,
|
|
1041
|
+
flip_entity = 95,
|
|
1042
|
+
flush_opened_entity_fluid = 96,
|
|
1043
|
+
flush_opened_entity_specific_fluid = 97,
|
|
1044
|
+
go_to_train_station = 98,
|
|
1045
|
+
grab_blueprint_record = 99,
|
|
1046
|
+
gui_checked_state_changed = 100,
|
|
1047
|
+
gui_click = 101,
|
|
1048
|
+
gui_confirmed = 102,
|
|
1049
|
+
gui_elem_changed = 103,
|
|
1050
|
+
gui_hover = 104,
|
|
1051
|
+
gui_leave = 105,
|
|
1052
|
+
gui_location_changed = 106,
|
|
1053
|
+
gui_selected_tab_changed = 107,
|
|
1054
|
+
gui_selection_state_changed = 108,
|
|
1055
|
+
gui_switch_state_changed = 109,
|
|
1056
|
+
gui_text_changed = 110,
|
|
1057
|
+
gui_value_changed = 111,
|
|
1058
|
+
import_blueprint = 112,
|
|
1059
|
+
import_blueprint_string = 113,
|
|
1060
|
+
import_blueprints_filtered = 114,
|
|
1061
|
+
import_permissions_string = 115,
|
|
1062
|
+
instantly_create_space_platform = 116,
|
|
1063
|
+
inventory_split = 117,
|
|
1064
|
+
inventory_transfer = 118,
|
|
1065
|
+
land_at_planet = 119,
|
|
1066
|
+
launch_rocket = 120,
|
|
1067
|
+
lua_shortcut = 121,
|
|
1068
|
+
map_editor_action = 122,
|
|
1069
|
+
market_offer = 123,
|
|
1070
|
+
mod_settings_changed = 124,
|
|
1071
|
+
modify_decider_combinator_condition = 125,
|
|
1072
|
+
modify_decider_combinator_output = 126,
|
|
1073
|
+
move_pin = 127,
|
|
1074
|
+
move_research = 128,
|
|
1075
|
+
open_achievements_gui = 129,
|
|
1076
|
+
open_blueprint_library_gui = 130,
|
|
1077
|
+
open_blueprint_record = 131,
|
|
1078
|
+
open_bonus_gui = 132,
|
|
1079
|
+
open_character_gui = 133,
|
|
1080
|
+
open_current_vehicle_gui = 134,
|
|
1081
|
+
open_equipment = 135,
|
|
1082
|
+
open_global_electric_network_gui = 136,
|
|
1083
|
+
open_gui = 137,
|
|
1084
|
+
open_item = 138,
|
|
1085
|
+
open_logistics_gui = 139,
|
|
1086
|
+
open_mod_item = 140,
|
|
1087
|
+
open_new_platform_button_from_rocket_silo = 141,
|
|
1088
|
+
open_opened_entity_grid = 142,
|
|
1089
|
+
open_parent_of_opened_item = 143,
|
|
1090
|
+
open_production_gui = 144,
|
|
1091
|
+
open_train_gui = 145,
|
|
1092
|
+
open_train_station_gui = 146,
|
|
1093
|
+
open_trains_gui = 147,
|
|
1094
|
+
parametrise_blueprint = 148,
|
|
1095
|
+
paste_entity_settings = 149,
|
|
1096
|
+
pin_alert_group = 150,
|
|
1097
|
+
pin_custom_alert = 151,
|
|
1098
|
+
pin_search_result = 152,
|
|
1099
|
+
pipette = 153,
|
|
1100
|
+
place_equipment = 154,
|
|
1101
|
+
quick_bar_pick_slot = 155,
|
|
1102
|
+
quick_bar_set_selected_page = 156,
|
|
1103
|
+
quick_bar_set_slot = 157,
|
|
1104
|
+
reassign_blueprint = 158,
|
|
1105
|
+
redo = 159,
|
|
1106
|
+
remote_view_entity = 160,
|
|
1107
|
+
remote_view_surface = 161,
|
|
1108
|
+
remove_cables = 162,
|
|
1109
|
+
remove_decider_combinator_condition = 163,
|
|
1110
|
+
remove_decider_combinator_output = 164,
|
|
1111
|
+
remove_logistic_section = 165,
|
|
1112
|
+
remove_pin = 166,
|
|
1113
|
+
remove_train_interrupt = 167,
|
|
1114
|
+
remove_train_station = 168,
|
|
1115
|
+
rename_interrupt = 169,
|
|
1116
|
+
rename_space_platform = 170,
|
|
1117
|
+
reorder_logistic_section = 171,
|
|
1118
|
+
request_missing_construction_materials = 172,
|
|
1119
|
+
reset_assembling_machine = 173,
|
|
1120
|
+
reverse_select_area = 174,
|
|
1121
|
+
rotate_entity = 175,
|
|
1122
|
+
select_area = 176,
|
|
1123
|
+
select_asteroid_chunk_slot = 177,
|
|
1124
|
+
select_blueprint_entities = 178,
|
|
1125
|
+
select_entity_filter_slot = 179,
|
|
1126
|
+
select_entity_slot = 180,
|
|
1127
|
+
select_item_filter = 181,
|
|
1128
|
+
select_mapper_slot_from = 182,
|
|
1129
|
+
select_mapper_slot_to = 183,
|
|
1130
|
+
select_next_valid_gun = 184,
|
|
1131
|
+
select_tile_slot = 185,
|
|
1132
|
+
send_spidertron = 186,
|
|
1133
|
+
send_stack_to_trash = 187,
|
|
1134
|
+
send_stacks_to_trash = 188,
|
|
1135
|
+
send_train_to_pin_target = 189,
|
|
1136
|
+
set_behavior_mode = 190,
|
|
1137
|
+
set_car_weapons_control = 191,
|
|
1138
|
+
set_cheat_mode_quality = 192,
|
|
1139
|
+
set_circuit_condition = 193,
|
|
1140
|
+
set_circuit_mode_of_operation = 194,
|
|
1141
|
+
set_combinator_description = 195,
|
|
1142
|
+
set_copy_color_from_train_stop = 196,
|
|
1143
|
+
set_deconstruction_item_tile_selection_mode = 197,
|
|
1144
|
+
set_deconstruction_item_trees_and_rocks_only = 198,
|
|
1145
|
+
set_entity_color = 199,
|
|
1146
|
+
set_entity_energy_property = 200,
|
|
1147
|
+
set_filter = 201,
|
|
1148
|
+
set_ghost_cursor = 202,
|
|
1149
|
+
set_heat_interface_mode = 203,
|
|
1150
|
+
set_heat_interface_temperature = 204,
|
|
1151
|
+
set_infinity_container_filter_item = 205,
|
|
1152
|
+
set_infinity_container_remove_unfiltered_items = 206,
|
|
1153
|
+
set_infinity_pipe_filter = 207,
|
|
1154
|
+
set_inserter_max_stack_size = 208,
|
|
1155
|
+
set_inventory_bar = 209,
|
|
1156
|
+
set_lamp_always_on = 210,
|
|
1157
|
+
set_linked_container_link_i_d = 211,
|
|
1158
|
+
set_loader_belt_stack_size_override = 212,
|
|
1159
|
+
set_logistic_filter_item = 213,
|
|
1160
|
+
set_logistic_network_name = 214,
|
|
1161
|
+
set_logistic_section_active = 215,
|
|
1162
|
+
set_player_color = 216,
|
|
1163
|
+
set_pump_fluid_filter = 217,
|
|
1164
|
+
set_request_from_buffers = 218,
|
|
1165
|
+
set_research_finished_stops_game = 219,
|
|
1166
|
+
set_rocket_silo_send_to_orbit_automated_mode = 220,
|
|
1167
|
+
set_schedule_record_allow_unloading = 221,
|
|
1168
|
+
set_signal = 222,
|
|
1169
|
+
set_splitter_priority = 223,
|
|
1170
|
+
set_spoil_priority = 224,
|
|
1171
|
+
set_train_stop_priority = 225,
|
|
1172
|
+
set_train_stopped = 226,
|
|
1173
|
+
set_trains_limit = 227,
|
|
1174
|
+
set_turret_ignore_unlisted = 228,
|
|
1175
|
+
set_use_inserter_filters = 229,
|
|
1176
|
+
set_vehicle_automatic_targeting_parameters = 230,
|
|
1177
|
+
setup_assembling_machine = 231,
|
|
1178
|
+
setup_blueprint = 232,
|
|
1179
|
+
setup_single_blueprint_record = 233,
|
|
1180
|
+
spawn_item = 234,
|
|
1181
|
+
spectator_change_surface = 235,
|
|
1182
|
+
stack_split = 236,
|
|
1183
|
+
stack_transfer = 237,
|
|
1184
|
+
start_repair = 238,
|
|
1185
|
+
start_research = 239,
|
|
1186
|
+
start_walking = 240,
|
|
1187
|
+
stop_drag_build = 241,
|
|
1188
|
+
swap_asteroid_chunk_slots = 242,
|
|
1189
|
+
swap_entity_filter_slots = 243,
|
|
1190
|
+
swap_entity_slots = 244,
|
|
1191
|
+
swap_infinity_container_filter_items = 245,
|
|
1192
|
+
swap_item_filters = 246,
|
|
1193
|
+
swap_logistic_filter_items = 247,
|
|
1194
|
+
swap_mappers = 248,
|
|
1195
|
+
swap_tile_slots = 249,
|
|
1196
|
+
switch_connect_to_logistic_network = 250,
|
|
1197
|
+
switch_constant_combinator_state = 251,
|
|
1198
|
+
switch_inserter_filter_mode_state = 252,
|
|
1199
|
+
switch_loader_filter_mode = 253,
|
|
1200
|
+
switch_mining_drill_filter_mode_state = 254,
|
|
1201
|
+
switch_power_switch_state = 255,
|
|
1202
|
+
take_equipment = 256,
|
|
1203
|
+
toggle_artillery_auto_targeting = 257,
|
|
1204
|
+
toggle_deconstruction_item_entity_filter_mode = 258,
|
|
1205
|
+
toggle_deconstruction_item_tile_filter_mode = 259,
|
|
1206
|
+
toggle_driving = 260,
|
|
1207
|
+
toggle_enable_vehicle_logistics_while_moving = 261,
|
|
1208
|
+
toggle_entity_logistic_requests = 262,
|
|
1209
|
+
toggle_equipment_movement_bonus = 263,
|
|
1210
|
+
toggle_map_editor = 264,
|
|
1211
|
+
toggle_personal_logistic_requests = 265,
|
|
1212
|
+
toggle_personal_roboport = 266,
|
|
1213
|
+
toggle_selected_entity = 267,
|
|
1214
|
+
toggle_show_entity_info = 268,
|
|
1215
|
+
translate_string = 269,
|
|
1216
|
+
trash_not_requested_items = 270,
|
|
1217
|
+
undo = 271,
|
|
1218
|
+
upgrade = 272,
|
|
1219
|
+
upgrade_opened_blueprint_by_item = 273,
|
|
1220
|
+
upgrade_opened_blueprint_by_record = 274,
|
|
1221
|
+
use_item = 275,
|
|
1222
|
+
wire_dragging = 276,
|
|
1223
|
+
write_to_console = 277
|
|
1223
1224
|
}
|
|
1224
1225
|
enum input_method {
|
|
1225
1226
|
game_controller = 1,
|
|
@@ -1292,13 +1293,24 @@ enum inventory {
|
|
|
1292
1293
|
turret_ammo = 42
|
|
1293
1294
|
}
|
|
1294
1295
|
enum logistic_member_index {
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1296
|
+
car_provider = 10,
|
|
1297
|
+
car_requester = 9,
|
|
1298
|
+
character_provider = 5,
|
|
1299
|
+
character_requester = 3,
|
|
1300
|
+
character_storage = 4,
|
|
1301
|
+
generic_on_off_behavior = 6,
|
|
1299
1302
|
logistic_container = 0,
|
|
1300
|
-
|
|
1301
|
-
|
|
1303
|
+
logistic_container_trash_provider = 1,
|
|
1304
|
+
roboport_provider = 11,
|
|
1305
|
+
roboport_requester = 12,
|
|
1306
|
+
rocket_silo_provider = 13,
|
|
1307
|
+
rocket_silo_requester = 14,
|
|
1308
|
+
rocket_silo_trash_provider = 15,
|
|
1309
|
+
space_platform_hub_provider = 17,
|
|
1310
|
+
space_platform_hub_requester = 16,
|
|
1311
|
+
spidertron_provider = 8,
|
|
1312
|
+
spidertron_requester = 7,
|
|
1313
|
+
vehicle_storage = 2
|
|
1302
1314
|
}
|
|
1303
1315
|
enum logistic_mode {
|
|
1304
1316
|
active_provider = 1,
|
package/dist/events.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.0.
|
|
5
|
+
// Factorio version 2.0.45
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
package/dist/global.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.0.
|
|
5
|
+
// Factorio version 2.0.45
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/prototypes.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/prototype-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.0.
|
|
5
|
+
// Factorio version 2.0.45
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -2474,6 +2474,10 @@ interface DecorativePrototype extends Prototype {
|
|
|
2474
2474
|
decal_overdraw_priority?: uint16;
|
|
2475
2475
|
grows_through_rail_path?: boolean;
|
|
2476
2476
|
minimal_separation?: double;
|
|
2477
|
+
/**
|
|
2478
|
+
* Loaded only if `render_layer` = "decals". Value lower than 1 enables masking by water for decals with `tile_layer` greater or equal to {@link UtilityConstants::capture_water_mask_at_layer | prototype:UtilityConstants::capture_water_mask_at_layer}. Water tiles must use water `tile-effect` with {@link WaterTileEffectParameters::lightmap_alpha | prototype:WaterTileEffectParameters::lightmap_alpha} set to 0 or value less than 1. Graphics option `Occlude light sprites` must be enabled, as water mask is captured into terrain lightmap alpha channel. Tiles rendered in layer between {@link UtilityConstants::capture_water_mask_at_layer | prototype:UtilityConstants::capture_water_mask_at_layer} and decal's `tile_layer` will likely also mask decals in some way, as water mask will likely be 0 at their position, but this is considered undefined behavior.
|
|
2479
|
+
*/
|
|
2480
|
+
opacity_over_water?: float;
|
|
2477
2481
|
/**
|
|
2478
2482
|
* Must contain at least 1 picture.
|
|
2479
2483
|
*/
|
|
@@ -2493,7 +2497,7 @@ interface DecorativePrototype extends Prototype {
|
|
|
2493
2497
|
stateless_visualisation_variations?: StatelessVisualisations[];
|
|
2494
2498
|
target_count?: uint16;
|
|
2495
2499
|
/**
|
|
2496
|
-
* Mandatory if `render_layer` = "decals". This int16 is converted to a {@link
|
|
2500
|
+
* Mandatory if `render_layer` = "decals". This int16 is converted to a {@link TileRenderLayer | prototype:TileRenderLayer} internally. It is offset from `ground-natural`.
|
|
2497
2501
|
*/
|
|
2498
2502
|
tile_layer?: int16;
|
|
2499
2503
|
/**
|
|
@@ -4073,6 +4077,10 @@ interface FusionReactorPrototype extends EntityWithOwnerPrototype {
|
|
|
4073
4077
|
* Cannot be negative.
|
|
4074
4078
|
*/
|
|
4075
4079
|
power_input: Energy;
|
|
4080
|
+
/**
|
|
4081
|
+
* The temperature of the fluid to output. If not defined, the default temperature of the output fluid will be used.
|
|
4082
|
+
*/
|
|
4083
|
+
target_temperature?: float;
|
|
4076
4084
|
/**
|
|
4077
4085
|
* If set to true, only North and East direction will be buildable.
|
|
4078
4086
|
*/
|
|
@@ -5509,6 +5517,7 @@ interface MiningDrillPrototype extends EntityWithOwnerPrototype {
|
|
|
5509
5517
|
*/
|
|
5510
5518
|
resource_searching_radius: double;
|
|
5511
5519
|
shuffle_resources_to_mine?: boolean;
|
|
5520
|
+
uses_force_mining_productivity_bonus?: boolean;
|
|
5512
5521
|
/**
|
|
5513
5522
|
* The position where any item results are placed, when the mining drill is facing north (default direction). If the drill does not produce any solid items but uses a fluidbox output instead (e.g. pumpjacks), a vector of `{0,0}` disables the yellow arrow alt-mode indicator for the placed item location.
|
|
5514
5523
|
*/
|
|
@@ -6204,6 +6213,10 @@ interface PumpPrototype extends EntityWithOwnerPrototype {
|
|
|
6204
6213
|
* The amount of energy the pump uses.
|
|
6205
6214
|
*/
|
|
6206
6215
|
energy_usage: Energy;
|
|
6216
|
+
/**
|
|
6217
|
+
* When true, pump will reduce pumping speed based on fullness of the input fluid segment.
|
|
6218
|
+
*/
|
|
6219
|
+
flow_scaling?: boolean;
|
|
6207
6220
|
fluid_animation?: Animation4Way;
|
|
6208
6221
|
/**
|
|
6209
6222
|
* The area of the entity where fluid travels.
|
|
@@ -6623,6 +6636,9 @@ interface RecipePrototype extends Prototype {
|
|
|
6623
6636
|
* Sets the {@link module categories | prototype:ModuleCategory} that are allowed to be used with this recipe.
|
|
6624
6637
|
*/
|
|
6625
6638
|
allowed_module_categories?: ModuleCategoryID[];
|
|
6639
|
+
/**
|
|
6640
|
+
* Additional technologies to list under "Unlocked by" on a recipe's Factoriopedia page.
|
|
6641
|
+
*/
|
|
6626
6642
|
alternative_unlock_methods?: TechnologyID[];
|
|
6627
6643
|
/**
|
|
6628
6644
|
* Whether the "Made in: <Machine>" part of the tool-tip should always be present, and not only when the recipe can't be hand-crafted.
|
|
@@ -7260,6 +7276,7 @@ interface RocketSiloPrototype extends AssemblingMachinePrototype {
|
|
|
7260
7276
|
* Drawn instead of `base_day_sprite` during the night, that is when {@link LuaSurface::darkness | runtime:LuaSurface::darkness} is larger than 0.3.
|
|
7261
7277
|
*/
|
|
7262
7278
|
base_night_sprite?: Sprite;
|
|
7279
|
+
can_launch_without_landing_pads?: boolean;
|
|
7263
7280
|
/**
|
|
7264
7281
|
* Must have exactly one entry in {@link CargoStationParameters::hatch_definitions | prototype:CargoStationParameters::hatch_definitions}.
|
|
7265
7282
|
*/
|
|
@@ -9681,6 +9698,10 @@ interface UtilityConstants extends PrototypeBase {
|
|
|
9681
9698
|
building_no_tint: Color;
|
|
9682
9699
|
building_not_buildable_tint: Color;
|
|
9683
9700
|
capsule_range_visualization_color: Color;
|
|
9701
|
+
/**
|
|
9702
|
+
* Layer within `ground-natural` {@link tile render layer | prototype:TileRenderLayer} group, before which terrain lightmap alpha channel is copiend 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`.
|
|
9703
|
+
*/
|
|
9704
|
+
capture_water_mask_at_layer: uint8;
|
|
9684
9705
|
/**
|
|
9685
9706
|
* Chart means map and minimap.
|
|
9686
9707
|
*/
|
|
@@ -9879,9 +9900,13 @@ interface UtilityConstants extends PrototypeBase {
|
|
|
9879
9900
|
*/
|
|
9880
9901
|
space_platform_acceleration_expression: MathExpression;
|
|
9881
9902
|
/**
|
|
9882
|
-
* Determines how fast space platforms will send items in
|
|
9903
|
+
* Determines how fast space platforms will send items in drop slots to the surface. Each item type has its own cooldown.
|
|
9883
9904
|
*/
|
|
9884
9905
|
space_platform_dump_cooldown: uint32;
|
|
9906
|
+
/**
|
|
9907
|
+
* Delay after manual transfer until space platform sends items in drop slots to the surface. Overrides remaining space_platform_dump_cooldown in this instance.
|
|
9908
|
+
*/
|
|
9909
|
+
space_platform_manual_dump_cooldown: uint32;
|
|
9885
9910
|
space_platform_max_size: SimpleBoundingBox;
|
|
9886
9911
|
space_platform_relative_speed_factor: double;
|
|
9887
9912
|
space_platform_starfield_movement_vector: Vector;
|
|
@@ -10311,6 +10336,7 @@ interface UtilitySprites extends PrototypeBase {
|
|
|
10311
10336
|
entity_info_dark_background: Sprite;
|
|
10312
10337
|
equipment_collision: Sprite;
|
|
10313
10338
|
equipment_grid: Sprite;
|
|
10339
|
+
equipment_grid_small: Sprite;
|
|
10314
10340
|
equipment_slot: Sprite;
|
|
10315
10341
|
expand: Sprite;
|
|
10316
10342
|
expand_dots: Sprite;
|
package/dist/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Factorio API reference https://lua-api.factorio.com/latest/index.html
|
|
3
3
|
// Generated from JSON source https://lua-api.factorio.com/latest/prototype-api.json
|
|
4
4
|
// Definition source https://github.com/sguest/factorio-types
|
|
5
|
-
// Factorio version 2.0.
|
|
5
|
+
// Factorio version 2.0.45
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -9794,6 +9794,10 @@ interface SpriteParameters extends SpriteSource {
|
|
|
9794
9794
|
* Only loaded if this is an icon, that is it has the flag `"group=icon"` or `"group=gui"`. Will be clamped to range `[0, 5]`.
|
|
9795
9795
|
*/
|
|
9796
9796
|
mipmap_count?: uint8;
|
|
9797
|
+
/**
|
|
9798
|
+
* Loaded only if `draw_as_shadow`, `draw_as_glow` and `draw_as_light` are `false`, and only by sprites used by tile renderer (decals and underwater patches). Purspose of setting this to `false` is to preserve water mask from sprites that are supposed to be drawn under the water.
|
|
9799
|
+
*/
|
|
9800
|
+
occludes_light?: bool;
|
|
9797
9801
|
priority?: SpritePriority;
|
|
9798
9802
|
/**
|
|
9799
9803
|
* Whether to rotate the `shift` alongside the sprite's rotation. This only applies to sprites which are procedurally rotated by the game engine (like projectiles, wires, inserter hands, etc).
|
|
@@ -10973,6 +10977,10 @@ interface TileTransitions {
|
|
|
10973
10977
|
auxiliary_effect_mask_spritesheet?: FileName;
|
|
10974
10978
|
background_enabled?: boolean;
|
|
10975
10979
|
background_layer_group?: TileRenderLayer;
|
|
10980
|
+
/**
|
|
10981
|
+
* If drawing under water which is supposed to yield water mask, set this to `false` to not mess up the water mask.
|
|
10982
|
+
*/
|
|
10983
|
+
background_layer_occludes_light?: boolean;
|
|
10976
10984
|
background_layer_offset?: int8;
|
|
10977
10985
|
/**
|
|
10978
10986
|
* Overrides the `background` definition inside `layout`.
|
|
@@ -12506,6 +12514,10 @@ interface WaterTileEffectParameters {
|
|
|
12506
12514
|
far_zoom?: float;
|
|
12507
12515
|
foam_color: Color;
|
|
12508
12516
|
foam_color_multiplier: float;
|
|
12517
|
+
/**
|
|
12518
|
+
* Value 0 makes water appear as water in water mask, but does not occlude lights, and doesn't overwrite lightmap alpha drawn to pixel previously (by background layer of tile transition, or underwater sprite). Light emitted by water-like-tile (for example lava) will blend additively with previously rendered light. Value 1 makes water occlude lights, but won't be recognized as water in water mask used for masking decals by water.
|
|
12519
|
+
*/
|
|
12520
|
+
lightmap_alpha?: float;
|
|
12509
12521
|
near_zoom?: float;
|
|
12510
12522
|
reflection_threshold: float | [
|
|
12511
12523
|
float,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "factorio-types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.32",
|
|
4
4
|
"description": "Typescript declarations for the Factorio mod API",
|
|
5
5
|
"main": "index.d.ts",
|
|
6
6
|
"repository": "https://github.com/sguest/factorio-types.git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"src/**/*.d.ts",
|
|
24
24
|
"dist/**/*.d.ts"
|
|
25
25
|
],
|
|
26
|
-
"factorioVersion": "2.0.
|
|
26
|
+
"factorioVersion": "2.0.45",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"lua-types": "^2.13.1"
|
|
29
29
|
},
|