Skip to content

Commit 34e737e

Browse files
committed
Factorio API version 2.0.14
1 parent ac49a38 commit 34e737e

File tree

9 files changed

+72
-40
lines changed

9 files changed

+72
-40
lines changed

dist/classes.d.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Factorio API reference https://lua-api.factorio.com/latest/index.html
33
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
44
// Definition source https://github.com/sguest/factorio-types
5-
// Factorio version 2.0.13
5+
// Factorio version 2.0.14
66
// API version 6
77

88
declare namespace runtime {
@@ -273,7 +273,6 @@ interface LuaAssemblingMachineControlBehavior extends LuaGenericOnOffControlBeha
273273
* Prototype of an asteroid chunk.
274274
*/
275275
interface LuaAsteroidChunkPrototype extends LuaPrototypeBase {
276-
readonly collision_box: BoundingBox;
277276
readonly hide_from_signal_gui: boolean;
278277
readonly item_signal_alias?: LuaItemPrototype;
279278
readonly mineable_properties: MineableProperties;
@@ -6732,6 +6731,10 @@ interface LuaEntity extends LuaControl {
67326731
* The container entity this loader is pointing at/pulling from depending on the {@link LuaEntity::loader_type | runtime:LuaEntity::loader_type}, if any.
67336732
*/
67346733
readonly loader_container?: LuaEntity;
6734+
/**
6735+
* The filter mode for this loader. `nil` if this loader does not support filters.
6736+
*/
6737+
loader_filter_mode?: 'none' | 'whitelist' | 'blacklist';
67356738
/**
67366739
* Whether this loader gets items from or puts item into a container.
67376740
*/
@@ -7895,6 +7898,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
78957898
* 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.
78967899
*/
78977900
readonly object_name: string;
7901+
readonly per_lane_filters?: bool;
78987902
/**
78997903
* The beacon profile: extra multiplier applied to the effects received from beacon by the effect receiver based on amount of beacons that reach that effect receiver
79007904
*/

dist/concepts.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Factorio API reference https://lua-api.factorio.com/latest/index.html
33
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
44
// Definition source https://github.com/sguest/factorio-types
5-
// Factorio version 2.0.13
5+
// Factorio version 2.0.14
66
// API version 6
77

88
declare namespace runtime {

dist/datacollection.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Factorio API reference https://lua-api.factorio.com/latest/index.html
33
// Generated from JSON source https://lua-api.factorio.com/latest/prototype-api.json
44
// Definition source https://github.com/sguest/factorio-types
5-
// Factorio version 2.0.13
5+
// Factorio version 2.0.14
66
// API version 6
77

88
declare namespace prototype {

dist/defines.d.ts

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Factorio API reference https://lua-api.factorio.com/latest/index.html
33
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
44
// Definition source https://github.com/sguest/factorio-types
5-
// Factorio version 2.0.13
5+
// Factorio version 2.0.14
66
// API version 6
77

88
declare namespace defines {
@@ -1151,30 +1151,31 @@ enum input_action {
11511151
switch_connect_to_logistic_network = 240,
11521152
switch_constant_combinator_state = 241,
11531153
switch_inserter_filter_mode_state = 242,
1154-
switch_mining_drill_filter_mode_state = 243,
1155-
switch_power_switch_state = 244,
1156-
take_equipment = 245,
1157-
toggle_artillery_auto_targeting = 246,
1158-
toggle_deconstruction_item_entity_filter_mode = 247,
1159-
toggle_deconstruction_item_tile_filter_mode = 248,
1160-
toggle_driving = 249,
1161-
toggle_enable_vehicle_logistics_while_moving = 250,
1162-
toggle_entity_logistic_requests = 251,
1163-
toggle_equipment_movement_bonus = 252,
1164-
toggle_map_editor = 253,
1165-
toggle_personal_logistic_requests = 254,
1166-
toggle_personal_roboport = 255,
1167-
toggle_selected_entity = 256,
1168-
toggle_show_entity_info = 257,
1169-
translate_string = 258,
1170-
trash_not_requested_items = 259,
1171-
undo = 260,
1172-
upgrade = 261,
1173-
upgrade_opened_blueprint_by_item = 262,
1174-
upgrade_opened_blueprint_by_record = 263,
1175-
use_item = 264,
1176-
wire_dragging = 265,
1177-
write_to_console = 266
1154+
switch_loader_filter_mode = 243,
1155+
switch_mining_drill_filter_mode_state = 244,
1156+
switch_power_switch_state = 245,
1157+
take_equipment = 246,
1158+
toggle_artillery_auto_targeting = 247,
1159+
toggle_deconstruction_item_entity_filter_mode = 248,
1160+
toggle_deconstruction_item_tile_filter_mode = 249,
1161+
toggle_driving = 250,
1162+
toggle_enable_vehicle_logistics_while_moving = 251,
1163+
toggle_entity_logistic_requests = 252,
1164+
toggle_equipment_movement_bonus = 253,
1165+
toggle_map_editor = 254,
1166+
toggle_personal_logistic_requests = 255,
1167+
toggle_personal_roboport = 256,
1168+
toggle_selected_entity = 257,
1169+
toggle_show_entity_info = 258,
1170+
translate_string = 259,
1171+
trash_not_requested_items = 260,
1172+
undo = 261,
1173+
upgrade = 262,
1174+
upgrade_opened_blueprint_by_item = 263,
1175+
upgrade_opened_blueprint_by_record = 264,
1176+
use_item = 265,
1177+
wire_dragging = 266,
1178+
write_to_console = 267
11781179
}
11791180
enum input_method {
11801181
game_controller = 1,

dist/events.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Factorio API reference https://lua-api.factorio.com/latest/index.html
33
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
44
// Definition source https://github.com/sguest/factorio-types
5-
// Factorio version 2.0.13
5+
// Factorio version 2.0.14
66
// API version 6
77

88
declare namespace runtime {

dist/global.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Factorio API reference https://lua-api.factorio.com/latest/index.html
33
// Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
44
// Definition source https://github.com/sguest/factorio-types
5-
// Factorio version 2.0.13
5+
// Factorio version 2.0.14
66
// API version 6
77

88
/**

dist/prototypes.d.ts

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Factorio API reference https://lua-api.factorio.com/latest/index.html
33
// Generated from JSON source https://lua-api.factorio.com/latest/prototype-api.json
44
// Definition source https://github.com/sguest/factorio-types
5-
// Factorio version 2.0.13
5+
// Factorio version 2.0.14
66
// API version 6
77

88
declare namespace prototype {
@@ -299,6 +299,12 @@ interface AmmoTurretPrototype extends TurretPrototype {
299299
* Specifies an animation that can be used with {@link LuaRendering::draw_animation | runtime:LuaRendering::draw_animation} at runtime.
300300
*/
301301
interface AnimationPrototype {
302+
/**
303+
* Only loaded if `layers` is not defined.
304+
*
305+
* If `true`, the sprite may be downsampled to half its size on load even when 'Sprite quality' graphics setting is set to 'High'. Whether downsampling happens depends on detected hardware and other graphics settings.
306+
*/
307+
allow_forced_downscale?: bool;
302308
/**
303309
* Only loaded if `layers` is not defined.
304310
*
@@ -824,7 +830,6 @@ interface AssemblingMachinePrototype extends CraftingMachinePrototype {
824830
ingredient_count?: uint8;
825831
}
826832
interface AsteroidChunkPrototype extends Prototype {
827-
collision_box?: SimpleBoundingBox;
828833
dying_trigger_effect?: TriggerEffect;
829834
graphics_set?: AsteroidGraphicsSet;
830835
hide_from_signal_gui?: bool;
@@ -5107,6 +5112,10 @@ interface LoaderPrototype extends TransportBeltConnectablePrototype {
51075112
* Loader will not create stacks on belt that are larger than this value. Must be >= 1.
51085113
*/
51095114
max_belt_stack_size?: uint8;
5115+
/**
5116+
* If filters are per lane. Can only be set to true if filter_count is equal to 2.
5117+
*/
5118+
per_lane_filters?: bool;
51105119
structure?: LoaderStructure;
51115120
structure_render_layer?: RenderLayer;
51125121
}
@@ -8198,6 +8207,12 @@ interface SplitterPrototype extends TransportBeltConnectablePrototype {
81988207
```
81998208
*/
82008209
interface SpritePrototype {
8210+
/**
8211+
* Only loaded if `layers` is not defined.
8212+
*
8213+
* If `true`, the sprite may be downsampled to half its size on load even when 'Sprite quality' graphics setting is set to 'High'. Whether downsampling happens depends on detected hardware and other graphics settings.
8214+
*/
8215+
allow_forced_downscale?: bool;
82018216
/**
82028217
* Only loaded if `layers` is not defined.
82038218
*/
@@ -9571,9 +9586,9 @@ interface UtilityConstants extends PrototypeBase {
95719586
freezing_temperature: double;
95729587
frozen_color_lookup: ColorLookupTable;
95739588
ghost_layer: CollisionLayerID;
9589+
ghost_shader_tint: GhostTintSet;
9590+
ghost_shaderless_tint: GhostTintSet;
95749591
ghost_shimmer_settings: GhostShimmerConfig;
9575-
ghost_tint: Color;
9576-
ghost_tint_delivering: Color;
95779592
gui_remark_color: Color;
95789593
gui_search_match_background_color: Color;
95799594
gui_search_match_foreground_color: Color;
@@ -9694,8 +9709,6 @@ interface UtilityConstants extends PrototypeBase {
96949709
space_platform_relative_speed_factor: double;
96959710
space_platform_starfield_movement_vector: Vector;
96969711
spawner_evolution_factor_health_modifier: float;
9697-
tile_ghost_tint: Color;
9698-
tile_ghost_tint_delivering: Color;
96999712
/**
97009713
* Must be >= 1.
97019714
*/

dist/types.d.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Factorio API reference https://lua-api.factorio.com/latest/index.html
33
// Generated from JSON source https://lua-api.factorio.com/latest/prototype-api.json
44
// Definition source https://github.com/sguest/factorio-types
5-
// Factorio version 2.0.13
5+
// Factorio version 2.0.14
66
// API version 6
77

88
declare namespace prototype {
@@ -4946,6 +4946,16 @@ interface GhostShimmerOverlayData {
49464946
x: float;
49474947
y: float;
49484948
}
4949+
interface GhostTintSet {
4950+
ghost_delivery_tint: Color;
4951+
ghost_tint: Color;
4952+
tile_ghost_delivery_tint: Color;
4953+
tile_ghost_tint: Color;
4954+
/**
4955+
* Wires are hard to read when the ghost_tint is very satured, so they use a separate tint color for better fine tuning.
4956+
*/
4957+
wire_tint: Color;
4958+
}
49494959
interface GigaCargoHatchDefinition {
49504960
/**
49514961
* Cannot use `fade_ticks`.
@@ -9723,6 +9733,10 @@ interface SpriteSheet extends SpriteParameters {
97239733
}
97249734
type SpriteSizeType = int16;
97259735
interface SpriteSource {
9736+
/**
9737+
* If `true`, the sprite may be downsampled to half its size on load even when 'Sprite quality' graphics setting is set to 'High'. Whether downsampling happens depends on detected hardware and other graphics settings.
9738+
*/
9739+
allow_forced_downscale?: bool;
97269740
/**
97279741
* The path to the sprite file to use.
97289742
* This property is required, but marked as optional due to typescript inheritance limitations

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "factorio-types",
3-
"version": "1.2.7",
3+
"version": "1.2.8",
44
"description": "Typescript declarations for the Factorio mod API",
55
"main": "index.d.ts",
66
"repository": "https://github.com/sguest/factorio-types.git",
@@ -23,7 +23,7 @@
2323
"src/**/*.d.ts",
2424
"dist/**/*.d.ts"
2525
],
26-
"factorioVersion": "2.0.13",
26+
"factorioVersion": "2.0.14",
2727
"dependencies": {
2828
"lua-types": "^2.13.1"
2929
},

0 commit comments

Comments
 (0)