factorio-types 1.2.64 → 1.2.66
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 +290 -60
- package/dist/concepts.d.ts +43 -9
- package/dist/datacollection.d.ts +1 -1
- package/dist/defines.d.ts +211 -207
- package/dist/events.d.ts +56 -1
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +29 -9
- package/dist/types.d.ts +24 -31
- package/package.json +2 -2
- package/src/core.d.ts +3 -3
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.1.
|
|
5
|
+
// Factorio version 2.1.16
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -1626,6 +1626,20 @@ interface on_multiplayer_init {
|
|
|
1626
1626
|
*/
|
|
1627
1627
|
tick: MapTick;
|
|
1628
1628
|
}
|
|
1629
|
+
/**
|
|
1630
|
+
* Called when value of {@link LuaSurface::daytime | runtime:LuaSurface::daytime} wraps around to be in `[0, 1)` range.
|
|
1631
|
+
*/
|
|
1632
|
+
interface on_next_day_started {
|
|
1633
|
+
/**
|
|
1634
|
+
* Identifier of the event.
|
|
1635
|
+
*/
|
|
1636
|
+
name: defines.events;
|
|
1637
|
+
surface: LuaSurface;
|
|
1638
|
+
/**
|
|
1639
|
+
* Tick the event was generated.
|
|
1640
|
+
*/
|
|
1641
|
+
tick: MapTick;
|
|
1642
|
+
}
|
|
1629
1643
|
/**
|
|
1630
1644
|
* Called after an object is destroyed which was registered with {@link LuaBootstrap::register_on_object_destroyed | runtime:LuaBootstrap::register_on_object_destroyed} previously.
|
|
1631
1645
|
*
|
|
@@ -3034,6 +3048,47 @@ interface on_player_setup_blueprint {
|
|
|
3034
3048
|
*/
|
|
3035
3049
|
tick: MapTick;
|
|
3036
3050
|
}
|
|
3051
|
+
/**
|
|
3052
|
+
* Called after a player super-forced-selects an area with a selection-tool item.
|
|
3053
|
+
*/
|
|
3054
|
+
interface on_player_super_forced_selected_area {
|
|
3055
|
+
/**
|
|
3056
|
+
* The area selected.
|
|
3057
|
+
*/
|
|
3058
|
+
area: BoundingBox;
|
|
3059
|
+
/**
|
|
3060
|
+
* The entities selected.
|
|
3061
|
+
*/
|
|
3062
|
+
entities: LuaEntity[];
|
|
3063
|
+
/**
|
|
3064
|
+
* The item used to select the area.
|
|
3065
|
+
*/
|
|
3066
|
+
item: string;
|
|
3067
|
+
/**
|
|
3068
|
+
* Identifier of the event.
|
|
3069
|
+
*/
|
|
3070
|
+
name: defines.events;
|
|
3071
|
+
/**
|
|
3072
|
+
* The player doing the selection.
|
|
3073
|
+
*/
|
|
3074
|
+
player_index: uint32;
|
|
3075
|
+
/**
|
|
3076
|
+
* The item quality used to select the area.
|
|
3077
|
+
*/
|
|
3078
|
+
quality: string;
|
|
3079
|
+
/**
|
|
3080
|
+
* The surface selected.
|
|
3081
|
+
*/
|
|
3082
|
+
surface: LuaSurface;
|
|
3083
|
+
/**
|
|
3084
|
+
* Tick the event was generated.
|
|
3085
|
+
*/
|
|
3086
|
+
tick: MapTick;
|
|
3087
|
+
/**
|
|
3088
|
+
* The tiles selected.
|
|
3089
|
+
*/
|
|
3090
|
+
tiles: LuaTile[];
|
|
3091
|
+
}
|
|
3037
3092
|
/**
|
|
3038
3093
|
* Called when a player toggles alt mode, also known as "show entity info".
|
|
3039
3094
|
*/
|
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.1.
|
|
5
|
+
// Factorio version 2.1.16
|
|
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.1.
|
|
5
|
+
// Factorio version 2.1.16
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -1288,7 +1288,7 @@ interface BoilerPrototype extends EntityWithOwnerPrototype {
|
|
|
1288
1288
|
*/
|
|
1289
1289
|
fluid_box: FluidBox;
|
|
1290
1290
|
/**
|
|
1291
|
-
* In the `"output-to-separate-pipe"` mode, fluid is transferred from the `fluid_box` to the `output_fluid_box` when enough energy is available to {@link heat | prototype:FluidPrototype::heat_capacity} the input fluid to the `target_temperature`. Setting a filter on the `output_fluid_box` means that instead of the heated input fluid getting moved to the output, it is converted to the filtered fluid in a ratio based on the heat capacity of the fluids: `output_fluid_amount = input_fluid_amount * (
|
|
1291
|
+
* In the `"output-to-separate-pipe"` mode, fluid is transferred from the `fluid_box` to the `output_fluid_box` when enough energy is available to {@link heat | prototype:FluidPrototype::heat_capacity} the input fluid to the `target_temperature`. Setting a filter on the `output_fluid_box` means that instead of the heated input fluid getting moved to the output, it is converted to the filtered fluid in a ratio based on the heat capacity of the fluids: `output_fluid_amount = input_fluid_amount * (input_fluid_heat_capacity / output_fluid_heat_capacity)`
|
|
1292
1292
|
*
|
|
1293
1293
|
* In the `"heat-fluid-inside"` mode, fluid in the `fluid_box` is continuously heated from the input temperature up to its {@link FluidPrototype::max_temperature | prototype:FluidPrototype::max_temperature}.
|
|
1294
1294
|
*/
|
|
@@ -1296,7 +1296,7 @@ interface BoilerPrototype extends EntityWithOwnerPrototype {
|
|
|
1296
1296
|
/**
|
|
1297
1297
|
* The output fluid box.
|
|
1298
1298
|
*
|
|
1299
|
-
* If `mode` is `"output-to-separate-pipe"` and this has a {@link filter | prototype:FluidBox::filter}, the heated input fluid is converted to the output fluid that is set in the filter. The conversion ratio is based on the {@link heat capacity | prototype:FluidPrototype::heat_capacity} of the fluids: `output_fluid_amount = input_fluid_amount * (
|
|
1299
|
+
* If `mode` is `"output-to-separate-pipe"` and this has a {@link filter | prototype:FluidBox::filter}, the heated input fluid is converted to the output fluid that is set in the filter. The conversion ratio is based on the {@link heat capacity | prototype:FluidPrototype::heat_capacity} of the fluids: `output_fluid_amount = input_fluid_amount * (input_fluid_heat_capacity / output_fluid_heat_capacity)`
|
|
1300
1300
|
*
|
|
1301
1301
|
* If `mode` is `"heat-fluid-inside"`, this fluidbox is unused.
|
|
1302
1302
|
*/
|
|
@@ -3427,6 +3427,7 @@ interface EntityPrototype extends Prototype {
|
|
|
3427
3427
|
fast_replaceable_group?: string;
|
|
3428
3428
|
flags?: EntityPrototypeFlags;
|
|
3429
3429
|
friendly_map_color?: Color;
|
|
3430
|
+
ghost_build_sound?: Sound;
|
|
3430
3431
|
/**
|
|
3431
3432
|
* This entity can freeze if heating_energy is larger than zero.
|
|
3432
3433
|
*/
|
|
@@ -5814,10 +5815,6 @@ interface LoaderPrototype extends TransportBeltConnectablePrototype {
|
|
|
5814
5815
|
* First the four cardinal directions for `direction_out`, followed by the four directions for `direction_in`.
|
|
5815
5816
|
*/
|
|
5816
5817
|
circuit_connector?: CircuitConnectorDefinition[];
|
|
5817
|
-
/**
|
|
5818
|
-
* Render layer for all directions of the circuit connectors.
|
|
5819
|
-
*/
|
|
5820
|
-
circuit_connector_layer?: RenderLayer;
|
|
5821
5818
|
/**
|
|
5822
5819
|
* The maximum circuit wire distance for this entity.
|
|
5823
5820
|
*/
|
|
@@ -8400,7 +8397,7 @@ interface RocketSiloPrototype extends AssemblingMachinePrototype {
|
|
|
8400
8397
|
*/
|
|
8401
8398
|
rocket_parts_required: uint32;
|
|
8402
8399
|
/**
|
|
8403
|
-
*
|
|
8400
|
+
* All values down to 0 are allowed, however it is suggested to avoid values from 1 up to `rocket_parts_required - 1` to avoid second progress bar stopping before reaching 100%. When set to 0, second progress bar is hidden.
|
|
8404
8401
|
*/
|
|
8405
8402
|
rocket_parts_storage_cap?: uint32;
|
|
8406
8403
|
rocket_quick_relaunch_start_offset: double;
|
|
@@ -9278,7 +9275,7 @@ interface SpacePlatformHubPrototype extends EntityWithOwnerPrototype {
|
|
|
9278
9275
|
*/
|
|
9279
9276
|
platform_repair_speed_modifier?: float;
|
|
9280
9277
|
/**
|
|
9281
|
-
*
|
|
9278
|
+
* Mass which this entity adds to total space platform mass when placed.
|
|
9282
9279
|
*/
|
|
9283
9280
|
weight?: Weight;
|
|
9284
9281
|
}
|
|
@@ -10242,6 +10239,9 @@ interface TilePrototype extends Prototype {
|
|
|
10242
10239
|
vehicle_friction_modifier?: double;
|
|
10243
10240
|
walking_sound?: Sound;
|
|
10244
10241
|
walking_speed_modifier?: double;
|
|
10242
|
+
/**
|
|
10243
|
+
* Mass which this tile adds to total space platform mass when placed.
|
|
10244
|
+
*/
|
|
10245
10245
|
weight?: Weight;
|
|
10246
10246
|
}
|
|
10247
10247
|
/**
|
|
@@ -10904,8 +10904,15 @@ interface UtilityConstants extends PrototypeBase {
|
|
|
10904
10904
|
asteroid_collector_static_head_swing_segment_count: uint32;
|
|
10905
10905
|
asteroid_collector_static_head_swing_strength_scale: float;
|
|
10906
10906
|
asteroid_fading_range: float;
|
|
10907
|
+
/**
|
|
10908
|
+
* Asteroid damage will be multiplied by this value when space platform speed is zero and will linearly increase until asteroid_spawning_with_random_orientation_max_speed is reached.
|
|
10909
|
+
*/
|
|
10910
|
+
asteroid_min_damage_modifier: float;
|
|
10907
10911
|
asteroid_position_offset_to_speed_coefficient: double;
|
|
10908
10912
|
asteroid_spawning_offset: SimpleBoundingBox;
|
|
10913
|
+
/**
|
|
10914
|
+
* In km per tick.
|
|
10915
|
+
*/
|
|
10909
10916
|
asteroid_spawning_with_random_orientation_max_speed: double;
|
|
10910
10917
|
/**
|
|
10911
10918
|
* Will be clamped to the range [2, 100].
|
|
@@ -11250,6 +11257,10 @@ interface UtilitySounds extends PrototypeBase {
|
|
|
11250
11257
|
* Sound category `"alert"`.
|
|
11251
11258
|
*/
|
|
11252
11259
|
alert_destroyed: Sound;
|
|
11260
|
+
/**
|
|
11261
|
+
* Sound category `"alert"`.
|
|
11262
|
+
*/
|
|
11263
|
+
alert_expansion_base_built: Sound;
|
|
11253
11264
|
/**
|
|
11254
11265
|
* Sound category `"gui-effect"`.
|
|
11255
11266
|
*/
|
|
@@ -11502,6 +11513,14 @@ interface UtilitySounds extends PrototypeBase {
|
|
|
11502
11513
|
* Sound category `"gui-effect"`.
|
|
11503
11514
|
*/
|
|
11504
11515
|
list_box_click: Sound;
|
|
11516
|
+
/**
|
|
11517
|
+
* Sound category `"gui-effect"`.
|
|
11518
|
+
*/
|
|
11519
|
+
machine_gui_close: Sound;
|
|
11520
|
+
/**
|
|
11521
|
+
* Sound category `"gui-effect"`.
|
|
11522
|
+
*/
|
|
11523
|
+
machine_gui_open: Sound;
|
|
11505
11524
|
/**
|
|
11506
11525
|
* Sound category `"walking"`.
|
|
11507
11526
|
*/
|
|
@@ -11902,6 +11921,7 @@ interface UtilitySprites extends PrototypeBase {
|
|
|
11902
11921
|
equipment_slot: Sprite;
|
|
11903
11922
|
expand: Sprite;
|
|
11904
11923
|
expand_dots: Sprite;
|
|
11924
|
+
expansion_base_built_icon: Sprite;
|
|
11905
11925
|
explosion_chart_visualization: Animation;
|
|
11906
11926
|
export: Sprite;
|
|
11907
11927
|
export_slot: 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.1.
|
|
5
|
+
// Factorio version 2.1.16
|
|
6
6
|
// API version 6
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -2226,6 +2226,10 @@ interface BurnerEnergySource extends BaseEnergySource {
|
|
|
2226
2226
|
*/
|
|
2227
2227
|
fuel_categories?: FuelCategoryID[];
|
|
2228
2228
|
fuel_inventory_size: ItemStackIndex;
|
|
2229
|
+
/**
|
|
2230
|
+
* When set, items consumed and produced by this burner will not appear in item production statistics.
|
|
2231
|
+
*/
|
|
2232
|
+
hide_from_stats?: boolean;
|
|
2229
2233
|
initial_fuel?: ItemID;
|
|
2230
2234
|
initial_fuel_percent?: double;
|
|
2231
2235
|
light_flicker?: LightFlickeringDefinition;
|
|
@@ -2723,18 +2727,6 @@ interface CircuitConnectorDefinition {
|
|
|
2723
2727
|
*/
|
|
2724
2728
|
sprites?: CircuitConnectorSprites;
|
|
2725
2729
|
}
|
|
2726
|
-
interface CircuitConnectorLayer {
|
|
2727
|
-
east?: RenderLayer;
|
|
2728
|
-
north?: RenderLayer;
|
|
2729
|
-
south?: RenderLayer;
|
|
2730
|
-
west?: RenderLayer;
|
|
2731
|
-
}
|
|
2732
|
-
interface CircuitConnectorSecondaryDrawOrder {
|
|
2733
|
-
east?: int8;
|
|
2734
|
-
north?: int8;
|
|
2735
|
-
south?: int8;
|
|
2736
|
-
west?: int8;
|
|
2737
|
-
}
|
|
2738
2730
|
interface CircuitConnectorSprites {
|
|
2739
2731
|
blue_led_light_offset?: Vector;
|
|
2740
2732
|
/**
|
|
@@ -2751,6 +2743,8 @@ interface CircuitConnectorSprites {
|
|
|
2751
2743
|
led_light: LightDefinition;
|
|
2752
2744
|
led_red: Sprite;
|
|
2753
2745
|
red_green_led_light_offset?: Vector;
|
|
2746
|
+
render_layer?: RenderLayer;
|
|
2747
|
+
secondary_draw_order?: int8;
|
|
2754
2748
|
/**
|
|
2755
2749
|
* Drawn when the entity is connected to a circuit network.
|
|
2756
2750
|
*/
|
|
@@ -3333,14 +3327,6 @@ interface CraftItemTipTrigger extends CountBasedTipTrigger {
|
|
|
3333
3327
|
}
|
|
3334
3328
|
interface CraftingMachineGraphicsSet extends WorkingVisualisations {
|
|
3335
3329
|
animation_progress?: float;
|
|
3336
|
-
/**
|
|
3337
|
-
* Render layer(s) for all directions of the circuit connectors.
|
|
3338
|
-
*/
|
|
3339
|
-
circuit_connector_layer?: RenderLayer | CircuitConnectorLayer;
|
|
3340
|
-
/**
|
|
3341
|
-
* Secondary draw order(s) for all directions of the circuit connectors.
|
|
3342
|
-
*/
|
|
3343
|
-
circuit_connector_secondary_draw_order?: int8 | CircuitConnectorSecondaryDrawOrder;
|
|
3344
3330
|
frozen_patch?: Sprite4Way;
|
|
3345
3331
|
reset_animation_when_frozen?: boolean;
|
|
3346
3332
|
/**
|
|
@@ -4015,6 +4001,10 @@ interface EffectReceiver {
|
|
|
4015
4001
|
*/
|
|
4016
4002
|
speed_limits?: EffectValueRange;
|
|
4017
4003
|
uses_beacon_effects?: boolean;
|
|
4004
|
+
/**
|
|
4005
|
+
* Controls whether {@link LuaEntity::local_effect | runtime:LuaEntity::local_effect} affects this receiver.
|
|
4006
|
+
*/
|
|
4007
|
+
uses_local_effects?: boolean;
|
|
4018
4008
|
uses_module_effects?: boolean;
|
|
4019
4009
|
/**
|
|
4020
4010
|
* Controls whether {@link LuaSurface::global_effect | runtime:LuaSurface::global_effect} affects this receiver.
|
|
@@ -4379,6 +4369,10 @@ interface EnemyEvolutionSettings {
|
|
|
4379
4369
|
time_factor: double;
|
|
4380
4370
|
}
|
|
4381
4371
|
interface EnemyExpansionSettings {
|
|
4372
|
+
/**
|
|
4373
|
+
* Cooldown in ticks for dispatching units when building bases.
|
|
4374
|
+
*/
|
|
4375
|
+
build_base_unit_dispatch_cooldown: uint32;
|
|
4382
4376
|
building_coefficient: double;
|
|
4383
4377
|
enabled: boolean;
|
|
4384
4378
|
enemy_building_influence_radius: uint32;
|
|
@@ -4927,6 +4921,10 @@ interface FluidEnergySource extends BaseEnergySource {
|
|
|
4927
4921
|
* The number of fluid units the energy source uses per tick. If used with `scale_fluid_usage`, this specifies the maximum. If this value is not set, `scale_energy_usage` is `false` and a fluid box filter is set, the game will attempt to calculate this value from the fluid box filter's fluid's `fuel_value` or `heat_capacity` and the entity's `energy_usage`. If `burns_fluid` is `false`, `maximum_temperature` will also be used. If the attempt of the game to calculate this value fails (`scale_energy_usage` is `false` and a fluid box filter is set), then `scale_energy_usage` will be forced to `true`, to prevent the energy source from being an infinite fluid sink. More context {@link on the forums | https://forums.factorio.com/90613}.
|
|
4928
4922
|
*/
|
|
4929
4923
|
fluid_usage_per_tick?: FluidAmount;
|
|
4924
|
+
/**
|
|
4925
|
+
* When set, fluids consumed and produced by this energy source will not appear in fluid production statistics.
|
|
4926
|
+
*/
|
|
4927
|
+
hide_from_stats?: boolean;
|
|
4930
4928
|
light_flicker?: LightFlickeringDefinition;
|
|
4931
4929
|
/**
|
|
4932
4930
|
* `0` means unlimited maximum temperature. If this is non-zero while `scale_fluid_usage` is `false` and `fluid_usage_per_tick` is not specified, the game will use this value to calculate `fluid_usage_per_tick`. To do that, the filter on the `fluid_box` must be set.
|
|
@@ -6063,7 +6061,7 @@ type ItemPrototypeFlags = (/**
|
|
|
6063
6061
|
'spawnable' | 'spoil-result' | /**
|
|
6064
6062
|
* Controls whether the spoil time ignores the spoil time modifier in the {@link DifficultySettings | runtime:DifficultySettings}.
|
|
6065
6063
|
*/
|
|
6066
|
-
'ignore-spoil-time-modifier' | 'hide-health-bar-in-world' | 'hide-spoilage-bar-in-world')[];
|
|
6064
|
+
'ignore-spoil-time-modifier' | 'hide-health-bar-in-world' | 'hide-spoilage-bar-in-world' | 'no-item-on-ground-merging')[];
|
|
6067
6065
|
type ItemStackIndex = uint16;
|
|
6068
6066
|
/**
|
|
6069
6067
|
* The name of an {@link ItemSubGroup | prototype:ItemSubGroup}.
|
|
@@ -6638,6 +6636,10 @@ interface MapGenPresetEnemyEvolutionSettings {
|
|
|
6638
6636
|
time_factor?: double;
|
|
6639
6637
|
}
|
|
6640
6638
|
interface MapGenPresetEnemyExpansionSettings {
|
|
6639
|
+
/**
|
|
6640
|
+
* Cooldown in ticks for dispatching units when building bases.
|
|
6641
|
+
*/
|
|
6642
|
+
build_base_unit_dispatch_cooldown?: uint32;
|
|
6641
6643
|
enabled?: boolean;
|
|
6642
6644
|
/**
|
|
6643
6645
|
* Factor by which the evolution factor influences the size of the settler group
|
|
@@ -6992,14 +6994,6 @@ interface MinimapStyleSpecification extends EmptyWidgetStyleSpecificationBase {
|
|
|
6992
6994
|
*/
|
|
6993
6995
|
interface MiningDrillGraphicsSet extends WorkingVisualisations {
|
|
6994
6996
|
animation_progress?: float;
|
|
6995
|
-
/**
|
|
6996
|
-
* Render layer(s) for all directions of the circuit connectors.
|
|
6997
|
-
*/
|
|
6998
|
-
circuit_connector_layer?: RenderLayer | CircuitConnectorLayer;
|
|
6999
|
-
/**
|
|
7000
|
-
* Secondary draw order(s) for all directions of the circuit connectors.
|
|
7001
|
-
*/
|
|
7002
|
-
circuit_connector_secondary_draw_order?: int8 | CircuitConnectorSecondaryDrawOrder;
|
|
7003
6997
|
drilling_vertical_movement_duration?: uint16;
|
|
7004
6998
|
frozen_patch?: Sprite4Way;
|
|
7005
6999
|
reset_animation_when_frozen?: boolean;
|
|
@@ -9023,7 +9017,6 @@ interface RailSignalLights {
|
|
|
9023
9017
|
}
|
|
9024
9018
|
interface RailSignalPictureSet {
|
|
9025
9019
|
circuit_connector?: CircuitConnectorDefinition[];
|
|
9026
|
-
circuit_connector_render_layer?: RenderLayer;
|
|
9027
9020
|
lights: RailSignalLights;
|
|
9028
9021
|
rail_piece?: RailSignalStaticSpriteLayer;
|
|
9029
9022
|
selection_box_shift?: Vector[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "factorio-types",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.66",
|
|
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.1.
|
|
26
|
+
"factorioVersion": "2.1.16",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"lua-types": "^2.13.1"
|
|
29
29
|
},
|
package/src/core.d.ts
CHANGED
|
@@ -80,6 +80,6 @@ type bool = boolean;
|
|
|
80
80
|
*/
|
|
81
81
|
type DataExtendMethod = (data: prototype.Data, ...otherData: any[]) => void;
|
|
82
82
|
|
|
83
|
-
//
|
|
84
|
-
|
|
85
|
-
type
|
|
83
|
+
// used by UndoRedoEquipment but not declared anywhere
|
|
84
|
+
// Can be removed if/when this is resolved https://forums.factorio.com/viewtopic.php?t=135506
|
|
85
|
+
type PropertyTree = any;
|