Ejemplo n.º 1
0
 public static bool FromXml(XElement config, MarkupLine line, Dictionary <ObjectId, ObjectId> map, out CrosswalkBorderEdge borderPoint)
 {
     if (line is MarkupCrosswalkLine crosswalkLine)
     {
         var border = (BorderPosition)config.GetAttrValue("B", (int)BorderPosition.Right);
         borderPoint = new CrosswalkBorderEdge(crosswalkLine, border);
         return(true);
     }
     else
     {
         borderPoint = null;
         return(false);
     }
 }
Ejemplo n.º 2
0
 public static bool FromXml(XElement config, MarkupLine line, ObjectsMap map, out CrosswalkBorderEdge borderPoint)
 {
     if (line is MarkupCrosswalkLine crosswalkLine)
     {
         var border = (config.GetAttrValue("B", (int)BorderPosition.Right) == (int)BorderPosition.Left) ^ map.IsMirror ? BorderPosition.Left : BorderPosition.Right;
         borderPoint = new CrosswalkBorderEdge(crosswalkLine, border);
         return(true);
     }
     else
     {
         borderPoint = null;
         return(false);
     }
 }