factorio-types 1.2.29 → 1.2.31
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 +24 -8
- package/dist/concepts.d.ts +3 -3
- package/dist/datacollection.d.ts +1 -1
- package/dist/defines.d.ts +19 -8
- package/dist/events.d.ts +1 -1
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +25 -3
- package/dist/types.d.ts +41 -9
- 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.44
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -181,6 +181,7 @@ interface LuaAgriculturalTowerControlBehavior extends LuaGenericOnOffControlBeha
|
|
|
181
181
|
interface LuaAirbornePollutantPrototype extends LuaPrototypeBase {
|
|
182
182
|
readonly affects_evolution: boolean;
|
|
183
183
|
readonly chart_color: Color;
|
|
184
|
+
readonly damages_trees: boolean;
|
|
184
185
|
readonly localised_name_with_amount_key: string;
|
|
185
186
|
/**
|
|
186
187
|
* The class name of this object. Available even when `valid` is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
|
|
@@ -4869,12 +4870,20 @@ interface LuaControl {
|
|
|
4869
4870
|
* Unselect any selected entity.
|
|
4870
4871
|
*/
|
|
4871
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;
|
|
4872
4877
|
/**
|
|
4873
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}.
|
|
4874
4881
|
*/
|
|
4875
4882
|
disable_flashlight(this: void): void;
|
|
4876
4883
|
/**
|
|
4877
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}.
|
|
4878
4887
|
*/
|
|
4879
4888
|
enable_flashlight(this: void): void;
|
|
4880
4889
|
/**
|
|
@@ -4932,7 +4941,7 @@ interface LuaControl {
|
|
|
4932
4941
|
*/
|
|
4933
4942
|
is_cursor_empty(this: void): boolean;
|
|
4934
4943
|
/**
|
|
4935
|
-
* 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}.
|
|
4936
4945
|
*/
|
|
4937
4946
|
is_flashlight_enabled(this: void): boolean;
|
|
4938
4947
|
/**
|
|
@@ -4952,6 +4961,10 @@ interface LuaControl {
|
|
|
4952
4961
|
* @returns Whether the mining succeeded.
|
|
4953
4962
|
*/
|
|
4954
4963
|
mine_tile(this: void, tile: LuaTile): boolean;
|
|
4964
|
+
/**
|
|
4965
|
+
* Open the Factoriopedia GUI and select a given entry.
|
|
4966
|
+
*/
|
|
4967
|
+
open_factoriopedia_gui(this: void, prototype?: LuaPrototypeBase): void;
|
|
4955
4968
|
/**
|
|
4956
4969
|
* Open the technology GUI and select a given technology.
|
|
4957
4970
|
* @param technology The technology to select after opening the GUI.
|
|
@@ -5173,9 +5186,9 @@ interface LuaControl {
|
|
|
5173
5186
|
*
|
|
5174
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.
|
|
5175
5188
|
*
|
|
5176
|
-
* 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`.
|
|
5177
5190
|
*/
|
|
5178
|
-
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;
|
|
5179
5192
|
readonly opened_gui_type?: defines.gui_type;
|
|
5180
5193
|
/**
|
|
5181
5194
|
* Current item-picking state.
|
|
@@ -6228,7 +6241,7 @@ interface LuaEntity extends LuaControl {
|
|
|
6228
6241
|
/**
|
|
6229
6242
|
* @returns `true` if the rocket was successfully launched. Return value of `false` means the silo is not ready for launch.
|
|
6230
6243
|
*/
|
|
6231
|
-
launch_rocket(this: void): boolean;
|
|
6244
|
+
launch_rocket(this: void, destination?: CargoDestination): boolean;
|
|
6232
6245
|
/**
|
|
6233
6246
|
* Mines this entity.
|
|
6234
6247
|
*
|
|
@@ -8364,9 +8377,9 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
|
|
|
8364
8377
|
*/
|
|
8365
8378
|
readonly tank_driving?: boolean;
|
|
8366
8379
|
/**
|
|
8367
|
-
* The target temperature of this boiler prototype.
|
|
8380
|
+
* 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.
|
|
8368
8381
|
*/
|
|
8369
|
-
readonly target_temperature?:
|
|
8382
|
+
readonly target_temperature?: float;
|
|
8370
8383
|
/**
|
|
8371
8384
|
* The terrain friction modifier for this vehicle.
|
|
8372
8385
|
*/
|
|
@@ -13546,6 +13559,9 @@ interface LuaPlayer extends LuaControl {
|
|
|
13546
13559
|
* @param table.position Where to create the pin. Required when surface is defined.
|
|
13547
13560
|
*/
|
|
13548
13561
|
add_pin(this: void, table: {
|
|
13562
|
+
label?: string;
|
|
13563
|
+
preview_distance?: uint16;
|
|
13564
|
+
always_visible?: boolean;
|
|
13549
13565
|
entity?: LuaEntity;
|
|
13550
13566
|
player?: PlayerIdentification;
|
|
13551
13567
|
surface?: SurfaceIdentification;
|
|
@@ -13903,7 +13919,7 @@ interface LuaPlayer extends LuaControl {
|
|
|
13903
13919
|
set_controller(this: void, table: {
|
|
13904
13920
|
type: defines.controllers;
|
|
13905
13921
|
character?: LuaEntity;
|
|
13906
|
-
waypoints?: CutsceneWaypoint;
|
|
13922
|
+
waypoints?: CutsceneWaypoint[];
|
|
13907
13923
|
start_position?: MapPosition;
|
|
13908
13924
|
start_zoom?: double;
|
|
13909
13925
|
final_transition_time?: uint;
|
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.44
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -1851,7 +1851,7 @@ 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
1855
|
/**
|
|
1856
1856
|
* Identifies a statistics prototype, depending on the statistics type.
|
|
1857
1857
|
*/
|
|
@@ -5869,7 +5869,7 @@ type PropertyExpressionNames = Record<string, string>;
|
|
|
5869
5869
|
*
|
|
5870
5870
|
* 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
5871
|
*/
|
|
5872
|
-
type PrototypeFilter = (ModSettingPrototypeFilter |
|
|
5872
|
+
type PrototypeFilter = (ModSettingPrototypeFilter | SpaceLocationPrototypeFilter | DecorativePrototypeFilter | TilePrototypeFilter | AsteroidChunkPrototypeFilter | ItemPrototypeFilter | TechnologyPrototypeFilter | RecipePrototypeFilter | AchievementPrototypeFilter | EquipmentPrototypeFilter | FluidPrototypeFilter | EntityPrototypeFilter)[];
|
|
5873
5873
|
type PrototypeFilterMode = 'none' | 'whitelist' | 'blacklist';
|
|
5874
5874
|
interface PrototypeHistory {
|
|
5875
5875
|
/**
|
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.44
|
|
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.44
|
|
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
|
}
|
|
@@ -1292,13 +1292,24 @@ enum inventory {
|
|
|
1292
1292
|
turret_ammo = 42
|
|
1293
1293
|
}
|
|
1294
1294
|
enum logistic_member_index {
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1295
|
+
car_provider = 10,
|
|
1296
|
+
car_requester = 9,
|
|
1297
|
+
character_provider = 5,
|
|
1298
|
+
character_requester = 3,
|
|
1299
|
+
character_storage = 4,
|
|
1300
|
+
generic_on_off_behavior = 6,
|
|
1299
1301
|
logistic_container = 0,
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
+
logistic_container_trash_provider = 1,
|
|
1303
|
+
roboport_provider = 11,
|
|
1304
|
+
roboport_requester = 12,
|
|
1305
|
+
rocket_silo_provider = 13,
|
|
1306
|
+
rocket_silo_requester = 14,
|
|
1307
|
+
rocket_silo_trash_provider = 15,
|
|
1308
|
+
space_platform_hub_provider = 17,
|
|
1309
|
+
space_platform_hub_requester = 16,
|
|
1310
|
+
spidertron_provider = 8,
|
|
1311
|
+
spidertron_requester = 7,
|
|
1312
|
+
vehicle_storage = 2
|
|
1302
1313
|
}
|
|
1303
1314
|
enum logistic_mode {
|
|
1304
1315
|
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.44
|
|
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.44
|
|
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.44
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -196,6 +196,10 @@ interface AirbornePollutantPrototype extends Prototype {
|
|
|
196
196
|
*/
|
|
197
197
|
affects_water_tint: boolean;
|
|
198
198
|
chart_color: Color;
|
|
199
|
+
/**
|
|
200
|
+
* If true, trees will occasionally take damage from this pollutant type. When they do, some amount of pollution is removed from the chunk equal to the map's `pollution_restored_per_tree_damage` setting.
|
|
201
|
+
*/
|
|
202
|
+
damages_trees?: boolean;
|
|
199
203
|
icon: Sprite;
|
|
200
204
|
/**
|
|
201
205
|
* The translated plural string key to use when displaying this pollution's name with an amount. See {@link Tutorial:Localisation | https://wiki.factorio.com/Tutorial:Localisation}.
|
|
@@ -2470,6 +2474,10 @@ interface DecorativePrototype extends Prototype {
|
|
|
2470
2474
|
decal_overdraw_priority?: uint16;
|
|
2471
2475
|
grows_through_rail_path?: boolean;
|
|
2472
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;
|
|
2473
2481
|
/**
|
|
2474
2482
|
* Must contain at least 1 picture.
|
|
2475
2483
|
*/
|
|
@@ -2489,7 +2497,7 @@ interface DecorativePrototype extends Prototype {
|
|
|
2489
2497
|
stateless_visualisation_variations?: StatelessVisualisations[];
|
|
2490
2498
|
target_count?: uint16;
|
|
2491
2499
|
/**
|
|
2492
|
-
* 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`.
|
|
2493
2501
|
*/
|
|
2494
2502
|
tile_layer?: int16;
|
|
2495
2503
|
/**
|
|
@@ -4069,6 +4077,10 @@ interface FusionReactorPrototype extends EntityWithOwnerPrototype {
|
|
|
4069
4077
|
* Cannot be negative.
|
|
4070
4078
|
*/
|
|
4071
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;
|
|
4072
4084
|
/**
|
|
4073
4085
|
* If set to true, only North and East direction will be buildable.
|
|
4074
4086
|
*/
|
|
@@ -7256,6 +7268,7 @@ interface RocketSiloPrototype extends AssemblingMachinePrototype {
|
|
|
7256
7268
|
* Drawn instead of `base_day_sprite` during the night, that is when {@link LuaSurface::darkness | runtime:LuaSurface::darkness} is larger than 0.3.
|
|
7257
7269
|
*/
|
|
7258
7270
|
base_night_sprite?: Sprite;
|
|
7271
|
+
can_launch_without_landing_pads?: boolean;
|
|
7259
7272
|
/**
|
|
7260
7273
|
* Must have exactly one entry in {@link CargoStationParameters::hatch_definitions | prototype:CargoStationParameters::hatch_definitions}.
|
|
7261
7274
|
*/
|
|
@@ -9677,6 +9690,10 @@ interface UtilityConstants extends PrototypeBase {
|
|
|
9677
9690
|
building_no_tint: Color;
|
|
9678
9691
|
building_not_buildable_tint: Color;
|
|
9679
9692
|
capsule_range_visualization_color: Color;
|
|
9693
|
+
/**
|
|
9694
|
+
* 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`.
|
|
9695
|
+
*/
|
|
9696
|
+
capture_water_mask_at_layer: uint8;
|
|
9680
9697
|
/**
|
|
9681
9698
|
* Chart means map and minimap.
|
|
9682
9699
|
*/
|
|
@@ -9875,9 +9892,13 @@ interface UtilityConstants extends PrototypeBase {
|
|
|
9875
9892
|
*/
|
|
9876
9893
|
space_platform_acceleration_expression: MathExpression;
|
|
9877
9894
|
/**
|
|
9878
|
-
* Determines how fast space platforms will send items in
|
|
9895
|
+
* Determines how fast space platforms will send items in drop slots to the surface. Each item type has its own cooldown.
|
|
9879
9896
|
*/
|
|
9880
9897
|
space_platform_dump_cooldown: uint32;
|
|
9898
|
+
/**
|
|
9899
|
+
* Delay after manual transfer until space platform sends items in drop slots to the surface. Overrides remaining space_platform_dump_cooldown in this instance.
|
|
9900
|
+
*/
|
|
9901
|
+
space_platform_manual_dump_cooldown: uint32;
|
|
9881
9902
|
space_platform_max_size: SimpleBoundingBox;
|
|
9882
9903
|
space_platform_relative_speed_factor: double;
|
|
9883
9904
|
space_platform_starfield_movement_vector: Vector;
|
|
@@ -10307,6 +10328,7 @@ interface UtilitySprites extends PrototypeBase {
|
|
|
10307
10328
|
entity_info_dark_background: Sprite;
|
|
10308
10329
|
equipment_collision: Sprite;
|
|
10309
10330
|
equipment_grid: Sprite;
|
|
10331
|
+
equipment_grid_small: Sprite;
|
|
10310
10332
|
equipment_slot: Sprite;
|
|
10311
10333
|
expand: Sprite;
|
|
10312
10334
|
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.44
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -5955,19 +5955,26 @@ interface MainSound {
|
|
|
5955
5955
|
* Can't be used when `match_progress_to_activity` is `true`.
|
|
5956
5956
|
*/
|
|
5957
5957
|
fade_out_ticks?: uint32;
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5958
|
+
/**
|
|
5959
|
+
* Unused when {@link WorkingSound::persistent | prototype:WorkingSound::persistent} is `true`.
|
|
5960
|
+
*/
|
|
5961
|
+
match_progress_to_activity?: bool;
|
|
5962
|
+
match_speed_to_activity?: bool;
|
|
5963
|
+
match_volume_to_activity?: bool;
|
|
5961
5964
|
/**
|
|
5962
5965
|
* Array of {@link WorkingVisualisation::name | prototype:WorkingVisualisation::name}s, individual names cannot be empty.
|
|
5963
5966
|
*
|
|
5964
5967
|
* The `sound` is played when at least one of the specified working visualisations is drawn.
|
|
5968
|
+
*
|
|
5969
|
+
* Unused when {@link WorkingSound::persistent | prototype:WorkingSound::persistent} is `true`.
|
|
5965
5970
|
*/
|
|
5966
5971
|
play_for_working_visualisations?: string[];
|
|
5967
5972
|
/**
|
|
5968
5973
|
* Modifies how often the sound is played.
|
|
5969
5974
|
*
|
|
5970
5975
|
* Silently clamped to the [0.0, 1.0] range.
|
|
5976
|
+
*
|
|
5977
|
+
* Unused when {@link WorkingSound::persistent | prototype:WorkingSound::persistent} is `true`.
|
|
5971
5978
|
* @example ```
|
|
5972
5979
|
probability = 1 / (3 * 60) -- average pause between the sound is 3 seconds
|
|
5973
5980
|
```
|
|
@@ -9787,6 +9794,10 @@ interface SpriteParameters extends SpriteSource {
|
|
|
9787
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]`.
|
|
9788
9795
|
*/
|
|
9789
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;
|
|
9790
9801
|
priority?: SpritePriority;
|
|
9791
9802
|
/**
|
|
9792
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).
|
|
@@ -10966,6 +10977,10 @@ interface TileTransitions {
|
|
|
10966
10977
|
auxiliary_effect_mask_spritesheet?: FileName;
|
|
10967
10978
|
background_enabled?: boolean;
|
|
10968
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;
|
|
10969
10984
|
background_layer_offset?: int8;
|
|
10970
10985
|
/**
|
|
10971
10986
|
* Overrides the `background` definition inside `layout`.
|
|
@@ -12499,6 +12514,10 @@ interface WaterTileEffectParameters {
|
|
|
12499
12514
|
far_zoom?: float;
|
|
12500
12515
|
foam_color: Color;
|
|
12501
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;
|
|
12502
12521
|
near_zoom?: float;
|
|
12503
12522
|
reflection_threshold: float | [
|
|
12504
12523
|
float,
|
|
@@ -12595,18 +12614,26 @@ working_sound =
|
|
|
12595
12614
|
type WorkingSound = {
|
|
12596
12615
|
/**
|
|
12597
12616
|
* Might not work with all entities that use working_sound.
|
|
12617
|
+
*
|
|
12618
|
+
* Unused when `persistent` is `true`.
|
|
12598
12619
|
*/
|
|
12599
12620
|
activate_sound?: Sound;
|
|
12600
12621
|
/**
|
|
12601
12622
|
* Might not work with all entities that use working_sound.
|
|
12623
|
+
*
|
|
12624
|
+
* Unused when `persistent` is `true`.
|
|
12602
12625
|
*/
|
|
12603
12626
|
deactivate_sound?: Sound;
|
|
12604
12627
|
/**
|
|
12605
|
-
* If `true`, `max_sounds_per_prototype`
|
|
12628
|
+
* If `true`, entities playing their extra sound don't count towards `max_sounds_per_prototype` limit. 'extra sound' refers to `idle_sound`, `activate_sound` or `deactivate_sound`.
|
|
12629
|
+
*
|
|
12630
|
+
* Unused when `persistent` is `true`.
|
|
12606
12631
|
*/
|
|
12607
|
-
extra_sounds_ignore_limit?:
|
|
12632
|
+
extra_sounds_ignore_limit?: bool;
|
|
12608
12633
|
/**
|
|
12609
12634
|
* The sound to be played when the entity is idle. Might not work with all entities that use working_sound.
|
|
12635
|
+
*
|
|
12636
|
+
* Unused when `persistent` is `true`.
|
|
12610
12637
|
*/
|
|
12611
12638
|
idle_sound?: Sound;
|
|
12612
12639
|
/**
|
|
@@ -12619,14 +12646,19 @@ type WorkingSound = {
|
|
|
12619
12646
|
* Inactive entities without an `idle_sound` don't count towards this limit.
|
|
12620
12647
|
*
|
|
12621
12648
|
* Entities with their working sound fading out don't count towards this limit.
|
|
12649
|
+
*
|
|
12650
|
+
* Unused when `persistent` is `true`.
|
|
12622
12651
|
*/
|
|
12623
12652
|
max_sounds_per_prototype?: uint8;
|
|
12624
12653
|
/**
|
|
12625
|
-
* When `true`, working sounds for all entities of the same prototype are combined into one
|
|
12654
|
+
* When `true`, working sounds for all entities of the same prototype are combined into one.
|
|
12655
|
+
*/
|
|
12656
|
+
persistent?: bool;
|
|
12657
|
+
/**
|
|
12658
|
+
* Unused when `persistent` is `true`.
|
|
12626
12659
|
*/
|
|
12627
|
-
persistent?: boolean;
|
|
12628
12660
|
sound_accents?: SoundAccent | SoundAccent[];
|
|
12629
|
-
use_doppler_shift?:
|
|
12661
|
+
use_doppler_shift?: bool;
|
|
12630
12662
|
} | Sound;
|
|
12631
12663
|
/**
|
|
12632
12664
|
* Used by crafting machines to display different graphics when the machine is running.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "factorio-types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.31",
|
|
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.44",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"lua-types": "^2.13.1"
|
|
29
29
|
},
|