factorio-types 1.2.40 → 1.2.41

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 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.57
5
+ // Factorio version 2.0.58
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -8155,7 +8155,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
8155
8155
  /**
8156
8156
  * Properties of custom inventory. Only provided if inventory_type is `"with_custom_stack_size"`.
8157
8157
  */
8158
- readonly inventory_properties?: InventoryWithCustomStackSizePrototype;
8158
+ readonly inventory_properties?: InventoryWithCustomStackSizeSpecification;
8159
8159
  readonly inventory_size_quality_increase?: uint;
8160
8160
  /**
8161
8161
  * The inventory type this container or linked container uses.
@@ -8170,17 +8170,24 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
8170
8170
  * These are the objects that are considered buildings:
8171
8171
  *
8172
8172
  * - AccumulatorPrototype
8173
+ * - AgriculturalTowerPrototype
8173
8174
  * - ArtilleryTurretPrototype
8175
+ * - AsteroidCollectorPrototype
8174
8176
  * - BeaconPrototype
8175
8177
  * - BoilerPrototype
8176
8178
  * - BurnerGeneratorPrototype
8177
- * - CombinatorPrototype → ArithmeticCombinator, DeciderCombinator
8179
+ * - CargoBayPrototype
8180
+ * - CargoLandingPadPrototype
8181
+ * - CombinatorPrototype → ArithmeticCombinator, DeciderCombinator, SelectorCombinator
8178
8182
  * - ConstantCombinatorPrototype
8179
- * - ContainerPrototype → LogisticContainer, InfinityContainer
8183
+ * - ContainerPrototype → LogisticContainer, InfinityContainer, TemporaryContainer
8180
8184
  * - CraftingMachinePrototype → AssemblingMachine, RocketSilo, Furnace
8185
+ * - DisplayPanelPrototype
8181
8186
  * - ElectricEnergyInterfacePrototype
8182
8187
  * - ElectricPolePrototype
8183
8188
  * - EnemySpawnerPrototype
8189
+ * - FusionGeneratorPrototype
8190
+ * - FusionReactorPrototype
8184
8191
  * - GatePrototype
8185
8192
  * - GeneratorPrototype
8186
8193
  * - HeatInterfacePrototype
@@ -8188,6 +8195,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
8188
8195
  * - InserterPrototype
8189
8196
  * - LabPrototype
8190
8197
  * - LampPrototype
8198
+ * - LightningAttractorPrototype
8191
8199
  * - LinkedContainerPrototype
8192
8200
  * - MarketPrototype
8193
8201
  * - MiningDrillPrototype
@@ -8196,19 +8204,24 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
8196
8204
  * - PipeToGroundPrototype
8197
8205
  * - PowerSwitchPrototype
8198
8206
  * - ProgrammableSpeakerPrototype
8207
+ * - ProxyContainerPrototype
8199
8208
  * - PumpPrototype
8200
8209
  * - RadarPrototype
8201
- * - RailPrototype → CurvedRail, StraightRail
8210
+ * - RailPrototype → CurvedRailA, ElevatedCurvedRailA, CurvedRailB, ElevatedCurvedRailB, HalfDiagonalRail, ElevatedHalfDiagonalRail, LegacyCurvedRail, LegacyStraightRail, RailRamp, StraightRail, ElevatedStraightRail
8202
8211
  * - RailSignalBasePrototype → RailChainSignal, RailSignal
8212
+ * - RailSupportPrototype
8203
8213
  * - ReactorPrototype
8204
8214
  * - RoboportPrototype
8205
8215
  * - SimpleEntityPrototype
8206
8216
  * - SimpleEntityWithOwnerPrototype → SimpleEntityWithForce
8207
8217
  * - SolarPanelPrototype
8218
+ * - SpacePlatformHubPrototype
8208
8219
  * - StorageTankPrototype
8220
+ * - ThrusterPrototype
8209
8221
  * - TrainStopPrototype
8210
- * - TransportBeltConnectablePrototype → LinkedBelt, Loader1x1, Loader1x2, Splitter, TransportBelt, UndergroundBelt
8222
+ * - TransportBeltConnectablePrototype → LaneSplitter, LinkedBelt, Loader1x1, Loader1x2, Splitter, TransportBelt, UndergroundBelt
8211
8223
  * - TurretPrototype → AmmoTurret, ElectricTurret, FluidTurret
8224
+ * - ValvePrototype
8212
8225
  * - WallPrototype
8213
8226
  */
8214
8227
  readonly is_building: boolean;
@@ -8398,6 +8411,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
8398
8411
  */
8399
8412
  readonly move_while_shooting?: boolean;
8400
8413
  readonly neighbour_bonus?: double;
8414
+ readonly neighbour_connectable?: NeighbourConnectable;
8401
8415
  /**
8402
8416
  * The next upgrade for this entity, if any.
8403
8417
  */
@@ -13587,6 +13601,28 @@ interface LuaMiningDrillControlBehavior extends LuaGenericOnOffControlBehavior {
13587
13601
  */
13588
13602
  readonly valid: boolean;
13589
13603
  }
13604
+ /**
13605
+ * Arbitrary data provided by mods.
13606
+ */
13607
+ interface LuaModData extends LuaPrototypeBase {
13608
+ /**
13609
+ * Provides partial access to the data.
13610
+ */
13611
+ get(this: void, key: string): AnyBasic | null;
13612
+ /**
13613
+ * Provides full data of this prototype.
13614
+ */
13615
+ readonly data: Record<string, AnyBasic>;
13616
+ readonly data_type: string;
13617
+ /**
13618
+ * 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.
13619
+ */
13620
+ readonly object_name: string;
13621
+ /**
13622
+ * 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.
13623
+ */
13624
+ readonly valid: boolean;
13625
+ }
13590
13626
  /**
13591
13627
  * Prototype of a mod setting.
13592
13628
  */
@@ -14848,6 +14884,10 @@ interface LuaPrototypes {
14848
14884
  readonly max_inserter_reach_distance: double;
14849
14885
  readonly max_pipe_to_ground_distance: uint8;
14850
14886
  readonly max_underground_belt_distance: uint8;
14887
+ /**
14888
+ * A dictionary containing every LuaModData indexed by `name`.
14889
+ */
14890
+ readonly mod_data: Record<string, LuaModData>;
14851
14891
  /**
14852
14892
  * A dictionary containing every LuaModSettingPrototype indexed by `name`.
14853
14893
  */
@@ -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.57
5
+ // Factorio version 2.0.58
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -2668,7 +2668,7 @@ interface InventoryPosition {
2668
2668
  */
2669
2669
  count?: ItemCountType;
2670
2670
  }
2671
- interface InventoryWithCustomStackSizePrototype {
2671
+ interface InventoryWithCustomStackSizeSpecification {
2672
2672
  stack_size_multiplier: double;
2673
2673
  stack_size_min: ItemCountType;
2674
2674
  stack_size_max: ItemCountType;
@@ -5330,6 +5330,10 @@ float | /**
5330
5330
  * equivalent to `2`.
5331
5331
  */
5332
5332
  'very-good';
5333
+ interface MapLocation {
5334
+ position: MapLocation;
5335
+ direction: defines.direction;
5336
+ }
5333
5337
  /**
5334
5338
  * Coordinates on a surface, for example of an entity. MapPositions may be specified either as a dictionary with `x`, `y` as keys, or simply as an array with two elements.
5335
5339
  *
@@ -5574,6 +5578,16 @@ interface ModuleEffects {
5574
5578
  * To write to this, use an array{@link [string | runtime:string}] of the mouse buttons that should be possible to use with on button. The flag `"left-and-right"` can also be set, which will set `"left"` and `"right"` to `true`.
5575
5579
  */
5576
5580
  type MouseButtonFlags = Record<'left' | 'right' | 'middle' | 'button-4' | 'button-5' | 'button-6' | 'button-7' | 'button-8' | 'button-9', true>;
5581
+ interface NeighbourConnectable {
5582
+ affected_by_direction: boolean;
5583
+ neighbour_search_distance: float;
5584
+ connections: NeighbourConnectableConnectionDefinition[];
5585
+ }
5586
+ interface NeighbourConnectableConnectionDefinition {
5587
+ location: MapLocation;
5588
+ category: string;
5589
+ neighbour_category: string[];
5590
+ }
5577
5591
  /**
5578
5592
  * The string representation of a noise expression. More detailed information is found on the {@link prototype docs | prototype:NamedNoiseExpression}.
5579
5593
  */
@@ -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.57
5
+ // Factorio version 2.0.58
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
@@ -457,6 +457,9 @@ interface dataCollection {
457
457
  'mining-drill': {
458
458
  [key: string]: MiningDrillPrototype;
459
459
  };
460
+ 'mod-data': {
461
+ [key: string]: ModData;
462
+ };
460
463
  'module-category': {
461
464
  [key: string]: ModuleCategory;
462
465
  };
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.57
5
+ // Factorio version 2.0.58
6
6
  // API version 6
7
7
 
8
8
  declare namespace defines {
@@ -1777,6 +1777,12 @@ namespace prototypes {
1777
1777
  enum map_settings {
1778
1778
  'map-settings' = 0
1779
1779
  }
1780
+ /**
1781
+ * @customName mod-data
1782
+ */
1783
+ enum mod_data {
1784
+ 'mod-data' = 0
1785
+ }
1780
1786
  /**
1781
1787
  * @customName module-category
1782
1788
  */
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.57
5
+ // Factorio version 2.0.58
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.57
5
+ // Factorio version 2.0.58
6
6
  // API version 6
7
7
 
8
8
  /**
@@ -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.57
5
+ // Factorio version 2.0.58
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
@@ -1840,7 +1840,7 @@ interface ContainerPrototype extends EntityWithOwnerPrototype {
1840
1840
  /**
1841
1841
  * Only used when `inventory_type` is `"with_custom_stack_size"`.
1842
1842
  */
1843
- inventory_properties?: InventoryWithCustomStackSizePrototype;
1843
+ inventory_properties?: InventoryWithCustomStackSizeSpecification;
1844
1844
  /**
1845
1845
  * The number of slots in this container.
1846
1846
  */
@@ -1974,6 +1974,12 @@ interface CraftingMachinePrototype extends EntityWithOwnerPrototype {
1974
1974
  * Crafting speed has to be positive.
1975
1975
  */
1976
1976
  crafting_speed: double;
1977
+ /**
1978
+ * Each value must be >= 0.01.
1979
+ *
1980
+ * If value is not provided for a quality, then {@link QualityPrototype::crafting_machine_speed_multiplier | prototype:QualityPrototype::crafting_machine_speed_multiplier} will be used as a speed multiplier instead.
1981
+ */
1982
+ crafting_speed_quality_multiplier?: LuaTable<QualityID, double>;
1977
1983
  /**
1978
1984
  * Whether the "alt-mode icon" should have a black background.
1979
1985
  */
@@ -1992,6 +1998,14 @@ interface CraftingMachinePrototype extends EntityWithOwnerPrototype {
1992
1998
  ```
1993
1999
  */
1994
2000
  energy_usage: Energy;
2001
+ /**
2002
+ * Each value must be >= 0.01.
2003
+ *
2004
+ * If value is not provided for a quality, then {@link QualityPrototype::crafting_machine_energy_usage_multiplier | prototype:QualityPrototype::crafting_machine_energy_usage_multiplier} will be used as an energy usage multiplier instead.
2005
+ *
2006
+ * Does nothing if {@link CraftingMachinePrototype::quality_affects_energy_usage | prototype:CraftingMachinePrototype::quality_affects_energy_usage} is not set.
2007
+ */
2008
+ energy_usage_quality_multiplier?: LuaTable<QualityID, double>;
1995
2009
  fast_transfer_modules_into_module_slots_only?: boolean;
1996
2010
  /**
1997
2011
  * The crafting machine's fluid boxes. If an assembling machine has fluid boxes *and* {@link AssemblingMachinePrototype::fluid_boxes_off_when_no_fluid_recipe | prototype:AssemblingMachinePrototype::fluid_boxes_off_when_no_fluid_recipe} is true, the assembling machine can only be rotated when a recipe consuming or producing fluid is set, or if it has one of the other properties listed at the top of this page.
@@ -2030,6 +2044,12 @@ interface CraftingMachinePrototype extends EntityWithOwnerPrototype {
2030
2044
  * The number of module slots in this machine.
2031
2045
  */
2032
2046
  module_slots?: ItemStackIndex;
2047
+ /**
2048
+ * If value is not provided for a quality, then {@link QualityPrototype::crafting_machine_module_slots_bonus | prototype:QualityPrototype::crafting_machine_module_slots_bonus} will be used as a module slots bonus instead.
2049
+ *
2050
+ * Does nothing if {@link CraftingMachinePrototype::quality_affects_module_slots | prototype:CraftingMachinePrototype::quality_affects_module_slots} is not set.
2051
+ */
2052
+ module_slots_quality_bonus?: LuaTable<QualityID, ItemStackIndex>;
2033
2053
  /**
2034
2054
  * Affects animation speed.
2035
2055
  */
@@ -3154,6 +3174,9 @@ interface EntityPrototype extends Prototype {
3154
3174
  fast_replaceable_group?: string;
3155
3175
  flags?: EntityPrototypeFlags;
3156
3176
  friendly_map_color?: Color;
3177
+ /**
3178
+ * This entity can freeze if heating_energy is larger than zero.
3179
+ */
3157
3180
  heating_energy?: Energy;
3158
3181
  /**
3159
3182
  * Where beams should hit the entity. Useful if the bounding box only covers part of the entity (e.g. feet of the character) and beams only hitting there would look weird.
@@ -5262,7 +5285,7 @@ interface LinkedContainerPrototype extends EntityWithOwnerPrototype {
5262
5285
  /**
5263
5286
  * Only used when `inventory_type` is `"with_custom_stack_size"`.
5264
5287
  */
5265
- inventory_properties?: InventoryWithCustomStackSizePrototype;
5288
+ inventory_properties?: InventoryWithCustomStackSizeSpecification;
5266
5289
  /**
5267
5290
  * Must be > 0.
5268
5291
  */
@@ -5632,6 +5655,19 @@ interface MiningDrillPrototype extends EntityWithOwnerPrototype {
5632
5655
  vector_to_place_result: Vector;
5633
5656
  wet_mining_graphics_set?: MiningDrillGraphicsSet;
5634
5657
  }
5658
+ /**
5659
+ * Block of arbitrary data set by mods in data stage.
5660
+ */
5661
+ interface ModData extends Prototype {
5662
+ data: Record<string, AnyBasic>;
5663
+ /**
5664
+ * Arbitrary string that mods can use to declare type of data. Can be used for mod compatibility when one mod declares block of data that is expected to be discovered by another mod.
5665
+ * @example ```
5666
+ data_type = "my-mod.my_structure"
5667
+ ```
5668
+ */
5669
+ data_type?: string;
5670
+ }
5635
5671
  /**
5636
5672
  * A module category. The built-in categories can be found {@link here | https://wiki.factorio.com/Data.raw#module-category}. See {@link ModulePrototype::category | prototype:ModulePrototype::category}.
5637
5673
  */
@@ -6341,6 +6377,9 @@ interface PumpPrototype extends EntityWithOwnerPrototype {
6341
6377
  */
6342
6378
  pumping_speed: FluidAmount;
6343
6379
  }
6380
+ /**
6381
+ * One quality step. Its effects are specified by the level and the various multiplier and bonus properties. Properties ending in `_multiplier` are applied multiplicatively to their base property, properties ending in `_bonus` are applied additively.
6382
+ */
6344
6383
  interface QualityPrototype extends Prototype {
6345
6384
  /**
6346
6385
  * Must be >= 0.01.
@@ -6368,17 +6407,23 @@ interface QualityPrototype extends Prototype {
6368
6407
  beacon_supply_area_distance_bonus?: float;
6369
6408
  color: Color;
6370
6409
  /**
6410
+ * Must be >= 0.01.
6411
+ *
6371
6412
  * Only affects crafting machines with {@link CraftingMachinePrototype::quality_affects_energy_usage | prototype:CraftingMachinePrototype::quality_affects_energy_usage} set.
6372
6413
  *
6373
- * Must be >= 0.01.
6414
+ * Will be ignored by crafting machines with {@link CraftingMachinePrototype::energy_usage_quality_multiplier | prototype:CraftingMachinePrototype::energy_usage_quality_multiplier} set.
6374
6415
  */
6375
6416
  crafting_machine_energy_usage_multiplier?: double;
6376
6417
  /**
6377
6418
  * Only affects crafting machines with {@link CraftingMachinePrototype::quality_affects_module_slots | prototype:CraftingMachinePrototype::quality_affects_module_slots} set.
6419
+ *
6420
+ * Will be ignored by crafting machines with {@link CraftingMachinePrototype::module_slots_quality_bonus | prototype:CraftingMachinePrototype::module_slots_quality_bonus} set.
6378
6421
  */
6379
6422
  crafting_machine_module_slots_bonus?: ItemStackIndex;
6380
6423
  /**
6381
6424
  * Must be >= 0.01.
6425
+ *
6426
+ * Will be ignored by crafting machines with {@link CraftingMachinePrototype::crafting_speed_quality_multiplier | prototype:CraftingMachinePrototype::crafting_speed_quality_multiplier} set.
6382
6427
  */
6383
6428
  crafting_machine_speed_multiplier?: double;
6384
6429
  /**
@@ -6397,9 +6442,9 @@ interface QualityPrototype extends Prototype {
6397
6442
  equipment_grid_height_bonus?: int16;
6398
6443
  equipment_grid_width_bonus?: int16;
6399
6444
  /**
6400
- * Only affects fluid wagons with {@link FluidWagonPrototype::quality_affects_capacity | prototype:FluidWagonPrototype::quality_affects_capacity} set.
6401
- *
6402
6445
  * Must be >= 0.01.
6446
+ *
6447
+ * Only affects fluid wagons with {@link FluidWagonPrototype::quality_affects_capacity | prototype:FluidWagonPrototype::quality_affects_capacity} set.
6403
6448
  */
6404
6449
  fluid_wagon_capacity_multiplier?: double;
6405
6450
  /**
@@ -6473,7 +6518,9 @@ interface QualityPrototype extends Prototype {
6473
6518
  */
6474
6519
  next_probability?: double;
6475
6520
  /**
6476
- * Must be within [1, 3].
6521
+ * Must be within `[1, 3]`.
6522
+ *
6523
+ * Affects the range of {@link attack parameters | prototype:AttackParameters}, e.g. those used by combat robots, units, guns and turrets.
6477
6524
  */
6478
6525
  range_multiplier?: double;
6479
6526
  /**
@@ -8313,7 +8360,7 @@ interface SpaceConnectionPrototype extends Prototype {
8313
8360
  to: SpaceLocationID;
8314
8361
  }
8315
8362
  /**
8316
- * A space location, such as a planet.
8363
+ * A space location, such as a planet or the solar system edge.
8317
8364
  */
8318
8365
  interface SpaceLocationPrototype extends Prototype {
8319
8366
  asteroid_spawn_definitions?: SpaceLocationAsteroidSpawnDefinition[];
@@ -11308,6 +11355,8 @@ type dataExtendType = ({
11308
11355
  } & MarketPrototype) | ({
11309
11356
  type: 'mining-drill';
11310
11357
  } & MiningDrillPrototype) | ({
11358
+ type: 'mod-data';
11359
+ } & ModData) | ({
11311
11360
  type: 'module-category';
11312
11361
  } & ModuleCategory) | ({
11313
11362
  type: 'module';
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.57
5
+ // Factorio version 2.0.58
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
@@ -579,6 +579,10 @@ type AnimationVariations = {
579
579
  */
580
580
  sheets?: AnimationSheet[];
581
581
  } | Animation | Animation[];
582
+ /**
583
+ * Any basic type (string, number, boolean) or table.
584
+ */
585
+ type AnyBasic = string | boolean | number | table;
582
586
  /**
583
587
  * A union of all prototypes. A specific prototype is loaded based on the value of the `type` key.
584
588
  *
@@ -1035,6 +1039,9 @@ MarketPrototype | /**
1035
1039
  * `'mining-drill'`
1036
1040
  */
1037
1041
  MiningDrillPrototype | /**
1042
+ * `'mod-data'`
1043
+ */
1044
+ ModData | /**
1038
1045
  * `'module-category'`
1039
1046
  */
1040
1047
  ModuleCategory | /**
@@ -4582,7 +4589,7 @@ interface FluidBox {
4582
4589
  */
4583
4590
  pipe_connections: PipeConnectionDefinition[];
4584
4591
  /**
4585
- * The pictures to show when another fluid box connects to this one.
4592
+ * The pictures to show when no fluid box is connected to this one.
4586
4593
  */
4587
4594
  pipe_covers?: Sprite4Way;
4588
4595
  pipe_covers_frozen?: Sprite4Way;
@@ -5424,7 +5431,7 @@ interface InterruptibleSound {
5424
5431
  */
5425
5432
  stopped_sound?: Sound;
5426
5433
  }
5427
- interface InventoryWithCustomStackSizePrototype {
5434
+ interface InventoryWithCustomStackSizeSpecification {
5428
5435
  /**
5429
5436
  * Must be >= stack_size_min.
5430
5437
  */
@@ -12943,6 +12950,12 @@ type int32 = number;
12943
12950
  * Decimal numbers are automatically truncated when used in place of `int8`.
12944
12951
  */
12945
12952
  type int8 = number;
12953
+ /**
12954
+ * A simple {@link Lua table | http://www.lua.org/pil/2.5.html}. An array is a table that uses continuous integer keys starting at `1`, while a dictionary can use numeric or string keys in any order or combination.
12955
+ *
12956
+ * Tables used by prototypes may be parsed via an internal class called "property tree". Errors that reference this class treat tables as 0-indexed. For example `Value must be a number in property tree at ROOT.technology.steel-plate-productivity.effects[0].change` refers to element 0 of the property tree array which in Lua is at index 1.
12957
+ */
12958
+ type table = Table;
12946
12959
  /**
12947
12960
  * 16 bit unsigned integer. Ranges from `0` to `65 535`, or `[0, 2^16-1]`.
12948
12961
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "factorio-types",
3
- "version": "1.2.40",
3
+ "version": "1.2.41",
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.57",
26
+ "factorioVersion": "2.0.58",
27
27
  "dependencies": {
28
28
  "lua-types": "^2.13.1"
29
29
  },