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,7 @@
|
|||
use clap::Parser;
|
||||
use factorio_blueprint::abstraction::serde::AbstractBlueprintString;
|
||||
use factorio_blueprint::{BlueprintString, encode};
|
||||
use factorio_blueprint::abstraction::{InserterType, Quality};
|
||||
use factorio_blueprint::encode;
|
||||
use factorio_blueprint_generator::multistation::{StationSpec, multistation};
|
||||
use factorio_core::beltoptions::{Beltspeed, Belttype};
|
||||
use factorio_core::visualize::Visualize;
|
||||
|
|
@ -9,6 +10,13 @@ use factorio_core::visualize::Visualize;
|
|||
struct Args {
|
||||
#[arg(short, long)]
|
||||
json: bool,
|
||||
|
||||
#[arg(short, long, default_value = "bulk")]
|
||||
wagon_inserter_type: InserterType,
|
||||
|
||||
#[arg(short, long, default_value = "normal")]
|
||||
wagon_inserter_quality: Quality,
|
||||
|
||||
stacker_size: usize,
|
||||
/// format: <locomotives>-<wagons>[lu][nfet]<lanes>[lr]?
|
||||
stations: Vec<String>,
|
||||
|
|
@ -61,7 +69,13 @@ fn main() {
|
|||
|
||||
dbg!(&stations);
|
||||
|
||||
let mut b = multistation(&stations, args.stacker_size).0;
|
||||
let mut b = multistation(
|
||||
&stations,
|
||||
args.stacker_size,
|
||||
args.wagon_inserter_type,
|
||||
args.wagon_inserter_quality,
|
||||
)
|
||||
.0;
|
||||
|
||||
b.connect_power_networks();
|
||||
|
||||
|
|
|
|||
|
|
@ -70,6 +70,8 @@ fn main() {
|
|||
beltspeed,
|
||||
Belttype::Full,
|
||||
false,
|
||||
factorio_blueprint::abstraction::InserterType::Bulk,
|
||||
factorio_blueprint::abstraction::Quality::Normal,
|
||||
);
|
||||
|
||||
inner_inner_b.push(BlueprintBookEntry::new(
|
||||
|
|
@ -138,6 +140,8 @@ fn main() {
|
|||
beltspeed,
|
||||
belttype,
|
||||
false,
|
||||
factorio_blueprint::abstraction::InserterType::Bulk,
|
||||
factorio_blueprint::abstraction::Quality::Normal,
|
||||
)
|
||||
.to_blueprint(),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue