Skip to content

Commit d538146

Browse files
committed
define mirror variants for recently added OWR × Avenue intersections
Tiles with mirror variants (except for TLA networks) currently need to be explicitly listed in `MirrorVariants.scala`. Otherwise, the mirror variants aren't properly accounted for when RUL2 code is generated. (Detailed explanation: The RuleTransducer does not know to automatically project the involved tiles and hence uses the unprojected tiles. Consequently, the IDs of the unprojected tiles don't resolve and, as a result, the generated RUL2 code does not contain the expected rules.) After this commit, resolving and transducing succeeds: transduce(Owr3~WE & Avenue~(1,0,0,0) | (Onewayroad~>Owr3)~WE) 0x5104A309,1,0,0x09004B00,1,0=0x5104A309,1,0,0x51040000,1,0 0x5104A309,1,0,0x09004B00,3,0=0x5104A309,1,0,0x51040000,3,0 0x7104A309,3,1,0x09004B00,3,0=0x7104A309,3,1,0x51040000,3,0 0x7104A309,3,1,0x09004B00,1,0=0x7104A309,3,1,0x51040000,1,0
1 parent 981186f commit d538146

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main/scala/module/MirrorVariants.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ object MirrorVariants {
3434
addProjectFirst(Onewayroad~ES, Rail~NE)
3535
addProjectFirst(Avenue~SN, Rail~NE)
3636
addProjectFirst(Avenue~NS, Rail~NE)
37+
for (n <- Seq(Onewayroad, Owr3)) {
38+
addProjectFirst(n~NS, Avenue~(0,0,0,1))
39+
addProjectFirst(n~NS, Avenue~(1,0,0,3))
40+
addProjectFirst(n~NS, Avenue~(0,0,0,3))
41+
}
3742
map
3843
}
3944

0 commit comments

Comments
 (0)