public static RouteMarker CreateRouteMarkerFromTextureName(string textureName) { RouteMarker newMarker = Factory.CreateRouteMarker(textureName); newMarker.GroupNodeName = Data_Group_Node_Name; return(newMarker); }
public RouteMarker CreateRouteMarker(string textureName) { RouteMarker newMarker = new RouteMarker(); newMarker.SetTexture(textureName); return(newMarker); }
public static RouteMarker CreateRouteMarkerFromXmlNode(XElement node) { RouteMarker newMarker = Factory.CreateRouteMarker(node.Attribute("texture").Value); newMarker.GroupNodeName = Data_Group_Node_Name; newMarker.Quadrant = (int)node.Attribute("quadrant"); return(newMarker); }
public static void LoadSignposts(XElement SignpostDataGroup, Data.RegistrationCallback registerComponent) { if (SignpostDataGroup != null) { foreach (XElement node in SignpostDataGroup.Elements()) { if (node.Name == RouteMarker.Save_Node_Name) { RouteMarker toAdd = CreateRouteMarkerFromXmlNode(node); toAdd.WorldPosition = new Vector2((float)node.Attribute("x"), (float)node.Attribute("y")); registerComponent(toAdd); } else { SignpostBase toAdd = CreateSignpostFromXmlNode(node); toAdd.WorldPosition = new Vector2((float)node.Attribute("x"), (float)node.Attribute("y")); registerComponent(toAdd); } } } }
public RouteMarker CreateRouteMarker(string textureName) { RouteMarker newMarker = new RouteMarker(); newMarker.SetTexture(textureName); return newMarker; }