public static void ReinstateSerializedRouteMarkers(List<XElement> markerData)
 {
     foreach (XElement el in markerData)
     {
         RouteMarker newMarker = new RouteMarker();
         newMarker.ID = el.Attribute("id").Value;
         Factory._registerComponent(newMarker);
     }
 }
 public static void ReinstateSerializedRouteMarkers(List <XElement> markerData)
 {
     foreach (XElement el in markerData)
     {
         RouteMarker newMarker = new RouteMarker();
         newMarker.ID = el.Attribute("id").Value;
         Factory._registerComponent(newMarker);
     }
 }
        private void CreateRouteMarkerFromXmlNode(XElement node)
        {
            RouteMarker newMarker = new RouteMarker();
            newMarker.ID = string.Concat(Route_Marker_Serialized_Data_Identifier, _nextSignpostID++);
            newMarker.SetTexture(node.Attribute("texture").Value);

            newMarker.WorldPosition = new Vector2((float)node.Attribute("x"), (float)node.Attribute("y")) + new Vector2(Definitions.Grid_Cell_Pixel_Size);
            newMarker.Rotation = MathHelper.PiOver2 * (int)node.Attribute("quadrant");

            _registerComponent(newMarker);
        }
        private void CreateRouteMarkerFromXmlNode(XElement node)
        {
            RouteMarker newMarker = new RouteMarker();

            newMarker.ID = string.Concat(Route_Marker_Serialized_Data_Identifier, _nextSignpostID++);
            newMarker.SetTexture(node.Attribute("texture").Value);

            newMarker.WorldPosition = new Vector2((float)node.Attribute("x"), (float)node.Attribute("y")) + new Vector2(Definitions.Grid_Cell_Pixel_Size);
            newMarker.Rotation      = MathHelper.PiOver2 * (int)node.Attribute("quadrant");

            _registerComponent(newMarker);
        }