Add connect output belt to station
This commit is contained in:
parent
aabd9486e0
commit
1af9712bcb
4 changed files with 435 additions and 139 deletions
|
|
@ -12,63 +12,77 @@ struct Args {
|
|||
fn main() {
|
||||
let args = Args::parse();
|
||||
|
||||
// let stations: Vec<_> = (0..2)
|
||||
// .map(|_| StationSpec {
|
||||
// locomotives: 1,
|
||||
// wagons: 2,
|
||||
// load: false,
|
||||
// beltspeed: Beltspeed::Turbo,
|
||||
// lanes: 2,
|
||||
// })
|
||||
// .collect();
|
||||
let stations: Vec<_> = [false, true]
|
||||
.into_iter()
|
||||
.flat_map(|load| {
|
||||
[
|
||||
Beltspeed::Normal,
|
||||
Beltspeed::Fast,
|
||||
Beltspeed::Express,
|
||||
Beltspeed::Turbo,
|
||||
]
|
||||
.into_iter()
|
||||
.flat_map(move |beltspeed| {
|
||||
(0..6).flat_map(move |i| {
|
||||
(0..=i).map(move |j| StationSpec {
|
||||
locomotives: 1,
|
||||
wagons: 1 << i,
|
||||
load,
|
||||
beltspeed,
|
||||
lanes: 1 << j,
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
.collect();
|
||||
|
||||
let b = BlueprintString::Blueprint(
|
||||
multistation(
|
||||
// &stations,
|
||||
&[
|
||||
StationSpec {
|
||||
locomotives: 2,
|
||||
wagons: 4,
|
||||
load: false,
|
||||
beltspeed: Beltspeed::Normal,
|
||||
lanes: 4,
|
||||
},
|
||||
StationSpec {
|
||||
locomotives: 3,
|
||||
wagons: 8,
|
||||
load: false,
|
||||
beltspeed: Beltspeed::Turbo,
|
||||
lanes: 8,
|
||||
},
|
||||
StationSpec {
|
||||
locomotives: 3,
|
||||
wagons: 8,
|
||||
load: false,
|
||||
beltspeed: Beltspeed::Turbo,
|
||||
lanes: 4,
|
||||
},
|
||||
StationSpec {
|
||||
locomotives: 3,
|
||||
wagons: 8,
|
||||
load: false,
|
||||
beltspeed: Beltspeed::Turbo,
|
||||
lanes: 2,
|
||||
},
|
||||
StationSpec {
|
||||
locomotives: 3,
|
||||
wagons: 8,
|
||||
load: false,
|
||||
beltspeed: Beltspeed::Turbo,
|
||||
lanes: 1,
|
||||
},
|
||||
StationSpec {
|
||||
locomotives: 1,
|
||||
wagons: 1,
|
||||
load: false,
|
||||
beltspeed: Beltspeed::Turbo,
|
||||
lanes: 1,
|
||||
},
|
||||
],
|
||||
&stations,
|
||||
// &[
|
||||
// StationSpec {
|
||||
// locomotives: 2,
|
||||
// wagons: 4,
|
||||
// load: false,
|
||||
// beltspeed: Beltspeed::Normal,
|
||||
// lanes: 4,
|
||||
// },
|
||||
// StationSpec {
|
||||
// locomotives: 3,
|
||||
// wagons: 8,
|
||||
// load: false,
|
||||
// beltspeed: Beltspeed::Turbo,
|
||||
// lanes: 8,
|
||||
// },
|
||||
// StationSpec {
|
||||
// locomotives: 3,
|
||||
// wagons: 8,
|
||||
// load: false,
|
||||
// beltspeed: Beltspeed::Turbo,
|
||||
// lanes: 4,
|
||||
// },
|
||||
// StationSpec {
|
||||
// locomotives: 3,
|
||||
// wagons: 8,
|
||||
// load: false,
|
||||
// beltspeed: Beltspeed::Turbo,
|
||||
// lanes: 2,
|
||||
// },
|
||||
// StationSpec {
|
||||
// locomotives: 3,
|
||||
// wagons: 8,
|
||||
// load: false,
|
||||
// beltspeed: Beltspeed::Turbo,
|
||||
// lanes: 1,
|
||||
// },
|
||||
// StationSpec {
|
||||
// locomotives: 1,
|
||||
// wagons: 1,
|
||||
// load: false,
|
||||
// beltspeed: Beltspeed::Turbo,
|
||||
// lanes: 1,
|
||||
// },
|
||||
// ],
|
||||
8,
|
||||
)
|
||||
.to_blueprint(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue