Add wagon chest options to multistation
This commit is contained in:
parent
7ef42e5202
commit
0ced2c3c44
7 changed files with 110 additions and 71 deletions
|
|
@ -1,8 +1,9 @@
|
|||
use clap::Parser;
|
||||
use factorio_blueprint::abstraction::serde::AbstractBlueprintString;
|
||||
use factorio_blueprint::abstraction::{InserterType, Quality};
|
||||
use factorio_blueprint::abstraction::{ChestType, InserterType, Quality};
|
||||
use factorio_blueprint::encode;
|
||||
use factorio_blueprint_generator::multistation::{StationSpec, multistation};
|
||||
use factorio_blueprint_generator::station::StationBasicSpec;
|
||||
use factorio_core::beltoptions::{Beltspeed, Belttype};
|
||||
use factorio_core::visualize::Visualize;
|
||||
|
||||
|
|
@ -17,6 +18,12 @@ struct Args {
|
|||
#[arg(short, long, default_value = "normal")]
|
||||
wagon_inserter_quality: Quality,
|
||||
|
||||
#[arg(short, long, default_value = "steel")]
|
||||
chest_type: ChestType,
|
||||
|
||||
#[arg(short, long, default_value = "normal")]
|
||||
chest_quality: Quality,
|
||||
|
||||
stacker_size: usize,
|
||||
/// format: <locomotives>-<wagons>[lu][nfet]<lanes>[lr]?
|
||||
stations: Vec<String>,
|
||||
|
|
@ -72,8 +79,12 @@ fn main() {
|
|||
let mut b = multistation(
|
||||
&stations,
|
||||
args.stacker_size,
|
||||
args.wagon_inserter_type,
|
||||
args.wagon_inserter_quality,
|
||||
&StationBasicSpec {
|
||||
inserter_type: args.wagon_inserter_type,
|
||||
inserter_quality: args.wagon_inserter_quality,
|
||||
chest_type: args.chest_type,
|
||||
chest_quality: args.chest_quality,
|
||||
},
|
||||
)
|
||||
.0;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use clap::{Parser, Subcommand};
|
||||
use factorio_blueprint::{BlueprintBook, BlueprintBookEntry, BlueprintString, encode};
|
||||
use factorio_blueprint_generator::station::basic_station;
|
||||
use factorio_blueprint_generator::station::{StationBasicSpec, basic_station};
|
||||
use factorio_core::beltoptions::{Beltspeed, Belttype};
|
||||
|
||||
#[derive(Parser)]
|
||||
|
|
@ -70,8 +70,7 @@ fn main() {
|
|||
beltspeed,
|
||||
Belttype::Full,
|
||||
false,
|
||||
factorio_blueprint::abstraction::InserterType::Bulk,
|
||||
factorio_blueprint::abstraction::Quality::Normal,
|
||||
&factorio_blueprint_generator::station::StationBasicSpec::default(),
|
||||
);
|
||||
|
||||
inner_inner_b.push(BlueprintBookEntry::new(
|
||||
|
|
@ -140,8 +139,7 @@ fn main() {
|
|||
beltspeed,
|
||||
belttype,
|
||||
false,
|
||||
factorio_blueprint::abstraction::InserterType::Bulk,
|
||||
factorio_blueprint::abstraction::Quality::Normal,
|
||||
&StationBasicSpec::default(),
|
||||
)
|
||||
.to_blueprint(),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue