factorio-types 1.2.44 → 1.2.46

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.61
5
+ // Factorio version 2.0.64
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -4875,7 +4875,7 @@ interface LuaCommandProcessor {
4875
4875
  readonly object_name: string;
4876
4876
  }
4877
4877
  /**
4878
- * AI object which can be ordered commands. This can represent a UnitGroup (a set of multiple commandables) or can be a single Unit, SpiderUnit or other commandable entity.
4878
+ * AI object which can be ordered commands. This can represent a UnitGroup (a set of multiple commandables) or can be a single Unit or SpiderUnit.
4879
4879
  */
4880
4880
  interface LuaCommandable {
4881
4881
  /**
@@ -5369,6 +5369,12 @@ interface LuaControl {
5369
5369
  * The item drop distance of this character or max uint when not a character or player connected to a character.
5370
5370
  */
5371
5371
  readonly drop_item_distance: uint;
5372
+ /**
5373
+ * The current flight height for this player or character entity.
5374
+ *
5375
+ * When called on an entity, only valid if this entity is a character.
5376
+ */
5377
+ readonly flight_height: double;
5372
5378
  /**
5373
5379
  * The current combat robots following the character.
5374
5380
  *
@@ -5396,6 +5402,12 @@ interface LuaControl {
5396
5402
  * Whether this character entity is in combat.
5397
5403
  */
5398
5404
  readonly in_combat: boolean;
5405
+ /**
5406
+ * If this player or character entity is flying.
5407
+ *
5408
+ * When called on an entity, only valid if this entity is a character.
5409
+ */
5410
+ readonly is_flying: boolean;
5399
5411
  /**
5400
5412
  * The item pickup distance of this character or max double when not a character or player connected to a character.
5401
5413
  */
@@ -5440,6 +5452,10 @@ interface LuaControl {
5440
5452
  * The reach distance of this character or max uint when not a character or player connected to a character.
5441
5453
  */
5442
5454
  readonly reach_distance: uint;
5455
+ /**
5456
+ * The current render position of the entity.
5457
+ */
5458
+ readonly render_position: MapPosition;
5443
5459
  /**
5444
5460
  * Current repair state.
5445
5461
  */
@@ -6059,14 +6075,14 @@ interface LuaEntity extends LuaControl {
6059
6075
  * @param table.do_cliff_correction Whether neighbouring cliffs should be corrected. Defaults to `false`.
6060
6076
  * @param table.raise_destroy If `true`, {@link script_raised_destroy | runtime:script_raised_destroy} will be called. Defaults to `false`.
6061
6077
  * @param table.player The player whose undo queue this action should be added to.
6062
- * @param table.item_index The index of the undo item to add this action to. An index of `0` creates a new undo item for it. Defaults to putting it into the appropriate undo item automatically if not specified.
6078
+ * @param table.undo_index The index of the undo item to add this action to. An index of `0` creates a new undo item for it. Defaults to putting it into the appropriate undo item automatically if not specified.
6063
6079
  * @returns Returns `false` if the entity was valid and destruction failed, `true` in all other cases.
6064
6080
  */
6065
6081
  destroy(this: void, table: {
6066
6082
  do_cliff_correction?: boolean;
6067
6083
  raise_destroy?: boolean;
6068
6084
  player?: PlayerIdentification;
6069
- item_index?: uint;
6085
+ undo_index?: uint;
6070
6086
  }): boolean;
6071
6087
  /**
6072
6088
  * Immediately kills the entity. Does nothing if the entity doesn't have health.
@@ -6198,7 +6214,7 @@ interface LuaEntity extends LuaControl {
6198
6214
  * If information about fluid temperatures is required, {@link LuaEntity::fluidbox | runtime:LuaEntity::fluidbox} should be used instead.
6199
6215
  * @returns The amounts, indexed by fluid names.
6200
6216
  */
6201
- get_fluid_contents(this: void): Record<string, double>;
6217
+ get_fluid_contents(this: void): Record<string, FluidAmount>;
6202
6218
  /**
6203
6219
  * Get the amount of all or some fluid in this entity.
6204
6220
  *
@@ -6547,23 +6563,23 @@ interface LuaEntity extends LuaControl {
6547
6563
  * Sets the entity to be deconstructed by construction robots.
6548
6564
  * @param force The force whose robots are supposed to do the deconstruction.
6549
6565
  * @param player The player to set the last_user to, if any. Also the player whose undo queue this action should be added to.
6550
- * @param item_index The index of the undo item to add this action to. An index of `0` creates a new undo item for it. An index of `1` adds the action to the latest undo action on the stack. Defaults to putting it into the appropriate undo item automatically if one is not specified.
6566
+ * @param undo_index The index of the undo item to add this action to. An index of `0` creates a new undo item for it. An index of `1` adds the action to the latest undo action on the stack. Defaults to putting it into the appropriate undo item automatically if one is not specified.
6551
6567
  * @returns if the entity was marked for deconstruction.
6552
6568
  */
6553
- order_deconstruction(this: void, force: ForceID, player?: PlayerIdentification, item_index?: uint): boolean;
6569
+ order_deconstruction(this: void, force: ForceID, player?: PlayerIdentification, undo_index?: uint): boolean;
6554
6570
  /**
6555
6571
  * Sets the entity to be upgraded by construction robots.
6556
6572
  * @param table.target The prototype of the entity to upgrade to.
6557
6573
  * @param table.force The force whose robots are supposed to do the upgrade.
6558
6574
  * @param table.player The player whose undo queue this action should be added to.
6559
- * @param table.item_index The index of the undo item to add this action to. An index of `0` creates a new undo item for it. Defaults to putting it into the appropriate undo item automatically if not specified.
6575
+ * @param table.undo_index The index of the undo item to add this action to. An index of `0` creates a new undo item for it. Defaults to putting it into the appropriate undo item automatically if not specified.
6560
6576
  * @returns Whether the entity was marked for upgrade.
6561
6577
  */
6562
6578
  order_upgrade(this: void, table: {
6563
6579
  target: EntityWithQualityID;
6564
6580
  force: ForceID;
6565
6581
  player?: PlayerIdentification;
6566
- item_index?: uint;
6582
+ undo_index?: uint;
6567
6583
  }): boolean;
6568
6584
  /**
6569
6585
  * Plays a note with the given instrument and note.
@@ -6930,7 +6946,7 @@ interface LuaEntity extends LuaControl {
6930
6946
  */
6931
6947
  readonly cliff_orientation: CliffOrientation;
6932
6948
  /**
6933
- * The color of this character, rolling stock, train stop, car, spider-vehicle, flying text, corpse or simple-entity-with-owner. `nil` if this entity doesn't use custom colors.
6949
+ * The color of this character, rolling stock, corpse, train stop, simple-entity-with-owner, car, spider-vehicle, or lamp. `nil` if this entity doesn't use custom colors.
6934
6950
  *
6935
6951
  * Car color is overridden by the color of the current driver/passenger, if there is one.
6936
6952
  */
@@ -6944,7 +6960,7 @@ interface LuaEntity extends LuaControl {
6944
6960
  */
6945
6961
  combinator_description: string;
6946
6962
  /**
6947
- * Returns a LuaCommandable for this entity or nil if entity is not commandable.
6963
+ * Returns a LuaCommandable for this entity or nil if entity is not commandable. Units and SpiderUnits are commandable.
6948
6964
  */
6949
6965
  readonly commandable?: LuaCommandable;
6950
6966
  /**
@@ -7003,6 +7019,10 @@ interface LuaEntity extends LuaControl {
7003
7019
  * Will set destination in 3D for the grappler of crane of this entity. The crane grappler will start moving to reach the destination, but the rest of the arm will remain stationary. Throws when trying to set the destination out of range.
7004
7020
  */
7005
7021
  crane_grappler_destination_3d: Vector3D;
7022
+ /**
7023
+ * The corpse that caused this entity ghost to be created, if any.
7024
+ */
7025
+ readonly created_by_corpse?: LuaEntity;
7006
7026
  /**
7007
7027
  * A custom status for this entity that will be displayed in the GUI.
7008
7028
  */
@@ -7197,6 +7217,10 @@ interface LuaEntity extends LuaControl {
7197
7217
  * To get the maximum possible health of this entity, see {@link LuaEntity::max_health | runtime:LuaEntity::max_health}.
7198
7218
  */
7199
7219
  health?: float;
7220
+ /**
7221
+ * The entities connected to this entities heat buffer.
7222
+ */
7223
+ readonly heat_neighbours: LuaEntity[];
7200
7224
  /**
7201
7225
  * The item stack currently held in an inserter's hand.
7202
7226
  */
@@ -7386,7 +7410,7 @@ interface LuaEntity extends LuaControl {
7386
7410
  */
7387
7411
  readonly neighbour_bonus: double;
7388
7412
  /**
7389
- * A list of neighbours for certain types of entities. Applies to underground belts, walls, gates, reactors, cliffs, and pipe-connectable entities.
7413
+ * A list of neighbours for certain types of entities. Applies to underground belts, walls, gates, reactors, heat pipes, cliffs, and pipe-connectable entities.
7390
7414
  * Differs depending on the type of entity:
7391
7415
  *
7392
7416
  * - When called on a pipe-connectable entity, this is an array of entity arrays of all entities a given fluidbox is connected to.
@@ -7454,6 +7478,10 @@ interface LuaEntity extends LuaControl {
7454
7478
  * The previous recipe this furnace was using, if any.
7455
7479
  */
7456
7480
  readonly previous_recipe?: RecipeIDAndQualityIDPair;
7481
+ /**
7482
+ * The priority targets for this turret (if any).
7483
+ */
7484
+ readonly priority_targets: LuaEntityPrototype[];
7457
7485
  /**
7458
7486
  * how far into the current procession the cargo pod is.
7459
7487
  */
@@ -8045,7 +8073,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
8045
8073
  readonly build_base_evolution_requirement: double;
8046
8074
  readonly build_distance?: uint;
8047
8075
  /**
8048
- * The log2 of grid size of the building
8076
+ * The log2 of {@link grid size | prototype:EntityPrototype::build_grid_size} of the building.
8049
8077
  */
8050
8078
  readonly building_grid_bit_shift: uint;
8051
8079
  /**
@@ -9493,7 +9521,7 @@ interface LuaFluidBox {
9493
9521
  * @param fluid If provided, only this fluid is flushed.
9494
9522
  * @returns The removed fluid.
9495
9523
  */
9496
- flush(this: void, index: uint, fluid?: FluidID): Record<string, float>;
9524
+ flush(this: void, index: uint, fluid?: FluidID): Record<string, FluidAmount>;
9497
9525
  /**
9498
9526
  * The capacity of the given fluidbox segment.
9499
9527
  */
@@ -9839,7 +9867,7 @@ interface LuaForce {
9839
9867
  */
9840
9868
  enable_research(this: void): void;
9841
9869
  /**
9842
- * Finds all custom chart tags within the given bounding box on the given surface.
9870
+ * Finds all custom chart tags within a given area on the given surface. If no area is given all custom chart tags on the surface are returned.
9843
9871
  */
9844
9872
  find_chart_tags(this: void, surface: SurfaceIdentification, area?: BoundingBox): LuaCustomChartTag[];
9845
9873
  /**
@@ -10218,7 +10246,7 @@ interface LuaForce {
10218
10246
  /**
10219
10247
  * All of the items that have been launched in rockets.
10220
10248
  */
10221
- readonly items_launched: ItemWithQualityCounts;
10249
+ readonly items_launched: Record<string, ItemCountType>;
10222
10250
  laboratory_productivity_bonus: double;
10223
10251
  laboratory_speed_modifier: double;
10224
10252
  /**
@@ -12417,6 +12445,8 @@ interface LuaInventory {
12417
12445
  is_filtered(this: void): boolean;
12418
12446
  /**
12419
12447
  * Is every stack in this inventory full? Ignores stacks blocked by the current bar.
12448
+ *
12449
+ * For the input slots of crafting machines that allow counts larger than the item stack size, this may return true even when more items can still be inserted.
12420
12450
  */
12421
12451
  is_full(this: void): boolean;
12422
12452
  /**
@@ -12778,6 +12808,10 @@ interface LuaItemCommon {
12778
12808
  * If absolute snapping is enabled on this blueprint item.
12779
12809
  */
12780
12810
  blueprint_absolute_snapping: boolean;
12811
+ /**
12812
+ * The description for this blueprint or blueprint book
12813
+ */
12814
+ blueprint_description: string;
12781
12815
  /**
12782
12816
  * The offset from the absolute grid. `nil` if absolute snapping is not enabled.
12783
12817
  */
@@ -14146,6 +14180,12 @@ interface LuaPlanet {
14146
14180
  * Creates the associated surface if one doesn't already exist.
14147
14181
  */
14148
14182
  create_surface(this: void): LuaSurface;
14183
+ /**
14184
+ * Gets the built space platforms orbiting this planet on the given force.
14185
+ *
14186
+ * Note, this does not include platforms that have not yet been built.
14187
+ */
14188
+ get_space_platforms(this: void, force: ForceID): LuaSpacePlatform[];
14149
14189
  /**
14150
14190
  * Resets the map gen settings on this planet to the default from-prototype state.
14151
14191
  */
@@ -16039,6 +16079,10 @@ interface LuaRecord {
16039
16079
  * If absolute snapping is enabled on this blueprint.
16040
16080
  */
16041
16081
  blueprint_absolute_snapping: boolean;
16082
+ /**
16083
+ * The description for this blueprint or blueprint book
16084
+ */
16085
+ blueprint_description: string;
16042
16086
  /**
16043
16087
  * The offset from the absolute grid. `nil` if absolute snapping is not enabled.
16044
16088
  */
@@ -16151,7 +16195,7 @@ interface LuaRemote {
16151
16195
  * Providing an unknown interface or function name will result in a script error.
16152
16196
  * @param interface Interface to look up `function` in.
16153
16197
  * @param _function Function name that belongs to the `interface`.
16154
- * @param args Arguments to pass to the called function. Note that any arguments passed through the interface are a copy of the original, not a reference. Metatables are not retained, while references to LuaObjects stay intact.
16198
+ * @param args Arguments to pass to the called function. Note that any arguments passed through the interface are a copy of the original, not a reference. Metatables are not retained, while references to LuaObjects stay intact. Functions cannot be passed through the interface.
16155
16199
  */
16156
16200
  call(this: void, interface: string, _function: string, ...args: Any[]): Any | null;
16157
16201
  /**
@@ -17933,7 +17977,7 @@ interface LuaSurface {
17933
17977
  * @param table.player The player to set the last_user to, if any. Also the player whose undo queue this action should be added to.
17934
17978
  * @param table.skip_fog_of_war If chunks covered by fog-of-war are skipped. Defaults to `false`.
17935
17979
  * @param table.item The deconstruction item to use if any.
17936
- * @param table.item_index The index of the undo item to add this action to. An index of `0` creates a new undo item for it. Defaults to putting it into the appropriate undo item automatically if not specified.
17980
+ * @param table.undo_index The index of the undo item to add this action to. An index of `0` creates a new undo item for it. Defaults to putting it into the appropriate undo item automatically if not specified.
17937
17981
  * @param table.super_forced If the cancel deconstruction is super-forced. Defaults to `false`.
17938
17982
  */
17939
17983
  cancel_deconstruct_area(this: void, table: {
@@ -17942,7 +17986,7 @@ interface LuaSurface {
17942
17986
  player?: PlayerIdentification;
17943
17987
  skip_fog_of_war?: boolean;
17944
17988
  item?: LuaItemStack;
17945
- item_index?: uint;
17989
+ undo_index?: uint;
17946
17990
  super_forced?: boolean;
17947
17991
  }): void;
17948
17992
  /**
@@ -18937,8 +18981,12 @@ interface LuaSurface {
18937
18981
  */
18938
18982
  wind_speed: double;
18939
18983
  }
18940
- type LuaSurfaceCreateEntityParams = BaseLuaSurfaceCreateEntityParams | LuaSurfaceCreateEntityParamsArtilleryFlare | LuaSurfaceCreateEntityParamsArtilleryProjectile | LuaSurfaceCreateEntityParamsAssemblingMachine | LuaSurfaceCreateEntityParamsBeam | LuaSurfaceCreateEntityParamsCharacterCorpse | LuaSurfaceCreateEntityParamsCliff | LuaSurfaceCreateEntityParamsContainer | LuaSurfaceCreateEntityParamsDisplayPanel | LuaSurfaceCreateEntityParamsElectricPole | LuaSurfaceCreateEntityParamsEntityGhost | LuaSurfaceCreateEntityParamsFire | LuaSurfaceCreateEntityParamsHighlightBox | LuaSurfaceCreateEntityParamsInserter | LuaSurfaceCreateEntityParamsItemEntity | LuaSurfaceCreateEntityParamsItemRequestProxy | LuaSurfaceCreateEntityParamsLamp | LuaSurfaceCreateEntityParamsLoader | LuaSurfaceCreateEntityParamsLoader1x1 | LuaSurfaceCreateEntityParamsLocomotive | LuaSurfaceCreateEntityParamsLogisticContainer | LuaSurfaceCreateEntityParamsParticle | LuaSurfaceCreateEntityParamsPlant | LuaSurfaceCreateEntityParamsProgrammableSpeaker | LuaSurfaceCreateEntityParamsProjectile | LuaSurfaceCreateEntityParamsProjectile | LuaSurfaceCreateEntityParamsRailChainSignal | LuaSurfaceCreateEntityParamsRailSignal | LuaSurfaceCreateEntityParamsResource | LuaSurfaceCreateEntityParamsRollingStock | LuaSurfaceCreateEntityParamsSimpleEntityWithForce | LuaSurfaceCreateEntityParamsSimpleEntityWithOwner | LuaSurfaceCreateEntityParamsSpeechBubble | LuaSurfaceCreateEntityParamsStream | LuaSurfaceCreateEntityParamsTileGhost | LuaSurfaceCreateEntityParamsUndergroundBelt;
18984
+ type LuaSurfaceCreateEntityParams = BaseLuaSurfaceCreateEntityParams | LuaSurfaceCreateEntityParamsAccumulator | LuaSurfaceCreateEntityParamsAgriculturalTower | LuaSurfaceCreateEntityParamsAmmoTurret | LuaSurfaceCreateEntityParamsArithmeticCombinator | LuaSurfaceCreateEntityParamsArtilleryFlare | LuaSurfaceCreateEntityParamsArtilleryProjectile | LuaSurfaceCreateEntityParamsArtilleryTurret | LuaSurfaceCreateEntityParamsArtilleryWagon | LuaSurfaceCreateEntityParamsAssemblingMachine | LuaSurfaceCreateEntityParamsAsteroid | LuaSurfaceCreateEntityParamsAsteroidCollector | LuaSurfaceCreateEntityParamsBeam | LuaSurfaceCreateEntityParamsCar | LuaSurfaceCreateEntityParamsCargoLandingPad | LuaSurfaceCreateEntityParamsCargoWagon | LuaSurfaceCreateEntityParamsCharacterCorpse | LuaSurfaceCreateEntityParamsCliff | LuaSurfaceCreateEntityParamsConstantCombinator | LuaSurfaceCreateEntityParamsContainer | LuaSurfaceCreateEntityParamsDeciderCombinator | LuaSurfaceCreateEntityParamsDeconstructibleTileProxy | LuaSurfaceCreateEntityParamsDisplayPanel | LuaSurfaceCreateEntityParamsElectricEnergyInterface | LuaSurfaceCreateEntityParamsElectricPole | LuaSurfaceCreateEntityParamsElectricTurret | LuaSurfaceCreateEntityParamsEntityGhost | LuaSurfaceCreateEntityParamsFire | LuaSurfaceCreateEntityParamsFluidTurret | LuaSurfaceCreateEntityParamsFluidWagon | LuaSurfaceCreateEntityParamsFurnace | LuaSurfaceCreateEntityParamsHighlightBox | LuaSurfaceCreateEntityParamsInfinityCargoWagon | LuaSurfaceCreateEntityParamsInfinityContainer | LuaSurfaceCreateEntityParamsInfinityPipe | LuaSurfaceCreateEntityParamsInserter | LuaSurfaceCreateEntityParamsItemEntity | LuaSurfaceCreateEntityParamsItemRequestProxy | LuaSurfaceCreateEntityParamsLamp | LuaSurfaceCreateEntityParamsLaneSplitter | LuaSurfaceCreateEntityParamsLinkedBelt | LuaSurfaceCreateEntityParamsLinkedContainer | LuaSurfaceCreateEntityParamsLoader | LuaSurfaceCreateEntityParamsLoader1x1 | LuaSurfaceCreateEntityParamsLocomotive | LuaSurfaceCreateEntityParamsLogisticContainer | LuaSurfaceCreateEntityParamsMiningDrill | LuaSurfaceCreateEntityParamsParticle | LuaSurfaceCreateEntityParamsPlant | LuaSurfaceCreateEntityParamsPowerSwitch | LuaSurfaceCreateEntityParamsProgrammableSpeaker | LuaSurfaceCreateEntityParamsProjectile | LuaSurfaceCreateEntityParamsProxyContainer | LuaSurfaceCreateEntityParamsPump | LuaSurfaceCreateEntityParamsRailChainSignal | LuaSurfaceCreateEntityParamsRailSignal | LuaSurfaceCreateEntityParamsReactor | LuaSurfaceCreateEntityParamsResource | LuaSurfaceCreateEntityParamsRoboport | LuaSurfaceCreateEntityParamsRocketSilo | LuaSurfaceCreateEntityParamsSelectorCombinator | LuaSurfaceCreateEntityParamsSimpleEntityWithForce | LuaSurfaceCreateEntityParamsSimpleEntityWithOwner | LuaSurfaceCreateEntityParamsSpacePlatformHub | LuaSurfaceCreateEntityParamsSpeechBubble | LuaSurfaceCreateEntityParamsSpiderVehicle | LuaSurfaceCreateEntityParamsSplitter | LuaSurfaceCreateEntityParamsStorageTank | LuaSurfaceCreateEntityParamsStream | LuaSurfaceCreateEntityParamsTileGhost | LuaSurfaceCreateEntityParamsTrainStop | LuaSurfaceCreateEntityParamsTransportBelt | LuaSurfaceCreateEntityParamsTurret | LuaSurfaceCreateEntityParamsUndergroundBelt | LuaSurfaceCreateEntityParamsValve | LuaSurfaceCreateEntityParamsWall;
18941
18985
  interface BaseLuaSurfaceCreateEntityParams {
18986
+ /**
18987
+ * Used by entities with a burner energy source.
18988
+ */
18989
+ 'burner_fuel_inventory'?: BlueprintInventoryWithFilters;
18942
18990
  /**
18943
18991
  * Cause entity / force. The entity or force that triggered the chain of events that led to this entity being created. Used for beams, projectiles, stickers, etc. so that the damage receiver can know which entity or force to retaliate against.
18944
18992
  */
@@ -18967,10 +19015,6 @@ interface BaseLuaSurfaceCreateEntityParams {
18967
19015
  * If provided, the entity will attempt to pull stored values from this item (for example; creating a spidertron from a previously named and mined spidertron)
18968
19016
  */
18969
19017
  'item'?: LuaItemStack;
18970
- /**
18971
- * The index of the undo item to add this action to. An index of `0` creates a new undo item for it. Defaults to putting it into the appropriate undo item automatically if not specified.
18972
- */
18973
- 'item_index'?: uint;
18974
19018
  /**
18975
19019
  * If true, any characters that are in the way of the entity are teleported out of the way.
18976
19020
  */
@@ -19023,6 +19067,44 @@ interface BaseLuaSurfaceCreateEntityParams {
19023
19067
  * Entity with health for the new entity to target.
19024
19068
  */
19025
19069
  'target'?: LuaEntity | MapPosition;
19070
+ /**
19071
+ * The index of the undo item to add this action to. An index of `0` creates a new undo item for it. Defaults to putting it into the appropriate undo item automatically if not specified.
19072
+ */
19073
+ 'undo_index'?: uint;
19074
+ }
19075
+ /**
19076
+ *
19077
+ * Applies to variant case `accumulator`
19078
+ */
19079
+ interface LuaSurfaceCreateEntityParamsAccumulator extends BaseLuaSurfaceCreateEntityParams {
19080
+ 'control_behavior'?: AccumulatorBlueprintControlBehavior;
19081
+ }
19082
+ /**
19083
+ *
19084
+ * Applies to variant case `agricultural-tower`
19085
+ */
19086
+ interface LuaSurfaceCreateEntityParamsAgriculturalTower extends BaseLuaSurfaceCreateEntityParams {
19087
+ 'control_behavior'?: AgriculturalTowerBlueprintControlBehavior;
19088
+ }
19089
+ /**
19090
+ *
19091
+ * Applies to variant case `ammo-turret`
19092
+ */
19093
+ interface LuaSurfaceCreateEntityParamsAmmoTurret extends BaseLuaSurfaceCreateEntityParams {
19094
+ 'control_behavior'?: TurretBlueprintControlBehavior;
19095
+ /**
19096
+ * Defaults to `false`.
19097
+ */
19098
+ 'ignore-unprioritised'?: boolean;
19099
+ 'priority-list'?: SlotFilter;
19100
+ }
19101
+ /**
19102
+ *
19103
+ * Applies to variant case `arithmetic-combinator`
19104
+ */
19105
+ interface LuaSurfaceCreateEntityParamsArithmeticCombinator extends BaseLuaSurfaceCreateEntityParams {
19106
+ 'control_behavior'?: ArithmeticCombinatorBlueprintControlBehavior;
19107
+ 'player_description'?: string;
19026
19108
  }
19027
19109
  /**
19028
19110
  *
@@ -19044,12 +19126,56 @@ interface LuaSurfaceCreateEntityParamsArtilleryProjectile extends BaseLuaSurface
19044
19126
  */
19045
19127
  'speed'?: double;
19046
19128
  }
19129
+ /**
19130
+ *
19131
+ * Applies to variant case `artillery-turret`
19132
+ */
19133
+ interface LuaSurfaceCreateEntityParamsArtilleryTurret extends BaseLuaSurfaceCreateEntityParams {
19134
+ 'artillery_auto_targeting'?: boolean;
19135
+ 'control_behavior'?: ArtilleryTurretBlueprintControlBehavior;
19136
+ }
19137
+ /**
19138
+ *
19139
+ * Applies to variant case `artillery-wagon`
19140
+ */
19141
+ interface LuaSurfaceCreateEntityParamsArtilleryWagon extends BaseLuaSurfaceCreateEntityParams {
19142
+ 'artillery_auto_targeting'?: boolean;
19143
+ /**
19144
+ * The color of this rolling stock, if it supports colors.
19145
+ */
19146
+ 'color'?: Color;
19147
+ 'copy_color_from_train_stop'?: boolean;
19148
+ 'enable_logistics_while_moving'?: boolean;
19149
+ 'grid'?: BlueprintEquipment[];
19150
+ /**
19151
+ * The orientation of this rolling stock.
19152
+ */
19153
+ 'orientation'?: RealOrientation;
19154
+ }
19047
19155
  /**
19048
19156
  *
19049
19157
  * Applies to variant case `assembling-machine`
19050
19158
  */
19051
19159
  interface LuaSurfaceCreateEntityParamsAssemblingMachine extends BaseLuaSurfaceCreateEntityParams {
19160
+ 'control_behavior'?: AssemblingMachineBlueprintControlBehavior;
19052
19161
  'recipe'?: string;
19162
+ 'recipe_quality'?: string;
19163
+ }
19164
+ /**
19165
+ *
19166
+ * Applies to variant case `asteroid`
19167
+ */
19168
+ interface LuaSurfaceCreateEntityParamsAsteroid extends BaseLuaSurfaceCreateEntityParams {
19169
+ 'velocity'?: Vector;
19170
+ }
19171
+ /**
19172
+ *
19173
+ * Applies to variant case `asteroid-collector`
19174
+ */
19175
+ interface LuaSurfaceCreateEntityParamsAsteroidCollector extends BaseLuaSurfaceCreateEntityParams {
19176
+ 'chunk-filter'?: SlotFilter[];
19177
+ 'control_behavior'?: AsteroidCollectorBlueprintControlBehavior;
19178
+ 'result-inventory'?: BlueprintInventory;
19053
19179
  }
19054
19180
  /**
19055
19181
  *
@@ -19077,11 +19203,53 @@ interface LuaSurfaceCreateEntityParamsBeam extends BaseLuaSurfaceCreateEntityPar
19077
19203
  */
19078
19204
  'target_position'?: MapPosition;
19079
19205
  }
19206
+ /**
19207
+ *
19208
+ * Applies to variant case `car`
19209
+ */
19210
+ interface LuaSurfaceCreateEntityParamsCar extends BaseLuaSurfaceCreateEntityParams {
19211
+ 'ammo_inventory'?: BlueprintInventoryWithFilters;
19212
+ 'driver_is_main_gunner'?: boolean;
19213
+ 'enable_logistics_while_moving'?: boolean;
19214
+ 'grid'?: BlueprintEquipment[];
19215
+ 'orientation'?: RealOrientation;
19216
+ 'request_filters'?: BlueprintLogisticSections;
19217
+ 'selected_gun_index'?: ItemStackIndex;
19218
+ 'trunk_inventory'?: BlueprintInventoryWithFilters;
19219
+ }
19220
+ /**
19221
+ *
19222
+ * Applies to variant case `cargo-landing-pad`
19223
+ */
19224
+ interface LuaSurfaceCreateEntityParamsCargoLandingPad extends BaseLuaSurfaceCreateEntityParams {
19225
+ 'bar'?: uint;
19226
+ 'control_behavior'?: CargoLandingPadBlueprintControlBehavior;
19227
+ 'request_filters'?: BlueprintLogisticSections;
19228
+ }
19229
+ /**
19230
+ *
19231
+ * Applies to variant case `cargo-wagon`
19232
+ */
19233
+ interface LuaSurfaceCreateEntityParamsCargoWagon extends BaseLuaSurfaceCreateEntityParams {
19234
+ /**
19235
+ * The color of this rolling stock, if it supports colors.
19236
+ */
19237
+ 'color'?: Color;
19238
+ 'copy_color_from_train_stop'?: boolean;
19239
+ 'enable_logistics_while_moving'?: boolean;
19240
+ 'grid'?: BlueprintEquipment[];
19241
+ 'inventory'?: BlueprintInventoryWithFilters;
19242
+ /**
19243
+ * The orientation of this rolling stock.
19244
+ */
19245
+ 'orientation'?: RealOrientation;
19246
+ }
19080
19247
  /**
19081
19248
  *
19082
19249
  * Applies to variant case `character-corpse`
19083
19250
  */
19084
19251
  interface LuaSurfaceCreateEntityParamsCharacterCorpse extends BaseLuaSurfaceCreateEntityParams {
19252
+ 'color'?: Color;
19085
19253
  'inventory_size'?: uint;
19086
19254
  'player_index'?: uint;
19087
19255
  }
@@ -19095,6 +19263,14 @@ interface LuaSurfaceCreateEntityParamsCliff extends BaseLuaSurfaceCreateEntityPa
19095
19263
  */
19096
19264
  'cliff_orientation'?: CliffOrientation;
19097
19265
  }
19266
+ /**
19267
+ *
19268
+ * Applies to variant case `constant-combinator`
19269
+ */
19270
+ interface LuaSurfaceCreateEntityParamsConstantCombinator extends BaseLuaSurfaceCreateEntityParams {
19271
+ 'control_behavior'?: ConstantCombinatorBlueprintControlBehavior;
19272
+ 'player_description'?: string;
19273
+ }
19098
19274
  /**
19099
19275
  *
19100
19276
  * Applies to variant case `container`
@@ -19104,6 +19280,22 @@ interface LuaSurfaceCreateEntityParamsContainer extends BaseLuaSurfaceCreateEnti
19104
19280
  * Inventory index where the red limiting bar should be set.
19105
19281
  */
19106
19282
  'bar'?: uint;
19283
+ 'control_behavior'?: ContainerBlueprintControlBehavior;
19284
+ }
19285
+ /**
19286
+ *
19287
+ * Applies to variant case `decider-combinator`
19288
+ */
19289
+ interface LuaSurfaceCreateEntityParamsDeciderCombinator extends BaseLuaSurfaceCreateEntityParams {
19290
+ 'control_behavior'?: DeciderCombinatorBlueprintControlBehavior;
19291
+ 'player_description'?: string;
19292
+ }
19293
+ /**
19294
+ *
19295
+ * Applies to variant case `deconstructible-tile-proxy`
19296
+ */
19297
+ interface LuaSurfaceCreateEntityParamsDeconstructibleTileProxy extends BaseLuaSurfaceCreateEntityParams {
19298
+ 'proxy_type'?: 'cover' | 'foundation';
19107
19299
  }
19108
19300
  /**
19109
19301
  *
@@ -19111,10 +19303,20 @@ interface LuaSurfaceCreateEntityParamsContainer extends BaseLuaSurfaceCreateEnti
19111
19303
  */
19112
19304
  interface LuaSurfaceCreateEntityParamsDisplayPanel extends BaseLuaSurfaceCreateEntityParams {
19113
19305
  'always_show'?: boolean;
19306
+ 'control_behavior'?: DisplayPanelBlueprintControlBehavior;
19114
19307
  'icon'?: SignalID;
19115
19308
  'show_in_chart'?: boolean;
19116
19309
  'text'?: LocalisedString;
19117
19310
  }
19311
+ /**
19312
+ *
19313
+ * Applies to variant case `electric-energy-interface`
19314
+ */
19315
+ interface LuaSurfaceCreateEntityParamsElectricEnergyInterface extends BaseLuaSurfaceCreateEntityParams {
19316
+ 'buffer_size'?: double;
19317
+ 'power_production'?: double;
19318
+ 'power_usage'?: double;
19319
+ }
19118
19320
  /**
19119
19321
  *
19120
19322
  * Applies to variant case `electric-pole`
@@ -19125,6 +19327,18 @@ interface LuaSurfaceCreateEntityParamsElectricPole extends BaseLuaSurfaceCreateE
19125
19327
  */
19126
19328
  'auto_connect'?: boolean;
19127
19329
  }
19330
+ /**
19331
+ *
19332
+ * Applies to variant case `electric-turret`
19333
+ */
19334
+ interface LuaSurfaceCreateEntityParamsElectricTurret extends BaseLuaSurfaceCreateEntityParams {
19335
+ 'control_behavior'?: TurretBlueprintControlBehavior;
19336
+ /**
19337
+ * Defaults to `false`.
19338
+ */
19339
+ 'ignore-unprioritised'?: boolean;
19340
+ 'priority-list'?: SlotFilter;
19341
+ }
19128
19342
  /**
19129
19343
  *
19130
19344
  * Applies to variant case `entity-ghost`
@@ -19149,6 +19363,42 @@ interface LuaSurfaceCreateEntityParamsFire extends BaseLuaSurfaceCreateEntityPar
19149
19363
  */
19150
19364
  'initial_ground_flame_count'?: uint8;
19151
19365
  }
19366
+ /**
19367
+ *
19368
+ * Applies to variant case `fluid-turret`
19369
+ */
19370
+ interface LuaSurfaceCreateEntityParamsFluidTurret extends BaseLuaSurfaceCreateEntityParams {
19371
+ 'control_behavior'?: TurretBlueprintControlBehavior;
19372
+ /**
19373
+ * Defaults to `false`.
19374
+ */
19375
+ 'ignore-unprioritised'?: boolean;
19376
+ 'priority-list'?: SlotFilter;
19377
+ }
19378
+ /**
19379
+ *
19380
+ * Applies to variant case `fluid-wagon`
19381
+ */
19382
+ interface LuaSurfaceCreateEntityParamsFluidWagon extends BaseLuaSurfaceCreateEntityParams {
19383
+ /**
19384
+ * The color of this rolling stock, if it supports colors.
19385
+ */
19386
+ 'color'?: Color;
19387
+ 'copy_color_from_train_stop'?: boolean;
19388
+ 'enable_logistics_while_moving'?: boolean;
19389
+ 'grid'?: BlueprintEquipment[];
19390
+ /**
19391
+ * The orientation of this rolling stock.
19392
+ */
19393
+ 'orientation'?: RealOrientation;
19394
+ }
19395
+ /**
19396
+ *
19397
+ * Applies to variant case `furnace`
19398
+ */
19399
+ interface LuaSurfaceCreateEntityParamsFurnace extends BaseLuaSurfaceCreateEntityParams {
19400
+ 'control_behavior'?: FurnaceBlueprintControlBehavior;
19401
+ }
19152
19402
  /**
19153
19403
  *
19154
19404
  * Applies to variant case `highlight-box`
@@ -19175,13 +19425,64 @@ interface LuaSurfaceCreateEntityParamsHighlightBox extends BaseLuaSurfaceCreateE
19175
19425
  */
19176
19426
  'time_to_live'?: uint;
19177
19427
  }
19428
+ /**
19429
+ *
19430
+ * Applies to variant case `infinity-cargo-wagon`
19431
+ */
19432
+ interface LuaSurfaceCreateEntityParamsInfinityCargoWagon extends BaseLuaSurfaceCreateEntityParams {
19433
+ /**
19434
+ * The color of this rolling stock, if it supports colors.
19435
+ */
19436
+ 'color'?: Color;
19437
+ 'copy_color_from_train_stop'?: boolean;
19438
+ 'enable_logistics_while_moving'?: boolean;
19439
+ 'grid'?: BlueprintEquipment[];
19440
+ 'infinity_settings'?: BlueprintInfinityInventorySettings;
19441
+ 'inventory'?: BlueprintInventoryWithFilters;
19442
+ /**
19443
+ * The orientation of this rolling stock.
19444
+ */
19445
+ 'orientation'?: RealOrientation;
19446
+ }
19447
+ /**
19448
+ *
19449
+ * Applies to variant case `infinity-container`
19450
+ */
19451
+ interface LuaSurfaceCreateEntityParamsInfinityContainer extends BaseLuaSurfaceCreateEntityParams {
19452
+ 'bar'?: uint;
19453
+ 'control_behavior'?: LogisticContainerBlueprintControlBehavior;
19454
+ 'infinity_settings'?: BlueprintInfinityInventorySettings;
19455
+ 'request_filters'?: BlueprintLogisticSections;
19456
+ }
19457
+ /**
19458
+ *
19459
+ * Applies to variant case `infinity-pipe`
19460
+ */
19461
+ interface LuaSurfaceCreateEntityParamsInfinityPipe extends BaseLuaSurfaceCreateEntityParams {
19462
+ 'infinity_settings'?: InfinityPipeFilter;
19463
+ }
19178
19464
  /**
19179
19465
  *
19180
19466
  * Applies to variant case `inserter`
19181
19467
  */
19182
19468
  interface LuaSurfaceCreateEntityParamsInserter extends BaseLuaSurfaceCreateEntityParams {
19183
- 'conditions': InserterCircuitConditions;
19469
+ 'control_behavior'?: InserterBlueprintControlBehavior;
19470
+ /**
19471
+ * Used only if {@link InserterPrototype::allow_custom_vectors | prototype:InserterPrototype::allow_custom_vectors} is true.
19472
+ */
19473
+ 'drop_position'?: Vector;
19474
+ 'filter_mode'?: 'blacklist' | 'whitelist';
19184
19475
  'filters'?: BlueprintItemFilter[];
19476
+ 'override_stack_size'?: uint8;
19477
+ /**
19478
+ * Used only if {@link InserterPrototype::allow_custom_vectors | prototype:InserterPrototype::allow_custom_vectors} is true.
19479
+ */
19480
+ 'pickup_position'?: Vector;
19481
+ 'spoil_priority'?: 'spoiled-first' | 'fresh-first';
19482
+ /**
19483
+ * Defaults to `false`.
19484
+ */
19485
+ 'use_filters'?: boolean;
19185
19486
  }
19186
19487
  /**
19187
19488
  *
@@ -19225,11 +19526,36 @@ interface LuaSurfaceCreateEntityParamsLamp extends BaseLuaSurfaceCreateEntityPar
19225
19526
  */
19226
19527
  'color'?: Color;
19227
19528
  }
19529
+ /**
19530
+ *
19531
+ * Applies to variant case `lane-splitter`
19532
+ */
19533
+ interface LuaSurfaceCreateEntityParamsLaneSplitter extends BaseLuaSurfaceCreateEntityParams {
19534
+ 'filter'?: ItemFilter;
19535
+ 'input_priority'?: SplitterPriority;
19536
+ 'output_priority'?: SplitterPriority;
19537
+ }
19538
+ /**
19539
+ *
19540
+ * Applies to variant case `linked-belt`
19541
+ */
19542
+ interface LuaSurfaceCreateEntityParamsLinkedBelt extends BaseLuaSurfaceCreateEntityParams {
19543
+ 'type'?: BeltConnectionType;
19544
+ }
19545
+ /**
19546
+ *
19547
+ * Applies to variant case `linked-container`
19548
+ */
19549
+ interface LuaSurfaceCreateEntityParamsLinkedContainer extends BaseLuaSurfaceCreateEntityParams {
19550
+ 'link_id'?: uint;
19551
+ }
19228
19552
  /**
19229
19553
  *
19230
19554
  * Applies to variant case `loader`
19231
19555
  */
19232
19556
  interface LuaSurfaceCreateEntityParamsLoader extends BaseLuaSurfaceCreateEntityParams {
19557
+ 'belt_stack_size_override'?: uint8;
19558
+ 'filter_mode'?: PrototypeFilterMode;
19233
19559
  'filters'?: SlotFilter[];
19234
19560
  /**
19235
19561
  * Defaults to `"input"`.
@@ -19241,6 +19567,8 @@ interface LuaSurfaceCreateEntityParamsLoader extends BaseLuaSurfaceCreateEntityP
19241
19567
  * Applies to variant case `loader-1x1`
19242
19568
  */
19243
19569
  interface LuaSurfaceCreateEntityParamsLoader1x1 extends BaseLuaSurfaceCreateEntityParams {
19570
+ 'belt_stack_size_override'?: uint8;
19571
+ 'filter_mode'?: PrototypeFilterMode;
19244
19572
  'filters'?: SlotFilter[];
19245
19573
  /**
19246
19574
  * Defaults to `"input"`.
@@ -19252,6 +19580,17 @@ interface LuaSurfaceCreateEntityParamsLoader1x1 extends BaseLuaSurfaceCreateEnti
19252
19580
  * Applies to variant case `locomotive`
19253
19581
  */
19254
19582
  interface LuaSurfaceCreateEntityParamsLocomotive extends BaseLuaSurfaceCreateEntityParams {
19583
+ /**
19584
+ * The color of this rolling stock, if it supports colors.
19585
+ */
19586
+ 'color'?: Color;
19587
+ 'copy_color_from_train_stop'?: boolean;
19588
+ 'enable_logistics_while_moving'?: boolean;
19589
+ 'grid'?: BlueprintEquipment[];
19590
+ /**
19591
+ * The orientation of this rolling stock.
19592
+ */
19593
+ 'orientation'?: RealOrientation;
19255
19594
  /**
19256
19595
  * Whether the locomotive should snap to an adjacent train stop. Defaults to true.
19257
19596
  */
@@ -19262,8 +19601,18 @@ interface LuaSurfaceCreateEntityParamsLocomotive extends BaseLuaSurfaceCreateEnt
19262
19601
  * Applies to variant case `logistic-container`
19263
19602
  */
19264
19603
  interface LuaSurfaceCreateEntityParamsLogisticContainer extends BaseLuaSurfaceCreateEntityParams {
19604
+ 'bar'?: uint;
19605
+ 'control_behavior'?: LogisticContainerBlueprintControlBehavior;
19265
19606
  'request_filters'?: SlotFilter[];
19266
19607
  }
19608
+ /**
19609
+ *
19610
+ * Applies to variant case `mining-drill`
19611
+ */
19612
+ interface LuaSurfaceCreateEntityParamsMiningDrill extends BaseLuaSurfaceCreateEntityParams {
19613
+ 'control_behavior'?: MiningDrillBlueprintControlBehavior;
19614
+ 'filter'?: BlueprintMiningDrillFilter;
19615
+ }
19267
19616
  /**
19268
19617
  *
19269
19618
  * Applies to variant case `particle`
@@ -19284,12 +19633,21 @@ interface LuaSurfaceCreateEntityParamsPlant extends BaseLuaSurfaceCreateEntityPa
19284
19633
  */
19285
19634
  'tick_grown'?: uint;
19286
19635
  }
19636
+ /**
19637
+ *
19638
+ * Applies to variant case `power-switch`
19639
+ */
19640
+ interface LuaSurfaceCreateEntityParamsPowerSwitch extends BaseLuaSurfaceCreateEntityParams {
19641
+ 'control_behavior'?: PowerSwitchBlueprintControlBehavior;
19642
+ 'switch_state'?: boolean;
19643
+ }
19287
19644
  /**
19288
19645
  *
19289
19646
  * Applies to variant case `programmable-speaker`
19290
19647
  */
19291
19648
  interface LuaSurfaceCreateEntityParamsProgrammableSpeaker extends BaseLuaSurfaceCreateEntityParams {
19292
19649
  'alert_parameters'?: ProgrammableSpeakerAlertParameters;
19650
+ 'control_behavior'?: ProgrammableSpeakerBlueprintControlBehavior;
19293
19651
  'parameters'?: ProgrammableSpeakerParameters;
19294
19652
  }
19295
19653
  /**
@@ -19297,6 +19655,8 @@ interface LuaSurfaceCreateEntityParamsProgrammableSpeaker extends BaseLuaSurface
19297
19655
  * Applies to variant case `projectile`
19298
19656
  */
19299
19657
  interface LuaSurfaceCreateEntityParamsProjectile extends BaseLuaSurfaceCreateEntityParams {
19658
+ 'base_damage_modifiers'?: TriggerModifierData;
19659
+ 'bonus_damage_modifiers'?: TriggerModifierData;
19300
19660
  /**
19301
19661
  * Defaults to 1000.
19302
19662
  */
@@ -19308,17 +19668,25 @@ interface LuaSurfaceCreateEntityParamsProjectile extends BaseLuaSurfaceCreateEnt
19308
19668
  }
19309
19669
  /**
19310
19670
  *
19311
- * Applies to variant case `projectile`
19671
+ * Applies to variant case `proxy-container`
19312
19672
  */
19313
- interface LuaSurfaceCreateEntityParamsProjectile extends BaseLuaSurfaceCreateEntityParams {
19314
- 'base_damage_modifiers'?: TriggerModifierData;
19315
- 'bonus_damage_modifiers'?: TriggerModifierData;
19673
+ interface LuaSurfaceCreateEntityParamsProxyContainer extends BaseLuaSurfaceCreateEntityParams {
19674
+ 'control_behavior'?: ProxyContainerBlueprintControlBehavior;
19675
+ }
19676
+ /**
19677
+ *
19678
+ * Applies to variant case `pump`
19679
+ */
19680
+ interface LuaSurfaceCreateEntityParamsPump extends BaseLuaSurfaceCreateEntityParams {
19681
+ 'control_behavior'?: PumpBlueprintControlBehavior;
19682
+ 'fluid_filter'?: string;
19316
19683
  }
19317
19684
  /**
19318
19685
  *
19319
19686
  * Applies to variant case `rail-chain-signal`
19320
19687
  */
19321
19688
  interface LuaSurfaceCreateEntityParamsRailChainSignal extends BaseLuaSurfaceCreateEntityParams {
19689
+ 'control_behavior'?: RailSignalBaseBlueprintControlBehavior;
19322
19690
  /**
19323
19691
  * Defaults to {@link defines.rail_layer.ground | runtime:defines.rail_layer.ground}.
19324
19692
  */
@@ -19329,17 +19697,25 @@ interface LuaSurfaceCreateEntityParamsRailChainSignal extends BaseLuaSurfaceCrea
19329
19697
  * Applies to variant case `rail-signal`
19330
19698
  */
19331
19699
  interface LuaSurfaceCreateEntityParamsRailSignal extends BaseLuaSurfaceCreateEntityParams {
19700
+ 'control_behavior'?: RailSignalBaseBlueprintControlBehavior;
19332
19701
  /**
19333
19702
  * Defaults to {@link defines.rail_layer.ground | runtime:defines.rail_layer.ground}.
19334
19703
  */
19335
19704
  'rail_layer'?: defines.rail_layer;
19336
19705
  }
19706
+ /**
19707
+ *
19708
+ * Applies to variant case `reactor`
19709
+ */
19710
+ interface LuaSurfaceCreateEntityParamsReactor extends BaseLuaSurfaceCreateEntityParams {
19711
+ 'control_behavior'?: ReactorBlueprintControlBehavior;
19712
+ }
19337
19713
  /**
19338
19714
  *
19339
19715
  * Applies to variant case `resource`
19340
19716
  */
19341
19717
  interface LuaSurfaceCreateEntityParamsResource extends BaseLuaSurfaceCreateEntityParams {
19342
- 'amount': uint;
19718
+ 'amount'?: uint;
19343
19719
  /**
19344
19720
  * If colliding cliffs are removed. Default is true.
19345
19721
  */
@@ -19355,31 +19731,58 @@ interface LuaSurfaceCreateEntityParamsResource extends BaseLuaSurfaceCreateEntit
19355
19731
  }
19356
19732
  /**
19357
19733
  *
19358
- * Applies to variant case `rolling-stock`
19734
+ * Applies to variant case `roboport`
19359
19735
  */
19360
- interface LuaSurfaceCreateEntityParamsRollingStock extends BaseLuaSurfaceCreateEntityParams {
19361
- /**
19362
- * The color of this rolling stock, if it supports colors.
19363
- */
19364
- 'color'?: Color;
19365
- /**
19366
- * The orientation of this rolling stock.
19367
- */
19368
- 'orientation'?: RealOrientation;
19736
+ interface LuaSurfaceCreateEntityParamsRoboport extends BaseLuaSurfaceCreateEntityParams {
19737
+ 'control_behavior'?: RoboportBlueprintControlBehavior;
19738
+ 'request_filters'?: BlueprintLogisticSections;
19739
+ }
19740
+ /**
19741
+ *
19742
+ * Applies to variant case `rocket-silo`
19743
+ */
19744
+ interface LuaSurfaceCreateEntityParamsRocketSilo extends BaseLuaSurfaceCreateEntityParams {
19745
+ 'control_behavior'?: RocketSiloBlueprintControlBehavior;
19746
+ 'launch_to_orbit_automatically'?: boolean;
19747
+ 'recipe'?: string;
19748
+ 'recipe_quality'?: string;
19749
+ 'use_transitional_requests'?: boolean;
19750
+ }
19751
+ /**
19752
+ *
19753
+ * Applies to variant case `selector-combinator`
19754
+ */
19755
+ interface LuaSurfaceCreateEntityParamsSelectorCombinator extends BaseLuaSurfaceCreateEntityParams {
19756
+ 'control_behavior'?: SelectorCombinatorParameters;
19757
+ 'player_description'?: string;
19369
19758
  }
19370
19759
  /**
19371
19760
  *
19372
19761
  * Applies to variant case `simple-entity-with-force`
19373
19762
  */
19374
19763
  interface LuaSurfaceCreateEntityParamsSimpleEntityWithForce extends BaseLuaSurfaceCreateEntityParams {
19764
+ 'color'?: Color;
19375
19765
  'render_player_index'?: uint;
19766
+ 'variation'?: uint8;
19376
19767
  }
19377
19768
  /**
19378
19769
  *
19379
19770
  * Applies to variant case `simple-entity-with-owner`
19380
19771
  */
19381
19772
  interface LuaSurfaceCreateEntityParamsSimpleEntityWithOwner extends BaseLuaSurfaceCreateEntityParams {
19773
+ 'color'?: Color;
19382
19774
  'render_player_index'?: uint;
19775
+ 'variation'?: uint8;
19776
+ }
19777
+ /**
19778
+ *
19779
+ * Applies to variant case `space-platform-hub`
19780
+ */
19781
+ interface LuaSurfaceCreateEntityParamsSpacePlatformHub extends BaseLuaSurfaceCreateEntityParams {
19782
+ 'bar'?: ItemStackIndex;
19783
+ 'control_behavior'?: SpacePlatformHubBlueprintControlBehavior;
19784
+ 'request_filters'?: BlueprintLogisticSections;
19785
+ 'request_missing_construction_materials'?: boolean;
19383
19786
  }
19384
19787
  /**
19385
19788
  *
@@ -19389,6 +19792,38 @@ interface LuaSurfaceCreateEntityParamsSpeechBubble extends BaseLuaSurfaceCreateE
19389
19792
  'lifetime'?: uint;
19390
19793
  'text': LocalisedString;
19391
19794
  }
19795
+ /**
19796
+ *
19797
+ * Applies to variant case `spider-vehicle`
19798
+ */
19799
+ interface LuaSurfaceCreateEntityParamsSpiderVehicle extends BaseLuaSurfaceCreateEntityParams {
19800
+ 'ammo_inventory'?: BlueprintInventoryWithFilters;
19801
+ 'automatic_targeting_parameters'?: VehicleAutomaticTargetingParameters;
19802
+ 'color'?: Color;
19803
+ 'driver_is_main_gunner'?: boolean;
19804
+ 'enable_logistics_while_moving'?: boolean;
19805
+ 'grid'?: BlueprintEquipment[];
19806
+ 'label'?: string;
19807
+ 'request_filters'?: BlueprintLogisticSections;
19808
+ 'selected_gun_index'?: ItemStackIndex;
19809
+ 'trunk_inventory'?: BlueprintInventoryWithFilters;
19810
+ }
19811
+ /**
19812
+ *
19813
+ * Applies to variant case `splitter`
19814
+ */
19815
+ interface LuaSurfaceCreateEntityParamsSplitter extends BaseLuaSurfaceCreateEntityParams {
19816
+ 'filter'?: ItemFilter;
19817
+ 'input_priority'?: SplitterPriority;
19818
+ 'output_priority'?: SplitterPriority;
19819
+ }
19820
+ /**
19821
+ *
19822
+ * Applies to variant case `storage-tank`
19823
+ */
19824
+ interface LuaSurfaceCreateEntityParamsStorageTank extends BaseLuaSurfaceCreateEntityParams {
19825
+ 'control_behavior'?: StorageTankBlueprintControlBehavior;
19826
+ }
19392
19827
  /**
19393
19828
  *
19394
19829
  * Applies to variant case `stream`
@@ -19413,6 +19848,36 @@ interface LuaSurfaceCreateEntityParamsTileGhost extends BaseLuaSurfaceCreateEnti
19413
19848
  */
19414
19849
  'inner_name': string;
19415
19850
  }
19851
+ /**
19852
+ *
19853
+ * Applies to variant case `train-stop`
19854
+ */
19855
+ interface LuaSurfaceCreateEntityParamsTrainStop extends BaseLuaSurfaceCreateEntityParams {
19856
+ 'color'?: Color;
19857
+ 'control_behavior'?: TrainStopBlueprintControlBehavior;
19858
+ 'manual_trains_limit'?: uint;
19859
+ 'priority'?: uint8;
19860
+ 'station'?: string;
19861
+ }
19862
+ /**
19863
+ *
19864
+ * Applies to variant case `transport-belt`
19865
+ */
19866
+ interface LuaSurfaceCreateEntityParamsTransportBelt extends BaseLuaSurfaceCreateEntityParams {
19867
+ 'control_behavior'?: TransportBeltBlueprintControlBehavior;
19868
+ }
19869
+ /**
19870
+ *
19871
+ * Applies to variant case `turret`
19872
+ */
19873
+ interface LuaSurfaceCreateEntityParamsTurret extends BaseLuaSurfaceCreateEntityParams {
19874
+ 'control_behavior'?: TurretBlueprintControlBehavior;
19875
+ /**
19876
+ * Defaults to `false`.
19877
+ */
19878
+ 'ignore-unprioritised'?: boolean;
19879
+ 'priority-list'?: SlotFilter;
19880
+ }
19416
19881
  /**
19417
19882
  *
19418
19883
  * Applies to variant case `underground-belt`
@@ -19423,6 +19888,20 @@ interface LuaSurfaceCreateEntityParamsUndergroundBelt extends BaseLuaSurfaceCrea
19423
19888
  */
19424
19889
  'type'?: BeltConnectionType;
19425
19890
  }
19891
+ /**
19892
+ *
19893
+ * Applies to variant case `valve`
19894
+ */
19895
+ interface LuaSurfaceCreateEntityParamsValve extends BaseLuaSurfaceCreateEntityParams {
19896
+ 'valve_threshold_override'?: float;
19897
+ }
19898
+ /**
19899
+ *
19900
+ * Applies to variant case `wall`
19901
+ */
19902
+ interface LuaSurfaceCreateEntityParamsWall extends BaseLuaSurfaceCreateEntityParams {
19903
+ 'control_behavior'?: WallBlueprintControlBehavior;
19904
+ }
19426
19905
  type LuaSurfaceCreateSegmentedUnitParams = BaseLuaSurfaceCreateSegmentedUnitParams | LuaSurfaceCreateSegmentedUnitParamsBodyNodes | LuaSurfaceCreateSegmentedUnitParamsPositionAndDirection;
19427
19906
  interface BaseLuaSurfaceCreateSegmentedUnitParams {
19428
19907
  /**
@@ -19940,7 +20419,7 @@ interface LuaTrain {
19940
20419
  * Gets a mapping of the train's fluid inventory.
19941
20420
  * @returns The counts, indexed by fluid names.
19942
20421
  */
19943
- get_fluid_contents(this: void): Record<string, double>;
20422
+ get_fluid_contents(this: void): Record<string, FluidAmount>;
19944
20423
  /**
19945
20424
  * Get the amount of a particular fluid stored in the train.
19946
20425
  * @param fluid Fluid name to count. If not given, counts all fluids.
@@ -20667,11 +21146,11 @@ interface LuaWireConnector {
20667
21146
  */
20668
21147
  readonly owner: LuaEntity;
20669
21148
  /**
20670
- * Amount of real wires going out of this connector. It only includes wires for which both wire connectors are real.
21149
+ * Amount of real wires going out of this connector. It only includes wires for which both wire connectors are real (not ghosts).
20671
21150
  */
20672
21151
  readonly real_connection_count: uint;
20673
21152
  /**
20674
- * All wire connectors this connector is connected to with real wires.
21153
+ * All wire connectors this connector is connected to with real wires. Wires are considered real if they are between two non-ghost entities.
20675
21154
  */
20676
21155
  readonly real_connections: WireConnection[];
20677
21156
  /**