예제 #1
0
        public static RouteMarker CreateRouteMarkerFromTextureName(string textureName)
        {
            RouteMarker newMarker = Factory.CreateRouteMarker(textureName);

            newMarker.GroupNodeName = Data_Group_Node_Name;

            return(newMarker);
        }
예제 #2
0
        public RouteMarker CreateRouteMarker(string textureName)
        {
            RouteMarker newMarker = new RouteMarker();

            newMarker.SetTexture(textureName);

            return(newMarker);
        }
예제 #3
0
        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);
        }
예제 #4
0
 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;
        }