Add wagon inserter options to multistation
This commit is contained in:
parent
7638081f26
commit
7ef42e5202
6 changed files with 89 additions and 33 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use crate::{balancer::binary_balancer, station::basic_station};
|
||||
use factorio_blueprint::abstraction::{
|
||||
Blueprint, ElectricPoleType, Entity, RailType, UndergroundType,
|
||||
Blueprint, ElectricPoleType, Entity, Quality, RailType, UndergroundType,
|
||||
};
|
||||
use factorio_core::{
|
||||
beltoptions::{Beltspeed, Belttype},
|
||||
|
|
@ -50,6 +50,8 @@ fn calculate_station_height(
|
|||
pub fn multistation(
|
||||
stations: &[StationSpec],
|
||||
stacker_size: usize,
|
||||
wagon_inserter_type: factorio_blueprint::abstraction::InserterType,
|
||||
wagon_inserter_quality: Quality,
|
||||
) -> (Blueprint, PositionType, Vec<PositionType>) {
|
||||
let longest_train = stations
|
||||
.iter()
|
||||
|
|
@ -270,6 +272,8 @@ pub fn multistation(
|
|||
station.beltspeed,
|
||||
station.belttype,
|
||||
station.stacked,
|
||||
wagon_inserter_type,
|
||||
wagon_inserter_quality,
|
||||
);
|
||||
let output_height = -b.bounding_box().min().y;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue