Add output signals
This commit is contained in:
parent
ce76626f79
commit
aabd9486e0
3 changed files with 90 additions and 32 deletions
|
|
@ -12,36 +12,64 @@ struct Args {
|
|||
fn main() {
|
||||
let args = Args::parse();
|
||||
|
||||
let stations: Vec<_> = (0..8)
|
||||
.map(|_| StationSpec {
|
||||
locomotives: 1,
|
||||
wagons: 2,
|
||||
load: false,
|
||||
beltspeed: Beltspeed::Normal,
|
||||
lanes: 1,
|
||||
})
|
||||
.collect();
|
||||
// let stations: Vec<_> = (0..2)
|
||||
// .map(|_| StationSpec {
|
||||
// locomotives: 1,
|
||||
// wagons: 2,
|
||||
// load: false,
|
||||
// beltspeed: Beltspeed::Turbo,
|
||||
// lanes: 2,
|
||||
// })
|
||||
// .collect();
|
||||
|
||||
let b = BlueprintString::Blueprint(
|
||||
multistation(
|
||||
&stations,
|
||||
// &[
|
||||
// StationSpec {
|
||||
// locomotives: 1,
|
||||
// wagons: 1,
|
||||
// load: false,
|
||||
// beltspeed: Beltspeed::Normal,
|
||||
// lanes: 1,
|
||||
// },
|
||||
// StationSpec {
|
||||
// locomotives: 1,
|
||||
// wagons: 1,
|
||||
// load: false,
|
||||
// beltspeed: Beltspeed::Express,
|
||||
// lanes: 1,
|
||||
// },
|
||||
// ],
|
||||
16,
|
||||
// &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