Allow for halve belts in multistation
This commit is contained in:
parent
cd86679d65
commit
06b01c2fe4
4 changed files with 24 additions and 6 deletions
|
|
@ -2,7 +2,10 @@ use crate::{balancer::binary_balancer, station::basic_station};
|
|||
use factorio_blueprint::abstraction::{
|
||||
Blueprint, ElectricPoleType, Entity, RailType, UndergroundType,
|
||||
};
|
||||
use factorio_core::{beltoptions::Beltspeed, prelude::*};
|
||||
use factorio_core::{
|
||||
beltoptions::{Beltspeed, Belttype},
|
||||
prelude::*,
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct StationSpec {
|
||||
|
|
@ -11,6 +14,7 @@ pub struct StationSpec {
|
|||
pub load: bool,
|
||||
pub beltspeed: Beltspeed,
|
||||
pub lanes: usize,
|
||||
pub belttype: Belttype,
|
||||
}
|
||||
|
||||
fn calculate_station_height(
|
||||
|
|
@ -263,7 +267,7 @@ pub fn multistation(
|
|||
station.wagons,
|
||||
station.lanes,
|
||||
station.beltspeed,
|
||||
factorio_core::beltoptions::Belttype::Full,
|
||||
station.belttype,
|
||||
);
|
||||
let output_height = -b.bounding_box().min().y;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue